diff --git a/unpackage/cache/apk/__UNI__A789D1D_cm.apk b/unpackage/cache/apk/__UNI__A789D1D_cm.apk index 877a691..48ceab5 100644 Binary files a/unpackage/cache/apk/__UNI__A789D1D_cm.apk and b/unpackage/cache/apk/__UNI__A789D1D_cm.apk differ diff --git a/unpackage/cache/apk/apkurl b/unpackage/cache/apk/apkurl index 9bbdc76..02e7a4c 100644 --- a/unpackage/cache/apk/apkurl +++ b/unpackage/cache/apk/apkurl @@ -1 +1 @@ -https://app.liuyingyong.cn/build/download/90ef6860-e0ab-11f0-99dd-413d52a53fa6 \ No newline at end of file +https://app.liuyingyong.cn/build/download/d2fde540-ed28-11f0-a389-4fb603a8cb19 \ No newline at end of file diff --git a/unpackage/cache/apk/cmManifestCache.json b/unpackage/cache/apk/cmManifestCache.json index 6afe689..00c9df5 100644 --- a/unpackage/cache/apk/cmManifestCache.json +++ b/unpackage/cache/apk/cmManifestCache.json @@ -1 +1 @@ -b1kWame9yBmby5SJKXZdMiBIfIZ7jYUx3ZnXt20I8klef9B7ZTIAFKtSJZT7FZLkkNg5vA3UO+tuouNfO7a5k0vdZYeTYw1gOGxBUGpL2tB2LnJ+2CoB2b8xVZ3HperA9/CF+yAmFtwdAMU6dRkCZctqyJJL4H8+wfY+isYTAPOgmoddbbU7yBNsGdSGRSvNH1v7veDpyK5G3V7Vh/qzZzX1vL/eSFFWGoh4zHVa9I4izNvD/nZP15LeOmpgDAQxBytPIO0rK/g+/RlF14OxpSVZqt+aZF+29nCvjj8Mw4N+FtQIm6rTDKV2+z0UNAu9/moSOQqnKTqHgOt7K4OUaG2igvQjqa8of+Zm9VgvBhqIWdzIfg1rGZJzhB2iroq1vmK7nbusIsK2QxyDVFs4CtxWNn5r/ZpYas5j44cj83NjgWmESGVgmgHvhnAuLvZYOnk6ln4JGHtKB6OApZpb9rjVipJ4yPGQzW0h9xZH8aafSICMwvgbJWAIg5I8nFXIAhvLTM6vseukDeC2wwv0FnZ15zDJQYSy4MDJaCWHgn1HqpjuBJRehnLRHPTWMHabvcQ5huGab/VfKa8DIFwemDRx4/rC2qoml5LdkvZNaqO9DaHqOoXSd/xrbo31YVwJ7ORp/QMDzOXKMGUkY8LZAMzIFen66jegoJTYFworAZSgu8HHxx4ckaPgw7HgBwaSKETBOSerlT3FTtg6ZISQzt060EV047/8TAr8Z+FOmhOceu0TSX+V3RZS9+Zy6bPttmCDhpCEbpELtOkfEIQhEREt4BvqQyP1fNp8ye9xRTR5hMkI4AVNIHCDVo8SDJ3Kb/sJH91iw1VBfeKmign40VObFmsQaPkOJYz1NeTZT2TELb8zaUHS3zWG2ubO96e8b0sT63cduqbIkc603ZkOntSYgCcPXIAwfFnyxOo8uX1eaprER5ooTsX7R4ORPiyzcAiuwYcBFY7B7enR8ZZMs2W8HbcvUDNcGhGa1lDd8CfvfEqaWK5R8d/Bk8sN7VJDQA7gptQTRXcxiAvI+9GjM8eu0L2S/v7vuTcZvBj4Bbvi6O+lHKXSO2rR55uzlQ5WYnu47MH7my8e2KZmjpbSLpISwO+V1Y6YL373rhuRBqMCOOTkqh1P8jHqResqbhF19pv1DDraY6JVaCPHdSbU62XF14ISkMWYv9JvfyFafIzahF0fQoeGNb4cFMcjFad2O9hxQVE3lBm0q9rr4tGjSfR5MByJpjcvGc55htchxt97MzJqwHhge2vSCk/SNxcP1tuK2GXmWvFQX70zJAz7Cs9yX3uBYLXrRpbicTlwDDtfNYk2aGacr1jIKAGAD8lMqeUXz1DREIFZ7BhbRcmlGrjHBGA2EDRSLArekwJNlIKJiIJu0IRJdhUhcYCdpLyiInVGGxl4vpUtWy3wjG8XcaJmrbnwNGRgMYLv8S4Wow5wJuzmsIVTOokq9jfPfcgIUOx1HBxKKixNqw8ZpDWf81pAnq/toebikdTfbYOiCNBvDY8NwFq8F3TzpWsN+XlM5irFw8G7xkT//JFzkEtRSl2LKxE66T6F/mboiARY6OHCTv6av8N69nZjCNNQ9g8t0r4ClvnORfzl8gDJnIeDon87S7+Kmk3RsJ/E0iIHzLJOTvqEM3HldcpnMvLzWA6W0nSQYYuuZgFGEuCu20oihwHKQGc+/+HbQMffzqNVtt0KRKAR4kFsV/OuZyP57SYVvKNObfMhh9BLshQ8v9K+ZnjyLMYeuviJs7j27aS0MQ9Rd17QXeBtLTiusT5e3KYGFmxT5aBAbMEasOj518XJ+TZ0wf5vorfsTNk1pLj9fejAeD1ihmFqj4XsC9UIaPuIeN3XJl3hj9HhoarHhhn8JkQVWe+D+92fnnY7CGGT3vh/XPDT/JyjvdJeit8jKY0+Es1ZipS+cFc/FfdVcJLKqMyBm6gJZOHaHCf0MJNjcwX2BLGyZ9fz1woXZ+BcR5V1b7EzmrzfRUA2VSL5xFfA9cTzW866kz6jU+1VbBhmvuj2X/yx4+KiXM18dVI45zf3JEyas2+OGNnZdfxcFogeqeFxE3BwmaQm9bQRs9ts35wayHrFqembhBN1pcGIBdzWcPbYu5UQL03iKN50asDeJ4SHKY+5twgSUssTzv6LDZj2o1OdLsEASj7U55n+L6rGHNGrcVCWbwFKXafy7flvOmSoSJL49JmdFX0Df1ZuKWYmQvJ4KXlHoXKKa3yTlBg+GXXJGD8GBcAQDNC+A9ZAPrL0SkQvyeeVbLHKN+Rflls5oKbBdCzwFmsGbhcWfiFsLDIG/KkguTV2PwN1AcLwaAsGOJOpsW4VjwjdicX3OCRVSmGlgVoouilOL6mYMS+uZVWjZ5E+Unt3UxmBvB6LWrkoKv41rPAlTMh8NdXiiq02quoQSfxd0uT5XTfIbm4y/7BrH6R7tXzWWNou0giCbwJsss2eSGNSpR+p+hcAwTSr6ByZEvy/xxhl7aK1LzFCL+aofbXt78NaA9+uRPj2Umgsff578PuH0Snhu1BSIgUk/RY4D/Qr7wtQrV/1rA20YCo3QHRgMY7g61GpeEgYyT1sRMd3nlRmVM4xGB2Wi09reAyHOqjQ1GVD5qBI+trcxlWxWiQkKidIqSiQ+tG4prWcuA4rPplsV3YGUUVYFr8aim1lDfHtA/Ftmz3jKC+5Qjd4gwe/EXe0xgdn2ctKDjUgGyFKftzYweV2wXxrBA9zF6Wa9ACgPbFMhdqK1I3EYHos/H1UhwGRCQTIni1P9aLWpr6yCZKuAX9WPtaEtRT4CrEqbjcmT/VqcVFJTBGjK6QQSBZAiJ0nfHaNa6dD8mBwPl69z/nZMySbSYha6d98wPiiaxcSsn1AQv8NTX9La6zU171LxwJDVXCQR2ORc3LTj/9zB8wKi7ADvHfHbhugo8XM6s89iHchd56CRnB9z6w4/9Wvnv6yQyFzYSX873SH6DlH1Pc3rc4ODFUu4wo5u1AbZuA6WTE8j5EA2BiyrWNgz0Db06nhUQp7iXLW9vbd87v5gZQp2znl8iveGM//JwJVPyO5kxXgfkCnLn+ezdS767+M5kFCrk1RTukSCtyKGPvbWUINLCAhBjk/WMWMxslBKwZuMjetSFCdHv6PVCjDuoEwdY7R46lEZN8I8BHrj/8B7gHh7KrwhRNLa/5f6gIRsjfWxCpficqVK/VAtY3oxnPUGWfS9Gu4f5OecFT8w+Uge0i9N/nOx0kn/AmFKs28oQr9bSSYVeokZlDUTiSG3l3TIPZx9IO/Rg938N4UObZREHoaocRfUE9d94Ko6iwTQ6DTx0Df6WBucSutaGphxfE28EScNNGXre6aVv1VbF4UCKybw9Rm10h1ZmGASzmJLwGXoytxswtjA4ed/t9lGu6n91dyIJEOiO5zYdExb1SUaabeQv3w/t4gTGDYe8fjmTn047eeRT9n2Y8tgNFOTALuJFJyIpMmu9cXnLfccMLm4I4yzVQl3qKhAvUyK6JALq/2nifyVuGNFiVB5rFtLklqLJgMzdNxITMF7FdFpBh1BVswOlbUQZsEfnf0iyGHCwxSIFcBtWsA/IuGFQ2apNTng368ZsF4ahT98LIeyghsOjNPrjOi9QszZzXRUdrYdwVTwRv9Jn9leQLbo6nwGKhUVczx/OQzuZ//Gm5PYnoKA/O7zOXj893kN7REpozrss2cLb5Z22B44BKrSwQPdYTij7veBISWOKAMNibPMIh6ooKa2qxdYgN8F7qJV5vrVMZJj47ik2U+9UkpjESSSJpaRyAXEKBa8OLdIuWjGeFJ9bULSOzdnfMalxgUrShTOES13ckrl8dv4K2xMunLAw0Q/Sx43WIl3K09207tvmDSpBtjFAc2hB8UM4tSUyPVqdnvfH/EU2qCMU7M7pxBaclkipjw/Poh2h4Ik+6oL1SG8cFlVM1RmN/Wrdd8CCWfP+WmsDQney/XPDKvXvVN8eYTLjzXc9gBcRNWMHq+RcI4GDDTMH0EI+Aca3+4tKlSR9P8c3whuYFxxm7Mfe6QVeiSwtkBLsCw7mPPan5tumbk34mUSe0o1hyF7OUTb6SIi4qvvHg7NGmNlMMs6qGG8qgrWVZC9yUvKyyYF3T1XeaJKGEbaMZXGpcaceQrfvRZUXMi88Kv7WtWV/ewLbIL42GeQymBAHU+YL1ai+DqclcbBWGUHQqyWx1VjTJkbfsVmlT8VEH0oy9LAHVUX4uUAjJu/L9gyoHNiOQG74qC2q8By7DGk1c8j1XRpGYweTq1EcP7W8RJShjP4ZI1wstHkesUYvvlmHjQvUcJTTuoP7osG3W1Ms9sKux279pj4Yb1tp8Lf8vNQg5uvQtuYgr8gYJcvzmKtMyFr3hM91xNe2tFekYocuMZpNIcFG9umS16sFYW4mz/cJRC4pLnYBAO5nZO6NvXM7Thlt/hFRbF4aQVfWVvoH5u50l4TE/qY47cucgxlFsDi0p8f/HmITdDyLnU3WPOsP8uPw2tks7HI0fVPjEuIawQrX+ueVoJN8TYn8NcJgUqa0UP3Tsm9Wbq1atL6nGS0hwPg3s0RHWFD8CK3zzf9Co0UhmN5JHMGNI+VUN0C/l+OUEp41MXVPCCpeJielJiPdqMNYALgRmgsBveOjhrk3doI2J9PZckfkPo0SCfzNzmnBnRhCId+qoSUnBHqdnrPW1SrEFCHz4VDqD/oVmsYsQCG5EIBQZutg2tdTYrorql2OnfndfkaKrluc9QHNTTvBonPypD2oyF2qq2Nyc/ZGIWoF5u4YGg7drWjZGbjATvNYjnZHH+qz/VsaPT3RK6aD3YKhp9E3XIrYCn/jmpQQaadC9WSUR17lKI09NtEwLn/PudsQtag4FvIHAv3bCXa3CKMOuLC3U+3gDQavcyZOIyw2Q5jqO5SZugFUikJ5fnWyE8u5J+k3JCK9jS3nhZnCEzyo0mSNhF2Rd0btA4Bt06AU7nSJVjHiI7Y7FEwrDspbbrreWdEzKfgVPXiPQt1OD7+YJyxuvVk8/MGMnbSt5ebYWVmqCUvbUhfyX1A6FLkm7pcx1HrFz9d/dcs+DqUKzj7ho4N6sNtxvTNgu1mn8wHue/+SWj/36crbxPhdrh01DIl0sh2btpUBwDG5Zc6Gi542FLTdJ9DV7sebrjHJPxWhkz1htgJlf9FY/fvyDpuIXxotEoIJS50+PuGK/tOX3O8FMmiN7iYyOUFShlrKUbquzY9xlifMsPDqqN8t78iGPo/5LAYacq0Hz49PEMrFoVGJz1MANUYbXm69zLC0AvLH24omzabyBqKagzHqmT5FtL011r5Bl5mmQaEfjXGrvTzZrTPORdtX25N6IocJGtVNjl2h8CVVd4x+2MK7COv4qj5WLCdPY9CW14tqFrT98fLVNp5poh2NdBO/z61Hap/nYY/YNS3OcDORlmvXMdTJ7yp7TFSG7XUmTHt8/Kj+etznAysmS9aO+VHLb5nK9p8ekNpjs3XwqTQTPlc7SjczjKzNHhbe1h4TNekIYycvfaEV9IJlf0oFw1YRQh1z5ax1IvTotMQkbHhDloGL902ORLIQJmUKjGc/hOTmC+kcaLVz6BwbejelztiAfn1oBSDk8a1gd585XoDbbRTFlgglPjfwA9GF1NEKDo8tzqu/z3KvPaEbDRDjxA/hfdVlFIf5pRJWpakHtoVVfs+vSAau96BB9lhzp4z0halZjFYyDI2hAEp6TUj1E29ThWJB7dpJNsebsJbrhdeGjMoEK0zSxfnx8AYRpZLv6VyQqCYC0n5Zf9MjvMNuW9KIYQ2FuU5ynWGMwcWSo5K9ZDJwBbk71BtW2MtCViJT3ENAKmMfsAfaSrk6Vrkd8UiY/80fkGiX5MW3Weg80w/NktEbwrT8P97MWyd3SiVi9CLk+TkrZGSVnNMcqQcHh3WnkO9Qn2dJbBFNcNnWLfT1e7xZSnyhcEQcQQSwI4RffPB284B4d8xjFUsPpS65peNPo7o667zFhUliyJNLdsiNCd5TCfH8pKcJVEXmX6avzgOoaOzUbCDlvOX43zIpFecEz6pizgyDybLBZ7m8ivZztmdCGnLRRsO12UQfJAfJs92AA0ImVhLX2L86Nej3S3n8bT06sqiXHvWs8= \ No newline at end of file +b1kWame9yBmby5SJKXZdMiBIfIZ7jYUx3ZnXt20I8klef9B7ZTIAFKtSJZT7FZLkkNg5vA3UO+tuouNfO7a5k0vdZYeTYw1gOGxBUGpL2tB2LnJ+2CoB2b8xVZ3HperA9/CF+yAmFtwdAMU6dRkCZctqyJJL4H8+wfY+isYTAPOgmoddbbU7yBNsGdSGRSvNH1v7veDpyK5G3V7Vh/qzZzX1vL/eSFFWGoh4zHVa9I4izNvD/nZP15LeOmpgDAQxBytPIO0rK/g+/RlF14OxpSVZqt+aZF+29nCvjj8Mw4N+FtQIm6rTDKV2+z0UNAu9/moSOQqnKTqHgOt7K4OUaG2igvQjqa8of+Zm9VgvBhqIWdzIfg1rGZJzhB2iroq1vmK7nbusIsK2QxyDVFs4CtxWNn5r/ZpYas5j44cj83NjgWmESGVgmgHvhnAuLvZYOnk6ln4JGHtKB6OApZpb9rjVipJ4yPGQzW0h9xZH8aafSICMwvgbJWAIg5I8nFXIAhvLTM6vseukDeC2wwv0FnZ15zDJQYSy4MDJaCWHgn1HqpjuBJRehnLRHPTWMHabvcQ5huGab/VfKa8DIFwemDRx4/rC2qoml5LdkvZNaqO9DaHqOoXSd/xrbo31YVwJ7ORp/QMDzOXKMGUkY8LZAMzIFen66jegoJTYFworAZSgu8HHxx4ckaPgw7HgBwaSKETBOSerlT3FTtg6ZISQzt060EV047/8TAr8Z+FOmhOceu0TSX+V3RZS9+Zy6bPttmCDhpCEbpELtOkfEIQhEREt4BvqQyP1fNp8ye9xRTR5hMkI4AVNIHCDVo8SDJ3Kb/sJH91iw1VBfeKmign40VObFmsQaPkOJYz1NeTZT2TELb8zaUHS3zWG2ubO96e8b0sT63cduqbIkc603ZkOntSYgCcPXIAwfFnyxOo8uX1eaprER5ooTsX7R4ORPiyzcAiuwYcBFY7B7enR8ZZMs2W8HbcvUDNcGhGa1lDd8CfvfEqaWK5R8d/Bk8sN7VJDQA7gptQTRXcxiAvI+9GjM8eu0L2S/v7vuTcZvBj4Bbvi6O+lHKXSO2rR55uzlQ5WYnu47MH7my8e2KZmjpbSLpISwO+V1Y6YL373rhuRBqMCOOTkqh1P8jHqResqbhF19pv1DDraY6JVaCPHdSbU62XF14ISkMWYv9JvfyFafIzahF0fQoeGNb4cFMcjFad2O9hxQVE3lBm0q9rr4tGjSfR5MByJpjcvGc55htchxt97MzJqwHhge2vSCk/SNxcP1tuK2GXmWvFQX70zJAz7Cs9yX3uBYLXrRpbicTlwDDtfNYk2aGacr1jIKAGAD8lMqeUXz1DREIFZ7BhbRcmlGrjHBGA2EDRSLArekwJNlIKJiIJu0IRJdhUhcYCdpLyiInVGGxl4vpUtWy3wjG8XcaJmrbnwNGRgMYLv8S4Wow5wJuzmsIVTOokq9jfPfcgIUOx1HBxKKixNqw8ZpDWf81pAnq/toebikdTfbYOiCNBvDY8NwFq8F3TzpWsN+XlM5irFw8G7xkT//JFzkEtRSl2LKxE66T6F/mboiARY6OHCTv6av8N69nZjCNNQ9g8t0r4ClvnORfzl8gDJnIeDon87S7+Kmk3RsJ/E0iIHzLJOTvqEM3HldcpnMvLzWA6W0nSQYYuuZgFGEuCu20oihwHKQGc+/+HbQMffzqNVtt0KRKAR4kFsV/OuZyP57SYVvKNObfMhh9BLshQ8v9K+ZnjyLMYeuviJs7j27aS0MQ9Rd17QXeBtLTiusT5e3KYGFmxT5aBAbMEasOj518XJ+TZ0wf5vorfsTNk1pLj9fejAeD1ihmFqj4XsC9UIaPuIeN3XJl3hj9HhoarHhhn8JkQVWe+D+92fnnY7CGGT3vh/XPDT/JyjvdJeit8jKY0+Es1ZipS+cFc/FfdVcJLKqMyBm6gJZOHaHCf0MJNjcwX2BLGyZ9fz1woXZ+BcR5V1b7EzmrzfRUA2VSL5xFfA9cTzW866kz6jU+1VbBhmvuj2X/yx4+KiXM18dVI45zf3JEyas2+OGNnZdfxcFogeqeFxE3BwmaQm9bQRs9ts35wayHrFqembhBN1pcGIBdzWcPbYu5UQL03iKN50asDeJ4SHKY+5twgSUssTzv6LDZj2o1OdLsEASj7U55n+L6rGHNGrcVCWbwFKXafy7flvOmSoSJL49JmdFX0Df1ZuKWYmQvJ4KXlHoXKKa3yTlBg+GXXJGD8GBcAQDNC+A9ZAPrL0SkQvyeeVbLHKN+Rflls5oKbBdCzwFmsGbhcWfiFsLDIG/KkguTV2PwN1AcLwaAsGOJOpsW4VjwjdicX3OCRVSmGlgVoouilOL6mYMS+uZVWjZ5E+Unt3UxmBvB6LWrkoKv41rPAlTMh8NdXiiq02quoQSfxd0uT5XTfIbm4y/7BrH6R7tXzWWNou0giCbwJsss2eSGNSpR+p+hcAwTSr6ByZEvy/xxhl7aK1LzFCL+aofbXt78NaA9+uRPj2Umgsff578PuH0Snhu1BSIgUk/RY4D/Qr7wtQrV/1rA20YCo3QHRgMY7g61GpeEgYyT1sRMd3nlRmVM4xGB2Wi09reAyHOqjQ1GVD5qBI+trcxlWxWiQkKidIqSiQ+tG4prWcuA4rPplsV3YGUUVYFr8aim1lDfHtA/Ftmz3jKC+5Qjd4gwe/EXe0xgdn2ctKDjUgGyFKftzYweV2wXxrBA9zF6Wa9ACgPbFMhdqK1I3EYHos/H1UhwGRCQTIni1P9aLWpr6yCZKuAX9WPtaEtRT4CrEqbjcmT/VqcVFJTBGjK6QQSBZAiJ0nfHaNa6dD8mBwPl69z/nZMySbSYha6d98wPiiaxcSsn1AQv8NTX9La6zU171LxwJDVXCQR2ORc3LTj/9zB8wKi7ADvHfHbhugo8XM6s89iHchd56CRnB9z6w4/9Wvnv6yQyFzYSX873SH6DlH1Pc3rc4ODFUu4wo5u1AbZuA6WTE8j5EA2BiyrWNgz0Db06nhUQp7iXLW9vbd87v5gZQp2znl8iveGM//JwJVPyO5kxXgfkCnLn+ezdS767+M5kFCrk1RTukSCtyKGPvbWUINLCAhBjk/WMWMxslBKwZuMjetSFCdHv6PVCjDuoEwdY7R46lEZN8I8BHrj/8B7gHh7KrwhRNLa/5f6gIRsjfWxCpficqVK/VAtY3oxnPUGWfS9Gu4f5OecFT8w+Uge0i9N/nOx0kn/AmFKs28oQr9bSSYVeokZlDUTiSG3l3TIPZx9IO/Rg938N4UObZREHoaocRfUE9d94Ko6iwTQ6DTx0Df6WBucSutaGphxfE28EScNNGXre6aVv1VbF4UCKybw9Rm10h1ZmGASzmJLwGXoytxswtjA4ed/t9lGu6n91dyIJEOiO5zYdExb1SUaabeQv3w/t4gTGDYe8fjmTn047eeRT9n2Y8tgNFOTALuJFJyIpMmu9cXnLfccMLm4I4yzVQl3qKhAvUyK6JALq/2nifyVuGNFiVB5rFtLklqLJgMzdNxITMF7FdFpBh1BVswOlbUQZsEfnf0iyGHCwxSIFcBtWsA/IuGFQ2apNTng368ZsF4ahT98LIeyghsOjNPrjOi9QszZzXRUdrYdwVTwRv9Jn9leQLbo6nwGKhUVczx/OQzuZ//Gm5PYnoKA/O7zOXj893kN7REpozrss2cLb5Z22B44BKrSwQPdYTij7veBISWOKAMNibPMIh6ooKa2qxdYgN8F7qJV5vrVMZJj47ik2U+9UkpjESSSJpaRyAXEKBa8OLdIuWjGeFJ9bULSOzdnfMalxgUrShTOES13ckrl8dv4K2xMunLAw0Q/Sx43WIl3K09207tvmDSpBtjFAc2hB8UM4tSUyPVqdnvfH/EU2qCMU7M7pxBaclkipjw/Poh2h4Ik+6oL1SG8cFlVM1RmN/Wrdd8CCWfP+WmsDQney/XPDKvXvVN8eYTLjzXc9gBcRNWMHq+RcI4GDDTMH0EI+Aca3+4tKlSR9P8c3whuYFxxm7Mfe6QVeiSwtkBLsCw7mPPan5tumbk34mUSe0o1hyF7OUTb6SIi4qvvHg7NGmNlMMs6qGG8qgrWVZC9yUvKyyYF3T1XeaJKGEbaMZXGpcaceQrfvRZUXMi88Kv7WtWV/ewLbIL42GeQymBAHU+YL1ai+DqclcbBWGUHQqyWx1VjTJkbfsVmlT8VEH0oy9LAHVUX4uUAjJu/L9gyoHNiOQG74qC2q8By7DGk1c8j1XRpGYweTq1EcP7W8RJShjP4ZI1wstHkesUYvvlmHjQvUcJTTuoP7osG3W1Ms9sKux279pj4Yb1tp8Lf8vNQg5uvQtuYgr8gYJcvzmKtMyFr3hM91xNe2tFekYocuMZpNIcFG9umS16sFYW4mz/cJRC4pLnYBAO5nZO6NvXM7Thlt/hFRbF4aQVfWVvoH5u50l4TE/qY47cucgxlFsDi0p8f/HmITdDyLnU3WPOsP8uPw2tks7HI0fVPjEuIawQrX+ueVoJN8TYn8NcJgUqa0UP3Tsm9Wbq1atL6nGS0hwPg3s0RHWFD8CK3zzf9Co0UhmN5JHMGNI+VUN0C/l+OUEp41MXVPCCpeJielJiPdqMNYALgRmgsBveOjhrk3doI2J9PZckfkPo0SCfzNzmnBnRhCId+qoSUnBHqdnrPW1SrEFCHz4VDqD/oVmsYsQCG5EIBQZutg2tdTYrorql2OnfndfkaKrluc9QHNTTvBonPypD2oyF2qq2Nyc/ZGIWoF5u4YGg7drWjZGbjATvNYjnZHH+qz/VsaPT3RK6aD3YKhp9E3XIrYCn/jmpQQaadC9WSUR17lKI09NtEwLn/PudsQtag4FvIHAv3bCXa3CKMOuLC3U+3gDQavcyZOIyw2Q5jqO5SZugFUikJ5fnWyE8u5J+k3JCK9jS3nhZnCEzyo0mSNhF2Rd0btA4Bt06AU7nSJVjHiI7Y7FEwrDspbbrreWdEzKfgVPXiPQt1OD7+YJyxuvVk8/MGMnbSt5ebYWVmqCUvbUhfyX1A6FLkm7pcx1HrFz9d/dcs+DqUKzj7ho4N6sNtxvTNgu1mn8wHue/+SWj/36crbxPhdrh01DIl0sh2btpUBwDG5Zc6Gi542FLTdJ9DV7sebrjHJPxWhkz1htgJlf9FY/fvyDpuIXxotEoIJS50+PuGK/tOX3O8FMmiN7iYyOUFShlrKUbquzY9xlifMsPDqqN8t78iGPo/5LAYacq0Hz49PEMrFoVGJz1MANUYbXm69zLC0AvLH24omzabyBqKagzHqmT5FtL011r5Bl5mmQaEfjXGrvTzZrTPORdtX25N6IocJGtVNjl2h8CVVd4x+2MK7COv4qj5WLCdPY9CW14tqFrT98fLVNp5poh2NdBO/z61Hap/nYY/YNS3OcDORlmvXMdTJ7yp7TFSG7XUmTHt8/Kj+etznAysmS9aO+VHLb5nK9p8ekNpjs3XwqTQTPlc7SjczjKzNHhbe1h4TNekIYycvfaEV9IJlf0oFw1YRQh1z5ax1IvTotMQkbHhDloGL902ORLIQJmUKjGc/hOTmC+kcaLVz6BwbejelztiAfn1oBSDk8a1gd585XoDbbRTFlgglPjfwA9GF1NEKDo8tzqu/z3KvPaEbDRDjxA/hfdVlFIf5pRJWpakHtoVVfs+vSAau96BB9lhzp4z0halZjFYyDI2hAEp6TUj1E29ThWJB7dpJNsebsJbrhdeGjMoEK0zSxfnx8AVmkiFhA6mtYsnMEzp6FhDv6AStuaym9/nmFau30wV3RfqQAiO7UljfGtlSk3RU7cUgQKbh/8RGJo4sYjCTQ9rnDfjJvSN+CuTYAuoqExPL3k0YWpJi6a90vrLHToFt+I3sgpkM1q6gzBTAAusHwQmuWgdkVwuciTnbYzMO8lXENBPODD0JgT0M6W49+wqJpUC3PxTQYjm1IxhsOZs1hA9WCMzBgerkuzCWZ7v3Z/tsX2uAHDbEsc+D2+iGlAMzxTtqJNkBWgn+bhGA9owfG9d4HmBLgs6m+HAkCOULndkdIE8/aCICB0nDNBkxO66fZH2jwSa6K5rwhKkOW4pr+pLtTvRqqdI4oDb1r134AwDfk= \ No newline at end of file diff --git a/unpackage/cache/wgt/__UNI__A789D1D/app-service.js b/unpackage/cache/wgt/__UNI__A789D1D/app-service.js index d1eeee5..81d0f37 100644 --- a/unpackage/cache/wgt/__UNI__A789D1D/app-service.js +++ b/unpackage/cache/wgt/__UNI__A789D1D/app-service.js @@ -1 +1 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function a(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}const n="http://192.168.60.99:9004/",i={BASE_API:n};function l(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.uploadFile({url:n+"api/admin/upload-file",filePath:e,name:"file",formData:{token:t},success:e=>{try{const t=JSON.parse(e.data);a(t)}catch(t){i(t)}},fail:i})}))}const o=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};let s=1,r=!1,c=!1,d=!0;const m=o({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){c=this.asyncFlag,d=this.voiceFlag,r=this.barcodeFlag},onLoad(){this.updateDate(),this.initAndroidComponents(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){a("log","at pages/index/index.vue:227","inventory Show"),this.initBarcodeScan(),this.disableBarcodeScanKey(),this.registerKeyReceiver()},onHide(){a("log","at pages/index/index.vue:238","inventory Hide"),this.main&&this.receiver&&this.main.unregisterReceiver(this.receiver)},methods:{updateDate(){const e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.currentDate=`${t}-${a}-${n}`},handleScan(e){this.scanType=e,uni.scanCode({success:t=>{let n=t.result.trim();a("log","at pages/index/index.vue:342","id2:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===e?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):uni.showToast({title:"二维码信息错误",icon:"none"}):uni.showToast({title:"二维码无效",icon:"none"})},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var t,i;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const l={page:this.planPage,page_size:this.planPageSize},o=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/material-infos-plan/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}(l);if(a("log","at pages/index/index.vue:399","盘点计划列表响应:",o),o.data&&40001===o.data.errcode)return uni.showToast({title:(null==(t=o.data)?void 0:t.errmsg)||"获取盘点计划失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,a=t.data||[];this.inventoryPlanList=e?a:[...this.inventoryPlanList,...a],this.planTotal=t.total||0,this.planHasMore=a.length===this.planPageSize,this.planHasMore&&this.planPage++}else uni.showToast({title:(null==(i=o.data)?void 0:i.message)||"获取盘点计划失败",icon:"none"})}catch(l){a("error","at pages/index/index.vue:433","获取盘点计划列表失败:",l),uni.showToast({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},viewPlanDetail(e){a("log","at pages/index/index.vue:485","查看计划详情:",e);const t=encodeURIComponent(JSON.stringify(e));uni.navigateTo({url:`/pages/plan-detail/plan-detail?planInfo=${t}&planId=${e.id}`})},getProgress(e){if(2===e.status)return 100;if(0===e.status)return 0;const t=new Date,a=new Date(e.start_date),n=new Date(e.end_date);if(tn)return 100;const i=n.getTime()-a.getTime(),l=t.getTime()-a.getTime();return Math.round(l/i*100)},initAndroidComponents(){try{this.main=plus.android.runtimeMainActivity(),this.hhwUHFController=getApp().globalData.hhwUHFController,this.globalEvent=getApp().globalData.globalEvent}catch(e){a("error","at pages/index/index.vue:523","初始化Android组件失败:",e)}},initUHFEvent(){this.globalEvent&&this.globalEvent.addEventListener("uhf_tag_event",(e=>{this.handleUHFEvent(e)}))},handleUHFEvent(e){a("log","at pages/index/index.vue:539",e.tag_info_list);var t=e.tag_info_list;if(null!=t){for(var n=0;n{plus.android.importClass(t);var n=t.getIntExtra("keyCode",0),i=t.getBooleanExtra("keydown",!1);i&&1==s&&137==n?(a("log","at pages/index/index.vue:600","inventory","receive keyUp code: "+n),r?this.startBarcodeScan():this.startInventory(),s++):i||(r?this.stopBarcodeScan():this.stopInventory(),s=1)}}),this.main.registerReceiver(this.receiver,e)}},disableBarcodeScanKey(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.KEY_SET");e.putExtra("keyValueArray",["137"]),e.putExtra("137",!1),this.main.sendBroadcast(e)}},bytes2HexString:e=>Array.from(e,(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(""),hexString2Bytes(e){var t=0,a=e.length;if(a%2!=0)return null;a/=2;for(var n=new Array,i=0;i({id:e.id||e.material_info_id||e.inventory_id||"",zichanmingcheng:e.zichanmingcheng||"",total_num:e.total_num??e.inventorys_total??e.zaikushuliang??0})))},normalizeScannedId(e){if(!e)return"";const t=String(e).trim();if(/^\d+$/.test(t))return t;if(/^\d+(?:\.\d+)?$/.test(t)){const e=Number(t);if(!Number.isNaN(e)&&Number.isFinite(e))return Math.trunc(e).toString()}return""},goInventoryFromList(e){const t=e&&e.id;t?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(t)}`}):uni.showToast({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_INIT");this.main.sendBroadcast(e)}},startBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_CMD");this.main.sendBroadcast(e)}},stopBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.STOP_SCAN");this.main.sendBroadcast(e)}},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.hhwUHFController?(this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点",this.hhwUHFController.setCancleInventoryFilter(),c?this.hhwUHFController.startInventory(30,0,!0,0,d,(e=>{a("log","at pages/index/index.vue:765","inventory inventory","startInventory "+e)})):(a("log","at pages/index/index.vue:769","async_flag"),this.hhwUHFController.startInventory(30,0,!1,0,d,(e=>{a("log","at pages/index/index.vue:771","inventory inventory","startInventory "+e)})))):uni.showToast({title:"UHF控制器未初始化",icon:"none"})},stopInventory(){this.hhwUHFController&&(c?this.hhwUHFController.stopInventory(!0):this.hhwUHFController.stopInventory(!1))},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((e=>e.epc)).filter(Boolean);if(!e.length)return void uni.showToast({title:"请先获取标签数据",icon:"none"});const t=e.join(",");uni.showLoading({title:"查询中..."}),function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/inventory/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}({ids:t,page:1,page_size:999}).then((e=>{uni.hideLoading(),a("log","at pages/index/index.vue:816","res:",e);const t=this.formatMaterialList(e);if(0===t.length)return this.taskList=[],void uni.showToast({title:"未查询到物资信息",icon:"none"});this.taskList=t})).catch((e=>{a("error","at pages/index/index.vue:829","viewMaterials error",e),uni.hideLoading(),uni.showToast({title:"获取物资失败",icon:"none"})}))},loadmore(){if(a("log","at pages/index/index.vue:839","inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)a("log","at pages/index/index.vue:841","inventory loadmore","nomore");else{var e;e=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var t=this.offset;to.loadMorePlans&&o.loadMorePlans(...e)),"lower-threshold":"100",onRefresherrefresh:a[8]||(a[8]=(...e)=>o.refreshPlans&&o.refreshPlans(...e)),"refresher-enabled":"true","refresher-triggered":l.planLoading},[e.createElementVNode("view",{class:"index-content"},[e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("button",{class:"main-btn",onClick:a[0]||(a[0]=(...e)=>o.scanInventory&&o.scanInventory(...e))},"扫码盘点"),e.createElementVNode("button",{class:"main-btn outline",onClick:a[1]||(a[1]=(...e)=>o.scanView&&o.scanView(...e))},"扫码查看")]),e.createElementVNode("view",{class:"inventory-section"},[e.createElementVNode("view",{class:"inventory-header"},[e.createElementVNode("text",{class:"inventory-title"},"标签盘点"),e.createElementVNode("text",{class:"tags-amount"},"标签数量: "+e.toDisplayString(l.tagsAmount),1)]),e.createElementVNode("scroll-view",{class:"tag-list","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>o.loadmore&&o.loadmore(...e)),"lower-threshold":"50"},[e.createElementVNode("view",{class:"list-item-head"},[e.createElementVNode("text",{class:"list-item-text-id"},"序号"),e.createElementVNode("text",{class:"list-item-text-epc"},"标签信息"),e.createElementVNode("text",{class:"list-item-text-count"},"次数"),e.createElementVNode("text",{class:"list-item-text-rssi"},"信号强度")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dataList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"list-item",key:t.id},[e.createElementVNode("text",{class:"list-item-text-id"},e.toDisplayString(t.id+1),1),e.createElementVNode("text",{class:"list-item-text-epc"},e.toDisplayString(t.epc),1),e.createElementVNode("text",{class:"list-item-text-count"},e.toDisplayString(t.count),1),e.createElementVNode("text",{class:"list-item-text-rssi"},e.toDisplayString(t.rssi),1)])))),128))],32),e.createElementVNode("view",{class:"inventory-options"}),e.createElementVNode("view",{class:"inventory-btn-box"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>o.handleInventory&&o.handleInventory(...e)),class:"inventory-btn"},e.toDisplayString(l.btn1Info),1),e.createElementVNode("button",{type:"primary",disabled:l.btn2Disabled,onClick:a[4]||(a[4]=(...e)=>o.viewMaterials&&o.viewMaterials(...e)),class:"inventory-btn"},"查看物资",8,["disabled"])]),e.createElementVNode("view",null,[e.createElementVNode("button",{type:"primary",disabled:l.btn3Disabled,onClick:a[5]||(a[5]=(...e)=>o.clearTags&&o.clearTags(...e)),class:"inventory-btn clear-btn"},"清空",8,["disabled"])])]),e.createElementVNode("view",{class:"task-section"},[e.createElementVNode("view",{class:"task-title"},"物资列表"),e.createElementVNode("view",{class:"task-list"},[e.createElementVNode("view",{class:"task-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},"物资名称")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"顺序号")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"库存")]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx","text-align":"right"}},[e.createElementVNode("text",{class:"task-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.taskList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"task-item",key:a},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},e.toDisplayString(t.zichanmingcheng),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.shunxuhao),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.total_num),1)]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>o.goInventoryFromList(t)),["stop"])},"盘点",8,["onClick"])])])))),128))])]),e.createElementVNode("view",{class:"inventory-plan-section"},[e.createElementVNode("view",{class:"inventory-plan-header"},[e.createElementVNode("text",{class:"inventory-plan-title"},"盘点计划")]),e.createElementVNode("view",{class:"plan-list"},[e.createElementVNode("view",{class:"plan-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},"计划名称")]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:"plan-time"},"状态")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"开始日期")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"结束日期")]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("text",{class:"plan-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventoryPlanList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"plan-item",key:t.id},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["plan-status","status-"+t.status])},e.toDisplayString(o.getStatusText(t.status)),3)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(o.formatDate(t.start_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(o.formatDate(t.end_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>o.viewPlanDetail(t)),["stop"])},"查看",8,["onClick"])])])))),128))]),l.planLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.planHasMore&&l.inventoryPlanList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)]),l.showH5Scan?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h5-scan-modal"},[e.createElementVNode("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),e.createElementVNode("button",{onClick:a[6]||(a[6]=(...e)=>o.closeH5Scan&&o.closeH5Scan(...e))},"关闭")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);const u=o({data:()=>({userInfo:{}}),onShow(){(function(){const e=uni.getStorageSync("token");return new Promise(((t,a)=>{uni.request({url:n+"api/admin/auth/me",method:"POST",data:{token:e},success:t,fail:a})}))})().then((e=>{e.data?(a("log","at pages/profile/profile.vue:36","返回数据",e.data),this.userInfo=e.data):uni.showToast({title:e.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{uni.showToast({title:"网络错误",icon:"none"})}))},methods:{logout(){uni.removeStorageSync("token"),uni.reLaunch({url:"/pages/login/login"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"profile-container"},[e.createElementVNode("view",{class:"avatar-section"},[e.createElementVNode("image",{class:"avatar",src:l.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"info-section"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"用户名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.username||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"姓名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.name||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"部门:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.department&&l.userInfo.department.name||"-"),1)])]),e.createElementVNode("button",{class:"logout-btn",onClick:a[0]||(a[0]=(...e)=>o.logout&&o.logout(...e))},"退出登录")])}]]);const h=o({data:()=>({username:"",password:""}),methods:{handleLogin(){var e,t;this.username&&this.password?(uni.showLoading({title:"登录中...",mask:!0}),(e=this.username,t=this.password,new Promise(((a,i)=>{uni.request({url:n+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:a,fail:i})}))).then((e=>{uni.hideLoading(),a("log","at pages/login/login.vue:41",e),e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(a("log","at pages/login/login.vue:48",e.data.access_token),e.data.access_token&&uni.setStorageSync("token",e.data.access_token),uni.showToast({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{uni.switchTab({url:"/pages/index/index"})}),1500))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"网络错误",icon:"none"})}))):uni.showToast({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"login-bg"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-title"},"欢迎登录"),e.createElementVNode("view",{class:"login-subtitle"},"河道防汛物资管理系统"),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"用户名"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>l.username=e),placeholder:"请输入用户名"},null,512),[[e.vModelText,l.username]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"密码"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"password","onUpdate:modelValue":a[1]||(a[1]=e=>l.password=e),placeholder:"请输入密码"},null,512),[[e.vModelText,l.password]])]),e.createElementVNode("button",{class:"login-btn",onClick:a[2]||(a[2]=(...e)=>o.handleLogin&&o.handleLogin(...e))},"登 录")])])}]]);const p=o({data:()=>({result:""}),methods:{doScan(){uni.scanCode({success:e=>{this.result=e.result},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"scan-bg"},[e.createElementVNode("view",{class:"scan-title"},"扫码盘点"),e.createElementVNode("button",{class:"scan-btn",onClick:a[0]||(a[0]=(...e)=>o.doScan&&o.doScan(...e))},"点击开始扫码"),l.result?(e.openBlock(),e.createElementBlock("view",{key:0,class:"scan-result"},[e.createElementVNode("text",{class:"result-label"},"扫码结果:"),e.createElementVNode("text",{class:"result-value"},e.toDisplayString(l.result),1)])):e.createCommentVNode("",!0)])}]]);const g=o({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:""}),onLoad(e){this.isViewMode="1"===e.view,this.date=this.getToday(),this.materialId=e.code,a("log","at pages/inventory/inventory.vue:196","materialId:",this.materialId),this.materialId&&function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/inventory/show",method:"GET",data:{id:e,token:t},success:a,fail:i})}))}(this.materialId).then((e=>{if(a("log","at pages/inventory/inventory.vue:199","response:",e),e.data){const t=e.data;this.material_info_id=t.wuzibianma_material_infos_wuzibianma_relation.id;const a=t.wuzibianma_material_infos_wuzibianma_relation||{},n=a.fenlei_detail||{},i=t.wuzizhuangtai_detail||{},l=t.chubeifangshi_detail||{},o=t.dengjifenlei_detail||{},s=t.chanquanxinxi_detail||{},r=t.materialstorages||{},c=t.shelfs||{},d=t.equipment_maintain_config||{},m=t.material_info_type||"";if(m){const e=m.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=n.name||"-",this.materialName=t.zichanmingcheng||"-",this.materialCode=t.wuzibianma||"-",this.materialType=t.wuzileixing||"-",this.materialSpec=a.guigexinghao||t.guigexinghao||"-",this.materialSize=a.wuziguige||"-",this.unit=a.jiliangdanwei||t.jiliangdanwei||"-",this.batchNumber=t.rukupici||"-",this.stockQty=t.zaikushuliang||t.inventorys_total||"0",this.sequenceNumber=t.shunxuhao||"-",this.waitNum=t.wait_num||"-",this.productionDate=t.shengchanriqi||"-",this.storageDate=t.rukuriqi||"-",this.materialStatus=i.value||"-",this.reserveMethod=l.value||"-",this.warehouseName=r.cangkumingcheng||"-",this.shelfName=c.huojiamingcheng||"-",this.shelfLayer=t.huojiaceng||"-",this.levelCategory=o.value||"-",this.propertyInfo=s.value||"-",this.isFixedAsset=t.shifouweigudingzichan||"-",this.fixedAssetCode=t.gudingzichanbianma||"-",this.reserveYears=t.chubeinianxian||"-",this.storageRequirement=t.cunfangyaoqiu||"-",this.maintenanceRequirement=t.weihuyaoqiu||"-",this.maintenanceFrequency=d.name||"-",this.material_infos_plan_id=t.material_infos_plan_id||""}else uni.showToast({title:"未获取到物资信息",icon:"none"})})).catch((()=>{uni.showToast({title:"获取物资信息失败",icon:"none"})}))},methods:{getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?uni.showToast({title:"最多上传3张照片",icon:"none"}):uni.chooseImage({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void uni.showToast({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void uni.showToast({title:"盘点数量必须为0或正整数",icon:"none"});uni.showLoading({title:"提交中..."});let e=[];for(let a=0;a{a("log","at api.js:87","confirm接口"),uni.request({url:n+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...e,token:t},success:i,fail:l})}))}(t).then((e=>{a("log","at pages/inventory/inventory.vue:372","res:",e),uni.hideLoading(),!e||e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"提交失败",icon:"none"}):(uni.showToast({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{uni.reLaunch({url:"/pages/index/index"})}),1200))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}))}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"inventory-bg"},[e.createElementVNode("view",{class:"inventory-card"},[e.createElementVNode("view",{class:"readonly-group"},[e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"一级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.firstCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"二级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.secondCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所属种类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.categoryName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资名称"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资类型"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialType),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资型号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSpec),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资规格"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSize),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"单位"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.unit),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库批次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.batchNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"在库数量"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.stockQty)+e.toDisplayString(l.unit?" "+l.unit:""),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"顺序号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.sequenceNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"待出库"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.waitNum),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"生产日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.productionDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资状态"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialStatus),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备方式"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveMethod),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在仓库"),e.createElementVNode("view",{class:"readonly-value"},e.toDisplayString(l.warehouseName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架层"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfLayer),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"等级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.levelCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"产权信息"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.propertyInfo),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"是否为固定资产"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.isFixedAsset),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"固定资产编码"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.fixedAssetCode),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备年限"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveYears),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"存放要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"维护要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"保养频次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceFrequency),1)])]),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点数量"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"number","onUpdate:modelValue":a[0]||(a[0]=e=>l.countQty=e),placeholder:"请输入盘点数量"},null,512),[[e.vModelText,l.countQty]])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点备注"),e.withDirectives(e.createElementVNode("textarea",{class:"form-textarea","onUpdate:modelValue":a[1]||(a[1]=e=>l.remark=e),placeholder:"请输入备注信息"},null,512),[[e.vModelText,l.remark]])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"照片上传"),e.createElementVNode("view",{class:"photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"photo-preview"},[e.createElementVNode("image",{src:t,mode:"aspectFill",class:"photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"photo-del",onClick:e=>o.deletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.photos.length<3?(e.openBlock(),e.createElementBlock("button",{key:0,class:"photo-btn",onClick:a[2]||(a[2]=(...e)=>o.choosePhoto&&o.choosePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:3,class:"submit-btn",onClick:a[3]||(a[3]=(...e)=>o.submit&&o.submit(...e))},"提交盘点"))])])}]]);const v=o({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(e){if(e.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(e.planInfo)),this.planId=this.planInfo.id}catch(t){a("error","at pages/plan-detail/plan-detail.vue:143","解析计划信息失败:",t)}e.planId&&(this.planId=e.planId),uni.setNavigationBarTitle({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(e=!1){var t,i;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,e&&(this.materialPage=1,this.materialHasMore=!0);const l={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},o=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/material-infos-plan-link/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}(l);if(a("log","at pages/plan-detail/plan-detail.vue:194","物资列表响应:",o),o.data&&40001===o.data.errcode)return uni.showToast({title:(null==(t=o.data)?void 0:t.errmsg)||"获取物资列表失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,a=t.data||[];this.materialList=e?a:[...this.materialList,...a],this.materialTotal=t.total||0,this.materialHasMore=a.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else uni.showToast({title:(null==(i=o.data)?void 0:i.message)||"获取物资列表失败",icon:"none"})}catch(l){a("error","at pages/plan-detail/plan-detail.vue:231","获取物资列表失败:",l),uni.showToast({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),getInventoryStatusText:e=>({0:"待盘点",1:"已盘点"}[e]||"待盘点"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(e){a("log","at pages/plan-detail/plan-detail.vue:292","开始盘点物资:",e),e.inventorys_id?uni.navigateTo({url:`/pages/inventory/inventory?code=${e.inventorys_id}`}):uni.showToast({title:"暂无盘点信息",icon:"none"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("scroll-view",{class:"plan-detail-container","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>o.loadMoreMaterials&&o.loadMoreMaterials(...e)),"lower-threshold":"100",onRefresherrefresh:a[3]||(a[3]=(...e)=>o.refreshMaterials&&o.refreshMaterials(...e)),"refresher-enabled":"true","refresher-triggered":l.materialLoading},[e.createElementVNode("view",{class:"plan-info-card"},[e.createElementVNode("view",{class:"plan-info-header"},[e.createElementVNode("text",{class:"plan-info-title"},"盘点计划详情")]),e.createElementVNode("view",{class:"plan-info-content"},[e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划名称"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.name||"暂无"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划编号"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.no||"暂无"),1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"盘点类型"),e.createElementVNode("text",{class:"info-value type-text"},e.toDisplayString(o.getTypeText(l.planInfo.type)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"物资数量"),e.createElementVNode("text",{class:"info-value count-text"},e.toDisplayString(l.planInfo.chart_total||0)+" 项",1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"开始时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(o.formatDate(l.planInfo.start_date)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"结束时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(o.formatDate(l.planInfo.end_date)),1)])]),e.createElementVNode("view",{class:"status-row"},[e.createElementVNode("view",{class:"status-item"},[e.createElementVNode("text",{class:"status-label"},"计划状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-badge","status-"+l.planInfo.status])},[e.createElementVNode("text",{class:"status-text"},e.toDisplayString(o.getStatusText(l.planInfo.status)),1)],2)])])])]),e.createElementVNode("view",{class:"material-list-card"},[e.createElementVNode("view",{class:"material-list-header"},[e.createElementVNode("text",{class:"material-list-title"},"盘点物资列表"),e.createElementVNode("text",{class:"material-count"},"共 "+e.toDisplayString(l.materialTotal)+" 项",1)]),e.createElementVNode("view",{class:"material-search-bar"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"请输入物资名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.materialKeyword=e)},null,512),[[e.vModelText,l.materialKeyword]]),e.createElementVNode("button",{size:"mini",type:"primary",onClick:a[1]||(a[1]=(...e)=>o.searchMaterials&&o.searchMaterials(...e))},"搜索")]),e.createElementVNode("view",{class:"material-list"},[e.createElementVNode("view",{class:"material-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},"物资名称")]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},"物资型号")]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},"物资规格")]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:"material-time"},"状态")]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("text",{class:"material-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.materialList,(t=>{var a,n,i;return e.openBlock(),e.createElementBlock("view",{class:"material-item",key:t.id},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},e.toDisplayString((null==(a=t.inventory)?void 0:a.zichanmingcheng)||"未知物资"),1)]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(n=t.inventory)?void 0:n.guigexinghao)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(i=t.inventory)?void 0:i.wuziguige)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["material-status","status-"+(t.status||0)])},e.toDisplayString(o.getInventoryStatusText(t.status)),3)]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("view",{class:"inventory-action-btn",onClick:e.withModifiers((e=>o.startInventory(t)),["stop"])},[e.createElementVNode("text",{class:"inventory-btn-text"},"盘点")],8,["onClick"])])])})),128))]),l.materialLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.materialHasMore&&l.materialList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);__definePage("pages/index/index",m),__definePage("pages/profile/profile",u),__definePage("pages/login/login",h),__definePage("pages/scan/scan",p),__definePage("pages/inventory/inventory",g),__definePage("pages/plan-detail/plan-detail",v);let y=null;var f;"undefined"!=typeof plus&&plus.android&&(y=plus.android.runtimeMainActivity(),"android"==uni.getSystemInfoSync().platform&&(plus.runtime.quit=function(){setTimeout((()=>{y.finish()}),10)}));const E={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){a("log","at App.vue:28","App Launch"),this.globalData.hhwUHFController=t("HL-HHWUHFController"),this.globalData.globalEvent=t("globalEvent"),f=this.globalData.hhwUHFController;const e=uni.getStorageSync("token");e?uni.reLaunch({url:"/pages/index/index"}):(uni.reLaunch({url:"/pages/login/login"}),a("log","at App.vue:41","App Launch token1234",e))},onShow:function(){if(a("log","at App.vue:47","App Show"),f){f.setDebuggable(!0,(e=>{a("log","at App.vue:54","App Show","setDebuggable: "+e)}));var e=Date.now();f.initUhf((t=>{a("log","at App.vue:61","App Show","initUHF: "+t,"cusTime: "+(Date.now()-e)),uni.showToast({title:"初始化成功",icon:"none",duration:1e3})}))}},onHide:function(){a("log","at App.vue:76","App Hide"),f&&f.closeUhf((e=>{a("log","at App.vue:83","App Hide","closeUhf: "+e),uni.showToast({title:"关闭成功",icon:"none",duration:1e3})}))}};const{app:N,Vuex:w,Pinia:V}=function(){const t=e.createVueApp(E);return t.config.globalProperties.$config=i,{app:t}}();uni.Vuex=w,uni.Pinia=V,N.provide("__globalStyles",__uniConfig.styles),N._component.mpType="app",N._component.render=()=>{},N.mount("#app")}(Vue); +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function a(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}const n="http://192.168.60.99:9004/",o={BASE_API:n};function l(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.uploadFile({url:n+"api/admin/upload-file",filePath:e,name:"file",formData:{token:t},success:e=>{try{const t=JSON.parse(e.data);a(t)}catch(t){o(t)}},fail:o})}))}const i=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a};let s=1,r=!1,c=!1,d=!0;const m=i({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){c=this.asyncFlag,d=this.voiceFlag,r=this.barcodeFlag},onLoad(){this.updateDate(),this.initAndroidComponents(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){a("log","at pages/index/index.vue:227","inventory Show"),this.initBarcodeScan(),this.disableBarcodeScanKey(),this.registerKeyReceiver()},onHide(){a("log","at pages/index/index.vue:238","inventory Hide"),this.main&&this.receiver&&this.main.unregisterReceiver(this.receiver)},methods:{updateDate(){const e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.currentDate=`${t}-${a}-${n}`},handleScan(e){this.scanType=e,uni.scanCode({success:t=>{let n=t.result.trim();a("log","at pages/index/index.vue:342","id2:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===e?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):uni.showToast({title:"二维码信息错误",icon:"none"}):uni.showToast({title:"二维码无效",icon:"none"})},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var t,o;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const l={page:this.planPage,page_size:this.planPageSize},i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/material-infos-plan/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(l);if(a("log","at pages/index/index.vue:399","盘点计划列表响应:",i),i.data&&40001===i.data.errcode)return uni.showToast({title:(null==(t=i.data)?void 0:t.errmsg)||"获取盘点计划失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(i.data&&i.data.list){const t=i.data.list,a=t.data||[];this.inventoryPlanList=e?a:[...this.inventoryPlanList,...a],this.planTotal=t.total||0,this.planHasMore=a.length===this.planPageSize,this.planHasMore&&this.planPage++}else uni.showToast({title:(null==(o=i.data)?void 0:o.message)||"获取盘点计划失败",icon:"none"})}catch(l){a("error","at pages/index/index.vue:433","获取盘点计划列表失败:",l),uni.showToast({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},viewPlanDetail(e){a("log","at pages/index/index.vue:485","查看计划详情:",e);const t=encodeURIComponent(JSON.stringify(e));uni.navigateTo({url:`/pages/plan-detail/plan-detail?planInfo=${t}&planId=${e.id}`})},getProgress(e){if(2===e.status)return 100;if(0===e.status)return 0;const t=new Date,a=new Date(e.start_date),n=new Date(e.end_date);if(tn)return 100;const o=n.getTime()-a.getTime(),l=t.getTime()-a.getTime();return Math.round(l/o*100)},initAndroidComponents(){try{this.main=plus.android.runtimeMainActivity(),this.hhwUHFController=getApp().globalData.hhwUHFController,this.globalEvent=getApp().globalData.globalEvent}catch(e){a("error","at pages/index/index.vue:523","初始化Android组件失败:",e)}},initUHFEvent(){this.globalEvent&&this.globalEvent.addEventListener("uhf_tag_event",(e=>{this.handleUHFEvent(e)}))},handleUHFEvent(e){a("log","at pages/index/index.vue:539",e.tag_info_list);var t=e.tag_info_list;if(null!=t){for(var n=0;n{plus.android.importClass(t);var n=t.getIntExtra("keyCode",0),o=t.getBooleanExtra("keydown",!1);o&&1==s&&137==n?(a("log","at pages/index/index.vue:600","inventory","receive keyUp code: "+n),r?this.startBarcodeScan():this.startInventory(),s++):o||(r?this.stopBarcodeScan():this.stopInventory(),s=1)}}),this.main.registerReceiver(this.receiver,e)}},disableBarcodeScanKey(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.KEY_SET");e.putExtra("keyValueArray",["137"]),e.putExtra("137",!1),this.main.sendBroadcast(e)}},bytes2HexString:e=>Array.from(e,(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(""),hexString2Bytes(e){var t=0,a=e.length;if(a%2!=0)return null;a/=2;for(var n=new Array,o=0;o({id:e.id||e.material_info_id||e.inventory_id||"",zichanmingcheng:e.zichanmingcheng||"",total_num:e.total_num??e.inventorys_total??e.zaikushuliang??0})))},normalizeScannedId(e){if(!e)return"";const t=String(e).trim();if(/^\d+$/.test(t))return t;if(/^\d+(?:\.\d+)?$/.test(t)){const e=Number(t);if(!Number.isNaN(e)&&Number.isFinite(e))return Math.trunc(e).toString()}return""},goInventoryFromList(e){const t=e&&e.id;t?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(t)}`}):uni.showToast({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_INIT");this.main.sendBroadcast(e)}},startBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_CMD");this.main.sendBroadcast(e)}},stopBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.STOP_SCAN");this.main.sendBroadcast(e)}},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.hhwUHFController?(this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点",this.hhwUHFController.setCancleInventoryFilter(),c?this.hhwUHFController.startInventory(30,0,!0,0,d,(e=>{a("log","at pages/index/index.vue:765","inventory inventory","startInventory "+e)})):(a("log","at pages/index/index.vue:769","async_flag"),this.hhwUHFController.startInventory(30,0,!1,0,d,(e=>{a("log","at pages/index/index.vue:771","inventory inventory","startInventory "+e)})))):uni.showToast({title:"UHF控制器未初始化",icon:"none"})},stopInventory(){this.hhwUHFController&&(c?this.hhwUHFController.stopInventory(!0):this.hhwUHFController.stopInventory(!1))},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((e=>e.epc)).filter(Boolean);if(!e.length)return void uni.showToast({title:"请先获取标签数据",icon:"none"});const t=e.join(",");uni.showLoading({title:"查询中..."}),function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/inventory/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}({ids:t,page:1,page_size:999}).then((e=>{uni.hideLoading(),a("log","at pages/index/index.vue:816","res:",e);const t=this.formatMaterialList(e);if(0===t.length)return this.taskList=[],void uni.showToast({title:"未查询到物资信息",icon:"none"});this.taskList=t})).catch((e=>{a("error","at pages/index/index.vue:829","viewMaterials error",e),uni.hideLoading(),uni.showToast({title:"获取物资失败",icon:"none"})}))},loadmore(){if(a("log","at pages/index/index.vue:839","inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)a("log","at pages/index/index.vue:841","inventory loadmore","nomore");else{var e;e=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var t=this.offset;ti.loadMorePlans&&i.loadMorePlans(...e)),"lower-threshold":"100",onRefresherrefresh:a[8]||(a[8]=(...e)=>i.refreshPlans&&i.refreshPlans(...e)),"refresher-enabled":"true","refresher-triggered":l.planLoading},[e.createElementVNode("view",{class:"index-content"},[e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("button",{class:"main-btn",onClick:a[0]||(a[0]=(...e)=>i.scanInventory&&i.scanInventory(...e))},"扫码盘点"),e.createElementVNode("button",{class:"main-btn outline",onClick:a[1]||(a[1]=(...e)=>i.scanView&&i.scanView(...e))},"扫码查看")]),e.createElementVNode("view",{class:"inventory-section"},[e.createElementVNode("view",{class:"inventory-header"},[e.createElementVNode("text",{class:"inventory-title"},"标签盘点"),e.createElementVNode("text",{class:"tags-amount"},"标签数量: "+e.toDisplayString(l.tagsAmount),1)]),e.createElementVNode("scroll-view",{class:"tag-list","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>i.loadmore&&i.loadmore(...e)),"lower-threshold":"50"},[e.createElementVNode("view",{class:"list-item-head"},[e.createElementVNode("text",{class:"list-item-text-id"},"序号"),e.createElementVNode("text",{class:"list-item-text-epc"},"标签信息"),e.createElementVNode("text",{class:"list-item-text-count"},"次数"),e.createElementVNode("text",{class:"list-item-text-rssi"},"信号强度")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dataList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"list-item",key:t.id},[e.createElementVNode("text",{class:"list-item-text-id"},e.toDisplayString(t.id+1),1),e.createElementVNode("text",{class:"list-item-text-epc"},e.toDisplayString(t.epc),1),e.createElementVNode("text",{class:"list-item-text-count"},e.toDisplayString(t.count),1),e.createElementVNode("text",{class:"list-item-text-rssi"},e.toDisplayString(t.rssi),1)])))),128))],32),e.createElementVNode("view",{class:"inventory-options"}),e.createElementVNode("view",{class:"inventory-btn-box"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>i.handleInventory&&i.handleInventory(...e)),class:"inventory-btn"},e.toDisplayString(l.btn1Info),1),e.createElementVNode("button",{type:"primary",disabled:l.btn2Disabled,onClick:a[4]||(a[4]=(...e)=>i.viewMaterials&&i.viewMaterials(...e)),class:"inventory-btn"},"查看物资",8,["disabled"])]),e.createElementVNode("view",null,[e.createElementVNode("button",{type:"primary",disabled:l.btn3Disabled,onClick:a[5]||(a[5]=(...e)=>i.clearTags&&i.clearTags(...e)),class:"inventory-btn clear-btn"},"清空",8,["disabled"])])]),e.createElementVNode("view",{class:"task-section"},[e.createElementVNode("view",{class:"task-title"},"物资列表"),e.createElementVNode("view",{class:"task-list"},[e.createElementVNode("view",{class:"task-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},"物资名称")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"顺序号")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"库存")]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx","text-align":"right"}},[e.createElementVNode("text",{class:"task-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.taskList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"task-item",key:a},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},e.toDisplayString(t.zichanmingcheng),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.shunxuhao),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.total_num),1)]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>i.goInventoryFromList(t)),["stop"])},"盘点",8,["onClick"])])])))),128))])]),e.createElementVNode("view",{class:"inventory-plan-section"},[e.createElementVNode("view",{class:"inventory-plan-header"},[e.createElementVNode("text",{class:"inventory-plan-title"},"盘点计划")]),e.createElementVNode("view",{class:"plan-list"},[e.createElementVNode("view",{class:"plan-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},"计划名称")]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:"plan-time"},"状态")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"开始日期")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"结束日期")]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("text",{class:"plan-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventoryPlanList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"plan-item",key:t.id},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["plan-status","status-"+t.status])},e.toDisplayString(i.getStatusText(t.status)),3)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(i.formatDate(t.start_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(i.formatDate(t.end_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>i.viewPlanDetail(t)),["stop"])},"查看",8,["onClick"])])])))),128))]),l.planLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.planHasMore&&l.inventoryPlanList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)]),l.showH5Scan?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h5-scan-modal"},[e.createElementVNode("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),e.createElementVNode("button",{onClick:a[6]||(a[6]=(...e)=>i.closeH5Scan&&i.closeH5Scan(...e))},"关闭")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);const u=i({data:()=>({userInfo:{}}),onShow(){(function(){const e=uni.getStorageSync("token");return new Promise(((t,a)=>{uni.request({url:n+"api/admin/auth/me",method:"POST",data:{token:e},success:t,fail:a})}))})().then((e=>{e.data?(a("log","at pages/profile/profile.vue:36","返回数据",e.data),this.userInfo=e.data):uni.showToast({title:e.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{uni.showToast({title:"网络错误",icon:"none"})}))},methods:{logout(){uni.removeStorageSync("token"),uni.reLaunch({url:"/pages/login/login"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"profile-container"},[e.createElementVNode("view",{class:"avatar-section"},[e.createElementVNode("image",{class:"avatar",src:l.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"info-section"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"用户名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.username||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"姓名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.name||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"部门:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.department&&l.userInfo.department.name||"-"),1)])]),e.createElementVNode("button",{class:"logout-btn",onClick:a[0]||(a[0]=(...e)=>i.logout&&i.logout(...e))},"退出登录")])}]]);const p=i({data:()=>({username:"",password:""}),methods:{handleLogin(){var e,t;this.username&&this.password?(uni.showLoading({title:"登录中...",mask:!0}),(e=this.username,t=this.password,new Promise(((a,o)=>{uni.request({url:n+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:a,fail:o})}))).then((e=>{uni.hideLoading(),a("log","at pages/login/login.vue:41",e),e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(a("log","at pages/login/login.vue:48",e.data.access_token),e.data.access_token&&uni.setStorageSync("token",e.data.access_token),uni.showToast({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{uni.switchTab({url:"/pages/index/index"})}),1500))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"网络错误",icon:"none"})}))):uni.showToast({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"login-bg"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-title"},"欢迎登录"),e.createElementVNode("view",{class:"login-subtitle"},"河道防汛物资管理系统"),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"用户名"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>l.username=e),placeholder:"请输入用户名"},null,512),[[e.vModelText,l.username]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"密码"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"password","onUpdate:modelValue":a[1]||(a[1]=e=>l.password=e),placeholder:"请输入密码"},null,512),[[e.vModelText,l.password]])]),e.createElementVNode("button",{class:"login-btn",onClick:a[2]||(a[2]=(...e)=>i.handleLogin&&i.handleLogin(...e))},"登 录")])])}]]);const h=i({data:()=>({result:""}),methods:{doScan(){uni.scanCode({success:e=>{this.result=e.result},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"scan-bg"},[e.createElementVNode("view",{class:"scan-title"},"扫码盘点"),e.createElementVNode("button",{class:"scan-btn",onClick:a[0]||(a[0]=(...e)=>i.doScan&&i.doScan(...e))},"点击开始扫码"),l.result?(e.openBlock(),e.createElementBlock("view",{key:0,class:"scan-result"},[e.createElementVNode("text",{class:"result-label"},"扫码结果:"),e.createElementVNode("text",{class:"result-value"},e.toDisplayString(l.result),1)])):e.createCommentVNode("",!0)])}]]);const g=i({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:"",maintenanceRecords:[],showModal:!1,showDetailModal:!1,currentRecord:{},showCompleteModal:!1,completeForm:{actual_date:"",notes:"",photos:[],signature:""},currentMaintenanceRecord:null,signatureCtx:null,signaturePoints:[],isDrawing:!1}),onLoad(e){this.isViewMode="1"===e.view,this.date=this.getToday(),this.materialId=e.code,a("log","at pages/inventory/inventory.vue:434","materialId:",this.materialId),this.materialId&&(function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/inventory/show",method:"GET",data:{id:e,token:t},success:a,fail:o})}))}(this.materialId).then((e=>{if(a("log","at pages/inventory/inventory.vue:437","response:",e),e.data){const t=e.data;this.material_info_id=t.wuzibianma_material_infos_wuzibianma_relation.id;const a=t.wuzibianma_material_infos_wuzibianma_relation||{},n=a.fenlei_detail||{},o=t.wuzizhuangtai_detail||{},l=t.chubeifangshi_detail||{},i=t.dengjifenlei_detail||{},s=t.chanquanxinxi_detail||{},r=t.materialstorages||{},c=t.shelfs||{},d=t.equipment_maintain_config||{},m=t.material_info_type||"";if(m){const e=m.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=n.name||"-",this.materialName=t.zichanmingcheng||"-",this.materialCode=t.wuzibianma||"-",this.materialType=t.wuzileixing||"-",this.materialSpec=a.guigexinghao||t.guigexinghao||"-",this.materialSize=a.wuziguige||"-",this.unit=a.jiliangdanwei||t.jiliangdanwei||"-",this.batchNumber=t.rukupici||"-",this.stockQty=t.zaikushuliang||t.inventorys_total||"0",this.sequenceNumber=t.shunxuhao||"-",this.waitNum=t.wait_num||"-",this.productionDate=t.shengchanriqi||"-",this.storageDate=t.rukuriqi||"-",this.materialStatus=o.value||"-",this.reserveMethod=l.value||"-",this.warehouseName=r.cangkumingcheng||"-",this.shelfName=c.huojiamingcheng||"-",this.shelfLayer=t.huojiaceng||"-",this.levelCategory=i.value||"-",this.propertyInfo=s.value||"-",this.isFixedAsset=t.shifouweigudingzichan||"-",this.fixedAssetCode=t.gudingzichanbianma||"-",this.reserveYears=t.chubeinianxian||"-",this.storageRequirement=t.cunfangyaoqiu||"-",this.maintenanceRequirement=t.weihuyaoqiu||"-",this.maintenanceFrequency=d.name||"-",this.material_infos_plan_id=t.material_infos_plan_id||""}else uni.showToast({title:"未获取到物资信息",icon:"none"})})).catch((()=>{uni.showToast({title:"获取物资信息失败",icon:"none"})})),this.getMaintenanceRecords())},methods:{showInventoryModal(){this.showModal=!0},closeInventoryModal(){this.showModal=!1},getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?uni.showToast({title:"最多上传3张照片",icon:"none"}):uni.chooseImage({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void uni.showToast({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void uni.showToast({title:"盘点数量必须为0或正整数",icon:"none"});uni.showLoading({title:"提交中..."});let e=[];for(let a=0;a{a("log","at api.js:87","confirm接口"),uni.request({url:n+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...e,token:t},success:o,fail:l})}))}(t).then((e=>{a("log","at pages/inventory/inventory.vue:621","res:",e),uni.hideLoading(),!e||e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"提交失败",icon:"none"}):(uni.showToast({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{uni.reLaunch({url:"/pages/index/index"})}),1200))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}))},async getMaintenanceRecords(){if(this.materialId)try{const e={page:1,page_size:999,"filter[0][key]":"inventorys_id","filter[0][op]":"eq","filter[0][value]":this.materialId},t=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(e);a("log","at pages/inventory/inventory.vue:650","运维记录响应:",t),t.data&&t.data.list&&t.data.list.data?this.maintenanceRecords=t.data.list.data:this.maintenanceRecords=[]}catch(e){a("error","at pages/inventory/inventory.vue:658","获取运维记录失败:",e),this.maintenanceRecords=[]}},formatDate(e){if(!e)return"-";if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const t=new Date(e);if(isNaN(t.getTime()))return e;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},getDateDifferenceInDays(e){if(!e)return 0;const t=new Date(e),a=new Date;a.setHours(0,0,0,0),t.setHours(0,0,0,0);const n=t-a;return Math.ceil(n/864e5)},getBadgeText(e){if(!e)return"-";const t=this.getDateDifferenceInDays(e);return t>=0?`还有 ${t} 天`:`已超期 ${Math.abs(t)} 天`},getBadgeClass(e){if(!e)return"status-default";const t=this.getDateDifferenceInDays(e);return t<0?"status-overdue":t<=3?"status-urgent":"status-normal"},completeMaintenance(e){a("log","at pages/inventory/inventory.vue:720","完成维护:",e),this.currentMaintenanceRecord=e,this.completeForm={actual_date:this.getToday(),notes:"",photos:[],signature:""},this.showCompleteModal=!0,this.$nextTick((()=>{this.initSignatureCanvas()}))},closeCompleteModal(){this.showCompleteModal=!1,this.currentMaintenanceRecord=null,this.completeForm={actual_date:"",notes:"",photos:[],signature:""}},onDateChange(e){this.completeForm.actual_date=e.detail.value},chooseCompletePhoto(){this.completeForm.photos.length>=9?uni.showToast({title:"最多上传9张照片",icon:"none"}):uni.chooseImage({count:9-this.completeForm.photos.length,success:async e=>{uni.showLoading({title:"上传中..."});try{for(let t=0;t{const e=uni.createCanvasContext("signatureCanvas",this);e.setStrokeStyle("#000000"),e.setLineWidth(3),e.setLineCap("round"),e.setLineJoin("round"),this.signatureCtx=e,this.signaturePoints=[],this.isDrawing=!1}))},onTouchStart(e){if(!this.signatureCtx)return void this.initSignatureCanvas();this.isDrawing=!0;const t=e.touches[0],a={x:t.x,y:t.y};this.signaturePoints=[a],this.signatureCtx.beginPath(),this.signatureCtx.moveTo(a.x,a.y)},onTouchMove(e){if(!this.isDrawing||!this.signatureCtx)return;e.preventDefault();const t=e.touches[0],a={x:t.x,y:t.y};if(this.signaturePoints.length>0){const e=this.signaturePoints[this.signaturePoints.length-1];this.signatureCtx.moveTo(e.x,e.y),this.signatureCtx.lineTo(a.x,a.y),this.signatureCtx.stroke(),this.signatureCtx.draw(!0)}this.signaturePoints.push(a)},onTouchEnd(){this.isDrawing=!1,this.saveSignature()},saveSignature(){this.signatureCtx&&uni.canvasToTempFilePath({canvasId:"signatureCanvas",success:e=>{this.completeForm.signature=e.tempFilePath},fail:e=>{a("error","at pages/inventory/inventory.vue:844","保存签名失败:",e)}},this)},clearSignature(){this.signatureCtx&&(this.signatureCtx.clearRect(0,0,1e3,1e3),this.signatureCtx.draw(!0),this.completeForm.signature="",this.signaturePoints=[],this.isDrawing=!1)},async submitCompleteMaintenance(){var e;if(this.completeForm.actual_date)if(this.currentMaintenanceRecord&&this.currentMaintenanceRecord.id){uni.showLoading({title:"提交中..."});try{let t=null;if(this.completeForm.signature){const e=await l(this.completeForm.signature);e&&e.id&&(t=e.id)}const o={id:this.currentMaintenanceRecord.id,maintenance_date:this.formatDate(this.completeForm.actual_date),maintenance_content:this.completeForm.notes,file_ids:this.completeForm.photos.map((e=>e.id)),sign_id:t,status:1};a("log","at pages/inventory/inventory.vue:893","提交完成维护数据:",o);const i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/save",method:"POST",data:{...e,token:t},success:a,fail:o})}))}(o);a("log","at pages/inventory/inventory.vue:896","提交完成维护响应:",i),uni.hideLoading(),!i||i.data&&void 0!==i.data.errcode?uni.showToast({title:(null==(e=i.data)?void 0:e.errmsg)||"提交失败",icon:"none"}):(uni.showToast({title:"完成维护成功",icon:"success"}),this.closeCompleteModal(),this.getMaintenanceRecords())}catch(t){a("error","at pages/inventory/inventory.vue:909","提交完成维护失败:",t),uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}}else uni.showToast({title:"维护记录信息错误",icon:"none"});else uni.showToast({title:"请选择实际维护日期",icon:"none"})},async viewMaintenance(e){if(a("log","at pages/inventory/inventory.vue:916","查看维护记录:",e),e.id){uni.showLoading({title:"加载中..."});try{const t=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/show",method:"GET",data:{id:e,token:t},success:a,fail:o})}))}(e.id);a("log","at pages/inventory/inventory.vue:928","运维记录详情:",t),t.data?(this.currentRecord=t.data,this.showDetailModal=!0):uni.showToast({title:"获取详情失败",icon:"none"})}catch(t){a("error","at pages/inventory/inventory.vue:940","获取运维记录详情失败:",t),uni.showToast({title:"获取详情失败",icon:"none"})}finally{uni.hideLoading()}}else uni.showToast({title:"记录ID不存在",icon:"none"})},closeDetailModal(){this.showDetailModal=!1,this.currentRecord={}},previewImage(e,t){t&&0!==t.length||(t=[e]),uni.previewImage({current:e,urls:t})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"inventory-bg"},[e.createElementVNode("view",{class:"inventory-card"},[e.createElementVNode("view",{class:"readonly-group"},[e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"一级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.firstCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"二级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.secondCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所属种类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.categoryName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资名称"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资类型"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialType),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资型号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSpec),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资规格"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSize),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"单位"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.unit),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库批次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.batchNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"在库数量"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.stockQty)+e.toDisplayString(l.unit?" "+l.unit:""),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"顺序号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.sequenceNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"待出库"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.waitNum),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"生产日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.productionDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资状态"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialStatus),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备方式"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveMethod),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在仓库"),e.createElementVNode("view",{class:"readonly-value"},e.toDisplayString(l.warehouseName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架层"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfLayer),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"等级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.levelCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"产权信息"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.propertyInfo),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"是否为固定资产"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.isFixedAsset),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"固定资产编码"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.fixedAssetCode),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备年限"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveYears),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"存放要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"维护要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"保养频次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceFrequency),1)])]),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"inventory-action-section"},[e.createElementVNode("button",{class:"inventory-action-btn",onClick:a[0]||(a[0]=(...e)=>i.showInventoryModal&&i.showInventoryModal(...e))},"盘点")])),e.createElementVNode("view",{class:"maintenance-section"},[e.createElementVNode("view",{class:"section-title"},"运维记录"),l.maintenanceRecords.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"maintenance-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.maintenanceRecords,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"maintenance-item",key:a},[e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"记录编号:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(t.no||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"计划维护日期:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(i.formatDate(t.planned_maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"截止日期:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(i.formatDate(t.end_date)||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"负责人:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(t.responsible_admin?t.responsible_admin.name:"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"运维内容:"),e.createElementVNode("text",{class:"maintenance-value"},[t.equipment_maintain_config_id&&t.equipment_maintain_config&&t.equipment_maintain_config.name?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(t.equipment_maintain_config.name),1)):t.content?(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(t.content),1)):(e.openBlock(),e.createElementBlock("span",{key:2},"-"))])]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"状态:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(1===t.status?"已完成":"待处理"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"实际维护日期/状态:"),e.createElementVNode("view",{class:"maintenance-value"},[1===t.status?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(i.formatDate(t.maintenance_date)||"-"),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["status-badge",i.getBadgeClass(t.end_date)])},e.toDisplayString(i.getBadgeText(t.end_date)),3))])]),e.createElementVNode("view",{class:"maintenance-actions"},[0===t.status?(e.openBlock(),e.createElementBlock("button",{key:0,class:"action-btn complete-btn",onClick:e=>i.completeMaintenance(t)},"完成维护",8,["onClick"])):e.createCommentVNode("",!0),1===t.status?(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-btn view-btn",onClick:e=>i.viewMaintenance(t)},"查看",8,["onClick"])):e.createCommentVNode("",!0)])])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-maintenance"},[e.createElementVNode("text",null,"暂无运维记录")]))])])]),l.showModal?(e.openBlock(),e.createElementBlock("view",{key:0,class:"inventory-modal",onClick:a[8]||(a[8]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},[e.createElementVNode("view",{class:"modal-content",onClick:a[7]||(a[7]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"modal-header"},[e.createElementVNode("text",{class:"modal-title"},"物资盘点"),e.createElementVNode("view",{class:"modal-close",onClick:a[1]||(a[1]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("view",{class:"modal-body"},[e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点数量"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"number","onUpdate:modelValue":a[2]||(a[2]=e=>l.countQty=e),placeholder:"请输入盘点数量"},null,512),[[e.vModelText,l.countQty]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点备注"),e.withDirectives(e.createElementVNode("textarea",{class:"form-textarea","onUpdate:modelValue":a[3]||(a[3]=e=>l.remark=e),placeholder:"请输入备注信息"},null,512),[[e.vModelText,l.remark]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"照片上传"),e.createElementVNode("view",{class:"photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"photo-preview"},[e.createElementVNode("image",{src:t,mode:"aspectFill",class:"photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"photo-del",onClick:e=>i.deletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.photos.length<3?(e.openBlock(),e.createElementBlock("button",{key:0,class:"photo-btn",onClick:a[4]||(a[4]=(...e)=>i.choosePhoto&&i.choosePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"modal-footer"},[e.createElementVNode("button",{class:"modal-btn cancel-btn",onClick:a[5]||(a[5]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},"取消"),e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[6]||(a[6]=(...e)=>i.submit&&i.submit(...e))},"提交盘点")])])])):e.createCommentVNode("",!0),l.showDetailModal?(e.openBlock(),e.createElementBlock("view",{key:1,class:"detail-modal",onClick:a[13]||(a[13]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},[e.createElementVNode("view",{class:"detail-modal-content",onClick:a[12]||(a[12]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"detail-modal-header"},[e.createElementVNode("text",{class:"detail-modal-title"},"运维记录详情"),e.createElementVNode("view",{class:"detail-modal-close",onClick:a[9]||(a[9]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("scroll-view",{class:"detail-modal-body","scroll-y":""},[e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"计划维护日期:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(i.formatDate(l.currentRecord.planned_maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"实际维护日期:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(i.formatDate(l.currentRecord.maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"负责人:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.responsible_admin?l.currentRecord.responsible_admin.name:"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"运维内容:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.content||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"维护备注:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.maintenance_content||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"维护照片:"),l.currentRecord.files&&l.currentRecord.files.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"detail-photo-gallery"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.currentRecord.files,((t,a)=>(e.openBlock(),e.createElementBlock("image",{key:"file-"+a,src:t.url,class:"detail-photo-preview",mode:"aspectFill",onClick:e=>i.previewImage(t.url,l.currentRecord.files.map((e=>e.url)))},null,8,["src","onClick"])))),128))])):(e.openBlock(),e.createElementBlock("text",{key:1,class:"detail-form-value"},"-"))]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"签名照片:"),l.currentRecord.sign&&l.currentRecord.sign.url?(e.openBlock(),e.createElementBlock("view",{key:0,class:"detail-photo-gallery"},[e.createElementVNode("image",{src:l.currentRecord.sign.url,class:"detail-sign-preview",mode:"aspectFill",onClick:a[10]||(a[10]=e=>i.previewImage(l.currentRecord.sign.url,[l.currentRecord.sign.url]))},null,8,["src"])])):(e.openBlock(),e.createElementBlock("text",{key:1,class:"detail-form-value"},"-"))])]),e.createElementVNode("view",{class:"detail-modal-footer"},[e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[11]||(a[11]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},"关闭")])])])):e.createCommentVNode("",!0),l.showCompleteModal?(e.openBlock(),e.createElementBlock("view",{key:2,class:"complete-modal",onClick:a[25]||(a[25]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},[e.createElementVNode("view",{class:"complete-modal-content",onClick:a[24]||(a[24]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"complete-modal-header"},[e.createElementVNode("text",{class:"complete-modal-title"},"完成维护"),e.createElementVNode("view",{class:"complete-modal-close",onClick:a[14]||(a[14]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("scroll-view",{class:"complete-modal-body","scroll-y":""},[e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"实际维护日期"),e.createElementVNode("picker",{mode:"date",value:l.completeForm.actual_date,onChange:a[15]||(a[15]=(...e)=>i.onDateChange&&i.onDateChange(...e))},[e.createElementVNode("view",{class:"complete-form-input"},[e.createElementVNode("text",{class:e.normalizeClass(l.completeForm.actual_date?"input-value":"input-placeholder")},e.toDisplayString(l.completeForm.actual_date||"请选择实际维护日期"),3)])],40,["value"])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"维护备注"),e.withDirectives(e.createElementVNode("textarea",{class:"complete-form-textarea","onUpdate:modelValue":a[16]||(a[16]=e=>l.completeForm.notes=e),placeholder:"请输入维护备注",maxlength:500},null,512),[[e.vModelText,l.completeForm.notes]])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"上传图片"),e.createElementVNode("view",{class:"complete-photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.completeForm.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"complete-photo-preview"},[e.createElementVNode("image",{src:t.url,mode:"aspectFill",class:"complete-photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"complete-photo-del",onClick:e=>i.removeCompletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.completeForm.photos.length<9?(e.openBlock(),e.createElementBlock("button",{key:0,class:"complete-photo-btn",onClick:a[17]||(a[17]=(...e)=>i.chooseCompletePhoto&&i.chooseCompletePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"签名"),e.createElementVNode("view",{class:"signature-wrapper"},[e.createElementVNode("canvas",{"canvas-id":"signatureCanvas",class:"signature-canvas","disable-scroll":"true",onTouchstart:a[18]||(a[18]=(...e)=>i.onTouchStart&&i.onTouchStart(...e)),onTouchmove:a[19]||(a[19]=(...e)=>i.onTouchMove&&i.onTouchMove(...e)),onTouchend:a[20]||(a[20]=(...e)=>i.onTouchEnd&&i.onTouchEnd(...e))},null,32),e.createElementVNode("view",{class:"signature-actions"},[e.createElementVNode("button",{class:"signature-btn",onClick:a[21]||(a[21]=(...e)=>i.clearSignature&&i.clearSignature(...e))},"清除签名")])])])]),e.createElementVNode("view",{class:"complete-modal-footer"},[e.createElementVNode("button",{class:"modal-btn cancel-btn",onClick:a[22]||(a[22]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},"取消"),e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[23]||(a[23]=(...e)=>i.submitCompleteMaintenance&&i.submitCompleteMaintenance(...e))},"确认完成")])])])):e.createCommentVNode("",!0)],64)}]]);const v=i({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(e){if(e.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(e.planInfo)),this.planId=this.planInfo.id}catch(t){a("error","at pages/plan-detail/plan-detail.vue:143","解析计划信息失败:",t)}e.planId&&(this.planId=e.planId),uni.setNavigationBarTitle({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(e=!1){var t,o;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,e&&(this.materialPage=1,this.materialHasMore=!0);const l={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/material-infos-plan-link/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(l);if(a("log","at pages/plan-detail/plan-detail.vue:194","物资列表响应:",i),i.data&&40001===i.data.errcode)return uni.showToast({title:(null==(t=i.data)?void 0:t.errmsg)||"获取物资列表失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(i.data&&i.data.list){const t=i.data.list,a=t.data||[];this.materialList=e?a:[...this.materialList,...a],this.materialTotal=t.total||0,this.materialHasMore=a.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else uni.showToast({title:(null==(o=i.data)?void 0:o.message)||"获取物资列表失败",icon:"none"})}catch(l){a("error","at pages/plan-detail/plan-detail.vue:231","获取物资列表失败:",l),uni.showToast({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),getInventoryStatusText:e=>({0:"待盘点",1:"已盘点"}[e]||"待盘点"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(e){a("log","at pages/plan-detail/plan-detail.vue:292","开始盘点物资:",e),e.inventorys_id?uni.navigateTo({url:`/pages/inventory/inventory?code=${e.inventorys_id}`}):uni.showToast({title:"暂无盘点信息",icon:"none"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("scroll-view",{class:"plan-detail-container","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>i.loadMoreMaterials&&i.loadMoreMaterials(...e)),"lower-threshold":"100",onRefresherrefresh:a[3]||(a[3]=(...e)=>i.refreshMaterials&&i.refreshMaterials(...e)),"refresher-enabled":"true","refresher-triggered":l.materialLoading},[e.createElementVNode("view",{class:"plan-info-card"},[e.createElementVNode("view",{class:"plan-info-header"},[e.createElementVNode("text",{class:"plan-info-title"},"盘点计划详情")]),e.createElementVNode("view",{class:"plan-info-content"},[e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划名称"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.name||"暂无"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划编号"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.no||"暂无"),1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"盘点类型"),e.createElementVNode("text",{class:"info-value type-text"},e.toDisplayString(i.getTypeText(l.planInfo.type)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"物资数量"),e.createElementVNode("text",{class:"info-value count-text"},e.toDisplayString(l.planInfo.chart_total||0)+" 项",1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"开始时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(i.formatDate(l.planInfo.start_date)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"结束时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(i.formatDate(l.planInfo.end_date)),1)])]),e.createElementVNode("view",{class:"status-row"},[e.createElementVNode("view",{class:"status-item"},[e.createElementVNode("text",{class:"status-label"},"计划状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-badge","status-"+l.planInfo.status])},[e.createElementVNode("text",{class:"status-text"},e.toDisplayString(i.getStatusText(l.planInfo.status)),1)],2)])])])]),e.createElementVNode("view",{class:"material-list-card"},[e.createElementVNode("view",{class:"material-list-header"},[e.createElementVNode("text",{class:"material-list-title"},"盘点物资列表"),e.createElementVNode("text",{class:"material-count"},"共 "+e.toDisplayString(l.materialTotal)+" 项",1)]),e.createElementVNode("view",{class:"material-search-bar"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"请输入物资名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.materialKeyword=e)},null,512),[[e.vModelText,l.materialKeyword]]),e.createElementVNode("button",{size:"mini",type:"primary",onClick:a[1]||(a[1]=(...e)=>i.searchMaterials&&i.searchMaterials(...e))},"搜索")]),e.createElementVNode("view",{class:"material-list"},[e.createElementVNode("view",{class:"material-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},"物资名称")]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},"物资型号")]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},"物资规格")]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:"material-time"},"状态")]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("text",{class:"material-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.materialList,(t=>{var a,n,o;return e.openBlock(),e.createElementBlock("view",{class:"material-item",key:t.id},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},e.toDisplayString((null==(a=t.inventory)?void 0:a.zichanmingcheng)||"未知物资"),1)]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(n=t.inventory)?void 0:n.guigexinghao)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(o=t.inventory)?void 0:o.wuziguige)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["material-status","status-"+(t.status||0)])},e.toDisplayString(i.getInventoryStatusText(t.status)),3)]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("view",{class:"inventory-action-btn",onClick:e.withModifiers((e=>i.startInventory(t)),["stop"])},[e.createElementVNode("text",{class:"inventory-btn-text"},"盘点")],8,["onClick"])])])})),128))]),l.materialLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.materialHasMore&&l.materialList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);__definePage("pages/index/index",m),__definePage("pages/profile/profile",u),__definePage("pages/login/login",p),__definePage("pages/scan/scan",h),__definePage("pages/inventory/inventory",g),__definePage("pages/plan-detail/plan-detail",v);let y=null;var E;"undefined"!=typeof plus&&plus.android&&(y=plus.android.runtimeMainActivity(),"android"==uni.getSystemInfoSync().platform&&(plus.runtime.quit=function(){setTimeout((()=>{y.finish()}),10)}));const w={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){a("log","at App.vue:28","App Launch"),this.globalData.hhwUHFController=t("HL-HHWUHFController"),this.globalData.globalEvent=t("globalEvent"),E=this.globalData.hhwUHFController;const e=uni.getStorageSync("token");e?uni.reLaunch({url:"/pages/index/index"}):(uni.reLaunch({url:"/pages/login/login"}),a("log","at App.vue:41","App Launch token1234",e))},onShow:function(){if(a("log","at App.vue:47","App Show"),E){E.setDebuggable(!0,(e=>{a("log","at App.vue:54","App Show","setDebuggable: "+e)}));var e=Date.now();E.initUhf((t=>{a("log","at App.vue:61","App Show","initUHF: "+t,"cusTime: "+(Date.now()-e)),uni.showToast({title:"初始化成功",icon:"none",duration:1e3})}))}},onHide:function(){a("log","at App.vue:76","App Hide"),E&&E.closeUhf((e=>{a("log","at App.vue:83","App Hide","closeUhf: "+e),uni.showToast({title:"关闭成功",icon:"none",duration:1e3})}))}};const{app:f,Vuex:N,Pinia:V}=function(){const t=e.createVueApp(w);return t.config.globalProperties.$config=o,{app:t}}();uni.Vuex=N,uni.Pinia=V,f.provide("__globalStyles",__uniConfig.styles),f._component.mpType="app",f._component.render=()=>{},f.mount("#app")}(Vue); diff --git a/unpackage/cache/wgt/__UNI__A789D1D/pages/inventory/inventory.css b/unpackage/cache/wgt/__UNI__A789D1D/pages/inventory/inventory.css index 8de6a97..555f88d 100644 --- a/unpackage/cache/wgt/__UNI__A789D1D/pages/inventory/inventory.css +++ b/unpackage/cache/wgt/__UNI__A789D1D/pages/inventory/inventory.css @@ -1 +1 @@ -.inventory-bg{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item:last-child{margin-bottom:0}.readonly-label{color:#666;font-size:.875rem;width:20%}.readonly-value{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group{margin-bottom:1rem}.form-label{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview{position:relative;width:5rem;height:5rem}.photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text{font-size:.75rem;color:#666}.photo-preview{position:relative}.photo-img{width:5rem;height:5rem;border-radius:.5rem}.photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn:active{opacity:.9} +.inventory-bg{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item:last-child{margin-bottom:0}.readonly-label{color:#666;font-size:.875rem;width:20%}.readonly-value{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group{margin-bottom:1rem}.form-label{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview{position:relative;width:5rem;height:5rem}.photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text{font-size:.75rem;color:#666}.photo-preview{position:relative}.photo-img{width:5rem;height:5rem;border-radius:.5rem}.photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn:active{opacity:.9}.maintenance-section{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.section-title{font-size:1rem;font-weight:700;color:#333;margin-bottom:.75rem}.maintenance-list{display:flex;flex-direction:column;gap:.75rem}.maintenance-item{background:#fff;border-radius:.5rem;padding:.75rem;border:1px solid #e0e0e0}.maintenance-row{display:flex;align-items:flex-start;margin-bottom:.5rem;line-height:1.6}.maintenance-row:last-child{margin-bottom:0}.maintenance-label{font-size:.8125rem;color:#666;width:7.5rem;flex-shrink:0}.maintenance-value{font-size:.8125rem;color:#333;flex:1;word-break:break-all}.maintenance-actions{margin-top:.625rem;padding-top:.625rem;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.action-btn{padding:.375rem .75rem;border-radius:.5rem;font-size:.75rem;font-weight:500;border:none;margin-left:.5rem}.complete-btn{background:linear-gradient(135deg,#52c41a,#73d13d);color:#fff;box-shadow:0 2px 8px rgba(82,196,26,.3)}.complete-btn:active{opacity:.9;transform:scale(.98)}.view-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 2px 8px rgba(64,158,255,.3)}.view-btn:active{opacity:.9;transform:scale(.98)}.status-badge{display:inline-block;padding:.1875rem .375rem;border-radius:.375rem;font-size:.6875rem;font-weight:500;white-space:nowrap}.status-badge.status-normal{background:#e6f7ff;color:#1890ff;border:1px solid #91d5ff}.status-badge.status-urgent{background:#fff7e6;color:#fa8c16;border:1px solid #ffd591}.status-badge.status-overdue{background:#fff1f0;color:#ff4d4f;border:1px solid #ffccc7}.status-badge.status-default{background:#f5f5f5;color:#999;border:1px solid #d9d9d9}.empty-maintenance{text-align:center;padding:1.875rem 0;color:#999;font-size:.875rem}.inventory-action-section{margin-top:1rem;margin-bottom:1rem;display:flex;justify-content:center}.inventory-action-btn{width:6.25rem;height:2.5rem;background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:1.25rem;font-size:1rem;font-weight:600;box-shadow:0 4px 12px rgba(64,158,255,.3);transition:all .3s ease}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 2px 8px rgba(64,158,255,.4)}.inventory-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1.25rem;box-sizing:border-box}.modal-content{background:#fff;border-radius:.75rem;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.modal-title{font-size:1.125rem;font-weight:700;color:#333}.modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.modal-close:active{background:#e0e0e0}.close-icon{font-size:1.5rem;color:#666;line-height:1}.modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.modal-footer{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.modal-btn{flex:1;height:2.75rem;border-radius:1.375rem;font-size:1rem;font-weight:500;border:none;transition:all .3s ease;margin-top:0}.cancel-btn{background:#f5f5f5;color:#666}.cancel-btn:active{background:#e0e0e0;transform:scale(.98)}.modal-footer .submit-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 4px 12px rgba(64,158,255,.3)}.modal-footer .submit-btn:active{opacity:.9;transform:scale(.98)}.detail-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:999;padding:1.25rem;box-sizing:border-box}.detail-modal-content{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.detail-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.detail-modal-title{font-size:1.125rem;font-weight:700;color:#333}.detail-modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.detail-modal-close:active{background:#e0e0e0}.detail-modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.detail-form-group{margin-bottom:1rem;display:flex;flex-direction:column;gap:.375rem}.detail-form-group:last-child{margin-bottom:0}.detail-form-label{font-size:.875rem;color:#666;font-weight:500}.detail-form-value{font-size:.875rem;color:#333;line-height:1.6;word-break:break-all}.detail-photo-gallery{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:.375rem}.detail-photo-preview{width:6.25rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-sign-preview{width:9.375rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-modal-footer{display:flex;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.detail-modal-footer .submit-btn{width:100%;margin-top:0}.complete-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:998;padding:1.25rem;box-sizing:border-box}.complete-modal-content{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.complete-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.complete-modal-title{font-size:1.125rem;font-weight:700;color:#333}.complete-modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.complete-modal-close:active{background:#e0e0e0}.complete-modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.complete-form-group{margin-bottom:1rem}.complete-form-group:last-child{margin-bottom:0}.complete-form-label{font-size:.875rem;color:#333;font-weight:500;margin-bottom:.5rem;display:block}.complete-form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;display:flex;align-items:center;font-size:.875rem}.input-value{color:#333}.input-placeholder{color:#999}.complete-form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333;width:100%;box-sizing:border-box}.complete-photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.complete-photo-preview{position:relative;width:5rem;height:5rem}.complete-photo-img{width:5rem;height:5rem;border-radius:.5rem}.complete-photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.complete-photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border:none}.complete-photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.signature-wrapper{background:#fff;border:2px solid #e0e0e0;border-radius:.5rem;padding:.625rem}.signature-canvas{width:100%;height:9.375rem;background:#fff;border:1px solid #e0e0e0;border-radius:.25rem;touch-action:none;box-sizing:border-box}.signature-actions{margin-top:.5rem;display:flex;justify-content:flex-end}.signature-btn{padding:.375rem .75rem;background:#f5f5f5;color:#666;border:none;border-radius:.5rem;font-size:.75rem}.signature-btn:active{background:#e0e0e0}.complete-modal-footer{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.complete-modal-footer .cancel-btn,.complete-modal-footer .submit-btn{flex:1;margin-top:0} diff --git a/unpackage/dist/build/app-plus/app-service.js b/unpackage/dist/build/app-plus/app-service.js index d1eeee5..81d0f37 100644 --- a/unpackage/dist/build/app-plus/app-service.js +++ b/unpackage/dist/build/app-plus/app-service.js @@ -1 +1 @@ -if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function a(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}const n="http://192.168.60.99:9004/",i={BASE_API:n};function l(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.uploadFile({url:n+"api/admin/upload-file",filePath:e,name:"file",formData:{token:t},success:e=>{try{const t=JSON.parse(e.data);a(t)}catch(t){i(t)}},fail:i})}))}const o=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};let s=1,r=!1,c=!1,d=!0;const m=o({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){c=this.asyncFlag,d=this.voiceFlag,r=this.barcodeFlag},onLoad(){this.updateDate(),this.initAndroidComponents(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){a("log","at pages/index/index.vue:227","inventory Show"),this.initBarcodeScan(),this.disableBarcodeScanKey(),this.registerKeyReceiver()},onHide(){a("log","at pages/index/index.vue:238","inventory Hide"),this.main&&this.receiver&&this.main.unregisterReceiver(this.receiver)},methods:{updateDate(){const e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.currentDate=`${t}-${a}-${n}`},handleScan(e){this.scanType=e,uni.scanCode({success:t=>{let n=t.result.trim();a("log","at pages/index/index.vue:342","id2:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===e?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):uni.showToast({title:"二维码信息错误",icon:"none"}):uni.showToast({title:"二维码无效",icon:"none"})},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var t,i;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const l={page:this.planPage,page_size:this.planPageSize},o=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/material-infos-plan/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}(l);if(a("log","at pages/index/index.vue:399","盘点计划列表响应:",o),o.data&&40001===o.data.errcode)return uni.showToast({title:(null==(t=o.data)?void 0:t.errmsg)||"获取盘点计划失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,a=t.data||[];this.inventoryPlanList=e?a:[...this.inventoryPlanList,...a],this.planTotal=t.total||0,this.planHasMore=a.length===this.planPageSize,this.planHasMore&&this.planPage++}else uni.showToast({title:(null==(i=o.data)?void 0:i.message)||"获取盘点计划失败",icon:"none"})}catch(l){a("error","at pages/index/index.vue:433","获取盘点计划列表失败:",l),uni.showToast({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},viewPlanDetail(e){a("log","at pages/index/index.vue:485","查看计划详情:",e);const t=encodeURIComponent(JSON.stringify(e));uni.navigateTo({url:`/pages/plan-detail/plan-detail?planInfo=${t}&planId=${e.id}`})},getProgress(e){if(2===e.status)return 100;if(0===e.status)return 0;const t=new Date,a=new Date(e.start_date),n=new Date(e.end_date);if(tn)return 100;const i=n.getTime()-a.getTime(),l=t.getTime()-a.getTime();return Math.round(l/i*100)},initAndroidComponents(){try{this.main=plus.android.runtimeMainActivity(),this.hhwUHFController=getApp().globalData.hhwUHFController,this.globalEvent=getApp().globalData.globalEvent}catch(e){a("error","at pages/index/index.vue:523","初始化Android组件失败:",e)}},initUHFEvent(){this.globalEvent&&this.globalEvent.addEventListener("uhf_tag_event",(e=>{this.handleUHFEvent(e)}))},handleUHFEvent(e){a("log","at pages/index/index.vue:539",e.tag_info_list);var t=e.tag_info_list;if(null!=t){for(var n=0;n{plus.android.importClass(t);var n=t.getIntExtra("keyCode",0),i=t.getBooleanExtra("keydown",!1);i&&1==s&&137==n?(a("log","at pages/index/index.vue:600","inventory","receive keyUp code: "+n),r?this.startBarcodeScan():this.startInventory(),s++):i||(r?this.stopBarcodeScan():this.stopInventory(),s=1)}}),this.main.registerReceiver(this.receiver,e)}},disableBarcodeScanKey(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.KEY_SET");e.putExtra("keyValueArray",["137"]),e.putExtra("137",!1),this.main.sendBroadcast(e)}},bytes2HexString:e=>Array.from(e,(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(""),hexString2Bytes(e){var t=0,a=e.length;if(a%2!=0)return null;a/=2;for(var n=new Array,i=0;i({id:e.id||e.material_info_id||e.inventory_id||"",zichanmingcheng:e.zichanmingcheng||"",total_num:e.total_num??e.inventorys_total??e.zaikushuliang??0})))},normalizeScannedId(e){if(!e)return"";const t=String(e).trim();if(/^\d+$/.test(t))return t;if(/^\d+(?:\.\d+)?$/.test(t)){const e=Number(t);if(!Number.isNaN(e)&&Number.isFinite(e))return Math.trunc(e).toString()}return""},goInventoryFromList(e){const t=e&&e.id;t?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(t)}`}):uni.showToast({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_INIT");this.main.sendBroadcast(e)}},startBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_CMD");this.main.sendBroadcast(e)}},stopBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.STOP_SCAN");this.main.sendBroadcast(e)}},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.hhwUHFController?(this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点",this.hhwUHFController.setCancleInventoryFilter(),c?this.hhwUHFController.startInventory(30,0,!0,0,d,(e=>{a("log","at pages/index/index.vue:765","inventory inventory","startInventory "+e)})):(a("log","at pages/index/index.vue:769","async_flag"),this.hhwUHFController.startInventory(30,0,!1,0,d,(e=>{a("log","at pages/index/index.vue:771","inventory inventory","startInventory "+e)})))):uni.showToast({title:"UHF控制器未初始化",icon:"none"})},stopInventory(){this.hhwUHFController&&(c?this.hhwUHFController.stopInventory(!0):this.hhwUHFController.stopInventory(!1))},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((e=>e.epc)).filter(Boolean);if(!e.length)return void uni.showToast({title:"请先获取标签数据",icon:"none"});const t=e.join(",");uni.showLoading({title:"查询中..."}),function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/inventory/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}({ids:t,page:1,page_size:999}).then((e=>{uni.hideLoading(),a("log","at pages/index/index.vue:816","res:",e);const t=this.formatMaterialList(e);if(0===t.length)return this.taskList=[],void uni.showToast({title:"未查询到物资信息",icon:"none"});this.taskList=t})).catch((e=>{a("error","at pages/index/index.vue:829","viewMaterials error",e),uni.hideLoading(),uni.showToast({title:"获取物资失败",icon:"none"})}))},loadmore(){if(a("log","at pages/index/index.vue:839","inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)a("log","at pages/index/index.vue:841","inventory loadmore","nomore");else{var e;e=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var t=this.offset;to.loadMorePlans&&o.loadMorePlans(...e)),"lower-threshold":"100",onRefresherrefresh:a[8]||(a[8]=(...e)=>o.refreshPlans&&o.refreshPlans(...e)),"refresher-enabled":"true","refresher-triggered":l.planLoading},[e.createElementVNode("view",{class:"index-content"},[e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("button",{class:"main-btn",onClick:a[0]||(a[0]=(...e)=>o.scanInventory&&o.scanInventory(...e))},"扫码盘点"),e.createElementVNode("button",{class:"main-btn outline",onClick:a[1]||(a[1]=(...e)=>o.scanView&&o.scanView(...e))},"扫码查看")]),e.createElementVNode("view",{class:"inventory-section"},[e.createElementVNode("view",{class:"inventory-header"},[e.createElementVNode("text",{class:"inventory-title"},"标签盘点"),e.createElementVNode("text",{class:"tags-amount"},"标签数量: "+e.toDisplayString(l.tagsAmount),1)]),e.createElementVNode("scroll-view",{class:"tag-list","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>o.loadmore&&o.loadmore(...e)),"lower-threshold":"50"},[e.createElementVNode("view",{class:"list-item-head"},[e.createElementVNode("text",{class:"list-item-text-id"},"序号"),e.createElementVNode("text",{class:"list-item-text-epc"},"标签信息"),e.createElementVNode("text",{class:"list-item-text-count"},"次数"),e.createElementVNode("text",{class:"list-item-text-rssi"},"信号强度")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dataList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"list-item",key:t.id},[e.createElementVNode("text",{class:"list-item-text-id"},e.toDisplayString(t.id+1),1),e.createElementVNode("text",{class:"list-item-text-epc"},e.toDisplayString(t.epc),1),e.createElementVNode("text",{class:"list-item-text-count"},e.toDisplayString(t.count),1),e.createElementVNode("text",{class:"list-item-text-rssi"},e.toDisplayString(t.rssi),1)])))),128))],32),e.createElementVNode("view",{class:"inventory-options"}),e.createElementVNode("view",{class:"inventory-btn-box"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>o.handleInventory&&o.handleInventory(...e)),class:"inventory-btn"},e.toDisplayString(l.btn1Info),1),e.createElementVNode("button",{type:"primary",disabled:l.btn2Disabled,onClick:a[4]||(a[4]=(...e)=>o.viewMaterials&&o.viewMaterials(...e)),class:"inventory-btn"},"查看物资",8,["disabled"])]),e.createElementVNode("view",null,[e.createElementVNode("button",{type:"primary",disabled:l.btn3Disabled,onClick:a[5]||(a[5]=(...e)=>o.clearTags&&o.clearTags(...e)),class:"inventory-btn clear-btn"},"清空",8,["disabled"])])]),e.createElementVNode("view",{class:"task-section"},[e.createElementVNode("view",{class:"task-title"},"物资列表"),e.createElementVNode("view",{class:"task-list"},[e.createElementVNode("view",{class:"task-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},"物资名称")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"顺序号")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"库存")]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx","text-align":"right"}},[e.createElementVNode("text",{class:"task-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.taskList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"task-item",key:a},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},e.toDisplayString(t.zichanmingcheng),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.shunxuhao),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.total_num),1)]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>o.goInventoryFromList(t)),["stop"])},"盘点",8,["onClick"])])])))),128))])]),e.createElementVNode("view",{class:"inventory-plan-section"},[e.createElementVNode("view",{class:"inventory-plan-header"},[e.createElementVNode("text",{class:"inventory-plan-title"},"盘点计划")]),e.createElementVNode("view",{class:"plan-list"},[e.createElementVNode("view",{class:"plan-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},"计划名称")]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:"plan-time"},"状态")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"开始日期")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"结束日期")]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("text",{class:"plan-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventoryPlanList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"plan-item",key:t.id},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["plan-status","status-"+t.status])},e.toDisplayString(o.getStatusText(t.status)),3)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(o.formatDate(t.start_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(o.formatDate(t.end_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>o.viewPlanDetail(t)),["stop"])},"查看",8,["onClick"])])])))),128))]),l.planLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.planHasMore&&l.inventoryPlanList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)]),l.showH5Scan?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h5-scan-modal"},[e.createElementVNode("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),e.createElementVNode("button",{onClick:a[6]||(a[6]=(...e)=>o.closeH5Scan&&o.closeH5Scan(...e))},"关闭")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);const u=o({data:()=>({userInfo:{}}),onShow(){(function(){const e=uni.getStorageSync("token");return new Promise(((t,a)=>{uni.request({url:n+"api/admin/auth/me",method:"POST",data:{token:e},success:t,fail:a})}))})().then((e=>{e.data?(a("log","at pages/profile/profile.vue:36","返回数据",e.data),this.userInfo=e.data):uni.showToast({title:e.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{uni.showToast({title:"网络错误",icon:"none"})}))},methods:{logout(){uni.removeStorageSync("token"),uni.reLaunch({url:"/pages/login/login"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"profile-container"},[e.createElementVNode("view",{class:"avatar-section"},[e.createElementVNode("image",{class:"avatar",src:l.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"info-section"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"用户名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.username||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"姓名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.name||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"部门:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.department&&l.userInfo.department.name||"-"),1)])]),e.createElementVNode("button",{class:"logout-btn",onClick:a[0]||(a[0]=(...e)=>o.logout&&o.logout(...e))},"退出登录")])}]]);const h=o({data:()=>({username:"",password:""}),methods:{handleLogin(){var e,t;this.username&&this.password?(uni.showLoading({title:"登录中...",mask:!0}),(e=this.username,t=this.password,new Promise(((a,i)=>{uni.request({url:n+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:a,fail:i})}))).then((e=>{uni.hideLoading(),a("log","at pages/login/login.vue:41",e),e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(a("log","at pages/login/login.vue:48",e.data.access_token),e.data.access_token&&uni.setStorageSync("token",e.data.access_token),uni.showToast({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{uni.switchTab({url:"/pages/index/index"})}),1500))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"网络错误",icon:"none"})}))):uni.showToast({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"login-bg"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-title"},"欢迎登录"),e.createElementVNode("view",{class:"login-subtitle"},"河道防汛物资管理系统"),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"用户名"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>l.username=e),placeholder:"请输入用户名"},null,512),[[e.vModelText,l.username]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"密码"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"password","onUpdate:modelValue":a[1]||(a[1]=e=>l.password=e),placeholder:"请输入密码"},null,512),[[e.vModelText,l.password]])]),e.createElementVNode("button",{class:"login-btn",onClick:a[2]||(a[2]=(...e)=>o.handleLogin&&o.handleLogin(...e))},"登 录")])])}]]);const p=o({data:()=>({result:""}),methods:{doScan(){uni.scanCode({success:e=>{this.result=e.result},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"scan-bg"},[e.createElementVNode("view",{class:"scan-title"},"扫码盘点"),e.createElementVNode("button",{class:"scan-btn",onClick:a[0]||(a[0]=(...e)=>o.doScan&&o.doScan(...e))},"点击开始扫码"),l.result?(e.openBlock(),e.createElementBlock("view",{key:0,class:"scan-result"},[e.createElementVNode("text",{class:"result-label"},"扫码结果:"),e.createElementVNode("text",{class:"result-value"},e.toDisplayString(l.result),1)])):e.createCommentVNode("",!0)])}]]);const g=o({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:""}),onLoad(e){this.isViewMode="1"===e.view,this.date=this.getToday(),this.materialId=e.code,a("log","at pages/inventory/inventory.vue:196","materialId:",this.materialId),this.materialId&&function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/inventory/show",method:"GET",data:{id:e,token:t},success:a,fail:i})}))}(this.materialId).then((e=>{if(a("log","at pages/inventory/inventory.vue:199","response:",e),e.data){const t=e.data;this.material_info_id=t.wuzibianma_material_infos_wuzibianma_relation.id;const a=t.wuzibianma_material_infos_wuzibianma_relation||{},n=a.fenlei_detail||{},i=t.wuzizhuangtai_detail||{},l=t.chubeifangshi_detail||{},o=t.dengjifenlei_detail||{},s=t.chanquanxinxi_detail||{},r=t.materialstorages||{},c=t.shelfs||{},d=t.equipment_maintain_config||{},m=t.material_info_type||"";if(m){const e=m.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=n.name||"-",this.materialName=t.zichanmingcheng||"-",this.materialCode=t.wuzibianma||"-",this.materialType=t.wuzileixing||"-",this.materialSpec=a.guigexinghao||t.guigexinghao||"-",this.materialSize=a.wuziguige||"-",this.unit=a.jiliangdanwei||t.jiliangdanwei||"-",this.batchNumber=t.rukupici||"-",this.stockQty=t.zaikushuliang||t.inventorys_total||"0",this.sequenceNumber=t.shunxuhao||"-",this.waitNum=t.wait_num||"-",this.productionDate=t.shengchanriqi||"-",this.storageDate=t.rukuriqi||"-",this.materialStatus=i.value||"-",this.reserveMethod=l.value||"-",this.warehouseName=r.cangkumingcheng||"-",this.shelfName=c.huojiamingcheng||"-",this.shelfLayer=t.huojiaceng||"-",this.levelCategory=o.value||"-",this.propertyInfo=s.value||"-",this.isFixedAsset=t.shifouweigudingzichan||"-",this.fixedAssetCode=t.gudingzichanbianma||"-",this.reserveYears=t.chubeinianxian||"-",this.storageRequirement=t.cunfangyaoqiu||"-",this.maintenanceRequirement=t.weihuyaoqiu||"-",this.maintenanceFrequency=d.name||"-",this.material_infos_plan_id=t.material_infos_plan_id||""}else uni.showToast({title:"未获取到物资信息",icon:"none"})})).catch((()=>{uni.showToast({title:"获取物资信息失败",icon:"none"})}))},methods:{getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?uni.showToast({title:"最多上传3张照片",icon:"none"}):uni.chooseImage({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void uni.showToast({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void uni.showToast({title:"盘点数量必须为0或正整数",icon:"none"});uni.showLoading({title:"提交中..."});let e=[];for(let a=0;a{a("log","at api.js:87","confirm接口"),uni.request({url:n+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...e,token:t},success:i,fail:l})}))}(t).then((e=>{a("log","at pages/inventory/inventory.vue:372","res:",e),uni.hideLoading(),!e||e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"提交失败",icon:"none"}):(uni.showToast({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{uni.reLaunch({url:"/pages/index/index"})}),1200))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}))}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("view",{class:"inventory-bg"},[e.createElementVNode("view",{class:"inventory-card"},[e.createElementVNode("view",{class:"readonly-group"},[e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"一级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.firstCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"二级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.secondCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所属种类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.categoryName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资名称"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资类型"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialType),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资型号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSpec),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资规格"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSize),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"单位"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.unit),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库批次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.batchNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"在库数量"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.stockQty)+e.toDisplayString(l.unit?" "+l.unit:""),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"顺序号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.sequenceNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"待出库"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.waitNum),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"生产日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.productionDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资状态"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialStatus),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备方式"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveMethod),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在仓库"),e.createElementVNode("view",{class:"readonly-value"},e.toDisplayString(l.warehouseName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架层"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfLayer),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"等级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.levelCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"产权信息"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.propertyInfo),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"是否为固定资产"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.isFixedAsset),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"固定资产编码"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.fixedAssetCode),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备年限"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveYears),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"存放要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"维护要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"保养频次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceFrequency),1)])]),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点数量"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"number","onUpdate:modelValue":a[0]||(a[0]=e=>l.countQty=e),placeholder:"请输入盘点数量"},null,512),[[e.vModelText,l.countQty]])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点备注"),e.withDirectives(e.createElementVNode("textarea",{class:"form-textarea","onUpdate:modelValue":a[1]||(a[1]=e=>l.remark=e),placeholder:"请输入备注信息"},null,512),[[e.vModelText,l.remark]])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"照片上传"),e.createElementVNode("view",{class:"photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"photo-preview"},[e.createElementVNode("image",{src:t,mode:"aspectFill",class:"photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"photo-del",onClick:e=>o.deletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.photos.length<3?(e.openBlock(),e.createElementBlock("button",{key:0,class:"photo-btn",onClick:a[2]||(a[2]=(...e)=>o.choosePhoto&&o.choosePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])])),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:3,class:"submit-btn",onClick:a[3]||(a[3]=(...e)=>o.submit&&o.submit(...e))},"提交盘点"))])])}]]);const v=o({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(e){if(e.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(e.planInfo)),this.planId=this.planInfo.id}catch(t){a("error","at pages/plan-detail/plan-detail.vue:143","解析计划信息失败:",t)}e.planId&&(this.planId=e.planId),uni.setNavigationBarTitle({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(e=!1){var t,i;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,e&&(this.materialPage=1,this.materialHasMore=!0);const l={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},o=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,i)=>{uni.request({url:n+"api/admin/material-infos-plan-link/index",method:"GET",data:{...e,token:t},success:a,fail:i})}))}(l);if(a("log","at pages/plan-detail/plan-detail.vue:194","物资列表响应:",o),o.data&&40001===o.data.errcode)return uni.showToast({title:(null==(t=o.data)?void 0:t.errmsg)||"获取物资列表失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,a=t.data||[];this.materialList=e?a:[...this.materialList,...a],this.materialTotal=t.total||0,this.materialHasMore=a.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else uni.showToast({title:(null==(i=o.data)?void 0:i.message)||"获取物资列表失败",icon:"none"})}catch(l){a("error","at pages/plan-detail/plan-detail.vue:231","获取物资列表失败:",l),uni.showToast({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),getInventoryStatusText:e=>({0:"待盘点",1:"已盘点"}[e]||"待盘点"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(e){a("log","at pages/plan-detail/plan-detail.vue:292","开始盘点物资:",e),e.inventorys_id?uni.navigateTo({url:`/pages/inventory/inventory?code=${e.inventorys_id}`}):uni.showToast({title:"暂无盘点信息",icon:"none"})}}},[["render",function(t,a,n,i,l,o){return e.openBlock(),e.createElementBlock("scroll-view",{class:"plan-detail-container","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>o.loadMoreMaterials&&o.loadMoreMaterials(...e)),"lower-threshold":"100",onRefresherrefresh:a[3]||(a[3]=(...e)=>o.refreshMaterials&&o.refreshMaterials(...e)),"refresher-enabled":"true","refresher-triggered":l.materialLoading},[e.createElementVNode("view",{class:"plan-info-card"},[e.createElementVNode("view",{class:"plan-info-header"},[e.createElementVNode("text",{class:"plan-info-title"},"盘点计划详情")]),e.createElementVNode("view",{class:"plan-info-content"},[e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划名称"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.name||"暂无"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划编号"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.no||"暂无"),1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"盘点类型"),e.createElementVNode("text",{class:"info-value type-text"},e.toDisplayString(o.getTypeText(l.planInfo.type)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"物资数量"),e.createElementVNode("text",{class:"info-value count-text"},e.toDisplayString(l.planInfo.chart_total||0)+" 项",1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"开始时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(o.formatDate(l.planInfo.start_date)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"结束时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(o.formatDate(l.planInfo.end_date)),1)])]),e.createElementVNode("view",{class:"status-row"},[e.createElementVNode("view",{class:"status-item"},[e.createElementVNode("text",{class:"status-label"},"计划状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-badge","status-"+l.planInfo.status])},[e.createElementVNode("text",{class:"status-text"},e.toDisplayString(o.getStatusText(l.planInfo.status)),1)],2)])])])]),e.createElementVNode("view",{class:"material-list-card"},[e.createElementVNode("view",{class:"material-list-header"},[e.createElementVNode("text",{class:"material-list-title"},"盘点物资列表"),e.createElementVNode("text",{class:"material-count"},"共 "+e.toDisplayString(l.materialTotal)+" 项",1)]),e.createElementVNode("view",{class:"material-search-bar"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"请输入物资名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.materialKeyword=e)},null,512),[[e.vModelText,l.materialKeyword]]),e.createElementVNode("button",{size:"mini",type:"primary",onClick:a[1]||(a[1]=(...e)=>o.searchMaterials&&o.searchMaterials(...e))},"搜索")]),e.createElementVNode("view",{class:"material-list"},[e.createElementVNode("view",{class:"material-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},"物资名称")]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},"物资型号")]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},"物资规格")]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:"material-time"},"状态")]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("text",{class:"material-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.materialList,(t=>{var a,n,i;return e.openBlock(),e.createElementBlock("view",{class:"material-item",key:t.id},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},e.toDisplayString((null==(a=t.inventory)?void 0:a.zichanmingcheng)||"未知物资"),1)]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(n=t.inventory)?void 0:n.guigexinghao)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(i=t.inventory)?void 0:i.wuziguige)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["material-status","status-"+(t.status||0)])},e.toDisplayString(o.getInventoryStatusText(t.status)),3)]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("view",{class:"inventory-action-btn",onClick:e.withModifiers((e=>o.startInventory(t)),["stop"])},[e.createElementVNode("text",{class:"inventory-btn-text"},"盘点")],8,["onClick"])])])})),128))]),l.materialLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.materialHasMore&&l.materialList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);__definePage("pages/index/index",m),__definePage("pages/profile/profile",u),__definePage("pages/login/login",h),__definePage("pages/scan/scan",p),__definePage("pages/inventory/inventory",g),__definePage("pages/plan-detail/plan-detail",v);let y=null;var f;"undefined"!=typeof plus&&plus.android&&(y=plus.android.runtimeMainActivity(),"android"==uni.getSystemInfoSync().platform&&(plus.runtime.quit=function(){setTimeout((()=>{y.finish()}),10)}));const E={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){a("log","at App.vue:28","App Launch"),this.globalData.hhwUHFController=t("HL-HHWUHFController"),this.globalData.globalEvent=t("globalEvent"),f=this.globalData.hhwUHFController;const e=uni.getStorageSync("token");e?uni.reLaunch({url:"/pages/index/index"}):(uni.reLaunch({url:"/pages/login/login"}),a("log","at App.vue:41","App Launch token1234",e))},onShow:function(){if(a("log","at App.vue:47","App Show"),f){f.setDebuggable(!0,(e=>{a("log","at App.vue:54","App Show","setDebuggable: "+e)}));var e=Date.now();f.initUhf((t=>{a("log","at App.vue:61","App Show","initUHF: "+t,"cusTime: "+(Date.now()-e)),uni.showToast({title:"初始化成功",icon:"none",duration:1e3})}))}},onHide:function(){a("log","at App.vue:76","App Hide"),f&&f.closeUhf((e=>{a("log","at App.vue:83","App Hide","closeUhf: "+e),uni.showToast({title:"关闭成功",icon:"none",duration:1e3})}))}};const{app:N,Vuex:w,Pinia:V}=function(){const t=e.createVueApp(E);return t.config.globalProperties.$config=i,{app:t}}();uni.Vuex=w,uni.Pinia=V,N.provide("__globalStyles",__uniConfig.styles),N._component.mpType="app",N._component.render=()=>{},N.mount("#app")}(Vue); +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e){return weex.requireModule(e)}function a(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}const n="http://192.168.60.99:9004/",o={BASE_API:n};function l(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.uploadFile({url:n+"api/admin/upload-file",filePath:e,name:"file",formData:{token:t},success:e=>{try{const t=JSON.parse(e.data);a(t)}catch(t){o(t)}},fail:o})}))}const i=(e,t)=>{const a=e.__vccOpts||e;for(const[n,o]of t)a[n]=o;return a};let s=1,r=!1,c=!1,d=!0;const m=i({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){c=this.asyncFlag,d=this.voiceFlag,r=this.barcodeFlag},onLoad(){this.updateDate(),this.initAndroidComponents(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){a("log","at pages/index/index.vue:227","inventory Show"),this.initBarcodeScan(),this.disableBarcodeScanKey(),this.registerKeyReceiver()},onHide(){a("log","at pages/index/index.vue:238","inventory Hide"),this.main&&this.receiver&&this.main.unregisterReceiver(this.receiver)},methods:{updateDate(){const e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.currentDate=`${t}-${a}-${n}`},handleScan(e){this.scanType=e,uni.scanCode({success:t=>{let n=t.result.trim();a("log","at pages/index/index.vue:342","id2:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===e?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):uni.showToast({title:"二维码信息错误",icon:"none"}):uni.showToast({title:"二维码无效",icon:"none"})},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var t,o;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const l={page:this.planPage,page_size:this.planPageSize},i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/material-infos-plan/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(l);if(a("log","at pages/index/index.vue:399","盘点计划列表响应:",i),i.data&&40001===i.data.errcode)return uni.showToast({title:(null==(t=i.data)?void 0:t.errmsg)||"获取盘点计划失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(i.data&&i.data.list){const t=i.data.list,a=t.data||[];this.inventoryPlanList=e?a:[...this.inventoryPlanList,...a],this.planTotal=t.total||0,this.planHasMore=a.length===this.planPageSize,this.planHasMore&&this.planPage++}else uni.showToast({title:(null==(o=i.data)?void 0:o.message)||"获取盘点计划失败",icon:"none"})}catch(l){a("error","at pages/index/index.vue:433","获取盘点计划列表失败:",l),uni.showToast({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},viewPlanDetail(e){a("log","at pages/index/index.vue:485","查看计划详情:",e);const t=encodeURIComponent(JSON.stringify(e));uni.navigateTo({url:`/pages/plan-detail/plan-detail?planInfo=${t}&planId=${e.id}`})},getProgress(e){if(2===e.status)return 100;if(0===e.status)return 0;const t=new Date,a=new Date(e.start_date),n=new Date(e.end_date);if(tn)return 100;const o=n.getTime()-a.getTime(),l=t.getTime()-a.getTime();return Math.round(l/o*100)},initAndroidComponents(){try{this.main=plus.android.runtimeMainActivity(),this.hhwUHFController=getApp().globalData.hhwUHFController,this.globalEvent=getApp().globalData.globalEvent}catch(e){a("error","at pages/index/index.vue:523","初始化Android组件失败:",e)}},initUHFEvent(){this.globalEvent&&this.globalEvent.addEventListener("uhf_tag_event",(e=>{this.handleUHFEvent(e)}))},handleUHFEvent(e){a("log","at pages/index/index.vue:539",e.tag_info_list);var t=e.tag_info_list;if(null!=t){for(var n=0;n{plus.android.importClass(t);var n=t.getIntExtra("keyCode",0),o=t.getBooleanExtra("keydown",!1);o&&1==s&&137==n?(a("log","at pages/index/index.vue:600","inventory","receive keyUp code: "+n),r?this.startBarcodeScan():this.startInventory(),s++):o||(r?this.stopBarcodeScan():this.stopInventory(),s=1)}}),this.main.registerReceiver(this.receiver,e)}},disableBarcodeScanKey(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.KEY_SET");e.putExtra("keyValueArray",["137"]),e.putExtra("137",!1),this.main.sendBroadcast(e)}},bytes2HexString:e=>Array.from(e,(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(""),hexString2Bytes(e){var t=0,a=e.length;if(a%2!=0)return null;a/=2;for(var n=new Array,o=0;o({id:e.id||e.material_info_id||e.inventory_id||"",zichanmingcheng:e.zichanmingcheng||"",total_num:e.total_num??e.inventorys_total??e.zaikushuliang??0})))},normalizeScannedId(e){if(!e)return"";const t=String(e).trim();if(/^\d+$/.test(t))return t;if(/^\d+(?:\.\d+)?$/.test(t)){const e=Number(t);if(!Number.isNaN(e)&&Number.isFinite(e))return Math.trunc(e).toString()}return""},goInventoryFromList(e){const t=e&&e.id;t?uni.navigateTo({url:`/pages/inventory/inventory?code=${encodeURIComponent(t)}`}):uni.showToast({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_INIT");this.main.sendBroadcast(e)}},startBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.SCAN_CMD");this.main.sendBroadcast(e)}},stopBarcodeScan(){if(this.main){var e=new(plus.android.importClass("android.content.Intent"))("com.rfid.STOP_SCAN");this.main.sendBroadcast(e)}},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.hhwUHFController?(this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点",this.hhwUHFController.setCancleInventoryFilter(),c?this.hhwUHFController.startInventory(30,0,!0,0,d,(e=>{a("log","at pages/index/index.vue:765","inventory inventory","startInventory "+e)})):(a("log","at pages/index/index.vue:769","async_flag"),this.hhwUHFController.startInventory(30,0,!1,0,d,(e=>{a("log","at pages/index/index.vue:771","inventory inventory","startInventory "+e)})))):uni.showToast({title:"UHF控制器未初始化",icon:"none"})},stopInventory(){this.hhwUHFController&&(c?this.hhwUHFController.stopInventory(!0):this.hhwUHFController.stopInventory(!1))},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((e=>e.epc)).filter(Boolean);if(!e.length)return void uni.showToast({title:"请先获取标签数据",icon:"none"});const t=e.join(",");uni.showLoading({title:"查询中..."}),function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/inventory/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}({ids:t,page:1,page_size:999}).then((e=>{uni.hideLoading(),a("log","at pages/index/index.vue:816","res:",e);const t=this.formatMaterialList(e);if(0===t.length)return this.taskList=[],void uni.showToast({title:"未查询到物资信息",icon:"none"});this.taskList=t})).catch((e=>{a("error","at pages/index/index.vue:829","viewMaterials error",e),uni.hideLoading(),uni.showToast({title:"获取物资失败",icon:"none"})}))},loadmore(){if(a("log","at pages/index/index.vue:839","inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)a("log","at pages/index/index.vue:841","inventory loadmore","nomore");else{var e;e=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var t=this.offset;ti.loadMorePlans&&i.loadMorePlans(...e)),"lower-threshold":"100",onRefresherrefresh:a[8]||(a[8]=(...e)=>i.refreshPlans&&i.refreshPlans(...e)),"refresher-enabled":"true","refresher-triggered":l.planLoading},[e.createElementVNode("view",{class:"index-content"},[e.createElementVNode("view",{class:"btn-group"},[e.createElementVNode("button",{class:"main-btn",onClick:a[0]||(a[0]=(...e)=>i.scanInventory&&i.scanInventory(...e))},"扫码盘点"),e.createElementVNode("button",{class:"main-btn outline",onClick:a[1]||(a[1]=(...e)=>i.scanView&&i.scanView(...e))},"扫码查看")]),e.createElementVNode("view",{class:"inventory-section"},[e.createElementVNode("view",{class:"inventory-header"},[e.createElementVNode("text",{class:"inventory-title"},"标签盘点"),e.createElementVNode("text",{class:"tags-amount"},"标签数量: "+e.toDisplayString(l.tagsAmount),1)]),e.createElementVNode("scroll-view",{class:"tag-list","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>i.loadmore&&i.loadmore(...e)),"lower-threshold":"50"},[e.createElementVNode("view",{class:"list-item-head"},[e.createElementVNode("text",{class:"list-item-text-id"},"序号"),e.createElementVNode("text",{class:"list-item-text-epc"},"标签信息"),e.createElementVNode("text",{class:"list-item-text-count"},"次数"),e.createElementVNode("text",{class:"list-item-text-rssi"},"信号强度")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dataList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"list-item",key:t.id},[e.createElementVNode("text",{class:"list-item-text-id"},e.toDisplayString(t.id+1),1),e.createElementVNode("text",{class:"list-item-text-epc"},e.toDisplayString(t.epc),1),e.createElementVNode("text",{class:"list-item-text-count"},e.toDisplayString(t.count),1),e.createElementVNode("text",{class:"list-item-text-rssi"},e.toDisplayString(t.rssi),1)])))),128))],32),e.createElementVNode("view",{class:"inventory-options"}),e.createElementVNode("view",{class:"inventory-btn-box"},[e.createElementVNode("button",{type:"primary",onClick:a[3]||(a[3]=(...e)=>i.handleInventory&&i.handleInventory(...e)),class:"inventory-btn"},e.toDisplayString(l.btn1Info),1),e.createElementVNode("button",{type:"primary",disabled:l.btn2Disabled,onClick:a[4]||(a[4]=(...e)=>i.viewMaterials&&i.viewMaterials(...e)),class:"inventory-btn"},"查看物资",8,["disabled"])]),e.createElementVNode("view",null,[e.createElementVNode("button",{type:"primary",disabled:l.btn3Disabled,onClick:a[5]||(a[5]=(...e)=>i.clearTags&&i.clearTags(...e)),class:"inventory-btn clear-btn"},"清空",8,["disabled"])])]),e.createElementVNode("view",{class:"task-section"},[e.createElementVNode("view",{class:"task-title"},"物资列表"),e.createElementVNode("view",{class:"task-list"},[e.createElementVNode("view",{class:"task-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},"物资名称")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"顺序号")]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},"库存")]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx","text-align":"right"}},[e.createElementVNode("text",{class:"task-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.taskList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"task-item",key:a},[e.createElementVNode("view",{class:"task-info"},[e.createElementVNode("text",{class:"task-name"},e.toDisplayString(t.zichanmingcheng),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.shunxuhao),1)]),e.createElementVNode("view",{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},[e.createElementVNode("text",{class:"task-time"},e.toDisplayString(t.total_num),1)]),e.createElementVNode("view",{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>i.goInventoryFromList(t)),["stop"])},"盘点",8,["onClick"])])])))),128))])]),e.createElementVNode("view",{class:"inventory-plan-section"},[e.createElementVNode("view",{class:"inventory-plan-header"},[e.createElementVNode("text",{class:"inventory-plan-title"},"盘点计划")]),e.createElementVNode("view",{class:"plan-list"},[e.createElementVNode("view",{class:"plan-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},"计划名称")]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:"plan-time"},"状态")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"开始日期")]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},"结束日期")]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("text",{class:"plan-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventoryPlanList,(t=>(e.openBlock(),e.createElementBlock("view",{class:"plan-item",key:t.id},[e.createElementVNode("view",{class:"plan-info plan-name-col"},[e.createElementVNode("text",{class:"plan-name"},e.toDisplayString(t.name),1)]),e.createElementVNode("view",{class:"plan-info plan-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["plan-status","status-"+t.status])},e.toDisplayString(i.getStatusText(t.status)),3)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(i.formatDate(t.start_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-date-col"},[e.createElementVNode("text",{class:"plan-time"},e.toDisplayString(i.formatDate(t.end_date)),1)]),e.createElementVNode("view",{class:"plan-info plan-action-col"},[e.createElementVNode("button",{size:"mini",type:"primary",onClick:e.withModifiers((e=>i.viewPlanDetail(t)),["stop"])},"查看",8,["onClick"])])])))),128))]),l.planLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.planHasMore&&l.inventoryPlanList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)]),l.showH5Scan?(e.openBlock(),e.createElementBlock("div",{key:0,class:"h5-scan-modal"},[e.createElementVNode("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),e.createElementVNode("button",{onClick:a[6]||(a[6]=(...e)=>i.closeH5Scan&&i.closeH5Scan(...e))},"关闭")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);const u=i({data:()=>({userInfo:{}}),onShow(){(function(){const e=uni.getStorageSync("token");return new Promise(((t,a)=>{uni.request({url:n+"api/admin/auth/me",method:"POST",data:{token:e},success:t,fail:a})}))})().then((e=>{e.data?(a("log","at pages/profile/profile.vue:36","返回数据",e.data),this.userInfo=e.data):uni.showToast({title:e.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{uni.showToast({title:"网络错误",icon:"none"})}))},methods:{logout(){uni.removeStorageSync("token"),uni.reLaunch({url:"/pages/login/login"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"profile-container"},[e.createElementVNode("view",{class:"avatar-section"},[e.createElementVNode("image",{class:"avatar",src:l.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])]),e.createElementVNode("view",{class:"info-section"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"用户名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.username||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"姓名:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.name||"-"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"label"},"部门:"),e.createElementVNode("text",{class:"value"},e.toDisplayString(l.userInfo.department&&l.userInfo.department.name||"-"),1)])]),e.createElementVNode("button",{class:"logout-btn",onClick:a[0]||(a[0]=(...e)=>i.logout&&i.logout(...e))},"退出登录")])}]]);const p=i({data:()=>({username:"",password:""}),methods:{handleLogin(){var e,t;this.username&&this.password?(uni.showLoading({title:"登录中...",mask:!0}),(e=this.username,t=this.password,new Promise(((a,o)=>{uni.request({url:n+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:a,fail:o})}))).then((e=>{uni.hideLoading(),a("log","at pages/login/login.vue:41",e),e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(a("log","at pages/login/login.vue:48",e.data.access_token),e.data.access_token&&uni.setStorageSync("token",e.data.access_token),uni.showToast({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{uni.switchTab({url:"/pages/index/index"})}),1500))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"网络错误",icon:"none"})}))):uni.showToast({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"login-bg"},[e.createElementVNode("view",{class:"login-card"},[e.createElementVNode("view",{class:"login-title"},"欢迎登录"),e.createElementVNode("view",{class:"login-subtitle"},"河道防汛物资管理系统"),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"用户名"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"text","onUpdate:modelValue":a[0]||(a[0]=e=>l.username=e),placeholder:"请输入用户名"},null,512),[[e.vModelText,l.username]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"密码"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"password","onUpdate:modelValue":a[1]||(a[1]=e=>l.password=e),placeholder:"请输入密码"},null,512),[[e.vModelText,l.password]])]),e.createElementVNode("button",{class:"login-btn",onClick:a[2]||(a[2]=(...e)=>i.handleLogin&&i.handleLogin(...e))},"登 录")])])}]]);const h=i({data:()=>({result:""}),methods:{doScan(){uni.scanCode({success:e=>{this.result=e.result},fail:()=>{uni.showToast({title:"扫码失败",icon:"none"})}})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("view",{class:"scan-bg"},[e.createElementVNode("view",{class:"scan-title"},"扫码盘点"),e.createElementVNode("button",{class:"scan-btn",onClick:a[0]||(a[0]=(...e)=>i.doScan&&i.doScan(...e))},"点击开始扫码"),l.result?(e.openBlock(),e.createElementBlock("view",{key:0,class:"scan-result"},[e.createElementVNode("text",{class:"result-label"},"扫码结果:"),e.createElementVNode("text",{class:"result-value"},e.toDisplayString(l.result),1)])):e.createCommentVNode("",!0)])}]]);const g=i({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:"",maintenanceRecords:[],showModal:!1,showDetailModal:!1,currentRecord:{},showCompleteModal:!1,completeForm:{actual_date:"",notes:"",photos:[],signature:""},currentMaintenanceRecord:null,signatureCtx:null,signaturePoints:[],isDrawing:!1}),onLoad(e){this.isViewMode="1"===e.view,this.date=this.getToday(),this.materialId=e.code,a("log","at pages/inventory/inventory.vue:434","materialId:",this.materialId),this.materialId&&(function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/inventory/show",method:"GET",data:{id:e,token:t},success:a,fail:o})}))}(this.materialId).then((e=>{if(a("log","at pages/inventory/inventory.vue:437","response:",e),e.data){const t=e.data;this.material_info_id=t.wuzibianma_material_infos_wuzibianma_relation.id;const a=t.wuzibianma_material_infos_wuzibianma_relation||{},n=a.fenlei_detail||{},o=t.wuzizhuangtai_detail||{},l=t.chubeifangshi_detail||{},i=t.dengjifenlei_detail||{},s=t.chanquanxinxi_detail||{},r=t.materialstorages||{},c=t.shelfs||{},d=t.equipment_maintain_config||{},m=t.material_info_type||"";if(m){const e=m.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=n.name||"-",this.materialName=t.zichanmingcheng||"-",this.materialCode=t.wuzibianma||"-",this.materialType=t.wuzileixing||"-",this.materialSpec=a.guigexinghao||t.guigexinghao||"-",this.materialSize=a.wuziguige||"-",this.unit=a.jiliangdanwei||t.jiliangdanwei||"-",this.batchNumber=t.rukupici||"-",this.stockQty=t.zaikushuliang||t.inventorys_total||"0",this.sequenceNumber=t.shunxuhao||"-",this.waitNum=t.wait_num||"-",this.productionDate=t.shengchanriqi||"-",this.storageDate=t.rukuriqi||"-",this.materialStatus=o.value||"-",this.reserveMethod=l.value||"-",this.warehouseName=r.cangkumingcheng||"-",this.shelfName=c.huojiamingcheng||"-",this.shelfLayer=t.huojiaceng||"-",this.levelCategory=i.value||"-",this.propertyInfo=s.value||"-",this.isFixedAsset=t.shifouweigudingzichan||"-",this.fixedAssetCode=t.gudingzichanbianma||"-",this.reserveYears=t.chubeinianxian||"-",this.storageRequirement=t.cunfangyaoqiu||"-",this.maintenanceRequirement=t.weihuyaoqiu||"-",this.maintenanceFrequency=d.name||"-",this.material_infos_plan_id=t.material_infos_plan_id||""}else uni.showToast({title:"未获取到物资信息",icon:"none"})})).catch((()=>{uni.showToast({title:"获取物资信息失败",icon:"none"})})),this.getMaintenanceRecords())},methods:{showInventoryModal(){this.showModal=!0},closeInventoryModal(){this.showModal=!1},getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?uni.showToast({title:"最多上传3张照片",icon:"none"}):uni.chooseImage({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void uni.showToast({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void uni.showToast({title:"盘点数量必须为0或正整数",icon:"none"});uni.showLoading({title:"提交中..."});let e=[];for(let a=0;a{a("log","at api.js:87","confirm接口"),uni.request({url:n+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...e,token:t},success:o,fail:l})}))}(t).then((e=>{a("log","at pages/inventory/inventory.vue:621","res:",e),uni.hideLoading(),!e||e.data&&void 0!==e.data.errcode?uni.showToast({title:e.data.errmsg||"提交失败",icon:"none"}):(uni.showToast({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{uni.reLaunch({url:"/pages/index/index"})}),1200))})).catch((()=>{uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}))},async getMaintenanceRecords(){if(this.materialId)try{const e={page:1,page_size:999,"filter[0][key]":"inventorys_id","filter[0][op]":"eq","filter[0][value]":this.materialId},t=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(e);a("log","at pages/inventory/inventory.vue:650","运维记录响应:",t),t.data&&t.data.list&&t.data.list.data?this.maintenanceRecords=t.data.list.data:this.maintenanceRecords=[]}catch(e){a("error","at pages/inventory/inventory.vue:658","获取运维记录失败:",e),this.maintenanceRecords=[]}},formatDate(e){if(!e)return"-";if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const t=new Date(e);if(isNaN(t.getTime()))return e;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},getDateDifferenceInDays(e){if(!e)return 0;const t=new Date(e),a=new Date;a.setHours(0,0,0,0),t.setHours(0,0,0,0);const n=t-a;return Math.ceil(n/864e5)},getBadgeText(e){if(!e)return"-";const t=this.getDateDifferenceInDays(e);return t>=0?`还有 ${t} 天`:`已超期 ${Math.abs(t)} 天`},getBadgeClass(e){if(!e)return"status-default";const t=this.getDateDifferenceInDays(e);return t<0?"status-overdue":t<=3?"status-urgent":"status-normal"},completeMaintenance(e){a("log","at pages/inventory/inventory.vue:720","完成维护:",e),this.currentMaintenanceRecord=e,this.completeForm={actual_date:this.getToday(),notes:"",photos:[],signature:""},this.showCompleteModal=!0,this.$nextTick((()=>{this.initSignatureCanvas()}))},closeCompleteModal(){this.showCompleteModal=!1,this.currentMaintenanceRecord=null,this.completeForm={actual_date:"",notes:"",photos:[],signature:""}},onDateChange(e){this.completeForm.actual_date=e.detail.value},chooseCompletePhoto(){this.completeForm.photos.length>=9?uni.showToast({title:"最多上传9张照片",icon:"none"}):uni.chooseImage({count:9-this.completeForm.photos.length,success:async e=>{uni.showLoading({title:"上传中..."});try{for(let t=0;t{const e=uni.createCanvasContext("signatureCanvas",this);e.setStrokeStyle("#000000"),e.setLineWidth(3),e.setLineCap("round"),e.setLineJoin("round"),this.signatureCtx=e,this.signaturePoints=[],this.isDrawing=!1}))},onTouchStart(e){if(!this.signatureCtx)return void this.initSignatureCanvas();this.isDrawing=!0;const t=e.touches[0],a={x:t.x,y:t.y};this.signaturePoints=[a],this.signatureCtx.beginPath(),this.signatureCtx.moveTo(a.x,a.y)},onTouchMove(e){if(!this.isDrawing||!this.signatureCtx)return;e.preventDefault();const t=e.touches[0],a={x:t.x,y:t.y};if(this.signaturePoints.length>0){const e=this.signaturePoints[this.signaturePoints.length-1];this.signatureCtx.moveTo(e.x,e.y),this.signatureCtx.lineTo(a.x,a.y),this.signatureCtx.stroke(),this.signatureCtx.draw(!0)}this.signaturePoints.push(a)},onTouchEnd(){this.isDrawing=!1,this.saveSignature()},saveSignature(){this.signatureCtx&&uni.canvasToTempFilePath({canvasId:"signatureCanvas",success:e=>{this.completeForm.signature=e.tempFilePath},fail:e=>{a("error","at pages/inventory/inventory.vue:844","保存签名失败:",e)}},this)},clearSignature(){this.signatureCtx&&(this.signatureCtx.clearRect(0,0,1e3,1e3),this.signatureCtx.draw(!0),this.completeForm.signature="",this.signaturePoints=[],this.isDrawing=!1)},async submitCompleteMaintenance(){var e;if(this.completeForm.actual_date)if(this.currentMaintenanceRecord&&this.currentMaintenanceRecord.id){uni.showLoading({title:"提交中..."});try{let t=null;if(this.completeForm.signature){const e=await l(this.completeForm.signature);e&&e.id&&(t=e.id)}const o={id:this.currentMaintenanceRecord.id,maintenance_date:this.formatDate(this.completeForm.actual_date),maintenance_content:this.completeForm.notes,file_ids:this.completeForm.photos.map((e=>e.id)),sign_id:t,status:1};a("log","at pages/inventory/inventory.vue:893","提交完成维护数据:",o);const i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/save",method:"POST",data:{...e,token:t},success:a,fail:o})}))}(o);a("log","at pages/inventory/inventory.vue:896","提交完成维护响应:",i),uni.hideLoading(),!i||i.data&&void 0!==i.data.errcode?uni.showToast({title:(null==(e=i.data)?void 0:e.errmsg)||"提交失败",icon:"none"}):(uni.showToast({title:"完成维护成功",icon:"success"}),this.closeCompleteModal(),this.getMaintenanceRecords())}catch(t){a("error","at pages/inventory/inventory.vue:909","提交完成维护失败:",t),uni.hideLoading(),uni.showToast({title:"提交失败",icon:"none"})}}else uni.showToast({title:"维护记录信息错误",icon:"none"});else uni.showToast({title:"请选择实际维护日期",icon:"none"})},async viewMaintenance(e){if(a("log","at pages/inventory/inventory.vue:916","查看维护记录:",e),e.id){uni.showLoading({title:"加载中..."});try{const t=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/equipment-operation/show",method:"GET",data:{id:e,token:t},success:a,fail:o})}))}(e.id);a("log","at pages/inventory/inventory.vue:928","运维记录详情:",t),t.data?(this.currentRecord=t.data,this.showDetailModal=!0):uni.showToast({title:"获取详情失败",icon:"none"})}catch(t){a("error","at pages/inventory/inventory.vue:940","获取运维记录详情失败:",t),uni.showToast({title:"获取详情失败",icon:"none"})}finally{uni.hideLoading()}}else uni.showToast({title:"记录ID不存在",icon:"none"})},closeDetailModal(){this.showDetailModal=!1,this.currentRecord={}},previewImage(e,t){t&&0!==t.length||(t=[e]),uni.previewImage({current:e,urls:t})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"inventory-bg"},[e.createElementVNode("view",{class:"inventory-card"},[e.createElementVNode("view",{class:"readonly-group"},[e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"一级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.firstCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"二级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.secondCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所属种类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.categoryName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资名称"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资类型"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialType),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资型号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSpec),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资规格"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialSize),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"单位"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.unit),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库批次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.batchNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"在库数量"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.stockQty)+e.toDisplayString(l.unit?" "+l.unit:""),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"顺序号"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.sequenceNumber),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"待出库"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.waitNum),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"生产日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.productionDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"入库日期"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageDate),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"物资状态"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.materialStatus),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备方式"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveMethod),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在仓库"),e.createElementVNode("view",{class:"readonly-value"},e.toDisplayString(l.warehouseName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfName),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"所在货架层"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.shelfLayer),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"等级分类"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.levelCategory),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"产权信息"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.propertyInfo),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"是否为固定资产"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.isFixedAsset),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"固定资产编码"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.fixedAssetCode),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"储备年限"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.reserveYears),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"存放要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.storageRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"维护要求"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceRequirement),1)]),e.createElementVNode("view",{class:"readonly-item"},[e.createElementVNode("text",{class:"readonly-label"},"保养频次"),e.createElementVNode("text",{class:"readonly-value"},e.toDisplayString(l.maintenanceFrequency),1)])]),l.isViewMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"inventory-action-section"},[e.createElementVNode("button",{class:"inventory-action-btn",onClick:a[0]||(a[0]=(...e)=>i.showInventoryModal&&i.showInventoryModal(...e))},"盘点")])),e.createElementVNode("view",{class:"maintenance-section"},[e.createElementVNode("view",{class:"section-title"},"运维记录"),l.maintenanceRecords.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,class:"maintenance-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.maintenanceRecords,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"maintenance-item",key:a},[e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"记录编号:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(t.no||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"计划维护日期:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(i.formatDate(t.planned_maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"截止日期:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(i.formatDate(t.end_date)||"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"负责人:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(t.responsible_admin?t.responsible_admin.name:"-"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"运维内容:"),e.createElementVNode("text",{class:"maintenance-value"},[t.equipment_maintain_config_id&&t.equipment_maintain_config&&t.equipment_maintain_config.name?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(t.equipment_maintain_config.name),1)):t.content?(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(t.content),1)):(e.openBlock(),e.createElementBlock("span",{key:2},"-"))])]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"状态:"),e.createElementVNode("text",{class:"maintenance-value"},e.toDisplayString(1===t.status?"已完成":"待处理"),1)]),e.createElementVNode("view",{class:"maintenance-row"},[e.createElementVNode("text",{class:"maintenance-label"},"实际维护日期/状态:"),e.createElementVNode("view",{class:"maintenance-value"},[1===t.status?(e.openBlock(),e.createElementBlock("text",{key:0},e.toDisplayString(i.formatDate(t.maintenance_date)||"-"),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["status-badge",i.getBadgeClass(t.end_date)])},e.toDisplayString(i.getBadgeText(t.end_date)),3))])]),e.createElementVNode("view",{class:"maintenance-actions"},[0===t.status?(e.openBlock(),e.createElementBlock("button",{key:0,class:"action-btn complete-btn",onClick:e=>i.completeMaintenance(t)},"完成维护",8,["onClick"])):e.createCommentVNode("",!0),1===t.status?(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-btn view-btn",onClick:e=>i.viewMaintenance(t)},"查看",8,["onClick"])):e.createCommentVNode("",!0)])])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"empty-maintenance"},[e.createElementVNode("text",null,"暂无运维记录")]))])])]),l.showModal?(e.openBlock(),e.createElementBlock("view",{key:0,class:"inventory-modal",onClick:a[8]||(a[8]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},[e.createElementVNode("view",{class:"modal-content",onClick:a[7]||(a[7]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"modal-header"},[e.createElementVNode("text",{class:"modal-title"},"物资盘点"),e.createElementVNode("view",{class:"modal-close",onClick:a[1]||(a[1]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("view",{class:"modal-body"},[e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点数量"),e.withDirectives(e.createElementVNode("input",{class:"form-input",type:"number","onUpdate:modelValue":a[2]||(a[2]=e=>l.countQty=e),placeholder:"请输入盘点数量"},null,512),[[e.vModelText,l.countQty]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"盘点备注"),e.withDirectives(e.createElementVNode("textarea",{class:"form-textarea","onUpdate:modelValue":a[3]||(a[3]=e=>l.remark=e),placeholder:"请输入备注信息"},null,512),[[e.vModelText,l.remark]])]),e.createElementVNode("view",{class:"form-group"},[e.createElementVNode("text",{class:"form-label"},"照片上传"),e.createElementVNode("view",{class:"photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"photo-preview"},[e.createElementVNode("image",{src:t,mode:"aspectFill",class:"photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"photo-del",onClick:e=>i.deletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.photos.length<3?(e.openBlock(),e.createElementBlock("button",{key:0,class:"photo-btn",onClick:a[4]||(a[4]=(...e)=>i.choosePhoto&&i.choosePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"modal-footer"},[e.createElementVNode("button",{class:"modal-btn cancel-btn",onClick:a[5]||(a[5]=(...e)=>i.closeInventoryModal&&i.closeInventoryModal(...e))},"取消"),e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[6]||(a[6]=(...e)=>i.submit&&i.submit(...e))},"提交盘点")])])])):e.createCommentVNode("",!0),l.showDetailModal?(e.openBlock(),e.createElementBlock("view",{key:1,class:"detail-modal",onClick:a[13]||(a[13]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},[e.createElementVNode("view",{class:"detail-modal-content",onClick:a[12]||(a[12]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"detail-modal-header"},[e.createElementVNode("text",{class:"detail-modal-title"},"运维记录详情"),e.createElementVNode("view",{class:"detail-modal-close",onClick:a[9]||(a[9]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("scroll-view",{class:"detail-modal-body","scroll-y":""},[e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"计划维护日期:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(i.formatDate(l.currentRecord.planned_maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"实际维护日期:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(i.formatDate(l.currentRecord.maintenance_date)||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"负责人:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.responsible_admin?l.currentRecord.responsible_admin.name:"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"运维内容:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.content||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"维护备注:"),e.createElementVNode("text",{class:"detail-form-value"},e.toDisplayString(l.currentRecord.maintenance_content||"-"),1)]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"维护照片:"),l.currentRecord.files&&l.currentRecord.files.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"detail-photo-gallery"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.currentRecord.files,((t,a)=>(e.openBlock(),e.createElementBlock("image",{key:"file-"+a,src:t.url,class:"detail-photo-preview",mode:"aspectFill",onClick:e=>i.previewImage(t.url,l.currentRecord.files.map((e=>e.url)))},null,8,["src","onClick"])))),128))])):(e.openBlock(),e.createElementBlock("text",{key:1,class:"detail-form-value"},"-"))]),e.createElementVNode("view",{class:"detail-form-group"},[e.createElementVNode("text",{class:"detail-form-label"},"签名照片:"),l.currentRecord.sign&&l.currentRecord.sign.url?(e.openBlock(),e.createElementBlock("view",{key:0,class:"detail-photo-gallery"},[e.createElementVNode("image",{src:l.currentRecord.sign.url,class:"detail-sign-preview",mode:"aspectFill",onClick:a[10]||(a[10]=e=>i.previewImage(l.currentRecord.sign.url,[l.currentRecord.sign.url]))},null,8,["src"])])):(e.openBlock(),e.createElementBlock("text",{key:1,class:"detail-form-value"},"-"))])]),e.createElementVNode("view",{class:"detail-modal-footer"},[e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[11]||(a[11]=(...e)=>i.closeDetailModal&&i.closeDetailModal(...e))},"关闭")])])])):e.createCommentVNode("",!0),l.showCompleteModal?(e.openBlock(),e.createElementBlock("view",{key:2,class:"complete-modal",onClick:a[25]||(a[25]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},[e.createElementVNode("view",{class:"complete-modal-content",onClick:a[24]||(a[24]=e.withModifiers((()=>{}),["stop"]))},[e.createElementVNode("view",{class:"complete-modal-header"},[e.createElementVNode("text",{class:"complete-modal-title"},"完成维护"),e.createElementVNode("view",{class:"complete-modal-close",onClick:a[14]||(a[14]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},[e.createElementVNode("text",{class:"close-icon"},"×")])]),e.createElementVNode("scroll-view",{class:"complete-modal-body","scroll-y":""},[e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"实际维护日期"),e.createElementVNode("picker",{mode:"date",value:l.completeForm.actual_date,onChange:a[15]||(a[15]=(...e)=>i.onDateChange&&i.onDateChange(...e))},[e.createElementVNode("view",{class:"complete-form-input"},[e.createElementVNode("text",{class:e.normalizeClass(l.completeForm.actual_date?"input-value":"input-placeholder")},e.toDisplayString(l.completeForm.actual_date||"请选择实际维护日期"),3)])],40,["value"])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"维护备注"),e.withDirectives(e.createElementVNode("textarea",{class:"complete-form-textarea","onUpdate:modelValue":a[16]||(a[16]=e=>l.completeForm.notes=e),placeholder:"请输入维护备注",maxlength:500},null,512),[[e.vModelText,l.completeForm.notes]])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"上传图片"),e.createElementVNode("view",{class:"complete-photo-upload"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.completeForm.photos,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:"complete-photo-preview"},[e.createElementVNode("image",{src:t.url,mode:"aspectFill",class:"complete-photo-img"},null,8,["src"]),e.createElementVNode("view",{class:"complete-photo-del",onClick:e=>i.removeCompletePhoto(a)},[e.createElementVNode("text",{class:"delete-icon"},"×")],8,["onClick"])])))),128)),l.completeForm.photos.length<9?(e.openBlock(),e.createElementBlock("button",{key:0,class:"complete-photo-btn",onClick:a[17]||(a[17]=(...e)=>i.chooseCompletePhoto&&i.chooseCompletePhoto(...e))},[e.createElementVNode("text",{class:"iconfont icon-camera"}),e.createElementVNode("text",{class:"btn-text"},"上传照片")])):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"complete-form-group"},[e.createElementVNode("text",{class:"complete-form-label"},"签名"),e.createElementVNode("view",{class:"signature-wrapper"},[e.createElementVNode("canvas",{"canvas-id":"signatureCanvas",class:"signature-canvas","disable-scroll":"true",onTouchstart:a[18]||(a[18]=(...e)=>i.onTouchStart&&i.onTouchStart(...e)),onTouchmove:a[19]||(a[19]=(...e)=>i.onTouchMove&&i.onTouchMove(...e)),onTouchend:a[20]||(a[20]=(...e)=>i.onTouchEnd&&i.onTouchEnd(...e))},null,32),e.createElementVNode("view",{class:"signature-actions"},[e.createElementVNode("button",{class:"signature-btn",onClick:a[21]||(a[21]=(...e)=>i.clearSignature&&i.clearSignature(...e))},"清除签名")])])])]),e.createElementVNode("view",{class:"complete-modal-footer"},[e.createElementVNode("button",{class:"modal-btn cancel-btn",onClick:a[22]||(a[22]=(...e)=>i.closeCompleteModal&&i.closeCompleteModal(...e))},"取消"),e.createElementVNode("button",{class:"modal-btn submit-btn",onClick:a[23]||(a[23]=(...e)=>i.submitCompleteMaintenance&&i.submitCompleteMaintenance(...e))},"确认完成")])])])):e.createCommentVNode("",!0)],64)}]]);const v=i({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(e){if(e.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(e.planInfo)),this.planId=this.planInfo.id}catch(t){a("error","at pages/plan-detail/plan-detail.vue:143","解析计划信息失败:",t)}e.planId&&(this.planId=e.planId),uni.setNavigationBarTitle({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(e=!1){var t,o;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,e&&(this.materialPage=1,this.materialHasMore=!0);const l={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},i=await function(e){const t=uni.getStorageSync("token");return new Promise(((a,o)=>{uni.request({url:n+"api/admin/material-infos-plan-link/index",method:"GET",data:{...e,token:t},success:a,fail:o})}))}(l);if(a("log","at pages/plan-detail/plan-detail.vue:194","物资列表响应:",i),i.data&&40001===i.data.errcode)return uni.showToast({title:(null==(t=i.data)?void 0:t.errmsg)||"获取物资列表失败",icon:"none"}),void uni.reLaunch({url:"/pages/login/login"});if(i.data&&i.data.list){const t=i.data.list,a=t.data||[];this.materialList=e?a:[...this.materialList,...a],this.materialTotal=t.total||0,this.materialHasMore=a.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else uni.showToast({title:(null==(o=i.data)?void 0:o.message)||"获取物资列表失败",icon:"none"})}catch(l){a("error","at pages/plan-detail/plan-detail.vue:231","获取物资列表失败:",l),uni.showToast({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:e=>({0:"未开始",1:"进行中",2:"已完成"}[e]||"未知状态"),getTypeText:e=>({1:"年度",2:"季度"}[e]||"未知类型"),getInventoryStatusText:e=>({0:"待盘点",1:"已盘点"}[e]||"待盘点"),formatDate(e){if(!e)return"";const t=new Date(e);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(e){a("log","at pages/plan-detail/plan-detail.vue:292","开始盘点物资:",e),e.inventorys_id?uni.navigateTo({url:`/pages/inventory/inventory?code=${e.inventorys_id}`}):uni.showToast({title:"暂无盘点信息",icon:"none"})}}},[["render",function(t,a,n,o,l,i){return e.openBlock(),e.createElementBlock("scroll-view",{class:"plan-detail-container","scroll-y":"",onScrolltolower:a[2]||(a[2]=(...e)=>i.loadMoreMaterials&&i.loadMoreMaterials(...e)),"lower-threshold":"100",onRefresherrefresh:a[3]||(a[3]=(...e)=>i.refreshMaterials&&i.refreshMaterials(...e)),"refresher-enabled":"true","refresher-triggered":l.materialLoading},[e.createElementVNode("view",{class:"plan-info-card"},[e.createElementVNode("view",{class:"plan-info-header"},[e.createElementVNode("text",{class:"plan-info-title"},"盘点计划详情")]),e.createElementVNode("view",{class:"plan-info-content"},[e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划名称"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.name||"暂无"),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"计划编号"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(l.planInfo.no||"暂无"),1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"盘点类型"),e.createElementVNode("text",{class:"info-value type-text"},e.toDisplayString(i.getTypeText(l.planInfo.type)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"物资数量"),e.createElementVNode("text",{class:"info-value count-text"},e.toDisplayString(l.planInfo.chart_total||0)+" 项",1)])]),e.createElementVNode("view",{class:"info-row"},[e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"开始时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(i.formatDate(l.planInfo.start_date)),1)]),e.createElementVNode("view",{class:"info-item"},[e.createElementVNode("text",{class:"info-label"},"结束时间"),e.createElementVNode("text",{class:"info-value"},e.toDisplayString(i.formatDate(l.planInfo.end_date)),1)])]),e.createElementVNode("view",{class:"status-row"},[e.createElementVNode("view",{class:"status-item"},[e.createElementVNode("text",{class:"status-label"},"计划状态"),e.createElementVNode("view",{class:e.normalizeClass(["status-badge","status-"+l.planInfo.status])},[e.createElementVNode("text",{class:"status-text"},e.toDisplayString(i.getStatusText(l.planInfo.status)),1)],2)])])])]),e.createElementVNode("view",{class:"material-list-card"},[e.createElementVNode("view",{class:"material-list-header"},[e.createElementVNode("text",{class:"material-list-title"},"盘点物资列表"),e.createElementVNode("text",{class:"material-count"},"共 "+e.toDisplayString(l.materialTotal)+" 项",1)]),e.createElementVNode("view",{class:"material-search-bar"},[e.withDirectives(e.createElementVNode("input",{type:"text",placeholder:"请输入物资名称","onUpdate:modelValue":a[0]||(a[0]=e=>l.materialKeyword=e)},null,512),[[e.vModelText,l.materialKeyword]]),e.createElementVNode("button",{size:"mini",type:"primary",onClick:a[1]||(a[1]=(...e)=>i.searchMaterials&&i.searchMaterials(...e))},"搜索")]),e.createElementVNode("view",{class:"material-list"},[e.createElementVNode("view",{class:"material-item",style:{"font-weight":"600"}},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},"物资名称")]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},"物资型号")]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},"物资规格")]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:"material-time"},"状态")]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("text",{class:"material-time"},"操作")])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.materialList,(t=>{var a,n,o;return e.openBlock(),e.createElementBlock("view",{class:"material-item",key:t.id},[e.createElementVNode("view",{class:"material-info material-name-col"},[e.createElementVNode("text",{class:"material-name"},e.toDisplayString((null==(a=t.inventory)?void 0:a.zichanmingcheng)||"未知物资"),1)]),e.createElementVNode("view",{class:"material-info material-model-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(n=t.inventory)?void 0:n.guigexinghao)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-spec-col"},[e.createElementVNode("text",{class:"material-time"},e.toDisplayString((null==(o=t.inventory)?void 0:o.wuziguige)||"暂无"),1)]),e.createElementVNode("view",{class:"material-info material-status-col"},[e.createElementVNode("text",{class:e.normalizeClass(["material-status","status-"+(t.status||0)])},e.toDisplayString(i.getInventoryStatusText(t.status)),3)]),e.createElementVNode("view",{class:"material-info material-action-col"},[e.createElementVNode("view",{class:"inventory-action-btn",onClick:e.withModifiers((e=>i.startInventory(t)),["stop"])},[e.createElementVNode("text",{class:"inventory-btn-text"},"盘点")],8,["onClick"])])])})),128))]),l.materialLoading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"load-more"},[e.createElementVNode("view",{class:"loading-spinner"}),e.createElementVNode("text",{class:"loading-text"},"加载中...")])):!l.materialHasMore&&l.materialList.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"load-more"},[e.createElementVNode("text",{class:"no-more-text"},"— 没有更多数据了 —")])):e.createCommentVNode("",!0)])],40,["refresher-triggered"])}]]);__definePage("pages/index/index",m),__definePage("pages/profile/profile",u),__definePage("pages/login/login",p),__definePage("pages/scan/scan",h),__definePage("pages/inventory/inventory",g),__definePage("pages/plan-detail/plan-detail",v);let y=null;var E;"undefined"!=typeof plus&&plus.android&&(y=plus.android.runtimeMainActivity(),"android"==uni.getSystemInfoSync().platform&&(plus.runtime.quit=function(){setTimeout((()=>{y.finish()}),10)}));const w={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){a("log","at App.vue:28","App Launch"),this.globalData.hhwUHFController=t("HL-HHWUHFController"),this.globalData.globalEvent=t("globalEvent"),E=this.globalData.hhwUHFController;const e=uni.getStorageSync("token");e?uni.reLaunch({url:"/pages/index/index"}):(uni.reLaunch({url:"/pages/login/login"}),a("log","at App.vue:41","App Launch token1234",e))},onShow:function(){if(a("log","at App.vue:47","App Show"),E){E.setDebuggable(!0,(e=>{a("log","at App.vue:54","App Show","setDebuggable: "+e)}));var e=Date.now();E.initUhf((t=>{a("log","at App.vue:61","App Show","initUHF: "+t,"cusTime: "+(Date.now()-e)),uni.showToast({title:"初始化成功",icon:"none",duration:1e3})}))}},onHide:function(){a("log","at App.vue:76","App Hide"),E&&E.closeUhf((e=>{a("log","at App.vue:83","App Hide","closeUhf: "+e),uni.showToast({title:"关闭成功",icon:"none",duration:1e3})}))}};const{app:f,Vuex:N,Pinia:V}=function(){const t=e.createVueApp(w);return t.config.globalProperties.$config=o,{app:t}}();uni.Vuex=N,uni.Pinia=V,f.provide("__globalStyles",__uniConfig.styles),f._component.mpType="app",f._component.render=()=>{},f.mount("#app")}(Vue); diff --git a/unpackage/dist/build/app-plus/pages/inventory/inventory.css b/unpackage/dist/build/app-plus/pages/inventory/inventory.css index 8de6a97..555f88d 100644 --- a/unpackage/dist/build/app-plus/pages/inventory/inventory.css +++ b/unpackage/dist/build/app-plus/pages/inventory/inventory.css @@ -1 +1 @@ -.inventory-bg{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item:last-child{margin-bottom:0}.readonly-label{color:#666;font-size:.875rem;width:20%}.readonly-value{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group{margin-bottom:1rem}.form-label{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview{position:relative;width:5rem;height:5rem}.photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text{font-size:.75rem;color:#666}.photo-preview{position:relative}.photo-img{width:5rem;height:5rem;border-radius:.5rem}.photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn:active{opacity:.9} +.inventory-bg{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item:last-child{margin-bottom:0}.readonly-label{color:#666;font-size:.875rem;width:20%}.readonly-value{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group{margin-bottom:1rem}.form-label{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview{position:relative;width:5rem;height:5rem}.photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text{font-size:.75rem;color:#666}.photo-preview{position:relative}.photo-img{width:5rem;height:5rem;border-radius:.5rem}.photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn:active{opacity:.9}.maintenance-section{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.section-title{font-size:1rem;font-weight:700;color:#333;margin-bottom:.75rem}.maintenance-list{display:flex;flex-direction:column;gap:.75rem}.maintenance-item{background:#fff;border-radius:.5rem;padding:.75rem;border:1px solid #e0e0e0}.maintenance-row{display:flex;align-items:flex-start;margin-bottom:.5rem;line-height:1.6}.maintenance-row:last-child{margin-bottom:0}.maintenance-label{font-size:.8125rem;color:#666;width:7.5rem;flex-shrink:0}.maintenance-value{font-size:.8125rem;color:#333;flex:1;word-break:break-all}.maintenance-actions{margin-top:.625rem;padding-top:.625rem;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.action-btn{padding:.375rem .75rem;border-radius:.5rem;font-size:.75rem;font-weight:500;border:none;margin-left:.5rem}.complete-btn{background:linear-gradient(135deg,#52c41a,#73d13d);color:#fff;box-shadow:0 2px 8px rgba(82,196,26,.3)}.complete-btn:active{opacity:.9;transform:scale(.98)}.view-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 2px 8px rgba(64,158,255,.3)}.view-btn:active{opacity:.9;transform:scale(.98)}.status-badge{display:inline-block;padding:.1875rem .375rem;border-radius:.375rem;font-size:.6875rem;font-weight:500;white-space:nowrap}.status-badge.status-normal{background:#e6f7ff;color:#1890ff;border:1px solid #91d5ff}.status-badge.status-urgent{background:#fff7e6;color:#fa8c16;border:1px solid #ffd591}.status-badge.status-overdue{background:#fff1f0;color:#ff4d4f;border:1px solid #ffccc7}.status-badge.status-default{background:#f5f5f5;color:#999;border:1px solid #d9d9d9}.empty-maintenance{text-align:center;padding:1.875rem 0;color:#999;font-size:.875rem}.inventory-action-section{margin-top:1rem;margin-bottom:1rem;display:flex;justify-content:center}.inventory-action-btn{width:6.25rem;height:2.5rem;background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:1.25rem;font-size:1rem;font-weight:600;box-shadow:0 4px 12px rgba(64,158,255,.3);transition:all .3s ease}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 2px 8px rgba(64,158,255,.4)}.inventory-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1.25rem;box-sizing:border-box}.modal-content{background:#fff;border-radius:.75rem;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.modal-title{font-size:1.125rem;font-weight:700;color:#333}.modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.modal-close:active{background:#e0e0e0}.close-icon{font-size:1.5rem;color:#666;line-height:1}.modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.modal-footer{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.modal-btn{flex:1;height:2.75rem;border-radius:1.375rem;font-size:1rem;font-weight:500;border:none;transition:all .3s ease;margin-top:0}.cancel-btn{background:#f5f5f5;color:#666}.cancel-btn:active{background:#e0e0e0;transform:scale(.98)}.modal-footer .submit-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 4px 12px rgba(64,158,255,.3)}.modal-footer .submit-btn:active{opacity:.9;transform:scale(.98)}.detail-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:999;padding:1.25rem;box-sizing:border-box}.detail-modal-content{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.detail-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.detail-modal-title{font-size:1.125rem;font-weight:700;color:#333}.detail-modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.detail-modal-close:active{background:#e0e0e0}.detail-modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.detail-form-group{margin-bottom:1rem;display:flex;flex-direction:column;gap:.375rem}.detail-form-group:last-child{margin-bottom:0}.detail-form-label{font-size:.875rem;color:#666;font-weight:500}.detail-form-value{font-size:.875rem;color:#333;line-height:1.6;word-break:break-all}.detail-photo-gallery{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:.375rem}.detail-photo-preview{width:6.25rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-sign-preview{width:9.375rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-modal-footer{display:flex;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.detail-modal-footer .submit-btn{width:100%;margin-top:0}.complete-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:998;padding:1.25rem;box-sizing:border-box}.complete-modal-content{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.complete-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.complete-modal-title{font-size:1.125rem;font-weight:700;color:#333}.complete-modal-close{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.complete-modal-close:active{background:#e0e0e0}.complete-modal-body{flex:1;padding:1rem .75rem;overflow-y:auto}.complete-form-group{margin-bottom:1rem}.complete-form-group:last-child{margin-bottom:0}.complete-form-label{font-size:.875rem;color:#333;font-weight:500;margin-bottom:.5rem;display:block}.complete-form-input{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;display:flex;align-items:center;font-size:.875rem}.input-value{color:#333}.input-placeholder{color:#999}.complete-form-textarea{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333;width:100%;box-sizing:border-box}.complete-photo-upload{display:flex;flex-wrap:wrap;gap:.625rem}.complete-photo-preview{position:relative;width:5rem;height:5rem}.complete-photo-img{width:5rem;height:5rem;border-radius:.5rem}.complete-photo-del{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.complete-photo-btn{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border:none}.complete-photo-btn .iconfont{font-size:1.5rem;color:#666;margin-bottom:.25rem}.signature-wrapper{background:#fff;border:2px solid #e0e0e0;border-radius:.5rem;padding:.625rem}.signature-canvas{width:100%;height:9.375rem;background:#fff;border:1px solid #e0e0e0;border-radius:.25rem;touch-action:none;box-sizing:border-box}.signature-actions{margin-top:.5rem;display:flex;justify-content:flex-end}.signature-btn{padding:.375rem .75rem;background:#f5f5f5;color:#666;border:none;border-radius:.5rem;font-size:.75rem}.signature-btn:active{background:#e0e0e0}.complete-modal-footer{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.complete-modal-footer .cancel-btn,.complete-modal-footer .submit-btn{flex:1;margin-top:0} diff --git a/unpackage/dist/build/web/assets/api.BGBfCZZa.js b/unpackage/dist/build/web/assets/api.BGBfCZZa.js deleted file mode 100644 index 86570df..0000000 --- a/unpackage/dist/build/web/assets/api.BGBfCZZa.js +++ /dev/null @@ -1 +0,0 @@ -import{E as n,G as a,H as e,J as t}from"./index-AvyRkr7C.js";function o(e,t){return new Promise(((o,s)=>{n({url:a+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:o,fail:s})}))}function s(){const t=e("token");return new Promise(((e,o)=>{n({url:a+"api/admin/auth/me",method:"POST",data:{token:t},success:e,fail:o})}))}function i(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/show",method:"GET",data:{id:t,token:o},success:e,fail:s})}))}function r(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function c(t){const o=e("token");return new Promise(((e,s)=>{console.log("confirm接口"),n({url:a+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...t,token:o},success:e,fail:s})}))}function u(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function m(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan-link/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function l(n){const o=e("token");return new Promise(((e,s)=>{t({url:a+"api/admin/upload-file",filePath:n,name:"file",formData:{token:o},success:n=>{try{const a=JSON.parse(n.data);e(a)}catch(a){s(a)}},fail:s})}))}export{r as a,s as b,i as c,m as d,u as g,o as l,c as s,l as u}; diff --git a/unpackage/dist/build/web/assets/api.CI2LxOCM.js b/unpackage/dist/build/web/assets/api.CI2LxOCM.js new file mode 100644 index 0000000..984678a --- /dev/null +++ b/unpackage/dist/build/web/assets/api.CI2LxOCM.js @@ -0,0 +1 @@ +import{L as n,M as e,N as a,O as t}from"./index--qIYCxYV.js";function o(a,t){return new Promise(((o,i)=>{n({url:e+"api/admin/auth/login",method:"POST",data:{username:a,password:t},success:o,fail:i})}))}function i(){const t=a("token");return new Promise(((a,o)=>{n({url:e+"api/admin/auth/me",method:"POST",data:{token:t},success:a,fail:o})}))}function s(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/inventory/show",method:"GET",data:{id:t,token:o},success:a,fail:i})}))}function r(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/inventory/index",method:"GET",data:{...t,token:o},success:a,fail:i})}))}function u(t){const o=a("token");return new Promise(((a,i)=>{console.log("confirm接口"),n({url:e+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...t,token:o},success:a,fail:i})}))}function c(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/material-infos-plan/index",method:"GET",data:{...t,token:o},success:a,fail:i})}))}function m(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/material-infos-plan-link/index",method:"GET",data:{...t,token:o},success:a,fail:i})}))}function d(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/equipment-operation/index",method:"GET",data:{...t,token:o},success:a,fail:i})}))}function l(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/equipment-operation/show",method:"GET",data:{id:t,token:o},success:a,fail:i})}))}function f(t){const o=a("token");return new Promise(((a,i)=>{n({url:e+"api/admin/equipment-operation/save",method:"POST",data:{...t,token:o},success:a,fail:i})}))}function p(n){const o=a("token");return new Promise(((a,i)=>{t({url:e+"api/admin/upload-file",filePath:n,name:"file",formData:{token:o},success:n=>{try{const e=JSON.parse(n.data);a(e)}catch(e){i(e)}},fail:i})}))}export{r as a,i as b,s as c,d,f as e,l as f,c as g,m as h,o as l,u as s,p as u}; diff --git a/unpackage/dist/build/web/assets/index--qIYCxYV.js b/unpackage/dist/build/web/assets/index--qIYCxYV.js new file mode 100644 index 0000000..55ca489 --- /dev/null +++ b/unpackage/dist/build/web/assets/index--qIYCxYV.js @@ -0,0 +1,25 @@ +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.Cmrm55fy.js","assets/api.CI2LxOCM.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-Ci5dUIqn.css","assets/pages-profile-profile.D6YsSPp2.js","assets/profile-CNWn3zN8.css","assets/pages-login-login.BXgwkOkX.js","assets/login-CS8KahcN.css","assets/pages-scan-scan.BIBZEr_x.js","assets/scan-CTrJClLW.css","assets/pages-inventory-inventory.C6NjEH2T.js","assets/inventory-C-dvnupk.css","assets/pages-plan-detail-plan-detail.DNRi6IFP.js","assets/plan-detail-CbAQ_gJu.css"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} +!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.all(n.map((n=>{if((n=function(e){return"/h5/"+e}(n))in e)return;e[n]=!0;const r=n.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.href===n&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${n}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":"modulepreload",r||(a.as="script",a.crossOrigin=""),a.href=n,s&&a.setAttribute("nonce",s),document.head.appendChild(a),r?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${n}`))))})):void 0})))}return r.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}; +/** +* @vue/shared v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const o={},r=[],i=()=>{},s=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),h=Array.isArray,p=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),S=e=>"[object Object]"===x(e),T=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,M=k((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,P=k((e=>e.replace(O,"-$1").toLowerCase())),L=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),A=k((e=>e?`on${L(e)}`:"")),$=(e,t)=>!Object.is(e,t),I=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let D;const N=()=>D||(D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function F(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;nv(e)?e:null==e?"":h(e)||b(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,U,2):String(e),U=(e,t)=>t&&t.__v_isRef?U(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[K(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>K(e)))}:y(t)?K(t):!b(t)||h(t)||S(t)?t:String(t),K=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},G=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map((e=>"uni-"+e)),J=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),Z=["list-item"].map((e=>"uni-"+e));function Q(e){if(-1!==Z.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==G.indexOf(t)||-1!==J.indexOf(t)}const ee=["%","%"],te=/^([a-z-]+:)?\/\//i,ne=/^data:.*,.*/;function oe(e){return 0===e.indexOf("/")}function re(e){return oe(e)?e:"/"+e}function ie(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}const se=e=>e>9?e:"0"+e;function ae({date:e=new Date,mode:t="date"}){return"time"===t?se(e.getHours())+":"+se(e.getMinutes()):e.getFullYear()+"-"+se(e.getMonth()+1)+"-"+se(e.getDate())}let le;function ce(){return le||(le=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),le)}function ue(e){if(!e)return;let t=e.type.name;for(;t&&Q(P(t));)t=(e=e.parent).type.name;return e.proxy}function de(e){return 1===e.nodeType}function fe(e){const t=ce();if(t&&t.UTSJSONObject&&e instanceof t.UTSJSONObject){const n={};return t.UTSJSONObject.keys(e).forEach((t=>{n[t]=e[t]})),F(n)}if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),F(t)}if(v(e))return W(e);if(h(e)){const t={};for(let n=0;n{e[n]&&(t+=n+" ")}));else if(e instanceof Map)e.forEach(((e,n)=>{e&&(t+=n+" ")}));else if(h(e))for(let o=0;o{e=e||(e=>e.tagName.startsWith("UNI-"));const t=HTMLElement.prototype,n=t.setAttribute;t.setAttribute=function(t,o){if(t.startsWith("data-")&&e(this)){(this.__uniDataset||(this.__uniDataset={}))[pe(t)]=o}n.call(this,t,o)};const o=t.removeAttribute;t.removeAttribute=function(t){this.__uniDataset&&t.startsWith("data-")&&e(this)&&delete this.__uniDataset[pe(t)],o.call(this,t)}}));function me(e){return c({},e.dataset,e.__uniDataset)}const ve=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ye(e){return{passive:e}}function be(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:me(e),offsetTop:n,offsetLeft:o}}function _e(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function we(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=_e(e[n])}catch(o){t[n]=e[n]}})),t}const xe=/\+/g;function Se(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe.apply(this,arguments);r=o(i,t)};return i.cancel=function(){n(r)},i}class Ce{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach((e=>{this.on(e,t[e])}))}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.filter((e=>"once"!==e.type))}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let o=0;ot(e))),Pe=function(){};Pe.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o=0;i--)if(o[i].fn===t||o[i].fn._===t||o[i]._id===t){o.splice(i,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var Le=Pe;const Ae={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function $e(e,t,n){if(v(t)&&t.startsWith("@")){let r=e[t.replace("@","")]||t;switch(n){case"titleColor":r="black"===r?"#000000":"#ffffff";break;case"borderStyle":r=(o=r)&&o in Ae?Ae[o]:o}return r}var o;return t}function Ie(e,t={},n="light"){const o=t[n],r={};return void 0!==o&&e?(Object.keys(e).forEach((i=>{const s=e[i];r[i]=S(s)?Ie(s,t,n):h(s)?s.map((e=>S(e)?Ie(e,t,n):$e(o,e))):$e(o,s,i)})),r):e} +/** +* @dcloudio/uni-h5-vue v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Re,Be;class De{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Re,!e&&Re&&(this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Re;try{return Re=this,e()}finally{Re=t}}}on(){Re=this}off(){Re=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Xe()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=We,t=Be;try{return We=!0,Be=this,this._runnings++,je(this),this.fn()}finally{He(this),this._runnings--,Be=t,We=e}}stop(){var e;this.active&&(je(this),He(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function je(e){e._trackId++,e._depsLength=0}function He(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},et=new WeakMap,tt=Symbol(""),nt=Symbol("");function ot(e,t,n){if(We&&Be){let t=et.get(e);t||et.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Qe((()=>t.delete(n)))),Ge(Be,o)}}function rt(e,t,n,o,r,i){const s=et.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&h(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":h(e)?T(n)&&a.push(s.get("length")):(a.push(s.get(tt)),p(e)&&a.push(s.get(nt)));break;case"delete":h(e)||(a.push(s.get(tt)),p(e)&&a.push(s.get(nt)));break;case"set":p(e)&&a.push(s.get(tt))}Ue();for(const l of a)l&&Ze(l,4);Ke()}const it=n("__proto__,__v_isRef,__isVue"),st=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),at=lt();function lt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Gt(this);for(let t=0,r=this.length;t{e[t]=function(...e){Ye(),Ue();const n=Gt(this)[t].apply(this,e);return Ke(),Xe(),n}})),e}function ct(e){const t=Gt(this);return ot(t,0,e),t.hasOwnProperty(e)}class ut{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?jt:Ft:r?Nt:Dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&f(at,t))return Reflect.get(at,t,n);if("hasOwnProperty"===t)return ct}const s=Reflect.get(e,t,n);return(y(t)?st.has(t):it(t))?s:(o||ot(e,0,t),r?s:on(s)?i&&T(t)?s:s.value:b(s)?o?zt(s):Vt(s):s)}}class dt extends ut{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Xt(r);if(Ut(n)||Xt(n)||(r=Gt(r),n=Gt(n)),!h(e)&&on(r)&&!on(n))return!t&&(r.value=n,!0)}const i=h(e)&&T(t)?Number(t)e,vt=e=>Reflect.getPrototypeOf(e);function yt(e,t,n=!1,o=!1){const r=Gt(e=e.__v_raw),i=Gt(t);n||($(t,i)&&ot(r,0,t),ot(r,0,i));const{has:s}=vt(r),a=o?mt:n?Qt:Zt;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function bt(e,t=!1){const n=this.__v_raw,o=Gt(n),r=Gt(e);return t||($(e,r)&&ot(o,0,e),ot(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function _t(e,t=!1){return e=e.__v_raw,!t&&ot(Gt(e),0,tt),Reflect.get(e,"size",e)}function wt(e){e=Gt(e);const t=Gt(this);return vt(t).has.call(t,e)||(t.add(e),rt(t,"add",e,e)),this}function xt(e,t){t=Gt(t);const n=Gt(this),{has:o,get:r}=vt(n);let i=o.call(n,e);i||(e=Gt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?$(t,s)&&rt(n,"set",e,t):rt(n,"add",e,t),this}function St(e){const t=Gt(this),{has:n,get:o}=vt(t);let r=n.call(t,e);r||(e=Gt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&rt(t,"delete",e,void 0),i}function Tt(){const e=Gt(this),t=0!==e.size,n=e.clear();return t&&rt(e,"clear",void 0,void 0),n}function Ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Gt(i),a=t?mt:e?Qt:Zt;return!e&&ot(s,0,tt),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function kt(e,t,n){return function(...o){const r=this.__v_raw,i=Gt(r),s=p(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?mt:t?Qt:Zt;return!t&&ot(i,0,l?nt:tt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Mt(){const e={get(e){return yt(this,e)},get size(){return _t(this)},has:bt,add:wt,set:xt,delete:St,clear:Tt,forEach:Ct(!1,!1)},t={get(e){return yt(this,e,!1,!0)},get size(){return _t(this)},has:bt,add:wt,set:xt,delete:St,clear:Tt,forEach:Ct(!1,!0)},n={get(e){return yt(this,e,!0)},get size(){return _t(this,!0)},has(e){return bt.call(this,e,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Ct(!0,!1)},o={get(e){return yt(this,e,!0,!0)},get size(){return _t(this,!0)},has(e){return bt.call(this,e,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:Ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=kt(r,!1,!1),n[r]=kt(r,!0,!1),t[r]=kt(r,!1,!0),o[r]=kt(r,!0,!0)})),[e,n,t,o]}const[Ot,Pt,Lt,At]=Mt();function $t(e,t){const n=t?e?At:Lt:e?Pt:Ot;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const It={get:$t(!1,!1)},Rt={get:$t(!1,!0)},Bt={get:$t(!0,!1)},Dt=new WeakMap,Nt=new WeakMap,Ft=new WeakMap,jt=new WeakMap;function Ht(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function Vt(e){return Xt(e)?e:qt(e,!1,ht,It,Dt)}function Wt(e){return qt(e,!1,gt,Rt,Nt)}function zt(e){return qt(e,!0,pt,Bt,Ft)}function qt(e,t,n,o,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ht(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function Yt(e){return Xt(e)?Yt(e.__v_raw):!(!e||!e.__v_isReactive)}function Xt(e){return!(!e||!e.__v_isReadonly)}function Ut(e){return!(!e||!e.__v_isShallow)}function Kt(e){return Yt(e)||Xt(e)}function Gt(e){const t=e&&e.__v_raw;return t?Gt(t):e}function Jt(e){return Object.isExtensible(e)&&R(e,"__v_skip",!0),e}const Zt=e=>b(e)?Vt(e):e,Qt=e=>b(e)?zt(e):e;class en{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fe((()=>e(this._value)),(()=>nn(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Gt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||nn(e,4),tn(e),e.effect._dirtyLevel>=2&&nn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tn(e){var t;We&&Be&&(e=Gt(e),Ge(Be,null!=(t=e.dep)?t:e.dep=Qe((()=>e.dep=void 0),e instanceof en?e:void 0)))}function nn(e,t=4,n){const o=(e=Gt(e)).dep;o&&Ze(o,t)}function on(e){return!(!e||!0!==e.__v_isRef)}function rn(e){return an(e,!1)}function sn(e){return an(e,!0)}function an(e,t){return on(e)?e:new ln(e,t)}class ln{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Gt(e),this._value=t?e:Zt(e)}get value(){return tn(this),this._value}set value(e){const t=this.__v_isShallow||Ut(e)||Xt(e);e=t?e:Gt(e),$(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Zt(e),nn(this,4))}}function cn(e){return on(e)?e.value:e}const un={get:(e,t,n)=>cn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return on(r)&&!on(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function dn(e){return Yt(e)?e:new Proxy(e,un)}function fn(e,t,n,o){try{return o?e(...o):e()}catch(r){pn(r,t,n)}}function hn(e,t,n,o){if(m(e)){const r=fn(e,t,n,o);return r&&_(r)&&r.catch((e=>{pn(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=yn[o],i=Pn(r);iPn(e)-Pn(t)));if(_n.length=0,wn)return void wn.push(...e);for(wn=e,xn=0;xnnull==e.id?1/0:e.id,Ln=(e,t)=>{const n=Pn(e)-Pn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function An(e){vn=!1,mn=!0,yn.sort(Ln);try{for(bn=0;bnv(e)?e.trim():e))),t&&(i=n.map(B))}let l,c=r[l=A(t)]||r[l=A(M(t))];!c&&s&&(c=r[l=A(P(t))]),c&&hn(c,e,6,In(e,c,i));const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,hn(u,e,6,In(e,u,i))}}function In(e,t,n){if(1!==n.length)return n;if(m(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&f(o,"type")&&f(o,"timeStamp")&&f(o,"target")&&f(o,"currentTarget")&&f(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function Rn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!m(e)){const o=e=>{const n=Rn(e,t,!0);n&&(a=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(h(i)?i.forEach((e=>s[e]=null)):c(s,i),b(e)&&o.set(e,s),s):(b(e)&&o.set(e,null),null)}function Bn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,P(t))||f(e,t))}let Dn=null,Nn=null;function Fn(e){const t=Dn;return Dn=e,Nn=e&&e.type.__scopeId||null,t}function jn(e,t=Dn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Xr(-1);const r=Fn(t);let i;try{i=e(...n)}finally{Fn(r),o._d&&Xr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Hn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:c,emit:u,render:d,renderCache:f,data:h,setupState:p,ctx:g,inheritAttrs:m}=e;let v,y;const b=Fn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=ai(d.call(t,e,f,i,p,h,g)),y=c}else{const e=t;0,v=ai(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),y=t.props?c:Vn(c)}}catch(w){Wr.length=0,pn(w,e,1),v=oi(Hr)}let _=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(l)&&(y=Wn(y,s)),_=ri(_,y))}return n.dirs&&(_=ri(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,Fn(b),v}const Vn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Wn=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;const Jn=Symbol.for("v-scx");function Zn(e,t){return to(e,null,t)}const Qn={};function eo(e,t,n){return to(e,t,n)}function to(e,t,{immediate:n,deep:r,flush:s,once:a,onTrack:l,onTrigger:c}=o){if(t&&a){const e=t;t=(...t)=>{e(...t),k()}}const d=pi,f=e=>!0===r?e:ro(e,!1===r?1:void 0);let p,g,v=!1,y=!1;if(on(e)?(p=()=>e.value,v=Ut(e)):Yt(e)?(p=()=>f(e),v=!0):h(e)?(y=!0,v=e.some((e=>Yt(e)||Ut(e))),p=()=>e.map((e=>on(e)?e.value:Yt(e)?f(e):m(e)?fn(e,d,2):void 0))):p=m(e)?t?()=>fn(e,d,2):()=>(g&&g(),hn(e,d,3,[_])):i,t&&r){const e=p;p=()=>ro(e())}let b,_=e=>{g=T.onStop=()=>{fn(e,d,4),g=T.onStop=void 0}};if(wi){if(_=i,t?n&&hn(t,d,3,[p(),y?[]:void 0,_]):p(),"sync"!==s)return i;{const e=br(Jn);b=e.__watcherHandles||(e.__watcherHandles=[])}}let w=y?new Array(e.length).fill(Qn):Qn;const x=()=>{if(T.active&&T.dirty)if(t){const e=T.run();(r||v||(y?e.some(((e,t)=>$(e,w[t]))):$(e,w)))&&(g&&g(),hn(t,d,3,[e,w===Qn?void 0:y&&w[0]===Qn?[]:w,_]),w=e)}else T.run()};let S;x.allowRecurse=!!t,"sync"===s?S=x:"post"===s?S=()=>$r(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),S=()=>kn(x));const T=new Fe(p,i,S),C=Re,k=()=>{T.stop(),C&&u(C.effects,T)};return t?n?x():w=T.run():"post"===s?$r(T.run.bind(T),d&&d.suspense):T.run(),b&&b.push(k),k}function no(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?oo(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const s=yi(this),a=to(r,i.bind(o),n);return s(),a}function oo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),on(e))ro(e.value,t,n,o);else if(h(e))for(let r=0;r{ro(e,t,n,o)}));else if(S(e))for(const r in e)ro(e[r],t,n,o);return e}function io(e,t){if(null===Dn)return e;const n=Ti(Dn)||Dn.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0})),Vo((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&yo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1)for(const e of r)if(e.type!==Hr){i=e;break}const s=Gt(e),{mode:a}=s;if(o.isLeaving)return go(i);const l=mo(i);if(!l)return go(i);const c=po(l,s,o,n);vo(l,c);const u=n.subTree,d=u&&mo(u);if(d&&d.type!==Hr&&!Zr(l,d)){const e=po(d,s,o,n);if(vo(d,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},go(i);"in-out"===a&&l.type!==Hr&&(e.delayLeave=(e,t,n)=>{ho(o,d)[String(d.key)]=d,e[ao]=()=>{t(),e[ao]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return i}}};function ho(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function po(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=ho(n,e),x=(e,t)=>{e&&hn(e,o,9,t)},S=(e,t)=>{const n=t[1];x(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[ao]&&t[ao](!0);const i=w[_];i&&Zr(e,i)&&i.el[ao]&&i.el[ao](),x(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||l,o=y||c,i=b||u}let s=!1;const a=e[lo]=t=>{s||(s=!0,x(t?i:o,[e]),T.delayedLeave&&T.delayedLeave(),e[lo]=void 0)};t?S(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[lo]&&t[lo](!0),n.isUnmounting)return o();x(d,[t]);let i=!1;const s=t[ao]=n=>{i||(i=!0,o(),x(n?g:p,[t]),t[ao]=void 0,w[r]===e&&delete w[r])};w[r]=e,f?S(f,[t,s]):s()},clone:e=>po(e,t,n,o)};return T}function go(e){if(So(e))return(e=ri(e)).children=null,e}function mo(e){return So(e)?e.children?e.children[0]:void 0:e}function vo(e,t){6&e.shapeFlag&&e.component?vo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function yo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ic({name:e.name},t,{setup:e}))():e}const _o=e=>!!e.type.__asyncLoader +/*! #__NO_SIDE_EFFECTS__ */;function wo(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return bo({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=pi;if(l)return()=>xo(l,e);const t=t=>{c=null,pn(t,e,13,!o)};if(s&&e.suspense||wi)return d().then((t=>()=>xo(t,e))).catch((e=>(t(e),()=>o?oi(o,{error:e}):null)));const a=rn(!1),u=rn(),f=rn(!!r);return r&&setTimeout((()=>{f.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{a.value=!0,e.parent&&So(e.parent.vnode)&&(e.parent.effect.dirty=!0,kn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?xo(l,e):u.value&&o?oi(o,{error:u.value}):n&&!f.value?oi(n):void 0}})}function xo(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=oi(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const So=e=>e.type.__isKeepAlive;class To{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,r=t.get(e);if(r)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return r}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const Co={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=gi(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=e.cache||new To(e.max);r.pruneCacheEntry=s;let i=null;function s(t){var o;!i||!Zr(t,i)||"key"===e.matchBy&&t.key!==i.key?(Ao(o=t),u(o,n,a,!0)):i&&Ao(i)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=o,f=d("div");function h(t){r.forEach(((n,o)=>{const i=Io(n,e.matchBy);!i||t&&t(i)||(r.delete(o),s(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,I(i.ba),i.isDeactivated=e}c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),$r((()=>{i.isDeactivated=!1,i.a&&I(i.a);const t=e.props&&e.props.onVnodeMounted;t&&di(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;t.bda&&Ro(t.bda),c(e,f,null,1,a),$r((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&I(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&di(n,t.parent,e),t.isDeactivated=!0}),a)},eo((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&h((t=>Eo(e,t))),t&&h((e=>!Eo(t,e)))}),{flush:"post",deep:!0});let p=null;const g=()=>{null!=p&&r.set(p,$o(n.subTree))};return Fo(g),Ho(g),Vo((()=>{r.forEach(((t,o)=>{r.delete(o),s(t);const{subTree:i,suspense:a}=n,l=$o(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&I(l.component.bda),Ao(l);const e=l.component.da;e&&$r(e,a)}}))})),()=>{if(p=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Jr(o)||!(4&o.shapeFlag)&&!Gn(o.type))return i=null,o;let s=$o(o);const a=s.type,l=Io(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Eo(c,l))||u&&l&&Eo(u,l))return i=s,o;const d=null==s.key?a:s.key,f=r.get(d);return s.el&&(s=ri(s),Gn(o.type)&&(o.ssContent=s)),p=d,f&&(s.el=f.el,s.component=f.component,s.transition&&vo(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,i=s,Gn(o.type)?o:s}}},ko=Co;function Eo(e,t){return h(e)?e.some((e=>Eo(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function Mo(e,t){Po(e,"a",t)}function Oo(e,t){Po(e,"da",t)}function Po(e,t,n=pi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,Bo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)So(e.parent.vnode)&&Lo(o,t,n,e),e=e.parent}}function Lo(e,t,n,o){const r=Bo(t,e,o,!0);Wo((()=>{u(o[t],r)}),n)}function Ao(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $o(e){return Gn(e.type)?e.ssContent:e}function Io(e,t){if("name"===t){const t=e.type;return Ci(_o(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Ro(e){for(let t=0;t-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return["onLoad","onShow"].indexOf(e)>-1}(e))){const o=n.proxy;hn(t.bind(o),n,e,"onLoad"===e?[o.$page.options]:[])}}const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ye();const r=yi(n),i=hn(t,n,e,o);return r(),Xe(),i});return o?i.unshift(s):i.push(s),s}var r}const Do=e=>(t,n=pi)=>(!wi||"sp"===e)&&Bo(e,((...e)=>t(...e)),n),No=Do("bm"),Fo=Do("m"),jo=Do("bu"),Ho=Do("u"),Vo=Do("bum"),Wo=Do("um"),zo=Do("sp"),qo=Do("rtg"),Yo=Do("rtc");function Xo(e,t=pi){Bo("ec",e,t)}function Uo(e,t,n,o){let r;const i=n&&n[o];if(h(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o!Jr(e)||e.type!==Hr&&!(e.type===Fr&&!Go(e.children))))?e:null}const Jo=e=>{if(!e)return null;if(_i(e)){return Ti(e)||e.proxy}return Jo(e.parent)},Zo=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jo(e.parent),$root:e=>Jo(e.root),$emit:e=>e.emit,$options:e=>sr(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,kn(e.update)})(e)),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>no.bind(e)}),Qo=(e,t)=>e!==o&&!e.__isScriptSetup&&f(e,t),er={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Qo(r,t))return a[t]=1,r[t];if(i!==o&&f(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&f(u,t))return a[t]=3,s[t];if(n!==o&&f(n,t))return a[t]=4,n[t];nr&&(a[t]=0)}}const d=Zo[t];let h,p;return d?("$attrs"===t&&ot(e,0,t),d(e)):(h=l.__cssModules)&&(h=h[t])?h:n!==o&&f(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,f(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Qo(i,t)?(i[t]=n,!0):r!==o&&f(r,t)?(r[t]=n,!0):!f(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let l;return!!n[a]||e!==o&&f(e,a)||Qo(t,a)||(l=s[0])&&f(l,a)||f(r,a)||f(Zo,a)||f(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tr(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let nr=!0;function or(e){const t=sr(e),n=e.proxy,o=e.ctx;nr=!1,t.beforeCreate&&rr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:a,watch:l,provide:c,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:S,unmounted:T,render:C,renderTracked:k,renderTriggered:E,errorCaptured:M,serverPrefetch:O,expose:P,inheritAttrs:L,components:A,directives:$,filters:I}=t;if(u&&function(e,t,n=i){h(e)&&(e=ur(e));for(const o in e){const n=e[o];let r;r=b(n)?"default"in n?br(n.from||o,n.default,!0):br(n.from||o):br(n),on(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=Vt(t))}if(nr=!0,s)for(const h in s){const e=s[h],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,a=ki({get:t,set:r});Object.defineProperty(o,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const i in l)ir(l[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{yr(t,e[t])}))}function R(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&rr(d,e,"c"),R(No,f),R(Fo,p),R(jo,g),R(Ho,v),R(Mo,y),R(Oo,_),R(Xo,M),R(Yo,k),R(qo,E),R(Vo,x),R(Wo,T),R(zo,O),h(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===i&&(e.render=C),null!=L&&(e.inheritAttrs=L),A&&(e.components=A),$&&(e.directives=$);const B=e.appContext.config.globalProperties.$applyOptions;B&&B(t,e,n)}function rr(e,t,n){hn(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ir(e,t,n,o){const r=o.includes(".")?oo(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&eo(r,n)}else if(m(e))eo(r,e.bind(n));else if(b(e))if(h(e))e.forEach((e=>ir(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&eo(r,o,e)}}function sr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>ar(l,e,s,!0))),ar(l,t,s)):l=t,b(t)&&i.set(t,l),l}function ar(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ar(e,i,n,!0),r&&r.forEach((t=>ar(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=lr[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const lr={data:cr,props:hr,emits:hr,methods:fr,computed:fr,beforeCreate:dr,created:dr,beforeMount:dr,mounted:dr,beforeUpdate:dr,updated:dr,beforeDestroy:dr,beforeUnmount:dr,destroyed:dr,unmounted:dr,activated:dr,deactivated:dr,errorCaptured:dr,serverPrefetch:dr,components:fr,directives:fr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=dr(e[o],t[o]);return n},provide:cr,inject:function(e,t){return fr(ur(e),ur(t))}};function cr(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function ur(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(a,...t)):m(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const u=oi(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c),s=!0,a._container=i,i.__vue_app__=a,a._instance=u.component,Ti(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){const t=vr;vr=a;try{return e()}finally{vr=t}}};return a}}let vr=null;function yr(e,t){if(pi){let n=pi.provides;const o=pi.parent&&pi.parent.provides;o===n&&(n=pi.provides=Object.create(o)),n[e]=t,"app"===pi.type.mpType&&pi.appContext.app.provide(e,t)}else;}function br(e,t,n=!1){const o=pi||Dn;if(o||vr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:vr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function _r(e,t,n,r){const[i,s]=e.propsOptions;let a,l=!1;if(t)for(let o in t){if(C(o))continue;const c=t[o];let u;i&&f(i,u=M(o))?s&&s.includes(u)?(a||(a={}))[u]=c:n[u]=c:Bn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,l=!0)}if(s){const t=Gt(n),r=a||o;for(let o=0;o{d=!0;const[n,o]=xr(e,t,!0);c(l,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!d)return b(e)&&i.set(e,r),r;if(h(a))for(let r=0;r-1,n[1]=o<0||t-1||f(n,"default"))&&u.push(e)}}}const p=[l,u];return b(e)&&i.set(e,p),p}function Sr(e){return"$"!==e[0]&&!C(e)}function Tr(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Cr(e,t){return Tr(e)===Tr(t)}function kr(e,t){return h(t)?t.findIndex((t=>Cr(t,e))):m(t)&&Cr(t,e)?0:-1}const Er=e=>"_"===e[0]||"$stable"===e,Mr=e=>h(e)?e.map(ai):[ai(e)],Or=(e,t,n)=>{if(t._n)return t;const o=jn(((...e)=>Mr(t(...e))),n);return o._c=!1,o},Pr=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Er(r))continue;const n=e[r];if(m(n))t[r]=Or(0,n,o);else if(null!=n){const e=Mr(n);t[r]=()=>e}}},Lr=(e,t)=>{const n=Mr(t);e.slots.default=()=>n};function Ar(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Ar(e,t&&(h(t)?t[o]:t),n,r,i)));if(_o(r)&&!i)return;const s=4&r.shapeFlag?Ti(r.component)||r.component.proxy:r.el,a=i?null:s,{i:l,r:c}=e,d=t&&t.r,p=l.refs===o?l.refs={}:l.refs,g=l.setupState;if(null!=d&&d!==c&&(v(d)?(p[d]=null,f(g,d)&&(g[d]=null)):on(d)&&(d.value=null)),m(c))fn(c,l,12,[a,p]);else{const t=v(c),o=on(c);if(t||o){const r=()=>{if(e.f){const n=t?f(g,c)?g[c]:p[c]:c.value;i?h(n)&&u(n,s):h(n)?n.includes(s)||n.push(s):t?(p[c]=[s],f(g,c)&&(g[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else t?(p[c]=a,f(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(p[e.k]=a))};a?(r.id=-1,$r(r,n)):r()}}}const $r=function(e,t){var n;t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):(h(n=e)?_n.push(...n):wn&&wn.includes(n,n.allowRecurse?xn+1:xn)||_n.push(n),En())};function Ir(e){return function(e,t){N().__VUE__=!0;const{insert:n,remove:s,patchProp:a,forcePatchProp:l,createElement:u,createText:d,createComment:h,setText:p,setElementText:g,parentNode:m,nextSibling:v,setScopeId:y=i,insertStaticContent:b}=e,w=(e,t,n,o=null,r=null,i=null,s,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Zr(e,t)&&(o=te(e),G(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case jr:x(e,t,n,o);break;case Hr:S(e,t,n,o);break;case Vr:null==e&&T(t,n,o,s);break;case Fr:j(e,t,n,o,r,i,s,a,l);break;default:1&d?O(e,t,n,o,r,i,s,a,l):6&d?H(e,t,n,o,r,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,o,r,i,s,a,l,re)}null!=u&&r&&Ar(u,e&&e.ref,i,t||e,!t)},x=(e,t,o,r)=>{if(null==e)n(t.el=d(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&p(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=h(t.children||""),o,r):t.el=e.el},T=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},k=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=v(e),n(e,o,r),e=i;n(t,o,r)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),s(e),e=n;s(t)},O=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?L(t,n,o,r,i,s,a,l):B(e,t,r,i,s,a,l)},L=(e,t,o,r,i,s,l,c)=>{let d,f;const{props:h,shapeFlag:p,transition:m,dirs:v}=e;if(d=e.el=u(e.type,s,h&&h.is,h),8&p?g(d,e.children):16&p&&$(e.children,d,null,r,i,Rr(e,s),l,c),v&&so(e,null,r,"created"),A(d,e,e.scopeId,l,r),h){for(const t in h)"value"===t||C(t)||a(d,t,null,h[t],s,e.children,r,i,ee);"value"in h&&a(d,"value",null,h.value,s),(f=h.onVnodeBeforeMount)&&di(f,r,e)}Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1}),v&&so(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);y&&m.beforeEnter(d),n(d,t,o),((f=h&&h.onVnodeMounted)||y||v)&&$r((()=>{f&&di(f,r,e),y&&m.enter(d),v&&so(e,null,r,"mounted")}),i)},A=(e,t,n,o,r)=>{if(n&&y(e,n),o)for(let i=0;i{for(let c=l;c{const u=t.el=e.el;let{patchFlag:d,dynamicChildren:f,dirs:h}=t;d|=16&e.patchFlag;const p=e.props||o,m=t.props||o;let v;if(n&&Br(n,!1),(v=m.onVnodeBeforeUpdate)&&di(v,n,t,e),h&&so(t,e,n,"beforeUpdate"),n&&Br(n,!0),f?D(e.dynamicChildren,f,u,n,r,Rr(t,i),s):c||Y(e,t,u,null,n,r,Rr(t,i),s,!1),d>0){if(16&d)F(u,t,p,m,n,r,i);else if(2&d&&p.class!==m.class&&a(u,"class",null,m.class,i),4&d&&a(u,"style",p.style,m.style,i),8&d){const o=t.dynamicProps;for(let t=0;t{v&&di(v,n,t,e),h&&so(t,e,n,"updated")}),r)},D=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==r){if(n!==o)for(const o in n)C(o)||o in r||a(e,o,n[o],null,c,t.children,i,s,ee);for(const o in r){if(C(o))continue;const u=r[o],d=n[o];(u!==d&&"value"!==o||l&&l(e,o))&&a(e,o,d,u,c,t.children,i,s,ee)}"value"in r&&a(e,"value",n.value,r.value,c)}},j=(e,t,o,r,i,s,a,l,c)=>{const u=t.el=e?e.el:d(""),f=t.anchor=e?e.anchor:d("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(u,o,r),n(f,o,r),$(t.children||[],o,f,i,s,a,l,c)):h>0&&64&h&&p&&e.dynamicChildren?(D(e.dynamicChildren,p,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Dr(e,t,!0)):Y(e,t,o,f,i,s,a,l,c)},H=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):V(t,n,o,r,i,s,l):W(e,t,l)},V=(e,t,n,r,i,s,a)=>{const l=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||fi,s={uid:hi++,vnode:e,type:r,parent:t,appContext:i,get renderer(){return"app"===r.mpType?"app":this.$pageInstance&&this.$pageInstance==s?"page":"component"},root:null,next:null,subTree:null,effect:null,update:null,scope:new De(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xr(r,i),emitsOptions:Rn(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};s.ctx={_:s},s.root=t?t.root:s,s.emit=$n.bind(null,s),s.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(s);return s}(e,r,i);if(So(e)&&(l.ctx.renderer=re),function(e,t=!1){t&&vi(t);const{props:n,children:o}=e.vnode,r=_i(e);(function(e,t,n,o=!1){const r={},i={};R(i,Qr,1),e.propsDefaults=Object.create(null),_r(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Wt(r):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Gt(t),R(t,"_",n)):Pr(t,e.slots={})}else e.slots={},t&&Lr(e,t);R(e.slots,Qr,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Jt(new Proxy(e.ctx,er));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(ot(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,r=yi(e);Ye();const i=fn(o,e,0,[e.props,n]);if(Xe(),r(),_(i)){if(i.then(bi,bi),t)return i.then((n=>{xi(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=i}else xi(e,i,t)}else Si(e,t)}(e,t):void 0;t&&vi(!1)}(l),l.asyncDep){if(i&&i.registerDep(l,z),!e.el){const e=l.subTree=oi(Hr);S(null,e,t,n)}}else z(l,e,t,n,i,s,a)},W=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||zn(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?zn(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tbn&&yn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},z=(e,t,n,o,r,s,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:c}=e;{const n=Nr(e);if(n)return t&&(t.el=c.el,q(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,d=t;Br(e,!1),t?(t.el=c.el,q(e,t,a)):t=c,n&&I(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&di(u,i,t,c),Br(e,!0);const f=Hn(e),h=e.subTree;e.subTree=f,w(h,f,m(h.el),te(h),e,r,s),t.el=f.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,f.el),o&&$r(o,r),(u=t.props&&t.props.onVnodeUpdated)&&$r((()=>di(u,i,t,c)),r)}else{let i;const{el:a,props:l}=t,{bm:c,m:u,parent:d}=e,f=_o(t);if(Br(e,!1),c&&I(c),!f&&(i=l&&l.onVnodeBeforeMount)&&di(i,d,t),Br(e,!0),a&&se){const n=()=>{e.subTree=Hn(e),se(a,e.subTree,e,r,null)};f?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Hn(e);w(null,i,n,o,e,r,s),t.el=i.el}if(u&&$r(u,r),!f&&(i=l&&l.onVnodeMounted)){const e=t;$r((()=>di(i,d,e)),r)}(256&t.shapeFlag||d&&_o(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&Ro(e.ba),e.a&&$r(e.a,r)),e.isMounted=!0,t=n=o=null}},c=e.effect=new Fe(l,i,(()=>kn(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Br(e,!0),u()},q=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Gt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;_r(e,t,r,i)&&(c=!0);for(const i in a)t&&(f(t,i)||(o=P(i))!==i&&f(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=wr(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&f(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let s=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(c(i,t),n||1!==e||delete i._):(s=!t.$stable,Pr(t,i)),a=t}else t&&(Lr(e,t),a={default:1});if(s)for(const o in i)Er(o)||null!=a[o]||delete i[o]})(e,t.children,n),Ye(),Mn(e),Xe()},Y=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void U(c,d,n,o,r,i,s,a,l);if(256&f)return void X(c,d,n,o,r,i,s,a,l)}8&h?(16&u&&ee(c,r,i),d!==c&&g(n,d)):16&u?16&h?U(c,d,n,o,r,i,s,a,l):ee(c,r,i,!0):(8&u&&g(n,""),16&h&&$(d,n,o,r,i,s,a,l))},X=(e,t,n,o,i,s,a,l,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,f=Math.min(u,d);let h;for(h=0;hd?ee(e,i,s,!0,!1,f):$(t,n,o,i,s,a,l,c,f)},U=(e,t,n,o,i,s,a,l,c)=>{let u=0;const d=t.length;let f=e.length-1,h=d-1;for(;u<=f&&u<=h;){const o=e[u],r=t[u]=c?li(t[u]):ai(t[u]);if(!Zr(o,r))break;w(o,r,n,null,i,s,a,l,c),u++}for(;u<=f&&u<=h;){const o=e[f],r=t[h]=c?li(t[h]):ai(t[h]);if(!Zr(o,r))break;w(o,r,n,null,i,s,a,l,c),f--,h--}if(u>f){if(u<=h){const e=h+1,r=eh)for(;u<=f;)G(e[u],i,s,!0),u++;else{const p=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?li(t[u]):ai(t[u]);null!=e.key&&m.set(e.key,u)}let v,y=0;const b=h-g+1;let _=!1,x=0;const S=new Array(b);for(u=0;u=b){G(o,i,s,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=h;v++)if(0===S[v-g]&&Zr(o,t[v])){r=v;break}void 0===r?G(o,i,s,!0):(S[r-g]=u+1,r>=x?x=r:_=!0,w(o,t[r],n,null,i,s,a,l,c),y++)}const T=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):r;for(v=T.length-1,u=b-1;u>=0;u--){const e=g+u,r=t[e],f=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void a.move(e,t,o,re);if(a===Fr){n(s,t,o);for(let e=0;el.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o)},G=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f}=e;if(null!=a&&Ar(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&f,p=!_o(e);let g;if(p&&(g=s&&s.onVnodeBeforeUnmount)&&di(g,t,e),6&u)Q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&so(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,re,o):c&&(i!==Fr||d>0&&64&d)?ee(c,t,n,!1,!0):(i===Fr&&384&d||!r&&16&u)&&ee(l,t,n),o&&J(e)}(p&&(g=s&&s.onVnodeUnmounted)||h)&&$r((()=>{g&&di(g,t,e),h&&so(e,null,t,"unmounted")}),n)},J=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Fr)return void Z(n,o);if(t===Vr)return void E(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},Z=(e,t)=>{let n;for(;e!==t;)n=v(e),s(e),e=n;s(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&I(o),r.stop(),i&&(i.active=!1,G(s,e,t,n)),a&&$r(a,t),$r((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():v(e.anchor||e.el);let ne=!1;const oe=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):w(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,Mn(),On(),ne=!1),t._vnode=e},re={p:w,um:G,m:K,r:J,mt:V,mc:$,pc:Y,pbc:D,n:te,o:e};let ie,se;t&&([ie,se]=t(re));return{render:oe,hydrate:ie,createApp:mr(oe,ie)}}(e)}function Rr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Dr(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let i=0;i0?zr||r:null,Wr.pop(),zr=Wr[Wr.length-1]||null,Yr>0&&zr&&zr.push(e),e}function Kr(e,t,n,o,r,i){return Ur(ni(e,t,n,o,r,i,!0))}function Gr(e,t,n,o,r){return Ur(oi(e,t,n,o,r,!0))}function Jr(e){return!!e&&!0===e.__v_isVNode}function Zr(e,t){return e.type===t.type&&e.key===t.key}const Qr="__vInternal",ei=({key:e})=>null!=e?e:null,ti=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||on(e)||m(e)?{i:Dn,r:e,k:t,f:!!n}:e:null);function ni(e,t=null,n=null,o=0,r=null,i=(e===Fr?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ei(t),ref:t&&ti(t),scopeId:Nn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Dn};return a?(ci(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),Yr>0&&!s&&zr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&zr.push(l),l}const oi=function(e,t=null,n=null,o=0,r=null,i=!1){e&&e!==Yn||(e=Hr);if(Jr(e)){const o=ri(e,t,!0);return n&&ci(o,n),Yr>0&&!i&&zr&&(6&o.shapeFlag?zr[zr.indexOf(e)]=o:zr.push(o)),o.patchFlag|=-2,o}s=e,m(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Kt(e)||Qr in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=he(e)),b(n)&&(Kt(n)&&!h(n)&&(n=c({},n)),t.style=fe(n))}const a=v(e)?1:Gn(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:m(e)?2:0;return ni(e,t,n,o,r,a,i,!0)};function ri(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?ui(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ei(a),ref:t&&t.ref?n&&r?h(r)?r.concat(ti(t)):[r,ti(t)]:ti(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ri(e.ssContent),ssFallback:e.ssFallback&&ri(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ii(e=" ",t=0){return oi(jr,null,e,t)}function si(e="",t=!1){return t?(qr(),Gr(Hr,null,e)):oi(Hr,null,e)}function ai(e){return null==e||"boolean"==typeof e?oi(Hr):h(e)?oi(Fr,null,e.slice()):"object"==typeof e?li(e):oi(jr,null,String(e))}function li(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ri(e)}function ci(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),ci(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Qr in t?3===o&&Dn&&(1===Dn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Dn}}else m(t)?(t={default:t,_ctx:Dn},n=32):(t=String(t),64&o?(n=16,t=[ii(t)]):n=8);e.children=t,e.shapeFlag|=n}function ui(...e){const t={};for(let n=0;npi||Dn;let mi,vi;{const e=N(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};mi=t("__VUE_INSTANCE_SETTERS__",(e=>pi=e)),vi=t("__VUE_SSR_SETTERS__",(e=>wi=e))}const yi=e=>{const t=pi;return mi(e),e.scope.on(),()=>{e.scope.off(),mi(t)}},bi=()=>{pi&&pi.scope.off(),mi(null)};function _i(e){return 4&e.vnode.shapeFlag}let wi=!1;function xi(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=dn(t)),Si(e,n)}function Si(e,t,n){const o=e.type;e.render||(e.render=o.render||i);{const t=yi(e);Ye();try{or(e)}finally{Xe(),t()}}}function Ti(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dn(Jt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Zo?Zo[n](e):void 0,has:(e,t)=>t in e||t in Zo}))}function Ci(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const ki=(e,t)=>{const n=function(e,t,n=!1){let o,r;const s=m(e);return s?(o=e,r=i):(o=e.get,r=e.set),new en(o,r,s||!r,n)}(e,0,wi);return n};function Ei(e,t,n){const o=arguments.length;return 2===o?b(t)&&!h(t)?Jr(t)?oi(e,null,[t]):oi(e,t):oi(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Jr(n)&&(n=[n]),oi(e,t,n))}const Mi="3.4.21",Oi="undefined"!=typeof document?document:null,Pi=Oi&&Oi.createElement("template"),Li={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Oi.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Oi.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Oi.createElement(e,{is:n}):Oi.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Oi.createTextNode(e),createComment:e=>Oi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Pi.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Pi.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ai="transition",$i=Symbol("_vtc"),Ii=(e,{slots:t})=>Ei(fo,function(e){const t={};for(const c in e)c in Ri||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(b(e))return[Ni(e.enter),Ni(e.leave)];{const t=Ni(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:T=y,onAppear:C=_,onAppearCancelled:k=w}=t,E=(e,t,n)=>{ji(e,t?d:a),ji(e,t?u:s),n&&n()},M=(e,t)=>{e._isLeaving=!1,ji(e,f),ji(e,p),ji(e,h),t&&t()},O=e=>(t,n)=>{const r=e?C:_,s=()=>E(t,e,n);Bi(r,[t,s]),Hi((()=>{ji(t,e?l:i),Fi(t,e?d:a),Di(r)||Wi(t,o,m,s)}))};return c(t,{onBeforeEnter(e){Bi(y,[e]),Fi(e,i),Fi(e,s)},onBeforeAppear(e){Bi(T,[e]),Fi(e,l),Fi(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);Fi(e,f),document.body.offsetHeight,Fi(e,h),Hi((()=>{e._isLeaving&&(ji(e,f),Fi(e,p),Di(x)||Wi(e,o,v,n))})),Bi(x,[e,n])},onEnterCancelled(e){E(e,!1),Bi(w,[e])},onAppearCancelled(e){E(e,!0),Bi(k,[e])},onLeaveCancelled(e){M(e),Bi(S,[e])}})}(e),t);Ii.displayName="Transition";const Ri={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ii.props=c({},uo,Ri);const Bi=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},Di=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function Ni(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Fi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[$i]||(e[$i]=new Set)).add(t)}function ji(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function Hi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Vi=0;function Wi(e,t,n,o){const r=e._endId=++Vi,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),s=zi(r,i),a=o("animationDelay"),l=o("animationDuration"),c=zi(a,l);let u=null,d=0,f=0;t===Ai?s>0&&(u=Ai,d=s,f=i.length):"animation"===t?c>0&&(u="animation",d=c,f=l.length):(d=Math.max(s,c),u=d>0?s>c?Ai:"animation":null,f=u?u===Ai?i.length:l.length:0);const h=u===Ai&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uqi(t)+qi(e[n]))))}function qi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Yi=Symbol("_vod"),Xi=Symbol("_vsh"),Ui={beforeMount(e,{value:t},{transition:n}){e[Yi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ki(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ki(e,!0),o.enter(e)):o.leave(e,(()=>{Ki(e,!1)})):Ki(e,t))},beforeUnmount(e,{value:t}){Ki(e,t)}};function Ki(e,t){e.style.display=t?e[Yi]:"none",e[Xi]=!t}const Gi=Symbol(""),Ji=/(^|;)\s*display\s*:/;const Zi=/\s*!important$/;function Qi(e,t,n){if(h(n))n.forEach((n=>Qi(e,t,n)));else if(null==n&&(n=""),n=cs(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ts[t];if(n)return n;let o=M(t);if("filter"!==o&&o in e)return ts[t]=o;o=L(o);for(let r=0;re.replace(ve,((e,t)=>{if(!t)return e;if(1===as)return`${t}${ss}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*as,ls);return 0===n?"0":`${n}${ss}`})));var ss,as,ls;const cs=e=>v(e)?is(e):e,us="http://www.w3.org/1999/xlink";const ds=Symbol("_vei");function fs(e,t,n,o,r=null){const i=e[ds]||(e[ds]={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(hs.test(e)){let n;for(t={};n=e.match(hs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):P(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const o=t&&t.proxy,r=o&&o.$nne,{value:i}=n;if(r&&h(i)){const n=ms(e,i);for(let o=0;ops||(gs.then((()=>ps=0)),ps=Date.now()))(),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,s,a)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}const hs=/(?:Once|Passive|Capture)$/;let ps=0;const gs=Promise.resolve();function ms(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const vs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const ys=["ctrl","shift","alt","meta"],bs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ys.some((n=>e[`${n}Key`]&&!t.includes(n)))},_s=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const r=t.replace("change:",""),{attrs:i}=o,s=i[r],a=(e.__wxsProps||(e.__wxsProps={}))[r];if(a===s)return;e.__wxsProps[r]=s;const l=o.proxy;Cn((()=>{n(s,a,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,s);const d="svg"===r;"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:r}=e;r&&r.length&&(t=(t||"").split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const i=e[$i];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,r=v(n);let i=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Qi(o,t,"")}else for(const e in t)null==n[e]&&Qi(o,e,"");for(const e in n)"display"===e&&(i=!0),Qi(o,e,n[e])}else if(r){if(t!==n){const e=o[Gi];e&&(n+=";"+e),o.cssText=n,i=Ji.test(n)}}else t&&e.removeAttribute("style");Yi in e&&(e[Yi]=i?o.display:"",e[Xi]&&(o.display="none"));const{__wxsStyle:s}=e;if(s)for(const a in s)Qi(o,a,s[a])}(e,n,o):a(t)?l(t)||fs(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&vs(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(vs(t)&&v(n))return!1;return t in e}(e,t,o,d))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Y(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}(e,t,o,i,s,c,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const o=q(t);null==n||o&&!Y(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,d))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Li);let xs;const Ss=(...e)=>{const t=(xs||(xs=Ir(ws))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(v(e)){return document.querySelector(e)}return e} +/*! + * vue-router v4.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Ts="undefined"!=typeof document;const Cs=Object.assign;function ks(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ms(r)?r.map(e):e(r)}return n}const Es=()=>{},Ms=Array.isArray,Os=/#/g,Ps=/&/g,Ls=/\//g,As=/=/g,$s=/\?/g,Is=/\+/g,Rs=/%5B/g,Bs=/%5D/g,Ds=/%5E/g,Ns=/%60/g,Fs=/%7B/g,js=/%7C/g,Hs=/%7D/g,Vs=/%20/g;function Ws(e){return encodeURI(""+e).replace(js,"|").replace(Rs,"[").replace(Bs,"]")}function zs(e){return Ws(e).replace(Is,"%2B").replace(Vs,"+").replace(Os,"%23").replace(Ps,"%26").replace(Ns,"`").replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")}function qs(e){return null==e?"":function(e){return Ws(e).replace(Os,"%23").replace($s,"%3F")}(e).replace(Ls,"%2F")}function Ys(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Xs=/\/$/;function Us(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Ys(s)}}function Ks(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Gs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Js(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Zs(e[n],t[n]))return!1;return!0}function Zs(e,t){return Ms(e)?Qs(e,t):Ms(t)?Qs(t,e):e===t}function Qs(e,t){return Ms(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ea,ta,na,oa;function ra(e){if(!e)if(Ts){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Xs,"")}(ta=ea||(ea={})).pop="pop",ta.push="push",(oa=na||(na={})).back="back",oa.forward="forward",oa.unknown="";const ia=/^[^#]+#/;function sa(e,t){return e.replace(ia,"#")+t}const aa=()=>({left:window.scrollX,top:window.scrollY});function la(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function ca(e,t){return(history.state?history.state.position-t:-1)+e}const ua=new Map;function da(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Ks(n,"")}return Ks(n,e)+o+r}function fa(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?aa():null}}function ha(e){const{history:t,location:n}=window,o={value:da(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Cs({},r.value,t.state,{forward:e,scroll:aa()});i(s.current,s,!0),i(e,Cs({},fa(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Cs({},t.state,fa(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function pa(e){const t=ha(e=ra(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=da(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:ea.pop,direction:u?u>0?na.forward:na.back:na.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Cs({},e.state,{scroll:aa()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Cs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:sa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function ga(e){return"string"==typeof e||"symbol"==typeof e}const ma={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},va=Symbol("");var ya,ba;function _a(e,t){return Cs(new Error,{type:e,[va]:!0},t)}function wa(e,t){return e instanceof Error&&va in e&&(null==t||!!(e.type&t))}(ba=ya||(ya={}))[ba.aborted=4]="aborted",ba[ba.cancelled=8]="cancelled",ba[ba.duplicated=16]="duplicated";const xa={sensitive:!1,strict:!1,start:!0,end:!0},Sa=/[.+*?^${}()[\]/\\]/g;function Ta(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Ca(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Ea={type:0,value:""},Ma=/[a-zA-Z0-9_]/;function Oa(e,t,n){const o=function(e,t){const n=Cs({},xa,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;l{i(f)}:Es}function i(e){if(ga(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Ba(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!$a(e)&&o.set(e.record.name,e)}return t=Ra({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw _a(1,{location:e});s=r.record.name,a=Cs(La(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&La(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw _a(1,{location:e,currentLocation:t});s=r.record.name,a=Cs({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Ia(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function La(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Aa(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function $a(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ia(e){return e.reduce(((e,t)=>Cs(e,t.meta)),{})}function Ra(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ba(e,t){return t.children.some((t=>t===e||Ba(e,t)))}function Da(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&zs(e))):[o&&zs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Fa(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ms(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const ja=Symbol(""),Ha=Symbol(""),Va=Symbol(""),Wa=Symbol(""),za=Symbol("");function qa(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Ya(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(_a(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(_a(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function Xa(e,t,n,o,r=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(Ya(s,n,o,a,e,r))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&Ya(c,n,o,a,e,r)()}))))}}var s;return i}function Ua(e){const t=br(Va),n=br(Wa),o=ki((()=>t.resolve(cn(e.to)))),r=ki((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Gs.bind(null,r));if(s>-1)return s;const a=Ga(e[t-2]);return t>1&&Ga(r)===a&&i[i.length-1].path!==a?i.findIndex(Gs.bind(null,e[t-2])):s})),i=ki((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ms(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=ki((()=>r.value>-1&&r.value===n.matched.length-1&&Js(n.params,o.value.params)));return{route:o,href:ki((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[cn(e.replace)?"replace":"push"](cn(e.to)).catch(Es):Promise.resolve()}}}const Ka=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ua,setup(e,{slots:t}){const n=Vt(Ua(e)),{options:o}=br(Va),r=ki((()=>({[Ja(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ja(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ei("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ga(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ja=(e,t,n)=>null!=e?e:null!=t?t:n,Za=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=br(za),r=ki((()=>e.route||o.value)),i=br(Ha,0),s=ki((()=>{let e=cn(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=ki((()=>r.value.matched[s.value]));yr(Ha,ki((()=>s.value+1))),yr(ja,a),yr(za,r);const l=rn();return eo((()=>[l.value,a.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Gs(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Qa(n.default,{Component:c,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=Ei(c,Cs({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Qa(n.default,{Component:f,route:o})||f}}});function Qa(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const el=Za;function tl(e){const t=Pa(e.routes,e),n=e.parseQuery||Da,o=e.stringifyQuery||Na,r=e.history,i=qa(),s=qa(),a=qa(),l=sn(ma);let c=ma;Ts&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ks.bind(null,(e=>""+e)),d=ks.bind(null,qs),f=ks.bind(null,Ys);function h(e,i){if(i=Cs({},i||l.value),"string"==typeof e){const o=Us(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return Cs(o,s,{params:f(s.params),hash:Ys(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=Cs({},e,{path:Us(n,e.path,i.path).path});else{const t=Cs({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Cs({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(f(a.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Cs({},e,{hash:(p=c,Ws(p).replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")),path:a.path}));var p;const g=r.createHref(h);return Cs({fullPath:h,hash:c,query:o===Na?Fa(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function p(e){return"string"==typeof e?Us(n,e,l.value.path):Cs({},e)}function g(e,t){if(c!==e)return _a(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=p(o):{path:o},o.params={}),Cs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=h(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(Cs(p(u),{state:"object"==typeof u?Cs({},i,u.state):i,force:s,replace:a}),t||n);const d=n;let f;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Gs(t.matched[o],n.matched[r])&&Js(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(f=_a(16,{to:d,from:r}),L(r,r,!0,!1)),(f?Promise.resolve(f):w(d,r)).catch((e=>wa(e)?wa(e,2)?e:P(e):O(e,d,r))).then((e=>{if(e){if(wa(e,2))return y(Cs({replace:a},p(e.to),{state:"object"==typeof e.to?Cs({},i,e.to.state):i,force:s}),t||d)}else e=S(d,r,!0,a,i);return x(d,r,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=I.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sGs(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Gs(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Xa(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(Ya(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),B(n).then((()=>{n=[];for(const o of i.list())n.push(Ya(o,e,t));return n.push(l),B(n)})).then((()=>{n=Xa(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Ya(o,e,t))}));return n.push(l),B(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Ms(o.beforeEnter))for(const r of o.beforeEnter)n.push(Ya(r,e,t));else n.push(Ya(o.beforeEnter,e,t));return n.push(l),B(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Xa(a,"beforeRouteEnter",e,t,_),n.push(l),B(n)))).then((()=>{n=[];for(const o of s.list())n.push(Ya(o,e,t));return n.push(l),B(n)})).catch((e=>wa(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>_((()=>o(e,t,n)))))}function S(e,t,n,o,i){const s=g(e,t);if(s)return s;const a=t===ma,c=Ts?history.state:{};n&&(o||a?r.replace(e.fullPath,Cs({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,L(e,t,n,a),P()}let T;function C(){T||(T=r.listen(((e,t,n)=>{if(!R.listening)return;const o=h(e),i=v(o);if(i)return void y(Cs(i,{replace:!0}),o).catch(Es);c=o;const s=l.value;var a,u;Ts&&(a=ca(s.fullPath,n.delta),u=aa(),ua.set(a,u)),w(o,s).catch((e=>wa(e,12)?e:wa(e,2)?(y(e.to,o).then((e=>{wa(e,20)&&!n.delta&&n.type===ea.pop&&r.go(-1,!1)})).catch(Es),Promise.reject()):(n.delta&&r.go(-n.delta,!1),O(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!wa(e,8)?r.go(-n.delta,!1):n.type===ea.pop&&wa(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Es)})))}let k,E=qa(),M=qa();function O(e,t,n){P(e);const o=M.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function P(e){return k||(k=!e,C(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function L(t,n,o,r){const{scrollBehavior:i}=e;if(!Ts||!i)return Promise.resolve();const s=!o&&function(e){const t=ua.get(e);return ua.delete(e),t}(ca(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return Cn().then((()=>i(t,n,s))).then((e=>e&&la(e))).catch((e=>O(e,t,n)))}const A=e=>r.go(e);let $;const I=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return ga(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:m,replace:function(e){return m(Cs(p(e),{replace:!0}))},go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:M.add,isReady:function(){return k&&l.value!==ma?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Ka),e.component("RouterView",el),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>cn(l)}),Ts&&!$&&l.value===ma&&($=!0,m(r.location).catch((e=>{})));const t={};for(const o in ma)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Va,this),e.provide(Wa,Wt(t)),e.provide(za,l);const n=e.unmount;I.add(e),e.unmount=function(){I.delete(e),I.size<1&&(c=ma,T&&T(),T=null,l.value=ma,$=!1,k=!1),n()}}};function B(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return R}function nl(){return br(Wa)}const ol=["{","}"];const rl=/^(?:\d)+/,il=/^(?:\w)+/;const sl=Object.prototype.hasOwnProperty,al=(e,t)=>sl.call(e,t),ll=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=ol){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class ul{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||ll,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=cl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{al(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=cl(t,this.messages))&&(o=this.messages[t]):n=t,al(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function dl(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&Sd?Sd():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new ul({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=tg().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}function fl(e,t){return e.indexOf(t[0])>-1}const hl=ie((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let pl;function gl(e){return fl(e,ee)?yl().f(e,function(){const e=Sd(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ee):e}function ml(e,t){if(1===t.length){if(e){const n=e=>v(e)&&fl(e,ee),o=t[0];let r=[];if(h(e)&&(r=e.filter((e=>n(e[o])))).length)return r;const i=e[t[0]];if(n(i))return e}return}const n=t.shift();return ml(e&&e[n],t)}function vl(e,t){const n=ml(e,t);if(!n)return!1;const o=t[t.length-1];if(h(n))n.forEach((e=>vl(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>gl(e),set(t){e=t}})}return!0}function yl(){if(!pl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,pl=dl(e),hl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>pl.add(e,__uniConfig.locales[e]))),pl.setLocale(e)}}return pl}function bl(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const _l=ie((()=>{const e="uni.async.",t=["error"];yl().add("en",bl(e,t,["The connection timed out, click the screen to try again."]),!1),yl().add("es",bl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),yl().add("fr",bl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),yl().add("zh-Hans",bl(e,t,["连接服务器超时,点击屏幕重试"]),!1),yl().add("zh-Hant",bl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),wl=ie((()=>{const e="uni.showToast.",t=["unpaired"];yl().add("en",bl(e,t,["Please note showToast must be paired with hideToast"]),!1),yl().add("es",bl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),yl().add("fr",bl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),yl().add("zh-Hans",bl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),yl().add("zh-Hant",bl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),xl=ie((()=>{const e="uni.showLoading.",t=["unpaired"];yl().add("en",bl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),yl().add("es",bl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),yl().add("fr",bl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),yl().add("zh-Hans",bl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),yl().add("zh-Hant",bl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),Sl=ie((()=>{const e="uni.showModal.",t=["cancel","confirm"];yl().add("en",bl(e,t,["Cancel","OK"]),!1),yl().add("es",bl(e,t,["Cancelar","OK"]),!1),yl().add("fr",bl(e,t,["Annuler","OK"]),!1),yl().add("zh-Hans",bl(e,t,["取消","确定"]),!1),yl().add("zh-Hant",bl(e,t,["取消","確定"]),!1)})),Tl=ie((()=>{const e="uni.chooseFile.",t=["notUserActivation"];yl().add("en",bl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),yl().add("es",bl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),yl().add("fr",bl(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),yl().add("zh-Hans",bl(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),yl().add("zh-Hant",bl(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),Cl=ie((()=>{const e="uni.picker.",t=["done","cancel"];yl().add("en",bl(e,t,["Done","Cancel"]),!1),yl().add("es",bl(e,t,["OK","Cancelar"]),!1),yl().add("fr",bl(e,t,["OK","Annuler"]),!1),yl().add("zh-Hans",bl(e,t,["完成","取消"]),!1),yl().add("zh-Hant",bl(e,t,["完成","取消"]),!1)}));function kl(e){const t=new Le;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let El=1;const Ml=Object.create(null);function Ol(e,t){return e+"."+t}function Pl(e,t,n){t=Ol(e,t),Ml[t]||(Ml[t]=n)}function Ll({id:e,name:t,args:n},o){t=Ol(o,t);const r=t=>{e&&Gm.publishHandler("invokeViewApi."+e,t)},i=Ml[t];i?i(n,r):r({})}const Al=c(kl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=Gm,i=n?El++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),$l=ye(!0);let Il;function Rl(){Il&&(clearTimeout(Il),Il=null)}let Bl=0,Dl=0;function Nl(e){if(Rl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Bl=t,Dl=n,Il=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Fl(e){if(!Il)return;if(1!==e.touches.length)return Rl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Bl)>10||Math.abs(n-Dl)>10?Rl():void 0}function jl(e,t){const n=Number(e);return isNaN(n)?t:n}function Hl(){const e=__uniConfig.globalStyle||{},t=jl(e.rpxCalcMaxDeviceWidth,960),n=jl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wl,zl,ql=["top","left","right","bottom"],Yl={};function Xl(){return zl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Ul(){if(zl="string"==typeof zl?zl:Xl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),ql.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),Wl=!0}else ql.forEach((function(e){Yl[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:zl+"(safe-area-inset-"+n+")"};r(o,c),r(s,c),r(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),i((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,r=s.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,r=s.scrollTop,function(e){Gl.length||setTimeout((function(){var e={};Gl.forEach((function(t){e[t]=Yl[t]})),Gl.length=0,Jl.forEach((function(t){t(e)}))}),0);Gl.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(Yl,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Kl(e){return Wl||Ul(),Yl[e]}var Gl=[];var Jl=[];const Zl=Vl({get support(){return 0!=("string"==typeof zl?zl:Xl()).length},get top(){return Kl("top")},get left(){return Kl("left")},get right(){return Kl("right")},get bottom(){return Kl("bottom")},onChange:function(e){Xl()&&(Wl||Ul(),"function"==typeof e&&Jl.push(e))},offChange:function(e){var t=Jl.indexOf(e);t>=0&&Jl.splice(t,1)}}),Ql=_s((()=>{}),["prevent"]),ec=_s((e=>{}),["stop"]);function tc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function nc(){const e=tc(document.documentElement.style,"--window-top");return e?e+Zl.top:0}function oc(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function rc(e){return oc(e)}function ic(e){return Symbol(e)}function sc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function ac(e,t=!1){if(t)return function(e){if(!sc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>rd(parseFloat(t))+"px"))}(e);if(v(e)){const t=parseInt(e)||0;return sc(e)?rd(t):t}return e}function lc(e){return e.$page}function cc(e){return 0===e.tagName.indexOf("UNI-")}const uc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",dc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",fc="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function hc(e,t="#000",n=27){return oi("svg",{width:n,height:n,viewBox:"0 0 32 32"},[oi("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function pc(){{const{$pageInstance:e}=gi();return e&&xc(e.proxy)}}function gc(e){const t=function(e){return e&&(e.appContext?e.proxy:e)}(e);if(t.$page)return xc(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return xc(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?xc(n):void 0}function mc(){const e=vf(),t=e.length;if(t)return e[t-1]}function vc(){var e;const t=null==(e=mc())?void 0:e.$page;if(t)return t.meta}function yc(){const e=vc();return e?e.id:-1}function bc(){const e=mc();if(e)return e.$vm}const _c=["navigationBar","pullToRefresh"];function wc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);_c.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function xc(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function Sc(e,t,n){if(v(e))n=t,t=e,e=bc();else if("number"==typeof e){const t=vf().find((t=>lc(t).id===e));e=t?t.$vm:bc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-kc)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(kc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(Cc=setTimeout(s,300))),o=!1};return function(){clearTimeout(Cc),o||requestAnimationFrame(s),o=!0}}function Mc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Mc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),re(i.concat(n).join("/"))}function Oc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function Pc(){Hl(),ge(cc),window.addEventListener("touchstart",Nl,$l),window.addEventListener("touchmove",Fl,$l),window.addEventListener("touchend",Rl,$l),window.addEventListener("touchcancel",Rl,$l)}class Lc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(de(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&de(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=Rc(this.$el.querySelector(e));return t?Ac(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Gm.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Ac(e,t=!0){if(t&&e&&(e=ue(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Lc(e)),e.$el.__wxsComponentDescriptor}function $c(e,t){return Ac(e,t)}function Ic(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>$c(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ue(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,$c(r,!1)]}}function Rc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Bc(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let s,a;s=be(t?r:function(e){for(;!cc(e);)e=e.parentElement;return e}(r)),a=be(i);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Dc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Nc(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=nc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Dc(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=nc();i.touches=Nc(e.touches,t),i.changedTouches=Nc(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Ic(i,t,n)||[i]},createNativeEvent:Bc},Symbol.toStringTag,{value:"Module"});function jc(e){!function(e){const t=e.globalProperties;c(t,Fc),t.$gcd=$c}(e._context.config)}let Hc=1;function Vc(e){return(e||yc())+".invokeViewApi"}const Wc=c(kl("view"),{invokeOnCallback:(e,t)=>Jm.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=Jm,s=o?Hc++:0;o&&r("invokeViewApi."+s,o,!0),i(Vc(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=Jm,a=Hc++,l="invokeViewApi."+a;return r(l,n),s(Vc(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function zc(e){Sc(mc(),"onResize",e),Jm.invokeOnCallback("onWindowResize",e)}function qc(e){const t=mc();Sc(tg(),"onShow",e),Sc(t,"onShow")}function Yc(){Sc(tg(),"onHide"),Sc(mc(),"onHide")}const Xc=["onPageScroll","onReachBottom"];function Uc(){Xc.forEach((e=>Jm.subscribe(e,function(e){return(t,n)=>{Sc(parseInt(n),e,t)}}(e))))}function Kc(){!function(){const{on:e}=Jm;e("onResize",zc),e("onAppEnterForeground",qc),e("onAppEnterBackground",Yc)}(),Uc()}function Gc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Ce(this.$page.id)),e.eventChannel}}function Jc(e){e._context.config.globalProperties.getOpenerEventChannel=Gc}function Zc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Qc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${rd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function eu(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,s=e.option,a=s.transition,l={},c=[];return i.forEach((e=>{let i=e.type,s=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(s=s.map(Qc)),n.indexOf(i)>=0&&(s.length=1),c.push(`${i}(${s.join(",")})`);else if(o.concat(r).includes(s[0])){i=s[0];const e=s[1];l[i]=r.includes(i)?Qc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{i()}),0)}const tu={props:["animation"],watch:{animation:{deep:!0,handler(){eu(this)}}},mounted(){eu(this)}},nu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(tu),ou(e)},ou=e=>(e.__reserved=!0,e.compatConfig={MODE:3},bo(e));function ru(e){return e.__wwe=!0,e}function iu(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=be(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const su={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function au(e){const t=rn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function a(){r=!1,t.value&&i()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ru((function(e){e.touches.length>1||s(e)})),onMousedown:ru((function(e){r||(s(e),window.addEventListener("mouseup",l))})),onTouchend:ru((function(){a()})),onMouseup:ru((function(){r&&l()})),onTouchcancel:ru((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function lu(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const cu=ic("uf"),uu=ic("ul");function du(e,t,n){const o=pc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Gm.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Gm.on(r,t[r]):e&&Gm.on(`uni-${r}-${o}-${e}`,t[r])}))}function fu(e,t,n){const o=pc();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&Gm.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?Gm.off(r,t[r]):e&&Gm.off(`uni-${r}-${o}-${e}`,t[r])}))}const hu=nu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=rn(null),o=br(cu,!1),{hovering:r,binding:i}=au(e),s=ru(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),a=br(uu,!1);return a&&(a.addHandler(s),Vo((()=>{a.removeHandler(s)}))),function(e,t){du(e.id,t),eo((()=>e.id),((e,n)=>{fu(n,t,!0),du(e,t,!0)})),Wo((()=>{fu(e.id,t)}))}(e,{"label-click":s}),()=>{const o=e.hoverClass,a=lu(e,"disabled"),l=lu(e,"loading"),c=lu(e,"plain"),u=o&&"none"!==o;return oi("uni-button",ui({ref:n,onClick:s,id:e.id,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),pu=ic("upm");function gu(){return br(pu)}function mu(e){const t=function(e){return Vt(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:r}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=r||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==vf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(wc(nl().meta,e)))))}(e);return yr(pu,t),t}function vu(){return nl()}function yu(){return history.state&&history.state.__id__||1}const bu=["original","compressed"],_u=["album","camera"],wu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function xu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Su(e,t){return!h(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Tu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Cu=1;const ku={};function Eu(e,t,n){if("number"==typeof e){const o=ku[e];if(o)return o.keepAlive||delete ku[e],o.callback(t,n)}return t}const Mu="success",Ou="fail",Pu="complete";function Lu(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=Tu(o),delete e[n])}return t}(t),a=m(r),l=m(i),c=m(s),u=Cu++;return function(e,t,n,o=!1){ku[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),m(n)&&n(u),u.errMsg===e+":ok"?(m(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const Au="success",$u="fail",Iu="complete",Ru={},Bu={};function Du(e,t){return function(n){return e(n,t)||n}}function Nu(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Fu(e,t={}){return[Au,$u,Iu].forEach((n=>{const o=e[n];if(!h(o))return;const r=t[n];t[n]=function(e){Nu(o,e,t).then((e=>m(r)&&r(e)||e))}})),t}function ju(e,t){const n=[];h(Ru.returnValue)&&n.push(...Ru.returnValue);const o=Bu[e];return o&&h(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Hu(e){const t=Object.create(null);Object.keys(Ru).forEach((e=>{"returnValue"!==e&&(t[e]=Ru[e].slice())}));const n=Bu[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Vu(e,t,n,o){const r=Hu(e);if(r&&Object.keys(r).length){if(h(r.invoke)){return Nu(r.invoke,n).then((n=>t(Fu(Hu(e),n),...o)))}return t(Fu(r,n),...o)}return t(n,...o)}function Wu(e,t){return(n={},...o)=>function(e){return!(!S(e)||![Mu,Ou,Pu].find((t=>m(e[t]))))}(n)?ju(e,Vu(e,t,c({},n),o)):ju(e,new Promise(((r,i)=>{Vu(e,t,c({},n,{success:r,fail:i}),o)})))}function zu(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,Eu(e,c({errMsg:i},o))}function qu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const r=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Lu(e,n,o),i=qu(0,[n],0,o);return i?zu(r,e,i):t(n,{resolve:t=>function(e,t,n){return Eu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>zu(r,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Xu(e,t,n,o){return Wu(e,Yu(e,t,0,o))}function Uu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=qu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Ku(e,t,n,o){return Wu(e,function(e,t,n,o){return Yu(e,t,0,o)}(e,t,0,o))}let Gu=!1,Ju=0,Zu=0,Qu=960,ed=375,td=750;function nd(){let e,t,n;{const{windowWidth:o,pixelRatio:r,platform:i}=function(){const e=Vf(),t=qf(zf(e,Wf(e)));return{platform:Df?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=r,n=i}Ju=e,Zu=t,Gu="ios"===n}function od(e,t){const n=Number(e);return isNaN(n)?t:n}const rd=Uu(0,((e,t)=>{if(0===Ju&&(nd(),function(){const e=__uniConfig.globalStyle||{};Qu=od(e.rpxCalcMaxDeviceWidth,960),ed=od(e.rpxCalcBaseDeviceWidth,375),td=od(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Ju;n=e===td||n<=Qu?n:ed;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Zu&&Gu?.5:1),e<0?-o:o}));function id(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const sd=id("width"),ad=id("height"),ld={PNG:"png",JPG:"jpg",JPEG:"jpg"},cd={formatArgs:{x:id("x",0),y:id("y",0),width:sd,height:ad,destWidth:id("destWidth"),destHeight:id("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=ld[e];n||(n=ld.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function ud(e,t,n,o,r){Jm.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var dd=["scale","rotate","translate","setTransform","transform"],fd=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],hd=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const pd={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function gd(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(f(pd,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(pd[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,o,r,i]}return console.error("unsupported color:"+e),[0,0,0,255]}class md{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,gd(t)])}}class vd{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class yd{constructor(e){this.width=e}}class bd{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,r,i,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,r,i){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],ud(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new md("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new md("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new vd(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new yd(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,r,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,r,i]}),this.subpath.push([r,i])}arc(e,t,n,o,r,i=!1){this.path.push({method:"arc",data:[e,t,n,o,r,i]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,r){this.path.push({method:"arcTo",data:[e,t,n,o,r]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),i=n[7],s=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()})),1===o.length&&a(),o=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=r,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${o} ${r}px ${i}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const _d=ie((()=>{[...dd,...fd].forEach((function(e){bd.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=r,c=i,n=void 0,o=void 0,r=void 0,i=void 0),u=d(n)&&d(o)&&d(r)&&d(i)?[t,s,a,l,c,n,o,r,i]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),hd.forEach((function(e){bd.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",gd(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,r){r=gd(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),wd=Uu(0,((e,t)=>{if(_d(),t)return new bd(e,gc(t));const n=gc(bc());if(n)return new bd(e,n);Jm.emit("onError","createCanvasContext:fail")})),xd=Ku("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:s,fileType:a,quality:l},{resolve:c,reject:u})=>{var d=gc(bc());if(!d)return void u();ud(s,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:a,quality:l,dirname:"/canvas"},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,cd),Sd=Uu(0,(()=>{const e=tg();return e&&e.$vm?e.$vm.$locale:yl().getLocale()})),Td={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Cd={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Su(e,bu)},sourceType(e,t){t.sourceType=Su(e,_u)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},kd={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?If(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};i.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(f(t,a)){let e=t[a];null==e?e="":S(e)&&(e=JSON.stringify(e)),s[Od(a)]=Od(e)}return r=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==wu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Ed).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Md.indexOf(t.responseType)&&(t.responseType="text")}}},Ld={formatArgs:{filePath(e,t){e&&(t.filePath=If(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Ad={url:{type:String,required:!0}},$d=(Bd(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Bd(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Fd("navigateTo")),Id=Fd("reLaunch"),Rd={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(vf().length-1,e)}}};function Bd(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Dd;function Nd(){Dd=""}function Fd(e){return{formatArgs:{url:jd(e)},beforeAll:Nd}}function jd(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=vf();return n.length&&(t=lc(n[n.length-1]).route),Mc(t,e)}(t)).split("?")[0],r=Oc(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(Dd===t&&"appLaunch"!==n.openType)return`${Dd} locked`;__uniConfig.ready&&(Dd=t)}else if(r.meta.isTabBar){const e=vf(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}Boolean;const Hd={formatArgs:{title:"",mask:!1}},Vd=(Boolean,{beforeInvoke(){Sl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!f(t,"cancelText")){const{t:e}=yl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!f(t,"confirmText")){const{t:e}=yl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),Wd=["success","loading","none","error"],zd=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=xu(e,Wd)},image(e,t){t.image=e?If(e):""},duration:1500,mask:!1}});function qd(){const e=bc();if(!e)return;const t=mf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:bf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Sc(e,"onHide"))}function Yd(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function Xd(e){const t=mf().values();for(const n of t){const t=uf(n);if(Yd(e,t))return n.$.__isActive=!0,t.id}}const Ud=Ku("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(df.handledBeforeEntryPageRoutes)return qd(),Jd({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},Xd(e)).then(o).catch(r);hf.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,Fd("switchTab"));function Kd(){const e=mf().keys();for(const t of e)bf(t)}const Gd=Ku("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(df.handledBeforeEntryPageRoutes)return Kd(),Jd({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);gf.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Id);function Jd({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const s=tg().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Se(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++_f,__type__:e}}(e,i);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((i=>{if(wa(i))return c(i.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Ce(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}function Zd(){if(df.handledBeforeEntryPageRoutes)return;df.handledBeforeEntryPageRoutes=!0;const e=[...ff];ff.length=0,e.forEach((({args:e,resolve:t,reject:n})=>Jd(e).then(t).catch(n)));const t=[...hf];hf.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(qd(),Jd(e,Xd(e.url)).then(t).catch(n))));const n=[...pf];pf.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(function(){const e=mc();if(!e)return;const t=uf(e);bf(Sf(t.path,t.id))}(),Jd(e).then(t).catch(n))));const o=[...gf];gf.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(Kd(),Jd(e).then(t).catch(n))))}let Qd;function ef(){var e;return Qd||(Qd=__uniConfig.tabBar&&Vt((e=__uniConfig.tabBar,hl()&&e.list&&e.list.forEach((e=>{vl(e,["text"])})),e))),Qd}function tf(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const nf=tf("top:env(a)"),of=tf("top:constant(a)"),rf=tf("backdrop-filter:blur(10px)"),sf=(()=>nf?"env":of?"constant":"")();function af(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=ef();e.shown&&(n=parseInt(e.height))}var o;rc({"--window-top":(o=t,sf?`calc(${o}px + ${sf}(safe-area-inset-top))`:`${o}px`),"--window-bottom":lf(n)})}function lf(e){return sf?`calc(${e}px + ${sf}(safe-area-inset-bottom))`:`${e}px`}const cf=new Map;function uf(e){return e.$page}const df={handledBeforeEntryPageRoutes:!1},ff=[],hf=[],pf=[],gf=[];function mf(){return cf}function vf(){return yf()}function yf(){const e=[],t=cf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function bf(e,t=!0){const n=cf.get(e);n.$.__isUnload=!0,Sc(n,"onUnload"),cf.delete(e),t&&function(e){const t=Tf.get(e);t&&(Tf.delete(e),Cf.pruneCacheEntry(t))}(e)}let _f=yu();function wf(e){const t=gu();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:s,route:a}=o,l=Ie(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:re(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function xf(e){const t=wf(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),cf.set(Sf(t.path,t.id),e),1===cf.size&&setTimeout((()=>{Zd()}),0)}function Sf(e,t){return e+"$$"+t}const Tf=new Map,Cf={get:e=>Tf.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Cf.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Cf.delete(n),Cf.pruneCacheEntry(e),Cn((()=>{cf.forEach(((e,t)=>{e.$.isUnmounted&&cf.delete(t)}))}))}}))}(e),Tf.set(e,t)},delete(e){Tf.get(e)&&Tf.delete(e)},forEach(e){Tf.forEach(e)}};function kf(e,t){!function(e){const t=Mf(e),{body:n}=document;Of&&n.removeAttribute(Of),t&&n.setAttribute(t,""),Of=t}(e),af(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Af(e,t)}function Ef(e){const t=Mf(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Mf(e){return e.type.__scopeId}let Of;const Pf=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let Lf;function Af(e,t){if(document.removeEventListener("touchmove",Tc),Lf&&document.removeEventListener("scroll",Lf),t.disableScroll)return document.addEventListener("touchmove",Tc,Pf);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!r)return;const i={},s=uf(e.proxy).id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&Gm.publishHandler("onPageScroll",{scrollTop:o},e),n&&Gm.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r)),(null==o?void 0:o.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>Gm.publishHandler("onReachBottom",{},s)),Lf=Ec(i),requestAnimationFrame((()=>document.addEventListener("scroll",Lf)))}function $f(e){const{base:t}=__uniConfig.router;return 0===re(e).indexOf(t)?re(e):t+e}function If(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return $f(e.slice(1));e="https:"+e}if(te.test(e)||ne.test(e)||0===e.indexOf("blob:"))return e;const o=yf();return o.length?$f(Mc(uf(o[o.length-1]).route,e).slice(1)):e}const Rf=navigator.userAgent,Bf=/android/i.test(Rf),Df=/iphone|ipad|ipod/i.test(Rf),Nf=Rf.match(/Windows NT ([\d|\d.\d]*)/i),Ff=/Macintosh|Mac/i.test(Rf),jf=/Linux|X11/i.test(Rf),Hf=Ff&&navigator.maxTouchPoints>0;function Vf(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Wf(e){return e&&90===Math.abs(window.orientation)}function zf(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function qf(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const Yf={};function Xf(e,t){const n=Yf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return Uf(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Uf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function Kf(e){for(const n in Yf)if(f(Yf,n)){if(Yf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Yf[t]=e,t}const Gf=Zc(),Jf=Zc();const Zf=nu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=rn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Vt({width:-1,height:-1});return eo((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){Mo(o),Fo((()=>{t.initial&&Cn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>oi("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[oi("div",{onScroll:r},[oi("div",null,null)],40,["onScroll"]),oi("div",{onScroll:r},[oi("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Qf=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function eh(e,t=!0){const n=t?Qf:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let th=!1;function nh(){if(th)return;th=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,r,i,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Qf,o*=Qf,r*=Qf,i*=Qf,s*=Qf,a*=Qf,l=u?l*Qf:l,c=u?c*Qf:c,e.call(this,t,n,o,r,i,s,a,l,c)}}(t.drawImage),1!==Qf&&(!function(e,t){for(const n in e)f(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Qf}));else if(Array.isArray(e))for(let t=0;tnh()));function rh(e){return e?If(e):e}function ih(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function sh(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let ah;function lh(e=0,t=0){return ah||(ah=document.createElement("canvas")),ah.width=e,ah.height=t,ah}const ch=nu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){oh();const o=rn(null),r=rn(null),i=rn(null),s=rn(!1),a=function(e){return(t,n)=>{e(t,Bc(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=jh({excludeListeners:!0}),{_listeners:h}=function(e,t,n){const o=ki((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],r=t.value,i=c({},(()=>{let e={};for(const t in r)if(f(r,t)){const n=r[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];i[t]&&o.push(ru((e=>{const o=e.currentTarget.getBoundingClientRect();sh(o,e.touches),sh(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(Ql),i[t]=o})),i}));return{_listeners:o}}(e,d,a),{_handleSubscribe:p,_resize:g}=function(e,t,n){let o=[],r={};const i=ki((()=>e.hidpi?Qf:1));function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);eh(o,e.hidpi),t.putImageData(n,0,0)}else eh(o,e.hidpi)}function a({actions:e,reserve:i},s){if(!e)return;if(n.value)return void o.push([e,i]);let a=t.value,c=a.getContext("2d");i||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=rh(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=rh(o),n[1]=o),o&&!r[o]&&i()}))}function u(e,t,i,s){let l=r[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},i),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:r,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},f){const h=t.value;let p;const g=h.offsetWidth-e;o=o?Math.min(o,g):g;const m=h.offsetHeight-n;r=r?Math.min(r,m):m,l?(s=o,a=r):s||a?s?a||(a=Math.round(r/o*s)):(a||(a=Math.round(r*i.value)),s=Math.round(o/r*a)):(s=Math.round(o*i.value),a=Math.round(r*i.value));const v=lh(s,a),y=v.getContext("2d");let b;"jpeg"!==d&&"jpg"!==d||(d="jpeg",y.fillStyle="#fff",y.fillRect(0,0,s,a)),y.__hidpi__=!0,y.drawImageByCanvas(h,e,n,o,r,0,0,s,a,!1);try{let e;if("base64"===c)p=v.toDataURL(`image/${d}`,u);else{const e=y.getImageData(0,0,s,a);p=Array.prototype.slice.call(e.data)}b={data:p,compressed:e,width:s,height:a}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!f)return b;f(b)}function f({data:e,x:n,y:o,width:r,height:i,compressed:s},a){try{0,i||(i=Math.round(e.length/4/r));const s=lh(r,i);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),r,i),0,0),t.value.getContext("2d").drawImage(s,n,o,r,i),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function h({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:a,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,hidpi:!1,dataType:"base64",type:s,quality:a});var f;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(f=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,f))}const p={actionsChanged:a,getImageData:d,putImageData:f,toTempFilePath:h};function g(e,t,n){let o=p[e];0!==e.indexOf("_")&&m(o)&&o(t,n)}return c(p,{_resize:s,_handleSubscribe:g})}(e,r,s);return function(e,t,n,o){const r=gi().proxy;Fo((()=>{Ap(t||Lp(r),e,o),!n&&t||eo((()=>r.id),((t,n)=>{Ap(Lp(r,t),e,o),$p(n&&Lp(r,n))}))})),Vo((()=>{$p(t||Lp(r),o)}))}(p,function(e){const t=pc(),n=gi().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+Ip++;return Fo((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}(e.canvasId),!0),Fo((()=>{g()})),()=>{const{canvasId:t,disableScroll:s}=e;return oi("uni-canvas",ui({ref:o,"canvas-id":t,"disable-scroll":s},l.value,u.value,h.value),[oi("canvas",{ref:r,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),oi("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),oi(Zf,{ref:i,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function uh(){}const dh={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function fh(e,t,n){function o(e){const t=ki((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",uh,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",uh,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}eo((()=>t.value),(e=>e&&o(e)))}const hh={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},ph={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},gh={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},mh=nu({name:"Image",props:hh,setup(e,{emit:t}){const n=rn(null),o=function(e,t){const n=rn(""),o=ki((()=>{let e="auto",o="";const r=gh[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Vt({rootEl:e,src:ki((()=>t.src?If(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Fo((()=>{const t=e.value;r.origWidth=t.clientWidth||0,r.origHeight=t.clientHeight||0})),r}(n,e),r=iu(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=ph[o];if(!r)return;const{origWidth:i,origHeight:s}=n,a=i&&s?i/s:0;if(!a)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){vh&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,a))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return eo((()=>t.mode),((e,t)=>{ph[t]&&r(),ph[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;a(u,d,l),Cn((()=>{o()})),i.draggable=t.draggable,s&&s.remove(),s=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:d})},i.onerror=t=>{a(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};eo((()=>e.src),(e=>l(e))),eo((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Fo((()=>l(e.src))),Vo((()=>c()))}(o,e,n,i,r),()=>oi("uni-image",{ref:n},[oi("div",{style:o.modeStyle},null,4),ph[e.mode]?oi(Zf,{onResize:i},null,8,["onResize"]):oi("span",null,null)],512)}});const vh="Google Inc."===navigator.vendor;const yh=ye(!0),bh=[];let _h=0,wh=!1;const xh=e=>bh.forEach((t=>t.userAction=e));function Sh(e={userAction:!1}){if(!wh){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!_h&&xh(!0),_h++,setTimeout((()=>{!--_h&&xh(!1)}),0)}),yh)})),wh=!0}bh.push(e)}function Th(){const e=Vt({userAction:!1});return Fo((()=>{Sh(e)})),Vo((()=>{!function(e){const t=bh.indexOf(e);t>=0&&bh.splice(t,1)}(e)})),{state:e}}function Ch(){const e=Vt({attrs:{}});return Fo((()=>{let t=gi();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function kh(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function Eh(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Mh=["none","text","decimal","numeric","tel","search","email","url"],Oh=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Mh.indexOf(e)},cursorColor:{type:String,default:""}},dh),Ph=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Lh(e,t,n,o){let r=null;r=Te((n=>{t.value=Eh(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),eo((()=>e.modelValue),r),eo((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const s=Date.now();clearTimeout(n),o=()=>{o=null,r=s,e.apply(this,i)},s-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return No((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Ah(e,t){Th();const n=ki((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}eo((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Fo((()=>{n.value&&Cn(o)}))}function $h(e,t,n,o){Pl(yc(),"getSelectedTextRange",kh);const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=rn(null),r=iu(t,n),i=ki((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=ki((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=ki((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=ki((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=Eh(e.modelValue,e.type)||Eh(e.value,e.type);const u=Vt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return eo((()=>u.focus),(e=>n("update:focus",e))),eo((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=Lh(e,i,n,s);Ah(e,r),fh(0,r);const{state:l}=Ch();!function(e,t){const n=br(cu,!1);if(!n)return;const o=gi(),r={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(r),Vo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}eo([()=>t.selectionStart,()=>t.selectionEnd],s),eo((()=>t.cursor),a),eo((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),m(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(r,i,e,s,a,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Ih=c({},Oh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Rh=ie((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function Bh(e,t,n,o,r){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",r&&(r.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",r.fn)},o.addEventListener("blur",r.fn)),!1}else if("deleteContentBackward"===e.inputType&&Rh()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Dh=nu({name:"Input",props:Ih,emits:["confirm",...Ph],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=ki((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=ki((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(P(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let a=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=rn(null!=t?t.toLocaleString():"");return eo((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),eo((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return rn("")}(e,i),l={fn:null};const c=rn(null),{fieldRef:u,state:d,scopedAttrsState:f,fixDisabledColor:h,trigger:p}=$h(e,c,t,((t,n)=>{const o=t.target;if("number"===i.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!a.value||!o.value)&&"-"===t.data||"-"===a.value[0]&&"deleteContentBackward"===t.inputType)return a.value="-",n.value="",l.fn=()=>{a.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Bh(t,a,n,o,l);return"boolean"==typeof e?e:(a.value=n.value=o.value="-"===a.value?"":a.value,!1)}{const e=Bh(t,a,n,o,l);if("boolean"==typeof e)return e;a.value=o.value}const r=n.maxlength;if(r>0&&o.value.length>r){o.value=o.value.slice(0,r),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}}));eo((()=>d.value),(t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t.toString())}));const g=["number","digit"],m=ki((()=>g.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&h?oi("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:d.maxlength,step:m.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):oi("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:i.value,maxlength:d.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:v,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return oi("uni-input",{ref:c},[oi("div",{class:"uni-input-wrapper"},[io(oi("div",ui(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ui,!(d.value.length||"-"===a.value||a.value.includes("."))]]),"search"===e.confirmType?oi("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Nh=["class","style"],Fh=/^on[A-Z]+/,jh=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=gi(),r=sn({}),i=sn({}),s=sn({}),a=n.concat(Nh);return o.attrs=Vt(o.attrs),Zn((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:Fh.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,s.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:s}};function Hh(e){const t=[];return h(e)&&e.forEach((e=>{Jr(e)?e.type===Fr?t.push(...Hh(e.children)):t.push(e):h(e)&&t.push(...Hh(e))})),t}const Vh=nu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=rn(null),o=rn(!1);let{setContexts:r,events:i}=function(e,t){const n=rn(0),o=rn(0),r=Vt({x:null,y:null}),i=rn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function r(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=Wh(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=ru((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(Wh(n)/i.value)}r.x=n.x,r.y=n.y}})),f=ru((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function h(){p(),a.forEach((function(e,t){e.setParent()}))}function p(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return yr("movableAreaWidth",n),yr("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:f,_resize:h}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=jh(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=i[`_${e}`];c[e]=t?[].concat(t,n):n})),Fo((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Jt(o))}r(e)}return yr("_isMounted",o),yr("movableAreaRootRef",n),yr("addMovableViewContext",(e=>{d.push(e),f()})),yr("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=Hh(e),oi("uni-movable-area",ui({ref:n},a.value,l.value,c),[oi(Zf,{onResize:i._resize},null,8,["onResize"]),u],16)}}});function Wh(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const zh=function(e,t,n,o){e.addEventListener(t,(e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let qh,Yh;function Xh(e,t,n){Vo((()=>{document.removeEventListener("mousemove",qh),document.removeEventListener("mouseup",Yh)}));let o=0,r=0,i=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-r,ddx:a-i,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;zh(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=s=e.touches[0].pageY,a(e,"start",o,r)})),zh(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=i=e.pageX,r=s=e.pageY,a(e,"start",o,r)})),zh(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=qh=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return i=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),zh(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=Yh=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),zh(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Uh(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Jh.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Jh.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Jh.prototype.dt=function(){return-this._x_v/this._x_a},Jh.prototype.done=function(){const e=Uh(this.s().x,this._endPositionX)||Uh(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Jh.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Jh.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Zh.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,s=t/(r*e);return{x:function(e){return(i+s*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+s*e)*t+s*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Zh.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Zh.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Zh.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Kh(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Kh(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Kh(t,.1)&&(t=0),Kh(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Kh(o-e,.1)&&Kh(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Zh.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Zh.prototype.done=function(e){return e||(e=(new Date).getTime()),Uh(this.x(),this._endPosition,.1)&&Kh(this.dx(),.1)},Zh.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Zh.prototype.springConstant=function(){return this._k},Zh.prototype.damping=function(){return this._c},Zh.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Qh.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},Qh.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Qh.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Qh.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function ep(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const tp=nu({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=rn(null),r=iu(o,n),{setParent:i}=function(e,t,n){const o=br("_isMounted",rn(!1)),r=br("addMovableViewContext",(()=>{})),i=br("removeMovableViewContext",(()=>{}));let s,a,l=rn(1),c=rn(1),u=rn(!1),d=rn(0),f=rn(0),h=null,p=null,g=!1,m=null,v=null;const y=new Gh,b=new Gh,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=ki((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Jh(1,w.value);eo((()=>e.disabled),(()=>{q()}));const{_updateOldScale:S,_endScale:T,_setScale:C,scaleValueSync:k,_updateBoundary:E,_updateOffset:M,_updateWH:O,_scaleOffset:P,minX:L,minY:A,maxX:$,maxY:I,FAandSFACancel:R,_getLimitXY:B,_setTransform:D,_revise:N,dampingNumber:F,xMove:j,yMove:H,xSync:V,ySync:W,_STD:z}=function(e,t,n,o,r,i,s,a,l,c){const u=ki((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=ki((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),f=rn(Number(e.scaleValue)||1);eo(f,(e=>{D(e)})),eo(u,(()=>{B()})),eo(d,(()=>{B()})),eo((()=>e.scaleValue),(e=>{f.value=Number(e)||0}));const{_updateBoundary:h,_updateOffset:p,_updateWH:g,_scaleOffset:m,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=br("movableAreaWidth",rn(0)),r=br("movableAreaHeight",rn(0)),i=br("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=rn(0),c=rn(0),u=rn(0),d=rn(0),f=rn(0),h=rn(0);function p(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),f.value=Math.max(e,t);let n=0-s.y+a.y,i=r.value-c.value-s.y-a.y;d.value=Math.min(n,i),h.value=Math.max(n,i)}function g(){s.x=rp(e.value,i.value),s.y=ip(e.value,i.value)}function m(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();c.value=r.height/t.value,l.value=r.width/t.value;let i=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(i-c.value)/2}return{_updateBoundary:p,_updateOffset:g,_updateWH:m,_scaleOffset:a,minX:u,minY:d,maxX:f,maxY:h}}(t,o,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:T,_revise:C,dampingNumber:k,xMove:E,yMove:M,xSync:O,ySync:P,_STD:L}=function(e,t,n,o,r,i,s,a,l,c,u,d,f,h){const p=ki((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=ki((()=>"all"===t.direction||"horizontal"===t.direction)),m=ki((()=>"all"===t.direction||"vertical"===t.direction)),v=rn(ap(t.x)),y=rn(ap(t.y));eo((()=>t.x),(e=>{v.value=ap(e)})),eo((()=>t.y),(e=>{y.value=ap(e)})),eo(v,(e=>{C(e)})),eo(y,(e=>{k(e)}));const b=new Qh(1,9*Math.pow(p.value,2)/40,p.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):ei.value?(t=i.value,n=!0):t1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,_.historyX.shift(),_.historyX.push(n),H.value||null!==m||(m=Math.abs(t.detail.dx/t.detail.dy)<1)),H.value&&(o=t.detail.dy+a,_.historyY.shift(),_.historyY.push(o),j.value||null!==m||(m=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!m){t.preventDefault();let r="touch";n$.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=$.value+y.x(n-$.value)):n=$.value),oI.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=I.value+b.x(o-I.value)):o=I.value),op((function(){D(n,o,l.value,r)}))}}}function X(){if(!u.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!N("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=f.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let s=r+n,a=i+o;s$.value&&(s=$.value,a=o+($.value-n)*i/r),aI.value&&(a=I.value,s=n+(I.value-o)*r/i),x.setEnd(s,a),p=sp(x,(function(){let e=x.s(),t=e.x,n=e.y;D(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||R()}function U(){if(!o.value)return;R();let t=e.scale?k.value:1;M(),O(t),E();let n=B(V.value+P.x,W.value+P.y),r=n.x,i=n.y;D(r,i,t,"",!0),S(t)}return Fo((()=>{Xh(n.value,(e=>{switch(e.detail.state){case"start":q();break;case"move":Y(e);break;case"end":X()}})),U(),x.reconfigure(1,w.value),z.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:U,_endScale:T,_setScale:C};r(e),Wo((()=>{i(e)}))})),Wo((()=>{R()})),{setParent:U}}(e,r,o);return()=>oi("uni-movable-view",{ref:o},[oi(Zf,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let np=!1;function op(e){np||(np=!0,requestAnimationFrame((function(){e(),np=!1})))}function rp(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=rp(e.offsetParent,t):0}function ip(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=ip(e.offsetParent,t):0}function sp(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function ap(e){return/\d+[ur]px$/i.test(e)?rd(parseFloat(e)):Number(e)||0}const lp=nu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return h(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=rn(null),r=rn(null),i=iu(o,n),s=function(e){const t=Vt([...e.value]),n=Vt({value:t,height:34});return eo((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),a=rn(null);Fo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=rn([]),c=rn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Hr));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return yr("getPickerViewColumn",(function(e){return ki({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),yr("pickerViewProps",e),yr("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Hh(e);l.value=t,Cn((()=>{c.value=t}))}return oi("uni-picker-view",{ref:o},[oi(Zf,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),oi("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class cp{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function up(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),s=(-n+Math.sqrt(i))/(2*o),a=(t-r*e)/(s-r),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*r*t+a*s*n}}}const s=Math.sqrt(4*o*r-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!dp(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(dp(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),dp(t,.4)&&(t=0),dp(o,.4)&&(o=0),o+=this._endPosition),this._solution&&dp(o-e,.4)&&dp(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),up(this.x(),this._endPosition,.4)&&dp(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class hp{constructor(e,t,n){this._extent=e,this._friction=t||new cp(.01),this._spring=n||new fp(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class pp{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new hp(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(m(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const r=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}const gp=nu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=rn(null),r=rn(null),i=br("getPickerViewColumn"),s=gi(),a=i?i(s):rn(0),l=br("pickerViewProps"),c=br("pickerViewState"),u=rn(34),d=rn(null);Fo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const f=ki((()=>(c.height-u.value)/2)),{state:h}=Ch();let p;const g=Vt({current:a.value,length:0});let m;function v(){p&&!m&&(m=!0,Cn((()=>{m=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),p.update(e*u.value,void 0,u.value)})))}eo((()=>a.value),(e=>{e!==g.current&&(g.current=e,v())})),eo((()=>g.current),(e=>a.value=e)),eo([()=>u.value,()=>g.length,()=>c.height],v);let y=0;function b(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),p.scrollTo(e*u.value)}else y=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!p.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let r=Math.min(g.current+t,g.length-1);g.current=r=Math.max(r,0),p.scrollTo(r*u.value)}}}const w=()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:s,handleTouchEnd:a}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new pp(e,t);function r(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,r=n.historyTime[t],i=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new cp(1e-4),spring:new fp(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});p=n,Xh(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),v()};return Fo(w),()=>{const e=t.default&&t.default();g.length=Hh(e).length;const n=`${f.value}px 0`;return oi("uni-picker-view-column",{ref:o},[oi("div",{onWheel:b,onClick:_,class:"uni-picker-view-group"},[oi("div",ui(h.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${f.value}px;${l.maskStyle}`}),null,16),oi("div",ui(h.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[oi(Zf,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),oi("div",{ref:r,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),mp=nu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=rn(null),o=ki((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),r=ki((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:s,refresherThreshold:a}=e;return oi("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?oi("div",{class:"uni-scroll-view-refresh"},[oi("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?oi("svg",{key:"refresh__icon",style:{transform:"rotate("+r.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[oi("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),oi("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?oi("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[oi("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?oi("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),vp=ye(!0),yp=nu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const r=rn(null),i=rn(null),s=rn(null),a=rn(null),l=iu(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=ki((()=>Number(e.scrollTop)||0)),n=ki((()=>Number(e.scrollLeft)||0));return{state:Vt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:f,realScrollY:h,_scrollLeftChanged:p,_scrollTopChanged:g}=function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,d=!1,f=()=>{};const h=ki((()=>e.scrollX)),p=ki((()=>e.scrollY)),g=ki((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),m=ki((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=s.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=a.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",f),i.removeEventListener("webkitTransitionEnd",f),f=()=>x(e,t),i.addEventListener("transitionend",f),i.addEventListener("webkitTransitionEnd",f),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function y(e){const n=e.target;r("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),p.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+m.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),h.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+m.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){p.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function _(t){h.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(h.value){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?v(r,"x"):s.value.scrollLeft=r}if(p.value){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?v(r,"y"):s.value.scrollTop=r}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=h.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=p.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",f),a.value.removeEventListener("webkitTransitionEnd",f)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),r("refresherrefresh",{},{dy:C.y-T.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{dy:C.y-T.y})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{dy:C.y-T.y}))}t.refreshState=n}}let T={x:0,y:0},C={x:0,y:e.refresherThreshold};return Fo((()=>{Cn((()=>{b(n.value),_(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===T)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=s.value;if(Math.abs(o-T.x)>Math.abs(i-T.y))if(h.value){if(0===l.scrollLeft&&o>T.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oT.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o,dy:o})))}},f=function(e){1===e.touches.length&&(T={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),T={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",f,vp),s.value.addEventListener("touchmove",l,ye(!1)),s.value.addEventListener("scroll",i,ye(!1)),s.value.addEventListener("touchend",g,vp),Vo((()=>{s.value.removeEventListener("touchstart",f),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",g)}))})),Mo((()=>{p.value&&(s.value.scrollTop=t.lastScrollTop),h.value&&(s.value.scrollLeft=t.lastScrollLeft)})),eo(n,(e=>{b(e)})),eo(o,(e=>{_(e)})),eo((()=>e.scrollIntoView),(e=>{w(e)})),eo((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:h,realScrollY:p,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,c,u,d,l,r,i,a,t),m=ki((()=>{let e="";return f.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",h.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=ki((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:f}=c;return oi("uni-scroll-view",{ref:r},[oi("div",{ref:s,class:"uni-scroll-view"},[oi("div",{ref:i,style:m.value,class:v.value},[t?oi(mp,{refreshState:f,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,oi("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function bp(e,t,n,o,r,i){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,f=1,h=null,p=!1,g=0,m="";const v=ki((()=>n.value.length>t.displayMultipleItems)),y=ki((()=>e.circular&&v.value));function b(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||y.value&&function(o){if(!u)for(let r=n.value,i=r.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(r-=c.length),r=a%1>.5||a<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){h=null}function x(){if(!h)return void(p=!1);const e=h,o=e.toPos,r=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){b(o),h=null,p=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}b(o+r*u*u/2),l=requestAnimationFrame(x)}function S(e,o,r){w();const i=t.duration,s=n.value.length;let a=d;if(y.value)if(r<0){for(;ae;)a-=s}else if(r>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),h&&(b(h.toPos),h=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(b(a+l-g),g=l):(b(l),e.autoplay&&T())):(u=!0,b(-t.displayMultipleItems-1))})),eo((()=>t.interval),(()=>{c&&(s(),T())})),eo((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const s=n.value;if(!r){const t=s.length;S(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),eo((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),eo((()=>e.autoplay&&!t.userTracking),C),C(e.autoplay&&!t.userTracking),Fo((()=>{let r=!1,i=0,a=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=_(d+o);e?b(g):(m="touch",t.current=r,S(r,"touch",0!==o?o:0===r&&y.value&&d>=1?1:0))}Xh(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,r=!1,s(),g=d,i=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(r){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),i=0),b(n)}const d=a-s||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(c.detail),!1}}}))})),Wo((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const _p=nu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=rn(null),r=iu(o,n),i=rn(null),s=rn(null),a=function(e){return Vt({interval:ki((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:ki((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:ki((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=ki((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:ac(e.previousMargin,!0),bottom:ac(e.nextMargin,!0)}:{top:0,bottom:0,left:ac(e.previousMargin,!0),right:ac(e.nextMargin,!0)}),t})),c=ki((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=rn([]);function h(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(Jt(o))}f.value=e}yr("addSwiperContext",(function(e){d.push(e),h()}));yr("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())}));const{onSwiperDotClick:p,circularEnabled:g,swiperEnabled:m}=bp(e,a,f,s,n,r);let v=()=>null;return v=wp(o,e,a,p,f,g,m),()=>{const n=t.default&&t.default();return u=Hh(n),oi("uni-swiper",{ref:o},[oi("div",{ref:i,class:"uni-swiper-wrapper"},[oi("div",{class:"uni-swiper-slides",style:l.value},[oi("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&oi("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>oi("div",{onClick:()=>p(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,u=!1,d=rn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Zn((()=>{a="auto"===t.navigation,d.value=!0!==t.navigation||a,b()})),Zn((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,u=!0,a&&(d.value=!0))}));const h={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function p(e,t,s){if(e.stopPropagation(),s)return;const a=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=a-1);break;case"next":l++,l>=a&&i.value&&(l=0)}o(l)}const g=()=>hc(fc,t.navigationColor,26);let m;const v=n=>{clearTimeout(m);const{clientX:o,clientY:r}=n,{left:i,right:s,top:a,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let f=!1;if(f=t.vertical?!(r-a{d.value=f}),300);d.value=f},y=()=>{d.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),a&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return Fo(b),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?oi(Fr,null,[oi("div",ui({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},h),[g()],16,["onClick"]),oi("div",ui({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>p(e,"next",u)},h),[g()],16,["onClick"])]):null}},xp=nu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=rn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,s=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=s,i.style.transform=s)}};return Fo((()=>{const e=br("addSwiperContext");e&&e(o)})),Wo((()=>{const e=br("removeSwiperContext");e&&e(o)})),()=>oi("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Sp={ensp:" ",emsp:" ",nbsp:" "};function Tp(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&Sp[t]&&" "===i&&(i=Sp[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,Sp.nbsp).replace(/ /g,Sp.ensp).replace(/ /g,Sp.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const Cp=nu({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=rn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Hr){const n=Tp(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(ii(e)),t!==r&&o.push(oi("br"))}))}else o.push(t)})),oi("uni-text",{ref:n,selectable:!!e.selectable||null},[oi("span",null,o)],8,["selectable"])}}}),kp=c({},Oh,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Mp.concat("return").includes(e)}});let Ep=!1;const Mp=["done","go","next","search","send"];const Op=nu({name:"Textarea",props:kp,emits:["confirm","linechange",...Ph],setup(e,{emit:t,expose:n}){const o=rn(null),r=rn(null),{fieldRef:i,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=$h(e,o,t),u=ki((()=>s.value.split("\n"))),d=ki((()=>Mp.includes(e.confirmType))),f=rn(0),h=rn(null);function p({height:e}){f.value=e}function g(e){"Enter"===e.key&&d.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return eo((()=>f.value),(t=>{const n=o.value,i=h.value,s=r.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Ep=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?oi("textarea",{key:"disabled-textarea",ref:i,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Ep},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):oi("textarea",{key:"textarea",ref:i,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Ep},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return oi("uni-textarea",{ref:o,"auto-height":e.autoHeight},[oi("div",{ref:r,class:"uni-textarea-wrapper"},[io(oi("div",ui(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Ui,!s.value.length]]),oi("div",{ref:h,class:"uni-textarea-line"},[" "],512),oi("div",{class:"uni-textarea-compute"},[u.value.map((e=>oi("div",null,[e.trim()?e:"."]))),oi(Zf,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?oi("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Pp=nu({name:"View",props:c({},su),setup(e,{slots:t}){const n=rn(null),{hovering:o,binding:r}=au(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?oi("uni-view",ui({class:o.value?i:"",ref:n},r),[Ko(t,"default")],16):oi("uni-view",{ref:n},[Ko(t,"default")],512)}}});function Lp(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Ap(e,t,n){e&&Pl(n||yc(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function $p(e,t){e&&function(e,t){t=Ol(e,t),delete Ml[t]}(t||yc(),e)}let Ip=0;function Rp(e,t,n,o){m(t)&&Bo(e,t.bind(n),o)}function Bp(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(Ee.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];h(r)?r.forEach((e=>Rp(o,e,n,t))):Rp(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Sc(n,"onLoad",e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&Sc(n,"onShow")}catch(r){console.error(r.message+"\n"+r.stack)}}}function Dp(e,t,n){Bp(e,t,n)}function Np(e,t,n){return e[t]=n}function Fp(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function jp(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i.onError?Sc(i.proxy,"onError",n):gn(n,0,o&&o.$.vnode,!1)}}function Hp(e,t){return e?[...new Set([].concat(e,t))]:t}function Vp(e){const t=e.config;var n;t.errorHandler=Oe(e,jp),n=t.optionMergeStrategies,Ee.forEach((e=>{n[e]=Hp}));const o=t.globalProperties;o.$set=Np,o.$applyOptions=Dp,o.$callMethod=Fp,function(e){Me.forEach((t=>t(e)))}(e)}function Wp(e){const t=tl({history:Yp(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:qp});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(zp[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let zp=Object.create(null);const qp=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,zp[o]);if(t)return t}return{left:0,top:0};var o};function Yp(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),pa(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=yf(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=uf(t[r]);bf(Sf(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Xp={install(e){Vp(e),jc(e),Jc(e),e.config.warnHandler||(e.config.warnHandler=Up),Wp(e)}};function Up(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Kp={class:"uni-async-loading"},Gp=oi("i",{class:"uni-loading"},null,-1),Jp=ou({name:"AsyncLoading",render:()=>(qr(),Gr("div",Kp,[Gp]))});function Zp(){window.location.reload()}const Qp=ou({name:"AsyncError",props:["error"],setup(){_l();const{t:e}=yl();return()=>oi("div",{class:"uni-async-error",onClick:Zp},[e("uni.async.error")],8,["onClick"])}});let eg;function tg(){return eg}function ng(e){eg=e,Object.defineProperty(eg.$.ctx,"$children",{get:()=>yf().map((e=>e.$vm))});const t=eg.$.appContext.app;t.component(Jp.name)||t.component(Jp.name,Jp),t.component(Qp.name)||t.component(Qp.name,Qp),function(e){e.$vm=e,e.$mpType="app";const t=rn(yl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(eg),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(eg),Kc(),Pc()}function og(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=gi();if(n(r.proxy),o(r),i)return i(e,t)},e}function rg(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?og(e.default,t):og(e,t)}function ig(e){return rg(e,{clone:!0,init:xf,setup(e){e.$pageInstance=e;const t=vu(),n=we(t.query);e.attrs.__pageQuery=n,uf(e.proxy).options=n,e.proxy.options=n;const o=gu();var r,i;return af(o),e.onReachBottom=Vt([]),e.onPageScroll=Vt([]),eo([e.onReachBottom,e.onPageScroll],(()=>{const t=mc();e.proxy===t&&Af(e,o)}),{once:!0}),No((()=>{kf(e,o)})),Fo((()=>{Ef(e);const{onReady:n}=e;n&&I(n),cg(t)})),Po((()=>{if(!e.__isVisible){kf(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&I(n),Cn((()=>{cg(t)}))}}),"ba",r),function(e,t){Po(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&I(t)}}})),i=o.id,Gm.subscribe(Ol(i,"invokeViewApi"),Ll),Vo((()=>{!function(e){Gm.unsubscribe(Ol(e,"invokeViewApi")),Object.keys(Ml).forEach((t=>{0===t.indexOf(e+".")&&delete Ml[t]}))}(o.id)})),n}})}function sg(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=wg(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Jm.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function ag(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Jm.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function lg(){const{emit:e}=Jm;"visible"===document.visibilityState?e("onAppEnterForeground",c({},Jf)):e("onAppEnterBackground")}function cg(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Sc("onTabItemTap",{index:n,text:t,pagePath:o})}const ug=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let dg;function fg(){if(dg=dg||ug.__DC_STAT_UUID,!dg){dg=Date.now()+""+Math.floor(1e7*Math.random());try{ug.__DC_STAT_UUID=dg}catch(e){}}return dg}function hg(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function pg(){let e,t="0",n="",o="phone";const r=navigator.language;if(Df){e="iOS";const o=Rf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=Rf.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(Bf){e="Android";const o=Rf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=Rf.match(/\((.+?)\)/),i=r?r[1].split(";"):Rf.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=Vf(),n=Wf(t),o=zf(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=qf(o);let s=window.innerHeight;const a=Zl.top,l={left:Zl.left,right:i-Zl.right,top:Zl.top,bottom:s-Zl.bottom,width:i-Zl.left-Zl.right,height:s-Zl.top-Zl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=nc(),n=tc(e,"--window-bottom"),o=tc(e,"--window-left"),r=tc(e,"--window-right"),i=tc(e,"--top-window-height");return{top:t,bottom:n?n+Zl.bottom:0,left:o?o+Zl.left:0,right:r?r+Zl.right:0,topWindowHeight:i||0}}();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Zl.top,right:Zl.right,bottom:Zl.bottom,left:Zl.left},screenTop:r-s}}));let mg,vg=!0;function yg(){vg&&(mg=pg())}const bg=Uu(0,(()=>{yg();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=mg;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:fg(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i,osName:l?l.toLowerCase():void 0,osVersion:u})})),_g=Uu(0,(()=>{yg();const{theme:e,language:t,browserName:n,browserVersion:o}=mg;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Sd?Sd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})})),wg=Uu(0,(()=>{vg=!0,yg(),vg=!1;const e=gg(),t=bg(),n=_g();vg=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=mg,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)}));const xg=Uu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Sg(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Tg=Uu(0,(e=>{try{return Sg(e)}catch(t){return""}})),Cg=Uu(0,(e=>{localStorage&&localStorage.removeItem(e)})),kg={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Eg({count:e,sourceType:t,type:n,extension:o}){Sh();const r=document.createElement("input");return r.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${kg[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}let Mg=null;const Og=Ku("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{Tl();const{t:i}=yl();Mg&&(document.body.removeChild(Mg),Mg=null),Mg=Eg({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Mg),Mg.addEventListener("cancel",(()=>{r("chooseImage:fail cancel")})),Mg.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||Kf(t),i)}),oe))},tempFiles:r})})),Mg.click(),_h||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Cd),Pg={esc:["Esc","Escape"],enter:["Enter"]},Lg=Object.keys(Pg);function Ag(){const e=rn(""),t=rn(!1),n=n=>{if(t.value)return;const o=Lg.find((e=>-1!==Pg[e].indexOf(n.key)));o&&(e.value=o),Cn((()=>e.value=""))};return Fo((()=>{document.addEventListener("keyup",n)})),Vo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const $g=oi("div",{class:"uni-mask"},null,-1);function Ig(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ss(bo({setup:()=>()=>(qr(),Gr(e,t,null,16))}))}function Rg(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Bg(e,{onEsc:t,onEnter:n}){const o=rn(e.visible),{key:r,disable:i}=Ag();return eo((()=>e.visible),(e=>o.value=e)),eo((()=>o.value),(e=>i.value=!e)),Zn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Dg=0,Ng="";function Fg(e){let t=Dg;Dg+=e?1:-1,Dg=Math.max(0,Dg),Dg>0?0===t&&(Ng=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Ng,Ng="")}const jg=ou({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Vt({direction:"none"});let n=1,o=0,r=0,i=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function c(e){const t=e.target.getBoundingClientRect();i=t.width,s=t.height,d(e)}function u(e){const a=n*o>i,l=n*r>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return oi(Vh,{style:n,onTouchstart:ru(c),onTouchmove:ru(d),onTouchend:ru(u)},{default:()=>[oi(tp,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[oi("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function Hg(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Vg=ou({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Fo((()=>Fg(!0))),Wo((()=>Fg(!1)));const{key:n}=Ag(),o=rn(null),r=rn(Hg(e));let i;function s(){i||Cn((()=>{t("close")}))}function a(e){r.value=e.detail.current}eo((()=>e.current),(()=>r.value=Hg(e))),eo((()=>n.value),(e=>{"esc"===e&&s()})),Fo((()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(i=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return oi("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[oi(_p,{navigation:"auto",current:r.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>oi(xp,null,{default:()=>[oi(jg,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Jr(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),oi("div",{style:l},[hc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let Wg,zg=null;const qg=()=>{zg=null,Cn((()=>{null==Wg||Wg.unmount(),Wg=null}))},Yg=Ku("previewImage",((e,{resolve:t})=>{zg?c(zg,e):(zg=Vt(e),Cn((()=>{Wg=Ig(Vg,zg,qg),Wg.mount(Rg("u-a-p"))}))),t()}),0,kd),Xg=Xu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const h=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(g){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)f(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let p;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;p=new Kg(t);const f={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},h=setTimeout((function(){p.abort(),u("timeout",{errCode:5})}),l);f.signal.addEventListener("abort",(function(){clearTimeout(h),u("abort",{errCode:600003})})),window.fetch(e,f).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=Ug(s);if(p._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(new Uint8Array(r),o),o+=r.byteLength;return n.buffer}(u);let n="text"===i?(new TextDecoder).decode(e):e;return"text"===i&&(n=Jg(n,i,r)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),p._emitter.emit("chunkReceived",{data:o}),d()}))};d()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;p=new Kg(t),t.open(o,e);for(const e in n)f(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,p.abort(),u("timeout",{errCode:5})}),l);t.responseType=i,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===i?t.responseText:t.response;"text"===i&&(n=Jg(n,i,r)),c({data:n,statusCode:e,header:Gg(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return p}),0,Pd),Ug=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let r=0;r{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Gg(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function Jg(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(r){}return o}class Zg{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Qg=Xu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new Zg;return h(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Uf(e)):Xf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Ld),em=Ku("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Sc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(tg().$router.go(-e.delta),t()):n("onBackPress")}),0,Rd),tm=Ku("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(df.handledBeforeEntryPageRoutes)return Jd({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r);ff.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,$d);function nm(e){__uniConfig.darkmode&&Jm.on("onThemeChange",e)}function om(e){Jm.off("onThemeChange",e)}function rm(e){let t={};return __uniConfig.darkmode&&(t=Ie(e,__uniConfig.themeConfig,hg())),__uniConfig.darkmode?t:e}function im(e,t){const n=Yt(e),o=n?Vt(rm(e)):rm(e);return __uniConfig.darkmode&&n&&eo(e,(e=>{const t=rm(e);for(const n in t)o[n]=t[n]})),t&&nm(t),o}const sm={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},am=bo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=rn(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=Bg(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=rn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=sm[e].cancelColor})(e,t)};return Zn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===hg()&&n({theme:"dark"}),nm(n))):om(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:f}=e;return n.value=o,oi(Ii,{name:"uni-fade"},{default:()=>[io(oi("uni-modal",{onTouchmove:Ql},[$g,oi("div",{class:"uni-modal"},[t?oi("div",{class:"uni-modal__hd"},[oi("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?oi("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:f,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):oi("div",{class:"uni-modal__bd",onTouchmovePassive:ec,textContent:o},null,40,["onTouchmovePassive","textContent"]),oi("div",{class:"uni-modal__ft"},[l&&oi("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),oi("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Ui,s.value]])]})}}});let lm;const cm=ie((()=>{Jm.on("onHidePopup",(()=>lm.visible=!1))}));let um;function dm(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&lm.editable&&(o.content=t),um&&um(o)}const fm=Ku("showModal",((e,{resolve:t})=>{cm(),um=t,lm?(c(lm,e),lm.visible=!0):(lm=Vt(e),Cn((()=>(Ig(am,lm,dm).mount(Rg("u-a-m")),Cn((()=>lm.visible=!0))))))}),0,Vd),hm={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Wd.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},pm={light:"#fff",dark:"rgba(255,255,255,0.9)"},gm=e=>pm[e],mm=bo({name:"Toast",props:hm,setup(e){wl(),xl();const{Icon:t}=function(e){const t=rn(gm(hg())),n=({theme:e})=>t.value=gm(e);Zn((()=>{e.visible?nm(n):om(n)}));return{Icon:ki((()=>{switch(e.icon){case"success":return oi(hc(uc,t.value,38),{class:"uni-toast__icon"});case"error":return oi(hc(dc,t.value,38),{class:"uni-toast__icon"});case"loading":return oi("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=Bg(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return oi(Ii,{name:"uni-fade"},{default:()=>[io(oi("uni-toast",{"data-duration":r},[o?oi("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Ql},null,40,["onTouchmove"]):"",s||t.value?oi("div",{class:"uni-toast"},[s?oi("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,oi("p",{class:"uni-toast__content"},[i])]):oi("div",{class:"uni-sample-toast"},[oi("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[Ui,n.value]])]})}}});let vm,ym,bm="";const _m=Ne();function wm(e){vm?c(vm,e):(vm=Vt(c(e,{visible:!1})),Cn((()=>{_m.run((()=>{eo([()=>vm.visible,()=>vm.duration],(([e,t])=>{if(e){if(ym&&clearTimeout(ym),"onShowLoading"===bm)return;ym=setTimeout((()=>{km("onHideToast")}),t)}else ym&&clearTimeout(ym)}))})),Jm.on("onHidePopup",(()=>km("onHidePopup"))),Ig(mm,vm,(()=>{})).mount(Rg("u-a-t"))}))),setTimeout((()=>{vm.visible=!0}),10)}const xm=Ku("showToast",((e,{resolve:t,reject:n})=>{wm(e),bm="onShowToast",t()}),0,zd),Sm={icon:"loading",duration:1e8,image:""},Tm=Ku("showLoading",((e,{resolve:t,reject:n})=>{c(e,Sm),wm(e),bm="onShowLoading",t()}),0,Hd),Cm=Ku("hideLoading",((e,{resolve:t,reject:n})=>{km("onHideLoading"),t()}));function km(e){const{t:t}=yl();if(!bm)return;let n="";if("onHideToast"===e&&"onShowToast"!==bm?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==bm&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);bm="",setTimeout((()=>{vm.visible=!1}),10)}const Em=Ku("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:r})=>{(function(e,t,n){const o=document.fonts;if(o){const r=new FontFace(e,t,n);return r.load().then((()=>{o.add&&o.add(r)}))}return new Promise((o=>{const r=document.createElement("style"),i=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:r,variant:s,featureSettings:a}=n;e&&i.push(`font-style:${e}`),t&&i.push(`font-weight:${t}`),o&&i.push(`font-stretch:${o}`),r&&i.push(`unicode-range:${r}`),s&&i.push(`font-variant:${s}`),a&&i.push(`font-feature-settings:${a}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${i.join(";")}}`,document.head.appendChild(r),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${If(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${If(t.substring(4,t.length-1))}')`:If(t),n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function Mm(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Jm.emit("onNavigationBarChange",{titleText:t})}Zn(t),Mo(t)}const Om=Ku("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:s}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=s;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:a}=n;i.titleText=a}o()}(vc(),"setNavigationBarTitle",e,t,n)})),Pm=ou({name:"TabBar",setup(){const e=rn([]),t=ef(),n=im(t,(()=>{const e=rm(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}rn(c({type:"midButton"},e.midButton)),Zn(n)}(n,e),function(e){eo((()=>e.shown),(t=>{rc({"--window-bottom":lf(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return Zn((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,r=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=r}})),(t,n)=>()=>{const{pagePath:o,text:r}=t;let i=re(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?Ud({from:"tabBar",url:i,tabBarText:r}):Sc("onTabItemTap",{index:n,text:r,pagePath:o})}}(nl(),n,e),{style:r,borderStyle:i,placeholderStyle:s}=function(e){const t=ki((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||rf&&n&&"none"!==n&&(t=Lm[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=ki((()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:Am[t]||Am.black}})),o=ki((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Fo((()=>{n.iconfontSrc&&Em({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:r,color:i}=e;return n.value.map(((n,s)=>{const a=o===s;return function(e,t,n,o,r,i,s,a){return oi("div",{key:s,class:"uni-tabbar__item",onClick:a(r,s)},[$m(e,t||"",n,o,r,i)],8,["onClick"])}(a?r:i,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)}))}(n,o,e);return oi("uni-tabbar",{class:"uni-tabbar-"+n.position},[oi("div",{class:"uni-tabbar",style:r.value},[oi("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),oi("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const Lm={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},Am={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function $m(e,t,n,o,r,i){const{height:s}=i;return oi("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Rm(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&Im(t,r,i),r.text&&Bm(e,r,i),r.redDot&&Dm(r.badge)],4)}function Im(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return oi("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&oi("img",{src:If(e)},null,8,["src"])],6)}function Rm(e,t,n,o){var r;const{type:i,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(r=n.iconfont)?void 0:r.fontSize)||a,color:t};return oi("div",{class:l,style:c},["midButton"!==i&&oi("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Bm(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:s}=n;return oi("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[r],4)}function Dm(e){return oi("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Nm=ou({name:"Layout",setup(e,{emit:t}){const n=rn(null);oc({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=nl();return{routeKey:ki((()=>Sf("/"+e.meta.route,yu()))),isTabBar:ki((()=>e.meta.isTabBar)),routeCache:Cf}}(),{layoutState:r,windowState:i}=function(){vu();{const e=Vt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return eo((()=>e.marginWidth),(e=>oc({"--window-margin":e+"px"}))),eo((()=>e.leftWindowWidth+e.marginWidth),(e=>{oc({"--window-left":e+"px"})})),eo((()=>e.rightWindowWidth+e.marginWidth),(e=>{oc({"--window-right":e+"px"})})),{layoutState:e,windowState:ki((()=>({})))}}}();!function(e,t){const n=vu();function o(){const o=document.body.clientWidth,r=yf();let i={};if(r.length>0){i=uf(r[r.length-1]).meta}else{const e=Oc(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((f(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,Cn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,Cn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}eo([()=>n.path],o),Fo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=vu(),n=ef(),o=ki((()=>t.meta.isTabBar&&n.shown));return oc({"--tab-bar-height":n.height}),o}(),a=function(e){const t=rn(!1);return ki((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(s);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return oi(el,null,{default:jn((({Component:o})=>[(qr(),Gr(ko,{matchBy:"key",cache:n},[(qr(),Gr(Xn(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return io(oi(Pm,null,null,512),[[Ui,e.value]])}(s);return oi("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Fm=Ku("scanCode",(jm="scanCode",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(jm))));var jm;function Hm(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Jr(e)}function Vm(e){if(e.mode===qm.TIME)return"00:00";if(e.mode===qm.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case Ym.YEAR:return t.toString();case Ym.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Wm(e){if(e.mode===qm.TIME)return"23:59";if(e.mode===qm.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case Ym.YEAR:return t.toString();case Ym.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function zm(e,t,n,o){const r=e.mode===qm.DATE?"-":":",i=e.mode===qm.DATE?t.dateArray:t.timeArray;let s;if(e.mode===qm.TIME)s=2;else switch(e.fields){case Ym.YEAR:s=1;break;case Ym.MONTH:s=2;break;default:s=3}const a=String(n).split(r);let l=[];for(let c=0;c=0&&(l=o?zm(e,t,o):l.map((()=>0))),l}const qm={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},Ym={YEAR:"year",MONTH:"month",DAY:"day"},Xm={PICKER:"picker",SELECT:"select"},Um=nu({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:qm.SELECTOR,validator:e=>Object.values(qm).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Vm(e)},end:{type:String,default:e=>Wm(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Cl();const{t:o}=yl(),r=rn(null),i=rn(null),s=rn(null),a=rn(null),l=rn(!1),{state:u,rangeArray:d}=function(e){const t=Vt({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=ki((()=>{let n=e.range;switch(e.mode){case qm.SELECTOR:return[n];case qm.MULTISELECTOR:return n;case qm.TIME:return t.timeArray;case qm.DATE:{const n=t.dateArray;switch(e.fields){case Ym.YEAR:return[n[0]];case Ym.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),f=iu(r,t),{system:p,selectorTypeComputed:g,_show:m,_l10nColumn:v,_l10nItem:y,_input:b,_fixInputPosition:_,_pickerViewChange:w,_cancel:x,_change:S,_resetFormData:T,_getFormData:C,_createTime:k,_createDate:E,_setValueSync:M}=function(e,t,n,o,r,i,s){const a=function(){const e=rn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=rn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=ki((()=>{const t=e.selectorType;return Object.values(Xm).includes(t)?t:a.value?Xm.PICKER:Xm.SELECT})),u=ki((()=>e.mode===qm.DATE&&!Object.values(Ym).includes(e.fields)&&t.isDesktop?l.value:"")),d=ki((()=>zm(e,t,e.start,Vm(e)))),f=ki((()=>zm(e,t,e.end,Wm(e))));function p(n){if(e.disabled)return;t.valueChangeSource="";let o=r.value,i=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const s=i.getBoundingClientRect();t.popover={top:s.top,left:s.left,width:s.width,height:s.height},setTimeout((()=>{t.visible=!0}),20)}function g(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case qm.SELECTOR:t.valueSync=0;break;case qm.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case qm.DATE:case qm.TIME:t.valueSync=""}}function v(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function y(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&to&&(o=t)}return{start:n,end:o}}function b(){let e=[];const n=y();for(let t=n.start,i=n.end;t<=i;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let r=[];for(let t=1;t<=31;t++)r.push((t<10?"0":"")+t);t.dateArray.push(e,o,r)}function _(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;na?0:s)}}break;case qm.TIME:case qm.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,o=t.valueSync;switch(e.mode){case qm.MULTISELECTOR:n=[...o];break;case qm.TIME:n=zm(e,t,o,ae({mode:qm.TIME}));break;case qm.DATE:n=zm(e,t,o,ae({mode:qm.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function C(){let n=t.valueArray;switch(e.mode){case qm.SELECTOR:return n[0];case qm.MULTISELECTOR:return n.map((e=>e));case qm.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case qm.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function k(){M(),t.valueChangeSource="click";const e=C();t.valueSync=h(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:o,width:r,height:i}=t.popover,{pageX:s,pageY:a}=e;if(s>o&&sn&&a{let e=r.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function O(){e.mode===qm.SELECTOR&&c.value===Xm.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function P(e){const n=e.target;t.valueSync=n.value,Cn((()=>{k()}))}function L(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;s.value.style.left=e.clientX-t.left-1.5*n+"px",s.value.style.top=e.clientY-t.top-.5*n+"px"}}function A(e){t.valueArray=$(e.detail.value,!0)}function $(t,n){const{getLocale:o}=yl();if(e.mode===qm.DATE){const r=o();if(!r.startsWith("zh"))switch(e.fields){case Ym.YEAR:return t;case Ym.MONTH:return[t[1],t[0]];default:switch(r){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function I(t,n){const{getLocale:o}=yl();if(e.mode===qm.DATE){const r=o();if(r.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==Ym.YEAR&&n===(e.fields===Ym.MONTH||"es"!==r&&"fr"!==r?0:1)){let e;switch(r){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return eo((()=>t.visible),(e=>{e?(clearTimeout(Km),t.contentVisible=e,O()):Km=setTimeout((()=>{t.contentVisible=e}),300)})),eo([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),eo((()=>t.valueSync),T,{deep:!0}),eo((()=>t.valueArray),(o=>{if(e.mode===qm.TIME||e.mode===qm.DATE){const n=e.mode===qm.TIME?_:w,o=t.valueArray,r=d.value,i=f.value;if(e.mode===qm.DATE){const e=t.dateArray,n=e[2].length,r=Number(e[2][o[2]])||1,i=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${r}`).getDate();in(i)&&x(o,i)}o.forEach(((o,r)=>{o!==t.oldValueArray[r]&&(t.oldValueArray[r]=o,e.mode===qm.MULTISELECTOR&&n("columnchange",{},{column:r,value:o}))}))})),{selectorTypeComputed:c,system:u,_show:p,_cancel:E,_change:k,_l10nColumn:$,_l10nItem:I,_input:P,_resetFormData:m,_getFormData:g,_createTime:v,_createDate:b,_setValueSync:S,_fixInputPosition:L,_pickerViewChange:A}}(e,u,f,r,i,s,a);!function(e,t,n){const{key:o,disable:r}=Ag();Zn((()=>{r.value=!e.visible})),eo(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(u,x,S),function(e,t){const n=br(cu,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),Vo((()=>{n.removeField(o)}))}}(T,C),k(),E(),M();const O=function(e){const t=rn(0),n=rn(0),o=ki((()=>t.value>=500&&n.value>=500)),r=ki((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},r=t.content,i=t.triangle,s=e.popover;function a(e){return Number(e)||0}if(o.value&&s){c(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=a(s.left),t=a(s.width?s.width:300),o=a(s.top),l=a(s.height),u=e+t/2;r.transform="none !important";const d=Math.max(0,u-t/2);r.left=`${d}px`,s.width&&(r.width=`${t}px`);let f=Math.max(12,u-d);f=Math.min(t-12,f),i.left=`${f}px`;const h=n.value/2;o+l-h>h-o?(r.top="auto",r.bottom=n.value-o+6+"px",i.bottom="-6px",i["border-width"]="6px 6px 0 6px",i["border-color"]="#fcfcfd transparent transparent transparent"):(r.top=`${o+l+6}px`,i.top="-6px",i["border-width"]="0 6px 6px 6px",i["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return Fo((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:r}=wg();t.value=e,n.value=o+(r||0)};window.addEventListener("resize",e),e(),Wo((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:r}}(u);return Zn((()=>{u.isDesktop=O.isDesktop.value,u.popupStyle=O.popupStyle.value})),Vo((()=>{i.value&&i.value.remove()})),Fo((()=>{l.value=!0})),()=>{let t;const{visible:c,contentVisible:f,valueArray:h,popupStyle:T,valueSync:C}=u,{rangeKey:k,mode:E,start:M,end:O}=e,P=lu(e,"disabled");return oi("uni-picker",ui({ref:r},P,{onClick:ru(m)}),[l.value?oi("div",{ref:i,class:["uni-picker-container",`uni-${E}-${g.value}`],onWheel:Ql,onTouchmove:Ql},[oi(Ii,{name:"uni-fade"},{default:()=>[io(oi("div",{class:"uni-mask uni-picker-mask",onClick:ru(x),onMousemove:_},null,40,["onClick","onMousemove"]),[[Ui,c]])]}),p.value?null:oi("div",{class:[{"uni-picker-toggle":c},"uni-picker-custom"],style:T.content},[oi("div",{class:"uni-picker-header",onClick:ec},[oi("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:ru(x)},[o("uni.picker.cancel")],8,["onClick"]),oi("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:S},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),f?oi(lp,{value:v(h),class:"uni-picker-content",onChange:w},Hm(t=Uo(v(d.value),((e,t)=>{let n;return oi(gp,{key:t},Hm(n=Uo(e,((e,n)=>oi("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[k]||"":y(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,oi("div",{ref:s,class:"uni-picker-select",onWheel:ec,onTouchmove:ec},[Uo(d.value[0],((e,t)=>oi("div",{key:t,class:["uni-picker-item",{selected:h[0]===t}],onClick:()=>{h[0]=t,S()}},["object"==typeof e?e[k]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),oi("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,oi("div",null,[n.default&&n.default()]),p.value?oi("div",{class:"uni-picker-system",onMousemove:ru(_)},[oi("input",{class:["uni-picker-system_input",p.value],ref:a,value:C,type:E,tabindex:"-1",min:M,max:O,onChange:e=>{b(e),ec(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let Km;const Gm=c(Al,{publishHandler(e,t,n){Jm.subscribeHandler(e,t,n)}}),Jm=c(Wc,{publishHandler(e,t,n){Gm.subscribeHandler(e,t,n)}}),Zm=ou({name:"PageHead",setup(){const e=rn(null),t=gu(),n=im(t.navigationBar,(()=>{const e=rm(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:r}=function(e){const t=ki((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,r={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(r[`uni-page-head-shadow-${o}`]=!0),r})),n=ki((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const i=function(e,t){if(!t)return oi("div",{class:"uni-page-head-btn",onClick:ev},[hc(fc,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&oi("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return oi("uni-page-head",{"uni-page-head-type":s},[oi("div",{ref:e,class:o.value,style:r.value},[oi("div",{class:"uni-page-head-hd"},[i]),Qm(n),oi("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Qm(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:r}){return oi("div",{class:"uni-page-head-bd"},[oi("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?oi("i",{class:"uni-loading"},null):r?oi("img",{src:r,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function ev(){1===vf().length?Gd({url:"/"}):em({from:"backbutton",success(){}})}const tv=ou({name:"PageBody",setup(e,t){const n=rn(null),o=rn(null);return eo((()=>false.enablePullDownRefresh),(()=>{o.value=null}),{immediate:!0}),()=>oi(Fr,null,[!1,oi("uni-page-wrapper",ui({ref:n},o.value),[oi("uni-page-body",null,[Ko(t.slots,"default")]),null],16)])}}),nv=ou({name:"Page",setup(e,t){let n=mu(yu());const o=n.navigationBar,r={};return Mm(n),()=>oi("uni-page",{"data-page":n.route,style:r},"custom"!==o.style?[oi(Zm),ov(t),null]:[ov(t),null])}});function ov(e){return qr(),Gr(tv,{key:0},{default:jn((()=>[Ko(e.slots,"page")])),_:3})}const rv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=rd;const iv=Object.assign({}),sv=Object.assign;window.__uniConfig=sv({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#F8F8F8",titleText:"物资盘点",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#999999",selectedColor:"#007AFF",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"盘点",iconPath:"/static/tabbar/inventory.png",selectedIconPath:"/static/tabbar/inventory-active.png"},{pagePath:"pages/profile/profile",text:"个人中心",iconPath:"/static/tabbar/profile.png",selectedIconPath:"/static/tabbar/profile-active.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},uniIdRouter:{},condition:{current:0,list:[{name:"",path:"",query:""}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},compilerVersion:"4.76"},{appId:"__UNI__A789D1D",appName:"应急保障物资盘点",appVersion:"1.0.1",appVersionCode:101,async:rv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(iv).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return sv(e[n]||(e[n]={}),iv[t].default),e}),{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const av={delay:rv.delay,timeout:rv.timeout,suspensible:rv.suspensible};rv.loading&&(av.loadingComponent={name:"SystemAsyncLoading",render:()=>oi(qn(rv.loading))}),rv.error&&(av.errorComponent={name:"SystemAsyncError",props:["error"],render(){return oi(qn(rv.error),{error:this.error})}});const lv=()=>t((()=>import("./pages-index-index.Cmrm55fy.js")),__vite__mapDeps([0,1,2,3])).then((e=>ig(e.default||e))),cv=wo(sv({loader:lv},av)),uv=()=>t((()=>import("./pages-profile-profile.D6YsSPp2.js")),__vite__mapDeps([4,1,2,5])).then((e=>ig(e.default||e))),dv=wo(sv({loader:uv},av)),fv=()=>t((()=>import("./pages-login-login.BXgwkOkX.js")),__vite__mapDeps([6,1,2,7])).then((e=>ig(e.default||e))),hv=wo(sv({loader:fv},av)),pv=()=>t((()=>import("./pages-scan-scan.BIBZEr_x.js")),__vite__mapDeps([8,2,9])).then((e=>ig(e.default||e))),gv=wo(sv({loader:pv},av)),mv=()=>t((()=>import("./pages-inventory-inventory.C6NjEH2T.js")),__vite__mapDeps([10,1,2,11])).then((e=>ig(e.default||e))),vv=wo(sv({loader:mv},av)),yv=()=>t((()=>import("./pages-plan-detail-plan-detail.DNRi6IFP.js")),__vite__mapDeps([12,1,2,13])).then((e=>ig(e.default||e))),bv=wo(sv({loader:yv},av));function _v(e,t){return qr(),Gr(nv,null,{page:jn((()=>[oi(e,sv({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(cv,t)}},loader:lv,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"物资盘点",type:"default"},isNVue:!1}},{path:"/pages/profile/profile",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(dv,t)}},loader:uv,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"个人中心",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(hv,t)}},loader:fv,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/scan/scan",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(gv,t)}},loader:pv,meta:{navigationBar:{titleText:"扫码盘点",type:"default"},isNVue:!1}},{path:"/pages/inventory/inventory",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(vv,t)}},loader:mv,meta:{navigationBar:{titleText:"物资盘点",type:"default"},isNVue:!1}},{path:"/pages/plan-detail/plan-detail",component:{setup(){const e=tg(),t=e&&e.$route&&e.$route.query||{};return()=>_v(bv,t)}},loader:yv,meta:{navigationBar:{titleText:"计划详情",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const wv={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){console.log("App Launch"),this.globalData.hhwUHFController;const e=Tg("token");e?Gd({url:"/pages/index/index"}):(Gd({url:"/pages/login/login"}),console.log("App Launch token1234",e))},onShow:function(){console.log("App Show"),console.log("H5端:跳过UHF初始化操作")},onHide:function(){console.log("App Hide"),console.log("H5端:跳过UHF关闭操作")}};rg(wv,{init:ng,setup(e){const t=vu(),n=()=>{var n;n=e,Object.keys(Td).forEach((e=>{Td[e].forEach((t=>{Bo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i}=e,s=function({path:e,query:t}){return c(Gf,{path:e,query:t}),c(Jf,Gf),c({},Gf)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:we(t.query)});if(o&&I(o,s),r&&I(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};Zd(),i&&I(i,e)}};return br(Va).isReady().then(n),Fo((()=>{window.addEventListener("resize",Te(sg,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",ag),document.addEventListener("visibilitychange",lg),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Jm.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(qr(),Gr(Nm));e.setup=(e,o)=>{const r=t&&t(e,o);return m(r)?n:r},e.render=n}});const xv="http://192.168.60.99:9004/",Sv={BASE_API:xv};(function(){const e=Ss(wv);return e.config.globalProperties.$config=Sv,{app:e}})().app.use(Xp).mount("#app");export{Fm as A,Og as B,wd as C,xd as D,Yg as E,Fr as F,Op as G,Um as H,Dh as I,ch as J,Om as K,Xg as L,xv as M,Tg as N,Qg as O,yp as S,fm as a,Tm as b,Gr as c,oi as d,ii as e,Kr as f,wg as g,Cm as h,Uo as i,si as j,ni as k,hu as l,Pp as m,tm as n,qr as o,Cp as p,_s as q,Gd as r,xm as s,X as t,he as u,Cg as v,jn as w,mh as x,xg as y,Ud as z}; diff --git a/unpackage/dist/build/web/assets/index-AvyRkr7C.js b/unpackage/dist/build/web/assets/index-AvyRkr7C.js deleted file mode 100644 index 94a8b1c..0000000 --- a/unpackage/dist/build/web/assets/index-AvyRkr7C.js +++ /dev/null @@ -1,25 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.DLMOBsjN.js","assets/api.BGBfCZZa.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/index-Ci5dUIqn.css","assets/pages-profile-profile.DrOqm1nk.js","assets/profile-CNWn3zN8.css","assets/pages-login-login.7v_elnvs.js","assets/login-CS8KahcN.css","assets/pages-scan-scan.LnRS99dn.js","assets/scan-CTrJClLW.css","assets/pages-inventory-inventory.kBIVsz8T.js","assets/inventory-BqgoUPT0.css","assets/pages-plan-detail-plan-detail.5c5rGa03.js","assets/plan-detail-CbAQ_gJu.css"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),s=(null==i?void 0:i.nonce)||(null==i?void 0:i.getAttribute("nonce"));r=Promise.all(n.map((n=>{if((n=function(e){return"/h5/"+e}(n))in e)return;e[n]=!0;const r=n.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(!!o)for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.href===n&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${n}"]${i}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":"modulepreload",r||(a.as="script",a.crossOrigin=""),a.href=n,s&&a.setAttribute("nonce",s),document.head.appendChild(a),r?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${n}`))))})):void 0})))}return r.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}; -/** -* @vue/shared v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/ -function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const o={},r=[],i=()=>{},s=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,d=(e,t)=>f.call(e,t),p=Array.isArray,h=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,_=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),S=e=>"[object Object]"===x(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,O=k((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),$=/\B([A-Z])/g,L=k((e=>e.replace($,"-$1").toLowerCase())),A=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),P=k((e=>e?`on${A(e)}`:"")),B=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},I=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let N;const M=()=>N||(N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function F(e){if(p(e)){const t={};for(let n=0;n{if(e){const n=e.split(V);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function q(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;nv(e)?e:null==e?"":p(e)||b(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,Y,2):String(e),Y=(e,t)=>t&&t.__v_isRef?Y(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[K(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>K(e)))}:y(t)?K(t):!b(t)||p(t)||S(t)?t:String(t),K=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},J=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view","location-picker","location-view"].map((e=>"uni-"+e)),G=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),Z=["list-item"].map((e=>"uni-"+e));function Q(e){if(-1!==Z.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==J.indexOf(t)||-1!==G.indexOf(t)}const ee=["%","%"],te=/^([a-z-]+:)?\/\//i,ne=/^data:.*,.*/;function oe(e){return 0===e.indexOf("/")}function re(e){return oe(e)?e:"/"+e}function ie(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}let se;function ae(){return se||(se=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),se)}function le(e){if(!e)return;let t=e.type.name;for(;t&&Q(L(t));)t=(e=e.parent).type.name;return e.proxy}function ce(e){return 1===e.nodeType}function ue(e){const t=ae();if(t&&t.UTSJSONObject&&e instanceof t.UTSJSONObject){const n={};return t.UTSJSONObject.keys(e).forEach((t=>{n[t]=e[t]})),F(n)}if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),F(t)}if(v(e))return W(e);if(p(e)){const t={};for(let n=0;n{e[n]&&(t+=n+" ")}));else if(e instanceof Map)e.forEach(((e,n)=>{e&&(t+=n+" ")}));else if(p(e))for(let o=0;o{e=e||(e=>e.tagName.startsWith("UNI-"));const t=HTMLElement.prototype,n=t.setAttribute;t.setAttribute=function(t,o){if(t.startsWith("data-")&&e(this)){(this.__uniDataset||(this.__uniDataset={}))[de(t)]=o}n.call(this,t,o)};const o=t.removeAttribute;t.removeAttribute=function(t){this.__uniDataset&&t.startsWith("data-")&&e(this)&&delete this.__uniDataset[de(t)],o.call(this,t)}}));function he(e){return c({},e.dataset,e.__uniDataset)}const ge=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function me(e){return{passive:e}}function ve(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:he(e),offsetTop:n,offsetLeft:o}}function ye(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function be(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=ye(e[n])}catch(o){t[n]=e[n]}})),t}const _e=/\+/g;function we(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe.apply(this,arguments);r=o(i,t)};return i.cancel=function(){n(r)},i}class Se{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach((e=>{this.on(e,t[e])}))}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.filter((e=>"once"!==e.type))}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let o=0;ot(e))),Oe=function(){};Oe.prototype={_id:1,on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o=0;i--)if(o[i].fn===t||o[i].fn._===t||o[i]._id===t){o.splice(i,1);break}r=o}return r.length?n[e]=r:delete n[e],this}};var $e=Oe;const Le={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function Ae(e,t,n){if(v(t)&&t.startsWith("@")){let r=e[t.replace("@","")]||t;switch(n){case"titleColor":r="black"===r?"#000000":"#ffffff";break;case"borderStyle":r=(o=r)&&o in Le?Le[o]:o}return r}var o;return t}function Pe(e,t={},n="light"){const o=t[n],r={};return void 0!==o&&e?(Object.keys(e).forEach((i=>{const s=e[i];r[i]=S(s)?Pe(s,t,n):p(s)?s.map((e=>S(e)?Pe(e,t,n):Ae(o,e))):Ae(o,s,i)})),r):e} -/** -* @dcloudio/uni-h5-vue v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Be,Re;class je{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!e&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Be;try{return Be=this,e()}finally{Be=t}}}on(){Be=this}off(){Be=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ze()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ve,t=Re;try{return Ve=!0,Re=this,this._runnings++,Me(this),this.fn()}finally{Fe(this),this._runnings--,Re=t,Ve=e}}stop(){var e;this.active&&(Me(this),Fe(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Me(e){e._trackId++,e._depsLength=0}function Fe(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Ze=new WeakMap,Qe=Symbol(""),et=Symbol("");function tt(e,t,n){if(Ve&&Re){let t=Ze.get(e);t||Ze.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Ge((()=>t.delete(n)))),Ye(Re,o)}}function nt(e,t,n,o,r,i){const s=Ze.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&p(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":p(e)?C(n)&&a.push(s.get("length")):(a.push(s.get(Qe)),h(e)&&a.push(s.get(et)));break;case"delete":p(e)||(a.push(s.get(Qe)),h(e)&&a.push(s.get(et)));break;case"set":h(e)&&a.push(s.get(Qe))}Ue();for(const l of a)l&&Je(l,4);Xe()}const ot=n("__proto__,__v_isRef,__isVue"),rt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),it=st();function st(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Yt(this);for(let t=0,r=this.length;t{e[t]=function(...e){qe(),Ue();const n=Yt(this)[t].apply(this,e);return Xe(),ze(),n}})),e}function at(e){const t=Yt(this);return tt(t,0,e),t.hasOwnProperty(e)}class lt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?Mt:Nt:r?It:jt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!o){if(i&&d(it,t))return Reflect.get(it,t,n);if("hasOwnProperty"===t)return at}const s=Reflect.get(e,t,n);return(y(t)?rt.has(t):ot(t))?s:(o||tt(e,0,t),r?s:tn(s)?i&&C(t)?s:s.value:b(s)?o?Dt(s):Ht(s):s)}}class ct extends lt{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=zt(r);if(Ut(n)||zt(n)||(r=Yt(r),n=Yt(n)),!p(e)&&tn(r)&&!tn(n))return!t&&(r.value=n,!0)}const i=p(e)&&C(t)?Number(t)e,gt=e=>Reflect.getPrototypeOf(e);function mt(e,t,n=!1,o=!1){const r=Yt(e=e.__v_raw),i=Yt(t);n||(B(t,i)&&tt(r,0,t),tt(r,0,i));const{has:s}=gt(r),a=o?ht:n?Gt:Jt;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function vt(e,t=!1){const n=this.__v_raw,o=Yt(n),r=Yt(e);return t||(B(e,r)&&tt(o,0,e),tt(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function yt(e,t=!1){return e=e.__v_raw,!t&&tt(Yt(e),0,Qe),Reflect.get(e,"size",e)}function bt(e){e=Yt(e);const t=Yt(this);return gt(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function _t(e,t){t=Yt(t);const n=Yt(this),{has:o,get:r}=gt(n);let i=o.call(n,e);i||(e=Yt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?B(t,s)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function wt(e){const t=Yt(this),{has:n,get:o}=gt(t);let r=n.call(t,e);r||(e=Yt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&nt(t,"delete",e,void 0),i}function xt(){const e=Yt(this),t=0!==e.size,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function St(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Yt(i),a=t?ht:e?Gt:Jt;return!e&&tt(s,0,Qe),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function Ct(e,t,n){return function(...o){const r=this.__v_raw,i=Yt(r),s=h(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?ht:t?Gt:Jt;return!t&&tt(i,0,l?et:Qe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function kt(){const e={get(e){return mt(this,e)},get size(){return yt(this)},has:vt,add:bt,set:_t,delete:wt,clear:xt,forEach:St(!1,!1)},t={get(e){return mt(this,e,!1,!0)},get size(){return yt(this)},has:vt,add:bt,set:_t,delete:wt,clear:xt,forEach:St(!1,!0)},n={get(e){return mt(this,e,!0)},get size(){return yt(this,!0)},has(e){return vt.call(this,e,!0)},add:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("clear"),forEach:St(!0,!1)},o={get(e){return mt(this,e,!0,!0)},get size(){return yt(this,!0)},has(e){return vt.call(this,e,!0)},add:Tt("add"),set:Tt("set"),delete:Tt("delete"),clear:Tt("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Ct(r,!1,!1),n[r]=Ct(r,!0,!1),t[r]=Ct(r,!1,!0),o[r]=Ct(r,!0,!0)})),[e,n,t,o]}const[Et,Ot,$t,Lt]=kt();function At(e,t){const n=t?e?Lt:$t:e?Ot:Et;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(d(n,o)&&o in t?n:t,o,r)}const Pt={get:At(!1,!1)},Bt={get:At(!1,!0)},Rt={get:At(!0,!1)},jt=new WeakMap,It=new WeakMap,Nt=new WeakMap,Mt=new WeakMap;function Ft(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function Ht(e){return zt(e)?e:Wt(e,!1,ft,Pt,jt)}function Vt(e){return Wt(e,!1,pt,Bt,It)}function Dt(e){return Wt(e,!0,dt,Rt,Nt)}function Wt(e,t,n,o,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ft(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function qt(e){return zt(e)?qt(e.__v_raw):!(!e||!e.__v_isReactive)}function zt(e){return!(!e||!e.__v_isReadonly)}function Ut(e){return!(!e||!e.__v_isShallow)}function Xt(e){return qt(e)||zt(e)}function Yt(e){const t=e&&e.__v_raw;return t?Yt(t):e}function Kt(e){return Object.isExtensible(e)&&j(e,"__v_skip",!0),e}const Jt=e=>b(e)?Ht(e):e,Gt=e=>b(e)?Dt(e):e;class Zt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ne((()=>e(this._value)),(()=>en(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Yt(this);return e._cacheable&&!e.effect.dirty||!B(e._value,e._value=e.effect.run())||en(e,4),Qt(e),e.effect._dirtyLevel>=2&&en(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Qt(e){var t;Ve&&Re&&(e=Yt(e),Ye(Re,null!=(t=e.dep)?t:e.dep=Ge((()=>e.dep=void 0),e instanceof Zt?e:void 0)))}function en(e,t=4,n){const o=(e=Yt(e)).dep;o&&Je(o,t)}function tn(e){return!(!e||!0!==e.__v_isRef)}function nn(e){return on(e,!1)}function on(e,t){return tn(e)?e:new rn(e,t)}class rn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Yt(e),this._value=t?e:Jt(e)}get value(){return Qt(this),this._value}set value(e){const t=this.__v_isShallow||Ut(e)||zt(e);e=t?e:Yt(e),B(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Jt(e),en(this,4))}}function sn(e){return tn(e)?e.value:e}const an={get:(e,t,n)=>sn(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return tn(r)&&!tn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ln(e){return qt(e)?e:new Proxy(e,an)}function cn(e,t,n,o){try{return o?e(...o):e()}catch(r){fn(r,t,n)}}function un(e,t,n,o){if(m(e)){const r=cn(e,t,n,o);return r&&_(r)&&r.catch((e=>{fn(e,t,n)})),r}const r=[];for(let i=0;i>>1,r=gn[o],i=En(r);iEn(e)-En(t)));if(vn.length=0,yn)return void yn.push(...e);for(yn=e,bn=0;bnnull==e.id?1/0:e.id,On=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $n(e){hn=!1,pn=!0,gn.sort(On);try{for(mn=0;mnv(e)?e.trim():e))),t&&(i=n.map(I))}let l,c=r[l=P(t)]||r[l=P(O(t))];!c&&s&&(c=r[l=P(L(t))]),c&&un(c,e,6,An(e,c,i));const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,un(u,e,6,An(e,u,i))}}function An(e,t,n){if(1!==n.length)return n;if(m(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&d(o,"type")&&d(o,"timeStamp")&&d(o,"target")&&d(o,"currentTarget")&&d(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function Pn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!m(e)){const o=e=>{const n=Pn(e,t,!0);n&&(a=!0,c(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(p(i)?i.forEach((e=>s[e]=null)):c(s,i),b(e)&&o.set(e,s),s):(b(e)&&o.set(e,null),null)}function Bn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,L(t))||d(e,t))}let Rn=null,jn=null;function In(e){const t=Rn;return Rn=e,jn=e&&e.type.__scopeId||null,t}function Nn(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&qr(-1);const r=In(t);let i;try{i=e(...n)}finally{In(r),o._d&&qr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Mn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:c,emit:u,render:f,renderCache:d,data:p,setupState:h,ctx:g,inheritAttrs:m}=e;let v,y;const b=In(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=ri(f.call(t,e,d,i,h,p,g)),y=c}else{const e=t;0,v=ri(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),y=t.props?c:Fn(c)}}catch(w){Hr.length=0,fn(w,e,1),v=ei(Mr)}let _=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=_;e.length&&7&t&&(s&&e.some(l)&&(y=Hn(y,s)),_=ti(_,y))}return n.dirs&&(_=ti(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,In(b),v}const Fn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Hn=(e,t)=>{const n={};for(const o in e)l(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Vn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;const Yn=Symbol.for("v-scx");function Kn(e,t){return Zn(e,null,t)}const Jn={};function Gn(e,t,n){return Zn(e,t,n)}function Zn(e,t,{immediate:n,deep:r,flush:s,once:a,onTrack:l,onTrigger:c}=o){if(t&&a){const e=t;t=(...t)=>{e(...t),k()}}const f=fi,d=e=>!0===r?e:to(e,!1===r?1:void 0);let h,g,v=!1,y=!1;if(tn(e)?(h=()=>e.value,v=Ut(e)):qt(e)?(h=()=>d(e),v=!0):p(e)?(y=!0,v=e.some((e=>qt(e)||Ut(e))),h=()=>e.map((e=>tn(e)?e.value:qt(e)?d(e):m(e)?cn(e,f,2):void 0))):h=m(e)?t?()=>cn(e,f,2):()=>(g&&g(),un(e,f,3,[_])):i,t&&r){const e=h;h=()=>to(e())}let b,_=e=>{g=C.onStop=()=>{cn(e,f,4),g=C.onStop=void 0}};if(yi){if(_=i,t?n&&un(t,f,3,[h(),y?[]:void 0,_]):h(),"sync"!==s)return i;{const e=mr(Yn);b=e.__watcherHandles||(e.__watcherHandles=[])}}let w=y?new Array(e.length).fill(Jn):Jn;const x=()=>{if(C.active&&C.dirty)if(t){const e=C.run();(r||v||(y?e.some(((e,t)=>B(e,w[t]))):B(e,w)))&&(g&&g(),un(t,f,3,[e,w===Jn?void 0:y&&w[0]===Jn?[]:w,_]),w=e)}else C.run()};let S;x.allowRecurse=!!t,"sync"===s?S=x:"post"===s?S=()=>Lr(x,f&&f.suspense):(x.pre=!0,f&&(x.id=f.uid),S=()=>Sn(x));const C=new Ne(h,i,S),T=Be,k=()=>{C.stop(),T&&u(T.effects,C)};return t?n?x():w=C.run():"post"===s?Lr(C.run.bind(C),f&&f.suspense):C.run(),b&&b.push(k),k}function Qn(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?eo(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const s=gi(this),a=Zn(r,i.bind(o),n);return s(),a}function eo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),tn(e))to(e.value,t,n,o);else if(p(e))for(let r=0;r{to(e,t,n,o)}));else if(S(e))for(const r in e)to(e[r],t,n,o);return e}function no(e,t){if(null===Rn)return e;const n=wi(Rn)||Rn.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0})),Fo((()=>{e.isUnmounting=!0})),e}();return()=>{const r=t.default&&go(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1)for(const e of r)if(e.type!==Mr){i=e;break}const s=Yt(e),{mode:a}=s;if(o.isLeaving)return fo(i);const l=po(i);if(!l)return fo(i);const c=uo(l,s,o,n);ho(l,c);const u=n.subTree,f=u&&po(u);if(f&&f.type!==Mr&&!Kr(l,f)){const e=uo(f,s,o,n);if(ho(f,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},fo(i);"in-out"===a&&l.type!==Mr&&(e.delayLeave=(e,t,n)=>{co(o,f)[String(f.key)]=f,e[ro]=()=>{t(),e[ro]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return i}}};function co(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function uo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=co(n,e),x=(e,t)=>{e&&un(e,o,9,t)},S=(e,t)=>{const n=t[1];x(e,t),p(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[ro]&&t[ro](!0);const i=w[_];i&&Kr(e,i)&&i.el[ro]&&i.el[ro](),x(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||l,o=y||c,i=b||u}let s=!1;const a=e[io]=t=>{s||(s=!0,x(t?i:o,[e]),C.delayedLeave&&C.delayedLeave(),e[io]=void 0)};t?S(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[io]&&t[io](!0),n.isUnmounting)return o();x(f,[t]);let i=!1;const s=t[ro]=n=>{i||(i=!0,o(),x(n?g:h,[t]),t[ro]=void 0,w[r]===e&&delete w[r])};w[r]=e,d?S(d,[t,s]):s()},clone:e=>uo(e,t,n,o)};return C}function fo(e){if(_o(e))return(e=ti(e)).children=null,e}function po(e){return _o(e)?e.children?e.children[0]:void 0:e}function ho(e,t){6&e.shapeFlag&&e.component?ho(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function go(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;ic({name:e.name},t,{setup:e}))():e}const vo=e=>!!e.type.__asyncLoader -/*! #__NO_SIDE_EFFECTS__ */;function yo(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,u=0;const f=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((u++,c=null,f()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return mo({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=fi;if(l)return()=>bo(l,e);const t=t=>{c=null,fn(t,e,13,!o)};if(s&&e.suspense||yi)return f().then((t=>()=>bo(t,e))).catch((e=>(t(e),()=>o?ei(o,{error:e}):null)));const a=nn(!1),u=nn(),d=nn(!!r);return r&&setTimeout((()=>{d.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),f().then((()=>{a.value=!0,e.parent&&_o(e.parent.vnode)&&(e.parent.effect.dirty=!0,Sn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>a.value&&l?bo(l,e):u.value&&o?ei(o,{error:u.value}):n&&!d.value?ei(n):void 0}})}function bo(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=ei(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const _o=e=>e.type.__isKeepAlive;class wo{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,r=t.get(e);if(r)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return r}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const xo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=di(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=e.cache||new wo(e.max);r.pruneCacheEntry=s;let i=null;function s(t){var o;!i||!Kr(t,i)||"key"===e.matchBy&&t.key!==i.key?($o(o=t),u(o,n,a,!0)):i&&$o(i)}const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=o,d=f("div");function p(t){r.forEach(((n,o)=>{const i=Ao(n,e.matchBy);!i||t&&t(i)||(r.delete(o),s(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,R(i.ba),i.isDeactivated=e}c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Lr((()=>{i.isDeactivated=!1,i.a&&R(i.a);const t=e.props&&e.props.onVnodeMounted;t&&li(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;t.bda&&Po(t.bda),c(e,d,null,1,a),Lr((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&R(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&li(n,t.parent,e),t.isDeactivated=!0}),a)},Gn((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>Co(e,t))),t&&p((e=>!Co(t,e)))}),{flush:"post",deep:!0});let h=null;const g=()=>{null!=h&&r.set(h,Lo(n.subTree))};return Io(g),Mo(g),Fo((()=>{r.forEach(((t,o)=>{r.delete(o),s(t);const{subTree:i,suspense:a}=n,l=Lo(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&R(l.component.bda),$o(l);const e=l.component.da;e&&Lr(e,a)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Yr(o)||!(4&o.shapeFlag)&&!Xn(o.type))return i=null,o;let s=Lo(o);const a=s.type,l=Ao(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Co(c,l))||u&&l&&Co(u,l))return i=s,o;const f=null==s.key?a:s.key,d=r.get(f);return s.el&&(s=ti(s),Xn(o.type)&&(o.ssContent=s)),h=f,d&&(s.el=d.el,s.component=d.component,s.transition&&ho(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,i=s,Xn(o.type)?o:s}}},So=xo;function Co(e,t){return p(e)?e.some((e=>Co(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===x(e)&&e.test(t)}function To(e,t){Eo(e,"a",t)}function ko(e,t){Eo(e,"da",t)}function Eo(e,t,n=fi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,Bo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)_o(e.parent.vnode)&&Oo(o,t,n,e),e=e.parent}}function Oo(e,t,n,o){const r=Bo(t,e,o,!0);Ho((()=>{u(o[t],r)}),n)}function $o(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Lo(e){return Xn(e.type)?e.ssContent:e}function Ao(e,t){if("name"===t){const t=e.type;return xi(vo(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Po(e){for(let t=0;t-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return["onLoad","onShow"].indexOf(e)>-1}(e))){const o=n.proxy;un(t.bind(o),n,e,"onLoad"===e?[o.$page.options]:[])}}const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;qe();const r=gi(n),i=un(t,n,e,o);return r(),ze(),i});return o?i.unshift(s):i.push(s),s}var r}const Ro=e=>(t,n=fi)=>(!yi||"sp"===e)&&Bo(e,((...e)=>t(...e)),n),jo=Ro("bm"),Io=Ro("m"),No=Ro("bu"),Mo=Ro("u"),Fo=Ro("bum"),Ho=Ro("um"),Vo=Ro("sp"),Do=Ro("rtg"),Wo=Ro("rtc");function qo(e,t=fi){Bo("ec",e,t)}function zo(e,t,n,o){let r;const i=n&&n[o];if(p(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o!Yr(e)||e.type!==Mr&&!(e.type===Ir&&!Xo(e.children))))?e:null}const Yo=e=>{if(!e)return null;if(vi(e)){return wi(e)||e.proxy}return Yo(e.parent)},Ko=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yo(e.parent),$root:e=>Yo(e.root),$emit:e=>e.emit,$options:e=>or(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,Sn(e.update)})(e)),$nextTick:e=>e.n||(e.n=xn.bind(e.proxy)),$watch:e=>Qn.bind(e)}),Jo=(e,t)=>e!==o&&!e.__isScriptSetup&&d(e,t),Go={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Jo(r,t))return a[t]=1,r[t];if(i!==o&&d(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&d(u,t))return a[t]=3,s[t];if(n!==o&&d(n,t))return a[t]=4,n[t];Qo&&(a[t]=0)}}const f=Ko[t];let p,h;return f?("$attrs"===t&&tt(e,0,t),f(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o&&d(n,t)?(a[t]=4,n[t]):(h=c.config.globalProperties,d(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Jo(i,t)?(i[t]=n,!0):r!==o&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let l;return!!n[a]||e!==o&&d(e,a)||Jo(t,a)||(l=s[0])&&d(l,a)||d(r,a)||d(Ko,a)||d(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zo(e){return p(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Qo=!0;function er(e){const t=or(e),n=e.proxy,o=e.ctx;Qo=!1,t.beforeCreate&&tr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:a,watch:l,provide:c,inject:u,created:f,beforeMount:d,mounted:h,beforeUpdate:g,updated:v,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:S,unmounted:C,render:T,renderTracked:k,renderTriggered:E,errorCaptured:O,serverPrefetch:$,expose:L,inheritAttrs:A,components:P,directives:B,filters:R}=t;if(u&&function(e,t,n=i){p(e)&&(e=ar(e));for(const o in e){const n=e[o];let r;r=b(n)?"default"in n?mr(n.from||o,n.default,!0):mr(n.from||o):mr(n),tn(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=Ht(t))}if(Qo=!0,s)for(const p in s){const e=s[p],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,a=Si({get:t,set:r});Object.defineProperty(o,p,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const i in l)nr(l[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{gr(t,e[t])}))}function j(e,t){p(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&tr(f,e,"c"),j(jo,d),j(Io,h),j(No,g),j(Mo,v),j(To,y),j(ko,_),j(qo,O),j(Wo,k),j(Do,E),j(Fo,x),j(Ho,C),j(Vo,$),p(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===i&&(e.render=T),null!=A&&(e.inheritAttrs=A),P&&(e.components=P),B&&(e.directives=B);const I=e.appContext.config.globalProperties.$applyOptions;I&&I(t,e,n)}function tr(e,t,n){un(p(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function nr(e,t,n,o){const r=o.includes(".")?eo(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&Gn(r,n)}else if(m(e))Gn(r,e.bind(n));else if(b(e))if(p(e))e.forEach((e=>nr(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&Gn(r,o,e)}}function or(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>rr(l,e,s,!0))),rr(l,t,s)):l=t,b(t)&&i.set(t,l),l}function rr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&rr(e,i,n,!0),r&&r.forEach((t=>rr(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=ir[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const ir={data:sr,props:ur,emits:ur,methods:cr,computed:cr,beforeCreate:lr,created:lr,beforeMount:lr,mounted:lr,beforeUpdate:lr,updated:lr,beforeDestroy:lr,beforeUnmount:lr,destroyed:lr,unmounted:lr,activated:lr,deactivated:lr,errorCaptured:lr,serverPrefetch:lr,components:cr,directives:cr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=lr(e[o],t[o]);return n},provide:sr,inject:function(e,t){return cr(ar(e),ar(t))}};function sr(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function ar(e){if(p(e)){const t={};for(let n=0;n(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(a,...t)):m(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const u=ei(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c),s=!0,a._container=i,i.__vue_app__=a,a._instance=u.component,wi(u.component)||u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){const t=hr;hr=a;try{return e()}finally{hr=t}}};return a}}let hr=null;function gr(e,t){if(fi){let n=fi.provides;const o=fi.parent&&fi.parent.provides;o===n&&(n=fi.provides=Object.create(o)),n[e]=t,"app"===fi.type.mpType&&fi.appContext.app.provide(e,t)}else;}function mr(e,t,n=!1){const o=fi||Rn;if(o||hr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:hr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function vr(e,t,n,r){const[i,s]=e.propsOptions;let a,l=!1;if(t)for(let o in t){if(T(o))continue;const c=t[o];let u;i&&d(i,u=O(o))?s&&s.includes(u)?(a||(a={}))[u]=c:n[u]=c:Bn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,l=!0)}if(s){const t=Yt(n),r=a||o;for(let o=0;o{f=!0;const[n,o]=br(e,t,!0);c(l,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!f)return b(e)&&i.set(e,r),r;if(p(a))for(let r=0;r-1,n[1]=o<0||t-1||d(n,"default"))&&u.push(e)}}}const h=[l,u];return b(e)&&i.set(e,h),h}function _r(e){return"$"!==e[0]&&!T(e)}function wr(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function xr(e,t){return wr(e)===wr(t)}function Sr(e,t){return p(t)?t.findIndex((t=>xr(t,e))):m(t)&&xr(t,e)?0:-1}const Cr=e=>"_"===e[0]||"$stable"===e,Tr=e=>p(e)?e.map(ri):[ri(e)],kr=(e,t,n)=>{if(t._n)return t;const o=Nn(((...e)=>Tr(t(...e))),n);return o._c=!1,o},Er=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Cr(r))continue;const n=e[r];if(m(n))t[r]=kr(0,n,o);else if(null!=n){const e=Tr(n);t[r]=()=>e}}},Or=(e,t)=>{const n=Tr(t);e.slots.default=()=>n};function $r(e,t,n,r,i=!1){if(p(e))return void e.forEach(((e,o)=>$r(e,t&&(p(t)?t[o]:t),n,r,i)));if(vo(r)&&!i)return;const s=4&r.shapeFlag?wi(r.component)||r.component.proxy:r.el,a=i?null:s,{i:l,r:c}=e,f=t&&t.r,h=l.refs===o?l.refs={}:l.refs,g=l.setupState;if(null!=f&&f!==c&&(v(f)?(h[f]=null,d(g,f)&&(g[f]=null)):tn(f)&&(f.value=null)),m(c))cn(c,l,12,[a,h]);else{const t=v(c),o=tn(c);if(t||o){const r=()=>{if(e.f){const n=t?d(g,c)?g[c]:h[c]:c.value;i?p(n)&&u(n,s):p(n)?n.includes(s)||n.push(s):t?(h[c]=[s],d(g,c)&&(g[c]=h[c])):(c.value=[s],e.k&&(h[e.k]=c.value))}else t?(h[c]=a,d(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(h[e.k]=a))};a?(r.id=-1,Lr(r,n)):r()}}}const Lr=function(e,t){var n;t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?vn.push(...n):yn&&yn.includes(n,n.allowRecurse?bn+1:bn)||vn.push(n),Cn())};function Ar(e){return function(e,t){M().__VUE__=!0;const{insert:n,remove:s,patchProp:a,forcePatchProp:l,createElement:u,createText:f,createComment:p,setText:h,setElementText:g,parentNode:m,nextSibling:v,setScopeId:y=i,insertStaticContent:b}=e,w=(e,t,n,o=null,r=null,i=null,s,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Kr(e,t)&&(o=te(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:f}=t;switch(c){case Nr:x(e,t,n,o);break;case Mr:S(e,t,n,o);break;case Fr:null==e&&C(t,n,o,s);break;case Ir:H(e,t,n,o,r,i,s,a,l);break;default:1&f?$(e,t,n,o,r,i,s,a,l):6&f?V(e,t,n,o,r,i,s,a,l):(64&f||128&f)&&c.process(e,t,n,o,r,i,s,a,l,re)}null!=u&&r&&$r(u,e&&e.ref,i,t||e,!t)},x=(e,t,o,r)=>{if(null==e)n(t.el=f(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=p(t.children||""),o,r):t.el=e.el},C=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},k=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=v(e),n(e,o,r),e=i;n(t,o,r)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),s(e),e=n;s(t)},$=(e,t,n,o,r,i,s,a,l)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?A(t,n,o,r,i,s,a,l):I(e,t,r,i,s,a,l)},A=(e,t,o,r,i,s,l,c)=>{let f,d;const{props:p,shapeFlag:h,transition:m,dirs:v}=e;if(f=e.el=u(e.type,s,p&&p.is,p),8&h?g(f,e.children):16&h&&B(e.children,f,null,r,i,Pr(e,s),l,c),v&&oo(e,null,r,"created"),P(f,e,e.scopeId,l,r),p){for(const t in p)"value"===t||T(t)||a(f,t,null,p[t],s,e.children,r,i,ee);"value"in p&&a(f,"value",null,p.value,s),(d=p.onVnodeBeforeMount)&&li(d,r,e)}Object.defineProperty(f,"__vueParentComponent",{value:r,enumerable:!1}),v&&oo(e,null,r,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);y&&m.beforeEnter(f),n(f,t,o),((d=p&&p.onVnodeMounted)||y||v)&&Lr((()=>{d&&li(d,r,e),y&&m.enter(f),v&&oo(e,null,r,"mounted")}),i)},P=(e,t,n,o,r)=>{if(n&&y(e,n),o)for(let i=0;i{for(let c=l;c{const u=t.el=e.el;let{patchFlag:f,dynamicChildren:d,dirs:p}=t;f|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let v;if(n&&Br(n,!1),(v=m.onVnodeBeforeUpdate)&&li(v,n,t,e),p&&oo(t,e,n,"beforeUpdate"),n&&Br(n,!0),d?N(e.dynamicChildren,d,u,n,r,Pr(t,i),s):c||U(e,t,u,null,n,r,Pr(t,i),s,!1),f>0){if(16&f)F(u,t,h,m,n,r,i);else if(2&f&&h.class!==m.class&&a(u,"class",null,m.class,i),4&f&&a(u,"style",h.style,m.style,i),8&f){const o=t.dynamicProps;for(let t=0;t{v&&li(v,n,t,e),p&&oo(t,e,n,"updated")}),r)},N=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==r){if(n!==o)for(const o in n)T(o)||o in r||a(e,o,n[o],null,c,t.children,i,s,ee);for(const o in r){if(T(o))continue;const u=r[o],f=n[o];(u!==f&&"value"!==o||l&&l(e,o))&&a(e,o,f,u,c,t.children,i,s,ee)}"value"in r&&a(e,"value",n.value,r.value,c)}},H=(e,t,o,r,i,s,a,l,c)=>{const u=t.el=e?e.el:f(""),d=t.anchor=e?e.anchor:f("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(u,o,r),n(d,o,r),B(t.children||[],o,d,i,s,a,l,c)):p>0&&64&p&&h&&e.dynamicChildren?(N(e.dynamicChildren,h,o,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Rr(e,t,!0)):U(e,t,o,d,i,s,a,l,c)},V=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):D(t,n,o,r,i,s,l):W(e,t,l)},D=(e,t,n,r,i,s,a)=>{const l=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ci,s={uid:ui++,vnode:e,type:r,parent:t,appContext:i,get renderer(){return"app"===r.mpType?"app":this.$pageInstance&&this.$pageInstance==s?"page":"component"},root:null,next:null,subTree:null,effect:null,update:null,scope:new je(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:br(r,i),emitsOptions:Pn(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};s.ctx={_:s},s.root=t?t.root:s,s.emit=Ln.bind(null,s),s.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(s);return s}(e,r,i);if(_o(e)&&(l.ctx.renderer=re),function(e,t=!1){t&&hi(t);const{props:n,children:o}=e.vnode,r=vi(e);(function(e,t,n,o=!1){const r={},i={};j(i,Jr,1),e.propsDefaults=Object.create(null),vr(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Vt(r):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Yt(t),j(t,"_",n)):Er(t,e.slots={})}else e.slots={},t&&Or(e,t);j(e.slots,Jr,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Kt(new Proxy(e.ctx,Go));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(tt(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,r=gi(e);qe();const i=cn(o,e,0,[e.props,n]);if(ze(),r(),_(i)){if(i.then(mi,mi),t)return i.then((n=>{bi(e,n,t)})).catch((t=>{fn(t,e,0)}));e.asyncDep=i}else bi(e,i,t)}else _i(e,t)}(e,t):void 0;t&&hi(!1)}(l),l.asyncDep){if(i&&i.registerDep(l,q),!e.el){const e=l.subTree=ei(Mr);S(null,e,t,n)}}else q(l,e,t,n,i,s,a)},W=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||Vn(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?Vn(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tmn&&gn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},q=(e,t,n,o,r,s,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:c}=e;{const n=jr(e);if(n)return t&&(t.el=c.el,z(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,f=t;Br(e,!1),t?(t.el=c.el,z(e,t,a)):t=c,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&li(u,i,t,c),Br(e,!0);const d=Mn(e),p=e.subTree;e.subTree=d,w(p,d,m(p.el),te(p),e,r,s),t.el=d.el,null===f&&function({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),o&&Lr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Lr((()=>li(u,i,t,c)),r)}else{let i;const{el:a,props:l}=t,{bm:c,m:u,parent:f}=e,d=vo(t);if(Br(e,!1),c&&R(c),!d&&(i=l&&l.onVnodeBeforeMount)&&li(i,f,t),Br(e,!0),a&&se){const n=()=>{e.subTree=Mn(e),se(a,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Mn(e);w(null,i,n,o,e,r,s),t.el=i.el}if(u&&Lr(u,r),!d&&(i=l&&l.onVnodeMounted)){const e=t;Lr((()=>li(i,f,e)),r)}(256&t.shapeFlag||f&&vo(f.vnode)&&256&f.vnode.shapeFlag)&&(e.ba&&Po(e.ba),e.a&&Lr(e.a,r)),e.isMounted=!0,t=n=o=null}},c=e.effect=new Ne(l,i,(()=>Sn(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Br(e,!0),u()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Yt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;vr(e,t,r,i)&&(c=!0);for(const i in a)t&&(d(t,i)||(o=L(i))!==i&&d(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=yr(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:r,slots:i}=e;let s=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(c(i,t),n||1!==e||delete i._):(s=!t.$stable,Er(t,i)),a=t}else t&&(Or(e,t),a={default:1});if(s)for(const o in i)Cr(o)||null!=a[o]||delete i[o]})(e,t.children,n),qe(),Tn(e),ze()},U=(e,t,n,o,r,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:p}=t;if(d>0){if(128&d)return void Y(c,f,n,o,r,i,s,a,l);if(256&d)return void X(c,f,n,o,r,i,s,a,l)}8&p?(16&u&&ee(c,r,i),f!==c&&g(n,f)):16&u?16&p?Y(c,f,n,o,r,i,s,a,l):ee(c,r,i,!0):(8&u&&g(n,""),16&p&&B(f,n,o,r,i,s,a,l))},X=(e,t,n,o,i,s,a,l,c)=>{t=t||r;const u=(e=e||r).length,f=t.length,d=Math.min(u,f);let p;for(p=0;pf?ee(e,i,s,!0,!1,d):B(t,n,o,i,s,a,l,c,d)},Y=(e,t,n,o,i,s,a,l,c)=>{let u=0;const f=t.length;let d=e.length-1,p=f-1;for(;u<=d&&u<=p;){const o=e[u],r=t[u]=c?ii(t[u]):ri(t[u]);if(!Kr(o,r))break;w(o,r,n,null,i,s,a,l,c),u++}for(;u<=d&&u<=p;){const o=e[d],r=t[p]=c?ii(t[p]):ri(t[p]);if(!Kr(o,r))break;w(o,r,n,null,i,s,a,l,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=ep)for(;u<=d;)J(e[u],i,s,!0),u++;else{const h=u,g=u,m=new Map;for(u=g;u<=p;u++){const e=t[u]=c?ii(t[u]):ri(t[u]);null!=e.key&&m.set(e.key,u)}let v,y=0;const b=p-g+1;let _=!1,x=0;const S=new Array(b);for(u=0;u=b){J(o,i,s,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=p;v++)if(0===S[v-g]&&Kr(o,t[v])){r=v;break}void 0===r?J(o,i,s,!0):(S[r-g]=u+1,r>=x?x=r:_=!0,w(o,t[r],n,null,i,s,a,l,c),y++)}const C=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):r;for(v=C.length-1,u=b-1;u>=0;u--){const e=g+u,r=t[e],d=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void a.move(e,t,o,re);if(a===Ir){n(s,t,o);for(let e=0;el.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o)},J=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:f,dirs:d}=e;if(null!=a&&$r(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&d,h=!vo(e);let g;if(h&&(g=s&&s.onVnodeBeforeUnmount)&&li(g,t,e),6&u)Q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);p&&oo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,re,o):c&&(i!==Ir||f>0&&64&f)?ee(c,t,n,!1,!0):(i===Ir&&384&f||!r&&16&u)&&ee(l,t,n),o&&G(e)}(h&&(g=s&&s.onVnodeUnmounted)||p)&&Lr((()=>{g&&li(g,t,e),p&&oo(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Ir)return void Z(n,o);if(t===Fr)return void E(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},Z=(e,t)=>{let n;for(;e!==t;)n=v(e),s(e),e=n;s(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&R(o),r.stop(),i&&(i.active=!1,J(s,e,t,n)),a&&Lr(a,t),Lr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():v(e.anchor||e.el);let ne=!1;const oe=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):w(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,Tn(),kn(),ne=!1),t._vnode=e},re={p:w,um:J,m:K,r:G,mt:D,mc:B,pc:U,pbc:N,n:te,o:e};let ie,se;t&&([ie,se]=t(re));return{render:oe,hydrate:ie,createApp:pr(oe,ie)}}(e)}function Pr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Br({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rr(e,t,n=!1){const o=e.children,r=t.children;if(p(o)&&p(r))for(let i=0;i0?Vr||r:null,Hr.pop(),Vr=Hr[Hr.length-1]||null,Wr>0&&Vr&&Vr.push(e),e}function Ur(e,t,n,o,r,i){return zr(Qr(e,t,n,o,r,i,!0))}function Xr(e,t,n,o,r){return zr(ei(e,t,n,o,r,!0))}function Yr(e){return!!e&&!0===e.__v_isVNode}function Kr(e,t){return e.type===t.type&&e.key===t.key}const Jr="__vInternal",Gr=({key:e})=>null!=e?e:null,Zr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||tn(e)||m(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function Qr(e,t=null,n=null,o=0,r=null,i=(e===Ir?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gr(t),ref:t&&Zr(t),scopeId:jn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return a?(si(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),Wr>0&&!s&&Vr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Vr.push(l),l}const ei=function(e,t=null,n=null,o=0,r=null,i=!1){e&&e!==Wn||(e=Mr);if(Yr(e)){const o=ti(e,t,!0);return n&&si(o,n),Wr>0&&!i&&Vr&&(6&o.shapeFlag?Vr[Vr.indexOf(e)]=o:Vr.push(o)),o.patchFlag|=-2,o}s=e,m(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Xt(e)||Jr in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=fe(e)),b(n)&&(Xt(n)&&!p(n)&&(n=c({},n)),t.style=ue(n))}const a=v(e)?1:Xn(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:m(e)?2:0;return Qr(e,t,n,o,r,a,i,!0)};function ti(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?ai(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gr(a),ref:t&&t.ref?n&&r?p(r)?r.concat(Zr(t)):[r,Zr(t)]:Zr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ir?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ti(e.ssContent),ssFallback:e.ssFallback&&ti(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ni(e=" ",t=0){return ei(Nr,null,e,t)}function oi(e="",t=!1){return t?(Dr(),Xr(Mr,null,e)):ei(Mr,null,e)}function ri(e){return null==e||"boolean"==typeof e?ei(Mr):p(e)?ei(Ir,null,e.slice()):"object"==typeof e?ii(e):ei(Nr,null,String(e))}function ii(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ti(e)}function si(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),si(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Jr in t?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else m(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ni(t)]):n=8);e.children=t,e.shapeFlag|=n}function ai(...e){const t={};for(let n=0;nfi||Rn;let pi,hi;{const e=M(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};pi=t("__VUE_INSTANCE_SETTERS__",(e=>fi=e)),hi=t("__VUE_SSR_SETTERS__",(e=>yi=e))}const gi=e=>{const t=fi;return pi(e),e.scope.on(),()=>{e.scope.off(),pi(t)}},mi=()=>{fi&&fi.scope.off(),pi(null)};function vi(e){return 4&e.vnode.shapeFlag}let yi=!1;function bi(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=ln(t)),_i(e,n)}function _i(e,t,n){const o=e.type;e.render||(e.render=o.render||i);{const t=gi(e);qe();try{er(e)}finally{ze(),t()}}}function wi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ln(Kt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ko?Ko[n](e):void 0,has:(e,t)=>t in e||t in Ko}))}function xi(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const Si=(e,t)=>{const n=function(e,t,n=!1){let o,r;const s=m(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Zt(o,r,s||!r,n)}(e,0,yi);return n};function Ci(e,t,n){const o=arguments.length;return 2===o?b(t)&&!p(t)?Yr(t)?ei(e,null,[t]):ei(e,t):ei(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Yr(n)&&(n=[n]),ei(e,t,n))}const Ti="3.4.21",ki="undefined"!=typeof document?document:null,Ei=ki&&ki.createElement("template"),Oi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?ki.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ki.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ki.createElement(e,{is:n}):ki.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>ki.createTextNode(e),createComment:e=>ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ki.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Ei.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Ei.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$i="transition",Li=Symbol("_vtc"),Ai=(e,{slots:t})=>Ci(lo,function(e){const t={};for(const c in e)c in Pi||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:f=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(b(e))return[ji(e.enter),ji(e.leave)];{const t=ji(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=y,onAppear:T=_,onAppearCancelled:k=w}=t,E=(e,t,n)=>{Ni(e,t?f:a),Ni(e,t?u:s),n&&n()},O=(e,t)=>{e._isLeaving=!1,Ni(e,d),Ni(e,h),Ni(e,p),t&&t()},$=e=>(t,n)=>{const r=e?T:_,s=()=>E(t,e,n);Bi(r,[t,s]),Mi((()=>{Ni(t,e?l:i),Ii(t,e?f:a),Ri(r)||Hi(t,o,m,s)}))};return c(t,{onBeforeEnter(e){Bi(y,[e]),Ii(e,i),Ii(e,s)},onBeforeAppear(e){Bi(C,[e]),Ii(e,l),Ii(e,u)},onEnter:$(!1),onAppear:$(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>O(e,t);Ii(e,d),document.body.offsetHeight,Ii(e,p),Mi((()=>{e._isLeaving&&(Ni(e,d),Ii(e,h),Ri(x)||Hi(e,o,v,n))})),Bi(x,[e,n])},onEnterCancelled(e){E(e,!1),Bi(w,[e])},onAppearCancelled(e){E(e,!0),Bi(k,[e])},onLeaveCancelled(e){O(e),Bi(S,[e])}})}(e),t);Ai.displayName="Transition";const Pi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ai.props=c({},ao,Pi);const Bi=(e,t=[])=>{p(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ri=e=>!!e&&(p(e)?e.some((e=>e.length>1)):e.length>1);function ji(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Ii(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Li]||(e[Li]=new Set)).add(t)}function Ni(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Li];n&&(n.delete(t),n.size||(e[Li]=void 0))}function Mi(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Fi=0;function Hi(e,t,n,o){const r=e._endId=++Fi,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),s=Vi(r,i),a=o("animationDelay"),l=o("animationDuration"),c=Vi(a,l);let u=null,f=0,d=0;t===$i?s>0&&(u=$i,f=s,d=i.length):"animation"===t?c>0&&(u="animation",f=c,d=l.length):(f=Math.max(s,c),u=f>0?s>c?$i:"animation":null,d=u?u===$i?i.length:l.length:0);const p=u===$i&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{uDi(t)+Di(e[n]))))}function Di(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const Wi=Symbol("_vod"),qi=Symbol("_vsh"),zi={beforeMount(e,{value:t},{transition:n}){e[Wi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ui(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ui(e,!0),o.enter(e)):o.leave(e,(()=>{Ui(e,!1)})):Ui(e,t))},beforeUnmount(e,{value:t}){Ui(e,t)}};function Ui(e,t){e.style.display=t?e[Wi]:"none",e[qi]=!t}const Xi=Symbol(""),Yi=/(^|;)\s*display\s*:/;const Ki=/\s*!important$/;function Ji(e,t,n){if(p(n))n.forEach((n=>Ji(e,t,n)));else if(null==n&&(n=""),n=ss(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Zi[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Zi[t]=o;o=A(o);for(let r=0;re.replace(ge,((e,t)=>{if(!t)return e;if(1===rs)return`${t}${os}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*rs,is);return 0===n?"0":`${n}${os}`})));var os,rs,is;const ss=e=>v(e)?ns(e):e,as="http://www.w3.org/1999/xlink";const ls=Symbol("_vei");function cs(e,t,n,o,r=null){const i=e[ls]||(e[ls]={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(us.test(e)){let n;for(t={};n=e.match(us);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):L(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const o=t&&t.proxy,r=o&&o.$nne,{value:i}=n;if(r&&p(i)){const n=ps(e,i);for(let o=0;ofs||(ds.then((()=>fs=0)),fs=Date.now()))(),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,s,a)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}const us=/(?:Once|Passive|Capture)$/;let fs=0;const ds=Promise.resolve();function ps(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const hs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const gs=["ctrl","shift","alt","meta"],ms={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>gs.some((n=>e[`${n}Key`]&&!t.includes(n)))},vs=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const r=t.replace("change:",""),{attrs:i}=o,s=i[r],a=(e.__wxsProps||(e.__wxsProps={}))[r];if(a===s)return;e.__wxsProps[r]=s;const l=o.proxy;xn((()=>{n(s,a,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,s);const f="svg"===r;"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:r}=e;r&&r.length&&(t=(t||"").split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const i=e[Li];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,f):"style"===t?function(e,t,n){const o=e.style,r=v(n);let i=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Ji(o,t,"")}else for(const e in t)null==n[e]&&Ji(o,e,"");for(const e in n)"display"===e&&(i=!0),Ji(o,e,n[e])}else if(r){if(t!==n){const e=o[Xi];e&&(n+=";"+e),o.cssText=n,i=Yi.test(n)}}else t&&e.removeAttribute("style");Wi in e&&(e[Wi]=i?o.display:"",e[qi]&&(o.display="none"));const{__wxsStyle:s}=e;if(s)for(const a in s)Ji(o,a,s[a])}(e,n,o):a(t)?l(t)||cs(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&hs(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(hs(t)&&v(n))return!1;return t in e}(e,t,o,f))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=U(n):null==n&&"string"===o?(n="",l=!0):"number"===o&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}(e,t,o,i,s,c,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(as,t.slice(6,t.length)):e.setAttributeNS(as,t,n);else{const o=z(t);null==n||o&&!U(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,f))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Oi);let bs;const _s=(...e)=>{const t=(bs||(bs=Ar(ys))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(v(e)){return document.querySelector(e)}return e} -/*! - * vue-router v4.3.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const ws="undefined"!=typeof document;const xs=Object.assign;function Ss(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ts(r)?r.map(e):e(r)}return n}const Cs=()=>{},Ts=Array.isArray,ks=/#/g,Es=/&/g,Os=/\//g,$s=/=/g,Ls=/\?/g,As=/\+/g,Ps=/%5B/g,Bs=/%5D/g,Rs=/%5E/g,js=/%60/g,Is=/%7B/g,Ns=/%7C/g,Ms=/%7D/g,Fs=/%20/g;function Hs(e){return encodeURI(""+e).replace(Ns,"|").replace(Ps,"[").replace(Bs,"]")}function Vs(e){return Hs(e).replace(As,"%2B").replace(Fs,"+").replace(ks,"%23").replace(Es,"%26").replace(js,"`").replace(Is,"{").replace(Ms,"}").replace(Rs,"^")}function Ds(e){return null==e?"":function(e){return Hs(e).replace(ks,"%23").replace(Ls,"%3F")}(e).replace(Os,"%2F")}function Ws(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const qs=/\/$/;function zs(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,a=n.length-1;for(i=0;i1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Ws(s)}}function Us(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Xs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ys(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ks(e[n],t[n]))return!1;return!0}function Ks(e,t){return Ts(e)?Js(e,t):Ts(t)?Js(t,e):e===t}function Js(e,t){return Ts(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Gs,Zs,Qs,ea;function ta(e){if(!e)if(ws){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(qs,"")}(Zs=Gs||(Gs={})).pop="pop",Zs.push="push",(ea=Qs||(Qs={})).back="back",ea.forward="forward",ea.unknown="";const na=/^[^#]+#/;function oa(e,t){return e.replace(na,"#")+t}const ra=()=>({left:window.scrollX,top:window.scrollY});function ia(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function sa(e,t){return(history.state?history.state.position-t:-1)+e}const aa=new Map;function la(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Us(n,"")}return Us(n,e)+o+r}function ca(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ra():null}}function ua(e){const{history:t,location:n}=window,o={value:la(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=xs({},r.value,t.state,{forward:e,scroll:ra()});i(s.current,s,!0),i(e,xs({},ca(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,xs({},t.state,ca(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function fa(e){const t=ua(e=ta(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=la(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);u=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:u,type:Gs.pop,direction:u?u>0?Qs.forward:Qs.back:Qs.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(xs({},e.state,{scroll:ra()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=xs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:oa.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function da(e){return"string"==typeof e||"symbol"==typeof e}const pa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ha=Symbol("");var ga,ma;function va(e,t){return xs(new Error,{type:e,[ha]:!0},t)}function ya(e,t){return e instanceof Error&&ha in e&&(null==t||!!(e.type&t))}(ma=ga||(ga={}))[ma.aborted=4]="aborted",ma[ma.cancelled=8]="cancelled",ma[ma.duplicated=16]="duplicated";const ba={sensitive:!1,strict:!1,start:!0,end:!0},_a=/[.+*?^${}()[\]/\\]/g;function wa(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function xa(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Ca={type:0,value:""},Ta=/[a-zA-Z0-9_]/;function ka(e,t,n){const o=function(e,t){const n=xs({},ba,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{i(d)}:Cs}function i(e){if(da(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Ba(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!La(e)&&o.set(e.record.name,e)}return t=Pa({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw va(1,{location:e});s=r.record.name,a=xs(Oa(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Oa(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw va(1,{location:e,currentLocation:t});s=r.record.name,a=xs({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Aa(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Oa(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function $a(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function La(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Aa(e){return e.reduce(((e,t)=>xs(e,t.meta)),{})}function Pa(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ba(e,t){return t.children.some((t=>t===e||Ba(e,t)))}function Ra(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&Vs(e))):[o&&Vs(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Ia(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ts(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Na=Symbol(""),Ma=Symbol(""),Fa=Symbol(""),Ha=Symbol(""),Va=Symbol("");function Da(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Wa(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var i;!1===e?l(va(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(va(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),a())},u=i((()=>e.call(o&&o.instances[r],t,n,c)));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch((e=>l(e)))}))}function qa(e,t,n,o,r=(e=>e())){const i=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&i.push(Wa(s,n,o,a,e,r))}else{let s=l();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&Wa(c,n,o,a,e,r)()}))))}}var s;return i}function za(e){const t=mr(Fa),n=mr(Ha),o=Si((()=>t.resolve(sn(e.to)))),r=Si((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Xs.bind(null,r));if(s>-1)return s;const a=Xa(e[t-2]);return t>1&&Xa(r)===a&&i[i.length-1].path!==a?i.findIndex(Xs.bind(null,e[t-2])):s})),i=Si((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ts(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Si((()=>r.value>-1&&r.value===n.matched.length-1&&Ys(n.params,o.value.params)));return{route:o,href:Si((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[sn(e.replace)?"replace":"push"](sn(e.to)).catch(Cs):Promise.resolve()}}}const Ua=mo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:za,setup(e,{slots:t}){const n=Ht(za(e)),{options:o}=mr(Fa),r=Si((()=>({[Ya(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ya(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ci("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Xa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ya=(e,t,n)=>null!=e?e:null!=t?t:n,Ka=mo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=mr(Va),r=Si((()=>e.route||o.value)),i=mr(Ma,0),s=Si((()=>{let e=sn(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=Si((()=>r.value.matched[s.value]));gr(Ma,Si((()=>s.value+1))),gr(Na,a),gr(Va,r);const l=nn();return Gn((()=>[l.value,a.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Xs(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Ja(n.default,{Component:c,route:o});const u=s.props[i],f=u?!0===u?o.params:"function"==typeof u?u(o):u:null,d=Ci(c,xs({},f,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Ja(n.default,{Component:d,route:o})||d}}});function Ja(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ga=Ka;function Za(e){const t=Ea(e.routes,e),n=e.parseQuery||Ra,o=e.stringifyQuery||ja,r=e.history,i=Da(),s=Da(),a=Da(),l=on(pa,!0);let c=pa;ws&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ss.bind(null,(e=>""+e)),f=Ss.bind(null,Ds),d=Ss.bind(null,Ws);function p(e,i){if(i=xs({},i||l.value),"string"==typeof e){const o=zs(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return xs(o,s,{params:d(s.params),hash:Ws(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=xs({},e,{path:zs(n,e.path,i.path).path});else{const t=xs({},e.params);for(const e in t)null==t[e]&&delete t[e];s=xs({},e,{params:f(t)}),i.params=f(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=u(d(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,xs({},e,{hash:(h=c,Hs(h).replace(Is,"{").replace(Ms,"}").replace(Rs,"^")),path:a.path}));var h;const g=r.createHref(p);return xs({fullPath:p,hash:c,query:o===ja?Ia(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?zs(n,e,l.value.path):xs({},e)}function g(e,t){if(c!==e)return va(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),xs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=c=p(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,u=v(n);if(u)return y(xs(h(u),{state:"object"==typeof u?xs({},i,u.state):i,force:s,replace:a}),t||n);const f=n;let d;return f.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Xs(t.matched[o],n.matched[r])&&Ys(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=va(16,{to:f,from:r}),A(r,r,!0,!1)),(d?Promise.resolve(d):w(f,r)).catch((e=>ya(e)?ya(e,2)?e:L(e):$(e,f,r))).then((e=>{if(e){if(ya(e,2))return y(xs({replace:a},h(e.to),{state:"object"==typeof e.to?xs({},i,e.to.state):i,force:s}),t||f)}else e=S(f,r,!0,a,i);return x(f,r,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sXs(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>Xs(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=qa(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(Wa(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),I(n).then((()=>{n=[];for(const o of i.list())n.push(Wa(o,e,t));return n.push(l),I(n)})).then((()=>{n=qa(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Wa(o,e,t))}));return n.push(l),I(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Ts(o.beforeEnter))for(const r of o.beforeEnter)n.push(Wa(r,e,t));else n.push(Wa(o.beforeEnter,e,t));return n.push(l),I(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=qa(a,"beforeRouteEnter",e,t,_),n.push(l),I(n)))).then((()=>{n=[];for(const o of s.list())n.push(Wa(o,e,t));return n.push(l),I(n)})).catch((e=>ya(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>_((()=>o(e,t,n)))))}function S(e,t,n,o,i){const s=g(e,t);if(s)return s;const a=t===pa,c=ws?history.state:{};n&&(o||a?r.replace(e.fullPath,xs({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,A(e,t,n,a),L()}let C;function T(){C||(C=r.listen(((e,t,n)=>{if(!j.listening)return;const o=p(e),i=v(o);if(i)return void y(xs(i,{replace:!0}),o).catch(Cs);c=o;const s=l.value;var a,u;ws&&(a=sa(s.fullPath,n.delta),u=ra(),aa.set(a,u)),w(o,s).catch((e=>ya(e,12)?e:ya(e,2)?(y(e.to,o).then((e=>{ya(e,20)&&!n.delta&&n.type===Gs.pop&&r.go(-1,!1)})).catch(Cs),Promise.reject()):(n.delta&&r.go(-n.delta,!1),$(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!ya(e,8)?r.go(-n.delta,!1):n.type===Gs.pop&&ya(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Cs)})))}let k,E=Da(),O=Da();function $(e,t,n){L(e);const o=O.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function L(e){return k||(k=!e,T(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!ws||!i)return Promise.resolve();const s=!o&&function(e){const t=aa.get(e);return aa.delete(e),t}(sa(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return xn().then((()=>i(t,n,s))).then((e=>e&&ia(e))).catch((e=>$(e,t,n)))}const P=e=>r.go(e);let B;const R=new Set,j={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return da(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:m,replace:function(e){return m(xs(h(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:function(){return k&&l.value!==pa?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",Ua),e.component("RouterView",Ga),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>sn(l)}),ws&&!B&&l.value===pa&&(B=!0,m(r.location).catch((e=>{})));const t={};for(const o in pa)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Fa,this),e.provide(Ha,Vt(t)),e.provide(Va,l);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c=pa,C&&C(),C=null,l.value=pa,B=!1,k=!1),n()}}};function I(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return j}function Qa(){return mr(Ha)}const el=["{","}"];const tl=/^(?:\d)+/,nl=/^(?:\w)+/;const ol=Object.prototype.hasOwnProperty,rl=(e,t)=>ol.call(e,t),il=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=el){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class al{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||il,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=sl(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{rl(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=sl(t,this.messages))&&(o=this.messages[t]):n=t,rl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ll(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&Ju?Ju():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new al({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=Lp().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}function cl(e,t){return e.indexOf(t[0])>-1}const ul=ie((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let fl;function dl(e){return cl(e,ee)?gl().f(e,function(){const e=Ju(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ee):e}function pl(e,t){if(1===t.length){if(e){const n=e=>v(e)&&cl(e,ee),o=t[0];let r=[];if(p(e)&&(r=e.filter((e=>n(e[o])))).length)return r;const i=e[t[0]];if(n(i))return e}return}const n=t.shift();return pl(e&&e[n],t)}function hl(e,t){const n=pl(e,t);if(!n)return!1;const o=t[t.length-1];if(p(n))n.forEach((e=>hl(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>dl(e),set(t){e=t}})}return!0}function gl(){if(!fl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,fl=ll(e),ul()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>fl.add(e,__uniConfig.locales[e]))),fl.setLocale(e)}}return fl}function ml(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const vl=ie((()=>{const e="uni.async.",t=["error"];gl().add("en",ml(e,t,["The connection timed out, click the screen to try again."]),!1),gl().add("es",ml(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),gl().add("fr",ml(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),gl().add("zh-Hans",ml(e,t,["连接服务器超时,点击屏幕重试"]),!1),gl().add("zh-Hant",ml(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),yl=ie((()=>{const e="uni.showToast.",t=["unpaired"];gl().add("en",ml(e,t,["Please note showToast must be paired with hideToast"]),!1),gl().add("es",ml(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),gl().add("fr",ml(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),gl().add("zh-Hans",ml(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),gl().add("zh-Hant",ml(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),bl=ie((()=>{const e="uni.showLoading.",t=["unpaired"];gl().add("en",ml(e,t,["Please note showLoading must be paired with hideLoading"]),!1),gl().add("es",ml(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),gl().add("fr",ml(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),gl().add("zh-Hans",ml(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),gl().add("zh-Hant",ml(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),_l=ie((()=>{const e="uni.showModal.",t=["cancel","confirm"];gl().add("en",ml(e,t,["Cancel","OK"]),!1),gl().add("es",ml(e,t,["Cancelar","OK"]),!1),gl().add("fr",ml(e,t,["Annuler","OK"]),!1),gl().add("zh-Hans",ml(e,t,["取消","确定"]),!1),gl().add("zh-Hant",ml(e,t,["取消","確定"]),!1)})),wl=ie((()=>{const e="uni.chooseFile.",t=["notUserActivation"];gl().add("en",ml(e,t,["File chooser dialog can only be shown with a user activation"]),!1),gl().add("es",ml(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),gl().add("fr",ml(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),gl().add("zh-Hans",ml(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),gl().add("zh-Hant",ml(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}));function xl(e){const t=new $e;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Sl=1;const Cl=Object.create(null);function Tl(e,t){return e+"."+t}function kl({id:e,name:t,args:n},o){t=Tl(o,t);const r=t=>{e&&ig.publishHandler("invokeViewApi."+e,t)},i=Cl[t];i?i(n,r):r({})}const El=c(xl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=ig,i=n?Sl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Ol=me(!0);let $l;function Ll(){$l&&(clearTimeout($l),$l=null)}let Al=0,Pl=0;function Bl(e){if(Ll(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Al=t,Pl=n,$l=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Rl(e){if(!$l)return;if(1!==e.touches.length)return Ll();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Al)>10||Math.abs(n-Pl)>10?Ll():void 0}function jl(e,t){const n=Number(e);return isNaN(n)?t:n}function Il(){const e=__uniConfig.globalStyle||{},t=jl(e.rpxCalcMaxDeviceWidth,960),n=jl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ml,Fl,Hl=["top","left","right","bottom"],Vl={};function Dl(){return Fl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Wl(){if(Fl="string"==typeof Fl?Fl:Dl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Hl.forEach((function(e){s(o,e)})),document.body.appendChild(o),i(),Ml=!0}else Hl.forEach((function(e){Vl[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Fl+"(safe-area-inset-"+n+")"};r(o,c),r(s,c),r(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),i((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,r=s.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,r=s.scrollTop,function(e){zl.length||setTimeout((function(){var e={};zl.forEach((function(t){e[t]=Vl[t]})),zl.length=0,Ul.forEach((function(t){t(e)}))}),0);zl.push(e)}(n))}o.addEventListener("scroll",i,t),s.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(Vl,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function ql(e){return Ml||Wl(),Vl[e]}var zl=[];var Ul=[];const Xl=Nl({get support(){return 0!=("string"==typeof Fl?Fl:Dl()).length},get top(){return ql("top")},get left(){return ql("left")},get right(){return ql("right")},get bottom(){return ql("bottom")},onChange:function(e){Dl()&&(Ml||Wl(),"function"==typeof e&&Ul.push(e))},offChange:function(e){var t=Ul.indexOf(e);t>=0&&Ul.splice(t,1)}}),Yl=vs((()=>{}),["prevent"]),Kl=vs((e=>{}),["stop"]);function Jl(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Gl(){const e=Jl(document.documentElement.style,"--window-top");return e?e+Xl.top:0}function Zl(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function Ql(e){return Zl(e)}function ec(e){return Symbol(e)}function tc(e){return e.$page}function nc(e){return 0===e.tagName.indexOf("UNI-")}const oc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",rc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",ic="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function sc(e,t="#000",n=27){return ei("svg",{width:n,height:n,viewBox:"0 0 32 32"},[ei("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function ac(){{const{$pageInstance:o}=di();return o&&(e=o.proxy,(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id))}var e,t,n}function lc(){const e=Wf(),t=e.length;if(t)return e[t-1]}function cc(){var e;const t=null==(e=lc())?void 0:e.$page;if(t)return t.meta}function uc(){const e=cc();return e?e.id:-1}function fc(){const e=lc();if(e)return e.$vm}const dc=["navigationBar","pullToRefresh"];function pc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);dc.forEach((t=>{o[t]=c({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function hc(e,t,n){if(v(e))n=t,t=e,e=fc();else if("number"==typeof e){const t=Wf().find((t=>tc(t).id===e));e=t?t.$vm:fc()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-vc)>n;return!i||r&&!s?(!i&&r&&(r=!1),!1):(vc=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(s()||(mc=setTimeout(s,300))),o=!1};return function(){clearTimeout(mc),o||requestAnimationFrame(s),o=!0}}function bc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return bc(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),re(i.concat(n).join("/"))}function _c(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function wc(){Il(),pe(nc),window.addEventListener("touchstart",Bl,Ol),window.addEventListener("touchmove",Rl,Ol),window.addEventListener("touchend",Ll,Ol),window.addEventListener("touchcancel",Ll,Ol)}class xc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(ce(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&ce(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=kc(this.$el.querySelector(e));return t?Sc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&ig.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Sc(e,t=!0){if(t&&e&&(e=le(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new xc(e)),e.$el.__wxsComponentDescriptor}function Cc(e,t){return Sc(e,t)}function Tc(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Cc(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=le(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Cc(r,!1)]}}function kc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Ec(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e;let s,a;s=ve(t?r:function(e){for(;!nc(e);)e=e.parentElement;return e}(r)),a=ve(i);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Oc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function $c(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Gl();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Oc(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Gl();i.touches=$c(e.touches,t),i.changedTouches=$c(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Tc(i,t,n)||[i]},createNativeEvent:Ec},Symbol.toStringTag,{value:"Module"});function Ac(e){!function(e){const t=e.globalProperties;c(t,Lc),t.$gcd=Cc}(e._context.config)}let Pc=1;function Bc(e){return(e||uc())+".invokeViewApi"}const Rc=c(xl("view"),{invokeOnCallback:(e,t)=>sg.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=sg,s=o?Pc++:0;o&&r("invokeViewApi."+s,o,!0),i(Bc(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:s}=sg,a=Pc++,l="invokeViewApi."+a;return r(l,n),s(Bc(o),{id:a,name:e,args:t},o),()=>{i(l)}}});function jc(e){hc(lc(),"onResize",e),sg.invokeOnCallback("onWindowResize",e)}function Ic(e){const t=lc();hc(Lp(),"onShow",e),hc(t,"onShow")}function Nc(){hc(Lp(),"onHide"),hc(lc(),"onHide")}const Mc=["onPageScroll","onReachBottom"];function Fc(){Mc.forEach((e=>sg.subscribe(e,function(e){return(t,n)=>{hc(parseInt(n),e,t)}}(e))))}function Hc(){!function(){const{on:e}=sg;e("onResize",jc),e("onAppEnterForeground",Ic),e("onAppEnterBackground",Nc)}(),Fc()}function Vc(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Se(this.$page.id)),e.eventChannel}}function Dc(e){e._context.config.globalProperties.getOpenerEventChannel=Vc}function Wc(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function qc(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${Ku(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function zc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,s=e.option,a=s.transition,l={},c=[];return i.forEach((e=>{let i=e.type,s=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(s=s.map(qc)),n.indexOf(i)>=0&&(s.length=1),c.push(`${i}(${s.join(",")})`);else if(o.concat(r).includes(s[0])){i=s[0];const e=s[1];l[i]=r.includes(i)?qc(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{i()}),0)}const Uc={props:["animation"],watch:{animation:{deep:!0,handler(){zc(this)}}},mounted(){zc(this)}},Xc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Uc),Yc(e)},Yc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},mo(e));function Kc(e){return e.__wwe=!0,e}function Jc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){let r;return r=ve(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const Gc={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Zc(e){const t=nn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function a(){r=!1,t.value&&i()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Kc((function(e){e.touches.length>1||s(e)})),onMousedown:Kc((function(e){r||(s(e),window.addEventListener("mouseup",l))})),onTouchend:Kc((function(){a()})),onMouseup:Kc((function(){r&&l()})),onTouchcancel:Kc((function(){r=!1,t.value=!1,clearTimeout(n)}))}}}function Qc(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const eu=ec("uf"),tu=ec("ul");function nu(e,t,n){const o=ac();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&ig.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?ig.on(r,t[r]):e&&ig.on(`uni-${r}-${o}-${e}`,t[r])}))}function ou(e,t,n){const o=ac();n&&!e||S(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&ig.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?ig.off(r,t[r]):e&&ig.off(`uni-${r}-${o}-${e}`,t[r])}))}const ru=Xc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=nn(null),o=mr(eu,!1),{hovering:r,binding:i}=Zc(e),s=Kc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),a=mr(tu,!1);return a&&(a.addHandler(s),Fo((()=>{a.removeHandler(s)}))),function(e,t){nu(e.id,t),Gn((()=>e.id),((e,n)=>{ou(n,t,!0),nu(e,t,!0)})),Ho((()=>{ou(e.id,t)}))}(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Qc(e,"disabled"),l=Qc(e,"loading"),c=Qc(e,"plain"),u=o&&"none"!==o;return ei("uni-button",ai({ref:n,onClick:s,id:e.id,class:u&&r.value?o:""},u&&i,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),iu=ec("upm");function su(){return mr(iu)}function au(e){const t=function(e){return Ht(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:r}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=r||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Wf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(pc(Qa().meta,e)))))}(e);return gr(iu,t),t}function lu(){return Qa()}function cu(){return history.state&&history.state.__id__||1}const uu=["original","compressed"],fu=["album","camera"],du=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function pu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function hu(e,t){return!p(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function gu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let mu=1;const vu={};function yu(e,t,n){if("number"==typeof e){const o=vu[e];if(o)return o.keepAlive||delete vu[e],o.callback(t,n)}return t}const bu="success",_u="fail",wu="complete";function xu(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=gu(o),delete e[n])}return t}(t),a=m(r),l=m(i),c=m(s),u=mu++;return function(e,t,n,o=!1){vu[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),m(n)&&n(u),u.errMsg===e+":ok"?(m(o)&&o(u,t),a&&r(u)):l&&i(u),c&&s(u)})),u}const Su="success",Cu="fail",Tu="complete",ku={},Eu={};function Ou(e,t){return function(n){return e(n,t)||n}}function $u(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function Lu(e,t={}){return[Su,Cu,Tu].forEach((n=>{const o=e[n];if(!p(o))return;const r=t[n];t[n]=function(e){$u(o,e,t).then((e=>m(r)&&r(e)||e))}})),t}function Au(e,t){const n=[];p(ku.returnValue)&&n.push(...ku.returnValue);const o=Eu[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Pu(e){const t=Object.create(null);Object.keys(ku).forEach((e=>{"returnValue"!==e&&(t[e]=ku[e].slice())}));const n=Eu[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Bu(e,t,n,o){const r=Pu(e);if(r&&Object.keys(r).length){if(p(r.invoke)){return $u(r.invoke,n).then((n=>t(Lu(Pu(e),n),...o)))}return t(Lu(r,n),...o)}return t(n,...o)}function Ru(e,t){return(n={},...o)=>function(e){return!(!S(e)||![bu,_u,wu].find((t=>m(e[t]))))}(n)?Au(e,Bu(e,t,c({},n),o)):Au(e,new Promise(((r,i)=>{Bu(e,t,c({},n,{success:r,fail:i}),o)})))}function ju(e,t,n,o={}){const r=t+":fail";let i="";return i=n?0===n.indexOf(r)?n:r+" "+n:r,delete o.errCode,yu(e,c({errMsg:i},o))}function Iu(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const r=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=xu(e,n,o),i=Iu(0,[n],0,o);return i?ju(r,e,i):t(n,{resolve:t=>function(e,t,n){return yu(e,c(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>ju(r,e,function(e){return!e||v(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Mu(e,t,n,o){return Ru(e,Nu(e,t,0,o))}function Fu(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Iu(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Hu(e,t,n,o){return Ru(e,function(e,t,n,o){return Nu(e,t,0,o)}(e,t,0,o))}let Vu=!1,Du=0,Wu=0,qu=960,zu=375,Uu=750;function Xu(){let e,t,n;{const{windowWidth:o,pixelRatio:r,platform:i}=function(){const e=hd(),t=vd(md(e,gd(e)));return{platform:cd?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=r,n=i}Du=e,Wu=t,Vu="ios"===n}function Yu(e,t){const n=Number(e);return isNaN(n)?t:n}const Ku=Fu(0,((e,t)=>{if(0===Du&&(Xu(),function(){const e=__uniConfig.globalStyle||{};qu=Yu(e.rpxCalcMaxDeviceWidth,960),zu=Yu(e.rpxCalcBaseDeviceWidth,375),Uu=Yu(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Du;n=e===Uu||n<=qu?n:zu;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Wu&&Vu?.5:1),e<0?-o:o})),Ju=Fu(0,(()=>{const e=Lp();return e&&e.$vm?e.$vm.$locale:gl().getLocale()})),Gu={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Zu={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=hu(e,uu)},sourceType(e,t){t.sourceType=hu(e,fu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Qu="json",ef=["text","arraybuffer"],tf=encodeURIComponent;ArrayBuffer,Boolean;const nf={formatArgs:{method(e,t){t.method=pu((e||"").toUpperCase(),du)},data(e,t){t.data=e||""},url(e,t){t.method===du[0]&&S(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let r=n[1]||"";e=n[0];const i=r.split("&").filter((e=>e)),s={};i.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(d(t,a)){let e=t[a];null==e?e="":S(e)&&(e=JSON.stringify(e)),s[tf(a)]=tf(e)}return r=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==du[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Qu).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===ef.indexOf(t.responseType)&&(t.responseType="text")}}},of={formatArgs:{filePath(e,t){e&&(t.filePath=sd(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const rf={url:{type:String,required:!0}},sf=(cf(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),cf(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),df("navigateTo")),af=df("reLaunch"),lf={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Wf().length-1,e)}}};function cf(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let uf;function ff(){uf=""}function df(e){return{formatArgs:{url:pf(e)},beforeAll:ff}}function pf(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Wf();return n.length&&(t=tc(n[n.length-1]).route),bc(t,e)}(t)).split("?")[0],r=_c(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(uf===t&&"appLaunch"!==n.openType)return`${uf} locked`;__uniConfig.ready&&(uf=t)}else if(r.meta.isTabBar){const e=Wf(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}Boolean;const hf={formatArgs:{title:"",mask:!1}},gf=(Boolean,{beforeInvoke(){_l()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!d(t,"cancelText")){const{t:e}=gl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!d(t,"confirmText")){const{t:e}=gl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),mf=["success","loading","none","error"],vf=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=pu(e,mf)},image(e,t){t.image=e?sd(e):""},duration:1500,mask:!1}});function yf(){const e=fc();if(!e)return;const t=Df(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:zf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,hc(e,"onHide"))}function bf(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function _f(e){const t=Df().values();for(const n of t){const t=If(n);if(bf(e,t))return n.$.__isActive=!0,t.id}}const wf=Hu("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(Nf.handledBeforeEntryPageRoutes)return yf(),Cf({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},_f(e)).then(o).catch(r);Ff.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,df("switchTab"));function xf(){const e=Df().keys();for(const t of e)zf(t)}const Sf=Hu("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Nf.handledBeforeEntryPageRoutes)return xf(),Cf({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);Vf.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,af);function Cf({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const s=Lp().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:we(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Uf,__type__:e}}(e,i);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((i=>{if(ya(i))return c(i.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Se(u.__id__,o),t(r?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:u.__id__}):t()}))}))}function Tf(){if(Nf.handledBeforeEntryPageRoutes)return;Nf.handledBeforeEntryPageRoutes=!0;const e=[...Mf];Mf.length=0,e.forEach((({args:e,resolve:t,reject:n})=>Cf(e).then(t).catch(n)));const t=[...Ff];Ff.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(yf(),Cf(e,_f(e.url)).then(t).catch(n))));const n=[...Hf];Hf.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(function(){const e=lc();if(!e)return;const t=If(e);zf(Kf(t.path,t.id))}(),Cf(e).then(t).catch(n))));const o=[...Vf];Vf.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(xf(),Cf(e).then(t).catch(n))))}let kf;function Ef(){var e;return kf||(kf=__uniConfig.tabBar&&Ht((e=__uniConfig.tabBar,ul()&&e.list&&e.list.forEach((e=>{hl(e,["text"])})),e))),kf}function Of(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const $f=Of("top:env(a)"),Lf=Of("top:constant(a)"),Af=Of("backdrop-filter:blur(10px)"),Pf=(()=>$f?"env":Lf?"constant":"")();function Bf(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=Ef();e.shown&&(n=parseInt(e.height))}var o;Ql({"--window-top":(o=t,Pf?`calc(${o}px + ${Pf}(safe-area-inset-top))`:`${o}px`),"--window-bottom":Rf(n)})}function Rf(e){return Pf?`calc(${e}px + ${Pf}(safe-area-inset-bottom))`:`${e}px`}const jf=new Map;function If(e){return e.$page}const Nf={handledBeforeEntryPageRoutes:!1},Mf=[],Ff=[],Hf=[],Vf=[];function Df(){return jf}function Wf(){return qf()}function qf(){const e=[],t=jf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function zf(e,t=!0){const n=jf.get(e);n.$.__isUnload=!0,hc(n,"onUnload"),jf.delete(e),t&&function(e){const t=Jf.get(e);t&&(Jf.delete(e),Gf.pruneCacheEntry(t))}(e)}let Uf=cu();function Xf(e){const t=su();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:s,route:a}=o,l=Pe(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:s,path:re(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Yf(e){const t=Xf(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),jf.set(Kf(t.path,t.id),e),1===jf.size&&setTimeout((()=>{Tf()}),0)}function Kf(e,t){return e+"$$"+t}const Jf=new Map,Gf={get:e=>Jf.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Gf.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Gf.delete(n),Gf.pruneCacheEntry(e),xn((()=>{jf.forEach(((e,t)=>{e.$.isUnmounted&&jf.delete(t)}))}))}}))}(e),Jf.set(e,t)},delete(e){Jf.get(e)&&Jf.delete(e)},forEach(e){Jf.forEach(e)}};function Zf(e,t){!function(e){const t=ed(e),{body:n}=document;td&&n.removeAttribute(td),t&&n.setAttribute(t,""),td=t}(e),Bf(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),rd(e,t)}function Qf(e){const t=ed(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function ed(e){return e.type.__scopeId}let td;const nd=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let od;function rd(e,t){if(document.removeEventListener("touchmove",gc),od&&document.removeEventListener("scroll",od),t.disableScroll)return document.addEventListener("touchmove",gc,nd);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!r)return;const i={},s=If(e.proxy).id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&ig.publishHandler("onPageScroll",{scrollTop:o},e),n&&ig.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,r)),(null==o?void 0:o.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>ig.publishHandler("onReachBottom",{},s)),od=yc(i),requestAnimationFrame((()=>document.addEventListener("scroll",od)))}function id(e){const{base:t}=__uniConfig.router;return 0===re(e).indexOf(t)?re(e):t+e}function sd(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return id(e.slice(1));e="https:"+e}if(te.test(e)||ne.test(e)||0===e.indexOf("blob:"))return e;const o=qf();return o.length?id(bc(If(o[o.length-1]).route,e).slice(1)):e}const ad=navigator.userAgent,ld=/android/i.test(ad),cd=/iphone|ipad|ipod/i.test(ad),ud=ad.match(/Windows NT ([\d|\d.\d]*)/i),fd=/Macintosh|Mac/i.test(ad),dd=/Linux|X11/i.test(ad),pd=fd&&navigator.maxTouchPoints>0;function hd(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function gd(e){return e&&90===Math.abs(window.orientation)}function md(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function vd(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}const yd={};function bd(e,t){const n=yd[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return _d(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function _d(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function wd(e){for(const n in yd)if(d(yd,n)){if(yd[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return yd[t]=e,t}const xd=Wc(),Sd=Wc();const Cd=Xc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=nn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Ht({width:-1,height:-1});return Gn((()=>c({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){To(o),Io((()=>{t.initial&&xn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>ei("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[ei("div",{onScroll:r},[ei("div",null,null)],40,["onScroll"]),ei("div",{onScroll:r},[ei("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function Td(){}const kd={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Ed(e,t,n){function o(e){const t=Si((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Td,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Td,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Gn((()=>t.value),(e=>e&&o(e)))}const Od={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},$d={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Ld={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},Ad=Xc({name:"Image",props:Od,setup(e,{emit:t}){const n=nn(null),o=function(e,t){const n=nn(""),o=Si((()=>{let e="auto",o="";const r=Ld[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Ht({rootEl:e,src:Si((()=>t.src?sd(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Io((()=>{const t=e.value;r.origWidth=t.clientWidth||0,r.origHeight=t.clientHeight||0})),r}(n,e),r=Jc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=$d[o];if(!r)return;const{origWidth:i,origHeight:s}=n,a=i&&s?i/s:0;if(!a)return;const l=e.value,c=l[r[0]];c&&(l.style[r[1]]=function(e){Pd&&e>10&&(e=2*Math.round(e/2));return e}(r[2](c,a))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return Gn((()=>t.mode),((e,t)=>{$d[t]&&r(),$d[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();i=i||new Image,i.onload=e=>{const{width:u,height:f}=i;a(u,f,l),xn((()=>{o()})),i.draggable=t.draggable,s&&s.remove(),s=i,n.value.appendChild(i),c(),r("load",e,{width:u,height:f})},i.onerror=t=>{a(),c(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},c=()=>{i&&(i.onload=null,i.onerror=null,i=null)};Gn((()=>e.src),(e=>l(e))),Gn((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Io((()=>l(e.src))),Fo((()=>c()))}(o,e,n,i,r),()=>ei("uni-image",{ref:n},[ei("div",{style:o.modeStyle},null,4),$d[e.mode]?ei(Cd,{onResize:i},null,8,["onResize"]):ei("span",null,null)],512)}});const Pd="Google Inc."===navigator.vendor;const Bd=me(!0),Rd=[];let jd=0,Id=!1;const Nd=e=>Rd.forEach((t=>t.userAction=e));function Md(e={userAction:!1}){if(!Id){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!jd&&Nd(!0),jd++,setTimeout((()=>{!--jd&&Nd(!1)}),0)}),Bd)})),Id=!0}Rd.push(e)}function Fd(){const e=Ht({userAction:!1});return Io((()=>{Md(e)})),Fo((()=>{!function(e){const t=Rd.indexOf(e);t>=0&&Rd.splice(t,1)}(e)})),{state:e}}function Hd(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}const Vd=function(){var e,t,n;e=uc(),n=Hd,t=Tl(e,t="getSelectedTextRange"),Cl[t]||(Cl[t]=n)};function Dd(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Wd=["none","text","decimal","numeric","tel","search","email","url"],qd=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Wd.indexOf(e)},cursorColor:{type:String,default:""}},kd),zd=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Ud(e,t,n,o){let r=null;r=xe((n=>{t.value=Dd(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),Gn((()=>e.modelValue),r),Gn((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const s=Date.now();clearTimeout(n),o=()=>{o=null,r=s,e.apply(this,i)},s-r{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return jo((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Xd(e,t){Fd();const n=Si((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Gn((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Io((()=>{n.value&&xn(o)}))}function Yd(e,t,n,o){Vd();const{fieldRef:r,state:i,trigger:s}=function(e,t,n){const o=nn(null),r=Jc(t,n),i=Si((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=Si((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=Si((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Si((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=Dd(e.modelValue,e.type)||Dd(e.value,e.type);const u=Ht({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:s,cursor:a});return Gn((()=>u.focus),(e=>n("update:focus",e))),Gn((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:r}}(e,t,n),{triggerInput:a}=Ud(e,i,n,s);Xd(e,r),Ed(0,r);const{state:l}=function(){const e=Ht({attrs:{}});return Io((()=>{let t=di();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}();!function(e,t){const n=mr(eu,!1);if(!n)return;const o=di(),r={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(r),Fo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Gn([()=>t.selectionStart,()=>t.selectionEnd],s),Gn((()=>t.cursor),a),Gn((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),m(i)&&!1===i(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:c.value,cursor:l(c)},o))};function f(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,f(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),f(e)})),c.addEventListener("compositionupdate",f)}))}(r,i,e,s,a,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Kd=c({},qd,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Jd=ie((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function Gd(e,t,n,o,r){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",r&&(r.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",r.fn)},o.addEventListener("blur",r.fn)),!1}else if("deleteContentBackward"===e.inputType&&Jd()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Zd=Xc({name:"Input",props:Kd,emits:["confirm",...zd],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],r=["off","one-time-code"],i=Si((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=Si((()=>{const t=r.indexOf(e.textContentType),n=r.indexOf(L(e.textContentType));return r[-1!==t?t:-1!==n?n:0]}));let a=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=nn(null!=t?t.toLocaleString():"");return Gn((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),Gn((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return nn("")}(e,i),l={fn:null};const c=nn(null),{fieldRef:u,state:f,scopedAttrsState:d,fixDisabledColor:p,trigger:h}=Yd(e,c,t,((t,n)=>{const o=t.target;if("number"===i.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!a.value||!o.value)&&"-"===t.data||"-"===a.value[0]&&"deleteContentBackward"===t.inputType)return a.value="-",n.value="",l.fn=()=>{a.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Gd(t,a,n,o,l);return"boolean"==typeof e?e:(a.value=n.value=o.value="-"===a.value?"":a.value,!1)}{const e=Gd(t,a,n,o,l);if("boolean"==typeof e)return e;a.value=o.value}const r=n.maxlength;if(r>0&&o.value.length>r){o.value=o.value.slice(0,r),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}}));Gn((()=>f.value),(t=>{"number"!==e.type||"-"===a.value&&""===t||(a.value=t.toString())}));const g=["number","digit"],m=Si((()=>g.includes(e.type)?e.step:""));function v(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),h("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),f.value=e.value}}),()=>{let t=e.disabled&&p?ei("input",{key:"disabled-input",ref:u,value:f.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:f.maxlength,step:m.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):ei("input",{key:"input",ref:u,value:f.value,onInput:e=>{f.value=e.target.value.toString()},disabled:!!e.disabled,type:i.value,maxlength:f.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:v,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return ei("uni-input",{ref:c},[ei("div",{class:"uni-input-wrapper"},[no(ei("div",ai(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[zi,!(f.value.length||"-"===a.value||a.value.includes("."))]]),"search"===e.confirmType?ei("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}}),Qd=Xc({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=nn(null),o=Si((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),r=Si((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:s,refresherThreshold:a}=e;return ei("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?ei("div",{class:"uni-scroll-view-refresh"},[ei("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?ei("svg",{key:"refresh__icon",style:{transform:"rotate("+r.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[ei("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),ei("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?ei("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[ei("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?ei("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),ep=me(!0),tp=Xc({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const r=nn(null),i=nn(null),s=nn(null),a=nn(null),l=Jc(r,t),{state:c,scrollTopNumber:u,scrollLeftNumber:f}=function(e){const t=Si((()=>Number(e.scrollTop)||0)),n=Si((()=>Number(e.scrollLeft)||0));return{state:Ht({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:d,realScrollY:p,_scrollLeftChanged:h,_scrollTopChanged:g}=function(e,t,n,o,r,i,s,a,l){let c=!1,u=0,f=!1,d=()=>{};const p=Si((()=>e.scrollX)),h=Si((()=>e.scrollY)),g=Si((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),m=Si((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=s.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=a.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",d),i.removeEventListener("webkitTransitionEnd",d),d=()=>x(e,t),i.addEventListener("transitionend",d),i.addEventListener("webkitTransitionEnd",d),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function y(e){const n=e.target;r("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),h.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+m.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+m.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){h.value&&(e.scrollWithAnimation?v(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?v(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,r=s.value.scrollLeft+n;e.scrollWithAnimation?v(r,"x"):s.value.scrollLeft=r}if(h.value){let n=o.top-t.top,r=s.value.scrollTop+n;e.scrollWithAnimation?v(r,"y"):s.value.scrollTop=r}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=h.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",d),a.value.removeEventListener("webkitTransitionEnd",d)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,r("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),r("refresherrefresh",{},{dy:T.y-C.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(f=!1,r("refresherrestore",{},{dy:T.y-C.y})),"refresherabort"===n&&f&&(f=!1,r("refresherabort",{},{dy:T.y-C.y}))}t.refreshState=n}}let C={x:0,y:0},T={x:0,y:e.refresherThreshold};return Io((()=>{xn((()=>{b(n.value),_(o.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},a=null,l=function(n){if(null===C)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,l=s.value;if(Math.abs(o-C.x)>Math.abs(i-C.y))if(p.value){if(0===l.scrollLeft&&o>C.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&oC.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i0&&(f=!0,r("refresherpulling",n,{deltaY:o,dy:o})))}},d=function(e){1===e.touches.length&&(C={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){T={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),C={x:0,y:0},T={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",d,ep),s.value.addEventListener("touchmove",l,me(!1)),s.value.addEventListener("scroll",i,me(!1)),s.value.addEventListener("touchend",g,ep),Fo((()=>{s.value.removeEventListener("touchstart",d),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",i),s.value.removeEventListener("touchend",g)}))})),To((()=>{h.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)})),Gn(n,(e=>{b(e)})),Gn(o,(e=>{_(e)})),Gn((()=>e.scrollIntoView),(e=>{w(e)})),Gn((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:p,realScrollY:h,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,c,u,f,l,r,i,a,t),m=Si((()=>{let e="";return d.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=Si((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:f,refreshState:d}=c;return ei("uni-scroll-view",{ref:r},[ei("div",{ref:s,class:"uni-scroll-view"},[ei("div",{ref:i,style:m.value,class:v.value},[t?ei(Qd,{refreshState:d,refresherHeight:f,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,ei("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const np={ensp:" ",emsp:" ",nbsp:" "};function op(e,t){return function(e,{space:t,decode:n}){let o="",r=!1;for(let i of e)t&&np[t]&&" "===i&&(i=np[t]),r?(o+="n"===i?"\n":"\\"===i?"\\":"\\"+i,r=!1):"\\"===i?r=!0:o+=i;return n?o.replace(/ /g,np.nbsp).replace(/ /g,np.ensp).replace(/ /g,np.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const rp=Xc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=nn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Mr){const n=op(t.children,{space:e.space,decode:e.decode}),r=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(ni(e)),t!==r&&o.push(ei("br"))}))}else o.push(t)})),ei("uni-text",{ref:n,selectable:!!e.selectable||null},[ei("span",null,o)],8,["selectable"])}}}),ip=c({},qd,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>ap.concat("return").includes(e)}});let sp=!1;const ap=["done","go","next","search","send"];const lp=Xc({name:"Textarea",props:ip,emits:["confirm","linechange",...zd],setup(e,{emit:t,expose:n}){const o=nn(null),r=nn(null),{fieldRef:i,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=Yd(e,o,t),u=Si((()=>s.value.split("\n"))),f=Si((()=>ap.includes(e.confirmType))),d=nn(0),p=nn(null);function h({height:e}){d.value=e}function g(e){"Enter"===e.key&&f.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&f.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Gn((()=>d.value),(t=>{const n=o.value,i=p.value,s=r.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=i.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";sp=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?ei("textarea",{key:"disabled-textarea",ref:i,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":sp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):ei("textarea",{key:"textarea",ref:i,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":sp},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return ei("uni-textarea",{ref:o,"auto-height":e.autoHeight},[ei("div",{ref:r,class:"uni-textarea-wrapper"},[no(ei("div",ai(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[zi,!s.value.length]]),ei("div",{ref:p,class:"uni-textarea-line"},[" "],512),ei("div",{class:"uni-textarea-compute"},[u.value.map((e=>ei("div",null,[e.trim()?e:"."]))),ei(Cd,{initial:!0,onResize:h},null,8,["initial","onResize"])]),"search"===e.confirmType?ei("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),cp=Xc({name:"View",props:c({},Gc),setup(e,{slots:t}){const n=nn(null),{hovering:o,binding:r}=Zc(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?ei("uni-view",ai({class:o.value?i:"",ref:n},r),[Uo(t,"default")],16):ei("uni-view",{ref:n},[Uo(t,"default")],512)}}});function up(e,t,n,o){m(t)&&Bo(e,t.bind(n),o)}function fp(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(Te.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];p(r)?r.forEach((e=>up(o,e,n,t))):up(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,hc(n,"onLoad",e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&hc(n,"onShow")}catch(r){console.error(r.message+"\n"+r.stack)}}}function dp(e,t,n){fp(e,t,n)}function pp(e,t,n){return e[t]=n}function hp(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function gp(e){const t=e.config.errorHandler;return function(n,o,r){t&&t(n,o,r);const i=e._instance;if(!i||!i.proxy)throw n;i.onError?hc(i.proxy,"onError",n):dn(n,0,o&&o.$.vnode,!1)}}function mp(e,t){return e?[...new Set([].concat(e,t))]:t}function vp(e){const t=e.config;var n;t.errorHandler=Ee(e,gp),n=t.optionMergeStrategies,Te.forEach((e=>{n[e]=mp}));const o=t.globalProperties;o.$set=pp,o.$applyOptions=dp,o.$callMethod=hp,function(e){ke.forEach((t=>t(e)))}(e)}function yp(e){const t=Za({history:wp(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:_p});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(bp[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let bp=Object.create(null);const _p=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,bp[o]);if(t)return t}return{left:0,top:0};var o};function wp(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),fa(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=qf(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=If(t[r]);zf(Kf(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const xp={install(e){vp(e),Ac(e),Dc(e),e.config.warnHandler||(e.config.warnHandler=Sp),yp(e)}};function Sp(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Cp={class:"uni-async-loading"},Tp=ei("i",{class:"uni-loading"},null,-1),kp=Yc({name:"AsyncLoading",render:()=>(Dr(),Xr("div",Cp,[Tp]))});function Ep(){window.location.reload()}const Op=Yc({name:"AsyncError",props:["error"],setup(){vl();const{t:e}=gl();return()=>ei("div",{class:"uni-async-error",onClick:Ep},[e("uni.async.error")],8,["onClick"])}});let $p;function Lp(){return $p}function Ap(e){$p=e,Object.defineProperty($p.$.ctx,"$children",{get:()=>qf().map((e=>e.$vm))});const t=$p.$.appContext.app;t.component(kp.name)||t.component(kp.name,kp),t.component(Op.name)||t.component(Op.name,Op),function(e){e.$vm=e,e.$mpType="app";const t=nn(gl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}($p),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}($p),Hc(),wc()}function Pp(e,{clone:t,init:n,setup:o,before:r}){t&&(e=c({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=di();if(n(r.proxy),o(r),i)return i(e,t)},e}function Bp(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?Pp(e.default,t):Pp(e,t)}function Rp(e){return Bp(e,{clone:!0,init:Yf,setup(e){e.$pageInstance=e;const t=lu(),n=be(t.query);e.attrs.__pageQuery=n,If(e.proxy).options=n,e.proxy.options=n;const o=su();var r,i;return Bf(o),e.onReachBottom=Ht([]),e.onPageScroll=Ht([]),Gn([e.onReachBottom,e.onPageScroll],(()=>{const t=lc();e.proxy===t&&rd(e,o)}),{once:!0}),jo((()=>{Zf(e,o)})),Io((()=>{Qf(e);const{onReady:n}=e;n&&R(n),Mp(t)})),Eo((()=>{if(!e.__isVisible){Zf(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&R(n),xn((()=>{Mp(t)}))}}),"ba",r),function(e,t){Eo(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&R(t)}}})),i=o.id,ig.subscribe(Tl(i,"invokeViewApi"),kl),Fo((()=>{!function(e){ig.unsubscribe(Tl(e,"invokeViewApi")),Object.keys(Cl).forEach((t=>{0===t.indexOf(e+".")&&delete Cl[t]}))}(o.id)})),n}})}function jp(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Jp(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";sg.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function Ip(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&sg.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function Np(){const{emit:e}=sg;"visible"===document.visibilityState?e("onAppEnterForeground",c({},Sd)):e("onAppEnterBackground")}function Mp(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&hc("onTabItemTap",{index:n,text:t,pagePath:o})}const Fp=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Hp;function Vp(){if(Hp=Hp||Fp.__DC_STAT_UUID,!Hp){Hp=Date.now()+""+Math.floor(1e7*Math.random());try{Fp.__DC_STAT_UUID=Hp}catch(e){}}return Hp}function Dp(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Wp(){let e,t="0",n="",o="phone";const r=navigator.language;if(cd){e="iOS";const o=ad.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=ad.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(ld){e="Android";const o=ad.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=ad.match(/\((.+?)\)/),i=r?r[1].split(";"):ad.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=hd(),n=gd(t),o=md(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=vd(o);let s=window.innerHeight;const a=Xl.top,l={left:Xl.left,right:i-Xl.right,top:Xl.top,bottom:s-Xl.bottom,width:i-Xl.left-Xl.right,height:s-Xl.top-Xl.bottom},{top:c,bottom:u}=function(){const e=document.documentElement.style,t=Gl(),n=Jl(e,"--window-bottom"),o=Jl(e,"--window-left"),r=Jl(e,"--window-right"),i=Jl(e,"--top-window-height");return{top:t,bottom:n?n+Xl.bottom:0,left:o?o+Xl.left:0,right:r?r+Xl.right:0,topWindowHeight:i||0}}();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:i,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:Xl.top,right:Xl.right,bottom:Xl.bottom,left:Xl.left},screenTop:r-s}}));let zp,Up=!0;function Xp(){Up&&(zp=Wp())}const Yp=Fu(0,(()=>{Xp();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:s,deviceType:a,osname:l,osversion:u}=zp;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Vp(),deviceOrientation:s,deviceType:a,model:o,platform:r,system:i,osName:l?l.toLowerCase():void 0,osVersion:u})})),Kp=Fu(0,(()=>{Xp();const{theme:e,language:t,browserName:n,browserVersion:o}=zp;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Ju?Ju():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})})),Jp=Fu(0,(()=>{Up=!0,Xp(),Up=!1;const e=qp(),t=Yp(),n=Kp();Up=!0;const{ua:o,browserName:r,browserVersion:i,osname:s,osversion:a}=zp,l=c(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)}));const Gp=Fu(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Zp(e){const t=localStorage&&localStorage.getItem(e);if(!v(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Qp=Fu(0,(e=>{try{return Zp(e)}catch(t){return""}})),eh=Fu(0,(e=>{localStorage&&localStorage.removeItem(e)})),th={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function nh({count:e,sourceType:t,type:n,extension:o}){Md();const r=document.createElement("input");return r.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${th[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}let oh=null;const rh=Hu("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{wl();const{t:i}=gl();oh&&(document.body.removeChild(oh),oh=null),oh=nh({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(oh),oh.addEventListener("cancel",(()=>{r("chooseImage:fail cancel")})),oh.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||wd(t),i)}),oe))},tempFiles:r})})),oh.click(),jd||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Zu),ih={esc:["Esc","Escape"],enter:["Enter"]},sh=Object.keys(ih);const ah=ei("div",{class:"uni-mask"},null,-1);function lh(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),_s(mo({setup:()=>()=>(Dr(),Xr(e,t,null,16))}))}function ch(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function uh(e,{onEsc:t,onEnter:n}){const o=nn(e.visible),{key:r,disable:i}=function(){const e=nn(""),t=nn(!1),n=n=>{if(t.value)return;const o=sh.find((e=>-1!==ih[e].indexOf(n.key)));o&&(e.value=o),xn((()=>e.value=""))};return Io((()=>{document.addEventListener("keyup",n)})),Fo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}();return Gn((()=>e.visible),(e=>o.value=e)),Gn((()=>o.value),(e=>i.value=!e)),Kn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}const fh=Mu("request",(({url:e,data:t,header:n={},method:o,dataType:r,responseType:i,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let f=null;const p=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)f=t;else if("json"===p)try{f=JSON.stringify(t)}catch(g){f=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)d(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));f=e.join("&")}else f=t.toString();let h;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;h=new ph(t);const d={method:o,headers:n,body:f,signal:s,credentials:a?"include":"same-origin"},p=setTimeout((function(){h.abort(),u("timeout",{errCode:5})}),l);d.signal.addEventListener("abort",(function(){clearTimeout(p),u("abort",{errCode:600003})})),window.fetch(e,d).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=dh(s);if(h._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],f=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const r of e)n.set(new Uint8Array(r),o),o+=r.byteLength;return n.buffer}(u);let n="text"===i?(new TextDecoder).decode(e):e;return"text"===i&&(n=gh(n,i,r)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),h._emitter.emit("chunkReceived",{data:o}),f()}))};f()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;h=new ph(t),t.open(o,e);for(const e in n)d(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,h.abort(),u("timeout",{errCode:5})}),l);t.responseType=i,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===i?t.responseText:t.response;"text"===i&&(n=gh(n,i,r)),c({data:n,statusCode:e,header:hh(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(f)}return h}),0,nf),dh=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let r=0;r{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function hh(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function gh(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(r){}return o}class mh{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const vh=Mu("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new mh;return p(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(_d(e)):bd(t)))).then((function(t){var n,o=new XMLHttpRequest,f=new FormData;Object.keys(s).forEach((e=>{f.append(e,s[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];f.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(f),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,of),yh=Hu("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===hc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(Lp().$router.go(-e.delta),t()):n("onBackPress")}),0,lf),bh=Hu("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>{if(Nf.handledBeforeEntryPageRoutes)return Cf({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r);Mf.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:r})}),0,sf);function _h(e){__uniConfig.darkmode&&sg.on("onThemeChange",e)}function wh(e){sg.off("onThemeChange",e)}function xh(e){let t={};return __uniConfig.darkmode&&(t=Pe(e,__uniConfig.themeConfig,Dp())),__uniConfig.darkmode?t:e}function Sh(e,t){const n=qt(e),o=n?Ht(xh(e)):xh(e);return __uniConfig.darkmode&&n&&Gn(e,(e=>{const t=xh(e);for(const n in t)o[n]=t[n]})),t&&_h(t),o}const Ch={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Th=mo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=nn(""),o=()=>s.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),s=uh(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),a=function(e){const t=nn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Ch[e].cancelColor})(e,t)};return Kn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Dp()&&n({theme:"dark"}),_h(n))):wh(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:f,placeholderText:d}=e;return n.value=o,ei(Ai,{name:"uni-fade"},{default:()=>[no(ei("uni-modal",{onTouchmove:Yl},[ah,ei("div",{class:"uni-modal"},[t?ei("div",{class:"uni-modal__hd"},[ei("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,f?ei("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:d,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):ei("div",{class:"uni-modal__bd",onTouchmovePassive:Kl,textContent:o},null,40,["onTouchmovePassive","textContent"]),ei("div",{class:"uni-modal__ft"},[l&&ei("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),ei("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[zi,s.value]])]})}}});let kh;const Eh=ie((()=>{sg.on("onHidePopup",(()=>kh.visible=!1))}));let Oh;function $h(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&kh.editable&&(o.content=t),Oh&&Oh(o)}const Lh=Hu("showModal",((e,{resolve:t})=>{Eh(),Oh=t,kh?(c(kh,e),kh.visible=!0):(kh=Ht(e),xn((()=>(lh(Th,kh,$h).mount(ch("u-a-m")),xn((()=>kh.visible=!0))))))}),0,gf),Ah={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==mf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Ph={light:"#fff",dark:"rgba(255,255,255,0.9)"},Bh=e=>Ph[e],Rh=mo({name:"Toast",props:Ah,setup(e){yl(),bl();const{Icon:t}=function(e){const t=nn(Bh(Dp())),n=({theme:e})=>t.value=Bh(e);Kn((()=>{e.visible?_h(n):wh(n)}));return{Icon:Si((()=>{switch(e.icon){case"success":return ei(sc(oc,t.value,38),{class:"uni-toast__icon"});case"error":return ei(sc(rc,t.value,38),{class:"uni-toast__icon"});case"loading":return ei("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=uh(e,{});return()=>{const{mask:o,duration:r,title:i,image:s}=e;return ei(Ai,{name:"uni-fade"},{default:()=>[no(ei("uni-toast",{"data-duration":r},[o?ei("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Yl},null,40,["onTouchmove"]):"",s||t.value?ei("div",{class:"uni-toast"},[s?ei("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,ei("p",{class:"uni-toast__content"},[i])]):ei("div",{class:"uni-sample-toast"},[ei("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[zi,n.value]])]})}}});let jh,Ih,Nh="";const Mh=Ie();function Fh(e){jh?c(jh,e):(jh=Ht(c(e,{visible:!1})),xn((()=>{Mh.run((()=>{Gn([()=>jh.visible,()=>jh.duration],(([e,t])=>{if(e){if(Ih&&clearTimeout(Ih),"onShowLoading"===Nh)return;Ih=setTimeout((()=>{qh("onHideToast")}),t)}else Ih&&clearTimeout(Ih)}))})),sg.on("onHidePopup",(()=>qh("onHidePopup"))),lh(Rh,jh,(()=>{})).mount(ch("u-a-t"))}))),setTimeout((()=>{jh.visible=!0}),10)}const Hh=Hu("showToast",((e,{resolve:t,reject:n})=>{Fh(e),Nh="onShowToast",t()}),0,vf),Vh={icon:"loading",duration:1e8,image:""},Dh=Hu("showLoading",((e,{resolve:t,reject:n})=>{c(e,Vh),Fh(e),Nh="onShowLoading",t()}),0,hf),Wh=Hu("hideLoading",((e,{resolve:t,reject:n})=>{qh("onHideLoading"),t()}));function qh(e){const{t:t}=gl();if(!Nh)return;let n="";if("onHideToast"===e&&"onShowToast"!==Nh?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==Nh&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);Nh="",setTimeout((()=>{jh.visible=!1}),10)}const zh=Hu("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:r})=>{(function(e,t,n){const o=document.fonts;if(o){const r=new FontFace(e,t,n);return r.load().then((()=>{o.add&&o.add(r)}))}return new Promise((o=>{const r=document.createElement("style"),i=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:r,variant:s,featureSettings:a}=n;e&&i.push(`font-style:${e}`),t&&i.push(`font-weight:${t}`),o&&i.push(`font-stretch:${o}`),r&&i.push(`unicode-range:${r}`),s&&i.push(`font-variant:${s}`),a&&i.push(`font-feature-settings:${a}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${i.join(";")}}`,document.head.appendChild(r),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${sd(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${sd(t.substring(4,t.length-1))}')`:sd(t),n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function Uh(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,sg.emit("onNavigationBarChange",{titleText:t})}Kn(t),To(t)}const Xh=Hu("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:s}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=s;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:a}=n;i.titleText=a}o()}(cc(),"setNavigationBarTitle",e,t,n)})),Yh=Yc({name:"TabBar",setup(){const e=nn([]),t=Ef(),n=Sh(t,(()=>{const e=xh(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}nn(c({type:"midButton"},e.midButton)),Kn(n)}(n,e),function(e){Gn((()=>e.shown),(t=>{Ql({"--window-bottom":Rf(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return Kn((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,r=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=r}})),(t,n)=>()=>{const{pagePath:o,text:r}=t;let i=re(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?wf({from:"tabBar",url:i,tabBarText:r}):hc("onTabItemTap",{index:n,text:r,pagePath:o})}}(Qa(),n,e),{style:r,borderStyle:i,placeholderStyle:s}=function(e){const t=Si((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||Af&&n&&"none"!==n&&(t=Kh[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=Si((()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:Jh[t]||Jh.black}})),o=Si((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Io((()=>{n.iconfontSrc&&zh({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:r,color:i}=e;return n.value.map(((n,s)=>{const a=o===s;return function(e,t,n,o,r,i,s,a){return ei("div",{key:s,class:"uni-tabbar__item",onClick:a(r,s)},[Gh(e,t||"",n,o,r,i)],8,["onClick"])}(a?r:i,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)}))}(n,o,e);return ei("uni-tabbar",{class:"uni-tabbar-"+n.position},[ei("div",{class:"uni-tabbar",style:r.value},[ei("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),ei("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const Kh={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},Jh={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function Gh(e,t,n,o,r,i){const{height:s}=i;return ei("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Qh(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&Zh(t,r,i),r.text&&eg(e,r,i),r.redDot&&tg(r.badge)],4)}function Zh(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return ei("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&ei("img",{src:sd(e)},null,8,["src"])],6)}function Qh(e,t,n,o){var r;const{type:i,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(r=n.iconfont)?void 0:r.fontSize)||a,color:t};return ei("div",{class:l,style:c},["midButton"!==i&&ei("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function eg(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:s}=n;return ei("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[r],4)}function tg(e){return ei("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const ng=Yc({name:"Layout",setup(e,{emit:t}){const n=nn(null);Zl({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=Qa();return{routeKey:Si((()=>Kf("/"+e.meta.route,cu()))),isTabBar:Si((()=>e.meta.isTabBar)),routeCache:Gf}}(),{layoutState:r,windowState:i}=function(){lu();{const e=Ht({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Gn((()=>e.marginWidth),(e=>Zl({"--window-margin":e+"px"}))),Gn((()=>e.leftWindowWidth+e.marginWidth),(e=>{Zl({"--window-left":e+"px"})})),Gn((()=>e.rightWindowWidth+e.marginWidth),(e=>{Zl({"--window-right":e+"px"})})),{layoutState:e,windowState:Si((()=>({})))}}}();!function(e,t){const n=lu();function o(){const o=document.body.clientWidth,r=qf();let i={};if(r.length>0){i=If(r[r.length-1]).meta}else{const e=_c(n.path,!0);e&&(i=e.meta)}const s=parseInt(String((d(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,xn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,xn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Gn([()=>n.path],o),Io((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const s=function(e){const t=lu(),n=Ef(),o=Si((()=>t.meta.isTabBar&&n.shown));return Zl({"--tab-bar-height":n.height}),o}(),a=function(e){const t=nn(!1);return Si((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(s);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return ei(Ga,null,{default:Nn((({Component:o})=>[(Dr(),Xr(So,{matchBy:"key",cache:n},[(Dr(),Xr(qn(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return no(ei(Yh,null,null,512),[[zi,e.value]])}(s);return ei("uni-app",{ref:n,class:a.value},[e,t],2)}}});const og=Hu("scanCode",(rg="scanCode",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(rg))));var rg;const ig=c(El,{publishHandler(e,t,n){sg.subscribeHandler(e,t,n)}}),sg=c(Rc,{publishHandler(e,t,n){ig.subscribeHandler(e,t,n)}}),ag=Yc({name:"PageHead",setup(){const e=nn(null),t=su(),n=Sh(t.navigationBar,(()=>{const e=xh(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:r}=function(e){const t=Si((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,r={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(r[`uni-page-head-shadow-${o}`]=!0),r})),n=Si((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const i=function(e,t){if(!t)return ei("div",{class:"uni-page-head-btn",onClick:cg},[sc(ic,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&ei("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return ei("uni-page-head",{"uni-page-head-type":s},[ei("div",{ref:e,class:o.value,style:r.value},[ei("div",{class:"uni-page-head-hd"},[i]),lg(n),ei("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function lg(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:r}){return ei("div",{class:"uni-page-head-bd"},[ei("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?ei("i",{class:"uni-loading"},null):r?ei("img",{src:r,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function cg(){1===Wf().length?Sf({url:"/"}):yh({from:"backbutton",success(){}})}const ug=Yc({name:"PageBody",setup(e,t){const n=nn(null),o=nn(null);return Gn((()=>false.enablePullDownRefresh),(()=>{o.value=null}),{immediate:!0}),()=>ei(Ir,null,[!1,ei("uni-page-wrapper",ai({ref:n},o.value),[ei("uni-page-body",null,[Uo(t.slots,"default")]),null],16)])}}),fg=Yc({name:"Page",setup(e,t){let n=au(cu());const o=n.navigationBar,r={};return Uh(n),()=>ei("uni-page",{"data-page":n.route,style:r},"custom"!==o.style?[ei(ag),dg(t),null]:[dg(t),null])}});function dg(e){return Dr(),Xr(ug,{key:0},{default:Nn((()=>[Uo(e.slots,"page")])),_:3})}const pg={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=Ku;const hg=Object.assign({}),gg=Object.assign;window.__uniConfig=gg({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#F8F8F8",titleText:"物资盘点",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#999999",selectedColor:"#007AFF",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"盘点",iconPath:"/static/tabbar/inventory.png",selectedIconPath:"/static/tabbar/inventory-active.png"},{pagePath:"pages/profile/profile",text:"个人中心",iconPath:"/static/tabbar/profile.png",selectedIconPath:"/static/tabbar/profile-active.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},uniIdRouter:{},condition:{current:0,list:[{name:"",path:"",query:""}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},compilerVersion:"4.76"},{appId:"__UNI__A789D1D",appName:"应急保障物资盘点",appVersion:"1.0.1",appVersionCode:101,async:pg,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(hg).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return gg(e[n]||(e[n]={}),hg[t].default),e}),{}),router:{mode:"hash",base:"/h5/",assets:"assets",routerBase:"/h5/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const mg={delay:pg.delay,timeout:pg.timeout,suspensible:pg.suspensible};pg.loading&&(mg.loadingComponent={name:"SystemAsyncLoading",render:()=>ei(Dn(pg.loading))}),pg.error&&(mg.errorComponent={name:"SystemAsyncError",props:["error"],render(){return ei(Dn(pg.error),{error:this.error})}});const vg=()=>t((()=>import("./pages-index-index.DLMOBsjN.js")),__vite__mapDeps([0,1,2,3])).then((e=>Rp(e.default||e))),yg=yo(gg({loader:vg},mg)),bg=()=>t((()=>import("./pages-profile-profile.DrOqm1nk.js")),__vite__mapDeps([4,1,2,5])).then((e=>Rp(e.default||e))),_g=yo(gg({loader:bg},mg)),wg=()=>t((()=>import("./pages-login-login.7v_elnvs.js")),__vite__mapDeps([6,1,2,7])).then((e=>Rp(e.default||e))),xg=yo(gg({loader:wg},mg)),Sg=()=>t((()=>import("./pages-scan-scan.LnRS99dn.js")),__vite__mapDeps([8,2,9])).then((e=>Rp(e.default||e))),Cg=yo(gg({loader:Sg},mg)),Tg=()=>t((()=>import("./pages-inventory-inventory.kBIVsz8T.js")),__vite__mapDeps([10,1,2,11])).then((e=>Rp(e.default||e))),kg=yo(gg({loader:Tg},mg)),Eg=()=>t((()=>import("./pages-plan-detail-plan-detail.5c5rGa03.js")),__vite__mapDeps([12,1,2,13])).then((e=>Rp(e.default||e))),Og=yo(gg({loader:Eg},mg));function $g(e,t){return Dr(),Xr(fg,null,{page:Nn((()=>[ei(e,gg({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(yg,t)}},loader:vg,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"物资盘点",type:"default"},isNVue:!1}},{path:"/pages/profile/profile",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(_g,t)}},loader:bg,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"个人中心",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(xg,t)}},loader:wg,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/scan/scan",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(Cg,t)}},loader:Sg,meta:{navigationBar:{titleText:"扫码盘点",type:"default"},isNVue:!1}},{path:"/pages/inventory/inventory",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(kg,t)}},loader:Tg,meta:{navigationBar:{titleText:"物资盘点",type:"default"},isNVue:!1}},{path:"/pages/plan-detail/plan-detail",component:{setup(){const e=Lp(),t=e&&e.$route&&e.$route.query||{};return()=>$g(Og,t)}},loader:Eg,meta:{navigationBar:{titleText:"计划详情",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const Lg={globalData:{hhwUHFController:null,globalEvent:null},onLaunch:function(){console.log("App Launch"),this.globalData.hhwUHFController;const e=Qp("token");e?Sf({url:"/pages/index/index"}):(Sf({url:"/pages/login/login"}),console.log("App Launch token1234",e))},onShow:function(){console.log("App Show"),console.log("H5端:跳过UHF初始化操作")},onHide:function(){console.log("App Hide"),console.log("H5端:跳过UHF关闭操作")}};Bp(Lg,{init:Ap,setup(e){const t=lu(),n=()=>{var n;n=e,Object.keys(Gu).forEach((e=>{Gu[e].forEach((t=>{Bo(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i}=e,s=function({path:e,query:t}){return c(xd,{path:e,query:t}),c(Sd,xd),c({},xd)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:be(t.query)});if(o&&R(o,s),r&&R(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};Tf(),i&&R(i,e)}};return mr(Fa).isReady().then(n),Io((()=>{window.addEventListener("resize",xe(jp,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",Ip),document.addEventListener("visibilitychange",Np),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{sg.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Dr(),Xr(ng));e.setup=(e,o)=>{const r=t&&t(e,o);return m(r)?n:r},e.render=n}});const Ag="http://192.168.60.99:9004/",Pg={BASE_API:Ag};(function(){const e=_s(Lg);return e.config.globalProperties.$config=Pg,{app:e}})().app.use(xp).mount("#app");export{og as A,rh as B,lp as C,Xh as D,fh as E,Ir as F,Ag as G,Qp as H,Zd as I,vh as J,tp as S,Lh as a,Dh as b,Xr as c,ei as d,ni as e,Ur as f,Jp as g,Wh as h,zo as i,oi as j,Qr as k,ru as l,cp as m,bh as n,Dr as o,rp as p,vs as q,Sf as r,Hh as s,X as t,fe as u,eh as v,Nn as w,Ad as x,Gp as y,wf as z}; diff --git a/unpackage/dist/build/web/assets/inventory-BqgoUPT0.css b/unpackage/dist/build/web/assets/inventory-BqgoUPT0.css deleted file mode 100644 index 434ba50..0000000 --- a/unpackage/dist/build/web/assets/inventory-BqgoUPT0.css +++ /dev/null @@ -1 +0,0 @@ -.inventory-bg[data-v-3954e584]{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card[data-v-3954e584]{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group[data-v-3954e584]{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item[data-v-3954e584]{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item[data-v-3954e584]:last-child{margin-bottom:0}.readonly-label[data-v-3954e584]{color:#666;font-size:.875rem;width:20%}.readonly-value[data-v-3954e584]{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group[data-v-3954e584]{margin-bottom:1rem}.form-label[data-v-3954e584]{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input[data-v-3954e584]{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea[data-v-3954e584]{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload[data-v-3954e584]{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview[data-v-3954e584]{position:relative;width:5rem;height:5rem}.photo-btn[data-v-3954e584]{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont[data-v-3954e584]{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text[data-v-3954e584]{font-size:.75rem;color:#666}.photo-preview[data-v-3954e584]{position:relative}.photo-img[data-v-3954e584]{width:5rem;height:5rem;border-radius:.5rem}.photo-del[data-v-3954e584]{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon[data-v-3954e584]{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn[data-v-3954e584]{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn[data-v-3954e584]:active{opacity:.9} diff --git a/unpackage/dist/build/web/assets/inventory-C-dvnupk.css b/unpackage/dist/build/web/assets/inventory-C-dvnupk.css new file mode 100644 index 0000000..bdcac6e --- /dev/null +++ b/unpackage/dist/build/web/assets/inventory-C-dvnupk.css @@ -0,0 +1 @@ +.inventory-bg[data-v-d025f7c1]{min-height:100vh;background:#f5f6f7;padding:.75rem}.inventory-card[data-v-d025f7c1]{background:#fff;border-radius:.75rem;padding:1rem .75rem;margin-bottom:.75rem}.readonly-group[data-v-d025f7c1]{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.readonly-item[data-v-d025f7c1]{display:flex;justify-content:space-between;margin-bottom:.625rem}.readonly-item[data-v-d025f7c1]:last-child{margin-bottom:0}.readonly-label[data-v-d025f7c1]{color:#666;font-size:.875rem;width:20%}.readonly-value[data-v-d025f7c1]{color:#333;font-size:.875rem;font-weight:500;text-align:right;width:75%}.form-group[data-v-d025f7c1]{margin-bottom:1rem}.form-label[data-v-d025f7c1]{font-size:.875rem;color:#333;margin-bottom:.5rem;font-weight:500}.form-input[data-v-d025f7c1]{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;font-size:.875rem;color:#333}.form-textarea[data-v-d025f7c1]{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333}.photo-upload[data-v-d025f7c1]{display:flex;flex-wrap:wrap;gap:.625rem}.photo-preview[data-v-d025f7c1]{position:relative;width:5rem;height:5rem}.photo-btn[data-v-d025f7c1]{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0}.photo-btn .iconfont[data-v-d025f7c1]{font-size:1.5rem;color:#666;margin-bottom:.25rem}.btn-text[data-v-d025f7c1]{font-size:.75rem;color:#666}.photo-preview[data-v-d025f7c1]{position:relative}.photo-img[data-v-d025f7c1]{width:5rem;height:5rem;border-radius:.5rem}.photo-del[data-v-d025f7c1]{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.delete-icon[data-v-d025f7c1]{color:#ff4d4f;font-size:1rem;font-weight:700;line-height:1}.submit-btn[data-v-d025f7c1]{width:100%;height:2.75rem;background:#409eff;color:#fff;font-size:1rem;font-weight:500;border-radius:1.375rem;margin-top:1.5rem}.submit-btn[data-v-d025f7c1]:active{opacity:.9}.maintenance-section[data-v-d025f7c1]{margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:.5rem}.section-title[data-v-d025f7c1]{font-size:1rem;font-weight:700;color:#333;margin-bottom:.75rem}.maintenance-list[data-v-d025f7c1]{display:flex;flex-direction:column;gap:.75rem}.maintenance-item[data-v-d025f7c1]{background:#fff;border-radius:.5rem;padding:.75rem;border:1px solid #e0e0e0}.maintenance-row[data-v-d025f7c1]{display:flex;align-items:flex-start;margin-bottom:.5rem;line-height:1.6}.maintenance-row[data-v-d025f7c1]:last-child{margin-bottom:0}.maintenance-label[data-v-d025f7c1]{font-size:.8125rem;color:#666;width:7.5rem;flex-shrink:0}.maintenance-value[data-v-d025f7c1]{font-size:.8125rem;color:#333;flex:1;word-break:break-all}.maintenance-actions[data-v-d025f7c1]{margin-top:.625rem;padding-top:.625rem;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.action-btn[data-v-d025f7c1]{padding:.375rem .75rem;border-radius:.5rem;font-size:.75rem;font-weight:500;border:none;margin-left:.5rem}.complete-btn[data-v-d025f7c1]{background:linear-gradient(135deg,#52c41a,#73d13d);color:#fff;box-shadow:0 2px 8px rgba(82,196,26,.3)}.complete-btn[data-v-d025f7c1]:active{opacity:.9;transform:scale(.98)}.view-btn[data-v-d025f7c1]{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 2px 8px rgba(64,158,255,.3)}.view-btn[data-v-d025f7c1]:active{opacity:.9;transform:scale(.98)}.status-badge[data-v-d025f7c1]{display:inline-block;padding:.1875rem .375rem;border-radius:.375rem;font-size:.6875rem;font-weight:500;white-space:nowrap}.status-badge.status-normal[data-v-d025f7c1]{background:#e6f7ff;color:#1890ff;border:1px solid #91d5ff}.status-badge.status-urgent[data-v-d025f7c1]{background:#fff7e6;color:#fa8c16;border:1px solid #ffd591}.status-badge.status-overdue[data-v-d025f7c1]{background:#fff1f0;color:#ff4d4f;border:1px solid #ffccc7}.status-badge.status-default[data-v-d025f7c1]{background:#f5f5f5;color:#999;border:1px solid #d9d9d9}.empty-maintenance[data-v-d025f7c1]{text-align:center;padding:1.875rem 0;color:#999;font-size:.875rem}.inventory-action-section[data-v-d025f7c1]{margin-top:1rem;margin-bottom:1rem;display:flex;justify-content:center}.inventory-action-btn[data-v-d025f7c1]{width:6.25rem;height:2.5rem;background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:1.25rem;font-size:1rem;font-weight:600;box-shadow:0 4px 12px rgba(64,158,255,.3);transition:all .3s ease}.inventory-action-btn[data-v-d025f7c1]:active{transform:scale(.95);box-shadow:0 2px 8px rgba(64,158,255,.4)}.inventory-modal[data-v-d025f7c1]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;padding:1.25rem;box-sizing:border-box}.modal-content[data-v-d025f7c1]{background:#fff;border-radius:.75rem;width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header[data-v-d025f7c1]{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.modal-title[data-v-d025f7c1]{font-size:1.125rem;font-weight:700;color:#333}.modal-close[data-v-d025f7c1]{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.modal-close[data-v-d025f7c1]:active{background:#e0e0e0}.close-icon[data-v-d025f7c1]{font-size:1.5rem;color:#666;line-height:1}.modal-body[data-v-d025f7c1]{flex:1;padding:1rem .75rem;overflow-y:auto}.modal-footer[data-v-d025f7c1]{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.modal-btn[data-v-d025f7c1]{flex:1;height:2.75rem;border-radius:1.375rem;font-size:1rem;font-weight:500;border:none;transition:all .3s ease;margin-top:0}.cancel-btn[data-v-d025f7c1]{background:#f5f5f5;color:#666}.cancel-btn[data-v-d025f7c1]:active{background:#e0e0e0;transform:scale(.98)}.modal-footer .submit-btn[data-v-d025f7c1]{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;box-shadow:0 4px 12px rgba(64,158,255,.3)}.modal-footer .submit-btn[data-v-d025f7c1]:active{opacity:.9;transform:scale(.98)}.detail-modal[data-v-d025f7c1]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:999;padding:1.25rem;box-sizing:border-box}.detail-modal-content[data-v-d025f7c1]{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.detail-modal-header[data-v-d025f7c1]{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.detail-modal-title[data-v-d025f7c1]{font-size:1.125rem;font-weight:700;color:#333}.detail-modal-close[data-v-d025f7c1]{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.detail-modal-close[data-v-d025f7c1]:active{background:#e0e0e0}.detail-modal-body[data-v-d025f7c1]{flex:1;padding:1rem .75rem;overflow-y:auto}.detail-form-group[data-v-d025f7c1]{margin-bottom:1rem;display:flex;flex-direction:column;gap:.375rem}.detail-form-group[data-v-d025f7c1]:last-child{margin-bottom:0}.detail-form-label[data-v-d025f7c1]{font-size:.875rem;color:#666;font-weight:500}.detail-form-value[data-v-d025f7c1]{font-size:.875rem;color:#333;line-height:1.6;word-break:break-all}.detail-photo-gallery[data-v-d025f7c1]{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:.375rem}.detail-photo-preview[data-v-d025f7c1]{width:6.25rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-sign-preview[data-v-d025f7c1]{width:9.375rem;height:6.25rem;border-radius:.5rem;background:#f5f5f5}.detail-modal-footer[data-v-d025f7c1]{display:flex;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.detail-modal-footer .submit-btn[data-v-d025f7c1]{width:100%;margin-top:0}.complete-modal[data-v-d025f7c1]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:998;padding:1.25rem;box-sizing:border-box}.complete-modal-content[data-v-d025f7c1]{background:#fff;border-radius:.75rem;width:100%;max-width:21.875rem;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.complete-modal-header[data-v-d025f7c1]{display:flex;justify-content:space-between;align-items:center;padding:1rem .75rem;border-bottom:1px solid #e0e0e0}.complete-modal-title[data-v-d025f7c1]{font-size:1.125rem;font-weight:700;color:#333}.complete-modal-close[data-v-d025f7c1]{width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#f5f5f5;cursor:pointer}.complete-modal-close[data-v-d025f7c1]:active{background:#e0e0e0}.complete-modal-body[data-v-d025f7c1]{flex:1;padding:1rem .75rem;overflow-y:auto}.complete-form-group[data-v-d025f7c1]{margin-bottom:1rem}.complete-form-group[data-v-d025f7c1]:last-child{margin-bottom:0}.complete-form-label[data-v-d025f7c1]{font-size:.875rem;color:#333;font-weight:500;margin-bottom:.5rem;display:block}.complete-form-input[data-v-d025f7c1]{height:2.75rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:0 .75rem;display:flex;align-items:center;font-size:.875rem}.input-value[data-v-d025f7c1]{color:#333}.input-placeholder[data-v-d025f7c1]{color:#999}.complete-form-textarea[data-v-d025f7c1]{min-height:5rem;background:#f8f9fa;border:none;border-radius:.5rem;padding:.625rem .75rem;font-size:.875rem;color:#333;width:100%;box-sizing:border-box}.complete-photo-upload[data-v-d025f7c1]{display:flex;flex-wrap:wrap;gap:.625rem}.complete-photo-preview[data-v-d025f7c1]{position:relative;width:5rem;height:5rem}.complete-photo-img[data-v-d025f7c1]{width:5rem;height:5rem;border-radius:.5rem}.complete-photo-del[data-v-d025f7c1]{position:absolute;top:-.5rem;right:-.5rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.complete-photo-btn[data-v-d025f7c1]{width:5rem;height:5rem;background:#f8f9fa;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border:none}.complete-photo-btn .iconfont[data-v-d025f7c1]{font-size:1.5rem;color:#666;margin-bottom:.25rem}.signature-wrapper[data-v-d025f7c1]{background:#fff;border:2px solid #e0e0e0;border-radius:.5rem;padding:.625rem}.signature-canvas[data-v-d025f7c1]{width:100%;height:9.375rem;background:#fff;border:1px solid #e0e0e0;border-radius:.25rem;touch-action:none;box-sizing:border-box}.signature-actions[data-v-d025f7c1]{margin-top:.5rem;display:flex;justify-content:flex-end}.signature-btn[data-v-d025f7c1]{padding:.375rem .75rem;background:#f5f5f5;color:#666;border:none;border-radius:.5rem;font-size:.75rem}.signature-btn[data-v-d025f7c1]:active{background:#e0e0e0}.complete-modal-footer[data-v-d025f7c1]{display:flex;gap:.75rem;padding:.75rem;border-top:1px solid #e0e0e0;align-items:center}.complete-modal-footer .cancel-btn[data-v-d025f7c1],.complete-modal-footer .submit-btn[data-v-d025f7c1]{flex:1;margin-top:0} diff --git a/unpackage/dist/build/web/assets/pages-index-index.DLMOBsjN.js b/unpackage/dist/build/web/assets/pages-index-index.Cmrm55fy.js similarity index 99% rename from unpackage/dist/build/web/assets/pages-index-index.DLMOBsjN.js rename to unpackage/dist/build/web/assets/pages-index-index.Cmrm55fy.js index f83128a..a29619b 100644 --- a/unpackage/dist/build/web/assets/pages-index-index.DLMOBsjN.js +++ b/unpackage/dist/build/web/assets/pages-index-index.Cmrm55fy.js @@ -1 +1 @@ -import{s as t,n as e,a as r,g as n,r as i,b as s,h as o,c as a,w as l,S as c,o as h,d as u,e as d,t as f,f as g,i as w,F as m,j as A,k as C,l as E,m as p,p as _,q as I,u as S}from"./index-AvyRkr7C.js";import{g as T,a as y}from"./api.BGBfCZZa.js";import{_ as R}from"./_plugin-vue_export-helper.BCo6x5W8.js";function N(t,e){for(var r=0;rn[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D,O;(O=D||(D={}))[O.QR_CODE=0]="QR_CODE",O[O.AZTEC=1]="AZTEC",O[O.CODABAR=2]="CODABAR",O[O.CODE_39=3]="CODE_39",O[O.CODE_93=4]="CODE_93",O[O.CODE_128=5]="CODE_128",O[O.DATA_MATRIX=6]="DATA_MATRIX",O[O.MAXICODE=7]="MAXICODE",O[O.ITF=8]="ITF",O[O.EAN_13=9]="EAN_13",O[O.EAN_8=10]="EAN_8",O[O.PDF_417=11]="PDF_417",O[O.RSS_14=12]="RSS_14",O[O.RSS_EXPANDED=13]="RSS_EXPANDED",O[O.UPC_A=14]="UPC_A",O[O.UPC_E=15]="UPC_E",O[O.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION";var b,M,P,B,v=new Map([[D.QR_CODE,"QR_CODE"],[D.AZTEC,"AZTEC"],[D.CODABAR,"CODABAR"],[D.CODE_39,"CODE_39"],[D.CODE_93,"CODE_93"],[D.CODE_128,"CODE_128"],[D.DATA_MATRIX,"DATA_MATRIX"],[D.MAXICODE,"MAXICODE"],[D.ITF,"ITF"],[D.EAN_13,"EAN_13"],[D.EAN_8,"EAN_8"],[D.PDF_417,"PDF_417"],[D.RSS_14,"RSS_14"],[D.RSS_EXPANDED,"RSS_EXPANDED"],[D.UPC_A,"UPC_A"],[D.UPC_E,"UPC_E"],[D.UPC_EAN_EXTENSION,"UPC_EAN_EXTENSION"]]);function L(t){return Object.values(D).includes(t)}(M=b||(b={}))[M.UNKNOWN=0]="UNKNOWN",M[M.URL=1]="URL",(B=P||(P={}))[B.SCAN_TYPE_CAMERA=0]="SCAN_TYPE_CAMERA",B[B.SCAN_TYPE_FILE=1]="SCAN_TYPE_FILE";var F,k,x=function(){function t(){}return t.GITHUB_PROJECT_URL="https://github.com/mebjas/html5-qrcode",t.SCAN_DEFAULT_FPS=2,t.DEFAULT_DISABLE_FLIP=!1,t.DEFAULT_REMEMBER_LAST_CAMERA_USED=!0,t.DEFAULT_SUPPORTED_SCAN_TYPE=[P.SCAN_TYPE_CAMERA,P.SCAN_TYPE_FILE],t}(),U=function(){function t(t,e){this.format=t,this.formatName=e}return t.prototype.toString=function(){return this.formatName},t.create=function(e){if(!v.has(e))throw"".concat(e," not in html5QrcodeSupportedFormatsTextMap");return new t(e,v.get(e))},t}(),H=function(){function t(){}return t.createFromText=function(t){return{decodedText:t,result:{text:t}}},t.createFromQrcodeResult=function(t){return{decodedText:t.text,result:t}},t}();(k=F||(F={}))[k.UNKWOWN_ERROR=0]="UNKWOWN_ERROR",k[k.IMPLEMENTATION_ERROR=1]="IMPLEMENTATION_ERROR",k[k.NO_CODE_FOUND_ERROR=2]="NO_CODE_FOUND_ERROR";var V=function(){function t(){}return t.createFrom=function(t){return{errorMessage:t,type:F.UNKWOWN_ERROR}},t}(),G=function(){function t(t){this.verbose=t}return t.prototype.log=function(t){this.verbose&&console.log(t)},t.prototype.warn=function(t){this.verbose&&console.warn(t)},t.prototype.logError=function(t,e){(this.verbose||!0===e)&&console.error(t)},t.prototype.logErrors=function(t){if(0===t.length)throw"Logger#logError called without arguments";this.verbose&&console.error(t)},t}();function X(t){return null==t}var W=function(){function t(){}return t.codeParseError=function(t){return"QR code parse error, error = ".concat(t)},t.errorGettingUserMedia=function(t){return"Error getting userMedia, error = ".concat(t)},t.onlyDeviceSupportedError=function(){return"The device doesn't support navigator.mediaDevices , only supported cameraIdOrConfig in this case is deviceId parameter (string)."},t.cameraStreamingNotSupported=function(){return"Camera streaming not supported by the browser."},t.unableToQuerySupportedDevices=function(){return"Unable to query supported devices, unknown error."},t.insecureContextCameraQueryError=function(){return"Camera access is only supported in secure context like https or localhost."},t.scannerPaused=function(){return"Scanner paused"},t}(),z=function(){function t(){}return t.isMediaStreamConstraintsValid=function(t,e){if("object"!=typeof t){var r=typeof t;return e.logError("videoConstraints should be of type object, the "+"object passed is of type ".concat(r,"."),!0),!1}for(var n=new Set(["autoGainControl","channelCount","echoCancellation","latency","noiseSuppression","sampleRate","sampleSize","volume"]),i=0,s=Object.keys(t);ir)throw new u("fromIndex("+e+") > toIndex("+r+")");if(e<0)throw new A(e);if(r>t)throw new A(r)}static asList(...t){return t}static create(t,e,r){return Array.from({length:t}).map((t=>Array.from({length:e}).fill(r)))}static createInt32Array(t,e,r){return Array.from({length:t}).map((t=>Int32Array.from({length:e}).fill(r)))}static equals(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(let r=0,n=t.length;r>1,o=r(e,t[s]);if(o>0)n=s+1;else{if(!(o<0))return s;i=s-1}}return-n-1}static numberComparator(t,e){return t-e}}class E{static numberOfTrailingZeros(t){let e;if(0===t)return 32;let r=31;return e=t<<16,0!==e&&(r-=16,t=e),e=t<<8,0!==e&&(r-=8,t=e),e=t<<4,0!==e&&(r-=4,t=e),e=t<<2,0!==e&&(r-=2,t=e),r-(t<<1>>>31)}static numberOfLeadingZeros(t){if(0===t)return 32;let e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-=t>>>31,e}static toHexString(t){return t.toString(16)}static toBinaryString(t){return String(parseInt(String(t),2))}static bitCount(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,t+=t>>>8,63&(t+=t>>>16)}static truncDivision(t,e){return Math.trunc(t/e)}static parseInt(t,e){return parseInt(t,e)}}E.MIN_VALUE_32_BITS=-2147483648,E.MAX_VALUE=Number.MAX_SAFE_INTEGER;class p{constructor(t,e){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==e?p.makeArray(t):e)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(t){if(t>32*this.bits.length){const e=p.makeArray(t);w.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e}}get(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))}set(t){this.bits[Math.floor(t/32)]|=1<<(31&t)}flip(t){this.bits[Math.floor(t/32)]^=1<<(31&t)}getNextSet(t){const e=this.size;if(t>=e)return e;const r=this.bits;let n=Math.floor(t/32),i=r[n];i&=~((1<<(31&t))-1);const s=r.length;for(;0===i;){if(++n===s)return e;i=r[n]}const o=32*n+E.numberOfTrailingZeros(i);return o>e?e:o}getNextUnset(t){const e=this.size;if(t>=e)return e;const r=this.bits;let n=Math.floor(t/32),i=~r[n];i&=~((1<<(31&t))-1);const s=r.length;for(;0===i;){if(++n===s)return e;i=~r[n]}const o=32*n+E.numberOfTrailingZeros(i);return o>e?e:o}setBulk(t,e){this.bits[Math.floor(t/32)]=e}setRange(t,e){if(ethis.size)throw new u;if(e===t)return;e--;const r=Math.floor(t/32),n=Math.floor(e/32),i=this.bits;for(let s=r;s<=n;s++){const o=(2<<(sr?0:31&t));i[s]|=o}}clear(){const t=this.bits.length,e=this.bits;for(let r=0;rthis.size)throw new u;if(e===t)return!0;e--;const n=Math.floor(t/32),i=Math.floor(e/32),s=this.bits;for(let o=n;o<=i;o++){const a=(2<<(on?0:31&t))&4294967295;if((s[o]&a)!==(r?a:0))return!1}return!0}appendBit(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++}appendBits(t,e){if(e<0||e>32)throw new u("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(let r=e;r>0;r--)this.appendBit(1==(t>>r-1&1))}appendBitArray(t){const e=t.size;this.ensureCapacity(this.size+e);for(let r=0;r>1&1431655765|(1431655765&r)<<1,r=r>>2&858993459|(858993459&r)<<2,r=r>>4&252645135|(252645135&r)<<4,r=r>>8&16711935|(16711935&r)<<8,r=r>>16&65535|(65535&r)<<16,t[e-i]=r}if(this.size!==32*r){const e=32*r-this.size;let n=t[0]>>>e;for(let i=1;i>>e}t[r-1]=n}this.bits=t}static makeArray(t){return new Int32Array(Math.floor((t+31)/32))}equals(t){if(!(t instanceof p))return!1;const e=t;return this.size===e.size&&C.equals(this.bits,e.bits)}hashCode(){return 31*this.size+C.hashCode(this.bits)}toString(){let t="";for(let e=0,r=this.size;e=900)throw new T("incorect value");const e=y.VALUES_TO_ECI.get(t);if(void 0===e)throw new T("incorect value");return e}static getCharacterSetECIByName(t){const e=y.NAME_TO_ECI.get(t);if(void 0===e)throw new T("incorect value");return e}equals(t){if(!(t instanceof y))return!1;const e=t;return this.getName()===e.getName()}}y.VALUE_IDENTIFIER_TO_ECI=new Map,y.VALUES_TO_ECI=new Map,y.NAME_TO_ECI=new Map,y.Cp437=new y(_.Cp437,Int32Array.from([0,2]),"Cp437"),y.ISO8859_1=new y(_.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),y.ISO8859_2=new y(_.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),y.ISO8859_3=new y(_.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),y.ISO8859_4=new y(_.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),y.ISO8859_5=new y(_.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),y.ISO8859_6=new y(_.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),y.ISO8859_7=new y(_.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),y.ISO8859_8=new y(_.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),y.ISO8859_9=new y(_.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),y.ISO8859_10=new y(_.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),y.ISO8859_11=new y(_.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),y.ISO8859_13=new y(_.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),y.ISO8859_14=new y(_.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),y.ISO8859_15=new y(_.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),y.ISO8859_16=new y(_.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),y.SJIS=new y(_.SJIS,20,"SJIS","Shift_JIS"),y.Cp1250=new y(_.Cp1250,21,"Cp1250","windows-1250"),y.Cp1251=new y(_.Cp1251,22,"Cp1251","windows-1251"),y.Cp1252=new y(_.Cp1252,23,"Cp1252","windows-1252"),y.Cp1256=new y(_.Cp1256,24,"Cp1256","windows-1256"),y.UnicodeBigUnmarked=new y(_.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),y.UTF8=new y(_.UTF8,26,"UTF8","UTF-8"),y.ASCII=new y(_.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),y.Big5=new y(_.Big5,28,"Big5"),y.GB18030=new y(_.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),y.EUC_KR=new y(_.EUC_KR,30,"EUC_KR","EUC-KR");class R extends c{}R.kind="UnsupportedOperationException";class N{static decode(t,e){const r=this.encodingName(e);return this.customDecoder?this.customDecoder(t,r):"undefined"==typeof TextDecoder||this.shouldDecodeOnFallback(r)?this.decodeFallback(t,r):new TextDecoder(r).decode(t)}static shouldDecodeOnFallback(t){return!N.isBrowser()&&"ISO-8859-1"===t}static encode(t,e){const r=this.encodingName(e);return this.customEncoder?this.customEncoder(t,r):"undefined"==typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)}static isBrowser(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)}static encodingName(t){return"string"==typeof t?t:t.getName()}static encodingCharacterSet(t){return t instanceof y?t:y.getCharacterSetECIByName(t)}static decodeFallback(t,e){const r=this.encodingCharacterSet(e);if(N.isDecodeFallbackSupported(r)){let e="";for(let r=0,n=t.length;r3&&239===t[0]&&187===t[1]&&191===t[2];for(let C=0;C0?0==(128&e)?s=!1:o--:0!=(128&e)&&(0==(64&e)?s=!1:(o++,0==(32&e)?a++:(o++,0==(16&e)?l++:(o++,0==(8&e)?c++:s=!1))))),n&&(e>127&&e<160?n=!1:e>159&&(e<192||215===e||247===e)&&m++),i&&(h>0?e<64||127===e||e>252?i=!1:h--:128===e||160===e||e>239?i=!1:e>160&&e<224?(u++,f=0,d++,d>g&&(g=d)):e>127?(h++,d=0,f++,f>w&&(w=f)):(d=0,f=0))}return s&&o>0&&(s=!1),i&&h>0&&(i=!1),s&&(A||a+l+c>0)?D.UTF8:i&&(D.ASSUME_SHIFT_JIS||g>=3||w>=3)?D.SHIFT_JIS:n&&i?2===g&&2===u||10*m>=r?D.SHIFT_JIS:D.ISO88591:n?D.ISO88591:i?D.SHIFT_JIS:s?D.UTF8:D.PLATFORM_DEFAULT_ENCODING}static format(t,...e){let r=-1;function n(t,n,i,s,o,a){if("%%"===t)return"%";if(void 0===e[++r])return;t=s?parseInt(s.substr(1)):void 0;let l,c=o?parseInt(o.substr(1)):void 0;switch(a){case"s":l=e[r];break;case"c":l=e[r][0];break;case"f":l=parseFloat(e[r]).toFixed(t);break;case"p":l=parseFloat(e[r]).toPrecision(t);break;case"e":l=parseFloat(e[r]).toExponential(t);break;case"x":l=parseInt(e[r]).toString(c||16);break;case"d":l=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(c);let h=parseInt(i),u=i&&i[0]+""=="0"?"0":" ";for(;l.lengths){if(-1===o)o=i-s;else if(i-s!==o)throw new u("row lengths do not match");s=i,a++}l++}else if(t.substring(l,l+e.length)===e)l+=e.length,n[i]=!0,i++;else{if(t.substring(l,l+r.length)!==r)throw new u("illegal character encountered: "+t.substring(l));l+=r.length,n[i]=!1,i++}if(i>s){if(-1===o)o=i-s;else if(i-s!==o)throw new u("row lengths do not match");a++}const c=new b(o,a);for(let h=0;h>>(31&t)&1)}set(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(31&t)&4294967295}unset(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(31&t)&4294967295)}flip(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(31&t)&4294967295}xor(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new u("input matrix dimensions do not match");const e=new p(Math.floor(this.width/32)+1),r=this.rowSize,n=this.bits;for(let i=0,s=this.height;ithis.height||i>this.width)throw new u("The region must fit inside the matrix");const o=this.rowSize,a=this.bits;for(let l=e;la&&(a=l),32*to){let r=31;for(;e>>>r==0;)r--;32*t+r>o&&(o=32*t+r)}}}return o=0&&0===e[r];)r--;if(r<0)return null;const n=Math.floor(r/t);let i=32*Math.floor(r%t);const s=e[r];let o=31;for(;s>>>o==0;)o--;return i+=o,Int32Array.from([i,n])}getWidth(){return this.width}getHeight(){return this.height}getRowSize(){return this.rowSize}equals(t){if(!(t instanceof b))return!1;const e=t;return this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&C.equals(this.bits,e.bits)}hashCode(){let t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+C.hashCode(this.bits),t}toString(t="X ",e=" ",r="\n"){return this.buildToString(t,e,r)}buildToString(t,e,r){let n=new O;for(let i=0,s=this.height;i>P.LUMINANCE_SHIFT]++;const o=P.estimateBlackPoint(s);if(n<3)for(let a=0;a>P.LUMINANCE_SHIFT]++}const s=P.estimateBlackPoint(i),o=t.getMatrix();for(let a=0;ai&&(n=c,i=t[c]),t[c]>r&&(r=t[c]);let s=0,o=0;for(let c=0;co&&(s=c,o=r)}if(n>s){const t=n;n=s,s=t}if(s-n<=e/16)throw new M;let a=s-1,l=-1;for(let c=s-1;c>n;c--){const e=c-n,i=e*e*(s-c)*(r-t[c]);i>l&&(a=c,l=i)}return a<=B.MINIMUM_DIMENSION&&r>=B.MINIMUM_DIMENSION){const n=t.getMatrix();let i=e>>B.BLOCK_SIZE_POWER;0!=(e&B.BLOCK_SIZE_MASK)&&i++;let s=r>>B.BLOCK_SIZE_POWER;0!=(r&B.BLOCK_SIZE_MASK)&&s++;const o=B.calculateBlackPoints(n,i,s,e,r),a=new b(e,r);B.calculateThresholdForBlock(n,i,s,e,r,o,a),this.matrix=a}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(t){return new B(t)}static calculateThresholdForBlock(t,e,r,n,i,s,o){const a=i-B.BLOCK_SIZE,l=n-B.BLOCK_SIZE;for(let c=0;ca&&(i=a);const h=B.cap(c,2,r-3);for(let r=0;rl&&(a=l);const c=B.cap(r,2,e-3);let u=0;for(let t=-2;t<=2;t++){const e=s[h+t];u+=e[c-2]+e[c-1]+e[c]+e[c+1]+e[c+2]}const d=u/25;B.thresholdBlock(t,a,i,d,n,o)}}}static cap(t,e,r){return tr?r:t}static thresholdBlock(t,e,r,n,i,s){for(let o=0,a=r*i+e;os&&(r=s);for(let i=0;io&&(e=o);let s=0,c=255,h=0;for(let i=0,o=r*n+e;ih&&(h=r)}if(h-c>B.MIN_DYNAMIC_RANGE)for(i++,o+=n;i>2*B.BLOCK_SIZE_POWER;if(h-c<=B.MIN_DYNAMIC_RANGE&&(u=c/2,l>0&&i>0)){const t=(a[l-1][i]+2*a[l][i-1]+a[l-1][i-1])/4;c>10,n[s]=e}return n}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth(),n=t*r;return null===e?e=this.buffer.slice(n,n+r):(e.lengthnew k(t.deviceId,t.label)))}))}findDeviceById(t){return H(this,void 0,void 0,(function*(){const e=yield this.listVideoInputDevices();return e?e.find((e=>e.deviceId===t)):null}))}decodeFromInputVideoDevice(t,e){return H(this,void 0,void 0,(function*(){return yield this.decodeOnceFromVideoDevice(t,e)}))}decodeOnceFromVideoDevice(t,e){return H(this,void 0,void 0,(function*(){let r;this.reset(),r=t?{deviceId:{exact:t}}:{facingMode:"environment"};const n={video:r};return yield this.decodeOnceFromConstraints(n,e)}))}decodeOnceFromConstraints(t,e){return H(this,void 0,void 0,(function*(){const r=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeOnceFromStream(r,e)}))}decodeOnceFromStream(t,e){return H(this,void 0,void 0,(function*(){this.reset();const r=yield this.attachStreamToVideo(t,e);return yield this.decodeOnce(r)}))}decodeFromInputVideoDeviceContinuously(t,e,r){return H(this,void 0,void 0,(function*(){return yield this.decodeFromVideoDevice(t,e,r)}))}decodeFromVideoDevice(t,e,r){return H(this,void 0,void 0,(function*(){let n;n=t?{deviceId:{exact:t}}:{facingMode:"environment"};const i={video:n};return yield this.decodeFromConstraints(i,e,r)}))}decodeFromConstraints(t,e,r){return H(this,void 0,void 0,(function*(){const n=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeFromStream(n,e,r)}))}decodeFromStream(t,e,r){return H(this,void 0,void 0,(function*(){this.reset();const n=yield this.attachStreamToVideo(t,e);return yield this.decodeContinuously(n,r)}))}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(t,e){return H(this,void 0,void 0,(function*(){const r=this.prepareVideoElement(e);return this.addVideoSource(r,t),this.videoElement=r,this.stream=t,yield this.playVideoOnLoadAsync(r),r}))}playVideoOnLoadAsync(t){return new Promise(((e,r)=>this.playVideoOnLoad(t,(()=>e()))))}playVideoOnLoad(t,e){this.videoEndedListener=()=>this.stopStreams(),this.videoCanPlayListener=()=>this.tryPlayVideo(t),t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)}isVideoPlaying(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}tryPlayVideo(t){return H(this,void 0,void 0,(function*(){if(this.isVideoPlaying(t))console.warn("Trying to play video that is already playing.");else try{yield t.play()}catch(e){console.warn("It was not possible to play the video.")}}))}getMediaElement(t,e){const r=document.getElementById(t);if(!r)throw new h(`element with id '${t}' not found`);if(r.nodeName.toLowerCase()!==e.toLowerCase())throw new h(`element with id '${t}' must be an ${e} element`);return r}decodeFromImage(t,e){if(!t&&!e)throw new h("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)}decodeFromVideo(t,e){if(!t&&!e)throw new h("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)}decodeFromVideoContinuously(t,e,r){if(void 0===t&&void 0===e)throw new h("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,r):this.decodeFromVideoElementContinuously(t,r)}decodeFromImageElement(t){if(!t)throw new h("An image element must be provided.");this.reset();const e=this.prepareImageElement(t);let r;return this.imageElement=e,r=this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e),r}decodeFromVideoElement(t){const e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)}decodeFromVideoElementContinuously(t,e){const r=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(r,e)}_decodeFromVideoElementSetup(t){if(!t)throw new h("A video element must be provided.");this.reset();const e=this.prepareVideoElement(t);return this.videoElement=e,e}decodeFromImageUrl(t){if(!t)throw new h("An URL must be provided.");this.reset();const e=this.prepareImageElement();this.imageElement=e;const r=this._decodeOnLoadImage(e);return e.src=t,r}decodeFromVideoUrl(t){if(!t)throw new h("An URL must be provided.");this.reset();const e=this.prepareVideoElement(),r=this.decodeFromVideoElement(e);return e.src=t,r}decodeFromVideoUrlContinuously(t,e){if(!t)throw new h("An URL must be provided.");this.reset();const r=this.prepareVideoElement(),n=this.decodeFromVideoElementContinuously(r,e);return r.src=t,n}_decodeOnLoadImage(t){return new Promise(((e,r)=>{this.imageLoadedListener=()=>this.decodeOnce(t,!1,!0).then(e,r),t.addEventListener("load",this.imageLoadedListener)}))}_decodeOnLoadVideo(t){return H(this,void 0,void 0,(function*(){return yield this.playVideoOnLoadAsync(t),yield this.decodeOnce(t)}))}_decodeOnLoadVideoContinuously(t,e){return H(this,void 0,void 0,(function*(){yield this.playVideoOnLoadAsync(t),this.decodeContinuously(t,e)}))}isImageLoaded(t){return!!t.complete&&0!==t.naturalWidth}prepareImageElement(t){let e;return void 0===t&&(e=document.createElement("img"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e}prepareVideoElement(t){let e;return t||"undefined"==typeof document||(e=document.createElement("video"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e}decodeOnce(t,e=!0,r=!0){this._stopAsyncDecode=!1;const n=(i,s)=>{if(this._stopAsyncDecode)return s(new M("Video stream has ended before any code could be detected.")),void(this._stopAsyncDecode=void 0);try{i(this.decode(t))}catch(o){const t=(o instanceof f||o instanceof T)&&r;if(e&&o instanceof M||t)return setTimeout(n,this._timeBetweenDecodingAttempts,i,s);s(o)}};return new Promise(((t,e)=>n(t,e)))}decodeContinuously(t,e){this._stopContinuousDecode=!1;const r=()=>{if(this._stopContinuousDecode)this._stopContinuousDecode=void 0;else try{const n=this.decode(t);e(n,null),setTimeout(r,this.timeBetweenScansMillis)}catch(n){e(null,n);const t=n instanceof M;(n instanceof f||n instanceof T||t)&&setTimeout(r,this._timeBetweenDecodingAttempts)}};r()}decode(t){const e=this.createBinaryBitmap(t);return this.decodeBitmap(e)}_isHTMLVideoElement(t){return 0!==t.videoWidth}drawFrameOnCanvas(t,e,r){e||(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),r||(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}drawImageOnCanvas(t,e,r=this.captureCanvasContext){e||(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),r||(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}createBinaryBitmap(t){this.getCaptureCanvasContext(t),this._isHTMLVideoElement(t)?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);const e=this.getCaptureCanvas(t),r=new F(e),n=new B(r);return new d(n)}getCaptureCanvasContext(t){if(!this.captureCanvasContext){const e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext}getCaptureCanvas(t){if(!this.captureCanvas){const e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas}decodeBitmap(t){return this.reader.decode(t,this._hints)}createCaptureCanvas(t){if("undefined"==typeof document)return this._destroyCaptureCanvas(),null;const e=document.createElement("canvas");let r,n;return void 0!==t&&(t instanceof HTMLVideoElement?(r=t.videoWidth,n=t.videoHeight):t instanceof HTMLImageElement&&(r=t.naturalWidth||t.width,n=t.naturalHeight||t.height)),e.style.width=r+"px",e.style.height=n+"px",e.width=r,e.height=n,e}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach((t=>t.stop())),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()}reset(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()}_destroyVideoElement(){this.videoElement&&(void 0!==this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),void 0!==this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),void 0!==this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)}_destroyImageElement(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)}_destroyCaptureCanvas(){this.captureCanvasContext=void 0,this.captureCanvas=void 0}addVideoSource(t,e){try{t.srcObject=e}catch(r){t.src=URL.createObjectURL(e)}}cleanVideoSource(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")}}class G{constructor(t,e,r=(null==e?0:8*e.length),n,i,s=w.currentTimeMillis()){this.text=t,this.rawBytes=e,this.numBits=r,this.resultPoints=n,this.format=i,this.timestamp=s,this.text=t,this.rawBytes=e,this.numBits=null==r?null==e?0:8*e.length:r,this.resultPoints=n,this.format=i,this.resultMetadata=null,this.timestamp=null==s?w.currentTimeMillis():s}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)}putAllMetadata(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))}addResultPoints(t){const e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){const r=new Array(e.length+t.length);w.arraycopy(e,0,r,0,e.length),w.arraycopy(t,0,r,e.length,t.length),this.resultPoints=r}}getTimestamp(){return this.timestamp}toString(){return this.text}}(U=x||(x={}))[U.AZTEC=0]="AZTEC",U[U.CODABAR=1]="CODABAR",U[U.CODE_39=2]="CODE_39",U[U.CODE_93=3]="CODE_93",U[U.CODE_128=4]="CODE_128",U[U.DATA_MATRIX=5]="DATA_MATRIX",U[U.EAN_8=6]="EAN_8",U[U.EAN_13=7]="EAN_13",U[U.ITF=8]="ITF",U[U.MAXICODE=9]="MAXICODE",U[U.PDF_417=10]="PDF_417",U[U.QR_CODE=11]="QR_CODE",U[U.RSS_14=12]="RSS_14",U[U.RSS_EXPANDED=13]="RSS_EXPANDED",U[U.UPC_A=14]="UPC_A",U[U.UPC_E=15]="UPC_E",U[U.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION";var X,W,z=x;(W=X||(X={}))[W.OTHER=0]="OTHER",W[W.ORIENTATION=1]="ORIENTATION",W[W.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",W[W.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",W[W.ISSUE_NUMBER=4]="ISSUE_NUMBER",W[W.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",W[W.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",W[W.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",W[W.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",W[W.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",W[W.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY";var Z,K,q,Q,j,J,$,tt,et,rt,nt,it=X;class st{constructor(t,e,r,n,i=-1,s=-1){this.rawBytes=t,this.text=e,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=s,this.numBits=null==t?0:8*t.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(t){this.numBits=t}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(t){this.errorsCorrected=t}getErasures(){return this.erasures}setErasures(t){this.erasures=t}getOther(){return this.other}setOther(t){this.other=t}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class ot{exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}static addOrSubtract(t,e){return t^e}}class at{constructor(t,e){if(0===e.length)throw new u;this.field=t;const r=e.length;if(r>1&&0===e[0]){let t=1;for(;tr.length){const t=e;e=r,r=t}let n=new Int32Array(r.length);const i=r.length-e.length;w.arraycopy(r,0,n,0,i);for(let s=i;s=t.getDegree()&&!n.isZero();){const i=n.getDegree()-t.getDegree(),o=e.multiply(n.getCoefficient(n.getDegree()),s),a=t.multiplyByMonomial(i,o),l=e.buildMonomial(i,o);r=r.addOrSubtract(l),n=n.addOrSubtract(a)}return[r,n]}toString(){let t="";for(let e=this.getDegree();e>=0;e--){let r=this.getCoefficient(e);if(0!==r){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),0===e||1!==r){const e=this.field.log(r);0===e?t+="1":1===e?t+="a":(t+="a^",t+=e)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t}}class lt extends c{}lt.kind="ArithmeticException";class ct extends ot{constructor(t,e,r){super(),this.primitive=t,this.size=e,this.generatorBase=r;const n=new Int32Array(e);let i=1;for(let o=0;o=e&&(i^=t,i&=e-1);this.expTable=n;const s=new Int32Array(e);for(let o=0;o=(r/2|0);){let t=i,e=o;if(i=s,o=a,i.isZero())throw new ht("r_{i-1} was zero");s=t;let r=n.getZero();const l=i.getCoefficient(i.getDegree()),c=n.inverse(l);for(;s.getDegree()>=i.getDegree()&&!s.isZero();){const t=s.getDegree()-i.getDegree(),e=n.multiply(s.getCoefficient(s.getDegree()),c);r=r.addOrSubtract(n.buildMonomial(t,e)),s=s.addOrSubtract(i.multiplyByMonomial(t,e))}if(a=r.multiply(o).addOrSubtract(e),s.getDegree()>=i.getDegree())throw new ut("Division algorithm failed to reduce polynomial?")}const l=a.getCoefficient(0);if(0===l)throw new ht("sigmaTilde(0) was zero");const c=n.inverse(l);return[a.multiplyScalar(c),s.multiplyScalar(c)]}findErrorLocations(t){const e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);const r=new Int32Array(e);let n=0;const i=this.field;for(let s=1;s1,h,h+r-1),h+=r-1;else for(let e=r-1;e>=0;--e)c[h++]=0!=(t&1<=8?ft.readCode(t,e,8):ft.readCode(t,e,r)<<8-r}static convertBoolArrayToByteArray(t){let e=new Uint8Array((t.length+7)/8);for(let r=0;r","?","[","]","{","}","CTRL_UL"],ft.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class gt{constructor(){}static round(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0}static distance(t,e,r,n){const i=t-r,s=e-n;return Math.sqrt(i*i+s*s)}static sum(t){let e=0;for(let r=0,n=t.length;r!==n;r++)e+=t[r];return e}}class wt{static floatToIntBits(t){return t}}wt.MAX_VALUE=Number.MAX_SAFE_INTEGER;class mt{constructor(t,e){this.x=t,this.y=e}getX(){return this.x}getY(){return this.y}equals(t){if(t instanceof mt){const e=t;return this.x===e.x&&this.y===e.y}return!1}hashCode(){return 31*wt.floatToIntBits(this.x)+wt.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(t){const e=this.distance(t[0],t[1]),r=this.distance(t[1],t[2]),n=this.distance(t[0],t[2]);let i,s,o;if(r>=e&&r>=n?(s=t[0],i=t[1],o=t[2]):n>=r&&n>=e?(s=t[1],i=t[0],o=t[2]):(s=t[2],i=t[0],o=t[1]),this.crossProductZ(i,s,o)<0){const t=i;i=o,o=t}t[0]=i,t[1]=s,t[2]=o}static distance(t,e){return gt.distance(t.x,t.y,e.x,e.y)}static crossProductZ(t,e,r){const n=e.x,i=e.y;return(r.x-n)*(t.y-i)-(r.y-i)*(t.x-n)}}class At{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class Ct extends At{constructor(t,e,r,n,i){super(t,e),this.compact=r,this.nbDatablocks=n,this.nbLayers=i}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class Et{constructor(t,e,r,n){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==e&&(e=Et.INIT_SIZE),null==r&&(r=t.getWidth()/2|0),null==n&&(n=t.getHeight()/2|0);const i=e/2|0;if(this.leftInit=r-i,this.rightInit=r+i,this.upInit=n-i,this.downInit=n+i,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new M}detect(){let t=this.leftInit,e=this.rightInit,r=this.upInit,n=this.downInit,i=!1,s=!0,o=!1,a=!1,l=!1,c=!1,h=!1;const u=this.width,d=this.height;for(;s;){s=!1;let f=!0;for(;(f||!a)&&e=u){i=!0;break}let g=!0;for(;(g||!l)&&n=d){i=!0;break}let w=!0;for(;(w||!c)&&t>=0;)w=this.containsBlackPoint(r,n,t,!1),w?(t--,s=!0,c=!0):c||t--;if(t<0){i=!0;break}let m=!0;for(;(m||!h)&&r>=0;)m=this.containsBlackPoint(t,e,r,!0),m?(r--,s=!0,h=!0):h||r--;if(r<0){i=!0;break}s&&(o=!0)}if(!i&&o){const i=e-t;let s=null;for(let e=1;null===s&&er||o<-1||o>n)throw new M;i=!1,-1===t?(e[s]=0,i=!0):t===r&&(e[s]=r-1,i=!0),-1===o?(e[s+1]=0,i=!0):o===n&&(e[s+1]=n-1,i=!0)}i=!0;for(let s=e.length-2;s>=0&&i;s-=2){const t=Math.floor(e[s]),o=Math.floor(e[s+1]);if(t<-1||t>r||o<-1||o>n)throw new M;i=!1,-1===t?(e[s]=0,i=!0):t===r&&(e[s]=r-1,i=!0),-1===o?(e[s+1]=0,i=!0):o===n&&(e[s+1]=n-1,i=!0)}}}class _t{constructor(t,e,r,n,i,s,o,a,l){this.a11=t,this.a21=e,this.a31=r,this.a12=n,this.a22=i,this.a32=s,this.a13=o,this.a23=a,this.a33=l}static quadrilateralToQuadrilateral(t,e,r,n,i,s,o,a,l,c,h,u,d,f,g,w){const m=_t.quadrilateralToSquare(t,e,r,n,i,s,o,a);return _t.squareToQuadrilateral(l,c,h,u,d,f,g,w).times(m)}transformPoints(t){const e=t.length,r=this.a11,n=this.a12,i=this.a13,s=this.a21,o=this.a22,a=this.a23,l=this.a31,c=this.a32,h=this.a33;for(let u=0;u>1&127):(n<<=10,n+=(t>>2&992)+(t>>1&31))}let i=this.getCorrectedParameterData(n,this.compact);this.compact?(this.nbLayers=1+(i>>6),this.nbDataBlocks=1+(63&i)):(this.nbLayers=1+(i>>11),this.nbDataBlocks=1+(2047&i))}getRotation(t,e){let r=0;t.forEach(((t,n,i)=>{r=(t>>e-2<<1)+(1&t)+(r<<3)})),r=((1&r)<<11)+(r>>1);for(let n=0;n<4;n++)if(E.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new M}getCorrectedParameterData(t,e){let r,n;e?(r=7,n=2):(r=10,n=4);let i=r-n,s=new Int32Array(r);for(let l=r-1;l>=0;--l)s[l]=15&t,t>>=4;try{new dt(ct.AZTEC_PARAM).decode(s,i)}catch(a){throw new M}let o=0;for(let l=0;l2){let r=this.distancePoint(l,t)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(r<.75||r>1.25||!this.isWhiteOrBlackRectangle(t,o,a,l))break}e=t,r=o,n=a,i=l,s=!s}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new M;this.compact=5===this.nbCenterLayers;let o=new mt(e.getX()+.5,e.getY()-.5),a=new mt(r.getX()+.5,r.getY()+.5),l=new mt(n.getX()-.5,n.getY()+.5),c=new mt(i.getX()-.5,i.getY()-.5);return this.expandSquare([o,a,l,c],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let t,e,r,n;try{let i=new Et(this.image).detect();t=i[0],e=i[1],r=i[2],n=i[3]}catch(o){let i=this.image.getWidth()/2,s=this.image.getHeight()/2;t=this.getFirstDifferent(new Tt(i+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Tt(i+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Tt(i-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Tt(i-7,s-7),!1,-1,-1).toResultPoint()}let i=gt.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=gt.round((t.getY()+n.getY()+e.getY()+r.getY())/4);try{let o=new Et(this.image,15,i,s).detect();t=o[0],e=o[1],r=o[2],n=o[3]}catch(o){t=this.getFirstDifferent(new Tt(i+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Tt(i+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Tt(i-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Tt(i-7,s-7),!1,-1,-1).toResultPoint()}return i=gt.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=gt.round((t.getY()+n.getY()+e.getY()+r.getY())/4),new Tt(i,s)}getMatrixCornerPoints(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())}sampleGrid(t,e,r,n,i){let s=St.getInstance(),o=this.getDimension(),a=o/2-this.nbCenterLayers,l=o/2+this.nbCenterLayers;return s.sampleGrid(t,o,o,a,a,l,a,l,l,a,l,e.getX(),e.getY(),r.getX(),r.getY(),n.getX(),n.getY(),i.getX(),i.getY())}sampleLine(t,e,r){let n=0,i=this.distanceResultPoint(t,e),s=i/r,o=t.getX(),a=t.getY(),l=s*(e.getX()-t.getX())/i,c=s*(e.getY()-t.getY())/i;for(let h=0;h.1&&h<.9?0:h<=.1===l?1:-1}getFirstDifferent(t,e,r,n){let i=t.getX()+r,s=t.getY()+n;for(;this.isValid(i,s)&&this.image.get(i,s)===e;)i+=r,s+=n;for(i-=r,s-=n;this.isValid(i,s)&&this.image.get(i,s)===e;)i+=r;for(i-=r;this.isValid(i,s)&&this.image.get(i,s)===e;)s+=n;return s-=n,new Tt(i,s)}expandSquare(t,e,r){let n=r/(2*e),i=t[0].getX()-t[2].getX(),s=t[0].getY()-t[2].getY(),o=(t[0].getX()+t[2].getX())/2,a=(t[0].getY()+t[2].getY())/2,l=new mt(o+n*i,a+n*s),c=new mt(o-n*i,a-n*s);return i=t[1].getX()-t[3].getX(),s=t[1].getY()-t[3].getY(),o=(t[1].getX()+t[3].getX())/2,a=(t[1].getY()+t[3].getY())/2,[l,new mt(o+n*i,a+n*s),c,new mt(o-n*i,a-n*s)]}isValid(t,e){return t>=0&&t0&&e{r.foundPossibleResultPoint(t)}))}}reset(){}}class Nt extends V{constructor(t=500){super(new Rt,t)}}class Dt{decode(t,e){try{return this.doDecode(t,e)}catch(r){if(e&&!0===e.get(S.TRY_HARDER)&&t.isRotateSupported()){const r=t.rotateCounterClockwise(),n=this.doDecode(r,e),i=n.getResultMetadata();let s=270;null!==i&&!0===i.get(it.ORIENTATION)&&(s+=i.get(it.ORIENTATION)%360),n.putMetadata(it.ORIENTATION,s);const o=n.getResultPoints();if(null!==o){const t=r.getHeight();for(let e=0;e>(s?8:5));let a;a=s?n:15;const l=Math.trunc(n/2);for(let u=0;u=n)break;try{i=t.getBlackRow(a,i)}catch(c){continue}for(let t=0;t<2;t++){if(1===t&&(i.reverse(),e&&!0===e.get(S.NEED_RESULT_POINT_CALLBACK))){const t=new Map;e.forEach(((e,r)=>t.set(r,e))),t.delete(S.NEED_RESULT_POINT_CALLBACK),e=t}try{const n=this.decodeRow(a,i,e);if(1===t){n.putMetadata(it.ORIENTATION,180);const t=n.getResultPoints();null!==t&&(t[0]=new mt(r-t[0].getX()-1,t[0].getY()),t[1]=new mt(r-t[1].getX()-1,t[1].getY()))}return n}catch(h){}}}throw new M}static recordPattern(t,e,r){const n=r.length;for(let l=0;l=i)throw new M;let s=!t.get(e),o=0,a=e;for(;a0&&n>=0;)t.get(--e)!==i&&(n--,i=!i);if(n>=0)throw new M;Dt.recordPattern(t,e+1,r)}static patternMatchVariance(t,e,r){const n=t.length;let i=0,s=0;for(let l=0;li?n-i:i-n;if(s>r)return Number.POSITIVE_INFINITY;a+=s}return a/i}}class Ot extends Dt{static findStartPattern(t){const e=t.getSize(),r=t.getNextSet(0);let n=0,i=Int32Array.from([0,0,0,0,0,0]),s=r,o=!1;const a=6;for(let l=r;l=0&&t.isRange(Math.max(0,s-(l-s)/2),s,!1))return Int32Array.from([s,l,r]);s+=i[0]+i[1],i=i.slice(2,i.length-1),i[n-1]=0,i[n]=0,n--}else n++;i[n]=1,o=!o}throw new M}static decodeCode(t,e,r){Dt.recordPattern(t,r,e);let n=Ot.MAX_AVG_VARIANCE,i=-1;for(let s=0;s=0)return i;throw new M}decodeRow(t,e,r){const n=r&&!0===r.get(S.ASSUME_GS1),i=Ot.findStartPattern(e),s=i[2];let o=0;const a=new Uint8Array(20);let l;switch(a[o++]=s,s){case Ot.CODE_START_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_START_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_START_C:l=Ot.CODE_CODE_C;break;default:throw new T}let c=!1,h=!1,u="",d=i[0],g=i[1];const w=Int32Array.from([0,0,0,0,0,0]);let m=0,A=0,C=s,E=0,p=!0,_=!1,I=!1;for(;!c;){const t=h;switch(h=!1,m=A,A=Ot.decodeCode(e,w,g),a[o++]=A,A!==Ot.CODE_STOP&&(p=!0),A!==Ot.CODE_STOP&&(E++,C+=E*A),d=g,g+=w.reduce(((t,e)=>t+e),0),A){case Ot.CODE_START_A:case Ot.CODE_START_B:case Ot.CODE_START_C:throw new T}switch(l){case Ot.CODE_CODE_A:if(A<64)u+=I===_?String.fromCharCode(" ".charCodeAt(0)+A):String.fromCharCode(" ".charCodeAt(0)+A+128),I=!1;else if(A<96)u+=I===_?String.fromCharCode(A-64):String.fromCharCode(A+64),I=!1;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_FNC_2:case Ot.CODE_FNC_3:break;case Ot.CODE_FNC_4_A:!_&&I?(_=!0,I=!1):_&&I?(_=!1,I=!1):I=!0;break;case Ot.CODE_SHIFT:h=!0,l=Ot.CODE_CODE_B;break;case Ot.CODE_CODE_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_CODE_C:l=Ot.CODE_CODE_C;break;case Ot.CODE_STOP:c=!0}break;case Ot.CODE_CODE_B:if(A<96)u+=I===_?String.fromCharCode(" ".charCodeAt(0)+A):String.fromCharCode(" ".charCodeAt(0)+A+128),I=!1;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_FNC_2:case Ot.CODE_FNC_3:break;case Ot.CODE_FNC_4_B:!_&&I?(_=!0,I=!1):_&&I?(_=!1,I=!1):I=!0;break;case Ot.CODE_SHIFT:h=!0,l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_C:l=Ot.CODE_CODE_C;break;case Ot.CODE_STOP:c=!0}break;case Ot.CODE_CODE_C:if(A<100)A<10&&(u+="0"),u+=A;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_CODE_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_STOP:c=!0}}t&&(l=l===Ot.CODE_CODE_A?Ot.CODE_CODE_B:Ot.CODE_CODE_A)}const y=g-d;if(g=e.getNextUnset(g),!e.isRange(g,Math.min(e.getSize(),g+(g-d)/2),!1))throw new M;if(C-=E*m,C%103!==m)throw new f;const R=u.length;if(0===R)throw new M;R>0&&p&&(u=l===Ot.CODE_CODE_C?u.substring(0,R-2):u.substring(0,R-1));const N=(i[1]+i[0])/2,D=d+y/2,O=a.length,b=new Uint8Array(O);for(let f=0;fn&&(i=e);n=i,e=0;let s=0,o=0;for(let a=0;an&&(o|=1<0;i++){let r=t[i];if(r>n&&(e--,2*r>=s))return-1}return o}}while(e>3);return-1}static patternToChar(t){for(let e=0;e="A"&&i<="Z"))throw new T;s=String.fromCharCode(i.charCodeAt(0)+32);break;case"$":if(!(i>="A"&&i<="Z"))throw new T;s=String.fromCharCode(i.charCodeAt(0)-64);break;case"%":if(i>="A"&&i<="E")s=String.fromCharCode(i.charCodeAt(0)-38);else if(i>="F"&&i<="J")s=String.fromCharCode(i.charCodeAt(0)-11);else if(i>="K"&&i<="O")s=String.fromCharCode(i.charCodeAt(0)+16);else if(i>="P"&&i<="T")s=String.fromCharCode(i.charCodeAt(0)+43);else if("U"===i)s="\0";else if("V"===i)s="@";else if("W"===i)s="`";else{if("X"!==i&&"Y"!==i&&"Z"!==i)throw new T;s=""}break;case"/":if(i>="A"&&i<="O")s=String.fromCharCode(i.charCodeAt(0)-32);else{if("Z"!==i)throw new T;s=":"}}r+=s,n++}else r+=e}return r}}bt.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",bt.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],bt.ASTERISK_ENCODING=148;class Mt extends Dt{constructor(){super(...arguments),this.narrowLineWidth=-1}decodeRow(t,e,r){let n=this.decodeStart(e),i=this.decodeEnd(e),s=new O;Mt.decodeMiddle(e,n[1],i[0],s);let o=s.toString(),a=null;null!=r&&(a=r.get(S.ALLOWED_LENGTHS)),null==a&&(a=Mt.DEFAULT_ALLOWED_LENGTHS);let l=o.length,c=!1,h=0;for(let d of a){if(l===d){c=!0;break}d>h&&(h=d)}if(!c&&l>h&&(c=!0),!c)throw new T;const u=[new mt(n[1],t),new mt(i[0],t)];return new G(o,null,0,u,z.ITF,(new Date).getTime())}static decodeMiddle(t,e,r,n){let i=new Int32Array(10),s=new Int32Array(5),o=new Int32Array(5);for(i.fill(0),s.fill(0),o.fill(0);e0&&n>=0&&!t.get(n);n--)r--;if(0!==r)throw new M}static skipWhiteSpace(t){const e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new M;return r}decodeEnd(t){t.reverse();try{let r,n=Mt.skipWhiteSpace(t);try{r=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[0])}catch(e){e instanceof M&&(r=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,r[0]);let i=r[0];return r[0]=t.getSize()-r[1],r[1]=t.getSize()-i,r}finally{t.reverse()}}static findGuardPattern(t,e,r){let n=r.length,i=new Int32Array(n),s=t.getSize(),o=!1,a=0,l=e;i.fill(0);for(let c=e;c=0)return r%10;throw new M}}Mt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],Mt.MAX_AVG_VARIANCE=.38,Mt.MAX_INDIVIDUAL_VARIANCE=.5,Mt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],Mt.START_PATTERN=Int32Array.from([1,1,1,1]),Mt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class Pt extends Dt{constructor(){super(...arguments),this.decodeRowStringBuffer=""}static findStartGuardPattern(t){let e,r=!1,n=0,i=Int32Array.from([0,0,0]);for(;!r;){i=Int32Array.from([0,0,0]),e=Pt.findGuardPattern(t,n,!1,this.START_END_PATTERN,i);let s=e[0];n=e[1];let o=s-(n-s);o>=0&&(r=t.isRange(o,s,!1))}return e}static checkChecksum(t){return Pt.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let r=parseInt(t.charAt(e-1),10);return Pt.getStandardUPCEANChecksum(t.substring(0,e-1))===r}static getStandardUPCEANChecksum(t){let e=t.length,r=0;for(let n=e-1;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}r*=3;for(let n=e-2;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}return(1e3-r)%10}static decodeEnd(t,e){return Pt.findGuardPattern(t,e,!1,Pt.START_END_PATTERN,new Int32Array(Pt.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(t,e,r,n){return this.findGuardPattern(t,e,r,n,new Int32Array(n.length))}static findGuardPattern(t,e,r,n,i){let s=t.getSize(),o=0,a=e=r?t.getNextUnset(e):t.getNextSet(e),l=n.length,c=r;for(let h=e;h=0)return s;throw new M}}Pt.MAX_AVG_VARIANCE=.48,Pt.MAX_INDIVIDUAL_VARIANCE=.7,Pt.START_END_PATTERN=Int32Array.from([1,1,1]),Pt.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),Pt.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),Pt.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])];class Bt{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,r){let n=this.decodeRowStringBuffer,i=this.decodeMiddle(e,r,n),s=n.toString(),o=Bt.parseExtensionString(s),a=[new mt((r[0]+r[1])/2,t),new mt(i,t)],l=new G(s,null,0,a,z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=o&&l.putAllMetadata(o),l}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let l=0;l<5&&s=10&&(o|=1<<4-l),4!==l&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(5!==r.length)throw new M;let a=this.determineCheckDigit(o);if(Bt.extensionChecksum(r.toString())!==a)throw new M;return s}static extensionChecksum(t){let e=t.length,r=0;for(let n=e-2;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(let n=e-1;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10}determineCheckDigit(t){for(let e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new M}static parseExtensionString(t){if(5!==t.length)return null;let e=Bt.parseExtension5String(t);return null==e?null:new Map([[it.SUGGESTED_PRICE,e]])}static parseExtension5String(t){let e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}let r=parseInt(t.substring(1)),n=r%100;return e+(r/100).toString()+"."+(n<10?"0"+n:n.toString())}}class vt{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,r){let n=this.decodeRowStringBuffer,i=this.decodeMiddle(e,r,n),s=n.toString(),o=vt.parseExtensionString(s),a=[new mt((r[0]+r[1])/2,t),new mt(i,t)],l=new G(s,null,0,a,z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=o&&l.putAllMetadata(o),l}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let a=0;a<2&&s=10&&(o|=1<<1-a),1!==a&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new M;if(parseInt(r.toString())%4!==o)throw new M;return s}static parseExtensionString(t){return 2!==t.length?null:new Map([[it.ISSUE_NUMBER,parseInt(t)]])}}class Lt{static decodeRow(t,e,r){let n=Pt.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new Bt).decodeRow(t,e,n)}catch(i){return(new vt).decodeRow(t,e,n)}}}Lt.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class Ft extends Pt{constructor(){super(),this.decodeRowStringBuffer="",Ft.L_AND_G_PATTERNS=Ft.L_PATTERNS.map((t=>Int32Array.from(t)));for(let t=10;t<20;t++){let e=Ft.L_PATTERNS[t-10],r=new Int32Array(e.length);for(let t=0;t=e.getSize()||!e.isRange(c,h,!1))throw new M;let u=a.toString();if(u.length<8)throw new T;if(!Ft.checkChecksum(u))throw new f;let d=(n[1]+n[0])/2,g=(l[1]+l[0])/2,w=this.getBarcodeFormat(),m=[new mt(d,t),new mt(g,t)],A=new G(u,null,0,m,w,(new Date).getTime()),C=0;try{let r=Lt.decodeRow(t,e,l[1]);A.putMetadata(it.UPC_EAN_EXTENSION,r.getText()),A.putAllMetadata(r.getResultMetadata()),A.addResultPoints(r.getResultPoints()),C=r.getText().length}catch(p){}let E=null==r?null:r.get(S.ALLOWED_EAN_EXTENSIONS);if(null!=E){let t=!1;for(let e in E)if(C.toString()===e){t=!0;break}if(!t)throw new M}return A}decodeEnd(t,e){return Ft.findGuardPattern(t,e,!1,Ft.START_END_PATTERN,new Int32Array(Ft.START_END_PATTERN.length).fill(0))}static checkChecksum(t){return Ft.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let r=parseInt(t.charAt(e-1),10);return Ft.getStandardUPCEANChecksum(t.substring(0,e-1))===r}static getStandardUPCEANChecksum(t){let e=t.length,r=0;for(let n=e-1;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}r*=3;for(let n=e-2;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}return(1e3-r)%10}}class kt extends Ft{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let a=0;a<6&&s=10&&(o|=1<<5-a)}r=kt.determineFirstDigit(r,o),s=Ft.findGuardPattern(t,s,!0,Ft.MIDDLE_PATTERN,new Int32Array(Ft.MIDDLE_PATTERN.length).fill(0))[1];for(let a=0;a<6&&st));n[0]=0,n[1]=0,n[2]=0,n[3]=0;const i=t.getSize();let s=e[1],o=0;for(let a=0;a<6&&s=10&&(o|=1<<5-a)}return{rowOffset:s,resultString:Ht.determineNumSysAndCheckDigit(r,o)}}decodeEnd(t,e){return Ht.findGuardPatternWithoutCounters(t,e,!0,Ht.MIDDLE_END_PATTERN)}checkChecksum(t){return Ft.checkChecksum(Ht.convertUPCEtoUPCA(t))}static determineNumSysAndCheckDigit(t,e){for(let r=0;r<=1;r++)for(let n=0;n<10;n++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return String.fromCharCode("0".charCodeAt(0)+r)+t+String.fromCharCode("0".charCodeAt(0)+n);throw M.getNotFoundInstance()}getBarcodeFormat(){return z.UPC_E}static convertUPCEtoUPCA(t){const e=t.slice(1,7).split("").map((t=>t.charCodeAt(0))),r=new O;r.append(t.charAt(0));let n=e[5];switch(n){case 0:case 1:case 2:r.appendChars(e,0,2),r.append(n),r.append("0000"),r.appendChars(e,2,3);break;case 3:r.appendChars(e,0,3),r.append("00000"),r.appendChars(e,3,2);break;case 4:r.appendChars(e,0,4),r.append("00000"),r.append(e[4]);break;default:r.appendChars(e,0,5),r.append("0000"),r.append(n)}return t.length>=8&&r.append(t.charAt(7)),r.toString()}}Ht.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),Ht.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,26])];class Vt extends Dt{constructor(t){super();let r=null==t?null:t.get(S.POSSIBLE_FORMATS),n=[];e(r)?(n.push(new kt),n.push(new Ut),n.push(new xt),n.push(new Ht)):(r.indexOf(z.EAN_13)>-1&&n.push(new kt),r.indexOf(z.UPC_A)>-1&&n.push(new Ut),r.indexOf(z.EAN_8)>-1&&n.push(new xt),r.indexOf(z.UPC_E)>-1&&n.push(new Ht)),this.readers=n}decodeRow(t,e,r){for(let i of this.readers)try{const n=i.decodeRow(t,e,r),s=n.getBarcodeFormat()===z.EAN_13&&"0"===n.getText().charAt(0),o=null==r?null:r.get(S.POSSIBLE_FORMATS),a=null==o||o.includes(z.UPC_A);if(s&&a){const t=n.getRawBytes(),e=new G(n.getText().substring(1),t,t?t.length:null,n.getResultPoints(),z.UPC_A);return e.putAllMetadata(n.getResultMetadata()),e}return n}catch(n){}throw new M}reset(){for(let t of this.readers)t.reset()}}class Gt extends Dt{constructor(){super(),this.decodeFinderCounters=new Int32Array(4),this.dataCharacterCounters=new Int32Array(8),this.oddRoundingErrors=new Array(4),this.evenRoundingErrors=new Array(4),this.oddCounts=new Array(this.dataCharacterCounters.length/2),this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(t,e){for(let r=0;rn&&(n=e[i],r=i);t[r]++}static decrement(t,e){let r=0,n=e[0];for(let i=1;i=Gt.MIN_FINDER_PATTERN_RATIO&&r<=Gt.MAX_FINDER_PATTERN_RATIO){let e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;for(let n of t)n>r&&(r=n),n=o-a-1&&(t-=zt.combins(n-l-(o-a),o-a-2)),o-a-1>1){let r=0;for(let t=n-l-(o-a-2);t>e;t--)r+=zt.combins(n-l-t-1,o-a-3);t-=r*(o-1-a)}else n-l>e&&t--;i+=t}n-=l}return i}static combins(t,e){let r,n;t-e>e?(n=e,r=t-e):(n=t-e,r=e);let i=1,s=1;for(let o=t;o>r;o--)i*=o,s<=n&&(i/=s,s++);for(;s<=n;)i/=s,s++;return i}}class Yt{static buildBitArray(t){let e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);let r=new p(12*e),n=0,i=t[0].getRightChar().getValue();for(let s=11;s>=0;--s)0!=(i&1<=0;--t)0!=(i&1<=0;--e)0!=(t&1<10||r<0||r>10)throw new T;this.firstDigit=e,this.secondDigit=r}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return 10*this.firstDigit+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===jt.FNC1}isSecondDigitFNC1(){return this.secondDigit===jt.FNC1}isAnyFNC1(){return this.firstDigit===jt.FNC1||this.secondDigit===jt.FNC1}}jt.FNC1=10;class Jt{constructor(){}static parseFieldsInGeneralPurpose(t){if(!t)return null;if(t.length<2)throw new M;let e=t.substring(0,2);for(let i of Jt.TWO_DIGIT_DATA_LENGTH)if(i[0]===e)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(2,i[2],t):Jt.processFixedAI(2,i[1],t);if(t.length<3)throw new M;let r=t.substring(0,3);for(let i of Jt.THREE_DIGIT_DATA_LENGTH)if(i[0]===r)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(3,i[2],t):Jt.processFixedAI(3,i[1],t);for(let i of Jt.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(i[0]===r)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(4,i[2],t):Jt.processFixedAI(4,i[1],t);if(t.length<4)throw new M;let n=t.substring(0,4);for(let i of Jt.FOUR_DIGIT_DATA_LENGTH)if(i[0]===n)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(4,i[2],t):Jt.processFixedAI(4,i[1],t);throw new M}static processFixedAI(t,e,r){if(r.lengththis.information.getSize())return t+4<=this.information.getSize();for(let e=t;ethis.information.getSize()){let e=this.extractNumericValueFromBitArray(t,4);return new jt(this.information.getSize(),0===e?jt.FNC1:e-1,jt.FNC1)}let e=this.extractNumericValueFromBitArray(t,7);return new jt(t+7,(e-8)/11,(e-8)%11)}extractNumericValueFromBitArray(t,e){return $t.extractNumericValueFromBitArray(this.information,t,e)}static extractNumericValueFromBitArray(t,e,r){let n=0;for(let i=0;ithis.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<116)return!0;if(t+8>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,8);return n>=232&&n<253}decodeIsoIec646(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new qt(t+5,qt.FNC1);if(e>=5&&e<15)return new qt(t+5,"0"+(e-5));let r,n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<90)return new qt(t+7,""+(n+1));if(n>=90&&n<116)return new qt(t+7,""+(n+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:r="!";break;case 233:r='"';break;case 234:r="%";break;case 235:r="&";break;case 236:r="'";break;case 237:r="(";break;case 238:r=")";break;case 239:r="*";break;case 240:r="+";break;case 241:r=",";break;case 242:r="-";break;case 243:r=".";break;case 244:r="/";break;case 245:r=":";break;case 246:r=";";break;case 247:r="<";break;case 248:r="=";break;case 249:r=">";break;case 250:r="?";break;case 251:r="_";break;case 252:r=" ";break;default:throw new T}return new qt(t+8,r)}isStillAlpha(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,6);return r>=16&&r<63}decodeAlphanumeric(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new qt(t+5,qt.FNC1);if(e>=5&&e<15)return new qt(t+5,"0"+(e-5));let r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new qt(t+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new ut("Decoding invalid alphanumeric value: "+n)}return new qt(t+6,r)}isAlphaTo646ToAlphaLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<5&&e+tthis.information.getSize())return!1;for(let e=t;ethis.information.getSize())return!1;for(let e=0;e<4&&e+t{e.forEach((e=>{t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(r=!0)}))})),r}}class ge extends Gt{constructor(t){super(...arguments),this.pairs=new Array(ge.MAX_PAIRS),this.rows=new Array,this.startEnd=[2],this.verbose=!0===t}decodeRow(t,e,r){this.pairs.length=0,this.startFromEven=!1;try{return ge.constructResult(this.decodeRow2pairs(t,e))}catch(n){this.verbose&&console.log(n)}return this.pairs.length=0,this.startFromEven=!0,ge.constructResult(this.decodeRow2pairs(t,e))}reset(){this.pairs.length=0,this.rows.length=0}decodeRow2pairs(t,e){let r,n=!1;for(;!n;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(i){if(i instanceof M){if(!this.pairs.length)throw new M;n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(t,!1),r){let t=this.checkRowsBoolean(!1);if(null!=t)return t;if(t=this.checkRowsBoolean(!0),null!=t)return t}throw new M}checkRowsBoolean(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());let e=null;try{e=this.checkRows(new Array,0)}catch(r){this.verbose&&console.log(r)}return t&&(this.rows=this.rows.reverse()),e}checkRows(t,e){for(let n=e;ne.length)continue;let r=!0;for(let n=0;nt){i=e.isEquivalent(this.pairs);break}n=e.isEquivalent(this.pairs),r++}i||n||ge.isPartialRow(this.pairs,this.rows)||(this.rows.push(r,new fe(this.pairs,t,e)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(t,e){for(let r of e)if(r.getPairs().length!==t.length)for(let e of r.getPairs())for(let r of t)if(de.equals(e,r))break}static isPartialRow(t,e){for(let r of e){let e=!0;for(let n of t){let t=!1;for(let e of r.getPairs())if(n.equals(e)){t=!0;break}if(!t){e=!1;break}}if(e)return!0}return!1}getRows(){return this.rows}static constructResult(t){let e=ue(Yt.buildBitArray(t)).parseInformation(),r=t[0].getFinderPattern().getResultPoints(),n=t[t.length-1].getFinderPattern().getResultPoints(),i=[r[0],r[1],n[0],n[1]];return new G(e,null,null,i,z.RSS_EXPANDED,null)}checkChecksum(){let t=this.pairs.get(0),e=t.getLeftChar(),r=t.getRightChar();if(null==r)return!1;let n=r.getChecksumPortion(),i=2;for(let s=1;s=0?r:this.isEmptyPair(e)?0:e[e.length-1].getFinderPattern().getStartEnd()[1];let o=e.length%2!=0;this.startFromEven&&(o=!o);let a=!1;for(;i=0&&!t.get(e);)e--;e++,n=this.startEnd[0]-e,i=e,s=this.startEnd[1]}else i=this.startEnd[0],s=t.getNextUnset(this.startEnd[1]+1),n=s-this.startEnd[1];let o,a=this.getDecodeFinderCounters();w.arraycopy(a,0,a,1,a.length-1),a[0]=n;try{o=this.parseFinderValue(a,ge.FINDER_PATTERNS)}catch(l){return null}return new Wt(o,[i,s],i,s,e)}decodeDataCharacter(t,e,r,n){let i=this.getDataCharacterCounters();for(let T=0;T.3)throw new M;let l=this.getOddCounts(),c=this.getEvenCounts(),h=this.getOddRoundingErrors(),u=this.getEvenRoundingErrors();for(let T=0;T8){if(t>8.7)throw new M;e=8}let r=T/2;0==(1&T)?(l[r]=e,h[r]=t-e):(c[r]=e,u[r]=t-e)}this.adjustOddEvenCounts(s);let d=4*e.getValue()+(r?0:2)+(n?0:1)-1,f=0,g=0;for(let T=l.length-1;T>=0;T--){if(ge.isNotA1left(e,r,n)){let t=ge.WEIGHTS[d][2*T];g+=l[T]*t}f+=l[T]}let w=0;for(let T=c.length-1;T>=0;T--)if(ge.isNotA1left(e,r,n)){let t=ge.WEIGHTS[d][2*T+1];w+=c[T]*t}let m=g+w;if(0!=(1&f)||f>13||f<4)throw new M;let A=(13-f)/2,C=ge.SYMBOL_WIDEST[A],E=9-C,p=zt.getRSSvalue(l,C,!0),_=zt.getRSSvalue(c,E,!1),I=ge.EVEN_TOTAL_SUBSET[A],S=ge.GSUM[A];return new Xt(p*I+_+S,m)}static isNotA1left(t,e,r){return!(0==t.getValue()&&e&&r)}adjustOddEvenCounts(t){let e=gt.sum(new Int32Array(this.getOddCounts())),r=gt.sum(new Int32Array(this.getEvenCounts())),n=!1,i=!1;e>13?i=!0:e<4&&(n=!0);let s=!1,o=!1;r>13?o=!0:r<4&&(s=!0);let a=e+r-t,l=1==(1&e),c=0==(1&r);if(1==a)if(l){if(c)throw new M;i=!0}else{if(!c)throw new M;o=!0}else if(-1==a)if(l){if(c)throw new M;n=!0}else{if(!c)throw new M;s=!0}else{if(0!=a)throw new M;if(l){if(!c)throw new M;e1)for(let t of this.possibleRightPairs)if(t.getCount()>1&&me.checkChecksum(s,t))return me.constructResult(s,t);throw new M}static addOrTally(t,e){if(null==e)return;let r=!1;for(let n of t)if(n.getValue()===e.getValue()){n.incrementCount(),r=!0;break}r||t.push(e)}reset(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0}static constructResult(t,e){let r=4537077*t.getValue()+e.getValue(),n=new String(r).toString(),i=new O;for(let l=13-n.length;l>0;l--)i.append("0");i.append(n);let s=0;for(let l=0;l<13;l++){let t=i.charAt(l).charCodeAt(0)-"0".charCodeAt(0);s+=0==(1&l)?3*t:t}s=10-s%10,10===s&&(s=0),i.append(s.toString());let o=t.getFinderPattern().getResultPoints(),a=e.getFinderPattern().getResultPoints();return new G(i.toString(),null,0,[o[0],o[1],a[0],a[1]],z.RSS_14,(new Date).getTime())}static checkChecksum(t,e){let r=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,n=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n}decodePair(t,e,r,n){try{let i=this.findFinderPattern(t,e),s=this.parseFoundFinderPattern(t,r,e,i),o=null==n?null:n.get(S.NEED_RESULT_POINT_CALLBACK);if(null!=o){let n=(i[0]+i[1])/2;e&&(n=t.getSize()-1-n),o.foundPossibleResultPoint(new mt(n,r))}let a=this.decodeDataCharacter(t,s,!0),l=this.decodeDataCharacter(t,s,!1);return new we(1597*a.getValue()+l.getValue(),a.getChecksumPortion()+4*l.getChecksumPortion(),s)}catch(i){return null}}decodeDataCharacter(t,e,r){let n=this.getDataCharacterCounters();for(let w=0;w8&&(e=8);let r=Math.floor(w/2);0==(1&w)?(o[r]=e,l[r]=t-e):(a[r]=e,c[r]=t-e)}this.adjustOddEvenCounts(r,i);let h=0,u=0;for(let w=o.length-1;w>=0;w--)u*=9,u+=o[w],h+=o[w];let d=0,f=0;for(let w=a.length-1;w>=0;w--)d*=9,d+=a[w],f+=a[w];let g=u+3*d;if(r){if(0!=(1&h)||h>12||h<4)throw new M;let t=(12-h)/2,e=me.OUTSIDE_ODD_WIDEST[t],r=9-e,n=zt.getRSSvalue(o,e,!1),i=zt.getRSSvalue(a,r,!0),s=me.OUTSIDE_EVEN_TOTAL_SUBSET[t],l=me.OUTSIDE_GSUM[t];return new Xt(n*s+i+l,g)}{if(0!=(1&f)||f>10||f<4)throw new M;let t=(10-f)/2,e=me.INSIDE_ODD_WIDEST[t],r=9-e,n=zt.getRSSvalue(o,e,!0),i=zt.getRSSvalue(a,r,!1),s=me.INSIDE_ODD_TOTAL_SUBSET[t],l=me.INSIDE_GSUM[t];return new Xt(i*s+n+l,g)}}findFinderPattern(t,e){let r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;let n=t.getSize(),i=!1,s=0;for(;s=0&&i!==t.get(s);)s--;s++;const o=n[0]-s,a=this.getDecodeFinderCounters(),l=new Int32Array(a.length);w.arraycopy(a,0,l,1,a.length-1),l[0]=o;const c=this.parseFinderValue(l,me.FINDER_PATTERNS);let h=s,u=n[1];return r&&(h=t.getSize()-1-h,u=t.getSize()-1-u),new Wt(c,[s,n[1]],h,u,e)}adjustOddEvenCounts(t,e){let r=gt.sum(new Int32Array(this.getOddCounts())),n=gt.sum(new Int32Array(this.getEvenCounts())),i=!1,s=!1,o=!1,a=!1;t?(r>12?s=!0:r<4&&(i=!0),n>12?a=!0:n<4&&(o=!0)):(r>11?s=!0:r<5&&(i=!0),n>10?a=!0:n<4&&(o=!0));let l=r+n-e,c=(1&r)==(t?1:0),h=1==(1&n);if(1===l)if(c){if(h)throw new M;s=!0}else{if(!h)throw new M;a=!0}else if(-1===l)if(c){if(h)throw new M;i=!0}else{if(!h)throw new M;o=!0}else{if(0!==l)throw new M;if(c){if(!h)throw new M;rt.reset()))}}class Ce extends V{constructor(t=500,e){super(new Ae(e),t,e)}}class Ee{constructor(t,e,r){this.ecCodewords=t,this.ecBlocks=[e],r&&this.ecBlocks.push(r)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class pe{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class _e{constructor(t,e,r,n,i,s){this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=i,this.ecBlocks=s;let o=0;const a=s.getECCodewords(),l=s.getECBlocks();for(let c of l)o+=c.getCount()*(c.getDataCodewords()+a);this.totalCodewords=o}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(t,e){if(0!=(1&t)||0!=(1&e))throw new T;for(let r of _e.VERSIONS)if(r.symbolSizeRows===t&&r.symbolSizeColumns===e)return r;throw new T}toString(){return""+this.versionNumber}static buildVersions(){return[new _e(1,10,10,8,8,new Ee(5,new pe(1,3))),new _e(2,12,12,10,10,new Ee(7,new pe(1,5))),new _e(3,14,14,12,12,new Ee(10,new pe(1,8))),new _e(4,16,16,14,14,new Ee(12,new pe(1,12))),new _e(5,18,18,16,16,new Ee(14,new pe(1,18))),new _e(6,20,20,18,18,new Ee(18,new pe(1,22))),new _e(7,22,22,20,20,new Ee(20,new pe(1,30))),new _e(8,24,24,22,22,new Ee(24,new pe(1,36))),new _e(9,26,26,24,24,new Ee(28,new pe(1,44))),new _e(10,32,32,14,14,new Ee(36,new pe(1,62))),new _e(11,36,36,16,16,new Ee(42,new pe(1,86))),new _e(12,40,40,18,18,new Ee(48,new pe(1,114))),new _e(13,44,44,20,20,new Ee(56,new pe(1,144))),new _e(14,48,48,22,22,new Ee(68,new pe(1,174))),new _e(15,52,52,24,24,new Ee(42,new pe(2,102))),new _e(16,64,64,14,14,new Ee(56,new pe(2,140))),new _e(17,72,72,16,16,new Ee(36,new pe(4,92))),new _e(18,80,80,18,18,new Ee(48,new pe(4,114))),new _e(19,88,88,20,20,new Ee(56,new pe(4,144))),new _e(20,96,96,22,22,new Ee(68,new pe(4,174))),new _e(21,104,104,24,24,new Ee(56,new pe(6,136))),new _e(22,120,120,18,18,new Ee(68,new pe(6,175))),new _e(23,132,132,20,20,new Ee(62,new pe(8,163))),new _e(24,144,144,22,22,new Ee(62,new pe(8,156),new pe(2,155))),new _e(25,8,18,6,16,new Ee(7,new pe(1,5))),new _e(26,8,32,6,14,new Ee(11,new pe(1,10))),new _e(27,12,26,10,24,new Ee(14,new pe(1,16))),new _e(28,12,36,10,16,new Ee(18,new pe(1,22))),new _e(29,16,36,14,16,new Ee(24,new pe(1,32))),new _e(30,16,48,14,22,new Ee(28,new pe(1,49)))]}}_e.VERSIONS=_e.buildVersions();class Ie{constructor(t){const e=t.getHeight();if(e<8||e>144||0!=(1&e))throw new T;this.version=Ie.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new b(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(t){const e=t.getHeight(),r=t.getWidth();return _e.getVersionForDimensions(e,r)}readCodewords(){const t=new Int8Array(this.version.getTotalCodewords());let e=0,r=4,n=0;const i=this.mappingBitMatrix.getHeight(),s=this.mappingBitMatrix.getWidth();let o=!1,a=!1,l=!1,c=!1;do{if(r!==i||0!==n||o)if(r!==i-2||0!==n||0==(3&s)||a)if(r!==i+4||2!==n||0!=(7&s)||l)if(r!==i-2||0!==n||4!=(7&s)||c){do{r=0&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,i,s)),r-=2,n+=2}while(r>=0&&n=0&&n=0);r+=3,n+=1}else t[e++]=255&this.readCorner4(i,s),r-=2,n+=2,c=!0;else t[e++]=255&this.readCorner3(i,s),r-=2,n+=2,l=!0;else t[e++]=255&this.readCorner2(i,s),r-=2,n+=2,a=!0;else t[e++]=255&this.readCorner1(i,s),r-=2,n+=2,o=!0}while(r7?u-1:u;s[r].codewords[n]=t[c++]}if(c!==t.length)throw new u;return s}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class Te{constructor(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(t){if(t<1||t>32||t>this.available())throw new u(""+t);let e=0,r=this.bitOffset,n=this.byteOffset;const i=this.bytes;if(r>0){const s=8-r,o=t>8-o<>a,t-=o,r+=o,8===r&&(r=0,n++)}if(t>0){for(;t>=8;)e=e<<8|255&i[n],n++,t-=8;if(t>0){const s=8-t,o=255>>s<>s,r+=t}}return this.bitOffset=r,this.byteOffset=n,e}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}(tt=K||(K={}))[tt.PAD_ENCODE=0]="PAD_ENCODE",tt[tt.ASCII_ENCODE=1]="ASCII_ENCODE",tt[tt.C40_ENCODE=2]="C40_ENCODE",tt[tt.TEXT_ENCODE=3]="TEXT_ENCODE",tt[tt.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",tt[tt.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",tt[tt.BASE256_ENCODE=6]="BASE256_ENCODE";class ye{static decode(t){const e=new Te(t),r=new O,n=new O,i=new Array;let s=K.ASCII_ENCODE;do{if(s===K.ASCII_ENCODE)s=this.decodeAsciiSegment(e,r,n);else{switch(s){case K.C40_ENCODE:this.decodeC40Segment(e,r);break;case K.TEXT_ENCODE:this.decodeTextSegment(e,r);break;case K.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,r);break;case K.EDIFACT_ENCODE:this.decodeEdifactSegment(e,r);break;case K.BASE256_ENCODE:this.decodeBase256Segment(e,r,i);break;default:throw new T}s=K.ASCII_ENCODE}}while(s!==K.PAD_ENCODE&&e.available()>0);return n.length()>0&&r.append(n.toString()),new st(t,r.toString(),0===i.length?null:i,null)}static decodeAsciiSegment(t,e,r){let n=!1;do{let i=t.readBits(8);if(0===i)throw new T;if(i<=128)return n&&(i+=128),e.append(String.fromCharCode(i-1)),K.ASCII_ENCODE;if(129===i)return K.PAD_ENCODE;if(i<=229){const t=i-130;t<10&&e.append("0"),e.append(""+t)}else switch(i){case 230:return K.C40_ENCODE;case 231:return K.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:n=!0;break;case 236:e.append("[)>05"),r.insert(0,"");break;case 237:e.append("[)>06"),r.insert(0,"");break;case 238:return K.ANSIX12_ENCODE;case 239:return K.TEXT_ENCODE;case 240:return K.EDIFACT_ENCODE;default:if(254!==i||0!==t.available())throw new T}}while(t.available()>0);return K.ASCII_ENCODE}static decodeC40Segment(t,e){let r=!1;const n=[];let i=0;do{if(8===t.available())return;const s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),n);for(let t=0;t<3;t++){const s=n[t];switch(i){case 0:if(s<3)i=s+1;else{if(!(s0)}static decodeTextSegment(t,e){let r=!1,n=[],i=0;do{if(8===t.available())return;const s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),n);for(let t=0;t<3;t++){const s=n[t];switch(i){case 0:if(s<3)i=s+1;else{if(!(s0)}static decodeAnsiX12Segment(t,e){const r=[];do{if(8===t.available())return;const n=t.readBits(8);if(254===n)return;this.parseTwoBytes(n,t.readBits(8),r);for(let t=0;t<3;t++){const n=r[t];switch(n){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(n<14)e.append(String.fromCharCode(n+44));else{if(!(n<40))throw new T;e.append(String.fromCharCode(n+51))}}}}while(t.available()>0)}static parseTwoBytes(t,e,r){let n=(t<<8)+e-1,i=Math.floor(n/1600);r[0]=i,n-=1600*i,i=Math.floor(n/40),r[1]=i,r[2]=n-40*i}static decodeEdifactSegment(t,e){do{if(t.available()<=16)return;for(let r=0;r<4;r++){let r=t.readBits(6);if(31===r){const e=8-t.getBitOffset();return void(8!==e&&t.readBits(e))}0==(32&r)&&(r|=64),e.append(String.fromCharCode(r))}}while(t.available()>0)}static decodeBase256Segment(t,e,r){let n=1+t.getByteOffset();const i=this.unrandomize255State(t.readBits(8),n++);let s;if(s=0===i?t.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(t.readBits(8),n++),s<0)throw new T;const o=new Uint8Array(s);for(let l=0;l=0?r:r+256}}ye.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ye.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],ye.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],ye.TEXT_SHIFT2_SET_CHARS=ye.C40_SHIFT2_SET_CHARS,ye.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class Re{constructor(){this.rsDecoder=new dt(ct.DATA_MATRIX_FIELD_256)}decode(t){const e=new Ie(t),r=e.getVersion(),n=e.readCodewords(),i=Se.getDataBlocks(n,r);let s=0;for(let l of i)s+=l.getNumDataCodewords();const o=new Uint8Array(s),a=i.length;for(let l=0;lo&&(c=o,h[0]=e,h[1]=r,h[2]=n,h[3]=i),c>a&&(c=a,h[0]=r,h[1]=n,h[2]=i,h[3]=e),c>l&&(h[0]=n,h[1]=i,h[2]=e,h[3]=r),h}detectSolid2(t){let e=t[0],r=t[1],n=t[2],i=t[3],s=this.transitionsBetween(e,i),o=Ne.shiftPoint(r,n,4*(s+1)),a=Ne.shiftPoint(n,r,4*(s+1));return this.transitionsBetween(o,e)this.transitionsBetween(a,h)+this.transitionsBetween(l,h)?c:h:c:this.isValid(h)?h:null}shiftToModuleCenter(t){let e=t[0],r=t[1],n=t[2],i=t[3],s=this.transitionsBetween(e,i)+1,o=this.transitionsBetween(n,i)+1,a=Ne.shiftPoint(e,r,4*o),l=Ne.shiftPoint(n,r,4*s);s=this.transitionsBetween(a,i)+1,o=this.transitionsBetween(l,i)+1,1==(1&s)&&(s+=1),1==(1&o)&&(o+=1);let c,h,u=(e.getX()+r.getX()+n.getX()+i.getX())/4,d=(e.getY()+r.getY()+n.getY()+i.getY())/4;return e=Ne.moveAway(e,u,d),r=Ne.moveAway(r,u,d),n=Ne.moveAway(n,u,d),i=Ne.moveAway(i,u,d),a=Ne.shiftPoint(e,r,4*o),a=Ne.shiftPoint(a,i,4*s),c=Ne.shiftPoint(r,e,4*o),c=Ne.shiftPoint(c,n,4*s),l=Ne.shiftPoint(n,i,4*o),l=Ne.shiftPoint(l,r,4*s),h=Ne.shiftPoint(i,n,4*o),h=Ne.shiftPoint(h,e,4*s),[a,c,l,h]}isValid(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(i-r);if(o){let t=r;r=n,n=t,t=i,i=s,s=t}let a=Math.abs(i-r),l=Math.abs(s-n),c=-a/2,h=n0){if(w===s)break;w+=h,c-=a}}return d}}class De{constructor(){this.decoder=new Re}decode(t,e=null){let r,n;if(null!=e&&e.has(S.PURE_BARCODE)){const e=De.extractPureBits(t.getBlackMatrix());r=this.decoder.decode(e),n=De.NO_POINTS}else{const e=new Ne(t.getBlackMatrix()).detect();r=this.decoder.decode(e.getBits()),n=e.getPoints()}const i=r.getRawBytes(),s=new G(r.getText(),i,8*i.length,n,z.DATA_MATRIX,w.currentTimeMillis()),o=r.getByteSegments();null!=o&&s.putMetadata(it.BYTE_SEGMENTS,o);const a=r.getECLevel();return null!=a&&s.putMetadata(it.ERROR_CORRECTION_LEVEL,a),s}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new M;const n=this.moduleSize(e,t);let i=e[1];const s=r[1];let o=e[0];const a=(r[0]-o+1)/n,l=(s-i+1)/n;if(a<=0||l<=0)throw new M;const c=n/2;i+=c,o+=c;const h=new b(a,l);for(let u=0;u=be.FOR_BITS.size)throw new u;return be.FOR_BITS.get(t)}}be.FOR_BITS=new Map,be.FOR_VALUE=new Map,be.L=new be(q.L,"L",1),be.M=new be(q.M,"M",0),be.Q=new be(q.Q,"Q",3),be.H=new be(q.H,"H",2);class Me{constructor(t){this.errorCorrectionLevel=be.forBits(t>>3&3),this.dataMask=7&t}static numBitsDiffering(t,e){return E.bitCount(t^e)}static decodeFormatInformation(t,e){const r=Me.doDecodeFormatInformation(t,e);return null!==r?r:Me.doDecodeFormatInformation(t^Me.FORMAT_INFO_MASK_QR,e^Me.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(t,e){let r=Number.MAX_SAFE_INTEGER,n=0;for(const i of Me.FORMAT_INFO_DECODE_LOOKUP){const s=i[0];if(s===t||s===e)return new Me(i[1]);let o=Me.numBitsDiffering(t,s);o40)throw new u;return ve.VERSIONS[t-1]}static decodeVersionInformation(t){let e=Number.MAX_SAFE_INTEGER,r=0;for(let n=0;n6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e}toString(){return""+this.versionNumber}}ve.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),ve.VERSIONS=[new ve(1,new Int32Array(0),new Pe(7,new Be(1,19)),new Pe(10,new Be(1,16)),new Pe(13,new Be(1,13)),new Pe(17,new Be(1,9))),new ve(2,Int32Array.from([6,18]),new Pe(10,new Be(1,34)),new Pe(16,new Be(1,28)),new Pe(22,new Be(1,22)),new Pe(28,new Be(1,16))),new ve(3,Int32Array.from([6,22]),new Pe(15,new Be(1,55)),new Pe(26,new Be(1,44)),new Pe(18,new Be(2,17)),new Pe(22,new Be(2,13))),new ve(4,Int32Array.from([6,26]),new Pe(20,new Be(1,80)),new Pe(18,new Be(2,32)),new Pe(26,new Be(2,24)),new Pe(16,new Be(4,9))),new ve(5,Int32Array.from([6,30]),new Pe(26,new Be(1,108)),new Pe(24,new Be(2,43)),new Pe(18,new Be(2,15),new Be(2,16)),new Pe(22,new Be(2,11),new Be(2,12))),new ve(6,Int32Array.from([6,34]),new Pe(18,new Be(2,68)),new Pe(16,new Be(4,27)),new Pe(24,new Be(4,19)),new Pe(28,new Be(4,15))),new ve(7,Int32Array.from([6,22,38]),new Pe(20,new Be(2,78)),new Pe(18,new Be(4,31)),new Pe(18,new Be(2,14),new Be(4,15)),new Pe(26,new Be(4,13),new Be(1,14))),new ve(8,Int32Array.from([6,24,42]),new Pe(24,new Be(2,97)),new Pe(22,new Be(2,38),new Be(2,39)),new Pe(22,new Be(4,18),new Be(2,19)),new Pe(26,new Be(4,14),new Be(2,15))),new ve(9,Int32Array.from([6,26,46]),new Pe(30,new Be(2,116)),new Pe(22,new Be(3,36),new Be(2,37)),new Pe(20,new Be(4,16),new Be(4,17)),new Pe(24,new Be(4,12),new Be(4,13))),new ve(10,Int32Array.from([6,28,50]),new Pe(18,new Be(2,68),new Be(2,69)),new Pe(26,new Be(4,43),new Be(1,44)),new Pe(24,new Be(6,19),new Be(2,20)),new Pe(28,new Be(6,15),new Be(2,16))),new ve(11,Int32Array.from([6,30,54]),new Pe(20,new Be(4,81)),new Pe(30,new Be(1,50),new Be(4,51)),new Pe(28,new Be(4,22),new Be(4,23)),new Pe(24,new Be(3,12),new Be(8,13))),new ve(12,Int32Array.from([6,32,58]),new Pe(24,new Be(2,92),new Be(2,93)),new Pe(22,new Be(6,36),new Be(2,37)),new Pe(26,new Be(4,20),new Be(6,21)),new Pe(28,new Be(7,14),new Be(4,15))),new ve(13,Int32Array.from([6,34,62]),new Pe(26,new Be(4,107)),new Pe(22,new Be(8,37),new Be(1,38)),new Pe(24,new Be(8,20),new Be(4,21)),new Pe(22,new Be(12,11),new Be(4,12))),new ve(14,Int32Array.from([6,26,46,66]),new Pe(30,new Be(3,115),new Be(1,116)),new Pe(24,new Be(4,40),new Be(5,41)),new Pe(20,new Be(11,16),new Be(5,17)),new Pe(24,new Be(11,12),new Be(5,13))),new ve(15,Int32Array.from([6,26,48,70]),new Pe(22,new Be(5,87),new Be(1,88)),new Pe(24,new Be(5,41),new Be(5,42)),new Pe(30,new Be(5,24),new Be(7,25)),new Pe(24,new Be(11,12),new Be(7,13))),new ve(16,Int32Array.from([6,26,50,74]),new Pe(24,new Be(5,98),new Be(1,99)),new Pe(28,new Be(7,45),new Be(3,46)),new Pe(24,new Be(15,19),new Be(2,20)),new Pe(30,new Be(3,15),new Be(13,16))),new ve(17,Int32Array.from([6,30,54,78]),new Pe(28,new Be(1,107),new Be(5,108)),new Pe(28,new Be(10,46),new Be(1,47)),new Pe(28,new Be(1,22),new Be(15,23)),new Pe(28,new Be(2,14),new Be(17,15))),new ve(18,Int32Array.from([6,30,56,82]),new Pe(30,new Be(5,120),new Be(1,121)),new Pe(26,new Be(9,43),new Be(4,44)),new Pe(28,new Be(17,22),new Be(1,23)),new Pe(28,new Be(2,14),new Be(19,15))),new ve(19,Int32Array.from([6,30,58,86]),new Pe(28,new Be(3,113),new Be(4,114)),new Pe(26,new Be(3,44),new Be(11,45)),new Pe(26,new Be(17,21),new Be(4,22)),new Pe(26,new Be(9,13),new Be(16,14))),new ve(20,Int32Array.from([6,34,62,90]),new Pe(28,new Be(3,107),new Be(5,108)),new Pe(26,new Be(3,41),new Be(13,42)),new Pe(30,new Be(15,24),new Be(5,25)),new Pe(28,new Be(15,15),new Be(10,16))),new ve(21,Int32Array.from([6,28,50,72,94]),new Pe(28,new Be(4,116),new Be(4,117)),new Pe(26,new Be(17,42)),new Pe(28,new Be(17,22),new Be(6,23)),new Pe(30,new Be(19,16),new Be(6,17))),new ve(22,Int32Array.from([6,26,50,74,98]),new Pe(28,new Be(2,111),new Be(7,112)),new Pe(28,new Be(17,46)),new Pe(30,new Be(7,24),new Be(16,25)),new Pe(24,new Be(34,13))),new ve(23,Int32Array.from([6,30,54,78,102]),new Pe(30,new Be(4,121),new Be(5,122)),new Pe(28,new Be(4,47),new Be(14,48)),new Pe(30,new Be(11,24),new Be(14,25)),new Pe(30,new Be(16,15),new Be(14,16))),new ve(24,Int32Array.from([6,28,54,80,106]),new Pe(30,new Be(6,117),new Be(4,118)),new Pe(28,new Be(6,45),new Be(14,46)),new Pe(30,new Be(11,24),new Be(16,25)),new Pe(30,new Be(30,16),new Be(2,17))),new ve(25,Int32Array.from([6,32,58,84,110]),new Pe(26,new Be(8,106),new Be(4,107)),new Pe(28,new Be(8,47),new Be(13,48)),new Pe(30,new Be(7,24),new Be(22,25)),new Pe(30,new Be(22,15),new Be(13,16))),new ve(26,Int32Array.from([6,30,58,86,114]),new Pe(28,new Be(10,114),new Be(2,115)),new Pe(28,new Be(19,46),new Be(4,47)),new Pe(28,new Be(28,22),new Be(6,23)),new Pe(30,new Be(33,16),new Be(4,17))),new ve(27,Int32Array.from([6,34,62,90,118]),new Pe(30,new Be(8,122),new Be(4,123)),new Pe(28,new Be(22,45),new Be(3,46)),new Pe(30,new Be(8,23),new Be(26,24)),new Pe(30,new Be(12,15),new Be(28,16))),new ve(28,Int32Array.from([6,26,50,74,98,122]),new Pe(30,new Be(3,117),new Be(10,118)),new Pe(28,new Be(3,45),new Be(23,46)),new Pe(30,new Be(4,24),new Be(31,25)),new Pe(30,new Be(11,15),new Be(31,16))),new ve(29,Int32Array.from([6,30,54,78,102,126]),new Pe(30,new Be(7,116),new Be(7,117)),new Pe(28,new Be(21,45),new Be(7,46)),new Pe(30,new Be(1,23),new Be(37,24)),new Pe(30,new Be(19,15),new Be(26,16))),new ve(30,Int32Array.from([6,26,52,78,104,130]),new Pe(30,new Be(5,115),new Be(10,116)),new Pe(28,new Be(19,47),new Be(10,48)),new Pe(30,new Be(15,24),new Be(25,25)),new Pe(30,new Be(23,15),new Be(25,16))),new ve(31,Int32Array.from([6,30,56,82,108,134]),new Pe(30,new Be(13,115),new Be(3,116)),new Pe(28,new Be(2,46),new Be(29,47)),new Pe(30,new Be(42,24),new Be(1,25)),new Pe(30,new Be(23,15),new Be(28,16))),new ve(32,Int32Array.from([6,34,60,86,112,138]),new Pe(30,new Be(17,115)),new Pe(28,new Be(10,46),new Be(23,47)),new Pe(30,new Be(10,24),new Be(35,25)),new Pe(30,new Be(19,15),new Be(35,16))),new ve(33,Int32Array.from([6,30,58,86,114,142]),new Pe(30,new Be(17,115),new Be(1,116)),new Pe(28,new Be(14,46),new Be(21,47)),new Pe(30,new Be(29,24),new Be(19,25)),new Pe(30,new Be(11,15),new Be(46,16))),new ve(34,Int32Array.from([6,34,62,90,118,146]),new Pe(30,new Be(13,115),new Be(6,116)),new Pe(28,new Be(14,46),new Be(23,47)),new Pe(30,new Be(44,24),new Be(7,25)),new Pe(30,new Be(59,16),new Be(1,17))),new ve(35,Int32Array.from([6,30,54,78,102,126,150]),new Pe(30,new Be(12,121),new Be(7,122)),new Pe(28,new Be(12,47),new Be(26,48)),new Pe(30,new Be(39,24),new Be(14,25)),new Pe(30,new Be(22,15),new Be(41,16))),new ve(36,Int32Array.from([6,24,50,76,102,128,154]),new Pe(30,new Be(6,121),new Be(14,122)),new Pe(28,new Be(6,47),new Be(34,48)),new Pe(30,new Be(46,24),new Be(10,25)),new Pe(30,new Be(2,15),new Be(64,16))),new ve(37,Int32Array.from([6,28,54,80,106,132,158]),new Pe(30,new Be(17,122),new Be(4,123)),new Pe(28,new Be(29,46),new Be(14,47)),new Pe(30,new Be(49,24),new Be(10,25)),new Pe(30,new Be(24,15),new Be(46,16))),new ve(38,Int32Array.from([6,32,58,84,110,136,162]),new Pe(30,new Be(4,122),new Be(18,123)),new Pe(28,new Be(13,46),new Be(32,47)),new Pe(30,new Be(48,24),new Be(14,25)),new Pe(30,new Be(42,15),new Be(32,16))),new ve(39,Int32Array.from([6,26,54,82,110,138,166]),new Pe(30,new Be(20,117),new Be(4,118)),new Pe(28,new Be(40,47),new Be(7,48)),new Pe(30,new Be(43,24),new Be(22,25)),new Pe(30,new Be(10,15),new Be(67,16))),new ve(40,Int32Array.from([6,30,58,86,114,142,170]),new Pe(30,new Be(19,118),new Be(6,119)),new Pe(28,new Be(18,47),new Be(31,48)),new Pe(30,new Be(34,24),new Be(34,25)),new Pe(30,new Be(20,15),new Be(61,16)))],(rt=Q||(Q={}))[rt.DATA_MASK_000=0]="DATA_MASK_000",rt[rt.DATA_MASK_001=1]="DATA_MASK_001",rt[rt.DATA_MASK_010=2]="DATA_MASK_010",rt[rt.DATA_MASK_011=3]="DATA_MASK_011",rt[rt.DATA_MASK_100=4]="DATA_MASK_100",rt[rt.DATA_MASK_101=5]="DATA_MASK_101",rt[rt.DATA_MASK_110=6]="DATA_MASK_110",rt[rt.DATA_MASK_111=7]="DATA_MASK_111";class Le{constructor(t,e){this.value=t,this.isMasked=e}unmaskBitMatrix(t,e){for(let r=0;r0==(t+e&1)))],[Q.DATA_MASK_001,new Le(Q.DATA_MASK_001,((t,e)=>0==(1&t)))],[Q.DATA_MASK_010,new Le(Q.DATA_MASK_010,((t,e)=>e%3==0))],[Q.DATA_MASK_011,new Le(Q.DATA_MASK_011,((t,e)=>(t+e)%3==0))],[Q.DATA_MASK_100,new Le(Q.DATA_MASK_100,((t,e)=>0==(Math.floor(t/2)+Math.floor(e/3)&1)))],[Q.DATA_MASK_101,new Le(Q.DATA_MASK_101,((t,e)=>t*e%6==0))],[Q.DATA_MASK_110,new Le(Q.DATA_MASK_110,((t,e)=>t*e%6<3))],[Q.DATA_MASK_111,new Le(Q.DATA_MASK_111,((t,e)=>0==(t+e+t*e%3&1)))]]);class Fe{constructor(t){const e=t.getHeight();if(e<21||1!=(3&e))throw new T;this.bitMatrix=t}readFormatInformation(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;let t=0;for(let i=0;i<6;i++)t=this.copyBit(i,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(let i=5;i>=0;i--)t=this.copyBit(8,i,t);const e=this.bitMatrix.getHeight();let r=0;const n=e-7;for(let i=e-1;i>=n;i--)r=this.copyBit(8,i,r);for(let i=e-8;i=0;s--)for(let e=t-9;e>=n;e--)r=this.copyBit(e,s,r);let i=ve.decodeVersionInformation(r);if(null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;r=0;for(let s=5;s>=0;s--)for(let e=t-9;e>=n;e--)r=this.copyBit(s,e,r);if(i=ve.decodeVersionInformation(r),null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;throw new T}copyBit(t,e,r){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?r<<1|1:r<<1}readCodewords(){const t=this.readFormatInformation(),e=this.readVersion(),r=Le.values.get(t.getDataMask()),n=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,n);const i=e.buildFunctionPattern();let s=!0;const o=new Uint8Array(e.getTotalCodewords());let a=0,l=0,c=0;for(let h=n-1;h>0;h-=2){6===h&&h--;for(let t=0;t=0&&o[c].codewords.length!==l;)c--;c++;const h=l-n.getECCodewordsPerBlock();let d=0;for(let u=0;ut.available())throw new T;const n=new Uint8Array(2*r);let i=0;for(;r>0;){const e=t.readBits(13);let s=e/96<<8&4294967295|e%96;s+=s<959?41377:42657,n[i]=s>>8&255,n[i+1]=255&s,i+=2,r--}try{e.append(N.decode(n,D.GB2312))}catch(s){throw new T(s)}}static decodeKanjiSegment(t,e,r){if(13*r>t.available())throw new T;const n=new Uint8Array(2*r);let i=0;for(;r>0;){const e=t.readBits(13);let s=e/192<<8&4294967295|e%192;s+=s<7936?33088:49472,n[i]=s>>8,n[i+1]=s,i+=2,r--}try{e.append(N.decode(n,D.SHIFT_JIS))}catch(s){throw new T(s)}}static decodeByteSegment(t,e,r,n,i,s){if(8*r>t.available())throw new T;const o=new Uint8Array(r);for(let c=0;c=Ue.ALPHANUMERIC_CHARS.length)throw new T;return Ue.ALPHANUMERIC_CHARS[t]}static decodeAlphanumericSegment(t,e,r,n){const i=e.length();for(;r>1;){if(t.available()<11)throw new T;const n=t.readBits(11);e.append(Ue.toAlphaNumericChar(Math.floor(n/45))),e.append(Ue.toAlphaNumericChar(n%45)),r-=2}if(1===r){if(t.available()<6)throw new T;e.append(Ue.toAlphaNumericChar(t.readBits(6)))}if(n)for(let s=i;s=3;){if(t.available()<10)throw new T;const n=t.readBits(10);if(n>=1e3)throw new T;e.append(Ue.toAlphaNumericChar(Math.floor(n/100))),e.append(Ue.toAlphaNumericChar(Math.floor(n/10)%10)),e.append(Ue.toAlphaNumericChar(n%10)),r-=3}if(2===r){if(t.available()<7)throw new T;const r=t.readBits(7);if(r>=100)throw new T;e.append(Ue.toAlphaNumericChar(Math.floor(r/10))),e.append(Ue.toAlphaNumericChar(r%10))}else if(1===r){if(t.available()<4)throw new T;const r=t.readBits(4);if(r>=10)throw new T;e.append(Ue.toAlphaNumericChar(r))}}static parseECIValue(t){const e=t.readBits(8);if(0==(128&e))return 127&e;if(128==(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192==(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new T}}Ue.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Ue.GB2312_SUBSET=1;class He{constructor(t){this.mirrored=t}isMirrored(){return this.mirrored}applyMirroredCorrection(t){if(!this.mirrored||null===t||t.length<3)return;const e=t[0];t[0]=t[2],t[2]=e}}class Ve{constructor(){this.rsDecoder=new dt(ct.QR_CODE_FIELD_256)}decodeBooleanArray(t,e){return this.decodeBitMatrix(b.parseFromBooleanArray(t),e)}decodeBitMatrix(t,e){const r=new Fe(t);let n=null;try{return this.decodeBitMatrixParser(r,e)}catch(i){n=i}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();const t=this.decodeBitMatrixParser(r,e);return t.setOther(new He(!0)),t}catch(i){if(null!==n)throw n;throw i}}decodeBitMatrixParser(t,e){const r=t.readVersion(),n=t.readFormatInformation().getErrorCorrectionLevel(),i=t.readCodewords(),s=ke.getDataBlocks(i,r,n);let o=0;for(const c of s)o+=c.getNumDataCodewords();const a=new Uint8Array(o);let l=0;for(const c of s){const t=c.getCodewords(),e=c.getNumDataCodewords();this.correctErrors(t,e);for(let r=0;r=r)return!1;return!0}crossCheckVertical(t,e,r,n){const i=this.image,s=i.getHeight(),o=this.crossCheckStateCount;o[0]=0,o[1]=0,o[2]=0;let a=t;for(;a>=0&&i.get(e,a)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&!i.get(e,a)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;ar)return NaN;for(;ar)return NaN;const l=o[0]+o[1]+o[2];return 5*Math.abs(l-n)>=2*n?NaN:this.foundPatternCross(o)?Xe.centerFromEnd(o,a):NaN}handlePossibleCenter(t,e,r){const n=t[0]+t[1]+t[2],i=Xe.centerFromEnd(t,r),s=this.crossCheckVertical(e,i,2*t[1],n);if(!isNaN(s)){const e=(t[0]+t[1]+t[2])/3;for(const t of this.possibleCenters)if(t.aboutEquals(e,s,i))return t.combineEstimate(s,i,e);const r=new Ge(i,s,e);this.possibleCenters.push(r),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(r)}return null}}class We extends mt{constructor(t,e,r,n){super(t,e),this.estimatedModuleSize=r,this.count=n,void 0===n&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(t,e,r){if(Math.abs(e-this.getY())<=t&&Math.abs(r-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,r){const n=this.count+1,i=(this.count*this.getX()+e)/n,s=(this.count*this.getY()+t)/n,o=(this.count*this.estimatedModuleSize+r)/n;return new We(i,s,o,n)}}class ze{constructor(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class Ye{constructor(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(t){const e=null!=t&&void 0!==t.get(S.TRY_HARDER),r=null!=t&&void 0!==t.get(S.PURE_BARCODE),n=this.image,i=n.getHeight(),s=n.getWidth();let o=Math.floor(3*i/(4*Ye.MAX_MODULES));(ol[2]&&(h+=t-l[2]-o,e=s-1)}t=0,l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0}else l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,t=3;else l[++t]++;else l[t]++;Ye.foundPatternCross(l)&&!0===this.handlePossibleCenter(l,h,s,r)&&(o=l[0],this.hasSkipped&&(a=this.haveMultiplyConfirmedCenters()))}const c=this.selectBestPatterns();return mt.orderBestPatterns(c),new ze(c)}static centerFromEnd(t,e){return e-t[4]-t[3]-t[2]/2}static foundPatternCross(t){let e=0;for(let i=0;i<5;i++){const r=t[i];if(0===r)return!1;e+=r}if(e<7)return!1;const r=e/7,n=r/2;return Math.abs(r-t[0])=s&&e>=s&&o.get(e-s,t-s);)i[2]++,s++;if(t=s&&e>=s&&!o.get(e-s,t-s)&&i[1]<=r;)i[1]++,s++;if(tr)return!1;for(;t>=s&&e>=s&&o.get(e-s,t-s)&&i[0]<=r;)i[0]++,s++;if(i[0]>r)return!1;const a=o.getHeight(),l=o.getWidth();for(s=1;t+s=a||e+s>=l)return!1;for(;t+s=a||e+s>=l||i[3]>=r)return!1;for(;t+s=r)return!1;const c=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(c-n)<2*n&&Ye.foundPatternCross(i)}crossCheckVertical(t,e,r,n){const i=this.image,s=i.getHeight(),o=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(e,a);)o[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(e,a)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&i.get(e,a)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;a=r)return NaN;for(;a=r)return NaN;const l=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(l-n)>=2*n?NaN:Ye.foundPatternCross(o)?Ye.centerFromEnd(o,a):NaN}crossCheckHorizontal(t,e,r,n){const i=this.image,s=i.getWidth(),o=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(a,e);)o[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(a,e)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&i.get(a,e)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;a=r)return NaN;for(;a=r)return NaN;const l=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(l-n)>=n?NaN:Ye.foundPatternCross(o)?Ye.centerFromEnd(o,a):NaN}handlePossibleCenter(t,e,r,n){const i=t[0]+t[1]+t[2]+t[3]+t[4];let s=Ye.centerFromEnd(t,r),o=this.crossCheckVertical(e,Math.floor(s),t[2],i);if(!isNaN(o)&&(s=this.crossCheckHorizontal(Math.floor(s),Math.floor(o),t[2],i),!isNaN(s)&&(!n||this.crossCheckDiagonal(Math.floor(o),Math.floor(s),t[2],i)))){const t=i/7;let e=!1;const r=this.possibleCenters;for(let n=0,i=r.length;n=Ye.CENTER_QUORUM){if(null!=t)return this.hasSkipped=!0,Math.floor((Math.abs(t.getX()-e.getX())-Math.abs(t.getY()-e.getY()))/2);t=e}return 0}haveMultiplyConfirmedCenters(){let t=0,e=0;const r=this.possibleCenters.length;for(const s of this.possibleCenters)s.getCount()>=Ye.CENTER_QUORUM&&(t++,e+=s.getEstimatedModuleSize());if(t<3)return!1;const n=e/r;let i=0;for(const s of this.possibleCenters)i+=Math.abs(s.getEstimatedModuleSize()-n);return i<=.05*e}selectBestPatterns(){const t=this.possibleCenters.length;if(t<3)throw new M;const e=this.possibleCenters;let r;if(t>3){let n=0,i=0;for(const t of this.possibleCenters){const e=t.getEstimatedModuleSize();n+=e,i+=e*e}r=n/t;let s=Math.sqrt(i/t-r*r);e.sort(((t,e)=>{const n=Math.abs(e.getEstimatedModuleSize()-r),i=Math.abs(t.getEstimatedModuleSize()-r);return ni?1:0}));const o=Math.max(.2*r,s);for(let t=0;t3;t++){const n=e[t];Math.abs(n.getEstimatedModuleSize()-r)>o&&(e.splice(t,1),t--)}}if(e.length>3){let t=0;for(const r of e)t+=r.getEstimatedModuleSize();r=t/e.length,e.sort(((t,e)=>{if(e.getCount()===t.getCount()){const n=Math.abs(e.getEstimatedModuleSize()-r),i=Math.abs(t.getEstimatedModuleSize()-r);return ni?-1:0}return e.getCount()-t.getCount()})),e.splice(3)}return[e[0],e[1],e[2]]}}Ye.CENTER_QUORUM=2,Ye.MIN_SKIP=3,Ye.MAX_MODULES=57;class Ze{constructor(t){this.image=t}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(t){this.resultPointCallback=null==t?null:t.get(S.NEED_RESULT_POINT_CALLBACK);const e=new Ye(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)}processFinderPatternInfo(t){const e=t.getTopLeft(),r=t.getTopRight(),n=t.getBottomLeft(),i=this.calculateModuleSize(e,r,n);if(i<1)throw new M("No pattern found in proccess finder.");const s=Ze.computeDimension(e,r,n,i),o=ve.getProvisionalVersionForDimension(s),a=o.getDimensionForVersion()-7;let l=null;if(o.getAlignmentPatternCenters().length>0){const t=r.getX()-e.getX()+n.getX(),s=r.getY()-e.getY()+n.getY(),o=1-3/a,c=Math.floor(e.getX()+o*(t-e.getX())),h=Math.floor(e.getY()+o*(s-e.getY()));for(let e=4;e<=16;e<<=1)try{l=this.findAlignmentInRegion(i,c,h,e);break}catch(d){if(!(d instanceof M))throw d}}const c=Ze.createTransform(e,r,n,l,s),h=Ze.sampleGrid(this.image,c,s);let u;return u=null===l?[n,e,r]:[n,e,r,l],new At(h,u)}static createTransform(t,e,r,n,i){const s=i-3.5;let o,a,l,c;return null!==n?(o=n.getX(),a=n.getY(),l=s-3,c=l):(o=e.getX()-t.getX()+r.getX(),a=e.getY()-t.getY()+r.getY(),l=s,c=s),_t.quadrilateralToQuadrilateral(3.5,3.5,s,3.5,l,c,3.5,s,t.getX(),t.getY(),e.getX(),e.getY(),o,a,r.getX(),r.getY())}static sampleGrid(t,e,r){return St.getInstance().sampleGridWithTransform(t,r,r,e)}static computeDimension(t,e,r,n){const i=gt.round(mt.distance(t,e)/n),s=gt.round(mt.distance(t,r)/n);let o=Math.floor((i+s)/2)+7;switch(3&o){case 0:o++;break;case 2:o--;break;case 3:throw new M("Dimensions could be not found.")}return o}calculateModuleSize(t,e,r){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,r))/2}calculateModuleSizeOneWay(t,e){const r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14}sizeOfBlackWhiteBlackRunBothWays(t,e,r,n){let i=this.sizeOfBlackWhiteBlackRun(t,e,r,n),s=1,o=t-(r-t);o<0?(s=t/(t-o),o=0):o>=this.image.getWidth()&&(s=(this.image.getWidth()-1-t)/(o-t),o=this.image.getWidth()-1);let a=Math.floor(e-(n-e)*s);return s=1,a<0?(s=e/(e-a),a=0):a>=this.image.getHeight()&&(s=(this.image.getHeight()-1-e)/(a-e),a=this.image.getHeight()-1),o=Math.floor(t+(o-t)*s),i+=this.sizeOfBlackWhiteBlackRun(t,e,o,a),i-1}sizeOfBlackWhiteBlackRun(t,e,r,n){const i=Math.abs(n-e)>Math.abs(r-t);if(i){let i=t;t=e,e=i,i=r,r=n,n=i}const s=Math.abs(r-t),o=Math.abs(n-e);let a=-s/2;const l=t0){if(f===n)break;f+=c,a-=s}}return 2===h?gt.distance(r+l,n,t,e):NaN}findAlignmentInRegion(t,e,r,n){const i=Math.floor(n*t),s=Math.max(0,e-i),o=Math.min(this.image.getWidth()-1,e+i);if(o-s<3*t)throw new M("Alignment top exceeds estimated module size.");const a=Math.max(0,r-i),l=Math.min(this.image.getHeight()-1,r+i);if(l-a<3*t)throw new M("Alignment bottom exceeds estimated module size.");return new Xe(this.image,s,a,o-s,l-a,t,this.resultPointCallback).find()}}class Ke{constructor(){this.decoder=new Ve}getDecoder(){return this.decoder}decode(t,e){let r,n;if(null!=e&&void 0!==e.get(S.PURE_BARCODE)){const i=Ke.extractPureBits(t.getBlackMatrix());r=this.decoder.decodeBitMatrix(i,e),n=Ke.NO_POINTS}else{const i=new Ze(t.getBlackMatrix()).detect(e);r=this.decoder.decodeBitMatrix(i.getBits(),e),n=i.getPoints()}r.getOther()instanceof He&&r.getOther().applyMirroredCorrection(n);const i=new G(r.getText(),r.getRawBytes(),void 0,n,z.QR_CODE,void 0),s=r.getByteSegments();null!==s&&i.putMetadata(it.BYTE_SEGMENTS,s);const o=r.getECLevel();return null!==o&&i.putMetadata(it.ERROR_CORRECTION_LEVEL,o),r.hasStructuredAppend()&&(i.putMetadata(it.STRUCTURED_APPEND_SEQUENCE,r.getStructuredAppendSequenceNumber()),i.putMetadata(it.STRUCTURED_APPEND_PARITY,r.getStructuredAppendParity())),i}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null===e||null===r)throw new M;const n=this.moduleSize(e,t);let i=e[1],s=r[1],o=e[0],a=r[0];if(o>=a||i>=s)throw new M;if(s-i!=a-o&&(a=o+(s-i),a>=t.getWidth()))throw new M;const l=Math.round((a-o+1)/n),c=Math.round((s-i+1)/n);if(l<=0||c<=0)throw new M;if(c!==l)throw new M;const h=Math.floor(n/2);i+=h,o+=h;const u=o+Math.floor((l-1)*n)-a;if(u>0){if(u>h)throw new M;o-=u}const d=i+Math.floor((c-1)*n)-s;if(d>0){if(d>h)throw new M;i-=d}const f=new b(l,c);for(let g=0;g0;){const o=je.findGuardPattern(t,i,--n,r,!1,s,l);if(null==o){n++;break}e=o}o[0]=new mt(e[0],n),o[1]=new mt(e[1],n),a=!0;break}}let c=n+1;if(a){let n=0,i=Int32Array.from([Math.trunc(o[0].getX()),Math.trunc(o[1].getX())]);for(;cje.SKIPPED_ROW_COUNT_MAX)break;n++}}c-=n+1,o[2]=new mt(i[0],c),o[3]=new mt(i[1],c)}return c-n0&&l++i?n-i:i-n;if(s>r)return 1/0;a+=s}return a/i}}je.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),je.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),je.MAX_AVG_VARIANCE=.42,je.MAX_INDIVIDUAL_VARIANCE=.8,je.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),je.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),je.MAX_PIXEL_DRIFT=3,je.MAX_PATTERN_DRIFT=5,je.SKIPPED_ROW_COUNT_MAX=25,je.ROW_STEP=5,je.BARCODE_MIN_HEIGHT=10;class Je{constructor(t,e){if(0===e.length)throw new u;this.field=t;let r=e.length;if(r>1&&0===e[0]){let t=1;for(;tr.length){let t=e;e=r,r=t}let n=new Int32Array(r.length),i=r.length-e.length;w.arraycopy(r,0,n,0,i);for(let s=i;s=0;e--){let r=this.getCoefficient(e);0!==r&&(r<0?(t.append(" - "),r=-r):t.length()>0&&t.append(" + "),0!==e&&1===r||t.append(r),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()}}class $e{add(t,e){return(t+e)%this.modulus}subtract(t,e){return(this.modulus+t-e)%this.modulus}exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}inverse(t){if(0===t)throw new lt;return this.expTable[this.modulus-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]}getSize(){return this.modulus}equals(t){return t===this}}class tr extends $e{constructor(t,e){super(),this.modulus=t,this.expTable=new Int32Array(t),this.logTable=new Int32Array(t);let r=1;for(let n=0;n0;f--){let t=n.evaluateAt(this.field.exp(f));i[e-f]=t,0!==t&&(s=!0)}if(!s)return 0;let o=this.field.getOne();if(null!=r)for(const f of r){let e=this.field.exp(t.length-1-f),r=new Je(this.field,new Int32Array([this.field.subtract(0,e),1]));o=o.multiply(r)}let a=new Je(this.field,i),l=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),a,e),c=l[0],h=l[1],u=this.findErrorLocations(c),d=this.findErrorMagnitudes(h,c,u);for(let g=0;g=Math.round(r/2);){let t=n,e=s;if(n=i,s=o,n.isZero())throw f.getChecksumInstance();i=t;let r=this.field.getZero(),a=n.getCoefficient(n.getDegree()),l=this.field.inverse(a);for(;i.getDegree()>=n.getDegree()&&!i.isZero();){let t=i.getDegree()-n.getDegree(),e=this.field.multiply(i.getCoefficient(i.getDegree()),l);r=r.add(this.field.buildMonomial(t,e)),i=i.subtract(n.multiplyByMonomial(t,e))}o=r.multiply(s).subtract(e).negative()}let a=o.getCoefficient(0);if(0===a)throw f.getChecksumInstance();let l=this.field.inverse(a);return[o.multiply(l),i.multiply(l)]}findErrorLocations(t){let e=t.getDegree(),r=new Int32Array(e),n=0;for(let i=1;i0){let e=r?this.topLeft:this.topRight,i=Math.trunc(e.getY()-t);i<0&&(i=0);let o=new mt(e.getX(),i);r?n=o:s=o}if(e>0){let t=r?this.bottomLeft:this.bottomRight,n=Math.trunc(t.getY()+e);n>=this.image.getHeight()&&(n=this.image.getHeight()-1);let s=new mt(t.getX(),n);r?i=s:o=s}return new rr(this.image,n,i,s,o)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class nr{constructor(t,e,r,n){this.columnCount=t,this.errorCorrectionLevel=n,this.rowCountUpperPart=e,this.rowCountLowerPart=r,this.rowCount=e+r}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class ir{constructor(){this.buffer=""}static form(t,e){let r=-1;function n(t,n,i,s,o,a){if("%%"===t)return"%";if(void 0===e[++r])return;t=s?parseInt(s.substr(1)):void 0;let l,c=o?parseInt(o.substr(1)):void 0;switch(a){case"s":l=e[r];break;case"c":l=e[r][0];break;case"f":l=parseFloat(e[r]).toFixed(t);break;case"p":l=parseFloat(e[r]).toPrecision(t);break;case"e":l=parseFloat(e[r]).toExponential(t);break;case"x":l=parseInt(e[r]).toString(c||16);break;case"d":l=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(c);let h=parseInt(i),u=i&&i[0]+""=="0"?"0":" ";for(;l.length=0&&(e=this.codewords[n],null!=e))return e;if(n=this.imageRowToCodewordIndex(t)+r,nr,getValue:()=>n};i.getValue()>t?(t=i.getValue(),e=[],e.push(i.getKey())):i.getValue()===t&&e.push(i.getKey())}return qe.toIntArray(e)}getConfidence(t){return this.values.get(t)}}class ar extends sr{constructor(t,e){super(t),this._isLeft=e}setRowNumbers(){for(let t of this.getCodewords())null!=t&&t.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(t){let e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);let r=this.getBoundingBox(),n=this._isLeft?r.getTopLeft():r.getTopRight(),i=this._isLeft?r.getBottomLeft():r.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(i.getY())),a=-1,l=1,c=0;for(let h=s;h=t.getRowCount()||n>h)e[h]=null;else{let t;t=l>2?(l-2)*n:n;let i=t>=h;for(let r=1;r<=t&&!i;r++)i=null!=e[h-r];i?e[h]=null:(a=r.getRowNumber(),c=1)}}}getRowHeights(){let t=this.getBarcodeMetadata();if(null==t)return null;this.adjustIncompleteIndicatorColumnRowNumbers(t);let e=new Int32Array(t.getRowCount());for(let r of this.getCodewords())if(null!=r){let t=r.getRowNumber();if(t>=e.length)continue;e[t]++}return e}adjustIncompleteIndicatorColumnRowNumbers(t){let e=this.getBoundingBox(),r=this._isLeft?e.getTopLeft():e.getTopRight(),n=this._isLeft?e.getBottomLeft():e.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),s=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.getCodewords(),a=-1;for(let l=i;l=t.getRowCount()?o[l]=null:a=e.getRowNumber())}}getBarcodeMetadata(){let t=this.getCodewords(),e=new or,r=new or,n=new or,i=new or;for(let o of t){if(null==o)continue;o.setRowNumberAsRowIndicatorColumn();let t=o.getValue()%30,s=o.getRowNumber();switch(this._isLeft||(s+=2),s%3){case 0:r.setValue(3*t+1);break;case 1:i.setValue(t/3),n.setValue(t%3);break;case 2:e.setValue(t+1)}}if(0===e.getValue().length||0===r.getValue().length||0===n.getValue().length||0===i.getValue().length||e.getValue()[0]<1||r.getValue()[0]+n.getValue()[0]qe.MAX_ROWS_IN_BARCODE)return null;let s=new nr(e.getValue()[0],r.getValue()[0],n.getValue()[0],i.getValue()[0]);return this.removeIncorrectCodewords(t,s),s}removeIncorrectCodewords(t,e){for(let r=0;re.getRowCount())t[r]=null;else switch(this._isLeft||(s+=2),s%3){case 0:3*i+1!==e.getRowCountUpperPart()&&(t[r]=null);break;case 1:Math.trunc(i/3)===e.getErrorCorrectionLevel()&&i%3===e.getRowCountLowerPart()||(t[r]=null);break;case 2:i+1!==e.getColumnCount()&&(t[r]=null)}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+"\n"+super.toString()}}class lr{constructor(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let t,e=qe.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e0&&i0&&(o[0]=r[e-1],o[4]=i[e-1],o[5]=s[e-1]),e>1&&(o[8]=r[e-2],o[10]=i[e-2],o[11]=s[e-2]),e>=1;r=1&e,hr.RATIOS_TABLE[t]||(hr.RATIOS_TABLE[t]=new Array(qe.BARS_IN_MODULE)),hr.RATIOS_TABLE[t][qe.BARS_IN_MODULE-n-1]=Math.fround(i/qe.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(t){let e=hr.getDecodedCodewordValue(hr.sampleBitCounts(t));return-1!==e?e:hr.getClosestDecodedValue(t)}static sampleBitCounts(t){let e=gt.sum(t),r=new Int32Array(qe.BARS_IN_MODULE),n=0,i=0;for(let s=0;s1)for(let s=0;s=n)break}tnew Array(qe.BARS_IN_MODULE)));class ur{constructor(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(t){this.segmentIndex=t}getFileId(){return this.fileId}setFileId(t){this.fileId=t}getOptionalData(){return this.optionalData}setOptionalData(t){this.optionalData=t}isLastSegment(){return this.lastSegment}setLastSegment(t){this.lastSegment=t}getSegmentCount(){return this.segmentCount}setSegmentCount(t){this.segmentCount=t}getSender(){return this.sender||null}setSender(t){this.sender=t}getAddressee(){return this.addressee||null}setAddressee(t){this.addressee=t}getFileName(){return this.fileName}setFileName(t){this.fileName=t}getFileSize(){return this.fileSize}setFileSize(t){this.fileSize=t}getChecksum(){return this.checksum}setChecksum(t){this.checksum=t}getTimestamp(){return this.timestamp}setTimestamp(t){this.timestamp=t}}class dr{static parseLong(t,e){return parseInt(t,e)}}class fr extends c{}fr.kind="NullPointerException";class gr{writeBytes(t){this.writeBytesOffset(t,0,t.length)}writeBytesOffset(t,e,r){if(null==t)throw new fr;if(e<0||e>t.length||r<0||e+r>t.length||e+r<0)throw new m;if(0!==r)for(let n=0;n0&&this.grow(t)}grow(t){let e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new wr;e=E.MAX_VALUE}this.buf=C.copyOfUint8Array(this.buf,e)}write(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1}writeBytesOffset(t,e,r){if(e<0||e>t.length||r<0||e+r-t.length>0)throw new m;this.ensureCapacity(this.count+r),w.arraycopy(t,e,this.buf,this.count,r),this.count+=r}writeTo(t){t.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return C.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(t){return t?"string"==typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(t){return new String(this.buf).toString()}toString_number(t){return new String(this.buf).toString()}close(){}}function Ar(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==Y)return Y.BigInt||null;if("undefined"!=typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}let Cr;function Er(t){if(void 0===Cr&&(Cr=Ar()),null===Cr)throw new Error("BigInt is not supported!");return Cr(t)}function pr(){let t=[];t[0]=Er(1);let e=Er(900);t[1]=e;for(let r=2;r<16;r++)t[r]=t[r-1]*e;return t}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(J||(J={}));class _r{static decode(t,e){let r=new O(""),n=y.ISO8859_1;r.enableDecoding(n);let i=1,s=t[i++],o=new ur;for(;it[0])throw T.getFormatInstance();let n=new Int32Array(_r.NUMBER_OF_SEQUENCE_CODEWORDS);for(let o=0;o<_r.NUMBER_OF_SEQUENCE_CODEWORDS;o++,e++)n[o]=t[e];r.setSegmentIndex(E.parseInt(_r.decodeBase900toBase10(n,_r.NUMBER_OF_SEQUENCE_CODEWORDS)));let i=new O;e=_r.textCompaction(t,e,i),r.setFileId(i.toString());let s=-1;for(t[e]===_r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=e+1);e0){for(let t=0;t<6;++t)s.write(Number(Er(a)>>Er(8*(5-t))));a=0,o=0}}n===e[0]&&r<_r.TEXT_COMPACTION_MODE_LATCH&&(t[o++]=r);for(let e=0;e0){for(let t=0;t<6;++t)s.write(Number(Er(a)>>Er(8*(5-t))));a=0,o=0}}}return i.append(N.decode(s.toByteArray(),r)),n}static numericCompaction(t,e,r){let n=0,i=!1,s=new Int32Array(_r.MAX_NUMERIC_CODEWORDS);for(;e0&&(r.append(_r.decodeBase900toBase10(s,n)),n=0)}return e}static decodeBase900toBase10(t,e){let r=Er(0);for(let i=0;i@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",_r.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",_r.EXP900=Ar()?pr():[],_r.NUMBER_OF_SEQUENCE_CODEWORDS=2;class Ir{constructor(){}static decode(t,e,r,n,i,s,o){let a,l=new rr(t,e,r,n,i),c=null,h=null;for(let f=!0;;f=!1){if(null!=e&&(c=Ir.getRowIndicatorColumn(t,l,e,!0,s,o)),null!=n&&(h=Ir.getRowIndicatorColumn(t,l,n,!1,s,o)),a=Ir.merge(c,h),null==a)throw M.getNotFoundInstance();let r=a.getBoundingBox();if(!f||null==r||!(r.getMinY()l.getMaxY()))break;l=r}a.setBoundingBox(l);let u=a.getBarcodeColumnCount()+1;a.setDetectionResultColumn(0,c),a.setDetectionResultColumn(u,h);let d=null!=c;for(let f=1;f<=u;f++){let e,r=d?f:u-f;if(void 0!==a.getDetectionResultColumn(r))continue;e=0===r||r===u?new ar(l,0===r):new sr(l),a.setDetectionResultColumn(r,e);let n=-1,i=n;for(let c=l.getMinY();c<=l.getMaxY();c++){if(n=Ir.getStartColumn(a,r,c,d),n<0||n>l.getMaxX()){if(-1===i)continue;n=i}let h=Ir.detectCodeword(t,l.getMinX(),l.getMaxX(),d,n,c,s,o);null!=h&&(e.setCodeword(c,h),i=n,s=Math.min(s,h.getWidth()),o=Math.max(o,h.getWidth()))}}return Ir.createDecoderResult(a)}static merge(t,e){if(null==t&&null==e)return null;let r=Ir.getBarcodeMetadata(t,e);if(null==r)return null;let n=rr.merge(Ir.adjustBoundingBox(t),Ir.adjustBoundingBox(e));return new lr(r,n)}static adjustBoundingBox(t){if(null==t)return null;let e=t.getRowHeights();if(null==e)return null;let r=Ir.getMax(e),n=0;for(let o of e)if(n+=r-o,o>0)break;let i=t.getCodewords();for(let o=0;n>0&&null==i[o];o++)n--;let s=0;for(let o=e.length-1;o>=0&&(s+=r-e[o],!(e[o]>0));o--);for(let o=i.length-1;s>0&&null==i[o];o--)s--;return t.getBoundingBox().addMissingRows(n,s,t.isLeft())}static getMax(t){let e=-1;for(let r of t)e=Math.max(e,r);return e}static getBarcodeMetadata(t,e){let r,n;return null==t||null==(r=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(n=e.getBarcodeMetadata())?r:r.getColumnCount()!==n.getColumnCount()&&r.getErrorCorrectionLevel()!==n.getErrorCorrectionLevel()&&r.getRowCount()!==n.getRowCount()?null:r}static getRowIndicatorColumn(t,e,r,n,i,s){let o=new ar(e,n);for(let a=0;a<2;a++){let l=0===a?1:-1,c=Math.trunc(Math.trunc(r.getX()));for(let a=Math.trunc(Math.trunc(r.getY()));a<=e.getMaxY()&&a>=e.getMinY();a+=l){let e=Ir.detectCodeword(t,0,t.getWidth(),n,c,a,i,s);null!=e&&(o.setCodeword(a,e),c=n?e.getStartX():e.getEndX())}}return o}static adjustCodewordCount(t,e){let r=e[0][1],n=r.getValue(),i=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-Ir.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===n.length){if(i<1||i>qe.MAX_CODEWORDS_IN_BARCODE)throw M.getNotFoundInstance();r.setValue(i)}else n[0]!==i&&r.setValue(i)}static createDecoderResult(t){let e=Ir.createBarcodeMatrix(t);Ir.adjustCodewordCount(t,e);let r=new Array,n=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),i=[],s=new Array;for(let a=0;a0;){for(let t=0;tnew Array(t.getBarcodeColumnCount()+2)));for(let n=0;n=0){if(n>=e.length)continue;e[n][r].setValue(t.getValue())}}r++}return e}static isValidBarcodeColumn(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1}static getStartColumn(t,e,r,n){let i=n?1:-1,s=null;if(Ir.isValidBarcodeColumn(t,e-i)&&(s=t.getDetectionResultColumn(e-i).getCodeword(r)),null!=s)return n?s.getEndX():s.getStartX();if(s=t.getDetectionResultColumn(e).getCodewordNearby(r),null!=s)return n?s.getStartX():s.getEndX();if(Ir.isValidBarcodeColumn(t,e-i)&&(s=t.getDetectionResultColumn(e-i).getCodewordNearby(r)),null!=s)return n?s.getEndX():s.getStartX();let o=0;for(;Ir.isValidBarcodeColumn(t,e-i);){e-=i;for(let r of t.getDetectionResultColumn(e).getCodewords())if(null!=r)return(n?r.getEndX():r.getStartX())+i*o*(r.getEndX()-r.getStartX());o++}return n?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()}static detectCodeword(t,e,r,n,i,s,o,a){i=Ir.adjustCodewordStartColumn(t,e,r,n,i,s);let l,c=Ir.getModuleBitCount(t,e,r,n,i,s);if(null==c)return null;let h=gt.sum(c);if(n)l=i+h;else{for(let t=0;t=e)&&l=e:oIr.CODEWORD_SKEW_SIZE)return i;o+=a}a=-a,n=!n}return o}static checkCodewordSkew(t,e,r){return e-Ir.CODEWORD_SKEW_SIZE<=t&&t<=r+Ir.CODEWORD_SKEW_SIZE}static decodeCodewords(t,e,r){if(0===t.length)throw T.getFormatInstance();let n=1<r/2+Ir.MAX_ERRORS||r<0||r>Ir.MAX_EC_CODEWORDS)throw f.getChecksumInstance();return Ir.errorCorrection.decode(t,r,e)}static verifyCodewordCount(t,e){if(t.length<4)throw T.getFormatInstance();let r=t[0];if(r>t.length)throw T.getFormatInstance();if(0===r){if(!(e>=1;return e}static getCodewordBucketNumber(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)}static getCodewordBucketNumber_number(t){return Ir.getCodewordBucketNumber(Ir.getBitCountForCodeword(t))}static getCodewordBucketNumber_Int32Array(t){return(t[0]-t[2]+t[4]-t[6]+9)%9}static toString(t){let e=new ir;for(let r=0;rt))}static getMaxWidth(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMinWidth(t,e){return null==t||null==e?E.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMaxCodewordWidth(t){return Math.floor(Math.max(Math.max(Sr.getMaxWidth(t[0],t[4]),Sr.getMaxWidth(t[6],t[2])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN),Math.max(Sr.getMaxWidth(t[1],t[5]),Sr.getMaxWidth(t[7],t[3])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(t){return Math.floor(Math.min(Math.min(Sr.getMinWidth(t[0],t[4]),Sr.getMinWidth(t[6],t[2])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN),Math.min(Sr.getMinWidth(t[1],t[5]),Sr.getMinWidth(t[7],t[3])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN)))}reset(){}}class Tr extends c{}Tr.kind="ReaderException";class yr{constructor(t,e){this.verbose=!0===t,e&&this.setHints(e)}decode(t,e){return e&&this.setHints(e),this.decodeInternal(t)}decodeWithState(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)}setHints(t){this.hints=t;const r=!e(t)&&!0===t.get(S.TRY_HARDER),n=e(t)?null:t.get(S.POSSIBLE_FORMATS),i=new Array;if(!e(n)){const e=n.some((t=>t===z.UPC_A||t===z.UPC_E||t===z.EAN_13||t===z.EAN_8||t===z.CODABAR||t===z.CODE_39||t===z.CODE_93||t===z.CODE_128||t===z.ITF||t===z.RSS_14||t===z.RSS_EXPANDED));e&&!r&&i.push(new Ae(t,this.verbose)),n.includes(z.QR_CODE)&&i.push(new Ke),n.includes(z.DATA_MATRIX)&&i.push(new De),n.includes(z.AZTEC)&&i.push(new Rt),n.includes(z.PDF_417)&&i.push(new Sr),e&&r&&i.push(new Ae(t,this.verbose))}0===i.length&&(r||i.push(new Ae(t,this.verbose)),i.push(new Ke),i.push(new De),i.push(new Rt),i.push(new Sr),r&&i.push(new Ae(t,this.verbose))),this.readers=i}reset(){if(null!==this.readers)for(const t of this.readers)t.reset()}decodeInternal(t){if(null===this.readers)throw new Tr("No readers where selected, nothing can be read.");for(const r of this.readers)try{return r.decode(t,this.hints)}catch(e){if(e instanceof Tr)continue}throw new M("No MultiFormat Readers were able to detect the code.")}}class Rr extends V{constructor(t=null,e=500){const r=new yr;r.setHints(t),super(r,e)}decodeBitmap(t){return this.reader.decodeWithState(t)}}class Nr extends V{constructor(t=500){super(new Sr,t)}}class Dr extends V{constructor(t=500){super(new Ke,t)}}var Or,br;(br=Or||(Or={}))[br.ERROR_CORRECTION=0]="ERROR_CORRECTION",br[br.CHARACTER_SET=1]="CHARACTER_SET",br[br.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",br[br.MIN_SIZE=3]="MIN_SIZE",br[br.MAX_SIZE=4]="MAX_SIZE",br[br.MARGIN=5]="MARGIN",br[br.PDF417_COMPACT=6]="PDF417_COMPACT",br[br.PDF417_COMPACTION=7]="PDF417_COMPACTION",br[br.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",br[br.AZTEC_LAYERS=9]="AZTEC_LAYERS",br[br.QR_VERSION=10]="QR_VERSION";var Mr=Or;class Pr{constructor(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new at(t,Int32Array.from([1])))}buildGenerator(t){const e=this.cachedGenerators;if(t>=e.length){let r=e[e.length-1];const n=this.field;for(let i=e.length;i<=t;i++){const t=r.multiply(new at(n,Int32Array.from([1,n.exp(i-1+n.getGeneratorBase())])));e.push(t),r=t}}return e[t]}encode(t,e){if(0===e)throw new u("No error correction bytes");const r=t.length-e;if(r<=0)throw new u("No data bytes provided");const n=this.buildGenerator(e),i=new Int32Array(r);w.arraycopy(t,0,i,0,r);let s=new at(this.field,i);s=s.multiplyByMonomial(e,1);const o=s.divide(n)[1].getCoefficients(),a=e-o.length;for(let l=0;l=5&&(r+=Br.N1+(t-5)),t=1,n=i)}t>=5&&(r+=Br.N1+(t-5))}return r}}Br.N1=3,Br.N2=3,Br.N3=40,Br.N4=10;class vr{constructor(t,e){this.width=t,this.height=e;const r=new Array(e);for(let n=0;n!==e;n++)r[n]=new Uint8Array(t);this.bytes=r}getHeight(){return this.height}getWidth(){return this.width}get(t,e){return this.bytes[e][t]}getArray(){return this.bytes}setNumber(t,e,r){this.bytes[e][t]=r}setBoolean(t,e,r){this.bytes[e][t]=r?1:0}clear(t){for(const e of this.bytes)C.fill(e,t)}equals(t){if(!(t instanceof vr))return!1;const e=t;if(this.width!==e.width)return!1;if(this.height!==e.height)return!1;for(let r=0,n=this.height;r>\n"),t.toString()}setMode(t){this.mode=t}setECLevel(t){this.ecLevel=t}setVersion(t){this.version=t}setMaskPattern(t){this.maskPattern=t}setMatrix(t){this.matrix=t}static isValidMaskPattern(t){return t>=0&&t0;){for(6===s&&(s-=1);o>=0&&o=r;)t^=e<=0)for(let r=0;r!==s;r++){const i=n[r];i>=0&&kr.isEmpty(e.get(i,t))&&kr.embedPositionAdjustmentPattern(i-2,t-2,e)}}}}kr.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),kr.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),kr.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),kr.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),kr.VERSION_INFO_POLY=7973,kr.TYPE_INFO_POLY=1335,kr.TYPE_INFO_MASK_PATTERN=21522;class xr{constructor(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class Ur{constructor(){}static calculateMaskPenalty(t){return Br.applyMaskPenaltyRule1(t)+Br.applyMaskPenaltyRule2(t)+Br.applyMaskPenaltyRule3(t)+Br.applyMaskPenaltyRule4(t)}static encode(t,e,r=null){let n=Ur.DEFAULT_BYTE_MODE_ENCODING;const i=null!==r&&void 0!==r.get(Mr.CHARACTER_SET);i&&(n=r.get(Mr.CHARACTER_SET).toString());const s=this.chooseMode(t,n),o=new p;if(s===xe.BYTE&&(i||Ur.DEFAULT_BYTE_MODE_ENCODING!==n)){const t=y.getCharacterSetECIByName(n);void 0!==t&&this.appendECI(t,o)}this.appendModeInfo(s,o);const a=new p;let l;if(this.appendBytes(t,s,a,n),null!==r&&void 0!==r.get(Mr.QR_VERSION)){const t=Number.parseInt(r.get(Mr.QR_VERSION).toString(),10);l=ve.getVersionForNumber(t);const n=this.calculateBitsNeeded(s,o,a,l);if(!this.willFit(n,l,e))throw new Fr("Data too big for requested version")}else l=this.recommendVersion(e,s,o,a);const c=new p;c.appendBitArray(o);const h=s===xe.BYTE?a.getSizeInBytes():t.length;this.appendLengthInfo(h,l,s,c),c.appendBitArray(a);const u=l.getECBlocksForLevel(e),d=l.getTotalCodewords()-u.getTotalECCodewords();this.terminateBits(d,c);const f=this.interleaveWithECBytes(c,l.getTotalCodewords(),d,u.getNumBlocks()),g=new Lr;g.setECLevel(e),g.setMode(s),g.setVersion(l);const w=l.getDimensionForVersion(),m=new vr(w,w),A=this.chooseMaskPattern(f,e,l,m);return g.setMaskPattern(A),kr.buildMatrix(f,e,l,A,m),g.setMatrix(m),g}static recommendVersion(t,e,r,n){const i=this.calculateBitsNeeded(e,r,n,ve.getVersionForNumber(1)),s=this.chooseVersion(i,t),o=this.calculateBitsNeeded(e,r,n,s);return this.chooseVersion(o,t)}static calculateBitsNeeded(t,e,r,n){return e.getSize()+t.getCharacterCountBits(n)+r.getSize()}static getAlphanumericCode(t){return t159)&&(t<224||t>235))return!1}return!0}static chooseMaskPattern(t,e,r,n){let i=Number.MAX_SAFE_INTEGER,s=-1;for(let o=0;o=(t+7)/8}static terminateBits(t,e){const r=8*t;if(e.getSize()>r)throw new Fr("data bits cannot fit in the QR Code"+e.getSize()+" > "+r);for(let s=0;s<4&&e.getSize()0)for(let s=n;s<8;s++)e.appendBit(!1);const i=t-e.getSizeInBytes();for(let s=0;s=r)throw new Fr("Block ID too large");const o=t%r,a=r-o,l=Math.floor(t/r),c=l+1,h=Math.floor(e/r),u=h+1,d=l-h,f=c-u;if(d!==f)throw new Fr("EC bytes mismatch");if(r!==a+o)throw new Fr("RS blocks mismatch");if(t!==(h+d)*a+(u+f)*o)throw new Fr("Total bytes mismatch");n=1<=0&&e<=9}static appendNumericBytes(t,e){const r=t.length;let n=0;for(;n=33088&&t<=40956?n=t-33088:t>=57408&&t<=60351&&(n=t-49472),-1===n)throw new Fr("Invalid byte sequence");const i=192*(n>>8)+(255&n);e.appendBits(i,13)}}static appendECI(t,e){e.appendBits(xe.ECI.getBits(),4),e.appendBits(t.getValue(),8)}}Ur.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),Ur.DEFAULT_BYTE_MODE_ENCODING=y.UTF8.getName();class Hr{write(t,e,r,n=null){if(0===t.length)throw new u("Found empty contents");if(e<0||r<0)throw new u("Requested dimensions are too small: "+e+"x"+r);let i=be.L,s=Hr.QUIET_ZONE_SIZE;null!==n&&(void 0!==n.get(Mr.ERROR_CORRECTION)&&(i=be.fromString(n.get(Mr.ERROR_CORRECTION).toString())),void 0!==n.get(Mr.MARGIN)&&(s=Number.parseInt(n.get(Mr.MARGIN).toString(),10)));const o=Ur.encode(t,i,n);return this.renderResult(o,e,r,s)}writeToDom(t,e,r,n,i=null){"string"==typeof t&&(t=document.querySelector(t));const s=this.write(e,r,n,i);t&&t.appendChild(s)}renderResult(t,e,r,n){const i=t.getMatrix();if(null===i)throw new ut;const s=i.getWidth(),o=i.getHeight(),a=s+2*n,l=o+2*n,c=Math.max(e,a),h=Math.max(r,l),u=Math.min(Math.floor(c/a),Math.floor(h/l)),d=Math.floor((c-s*u)/2),f=Math.floor((h-o*u)/2),g=this.createSVGElement(c,h);for(let w=0,m=f;we||i+o>r)throw new u("Crop rectangle does not fit within image data.");a&&this.reverseHorizontal(s,o)}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth();(null==e||e.length>16&255,s=r>>7&510,o=255&r;i[e]=(n+s+o)/4&255}this.luminances=i}else this.luminances=t;if(void 0===n&&(this.dataWidth=e),void 0===i&&(this.dataHeight=r),void 0===s&&(this.left=0),void 0===o&&(this.top=0),this.left+e>this.dataWidth||this.top+r>this.dataHeight)throw new u("Crop rectangle does not fit within image data.")}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth();(null==e||e.length"}}class jr extends Qr{constructor(t,e,r){super(t,0,0),this.binaryShiftStart=e,this.binaryShiftByteCount=r}appendTo(t,e){for(let r=0;r62?t.appendBits(this.binaryShiftByteCount-31,16):0===r?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+r],8)}addBinaryShift(t,e){return new jr(this,t,e)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}function Jr(t,e,r){return new jr(t,e,r)}function $r(t,e,r){return new Qr(t,e,r)}const tn=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],en=0,rn=1,nn=2,sn=3,on=4,an=new Qr(null,0,0),ln=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])];function cn(t){for(let e of t)C.fill(e,-1);return t[en][on]=0,t[rn][on]=0,t[rn][en]=28,t[sn][on]=0,t[nn][on]=0,t[nn][en]=15,t}const hn=cn(C.createInt32Array(6,6));class un{constructor(t,e,r,n){this.token=t,this.mode=e,this.binaryShiftByteCount=r,this.bitCount=n}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(t,e){let r=this.bitCount,n=this.token;if(t!==this.mode){let e=ln[this.mode][t];n=$r(n,65535&e,e>>16),r+=e>>16}let i=t===nn?4:5;return n=$r(n,e,i),new un(n,t,0,r+i)}shiftAndAppend(t,e){let r=this.token,n=this.mode===nn?4:5;return r=$r(r,hn[this.mode][t],n),r=$r(r,e,5),new un(r,this.mode,0,this.bitCount+n+5)}addBinaryShiftChar(t){let e=this.token,r=this.mode,n=this.bitCount;if(this.mode===on||this.mode===nn){let t=ln[r][en];e=$r(e,65535&t,t>>16),n+=t>>16,r=en}let i=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,s=new un(e,r,this.binaryShiftByteCount+1,n+i);return 2078===s.binaryShiftByteCount&&(s=s.endBinaryShift(t+1)),s}endBinaryShift(t){if(0===this.binaryShiftByteCount)return this;let e=this.token;return e=Jr(e,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new un(e,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(t){let e=this.bitCount+(ln[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(e+=10),e<=t.bitCount}toBitArray(t){let e=[];for(let n=this.endBinaryShift(t.length).token;null!==n;n=n.getPrevious())e.unshift(n);let r=new p;for(const n of e)n.appendTo(r,t);return r}toString(){return D.format("%s bits=%d bytes=%d",tn[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0}}function dn(t){const e=D.getCharCode(" "),r=D.getCharCode("."),n=D.getCharCode(",");t[en][e]=1;const i=D.getCharCode("Z"),s=D.getCharCode("A");for(let d=s;d<=i;d++)t[en][d]=d-s+2;t[rn][e]=1;const o=D.getCharCode("z"),a=D.getCharCode("a");for(let d=a;d<=o;d++)t[rn][d]=d-a+2;t[nn][e]=1;const l=D.getCharCode("9"),c=D.getCharCode("0");for(let d=c;d<=l;d++)t[nn][d]=d-c+2;t[nn][n]=12,t[nn][r]=13;const h=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""];for(let d=0;d","?","[","]","{","}"];for(let d=0;d0&&(t[on][D.getCharCode(u[d])]=d);return t}un.INITIAL_STATE=new un(an,en,0,0);const fn=dn(C.createInt32Array(5,256));class gn{constructor(t){this.text=t}encode(){const t=D.getCharCode(" "),e=D.getCharCode("\n");let r=Kr.singletonList(un.INITIAL_STATE);for(let n=0;n0?(r=gn.updateStateListForPair(r,n,i),n++):r=this.updateStateListForChar(r,n)}return Kr.min(r,((t,e)=>t.getBitCount()-e.getBitCount())).toBitArray(this.text)}updateStateListForChar(t,e){const r=[];for(let n of t)this.updateStateForChar(n,e,r);return gn.simplifyStates(r)}updateStateForChar(t,e,r){let n=255&this.text[e],i=fn[t.getMode()][n]>0,s=null;for(let o=0;o<=on;o++){let a=fn[o][n];if(a>0){if(null==s&&(s=t.endBinaryShift(e)),!i||o===t.getMode()||o===nn){const t=s.latchAndAppend(o,a);r.push(t)}if(!i&&hn[t.getMode()][o]>=0){const t=s.shiftAndAppend(o,a);r.push(t)}}}if(t.getBinaryShiftByteCount()>0||0===fn[t.getMode()][n]){let n=t.addBinaryShiftChar(e);r.push(n)}}static updateStateListForPair(t,e,r){const n=[];for(let i of t)this.updateStateForPair(i,e,r,n);return this.simplifyStates(n)}static updateStateForPair(t,e,r,n){let i=t.endBinaryShift(e);if(n.push(i.latchAndAppend(on,r)),t.getMode()!==on&&n.push(i.shiftAndAppend(on,r)),3===r||4===r){let t=i.latchAndAppend(nn,16-r).latchAndAppend(nn,1);n.push(t)}if(t.getBinaryShiftByteCount()>0){let r=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);n.push(r)}}static simplifyStates(t){let e=[];for(const r of t){let t=!0;for(const n of e){if(n.isBetterThanOrEqualTo(r)){t=!1;break}r.isBetterThanOrEqualTo(n)&&(e=e.filter((t=>t!==n)))}t&&e.push(r)}return e}}class wn{constructor(){}static encodeBytes(t){return wn.encode(t,wn.DEFAULT_EC_PERCENT,wn.DEFAULT_AZTEC_LAYERS)}static encode(t,e,r){let n,i,s,o,a,l=new gn(t).encode(),c=E.truncDivision(l.getSize()*e,100)+11,h=l.getSize()+c;if(r!==wn.DEFAULT_AZTEC_LAYERS){if(n=r<0,i=Math.abs(r),i>(n?wn.MAX_NB_BITS_COMPACT:wn.MAX_NB_BITS))throw new u(D.format("Illegal value %s for layers",r));s=wn.totalBitsInLayer(i,n),o=wn.WORD_SIZE[i];let t=s-s%o;if(a=wn.stuffBits(l,o),a.getSize()+c>t)throw new u("Data to large for user specified layer");if(n&&a.getSize()>64*o)throw new u("Data to large for user specified layer")}else{o=0,a=null;for(let t=0;;t++){if(t>wn.MAX_NB_BITS)throw new u("Data too large for an Aztec code");if(n=t<=3,i=n?t+1:t,s=wn.totalBitsInLayer(i,n),h>s)continue;null!=a&&o===wn.WORD_SIZE[i]||(o=wn.WORD_SIZE[i],a=wn.stuffBits(l,o));let e=s-s%o;if(!(n&&a.getSize()>64*o)&&a.getSize()+c<=e)break}}let d,f=wn.generateCheckWords(a,s,o),g=a.getSize()/o,w=wn.generateModeMessage(n,i,g),m=(n?11:14)+4*i,A=new Int32Array(m);if(n){d=m;for(let t=0;t=n||t.get(s+r))&&(o|=1<0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]r&&(r=o,e=s)}if(!e)throw"No largest barcode found";return e},t.prototype.createBarcodeDetectorFormats=function(t){for(var e=[],r=0,n=t;r0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=n&&(t.isClosed=!0,t.parentElement.removeChild(t.surface),e())}))}))},t.prototype.getCapabilities=function(){return new dt(this.getFirstTrackOrFail())},t}(),gt=function(){function t(t){this.mediaStream=t}return t.prototype.render=function(t,e,r){return at(this,void 0,void 0,(function(){return lt(this,(function(n){return[2,ft.create(t,this.mediaStream,e,r)]}))}))},t.create=function(e){return at(this,void 0,void 0,(function(){var r;return lt(this,(function(n){switch(n.label){case 0:if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return r={audio:!1,video:e},[4,navigator.mediaDevices.getUserMedia(r)];case 1:return[2,new t(n.sent())]}}))}))},t}(),wt=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))},mt=function(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]t&&(n.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),s=t),s)},t.prototype.validateQrboxConfig=function(t){if("number"!=typeof t&&"function"!=typeof t&&(void 0===t.width||void 0===t.height))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},t.prototype.toQrdimensions=function(t,e,r){if("number"==typeof r)return{width:r,height:r};if("function"==typeof r)try{return r(t,e)}catch(n){throw new Error("qrbox config was passed as a function but it failed with unknown error"+n)}return r},t.prototype.setupUi=function(t,e,r){r.isShadedBoxEnabled()&&this.validateQrboxSize(t,e,r);var n=X(r.qrbox)?{width:t,height:e}:r.qrbox;this.validateQrboxConfig(n);var i=this.toQrdimensions(t,e,n);i.height>e&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var s=r.isShadedBoxEnabled()&&i.height<=e,o={x:0,y:0,width:t,height:e},a=s?this.getShadedRegionBounds(t,e,i):o,l=this.createCanvasElement(a.width,a.height),c=l.getContext("2d",{willReadFrequently:!0});c.canvas.width=a.width,c.canvas.height=a.height,this.element.append(l),s&&this.possiblyInsertShadingElement(this.element,t,e,i),this.createScannerPausedUiElement(this.element),this.qrRegion=a,this.context=c,this.canvasElement=l},t.prototype.createScannerPausedUiElement=function(t){var e=document.createElement("div");e.innerText=W.scannerPaused(),e.style.display="none",e.style.position="absolute",e.style.top="0px",e.style.zIndex="1",e.style.background="rgba(9, 9, 9, 0.46)",e.style.color="#FFECEC",e.style.textAlign="center",e.style.width="100%",t.appendChild(e),this.scannerPausedUiElement=e},t.prototype.scanContext=function(t,e){var r=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then((function(e){return t(e.text,H.createFromQrcodeResult(e)),r.possiblyUpdateShaders(!0),!0})).catch((function(t){r.possiblyUpdateShaders(!1);var n=W.codeParseError(t);return e(n,V.createFrom(n)),!1}))},t.prototype.foreverScan=function(t,e,r){var n=this;if(this.shouldScan&&this.renderedCamera){var i=this.renderedCamera.getSurface(),s=i.videoWidth/i.clientWidth,o=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var a=this.qrRegion.width*s,l=this.qrRegion.height*o,c=this.qrRegion.x*s,h=this.qrRegion.y*o;this.context.drawImage(i,c,h,a,l,0,0,this.qrRegion.width,this.qrRegion.height);var u=function(){n.foreverScanTimeout=setTimeout((function(){n.foreverScan(t,e,r)}),n.getTimeoutFps(t.fps))};this.scanContext(e,r).then((function(i){i||!0===t.disableFlip?u():(n.context.translate(n.context.canvas.width,0),n.context.scale(-1,1),n.scanContext(e,r).finally((function(){u()})))})).catch((function(t){n.logger.logError("Error happend while scanning context",t),u()}))}},t.prototype.createVideoConstraints=function(t){if("string"==typeof t)return{deviceId:{exact:t}};if("object"==typeof t){var e="facingMode",r="deviceId",n={user:!0,environment:!0},i="exact",s=function(t){if(t in n)return!0;throw"config has invalid 'facingMode' value = "+"'".concat(t,"'")},o=Object.keys(t);if(1!==o.length)throw"'cameraIdOrConfig' object should have exactly 1 key,"+" if passed as an object, found ".concat(o.length," keys");var a=Object.keys(t)[0];if(a!==e&&a!==r)throw"Only '".concat(e,"' and '").concat(r,"' ")+" are supported for 'cameraIdOrConfig'";if(a!==e){var l=t.deviceId;if("string"==typeof l)return{deviceId:l};if("object"==typeof l){if(i in l)return{deviceId:{exact:l["".concat(i)]}};throw"'deviceId' should be string or object with"+" ".concat(i," as key.")}throw"Invalid type of 'deviceId' = ".concat(typeof l)}var c=t.facingMode;if("string"==typeof c){if(s(c))return{facingMode:c}}else{if("object"!=typeof c)throw"Invalid type of 'facingMode' = ".concat(typeof c);if(!(i in c))throw"'facingMode' should be string or object with"+" ".concat(i," as key.");if(s(c["".concat(i)]))return{facingMode:{exact:c["".concat(i)]}}}}throw"Invalid type of 'cameraIdOrConfig' = ".concat(typeof t)},t.prototype.computeCanvasDrawConfig=function(t,e,r,n){if(t<=r&&e<=n)return{x:(r-t)/2,y:(n-e)/2,width:t,height:e};var i=t,s=e;return t>r&&(e*=r/t,t=r),e>n&&(t*=n/e,e=n),this.logger.log("Image downsampled from "+"".concat(i,"X").concat(s)+" to ".concat(t,"X").concat(e,".")),this.computeCanvasDrawConfig(t,e,r,n)},t.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},t.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach((function(e){e.style.backgroundColor=t?Nt.BORDER_SHADER_MATCH_COLOR:Nt.BORDER_SHADER_DEFAULT_COLOR})),this.qrMatch=t)},t.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},t.prototype.createCanvasElement=function(t,e,r){var n=t,i=e,s=document.createElement("canvas");return s.style.width="".concat(n,"px"),s.style.height="".concat(i,"px"),s.style.display="none",s.id=X(r)?"qr-canvas":r,s},t.prototype.getShadedRegionBounds=function(t,e,r){if(r.width>t||r.height>e)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-r.width)/2,y:(e-r.height)/2,width:r.width,height:r.height}},t.prototype.possiblyInsertShadingElement=function(t,e,r,n){if(!(e-n.width<1||r-n.height<1)){var i=document.createElement("div");i.style.position="absolute";var s=(e-n.width)/2,o=(r-n.height)/2;if(i.style.borderLeft="".concat(s,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderRight="".concat(s,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderTop="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderBottom="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id="".concat(Nt.SHADED_REGION_ELEMENT_ID),e-n.width<11||r-n.height<11)this.hasBorderShaders=!1;else{var a=40;this.insertShaderBorders(i,a,5,-5,null,0,!0),this.insertShaderBorders(i,a,5,-5,null,0,!1),this.insertShaderBorders(i,a,5,null,-5,0,!0),this.insertShaderBorders(i,a,5,null,-5,0,!1),this.insertShaderBorders(i,5,45,-5,null,-5,!0),this.insertShaderBorders(i,5,45,null,-5,-5,!0),this.insertShaderBorders(i,5,45,-5,null,-5,!1),this.insertShaderBorders(i,5,45,null,-5,-5,!1),this.hasBorderShaders=!0}t.append(i)}},t.prototype.insertShaderBorders=function(t,e,r,n,i,s,o){var a=document.createElement("div");a.style.position="absolute",a.style.backgroundColor=Nt.BORDER_SHADER_DEFAULT_COLOR,a.style.width="".concat(e,"px"),a.style.height="".concat(r,"px"),null!==n&&(a.style.top="".concat(n,"px")),null!==i&&(a.style.bottom="".concat(i,"px")),o?a.style.left="".concat(s,"px"):a.style.right="".concat(s,"px"),this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(a),t.appendChild(a)},t.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},t.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},t.prototype.getTimeoutFps=function(t){return 1e3/t},t}();(It=_t||(_t={}))[It.STATUS_DEFAULT=0]="STATUS_DEFAULT",It[It.STATUS_SUCCESS=1]="STATUS_SUCCESS",It[It.STATUS_WARNING=2]="STATUS_WARNING",It[It.STATUS_REQUESTING_PERMISSION=3]="STATUS_REQUESTING_PERMISSION";const bt=R({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){this.asyncFlag,this.voiceFlag,this.barcodeFlag},onLoad(){this.updateDate(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){},onHide(){},methods:{updateDate(){const t=new Date,e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");this.currentDate=`${e}-${r}-${n}`},handleScan(i){this.scanType=i,navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}}).then((()=>{this.showH5Scan=!0,this.$nextTick((()=>{window.Html5Qrcode||(window.Html5Qrcode=Ot);const r={fps:10,qrbox:{width:250,height:250},aspectRatio:1,formatsToSupport:[D.QR_CODE]};this.html5QrCode=new window.Html5Qrcode("reader"),this.html5QrCode.start({facingMode:"environment"},r,(r=>{this.closeH5Scan();let n=r.trim();console.log("id:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===this.scanType?e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):t({title:"二维码信息错误",icon:"none"}):t({title:"二维码无效",icon:"none"})}),(t=>{console.log("扫码错误:",t)})).catch((e=>{console.error("启动扫码失败:",e),t({title:"启动扫码失败,请检查摄像头权限",icon:"none",duration:2e3}),this.closeH5Scan()}))}))})).catch((e=>{console.error("摄像头权限错误:",e),r({title:"提示",content:"请允许访问摄像头以使用扫码功能",confirmText:"确定",showCancel:!1,success:()=>{"android"===n().platform&&t({title:"请在系统设置中开启摄像头权限",icon:"none",duration:2e3})}})}))},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var r,n;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const s={page:this.planPage,page_size:this.planPageSize},o=await T(s);if(console.log("盘点计划列表响应:",o),o.data&&40001===o.data.errcode)return t({title:(null==(r=o.data)?void 0:r.errmsg)||"获取盘点计划失败",icon:"none"}),void i({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,r=t.data||[];this.inventoryPlanList=e?r:[...this.inventoryPlanList,...r],this.planTotal=t.total||0,this.planHasMore=r.length===this.planPageSize,this.planHasMore&&this.planPage++}else t({title:(null==(n=o.data)?void 0:n.message)||"获取盘点计划失败",icon:"none"})}catch(s){console.error("获取盘点计划列表失败:",s),t({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:t=>({0:"未开始",1:"进行中",2:"已完成"}[t]||"未知状态"),getTypeText:t=>({1:"年度",2:"季度"}[t]||"未知类型"),formatDate(t){if(!t)return"";const e=new Date(t);return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},viewPlanDetail(t){console.log("查看计划详情:",t);const r=encodeURIComponent(JSON.stringify(t));e({url:`/pages/plan-detail/plan-detail?planInfo=${r}&planId=${t.id}`})},getProgress(t){if(2===t.status)return 100;if(0===t.status)return 0;const e=new Date,r=new Date(t.start_date),n=new Date(t.end_date);if(en)return 100;const i=n.getTime()-r.getTime(),s=e.getTime()-r.getTime();return Math.round(s/i*100)},initAndroidComponents(){},initUHFEvent(){},handleUHFEvent(e){console.log(e.tag_info_list);var r=e.tag_info_list;if(null!=r){for(var n=0;nArray.from(t,(function(t){return("0"+(255&t).toString(16)).slice(-2)})).join(""),hexString2Bytes(t){var e=0,r=t.length;if(r%2!=0)return null;r/=2;for(var n=new Array,i=0;i({id:t.id||t.material_info_id||t.inventory_id||"",zichanmingcheng:t.zichanmingcheng||"",total_num:t.total_num??t.inventorys_total??t.zaikushuliang??0})))},normalizeScannedId(t){if(!t)return"";const e=String(t).trim();if(/^\d+$/.test(e))return e;if(/^\d+(?:\.\d+)?$/.test(e)){const t=Number(e);if(!Number.isNaN(t)&&Number.isFinite(t))return Math.trunc(t).toString()}return""},goInventoryFromList(r){const n=r&&r.id;n?e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):t({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){},startBarcodeScan(){},stopBarcodeScan(){},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点"},stopInventory(){},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((t=>t.epc)).filter(Boolean);if(!e.length)return void t({title:"请先获取标签数据",icon:"none"});const r=e.join(",");s({title:"查询中..."}),y({ids:r,page:1,page_size:999}).then((e=>{o(),console.log("res:",e);const r=this.formatMaterialList(e);if(0===r.length)return this.taskList=[],void t({title:"未查询到物资信息",icon:"none"});this.taskList=r})).catch((e=>{console.error("viewMaterials error",e),o(),t({title:"获取物资失败",icon:"none"})}))},loadmore(){if(console.log("inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)console.log("inventory loadmore","nomore");else{var t;t=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var e=this.offset;e[u(T,{class:"index-content"},{default:l((()=>[u(T,{class:"btn-group"},{default:l((()=>[u(o,{class:"main-btn",onClick:s.scanInventory},{default:l((()=>[d("扫码盘点")])),_:1},8,["onClick"]),u(o,{class:"main-btn outline",onClick:s.scanView},{default:l((()=>[d("扫码查看")])),_:1},8,["onClick"])])),_:1}),u(T,{class:"inventory-section"},{default:l((()=>[u(T,{class:"inventory-header"},{default:l((()=>[u(y,{class:"inventory-title"},{default:l((()=>[d("标签盘点")])),_:1}),u(y,{class:"tags-amount"},{default:l((()=>[d("标签数量: "+f(i.tagsAmount),1)])),_:1})])),_:1}),u(R,{class:"tag-list","scroll-y":"",onScrolltolower:s.loadmore,"lower-threshold":"50"},{default:l((()=>[u(T,{class:"list-item-head"},{default:l((()=>[u(y,{class:"list-item-text-id"},{default:l((()=>[d("序号")])),_:1}),u(y,{class:"list-item-text-epc"},{default:l((()=>[d("标签信息")])),_:1}),u(y,{class:"list-item-text-count"},{default:l((()=>[d("次数")])),_:1}),u(y,{class:"list-item-text-rssi"},{default:l((()=>[d("信号强度")])),_:1})])),_:1}),(h(!0),g(m,null,w(i.dataList,(t=>(h(),a(T,{class:"list-item",key:t.id},{default:l((()=>[u(y,{class:"list-item-text-id"},{default:l((()=>[d(f(t.id+1),1)])),_:2},1024),u(y,{class:"list-item-text-epc"},{default:l((()=>[d(f(t.epc),1)])),_:2},1024),u(y,{class:"list-item-text-count"},{default:l((()=>[d(f(t.count),1)])),_:2},1024),u(y,{class:"list-item-text-rssi"},{default:l((()=>[d(f(t.rssi),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["onScrolltolower"]),u(T,{class:"inventory-options"}),u(T,{class:"inventory-btn-box"},{default:l((()=>[u(o,{type:"primary",onClick:s.handleInventory,class:"inventory-btn"},{default:l((()=>[d(f(i.btn1Info),1)])),_:1},8,["onClick"]),u(o,{type:"primary",disabled:i.btn2Disabled,onClick:s.viewMaterials,class:"inventory-btn"},{default:l((()=>[d("查看物资")])),_:1},8,["disabled","onClick"])])),_:1}),u(T,null,{default:l((()=>[u(o,{type:"primary",disabled:i.btn3Disabled,onClick:s.clearTags,class:"inventory-btn clear-btn"},{default:l((()=>[d("清空")])),_:1},8,["disabled","onClick"])])),_:1})])),_:1}),u(T,{class:"task-section"},{default:l((()=>[u(T,{class:"task-title"},{default:l((()=>[d("物资列表")])),_:1}),u(T,{class:"task-list"},{default:l((()=>[u(T,{class:"task-item",style:{"font-weight":"600"}},{default:l((()=>[u(T,{class:"task-info"},{default:l((()=>[u(y,{class:"task-name"},{default:l((()=>[d("物资名称")])),_:1})])),_:1}),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("顺序号")])),_:1})])),_:1}),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("库存")])),_:1})])),_:1}),u(T,{class:"task-info",style:{width:"120rpx","text-align":"right"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(h(!0),g(m,null,w(i.taskList,((t,e)=>(h(),a(T,{class:"task-item",key:e},{default:l((()=>[u(T,{class:"task-info"},{default:l((()=>[u(y,{class:"task-name"},{default:l((()=>[d(f(t.zichanmingcheng),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d(f(t.shunxuhao),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d(f(t.total_num),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},{default:l((()=>[u(o,{size:"mini",type:"primary",onClick:I((e=>s.goInventoryFromList(t)),["stop"])},{default:l((()=>[d("盘点")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(T,{class:"inventory-plan-section"},{default:l((()=>[u(T,{class:"inventory-plan-header"},{default:l((()=>[u(y,{class:"inventory-plan-title"},{default:l((()=>[d("盘点计划")])),_:1})])),_:1}),u(T,{class:"plan-list"},{default:l((()=>[u(T,{class:"plan-item",style:{"font-weight":"600"}},{default:l((()=>[u(T,{class:"plan-info plan-name-col"},{default:l((()=>[u(y,{class:"plan-name"},{default:l((()=>[d("计划名称")])),_:1})])),_:1}),u(T,{class:"plan-info plan-status-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("状态")])),_:1})])),_:1}),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("开始日期")])),_:1})])),_:1}),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("结束日期")])),_:1})])),_:1}),u(T,{class:"plan-info plan-action-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(h(!0),g(m,null,w(i.inventoryPlanList,(t=>(h(),a(T,{class:"plan-item",key:t.id},{default:l((()=>[u(T,{class:"plan-info plan-name-col"},{default:l((()=>[u(y,{class:"plan-name"},{default:l((()=>[d(f(t.name),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-status-col"},{default:l((()=>[u(y,{class:S(["plan-status","status-"+t.status])},{default:l((()=>[d(f(s.getStatusText(t.status)),1)])),_:2},1032,["class"])])),_:2},1024),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d(f(s.formatDate(t.start_date)),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d(f(s.formatDate(t.end_date)),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-action-col"},{default:l((()=>[u(o,{size:"mini",type:"primary",onClick:I((e=>s.viewPlanDetail(t)),["stop"])},{default:l((()=>[d("查看")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i.planLoading?(h(),a(T,{key:0,class:"load-more"},{default:l((()=>[u(T,{class:"loading-spinner"}),u(y,{class:"loading-text"},{default:l((()=>[d("加载中...")])),_:1})])),_:1})):!i.planHasMore&&i.inventoryPlanList.length>0?(h(),a(T,{key:1,class:"load-more"},{default:l((()=>[u(y,{class:"no-more-text"},{default:l((()=>[d("— 没有更多数据了 —")])),_:1})])),_:1})):A("",!0)])),_:1}),i.showH5Scan?(h(),g("div",{key:0,class:"h5-scan-modal"},[C("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),u(o,{onClick:s.closeH5Scan},{default:l((()=>[d("关闭")])),_:1},8,["onClick"])])):A("",!0)])),_:1})])),_:1},8,["onScrolltolower","onRefresherrefresh","refresher-triggered"])}],["__scopeId","data-v-79bde49e"]]);export{bt as default}; +import{s as t,n as e,a as r,g as n,r as i,b as s,h as o,c as a,w as l,S as c,o as h,d as u,e as d,t as f,f as g,i as w,F as m,j as A,k as C,l as E,m as p,p as _,q as I,u as S}from"./index--qIYCxYV.js";import{g as T,a as y}from"./api.CI2LxOCM.js";import{_ as R}from"./_plugin-vue_export-helper.BCo6x5W8.js";function N(t,e){for(var r=0;rn[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D,O;(O=D||(D={}))[O.QR_CODE=0]="QR_CODE",O[O.AZTEC=1]="AZTEC",O[O.CODABAR=2]="CODABAR",O[O.CODE_39=3]="CODE_39",O[O.CODE_93=4]="CODE_93",O[O.CODE_128=5]="CODE_128",O[O.DATA_MATRIX=6]="DATA_MATRIX",O[O.MAXICODE=7]="MAXICODE",O[O.ITF=8]="ITF",O[O.EAN_13=9]="EAN_13",O[O.EAN_8=10]="EAN_8",O[O.PDF_417=11]="PDF_417",O[O.RSS_14=12]="RSS_14",O[O.RSS_EXPANDED=13]="RSS_EXPANDED",O[O.UPC_A=14]="UPC_A",O[O.UPC_E=15]="UPC_E",O[O.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION";var b,M,P,B,v=new Map([[D.QR_CODE,"QR_CODE"],[D.AZTEC,"AZTEC"],[D.CODABAR,"CODABAR"],[D.CODE_39,"CODE_39"],[D.CODE_93,"CODE_93"],[D.CODE_128,"CODE_128"],[D.DATA_MATRIX,"DATA_MATRIX"],[D.MAXICODE,"MAXICODE"],[D.ITF,"ITF"],[D.EAN_13,"EAN_13"],[D.EAN_8,"EAN_8"],[D.PDF_417,"PDF_417"],[D.RSS_14,"RSS_14"],[D.RSS_EXPANDED,"RSS_EXPANDED"],[D.UPC_A,"UPC_A"],[D.UPC_E,"UPC_E"],[D.UPC_EAN_EXTENSION,"UPC_EAN_EXTENSION"]]);function L(t){return Object.values(D).includes(t)}(M=b||(b={}))[M.UNKNOWN=0]="UNKNOWN",M[M.URL=1]="URL",(B=P||(P={}))[B.SCAN_TYPE_CAMERA=0]="SCAN_TYPE_CAMERA",B[B.SCAN_TYPE_FILE=1]="SCAN_TYPE_FILE";var F,k,x=function(){function t(){}return t.GITHUB_PROJECT_URL="https://github.com/mebjas/html5-qrcode",t.SCAN_DEFAULT_FPS=2,t.DEFAULT_DISABLE_FLIP=!1,t.DEFAULT_REMEMBER_LAST_CAMERA_USED=!0,t.DEFAULT_SUPPORTED_SCAN_TYPE=[P.SCAN_TYPE_CAMERA,P.SCAN_TYPE_FILE],t}(),U=function(){function t(t,e){this.format=t,this.formatName=e}return t.prototype.toString=function(){return this.formatName},t.create=function(e){if(!v.has(e))throw"".concat(e," not in html5QrcodeSupportedFormatsTextMap");return new t(e,v.get(e))},t}(),H=function(){function t(){}return t.createFromText=function(t){return{decodedText:t,result:{text:t}}},t.createFromQrcodeResult=function(t){return{decodedText:t.text,result:t}},t}();(k=F||(F={}))[k.UNKWOWN_ERROR=0]="UNKWOWN_ERROR",k[k.IMPLEMENTATION_ERROR=1]="IMPLEMENTATION_ERROR",k[k.NO_CODE_FOUND_ERROR=2]="NO_CODE_FOUND_ERROR";var V=function(){function t(){}return t.createFrom=function(t){return{errorMessage:t,type:F.UNKWOWN_ERROR}},t}(),G=function(){function t(t){this.verbose=t}return t.prototype.log=function(t){this.verbose&&console.log(t)},t.prototype.warn=function(t){this.verbose&&console.warn(t)},t.prototype.logError=function(t,e){(this.verbose||!0===e)&&console.error(t)},t.prototype.logErrors=function(t){if(0===t.length)throw"Logger#logError called without arguments";this.verbose&&console.error(t)},t}();function X(t){return null==t}var W=function(){function t(){}return t.codeParseError=function(t){return"QR code parse error, error = ".concat(t)},t.errorGettingUserMedia=function(t){return"Error getting userMedia, error = ".concat(t)},t.onlyDeviceSupportedError=function(){return"The device doesn't support navigator.mediaDevices , only supported cameraIdOrConfig in this case is deviceId parameter (string)."},t.cameraStreamingNotSupported=function(){return"Camera streaming not supported by the browser."},t.unableToQuerySupportedDevices=function(){return"Unable to query supported devices, unknown error."},t.insecureContextCameraQueryError=function(){return"Camera access is only supported in secure context like https or localhost."},t.scannerPaused=function(){return"Scanner paused"},t}(),z=function(){function t(){}return t.isMediaStreamConstraintsValid=function(t,e){if("object"!=typeof t){var r=typeof t;return e.logError("videoConstraints should be of type object, the "+"object passed is of type ".concat(r,"."),!0),!1}for(var n=new Set(["autoGainControl","channelCount","echoCancellation","latency","noiseSuppression","sampleRate","sampleSize","volume"]),i=0,s=Object.keys(t);ir)throw new u("fromIndex("+e+") > toIndex("+r+")");if(e<0)throw new A(e);if(r>t)throw new A(r)}static asList(...t){return t}static create(t,e,r){return Array.from({length:t}).map((t=>Array.from({length:e}).fill(r)))}static createInt32Array(t,e,r){return Array.from({length:t}).map((t=>Int32Array.from({length:e}).fill(r)))}static equals(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(let r=0,n=t.length;r>1,o=r(e,t[s]);if(o>0)n=s+1;else{if(!(o<0))return s;i=s-1}}return-n-1}static numberComparator(t,e){return t-e}}class E{static numberOfTrailingZeros(t){let e;if(0===t)return 32;let r=31;return e=t<<16,0!==e&&(r-=16,t=e),e=t<<8,0!==e&&(r-=8,t=e),e=t<<4,0!==e&&(r-=4,t=e),e=t<<2,0!==e&&(r-=2,t=e),r-(t<<1>>>31)}static numberOfLeadingZeros(t){if(0===t)return 32;let e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-=t>>>31,e}static toHexString(t){return t.toString(16)}static toBinaryString(t){return String(parseInt(String(t),2))}static bitCount(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,t+=t>>>8,63&(t+=t>>>16)}static truncDivision(t,e){return Math.trunc(t/e)}static parseInt(t,e){return parseInt(t,e)}}E.MIN_VALUE_32_BITS=-2147483648,E.MAX_VALUE=Number.MAX_SAFE_INTEGER;class p{constructor(t,e){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==e?p.makeArray(t):e)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(t){if(t>32*this.bits.length){const e=p.makeArray(t);w.arraycopy(this.bits,0,e,0,this.bits.length),this.bits=e}}get(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))}set(t){this.bits[Math.floor(t/32)]|=1<<(31&t)}flip(t){this.bits[Math.floor(t/32)]^=1<<(31&t)}getNextSet(t){const e=this.size;if(t>=e)return e;const r=this.bits;let n=Math.floor(t/32),i=r[n];i&=~((1<<(31&t))-1);const s=r.length;for(;0===i;){if(++n===s)return e;i=r[n]}const o=32*n+E.numberOfTrailingZeros(i);return o>e?e:o}getNextUnset(t){const e=this.size;if(t>=e)return e;const r=this.bits;let n=Math.floor(t/32),i=~r[n];i&=~((1<<(31&t))-1);const s=r.length;for(;0===i;){if(++n===s)return e;i=~r[n]}const o=32*n+E.numberOfTrailingZeros(i);return o>e?e:o}setBulk(t,e){this.bits[Math.floor(t/32)]=e}setRange(t,e){if(ethis.size)throw new u;if(e===t)return;e--;const r=Math.floor(t/32),n=Math.floor(e/32),i=this.bits;for(let s=r;s<=n;s++){const o=(2<<(sr?0:31&t));i[s]|=o}}clear(){const t=this.bits.length,e=this.bits;for(let r=0;rthis.size)throw new u;if(e===t)return!0;e--;const n=Math.floor(t/32),i=Math.floor(e/32),s=this.bits;for(let o=n;o<=i;o++){const a=(2<<(on?0:31&t))&4294967295;if((s[o]&a)!==(r?a:0))return!1}return!0}appendBit(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++}appendBits(t,e){if(e<0||e>32)throw new u("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(let r=e;r>0;r--)this.appendBit(1==(t>>r-1&1))}appendBitArray(t){const e=t.size;this.ensureCapacity(this.size+e);for(let r=0;r>1&1431655765|(1431655765&r)<<1,r=r>>2&858993459|(858993459&r)<<2,r=r>>4&252645135|(252645135&r)<<4,r=r>>8&16711935|(16711935&r)<<8,r=r>>16&65535|(65535&r)<<16,t[e-i]=r}if(this.size!==32*r){const e=32*r-this.size;let n=t[0]>>>e;for(let i=1;i>>e}t[r-1]=n}this.bits=t}static makeArray(t){return new Int32Array(Math.floor((t+31)/32))}equals(t){if(!(t instanceof p))return!1;const e=t;return this.size===e.size&&C.equals(this.bits,e.bits)}hashCode(){return 31*this.size+C.hashCode(this.bits)}toString(){let t="";for(let e=0,r=this.size;e=900)throw new T("incorect value");const e=y.VALUES_TO_ECI.get(t);if(void 0===e)throw new T("incorect value");return e}static getCharacterSetECIByName(t){const e=y.NAME_TO_ECI.get(t);if(void 0===e)throw new T("incorect value");return e}equals(t){if(!(t instanceof y))return!1;const e=t;return this.getName()===e.getName()}}y.VALUE_IDENTIFIER_TO_ECI=new Map,y.VALUES_TO_ECI=new Map,y.NAME_TO_ECI=new Map,y.Cp437=new y(_.Cp437,Int32Array.from([0,2]),"Cp437"),y.ISO8859_1=new y(_.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),y.ISO8859_2=new y(_.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),y.ISO8859_3=new y(_.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),y.ISO8859_4=new y(_.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),y.ISO8859_5=new y(_.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),y.ISO8859_6=new y(_.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),y.ISO8859_7=new y(_.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),y.ISO8859_8=new y(_.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),y.ISO8859_9=new y(_.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),y.ISO8859_10=new y(_.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),y.ISO8859_11=new y(_.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),y.ISO8859_13=new y(_.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),y.ISO8859_14=new y(_.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),y.ISO8859_15=new y(_.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),y.ISO8859_16=new y(_.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),y.SJIS=new y(_.SJIS,20,"SJIS","Shift_JIS"),y.Cp1250=new y(_.Cp1250,21,"Cp1250","windows-1250"),y.Cp1251=new y(_.Cp1251,22,"Cp1251","windows-1251"),y.Cp1252=new y(_.Cp1252,23,"Cp1252","windows-1252"),y.Cp1256=new y(_.Cp1256,24,"Cp1256","windows-1256"),y.UnicodeBigUnmarked=new y(_.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),y.UTF8=new y(_.UTF8,26,"UTF8","UTF-8"),y.ASCII=new y(_.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),y.Big5=new y(_.Big5,28,"Big5"),y.GB18030=new y(_.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),y.EUC_KR=new y(_.EUC_KR,30,"EUC_KR","EUC-KR");class R extends c{}R.kind="UnsupportedOperationException";class N{static decode(t,e){const r=this.encodingName(e);return this.customDecoder?this.customDecoder(t,r):"undefined"==typeof TextDecoder||this.shouldDecodeOnFallback(r)?this.decodeFallback(t,r):new TextDecoder(r).decode(t)}static shouldDecodeOnFallback(t){return!N.isBrowser()&&"ISO-8859-1"===t}static encode(t,e){const r=this.encodingName(e);return this.customEncoder?this.customEncoder(t,r):"undefined"==typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)}static isBrowser(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)}static encodingName(t){return"string"==typeof t?t:t.getName()}static encodingCharacterSet(t){return t instanceof y?t:y.getCharacterSetECIByName(t)}static decodeFallback(t,e){const r=this.encodingCharacterSet(e);if(N.isDecodeFallbackSupported(r)){let e="";for(let r=0,n=t.length;r3&&239===t[0]&&187===t[1]&&191===t[2];for(let C=0;C0?0==(128&e)?s=!1:o--:0!=(128&e)&&(0==(64&e)?s=!1:(o++,0==(32&e)?a++:(o++,0==(16&e)?l++:(o++,0==(8&e)?c++:s=!1))))),n&&(e>127&&e<160?n=!1:e>159&&(e<192||215===e||247===e)&&m++),i&&(h>0?e<64||127===e||e>252?i=!1:h--:128===e||160===e||e>239?i=!1:e>160&&e<224?(u++,f=0,d++,d>g&&(g=d)):e>127?(h++,d=0,f++,f>w&&(w=f)):(d=0,f=0))}return s&&o>0&&(s=!1),i&&h>0&&(i=!1),s&&(A||a+l+c>0)?D.UTF8:i&&(D.ASSUME_SHIFT_JIS||g>=3||w>=3)?D.SHIFT_JIS:n&&i?2===g&&2===u||10*m>=r?D.SHIFT_JIS:D.ISO88591:n?D.ISO88591:i?D.SHIFT_JIS:s?D.UTF8:D.PLATFORM_DEFAULT_ENCODING}static format(t,...e){let r=-1;function n(t,n,i,s,o,a){if("%%"===t)return"%";if(void 0===e[++r])return;t=s?parseInt(s.substr(1)):void 0;let l,c=o?parseInt(o.substr(1)):void 0;switch(a){case"s":l=e[r];break;case"c":l=e[r][0];break;case"f":l=parseFloat(e[r]).toFixed(t);break;case"p":l=parseFloat(e[r]).toPrecision(t);break;case"e":l=parseFloat(e[r]).toExponential(t);break;case"x":l=parseInt(e[r]).toString(c||16);break;case"d":l=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(c);let h=parseInt(i),u=i&&i[0]+""=="0"?"0":" ";for(;l.lengths){if(-1===o)o=i-s;else if(i-s!==o)throw new u("row lengths do not match");s=i,a++}l++}else if(t.substring(l,l+e.length)===e)l+=e.length,n[i]=!0,i++;else{if(t.substring(l,l+r.length)!==r)throw new u("illegal character encountered: "+t.substring(l));l+=r.length,n[i]=!1,i++}if(i>s){if(-1===o)o=i-s;else if(i-s!==o)throw new u("row lengths do not match");a++}const c=new b(o,a);for(let h=0;h>>(31&t)&1)}set(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(31&t)&4294967295}unset(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(31&t)&4294967295)}flip(t,e){const r=e*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(31&t)&4294967295}xor(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new u("input matrix dimensions do not match");const e=new p(Math.floor(this.width/32)+1),r=this.rowSize,n=this.bits;for(let i=0,s=this.height;ithis.height||i>this.width)throw new u("The region must fit inside the matrix");const o=this.rowSize,a=this.bits;for(let l=e;la&&(a=l),32*to){let r=31;for(;e>>>r==0;)r--;32*t+r>o&&(o=32*t+r)}}}return o=0&&0===e[r];)r--;if(r<0)return null;const n=Math.floor(r/t);let i=32*Math.floor(r%t);const s=e[r];let o=31;for(;s>>>o==0;)o--;return i+=o,Int32Array.from([i,n])}getWidth(){return this.width}getHeight(){return this.height}getRowSize(){return this.rowSize}equals(t){if(!(t instanceof b))return!1;const e=t;return this.width===e.width&&this.height===e.height&&this.rowSize===e.rowSize&&C.equals(this.bits,e.bits)}hashCode(){let t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+C.hashCode(this.bits),t}toString(t="X ",e=" ",r="\n"){return this.buildToString(t,e,r)}buildToString(t,e,r){let n=new O;for(let i=0,s=this.height;i>P.LUMINANCE_SHIFT]++;const o=P.estimateBlackPoint(s);if(n<3)for(let a=0;a>P.LUMINANCE_SHIFT]++}const s=P.estimateBlackPoint(i),o=t.getMatrix();for(let a=0;ai&&(n=c,i=t[c]),t[c]>r&&(r=t[c]);let s=0,o=0;for(let c=0;co&&(s=c,o=r)}if(n>s){const t=n;n=s,s=t}if(s-n<=e/16)throw new M;let a=s-1,l=-1;for(let c=s-1;c>n;c--){const e=c-n,i=e*e*(s-c)*(r-t[c]);i>l&&(a=c,l=i)}return a<=B.MINIMUM_DIMENSION&&r>=B.MINIMUM_DIMENSION){const n=t.getMatrix();let i=e>>B.BLOCK_SIZE_POWER;0!=(e&B.BLOCK_SIZE_MASK)&&i++;let s=r>>B.BLOCK_SIZE_POWER;0!=(r&B.BLOCK_SIZE_MASK)&&s++;const o=B.calculateBlackPoints(n,i,s,e,r),a=new b(e,r);B.calculateThresholdForBlock(n,i,s,e,r,o,a),this.matrix=a}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(t){return new B(t)}static calculateThresholdForBlock(t,e,r,n,i,s,o){const a=i-B.BLOCK_SIZE,l=n-B.BLOCK_SIZE;for(let c=0;ca&&(i=a);const h=B.cap(c,2,r-3);for(let r=0;rl&&(a=l);const c=B.cap(r,2,e-3);let u=0;for(let t=-2;t<=2;t++){const e=s[h+t];u+=e[c-2]+e[c-1]+e[c]+e[c+1]+e[c+2]}const d=u/25;B.thresholdBlock(t,a,i,d,n,o)}}}static cap(t,e,r){return tr?r:t}static thresholdBlock(t,e,r,n,i,s){for(let o=0,a=r*i+e;os&&(r=s);for(let i=0;io&&(e=o);let s=0,c=255,h=0;for(let i=0,o=r*n+e;ih&&(h=r)}if(h-c>B.MIN_DYNAMIC_RANGE)for(i++,o+=n;i>2*B.BLOCK_SIZE_POWER;if(h-c<=B.MIN_DYNAMIC_RANGE&&(u=c/2,l>0&&i>0)){const t=(a[l-1][i]+2*a[l][i-1]+a[l-1][i-1])/4;c>10,n[s]=e}return n}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth(),n=t*r;return null===e?e=this.buffer.slice(n,n+r):(e.lengthnew k(t.deviceId,t.label)))}))}findDeviceById(t){return H(this,void 0,void 0,(function*(){const e=yield this.listVideoInputDevices();return e?e.find((e=>e.deviceId===t)):null}))}decodeFromInputVideoDevice(t,e){return H(this,void 0,void 0,(function*(){return yield this.decodeOnceFromVideoDevice(t,e)}))}decodeOnceFromVideoDevice(t,e){return H(this,void 0,void 0,(function*(){let r;this.reset(),r=t?{deviceId:{exact:t}}:{facingMode:"environment"};const n={video:r};return yield this.decodeOnceFromConstraints(n,e)}))}decodeOnceFromConstraints(t,e){return H(this,void 0,void 0,(function*(){const r=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeOnceFromStream(r,e)}))}decodeOnceFromStream(t,e){return H(this,void 0,void 0,(function*(){this.reset();const r=yield this.attachStreamToVideo(t,e);return yield this.decodeOnce(r)}))}decodeFromInputVideoDeviceContinuously(t,e,r){return H(this,void 0,void 0,(function*(){return yield this.decodeFromVideoDevice(t,e,r)}))}decodeFromVideoDevice(t,e,r){return H(this,void 0,void 0,(function*(){let n;n=t?{deviceId:{exact:t}}:{facingMode:"environment"};const i={video:n};return yield this.decodeFromConstraints(i,e,r)}))}decodeFromConstraints(t,e,r){return H(this,void 0,void 0,(function*(){const n=yield navigator.mediaDevices.getUserMedia(t);return yield this.decodeFromStream(n,e,r)}))}decodeFromStream(t,e,r){return H(this,void 0,void 0,(function*(){this.reset();const n=yield this.attachStreamToVideo(t,e);return yield this.decodeContinuously(n,r)}))}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(t,e){return H(this,void 0,void 0,(function*(){const r=this.prepareVideoElement(e);return this.addVideoSource(r,t),this.videoElement=r,this.stream=t,yield this.playVideoOnLoadAsync(r),r}))}playVideoOnLoadAsync(t){return new Promise(((e,r)=>this.playVideoOnLoad(t,(()=>e()))))}playVideoOnLoad(t,e){this.videoEndedListener=()=>this.stopStreams(),this.videoCanPlayListener=()=>this.tryPlayVideo(t),t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)}isVideoPlaying(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}tryPlayVideo(t){return H(this,void 0,void 0,(function*(){if(this.isVideoPlaying(t))console.warn("Trying to play video that is already playing.");else try{yield t.play()}catch(e){console.warn("It was not possible to play the video.")}}))}getMediaElement(t,e){const r=document.getElementById(t);if(!r)throw new h(`element with id '${t}' not found`);if(r.nodeName.toLowerCase()!==e.toLowerCase())throw new h(`element with id '${t}' must be an ${e} element`);return r}decodeFromImage(t,e){if(!t&&!e)throw new h("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)}decodeFromVideo(t,e){if(!t&&!e)throw new h("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)}decodeFromVideoContinuously(t,e,r){if(void 0===t&&void 0===e)throw new h("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,r):this.decodeFromVideoElementContinuously(t,r)}decodeFromImageElement(t){if(!t)throw new h("An image element must be provided.");this.reset();const e=this.prepareImageElement(t);let r;return this.imageElement=e,r=this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e),r}decodeFromVideoElement(t){const e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)}decodeFromVideoElementContinuously(t,e){const r=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(r,e)}_decodeFromVideoElementSetup(t){if(!t)throw new h("A video element must be provided.");this.reset();const e=this.prepareVideoElement(t);return this.videoElement=e,e}decodeFromImageUrl(t){if(!t)throw new h("An URL must be provided.");this.reset();const e=this.prepareImageElement();this.imageElement=e;const r=this._decodeOnLoadImage(e);return e.src=t,r}decodeFromVideoUrl(t){if(!t)throw new h("An URL must be provided.");this.reset();const e=this.prepareVideoElement(),r=this.decodeFromVideoElement(e);return e.src=t,r}decodeFromVideoUrlContinuously(t,e){if(!t)throw new h("An URL must be provided.");this.reset();const r=this.prepareVideoElement(),n=this.decodeFromVideoElementContinuously(r,e);return r.src=t,n}_decodeOnLoadImage(t){return new Promise(((e,r)=>{this.imageLoadedListener=()=>this.decodeOnce(t,!1,!0).then(e,r),t.addEventListener("load",this.imageLoadedListener)}))}_decodeOnLoadVideo(t){return H(this,void 0,void 0,(function*(){return yield this.playVideoOnLoadAsync(t),yield this.decodeOnce(t)}))}_decodeOnLoadVideoContinuously(t,e){return H(this,void 0,void 0,(function*(){yield this.playVideoOnLoadAsync(t),this.decodeContinuously(t,e)}))}isImageLoaded(t){return!!t.complete&&0!==t.naturalWidth}prepareImageElement(t){let e;return void 0===t&&(e=document.createElement("img"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e}prepareVideoElement(t){let e;return t||"undefined"==typeof document||(e=document.createElement("video"),e.width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e}decodeOnce(t,e=!0,r=!0){this._stopAsyncDecode=!1;const n=(i,s)=>{if(this._stopAsyncDecode)return s(new M("Video stream has ended before any code could be detected.")),void(this._stopAsyncDecode=void 0);try{i(this.decode(t))}catch(o){const t=(o instanceof f||o instanceof T)&&r;if(e&&o instanceof M||t)return setTimeout(n,this._timeBetweenDecodingAttempts,i,s);s(o)}};return new Promise(((t,e)=>n(t,e)))}decodeContinuously(t,e){this._stopContinuousDecode=!1;const r=()=>{if(this._stopContinuousDecode)this._stopContinuousDecode=void 0;else try{const n=this.decode(t);e(n,null),setTimeout(r,this.timeBetweenScansMillis)}catch(n){e(null,n);const t=n instanceof M;(n instanceof f||n instanceof T||t)&&setTimeout(r,this._timeBetweenDecodingAttempts)}};r()}decode(t){const e=this.createBinaryBitmap(t);return this.decodeBitmap(e)}_isHTMLVideoElement(t){return 0!==t.videoWidth}drawFrameOnCanvas(t,e,r){e||(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),r||(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}drawImageOnCanvas(t,e,r=this.captureCanvasContext){e||(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),r||(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)}createBinaryBitmap(t){this.getCaptureCanvasContext(t),this._isHTMLVideoElement(t)?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);const e=this.getCaptureCanvas(t),r=new F(e),n=new B(r);return new d(n)}getCaptureCanvasContext(t){if(!this.captureCanvasContext){const e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext}getCaptureCanvas(t){if(!this.captureCanvas){const e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas}decodeBitmap(t){return this.reader.decode(t,this._hints)}createCaptureCanvas(t){if("undefined"==typeof document)return this._destroyCaptureCanvas(),null;const e=document.createElement("canvas");let r,n;return void 0!==t&&(t instanceof HTMLVideoElement?(r=t.videoWidth,n=t.videoHeight):t instanceof HTMLImageElement&&(r=t.naturalWidth||t.width,n=t.naturalHeight||t.height)),e.style.width=r+"px",e.style.height=n+"px",e.width=r,e.height=n,e}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach((t=>t.stop())),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()}reset(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()}_destroyVideoElement(){this.videoElement&&(void 0!==this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),void 0!==this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),void 0!==this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)}_destroyImageElement(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)}_destroyCaptureCanvas(){this.captureCanvasContext=void 0,this.captureCanvas=void 0}addVideoSource(t,e){try{t.srcObject=e}catch(r){t.src=URL.createObjectURL(e)}}cleanVideoSource(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")}}class G{constructor(t,e,r=(null==e?0:8*e.length),n,i,s=w.currentTimeMillis()){this.text=t,this.rawBytes=e,this.numBits=r,this.resultPoints=n,this.format=i,this.timestamp=s,this.text=t,this.rawBytes=e,this.numBits=null==r?null==e?0:8*e.length:r,this.resultPoints=n,this.format=i,this.resultMetadata=null,this.timestamp=null==s?w.currentTimeMillis():s}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)}putAllMetadata(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))}addResultPoints(t){const e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){const r=new Array(e.length+t.length);w.arraycopy(e,0,r,0,e.length),w.arraycopy(t,0,r,e.length,t.length),this.resultPoints=r}}getTimestamp(){return this.timestamp}toString(){return this.text}}(U=x||(x={}))[U.AZTEC=0]="AZTEC",U[U.CODABAR=1]="CODABAR",U[U.CODE_39=2]="CODE_39",U[U.CODE_93=3]="CODE_93",U[U.CODE_128=4]="CODE_128",U[U.DATA_MATRIX=5]="DATA_MATRIX",U[U.EAN_8=6]="EAN_8",U[U.EAN_13=7]="EAN_13",U[U.ITF=8]="ITF",U[U.MAXICODE=9]="MAXICODE",U[U.PDF_417=10]="PDF_417",U[U.QR_CODE=11]="QR_CODE",U[U.RSS_14=12]="RSS_14",U[U.RSS_EXPANDED=13]="RSS_EXPANDED",U[U.UPC_A=14]="UPC_A",U[U.UPC_E=15]="UPC_E",U[U.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION";var X,W,z=x;(W=X||(X={}))[W.OTHER=0]="OTHER",W[W.ORIENTATION=1]="ORIENTATION",W[W.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",W[W.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",W[W.ISSUE_NUMBER=4]="ISSUE_NUMBER",W[W.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",W[W.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",W[W.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",W[W.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",W[W.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",W[W.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY";var Z,K,q,Q,j,J,$,tt,et,rt,nt,it=X;class st{constructor(t,e,r,n,i=-1,s=-1){this.rawBytes=t,this.text=e,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=s,this.numBits=null==t?0:8*t.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(t){this.numBits=t}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(t){this.errorsCorrected=t}getErasures(){return this.erasures}setErasures(t){this.erasures=t}getOther(){return this.other}setOther(t){this.other=t}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class ot{exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}static addOrSubtract(t,e){return t^e}}class at{constructor(t,e){if(0===e.length)throw new u;this.field=t;const r=e.length;if(r>1&&0===e[0]){let t=1;for(;tr.length){const t=e;e=r,r=t}let n=new Int32Array(r.length);const i=r.length-e.length;w.arraycopy(r,0,n,0,i);for(let s=i;s=t.getDegree()&&!n.isZero();){const i=n.getDegree()-t.getDegree(),o=e.multiply(n.getCoefficient(n.getDegree()),s),a=t.multiplyByMonomial(i,o),l=e.buildMonomial(i,o);r=r.addOrSubtract(l),n=n.addOrSubtract(a)}return[r,n]}toString(){let t="";for(let e=this.getDegree();e>=0;e--){let r=this.getCoefficient(e);if(0!==r){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),0===e||1!==r){const e=this.field.log(r);0===e?t+="1":1===e?t+="a":(t+="a^",t+=e)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t}}class lt extends c{}lt.kind="ArithmeticException";class ct extends ot{constructor(t,e,r){super(),this.primitive=t,this.size=e,this.generatorBase=r;const n=new Int32Array(e);let i=1;for(let o=0;o=e&&(i^=t,i&=e-1);this.expTable=n;const s=new Int32Array(e);for(let o=0;o=(r/2|0);){let t=i,e=o;if(i=s,o=a,i.isZero())throw new ht("r_{i-1} was zero");s=t;let r=n.getZero();const l=i.getCoefficient(i.getDegree()),c=n.inverse(l);for(;s.getDegree()>=i.getDegree()&&!s.isZero();){const t=s.getDegree()-i.getDegree(),e=n.multiply(s.getCoefficient(s.getDegree()),c);r=r.addOrSubtract(n.buildMonomial(t,e)),s=s.addOrSubtract(i.multiplyByMonomial(t,e))}if(a=r.multiply(o).addOrSubtract(e),s.getDegree()>=i.getDegree())throw new ut("Division algorithm failed to reduce polynomial?")}const l=a.getCoefficient(0);if(0===l)throw new ht("sigmaTilde(0) was zero");const c=n.inverse(l);return[a.multiplyScalar(c),s.multiplyScalar(c)]}findErrorLocations(t){const e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);const r=new Int32Array(e);let n=0;const i=this.field;for(let s=1;s1,h,h+r-1),h+=r-1;else for(let e=r-1;e>=0;--e)c[h++]=0!=(t&1<=8?ft.readCode(t,e,8):ft.readCode(t,e,r)<<8-r}static convertBoolArrayToByteArray(t){let e=new Uint8Array((t.length+7)/8);for(let r=0;r","?","[","]","{","}","CTRL_UL"],ft.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class gt{constructor(){}static round(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0}static distance(t,e,r,n){const i=t-r,s=e-n;return Math.sqrt(i*i+s*s)}static sum(t){let e=0;for(let r=0,n=t.length;r!==n;r++)e+=t[r];return e}}class wt{static floatToIntBits(t){return t}}wt.MAX_VALUE=Number.MAX_SAFE_INTEGER;class mt{constructor(t,e){this.x=t,this.y=e}getX(){return this.x}getY(){return this.y}equals(t){if(t instanceof mt){const e=t;return this.x===e.x&&this.y===e.y}return!1}hashCode(){return 31*wt.floatToIntBits(this.x)+wt.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(t){const e=this.distance(t[0],t[1]),r=this.distance(t[1],t[2]),n=this.distance(t[0],t[2]);let i,s,o;if(r>=e&&r>=n?(s=t[0],i=t[1],o=t[2]):n>=r&&n>=e?(s=t[1],i=t[0],o=t[2]):(s=t[2],i=t[0],o=t[1]),this.crossProductZ(i,s,o)<0){const t=i;i=o,o=t}t[0]=i,t[1]=s,t[2]=o}static distance(t,e){return gt.distance(t.x,t.y,e.x,e.y)}static crossProductZ(t,e,r){const n=e.x,i=e.y;return(r.x-n)*(t.y-i)-(r.y-i)*(t.x-n)}}class At{constructor(t,e){this.bits=t,this.points=e}getBits(){return this.bits}getPoints(){return this.points}}class Ct extends At{constructor(t,e,r,n,i){super(t,e),this.compact=r,this.nbDatablocks=n,this.nbLayers=i}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class Et{constructor(t,e,r,n){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==e&&(e=Et.INIT_SIZE),null==r&&(r=t.getWidth()/2|0),null==n&&(n=t.getHeight()/2|0);const i=e/2|0;if(this.leftInit=r-i,this.rightInit=r+i,this.upInit=n-i,this.downInit=n+i,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new M}detect(){let t=this.leftInit,e=this.rightInit,r=this.upInit,n=this.downInit,i=!1,s=!0,o=!1,a=!1,l=!1,c=!1,h=!1;const u=this.width,d=this.height;for(;s;){s=!1;let f=!0;for(;(f||!a)&&e=u){i=!0;break}let g=!0;for(;(g||!l)&&n=d){i=!0;break}let w=!0;for(;(w||!c)&&t>=0;)w=this.containsBlackPoint(r,n,t,!1),w?(t--,s=!0,c=!0):c||t--;if(t<0){i=!0;break}let m=!0;for(;(m||!h)&&r>=0;)m=this.containsBlackPoint(t,e,r,!0),m?(r--,s=!0,h=!0):h||r--;if(r<0){i=!0;break}s&&(o=!0)}if(!i&&o){const i=e-t;let s=null;for(let e=1;null===s&&er||o<-1||o>n)throw new M;i=!1,-1===t?(e[s]=0,i=!0):t===r&&(e[s]=r-1,i=!0),-1===o?(e[s+1]=0,i=!0):o===n&&(e[s+1]=n-1,i=!0)}i=!0;for(let s=e.length-2;s>=0&&i;s-=2){const t=Math.floor(e[s]),o=Math.floor(e[s+1]);if(t<-1||t>r||o<-1||o>n)throw new M;i=!1,-1===t?(e[s]=0,i=!0):t===r&&(e[s]=r-1,i=!0),-1===o?(e[s+1]=0,i=!0):o===n&&(e[s+1]=n-1,i=!0)}}}class _t{constructor(t,e,r,n,i,s,o,a,l){this.a11=t,this.a21=e,this.a31=r,this.a12=n,this.a22=i,this.a32=s,this.a13=o,this.a23=a,this.a33=l}static quadrilateralToQuadrilateral(t,e,r,n,i,s,o,a,l,c,h,u,d,f,g,w){const m=_t.quadrilateralToSquare(t,e,r,n,i,s,o,a);return _t.squareToQuadrilateral(l,c,h,u,d,f,g,w).times(m)}transformPoints(t){const e=t.length,r=this.a11,n=this.a12,i=this.a13,s=this.a21,o=this.a22,a=this.a23,l=this.a31,c=this.a32,h=this.a33;for(let u=0;u>1&127):(n<<=10,n+=(t>>2&992)+(t>>1&31))}let i=this.getCorrectedParameterData(n,this.compact);this.compact?(this.nbLayers=1+(i>>6),this.nbDataBlocks=1+(63&i)):(this.nbLayers=1+(i>>11),this.nbDataBlocks=1+(2047&i))}getRotation(t,e){let r=0;t.forEach(((t,n,i)=>{r=(t>>e-2<<1)+(1&t)+(r<<3)})),r=((1&r)<<11)+(r>>1);for(let n=0;n<4;n++)if(E.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new M}getCorrectedParameterData(t,e){let r,n;e?(r=7,n=2):(r=10,n=4);let i=r-n,s=new Int32Array(r);for(let l=r-1;l>=0;--l)s[l]=15&t,t>>=4;try{new dt(ct.AZTEC_PARAM).decode(s,i)}catch(a){throw new M}let o=0;for(let l=0;l2){let r=this.distancePoint(l,t)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(r<.75||r>1.25||!this.isWhiteOrBlackRectangle(t,o,a,l))break}e=t,r=o,n=a,i=l,s=!s}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new M;this.compact=5===this.nbCenterLayers;let o=new mt(e.getX()+.5,e.getY()-.5),a=new mt(r.getX()+.5,r.getY()+.5),l=new mt(n.getX()-.5,n.getY()+.5),c=new mt(i.getX()-.5,i.getY()-.5);return this.expandSquare([o,a,l,c],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let t,e,r,n;try{let i=new Et(this.image).detect();t=i[0],e=i[1],r=i[2],n=i[3]}catch(o){let i=this.image.getWidth()/2,s=this.image.getHeight()/2;t=this.getFirstDifferent(new Tt(i+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Tt(i+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Tt(i-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Tt(i-7,s-7),!1,-1,-1).toResultPoint()}let i=gt.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=gt.round((t.getY()+n.getY()+e.getY()+r.getY())/4);try{let o=new Et(this.image,15,i,s).detect();t=o[0],e=o[1],r=o[2],n=o[3]}catch(o){t=this.getFirstDifferent(new Tt(i+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Tt(i+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Tt(i-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Tt(i-7,s-7),!1,-1,-1).toResultPoint()}return i=gt.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=gt.round((t.getY()+n.getY()+e.getY()+r.getY())/4),new Tt(i,s)}getMatrixCornerPoints(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())}sampleGrid(t,e,r,n,i){let s=St.getInstance(),o=this.getDimension(),a=o/2-this.nbCenterLayers,l=o/2+this.nbCenterLayers;return s.sampleGrid(t,o,o,a,a,l,a,l,l,a,l,e.getX(),e.getY(),r.getX(),r.getY(),n.getX(),n.getY(),i.getX(),i.getY())}sampleLine(t,e,r){let n=0,i=this.distanceResultPoint(t,e),s=i/r,o=t.getX(),a=t.getY(),l=s*(e.getX()-t.getX())/i,c=s*(e.getY()-t.getY())/i;for(let h=0;h.1&&h<.9?0:h<=.1===l?1:-1}getFirstDifferent(t,e,r,n){let i=t.getX()+r,s=t.getY()+n;for(;this.isValid(i,s)&&this.image.get(i,s)===e;)i+=r,s+=n;for(i-=r,s-=n;this.isValid(i,s)&&this.image.get(i,s)===e;)i+=r;for(i-=r;this.isValid(i,s)&&this.image.get(i,s)===e;)s+=n;return s-=n,new Tt(i,s)}expandSquare(t,e,r){let n=r/(2*e),i=t[0].getX()-t[2].getX(),s=t[0].getY()-t[2].getY(),o=(t[0].getX()+t[2].getX())/2,a=(t[0].getY()+t[2].getY())/2,l=new mt(o+n*i,a+n*s),c=new mt(o-n*i,a-n*s);return i=t[1].getX()-t[3].getX(),s=t[1].getY()-t[3].getY(),o=(t[1].getX()+t[3].getX())/2,a=(t[1].getY()+t[3].getY())/2,[l,new mt(o+n*i,a+n*s),c,new mt(o-n*i,a-n*s)]}isValid(t,e){return t>=0&&t0&&e{r.foundPossibleResultPoint(t)}))}}reset(){}}class Nt extends V{constructor(t=500){super(new Rt,t)}}class Dt{decode(t,e){try{return this.doDecode(t,e)}catch(r){if(e&&!0===e.get(S.TRY_HARDER)&&t.isRotateSupported()){const r=t.rotateCounterClockwise(),n=this.doDecode(r,e),i=n.getResultMetadata();let s=270;null!==i&&!0===i.get(it.ORIENTATION)&&(s+=i.get(it.ORIENTATION)%360),n.putMetadata(it.ORIENTATION,s);const o=n.getResultPoints();if(null!==o){const t=r.getHeight();for(let e=0;e>(s?8:5));let a;a=s?n:15;const l=Math.trunc(n/2);for(let u=0;u=n)break;try{i=t.getBlackRow(a,i)}catch(c){continue}for(let t=0;t<2;t++){if(1===t&&(i.reverse(),e&&!0===e.get(S.NEED_RESULT_POINT_CALLBACK))){const t=new Map;e.forEach(((e,r)=>t.set(r,e))),t.delete(S.NEED_RESULT_POINT_CALLBACK),e=t}try{const n=this.decodeRow(a,i,e);if(1===t){n.putMetadata(it.ORIENTATION,180);const t=n.getResultPoints();null!==t&&(t[0]=new mt(r-t[0].getX()-1,t[0].getY()),t[1]=new mt(r-t[1].getX()-1,t[1].getY()))}return n}catch(h){}}}throw new M}static recordPattern(t,e,r){const n=r.length;for(let l=0;l=i)throw new M;let s=!t.get(e),o=0,a=e;for(;a0&&n>=0;)t.get(--e)!==i&&(n--,i=!i);if(n>=0)throw new M;Dt.recordPattern(t,e+1,r)}static patternMatchVariance(t,e,r){const n=t.length;let i=0,s=0;for(let l=0;li?n-i:i-n;if(s>r)return Number.POSITIVE_INFINITY;a+=s}return a/i}}class Ot extends Dt{static findStartPattern(t){const e=t.getSize(),r=t.getNextSet(0);let n=0,i=Int32Array.from([0,0,0,0,0,0]),s=r,o=!1;const a=6;for(let l=r;l=0&&t.isRange(Math.max(0,s-(l-s)/2),s,!1))return Int32Array.from([s,l,r]);s+=i[0]+i[1],i=i.slice(2,i.length-1),i[n-1]=0,i[n]=0,n--}else n++;i[n]=1,o=!o}throw new M}static decodeCode(t,e,r){Dt.recordPattern(t,r,e);let n=Ot.MAX_AVG_VARIANCE,i=-1;for(let s=0;s=0)return i;throw new M}decodeRow(t,e,r){const n=r&&!0===r.get(S.ASSUME_GS1),i=Ot.findStartPattern(e),s=i[2];let o=0;const a=new Uint8Array(20);let l;switch(a[o++]=s,s){case Ot.CODE_START_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_START_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_START_C:l=Ot.CODE_CODE_C;break;default:throw new T}let c=!1,h=!1,u="",d=i[0],g=i[1];const w=Int32Array.from([0,0,0,0,0,0]);let m=0,A=0,C=s,E=0,p=!0,_=!1,I=!1;for(;!c;){const t=h;switch(h=!1,m=A,A=Ot.decodeCode(e,w,g),a[o++]=A,A!==Ot.CODE_STOP&&(p=!0),A!==Ot.CODE_STOP&&(E++,C+=E*A),d=g,g+=w.reduce(((t,e)=>t+e),0),A){case Ot.CODE_START_A:case Ot.CODE_START_B:case Ot.CODE_START_C:throw new T}switch(l){case Ot.CODE_CODE_A:if(A<64)u+=I===_?String.fromCharCode(" ".charCodeAt(0)+A):String.fromCharCode(" ".charCodeAt(0)+A+128),I=!1;else if(A<96)u+=I===_?String.fromCharCode(A-64):String.fromCharCode(A+64),I=!1;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_FNC_2:case Ot.CODE_FNC_3:break;case Ot.CODE_FNC_4_A:!_&&I?(_=!0,I=!1):_&&I?(_=!1,I=!1):I=!0;break;case Ot.CODE_SHIFT:h=!0,l=Ot.CODE_CODE_B;break;case Ot.CODE_CODE_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_CODE_C:l=Ot.CODE_CODE_C;break;case Ot.CODE_STOP:c=!0}break;case Ot.CODE_CODE_B:if(A<96)u+=I===_?String.fromCharCode(" ".charCodeAt(0)+A):String.fromCharCode(" ".charCodeAt(0)+A+128),I=!1;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_FNC_2:case Ot.CODE_FNC_3:break;case Ot.CODE_FNC_4_B:!_&&I?(_=!0,I=!1):_&&I?(_=!1,I=!1):I=!0;break;case Ot.CODE_SHIFT:h=!0,l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_C:l=Ot.CODE_CODE_C;break;case Ot.CODE_STOP:c=!0}break;case Ot.CODE_CODE_C:if(A<100)A<10&&(u+="0"),u+=A;else switch(A!==Ot.CODE_STOP&&(p=!1),A){case Ot.CODE_FNC_1:n&&(0===u.length?u+="]C1":u+=String.fromCharCode(29));break;case Ot.CODE_CODE_A:l=Ot.CODE_CODE_A;break;case Ot.CODE_CODE_B:l=Ot.CODE_CODE_B;break;case Ot.CODE_STOP:c=!0}}t&&(l=l===Ot.CODE_CODE_A?Ot.CODE_CODE_B:Ot.CODE_CODE_A)}const y=g-d;if(g=e.getNextUnset(g),!e.isRange(g,Math.min(e.getSize(),g+(g-d)/2),!1))throw new M;if(C-=E*m,C%103!==m)throw new f;const R=u.length;if(0===R)throw new M;R>0&&p&&(u=l===Ot.CODE_CODE_C?u.substring(0,R-2):u.substring(0,R-1));const N=(i[1]+i[0])/2,D=d+y/2,O=a.length,b=new Uint8Array(O);for(let f=0;fn&&(i=e);n=i,e=0;let s=0,o=0;for(let a=0;an&&(o|=1<0;i++){let r=t[i];if(r>n&&(e--,2*r>=s))return-1}return o}}while(e>3);return-1}static patternToChar(t){for(let e=0;e="A"&&i<="Z"))throw new T;s=String.fromCharCode(i.charCodeAt(0)+32);break;case"$":if(!(i>="A"&&i<="Z"))throw new T;s=String.fromCharCode(i.charCodeAt(0)-64);break;case"%":if(i>="A"&&i<="E")s=String.fromCharCode(i.charCodeAt(0)-38);else if(i>="F"&&i<="J")s=String.fromCharCode(i.charCodeAt(0)-11);else if(i>="K"&&i<="O")s=String.fromCharCode(i.charCodeAt(0)+16);else if(i>="P"&&i<="T")s=String.fromCharCode(i.charCodeAt(0)+43);else if("U"===i)s="\0";else if("V"===i)s="@";else if("W"===i)s="`";else{if("X"!==i&&"Y"!==i&&"Z"!==i)throw new T;s=""}break;case"/":if(i>="A"&&i<="O")s=String.fromCharCode(i.charCodeAt(0)-32);else{if("Z"!==i)throw new T;s=":"}}r+=s,n++}else r+=e}return r}}bt.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",bt.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],bt.ASTERISK_ENCODING=148;class Mt extends Dt{constructor(){super(...arguments),this.narrowLineWidth=-1}decodeRow(t,e,r){let n=this.decodeStart(e),i=this.decodeEnd(e),s=new O;Mt.decodeMiddle(e,n[1],i[0],s);let o=s.toString(),a=null;null!=r&&(a=r.get(S.ALLOWED_LENGTHS)),null==a&&(a=Mt.DEFAULT_ALLOWED_LENGTHS);let l=o.length,c=!1,h=0;for(let d of a){if(l===d){c=!0;break}d>h&&(h=d)}if(!c&&l>h&&(c=!0),!c)throw new T;const u=[new mt(n[1],t),new mt(i[0],t)];return new G(o,null,0,u,z.ITF,(new Date).getTime())}static decodeMiddle(t,e,r,n){let i=new Int32Array(10),s=new Int32Array(5),o=new Int32Array(5);for(i.fill(0),s.fill(0),o.fill(0);e0&&n>=0&&!t.get(n);n--)r--;if(0!==r)throw new M}static skipWhiteSpace(t){const e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new M;return r}decodeEnd(t){t.reverse();try{let r,n=Mt.skipWhiteSpace(t);try{r=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[0])}catch(e){e instanceof M&&(r=Mt.findGuardPattern(t,n,Mt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,r[0]);let i=r[0];return r[0]=t.getSize()-r[1],r[1]=t.getSize()-i,r}finally{t.reverse()}}static findGuardPattern(t,e,r){let n=r.length,i=new Int32Array(n),s=t.getSize(),o=!1,a=0,l=e;i.fill(0);for(let c=e;c=0)return r%10;throw new M}}Mt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],Mt.MAX_AVG_VARIANCE=.38,Mt.MAX_INDIVIDUAL_VARIANCE=.5,Mt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],Mt.START_PATTERN=Int32Array.from([1,1,1,1]),Mt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class Pt extends Dt{constructor(){super(...arguments),this.decodeRowStringBuffer=""}static findStartGuardPattern(t){let e,r=!1,n=0,i=Int32Array.from([0,0,0]);for(;!r;){i=Int32Array.from([0,0,0]),e=Pt.findGuardPattern(t,n,!1,this.START_END_PATTERN,i);let s=e[0];n=e[1];let o=s-(n-s);o>=0&&(r=t.isRange(o,s,!1))}return e}static checkChecksum(t){return Pt.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let r=parseInt(t.charAt(e-1),10);return Pt.getStandardUPCEANChecksum(t.substring(0,e-1))===r}static getStandardUPCEANChecksum(t){let e=t.length,r=0;for(let n=e-1;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}r*=3;for(let n=e-2;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}return(1e3-r)%10}static decodeEnd(t,e){return Pt.findGuardPattern(t,e,!1,Pt.START_END_PATTERN,new Int32Array(Pt.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(t,e,r,n){return this.findGuardPattern(t,e,r,n,new Int32Array(n.length))}static findGuardPattern(t,e,r,n,i){let s=t.getSize(),o=0,a=e=r?t.getNextUnset(e):t.getNextSet(e),l=n.length,c=r;for(let h=e;h=0)return s;throw new M}}Pt.MAX_AVG_VARIANCE=.48,Pt.MAX_INDIVIDUAL_VARIANCE=.7,Pt.START_END_PATTERN=Int32Array.from([1,1,1]),Pt.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),Pt.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),Pt.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])];class Bt{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,r){let n=this.decodeRowStringBuffer,i=this.decodeMiddle(e,r,n),s=n.toString(),o=Bt.parseExtensionString(s),a=[new mt((r[0]+r[1])/2,t),new mt(i,t)],l=new G(s,null,0,a,z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=o&&l.putAllMetadata(o),l}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let l=0;l<5&&s=10&&(o|=1<<4-l),4!==l&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(5!==r.length)throw new M;let a=this.determineCheckDigit(o);if(Bt.extensionChecksum(r.toString())!==a)throw new M;return s}static extensionChecksum(t){let e=t.length,r=0;for(let n=e-2;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(let n=e-1;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10}determineCheckDigit(t){for(let e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new M}static parseExtensionString(t){if(5!==t.length)return null;let e=Bt.parseExtension5String(t);return null==e?null:new Map([[it.SUGGESTED_PRICE,e]])}static parseExtension5String(t){let e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}let r=parseInt(t.substring(1)),n=r%100;return e+(r/100).toString()+"."+(n<10?"0"+n:n.toString())}}class vt{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(t,e,r){let n=this.decodeRowStringBuffer,i=this.decodeMiddle(e,r,n),s=n.toString(),o=vt.parseExtensionString(s),a=[new mt((r[0]+r[1])/2,t),new mt(i,t)],l=new G(s,null,0,a,z.UPC_EAN_EXTENSION,(new Date).getTime());return null!=o&&l.putAllMetadata(o),l}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let a=0;a<2&&s=10&&(o|=1<<1-a),1!==a&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new M;if(parseInt(r.toString())%4!==o)throw new M;return s}static parseExtensionString(t){return 2!==t.length?null:new Map([[it.ISSUE_NUMBER,parseInt(t)]])}}class Lt{static decodeRow(t,e,r){let n=Pt.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new Bt).decodeRow(t,e,n)}catch(i){return(new vt).decodeRow(t,e,n)}}}Lt.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class Ft extends Pt{constructor(){super(),this.decodeRowStringBuffer="",Ft.L_AND_G_PATTERNS=Ft.L_PATTERNS.map((t=>Int32Array.from(t)));for(let t=10;t<20;t++){let e=Ft.L_PATTERNS[t-10],r=new Int32Array(e.length);for(let t=0;t=e.getSize()||!e.isRange(c,h,!1))throw new M;let u=a.toString();if(u.length<8)throw new T;if(!Ft.checkChecksum(u))throw new f;let d=(n[1]+n[0])/2,g=(l[1]+l[0])/2,w=this.getBarcodeFormat(),m=[new mt(d,t),new mt(g,t)],A=new G(u,null,0,m,w,(new Date).getTime()),C=0;try{let r=Lt.decodeRow(t,e,l[1]);A.putMetadata(it.UPC_EAN_EXTENSION,r.getText()),A.putAllMetadata(r.getResultMetadata()),A.addResultPoints(r.getResultPoints()),C=r.getText().length}catch(p){}let E=null==r?null:r.get(S.ALLOWED_EAN_EXTENSIONS);if(null!=E){let t=!1;for(let e in E)if(C.toString()===e){t=!0;break}if(!t)throw new M}return A}decodeEnd(t,e){return Ft.findGuardPattern(t,e,!1,Ft.START_END_PATTERN,new Int32Array(Ft.START_END_PATTERN.length).fill(0))}static checkChecksum(t){return Ft.checkStandardUPCEANChecksum(t)}static checkStandardUPCEANChecksum(t){let e=t.length;if(0===e)return!1;let r=parseInt(t.charAt(e-1),10);return Ft.getStandardUPCEANChecksum(t.substring(0,e-1))===r}static getStandardUPCEANChecksum(t){let e=t.length,r=0;for(let n=e-1;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}r*=3;for(let n=e-2;n>=0;n-=2){let e=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(e<0||e>9)throw new T;r+=e}return(1e3-r)%10}}class kt extends Ft{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(t,e,r){let n=this.decodeMiddleCounters;n[0]=0,n[1]=0,n[2]=0,n[3]=0;let i=t.getSize(),s=e[1],o=0;for(let a=0;a<6&&s=10&&(o|=1<<5-a)}r=kt.determineFirstDigit(r,o),s=Ft.findGuardPattern(t,s,!0,Ft.MIDDLE_PATTERN,new Int32Array(Ft.MIDDLE_PATTERN.length).fill(0))[1];for(let a=0;a<6&&st));n[0]=0,n[1]=0,n[2]=0,n[3]=0;const i=t.getSize();let s=e[1],o=0;for(let a=0;a<6&&s=10&&(o|=1<<5-a)}return{rowOffset:s,resultString:Ht.determineNumSysAndCheckDigit(r,o)}}decodeEnd(t,e){return Ht.findGuardPatternWithoutCounters(t,e,!0,Ht.MIDDLE_END_PATTERN)}checkChecksum(t){return Ft.checkChecksum(Ht.convertUPCEtoUPCA(t))}static determineNumSysAndCheckDigit(t,e){for(let r=0;r<=1;r++)for(let n=0;n<10;n++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return String.fromCharCode("0".charCodeAt(0)+r)+t+String.fromCharCode("0".charCodeAt(0)+n);throw M.getNotFoundInstance()}getBarcodeFormat(){return z.UPC_E}static convertUPCEtoUPCA(t){const e=t.slice(1,7).split("").map((t=>t.charCodeAt(0))),r=new O;r.append(t.charAt(0));let n=e[5];switch(n){case 0:case 1:case 2:r.appendChars(e,0,2),r.append(n),r.append("0000"),r.appendChars(e,2,3);break;case 3:r.appendChars(e,0,3),r.append("00000"),r.appendChars(e,3,2);break;case 4:r.appendChars(e,0,4),r.append("00000"),r.append(e[4]);break;default:r.appendChars(e,0,5),r.append("0000"),r.append(n)}return t.length>=8&&r.append(t.charAt(7)),r.toString()}}Ht.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),Ht.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,26])];class Vt extends Dt{constructor(t){super();let r=null==t?null:t.get(S.POSSIBLE_FORMATS),n=[];e(r)?(n.push(new kt),n.push(new Ut),n.push(new xt),n.push(new Ht)):(r.indexOf(z.EAN_13)>-1&&n.push(new kt),r.indexOf(z.UPC_A)>-1&&n.push(new Ut),r.indexOf(z.EAN_8)>-1&&n.push(new xt),r.indexOf(z.UPC_E)>-1&&n.push(new Ht)),this.readers=n}decodeRow(t,e,r){for(let i of this.readers)try{const n=i.decodeRow(t,e,r),s=n.getBarcodeFormat()===z.EAN_13&&"0"===n.getText().charAt(0),o=null==r?null:r.get(S.POSSIBLE_FORMATS),a=null==o||o.includes(z.UPC_A);if(s&&a){const t=n.getRawBytes(),e=new G(n.getText().substring(1),t,t?t.length:null,n.getResultPoints(),z.UPC_A);return e.putAllMetadata(n.getResultMetadata()),e}return n}catch(n){}throw new M}reset(){for(let t of this.readers)t.reset()}}class Gt extends Dt{constructor(){super(),this.decodeFinderCounters=new Int32Array(4),this.dataCharacterCounters=new Int32Array(8),this.oddRoundingErrors=new Array(4),this.evenRoundingErrors=new Array(4),this.oddCounts=new Array(this.dataCharacterCounters.length/2),this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(t,e){for(let r=0;rn&&(n=e[i],r=i);t[r]++}static decrement(t,e){let r=0,n=e[0];for(let i=1;i=Gt.MIN_FINDER_PATTERN_RATIO&&r<=Gt.MAX_FINDER_PATTERN_RATIO){let e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;for(let n of t)n>r&&(r=n),n=o-a-1&&(t-=zt.combins(n-l-(o-a),o-a-2)),o-a-1>1){let r=0;for(let t=n-l-(o-a-2);t>e;t--)r+=zt.combins(n-l-t-1,o-a-3);t-=r*(o-1-a)}else n-l>e&&t--;i+=t}n-=l}return i}static combins(t,e){let r,n;t-e>e?(n=e,r=t-e):(n=t-e,r=e);let i=1,s=1;for(let o=t;o>r;o--)i*=o,s<=n&&(i/=s,s++);for(;s<=n;)i/=s,s++;return i}}class Yt{static buildBitArray(t){let e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);let r=new p(12*e),n=0,i=t[0].getRightChar().getValue();for(let s=11;s>=0;--s)0!=(i&1<=0;--t)0!=(i&1<=0;--e)0!=(t&1<10||r<0||r>10)throw new T;this.firstDigit=e,this.secondDigit=r}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return 10*this.firstDigit+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===jt.FNC1}isSecondDigitFNC1(){return this.secondDigit===jt.FNC1}isAnyFNC1(){return this.firstDigit===jt.FNC1||this.secondDigit===jt.FNC1}}jt.FNC1=10;class Jt{constructor(){}static parseFieldsInGeneralPurpose(t){if(!t)return null;if(t.length<2)throw new M;let e=t.substring(0,2);for(let i of Jt.TWO_DIGIT_DATA_LENGTH)if(i[0]===e)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(2,i[2],t):Jt.processFixedAI(2,i[1],t);if(t.length<3)throw new M;let r=t.substring(0,3);for(let i of Jt.THREE_DIGIT_DATA_LENGTH)if(i[0]===r)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(3,i[2],t):Jt.processFixedAI(3,i[1],t);for(let i of Jt.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(i[0]===r)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(4,i[2],t):Jt.processFixedAI(4,i[1],t);if(t.length<4)throw new M;let n=t.substring(0,4);for(let i of Jt.FOUR_DIGIT_DATA_LENGTH)if(i[0]===n)return i[1]===Jt.VARIABLE_LENGTH?Jt.processVariableAI(4,i[2],t):Jt.processFixedAI(4,i[1],t);throw new M}static processFixedAI(t,e,r){if(r.lengththis.information.getSize())return t+4<=this.information.getSize();for(let e=t;ethis.information.getSize()){let e=this.extractNumericValueFromBitArray(t,4);return new jt(this.information.getSize(),0===e?jt.FNC1:e-1,jt.FNC1)}let e=this.extractNumericValueFromBitArray(t,7);return new jt(t+7,(e-8)/11,(e-8)%11)}extractNumericValueFromBitArray(t,e){return $t.extractNumericValueFromBitArray(this.information,t,e)}static extractNumericValueFromBitArray(t,e,r){let n=0;for(let i=0;ithis.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<116)return!0;if(t+8>this.information.getSize())return!1;let n=this.extractNumericValueFromBitArray(t,8);return n>=232&&n<253}decodeIsoIec646(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new qt(t+5,qt.FNC1);if(e>=5&&e<15)return new qt(t+5,"0"+(e-5));let r,n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<90)return new qt(t+7,""+(n+1));if(n>=90&&n<116)return new qt(t+7,""+(n+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:r="!";break;case 233:r='"';break;case 234:r="%";break;case 235:r="&";break;case 236:r="'";break;case 237:r="(";break;case 238:r=")";break;case 239:r="*";break;case 240:r="+";break;case 241:r=",";break;case 242:r="-";break;case 243:r=".";break;case 244:r="/";break;case 245:r=":";break;case 246:r=";";break;case 247:r="<";break;case 248:r="=";break;case 249:r=">";break;case 250:r="?";break;case 251:r="_";break;case 252:r=" ";break;default:throw new T}return new qt(t+8,r)}isStillAlpha(t){if(t+5>this.information.getSize())return!1;let e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;let r=this.extractNumericValueFromBitArray(t,6);return r>=16&&r<63}decodeAlphanumeric(t){let e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new qt(t+5,qt.FNC1);if(e>=5&&e<15)return new qt(t+5,"0"+(e-5));let r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new qt(t+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new ut("Decoding invalid alphanumeric value: "+n)}return new qt(t+6,r)}isAlphaTo646ToAlphaLatch(t){if(t+1>this.information.getSize())return!1;for(let e=0;e<5&&e+tthis.information.getSize())return!1;for(let e=t;ethis.information.getSize())return!1;for(let e=0;e<4&&e+t{e.forEach((e=>{t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(r=!0)}))})),r}}class ge extends Gt{constructor(t){super(...arguments),this.pairs=new Array(ge.MAX_PAIRS),this.rows=new Array,this.startEnd=[2],this.verbose=!0===t}decodeRow(t,e,r){this.pairs.length=0,this.startFromEven=!1;try{return ge.constructResult(this.decodeRow2pairs(t,e))}catch(n){this.verbose&&console.log(n)}return this.pairs.length=0,this.startFromEven=!0,ge.constructResult(this.decodeRow2pairs(t,e))}reset(){this.pairs.length=0,this.rows.length=0}decodeRow2pairs(t,e){let r,n=!1;for(;!n;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(i){if(i instanceof M){if(!this.pairs.length)throw new M;n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(t,!1),r){let t=this.checkRowsBoolean(!1);if(null!=t)return t;if(t=this.checkRowsBoolean(!0),null!=t)return t}throw new M}checkRowsBoolean(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());let e=null;try{e=this.checkRows(new Array,0)}catch(r){this.verbose&&console.log(r)}return t&&(this.rows=this.rows.reverse()),e}checkRows(t,e){for(let n=e;ne.length)continue;let r=!0;for(let n=0;nt){i=e.isEquivalent(this.pairs);break}n=e.isEquivalent(this.pairs),r++}i||n||ge.isPartialRow(this.pairs,this.rows)||(this.rows.push(r,new fe(this.pairs,t,e)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(t,e){for(let r of e)if(r.getPairs().length!==t.length)for(let e of r.getPairs())for(let r of t)if(de.equals(e,r))break}static isPartialRow(t,e){for(let r of e){let e=!0;for(let n of t){let t=!1;for(let e of r.getPairs())if(n.equals(e)){t=!0;break}if(!t){e=!1;break}}if(e)return!0}return!1}getRows(){return this.rows}static constructResult(t){let e=ue(Yt.buildBitArray(t)).parseInformation(),r=t[0].getFinderPattern().getResultPoints(),n=t[t.length-1].getFinderPattern().getResultPoints(),i=[r[0],r[1],n[0],n[1]];return new G(e,null,null,i,z.RSS_EXPANDED,null)}checkChecksum(){let t=this.pairs.get(0),e=t.getLeftChar(),r=t.getRightChar();if(null==r)return!1;let n=r.getChecksumPortion(),i=2;for(let s=1;s=0?r:this.isEmptyPair(e)?0:e[e.length-1].getFinderPattern().getStartEnd()[1];let o=e.length%2!=0;this.startFromEven&&(o=!o);let a=!1;for(;i=0&&!t.get(e);)e--;e++,n=this.startEnd[0]-e,i=e,s=this.startEnd[1]}else i=this.startEnd[0],s=t.getNextUnset(this.startEnd[1]+1),n=s-this.startEnd[1];let o,a=this.getDecodeFinderCounters();w.arraycopy(a,0,a,1,a.length-1),a[0]=n;try{o=this.parseFinderValue(a,ge.FINDER_PATTERNS)}catch(l){return null}return new Wt(o,[i,s],i,s,e)}decodeDataCharacter(t,e,r,n){let i=this.getDataCharacterCounters();for(let T=0;T.3)throw new M;let l=this.getOddCounts(),c=this.getEvenCounts(),h=this.getOddRoundingErrors(),u=this.getEvenRoundingErrors();for(let T=0;T8){if(t>8.7)throw new M;e=8}let r=T/2;0==(1&T)?(l[r]=e,h[r]=t-e):(c[r]=e,u[r]=t-e)}this.adjustOddEvenCounts(s);let d=4*e.getValue()+(r?0:2)+(n?0:1)-1,f=0,g=0;for(let T=l.length-1;T>=0;T--){if(ge.isNotA1left(e,r,n)){let t=ge.WEIGHTS[d][2*T];g+=l[T]*t}f+=l[T]}let w=0;for(let T=c.length-1;T>=0;T--)if(ge.isNotA1left(e,r,n)){let t=ge.WEIGHTS[d][2*T+1];w+=c[T]*t}let m=g+w;if(0!=(1&f)||f>13||f<4)throw new M;let A=(13-f)/2,C=ge.SYMBOL_WIDEST[A],E=9-C,p=zt.getRSSvalue(l,C,!0),_=zt.getRSSvalue(c,E,!1),I=ge.EVEN_TOTAL_SUBSET[A],S=ge.GSUM[A];return new Xt(p*I+_+S,m)}static isNotA1left(t,e,r){return!(0==t.getValue()&&e&&r)}adjustOddEvenCounts(t){let e=gt.sum(new Int32Array(this.getOddCounts())),r=gt.sum(new Int32Array(this.getEvenCounts())),n=!1,i=!1;e>13?i=!0:e<4&&(n=!0);let s=!1,o=!1;r>13?o=!0:r<4&&(s=!0);let a=e+r-t,l=1==(1&e),c=0==(1&r);if(1==a)if(l){if(c)throw new M;i=!0}else{if(!c)throw new M;o=!0}else if(-1==a)if(l){if(c)throw new M;n=!0}else{if(!c)throw new M;s=!0}else{if(0!=a)throw new M;if(l){if(!c)throw new M;e1)for(let t of this.possibleRightPairs)if(t.getCount()>1&&me.checkChecksum(s,t))return me.constructResult(s,t);throw new M}static addOrTally(t,e){if(null==e)return;let r=!1;for(let n of t)if(n.getValue()===e.getValue()){n.incrementCount(),r=!0;break}r||t.push(e)}reset(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0}static constructResult(t,e){let r=4537077*t.getValue()+e.getValue(),n=new String(r).toString(),i=new O;for(let l=13-n.length;l>0;l--)i.append("0");i.append(n);let s=0;for(let l=0;l<13;l++){let t=i.charAt(l).charCodeAt(0)-"0".charCodeAt(0);s+=0==(1&l)?3*t:t}s=10-s%10,10===s&&(s=0),i.append(s.toString());let o=t.getFinderPattern().getResultPoints(),a=e.getFinderPattern().getResultPoints();return new G(i.toString(),null,0,[o[0],o[1],a[0],a[1]],z.RSS_14,(new Date).getTime())}static checkChecksum(t,e){let r=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,n=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n}decodePair(t,e,r,n){try{let i=this.findFinderPattern(t,e),s=this.parseFoundFinderPattern(t,r,e,i),o=null==n?null:n.get(S.NEED_RESULT_POINT_CALLBACK);if(null!=o){let n=(i[0]+i[1])/2;e&&(n=t.getSize()-1-n),o.foundPossibleResultPoint(new mt(n,r))}let a=this.decodeDataCharacter(t,s,!0),l=this.decodeDataCharacter(t,s,!1);return new we(1597*a.getValue()+l.getValue(),a.getChecksumPortion()+4*l.getChecksumPortion(),s)}catch(i){return null}}decodeDataCharacter(t,e,r){let n=this.getDataCharacterCounters();for(let w=0;w8&&(e=8);let r=Math.floor(w/2);0==(1&w)?(o[r]=e,l[r]=t-e):(a[r]=e,c[r]=t-e)}this.adjustOddEvenCounts(r,i);let h=0,u=0;for(let w=o.length-1;w>=0;w--)u*=9,u+=o[w],h+=o[w];let d=0,f=0;for(let w=a.length-1;w>=0;w--)d*=9,d+=a[w],f+=a[w];let g=u+3*d;if(r){if(0!=(1&h)||h>12||h<4)throw new M;let t=(12-h)/2,e=me.OUTSIDE_ODD_WIDEST[t],r=9-e,n=zt.getRSSvalue(o,e,!1),i=zt.getRSSvalue(a,r,!0),s=me.OUTSIDE_EVEN_TOTAL_SUBSET[t],l=me.OUTSIDE_GSUM[t];return new Xt(n*s+i+l,g)}{if(0!=(1&f)||f>10||f<4)throw new M;let t=(10-f)/2,e=me.INSIDE_ODD_WIDEST[t],r=9-e,n=zt.getRSSvalue(o,e,!0),i=zt.getRSSvalue(a,r,!1),s=me.INSIDE_ODD_TOTAL_SUBSET[t],l=me.INSIDE_GSUM[t];return new Xt(i*s+n+l,g)}}findFinderPattern(t,e){let r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;let n=t.getSize(),i=!1,s=0;for(;s=0&&i!==t.get(s);)s--;s++;const o=n[0]-s,a=this.getDecodeFinderCounters(),l=new Int32Array(a.length);w.arraycopy(a,0,l,1,a.length-1),l[0]=o;const c=this.parseFinderValue(l,me.FINDER_PATTERNS);let h=s,u=n[1];return r&&(h=t.getSize()-1-h,u=t.getSize()-1-u),new Wt(c,[s,n[1]],h,u,e)}adjustOddEvenCounts(t,e){let r=gt.sum(new Int32Array(this.getOddCounts())),n=gt.sum(new Int32Array(this.getEvenCounts())),i=!1,s=!1,o=!1,a=!1;t?(r>12?s=!0:r<4&&(i=!0),n>12?a=!0:n<4&&(o=!0)):(r>11?s=!0:r<5&&(i=!0),n>10?a=!0:n<4&&(o=!0));let l=r+n-e,c=(1&r)==(t?1:0),h=1==(1&n);if(1===l)if(c){if(h)throw new M;s=!0}else{if(!h)throw new M;a=!0}else if(-1===l)if(c){if(h)throw new M;i=!0}else{if(!h)throw new M;o=!0}else{if(0!==l)throw new M;if(c){if(!h)throw new M;rt.reset()))}}class Ce extends V{constructor(t=500,e){super(new Ae(e),t,e)}}class Ee{constructor(t,e,r){this.ecCodewords=t,this.ecBlocks=[e],r&&this.ecBlocks.push(r)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class pe{constructor(t,e){this.count=t,this.dataCodewords=e}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class _e{constructor(t,e,r,n,i,s){this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=i,this.ecBlocks=s;let o=0;const a=s.getECCodewords(),l=s.getECBlocks();for(let c of l)o+=c.getCount()*(c.getDataCodewords()+a);this.totalCodewords=o}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(t,e){if(0!=(1&t)||0!=(1&e))throw new T;for(let r of _e.VERSIONS)if(r.symbolSizeRows===t&&r.symbolSizeColumns===e)return r;throw new T}toString(){return""+this.versionNumber}static buildVersions(){return[new _e(1,10,10,8,8,new Ee(5,new pe(1,3))),new _e(2,12,12,10,10,new Ee(7,new pe(1,5))),new _e(3,14,14,12,12,new Ee(10,new pe(1,8))),new _e(4,16,16,14,14,new Ee(12,new pe(1,12))),new _e(5,18,18,16,16,new Ee(14,new pe(1,18))),new _e(6,20,20,18,18,new Ee(18,new pe(1,22))),new _e(7,22,22,20,20,new Ee(20,new pe(1,30))),new _e(8,24,24,22,22,new Ee(24,new pe(1,36))),new _e(9,26,26,24,24,new Ee(28,new pe(1,44))),new _e(10,32,32,14,14,new Ee(36,new pe(1,62))),new _e(11,36,36,16,16,new Ee(42,new pe(1,86))),new _e(12,40,40,18,18,new Ee(48,new pe(1,114))),new _e(13,44,44,20,20,new Ee(56,new pe(1,144))),new _e(14,48,48,22,22,new Ee(68,new pe(1,174))),new _e(15,52,52,24,24,new Ee(42,new pe(2,102))),new _e(16,64,64,14,14,new Ee(56,new pe(2,140))),new _e(17,72,72,16,16,new Ee(36,new pe(4,92))),new _e(18,80,80,18,18,new Ee(48,new pe(4,114))),new _e(19,88,88,20,20,new Ee(56,new pe(4,144))),new _e(20,96,96,22,22,new Ee(68,new pe(4,174))),new _e(21,104,104,24,24,new Ee(56,new pe(6,136))),new _e(22,120,120,18,18,new Ee(68,new pe(6,175))),new _e(23,132,132,20,20,new Ee(62,new pe(8,163))),new _e(24,144,144,22,22,new Ee(62,new pe(8,156),new pe(2,155))),new _e(25,8,18,6,16,new Ee(7,new pe(1,5))),new _e(26,8,32,6,14,new Ee(11,new pe(1,10))),new _e(27,12,26,10,24,new Ee(14,new pe(1,16))),new _e(28,12,36,10,16,new Ee(18,new pe(1,22))),new _e(29,16,36,14,16,new Ee(24,new pe(1,32))),new _e(30,16,48,14,22,new Ee(28,new pe(1,49)))]}}_e.VERSIONS=_e.buildVersions();class Ie{constructor(t){const e=t.getHeight();if(e<8||e>144||0!=(1&e))throw new T;this.version=Ie.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new b(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(t){const e=t.getHeight(),r=t.getWidth();return _e.getVersionForDimensions(e,r)}readCodewords(){const t=new Int8Array(this.version.getTotalCodewords());let e=0,r=4,n=0;const i=this.mappingBitMatrix.getHeight(),s=this.mappingBitMatrix.getWidth();let o=!1,a=!1,l=!1,c=!1;do{if(r!==i||0!==n||o)if(r!==i-2||0!==n||0==(3&s)||a)if(r!==i+4||2!==n||0!=(7&s)||l)if(r!==i-2||0!==n||4!=(7&s)||c){do{r=0&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,i,s)),r-=2,n+=2}while(r>=0&&n=0&&n=0);r+=3,n+=1}else t[e++]=255&this.readCorner4(i,s),r-=2,n+=2,c=!0;else t[e++]=255&this.readCorner3(i,s),r-=2,n+=2,l=!0;else t[e++]=255&this.readCorner2(i,s),r-=2,n+=2,a=!0;else t[e++]=255&this.readCorner1(i,s),r-=2,n+=2,o=!0}while(r7?u-1:u;s[r].codewords[n]=t[c++]}if(c!==t.length)throw new u;return s}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class Te{constructor(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(t){if(t<1||t>32||t>this.available())throw new u(""+t);let e=0,r=this.bitOffset,n=this.byteOffset;const i=this.bytes;if(r>0){const s=8-r,o=t>8-o<>a,t-=o,r+=o,8===r&&(r=0,n++)}if(t>0){for(;t>=8;)e=e<<8|255&i[n],n++,t-=8;if(t>0){const s=8-t,o=255>>s<>s,r+=t}}return this.bitOffset=r,this.byteOffset=n,e}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}(tt=K||(K={}))[tt.PAD_ENCODE=0]="PAD_ENCODE",tt[tt.ASCII_ENCODE=1]="ASCII_ENCODE",tt[tt.C40_ENCODE=2]="C40_ENCODE",tt[tt.TEXT_ENCODE=3]="TEXT_ENCODE",tt[tt.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",tt[tt.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",tt[tt.BASE256_ENCODE=6]="BASE256_ENCODE";class ye{static decode(t){const e=new Te(t),r=new O,n=new O,i=new Array;let s=K.ASCII_ENCODE;do{if(s===K.ASCII_ENCODE)s=this.decodeAsciiSegment(e,r,n);else{switch(s){case K.C40_ENCODE:this.decodeC40Segment(e,r);break;case K.TEXT_ENCODE:this.decodeTextSegment(e,r);break;case K.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,r);break;case K.EDIFACT_ENCODE:this.decodeEdifactSegment(e,r);break;case K.BASE256_ENCODE:this.decodeBase256Segment(e,r,i);break;default:throw new T}s=K.ASCII_ENCODE}}while(s!==K.PAD_ENCODE&&e.available()>0);return n.length()>0&&r.append(n.toString()),new st(t,r.toString(),0===i.length?null:i,null)}static decodeAsciiSegment(t,e,r){let n=!1;do{let i=t.readBits(8);if(0===i)throw new T;if(i<=128)return n&&(i+=128),e.append(String.fromCharCode(i-1)),K.ASCII_ENCODE;if(129===i)return K.PAD_ENCODE;if(i<=229){const t=i-130;t<10&&e.append("0"),e.append(""+t)}else switch(i){case 230:return K.C40_ENCODE;case 231:return K.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:n=!0;break;case 236:e.append("[)>05"),r.insert(0,"");break;case 237:e.append("[)>06"),r.insert(0,"");break;case 238:return K.ANSIX12_ENCODE;case 239:return K.TEXT_ENCODE;case 240:return K.EDIFACT_ENCODE;default:if(254!==i||0!==t.available())throw new T}}while(t.available()>0);return K.ASCII_ENCODE}static decodeC40Segment(t,e){let r=!1;const n=[];let i=0;do{if(8===t.available())return;const s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),n);for(let t=0;t<3;t++){const s=n[t];switch(i){case 0:if(s<3)i=s+1;else{if(!(s0)}static decodeTextSegment(t,e){let r=!1,n=[],i=0;do{if(8===t.available())return;const s=t.readBits(8);if(254===s)return;this.parseTwoBytes(s,t.readBits(8),n);for(let t=0;t<3;t++){const s=n[t];switch(i){case 0:if(s<3)i=s+1;else{if(!(s0)}static decodeAnsiX12Segment(t,e){const r=[];do{if(8===t.available())return;const n=t.readBits(8);if(254===n)return;this.parseTwoBytes(n,t.readBits(8),r);for(let t=0;t<3;t++){const n=r[t];switch(n){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(n<14)e.append(String.fromCharCode(n+44));else{if(!(n<40))throw new T;e.append(String.fromCharCode(n+51))}}}}while(t.available()>0)}static parseTwoBytes(t,e,r){let n=(t<<8)+e-1,i=Math.floor(n/1600);r[0]=i,n-=1600*i,i=Math.floor(n/40),r[1]=i,r[2]=n-40*i}static decodeEdifactSegment(t,e){do{if(t.available()<=16)return;for(let r=0;r<4;r++){let r=t.readBits(6);if(31===r){const e=8-t.getBitOffset();return void(8!==e&&t.readBits(e))}0==(32&r)&&(r|=64),e.append(String.fromCharCode(r))}}while(t.available()>0)}static decodeBase256Segment(t,e,r){let n=1+t.getByteOffset();const i=this.unrandomize255State(t.readBits(8),n++);let s;if(s=0===i?t.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(t.readBits(8),n++),s<0)throw new T;const o=new Uint8Array(s);for(let l=0;l=0?r:r+256}}ye.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ye.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],ye.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],ye.TEXT_SHIFT2_SET_CHARS=ye.C40_SHIFT2_SET_CHARS,ye.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class Re{constructor(){this.rsDecoder=new dt(ct.DATA_MATRIX_FIELD_256)}decode(t){const e=new Ie(t),r=e.getVersion(),n=e.readCodewords(),i=Se.getDataBlocks(n,r);let s=0;for(let l of i)s+=l.getNumDataCodewords();const o=new Uint8Array(s),a=i.length;for(let l=0;lo&&(c=o,h[0]=e,h[1]=r,h[2]=n,h[3]=i),c>a&&(c=a,h[0]=r,h[1]=n,h[2]=i,h[3]=e),c>l&&(h[0]=n,h[1]=i,h[2]=e,h[3]=r),h}detectSolid2(t){let e=t[0],r=t[1],n=t[2],i=t[3],s=this.transitionsBetween(e,i),o=Ne.shiftPoint(r,n,4*(s+1)),a=Ne.shiftPoint(n,r,4*(s+1));return this.transitionsBetween(o,e)this.transitionsBetween(a,h)+this.transitionsBetween(l,h)?c:h:c:this.isValid(h)?h:null}shiftToModuleCenter(t){let e=t[0],r=t[1],n=t[2],i=t[3],s=this.transitionsBetween(e,i)+1,o=this.transitionsBetween(n,i)+1,a=Ne.shiftPoint(e,r,4*o),l=Ne.shiftPoint(n,r,4*s);s=this.transitionsBetween(a,i)+1,o=this.transitionsBetween(l,i)+1,1==(1&s)&&(s+=1),1==(1&o)&&(o+=1);let c,h,u=(e.getX()+r.getX()+n.getX()+i.getX())/4,d=(e.getY()+r.getY()+n.getY()+i.getY())/4;return e=Ne.moveAway(e,u,d),r=Ne.moveAway(r,u,d),n=Ne.moveAway(n,u,d),i=Ne.moveAway(i,u,d),a=Ne.shiftPoint(e,r,4*o),a=Ne.shiftPoint(a,i,4*s),c=Ne.shiftPoint(r,e,4*o),c=Ne.shiftPoint(c,n,4*s),l=Ne.shiftPoint(n,i,4*o),l=Ne.shiftPoint(l,r,4*s),h=Ne.shiftPoint(i,n,4*o),h=Ne.shiftPoint(h,e,4*s),[a,c,l,h]}isValid(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(i-r);if(o){let t=r;r=n,n=t,t=i,i=s,s=t}let a=Math.abs(i-r),l=Math.abs(s-n),c=-a/2,h=n0){if(w===s)break;w+=h,c-=a}}return d}}class De{constructor(){this.decoder=new Re}decode(t,e=null){let r,n;if(null!=e&&e.has(S.PURE_BARCODE)){const e=De.extractPureBits(t.getBlackMatrix());r=this.decoder.decode(e),n=De.NO_POINTS}else{const e=new Ne(t.getBlackMatrix()).detect();r=this.decoder.decode(e.getBits()),n=e.getPoints()}const i=r.getRawBytes(),s=new G(r.getText(),i,8*i.length,n,z.DATA_MATRIX,w.currentTimeMillis()),o=r.getByteSegments();null!=o&&s.putMetadata(it.BYTE_SEGMENTS,o);const a=r.getECLevel();return null!=a&&s.putMetadata(it.ERROR_CORRECTION_LEVEL,a),s}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new M;const n=this.moduleSize(e,t);let i=e[1];const s=r[1];let o=e[0];const a=(r[0]-o+1)/n,l=(s-i+1)/n;if(a<=0||l<=0)throw new M;const c=n/2;i+=c,o+=c;const h=new b(a,l);for(let u=0;u=be.FOR_BITS.size)throw new u;return be.FOR_BITS.get(t)}}be.FOR_BITS=new Map,be.FOR_VALUE=new Map,be.L=new be(q.L,"L",1),be.M=new be(q.M,"M",0),be.Q=new be(q.Q,"Q",3),be.H=new be(q.H,"H",2);class Me{constructor(t){this.errorCorrectionLevel=be.forBits(t>>3&3),this.dataMask=7&t}static numBitsDiffering(t,e){return E.bitCount(t^e)}static decodeFormatInformation(t,e){const r=Me.doDecodeFormatInformation(t,e);return null!==r?r:Me.doDecodeFormatInformation(t^Me.FORMAT_INFO_MASK_QR,e^Me.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(t,e){let r=Number.MAX_SAFE_INTEGER,n=0;for(const i of Me.FORMAT_INFO_DECODE_LOOKUP){const s=i[0];if(s===t||s===e)return new Me(i[1]);let o=Me.numBitsDiffering(t,s);o40)throw new u;return ve.VERSIONS[t-1]}static decodeVersionInformation(t){let e=Number.MAX_SAFE_INTEGER,r=0;for(let n=0;n6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e}toString(){return""+this.versionNumber}}ve.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),ve.VERSIONS=[new ve(1,new Int32Array(0),new Pe(7,new Be(1,19)),new Pe(10,new Be(1,16)),new Pe(13,new Be(1,13)),new Pe(17,new Be(1,9))),new ve(2,Int32Array.from([6,18]),new Pe(10,new Be(1,34)),new Pe(16,new Be(1,28)),new Pe(22,new Be(1,22)),new Pe(28,new Be(1,16))),new ve(3,Int32Array.from([6,22]),new Pe(15,new Be(1,55)),new Pe(26,new Be(1,44)),new Pe(18,new Be(2,17)),new Pe(22,new Be(2,13))),new ve(4,Int32Array.from([6,26]),new Pe(20,new Be(1,80)),new Pe(18,new Be(2,32)),new Pe(26,new Be(2,24)),new Pe(16,new Be(4,9))),new ve(5,Int32Array.from([6,30]),new Pe(26,new Be(1,108)),new Pe(24,new Be(2,43)),new Pe(18,new Be(2,15),new Be(2,16)),new Pe(22,new Be(2,11),new Be(2,12))),new ve(6,Int32Array.from([6,34]),new Pe(18,new Be(2,68)),new Pe(16,new Be(4,27)),new Pe(24,new Be(4,19)),new Pe(28,new Be(4,15))),new ve(7,Int32Array.from([6,22,38]),new Pe(20,new Be(2,78)),new Pe(18,new Be(4,31)),new Pe(18,new Be(2,14),new Be(4,15)),new Pe(26,new Be(4,13),new Be(1,14))),new ve(8,Int32Array.from([6,24,42]),new Pe(24,new Be(2,97)),new Pe(22,new Be(2,38),new Be(2,39)),new Pe(22,new Be(4,18),new Be(2,19)),new Pe(26,new Be(4,14),new Be(2,15))),new ve(9,Int32Array.from([6,26,46]),new Pe(30,new Be(2,116)),new Pe(22,new Be(3,36),new Be(2,37)),new Pe(20,new Be(4,16),new Be(4,17)),new Pe(24,new Be(4,12),new Be(4,13))),new ve(10,Int32Array.from([6,28,50]),new Pe(18,new Be(2,68),new Be(2,69)),new Pe(26,new Be(4,43),new Be(1,44)),new Pe(24,new Be(6,19),new Be(2,20)),new Pe(28,new Be(6,15),new Be(2,16))),new ve(11,Int32Array.from([6,30,54]),new Pe(20,new Be(4,81)),new Pe(30,new Be(1,50),new Be(4,51)),new Pe(28,new Be(4,22),new Be(4,23)),new Pe(24,new Be(3,12),new Be(8,13))),new ve(12,Int32Array.from([6,32,58]),new Pe(24,new Be(2,92),new Be(2,93)),new Pe(22,new Be(6,36),new Be(2,37)),new Pe(26,new Be(4,20),new Be(6,21)),new Pe(28,new Be(7,14),new Be(4,15))),new ve(13,Int32Array.from([6,34,62]),new Pe(26,new Be(4,107)),new Pe(22,new Be(8,37),new Be(1,38)),new Pe(24,new Be(8,20),new Be(4,21)),new Pe(22,new Be(12,11),new Be(4,12))),new ve(14,Int32Array.from([6,26,46,66]),new Pe(30,new Be(3,115),new Be(1,116)),new Pe(24,new Be(4,40),new Be(5,41)),new Pe(20,new Be(11,16),new Be(5,17)),new Pe(24,new Be(11,12),new Be(5,13))),new ve(15,Int32Array.from([6,26,48,70]),new Pe(22,new Be(5,87),new Be(1,88)),new Pe(24,new Be(5,41),new Be(5,42)),new Pe(30,new Be(5,24),new Be(7,25)),new Pe(24,new Be(11,12),new Be(7,13))),new ve(16,Int32Array.from([6,26,50,74]),new Pe(24,new Be(5,98),new Be(1,99)),new Pe(28,new Be(7,45),new Be(3,46)),new Pe(24,new Be(15,19),new Be(2,20)),new Pe(30,new Be(3,15),new Be(13,16))),new ve(17,Int32Array.from([6,30,54,78]),new Pe(28,new Be(1,107),new Be(5,108)),new Pe(28,new Be(10,46),new Be(1,47)),new Pe(28,new Be(1,22),new Be(15,23)),new Pe(28,new Be(2,14),new Be(17,15))),new ve(18,Int32Array.from([6,30,56,82]),new Pe(30,new Be(5,120),new Be(1,121)),new Pe(26,new Be(9,43),new Be(4,44)),new Pe(28,new Be(17,22),new Be(1,23)),new Pe(28,new Be(2,14),new Be(19,15))),new ve(19,Int32Array.from([6,30,58,86]),new Pe(28,new Be(3,113),new Be(4,114)),new Pe(26,new Be(3,44),new Be(11,45)),new Pe(26,new Be(17,21),new Be(4,22)),new Pe(26,new Be(9,13),new Be(16,14))),new ve(20,Int32Array.from([6,34,62,90]),new Pe(28,new Be(3,107),new Be(5,108)),new Pe(26,new Be(3,41),new Be(13,42)),new Pe(30,new Be(15,24),new Be(5,25)),new Pe(28,new Be(15,15),new Be(10,16))),new ve(21,Int32Array.from([6,28,50,72,94]),new Pe(28,new Be(4,116),new Be(4,117)),new Pe(26,new Be(17,42)),new Pe(28,new Be(17,22),new Be(6,23)),new Pe(30,new Be(19,16),new Be(6,17))),new ve(22,Int32Array.from([6,26,50,74,98]),new Pe(28,new Be(2,111),new Be(7,112)),new Pe(28,new Be(17,46)),new Pe(30,new Be(7,24),new Be(16,25)),new Pe(24,new Be(34,13))),new ve(23,Int32Array.from([6,30,54,78,102]),new Pe(30,new Be(4,121),new Be(5,122)),new Pe(28,new Be(4,47),new Be(14,48)),new Pe(30,new Be(11,24),new Be(14,25)),new Pe(30,new Be(16,15),new Be(14,16))),new ve(24,Int32Array.from([6,28,54,80,106]),new Pe(30,new Be(6,117),new Be(4,118)),new Pe(28,new Be(6,45),new Be(14,46)),new Pe(30,new Be(11,24),new Be(16,25)),new Pe(30,new Be(30,16),new Be(2,17))),new ve(25,Int32Array.from([6,32,58,84,110]),new Pe(26,new Be(8,106),new Be(4,107)),new Pe(28,new Be(8,47),new Be(13,48)),new Pe(30,new Be(7,24),new Be(22,25)),new Pe(30,new Be(22,15),new Be(13,16))),new ve(26,Int32Array.from([6,30,58,86,114]),new Pe(28,new Be(10,114),new Be(2,115)),new Pe(28,new Be(19,46),new Be(4,47)),new Pe(28,new Be(28,22),new Be(6,23)),new Pe(30,new Be(33,16),new Be(4,17))),new ve(27,Int32Array.from([6,34,62,90,118]),new Pe(30,new Be(8,122),new Be(4,123)),new Pe(28,new Be(22,45),new Be(3,46)),new Pe(30,new Be(8,23),new Be(26,24)),new Pe(30,new Be(12,15),new Be(28,16))),new ve(28,Int32Array.from([6,26,50,74,98,122]),new Pe(30,new Be(3,117),new Be(10,118)),new Pe(28,new Be(3,45),new Be(23,46)),new Pe(30,new Be(4,24),new Be(31,25)),new Pe(30,new Be(11,15),new Be(31,16))),new ve(29,Int32Array.from([6,30,54,78,102,126]),new Pe(30,new Be(7,116),new Be(7,117)),new Pe(28,new Be(21,45),new Be(7,46)),new Pe(30,new Be(1,23),new Be(37,24)),new Pe(30,new Be(19,15),new Be(26,16))),new ve(30,Int32Array.from([6,26,52,78,104,130]),new Pe(30,new Be(5,115),new Be(10,116)),new Pe(28,new Be(19,47),new Be(10,48)),new Pe(30,new Be(15,24),new Be(25,25)),new Pe(30,new Be(23,15),new Be(25,16))),new ve(31,Int32Array.from([6,30,56,82,108,134]),new Pe(30,new Be(13,115),new Be(3,116)),new Pe(28,new Be(2,46),new Be(29,47)),new Pe(30,new Be(42,24),new Be(1,25)),new Pe(30,new Be(23,15),new Be(28,16))),new ve(32,Int32Array.from([6,34,60,86,112,138]),new Pe(30,new Be(17,115)),new Pe(28,new Be(10,46),new Be(23,47)),new Pe(30,new Be(10,24),new Be(35,25)),new Pe(30,new Be(19,15),new Be(35,16))),new ve(33,Int32Array.from([6,30,58,86,114,142]),new Pe(30,new Be(17,115),new Be(1,116)),new Pe(28,new Be(14,46),new Be(21,47)),new Pe(30,new Be(29,24),new Be(19,25)),new Pe(30,new Be(11,15),new Be(46,16))),new ve(34,Int32Array.from([6,34,62,90,118,146]),new Pe(30,new Be(13,115),new Be(6,116)),new Pe(28,new Be(14,46),new Be(23,47)),new Pe(30,new Be(44,24),new Be(7,25)),new Pe(30,new Be(59,16),new Be(1,17))),new ve(35,Int32Array.from([6,30,54,78,102,126,150]),new Pe(30,new Be(12,121),new Be(7,122)),new Pe(28,new Be(12,47),new Be(26,48)),new Pe(30,new Be(39,24),new Be(14,25)),new Pe(30,new Be(22,15),new Be(41,16))),new ve(36,Int32Array.from([6,24,50,76,102,128,154]),new Pe(30,new Be(6,121),new Be(14,122)),new Pe(28,new Be(6,47),new Be(34,48)),new Pe(30,new Be(46,24),new Be(10,25)),new Pe(30,new Be(2,15),new Be(64,16))),new ve(37,Int32Array.from([6,28,54,80,106,132,158]),new Pe(30,new Be(17,122),new Be(4,123)),new Pe(28,new Be(29,46),new Be(14,47)),new Pe(30,new Be(49,24),new Be(10,25)),new Pe(30,new Be(24,15),new Be(46,16))),new ve(38,Int32Array.from([6,32,58,84,110,136,162]),new Pe(30,new Be(4,122),new Be(18,123)),new Pe(28,new Be(13,46),new Be(32,47)),new Pe(30,new Be(48,24),new Be(14,25)),new Pe(30,new Be(42,15),new Be(32,16))),new ve(39,Int32Array.from([6,26,54,82,110,138,166]),new Pe(30,new Be(20,117),new Be(4,118)),new Pe(28,new Be(40,47),new Be(7,48)),new Pe(30,new Be(43,24),new Be(22,25)),new Pe(30,new Be(10,15),new Be(67,16))),new ve(40,Int32Array.from([6,30,58,86,114,142,170]),new Pe(30,new Be(19,118),new Be(6,119)),new Pe(28,new Be(18,47),new Be(31,48)),new Pe(30,new Be(34,24),new Be(34,25)),new Pe(30,new Be(20,15),new Be(61,16)))],(rt=Q||(Q={}))[rt.DATA_MASK_000=0]="DATA_MASK_000",rt[rt.DATA_MASK_001=1]="DATA_MASK_001",rt[rt.DATA_MASK_010=2]="DATA_MASK_010",rt[rt.DATA_MASK_011=3]="DATA_MASK_011",rt[rt.DATA_MASK_100=4]="DATA_MASK_100",rt[rt.DATA_MASK_101=5]="DATA_MASK_101",rt[rt.DATA_MASK_110=6]="DATA_MASK_110",rt[rt.DATA_MASK_111=7]="DATA_MASK_111";class Le{constructor(t,e){this.value=t,this.isMasked=e}unmaskBitMatrix(t,e){for(let r=0;r0==(t+e&1)))],[Q.DATA_MASK_001,new Le(Q.DATA_MASK_001,((t,e)=>0==(1&t)))],[Q.DATA_MASK_010,new Le(Q.DATA_MASK_010,((t,e)=>e%3==0))],[Q.DATA_MASK_011,new Le(Q.DATA_MASK_011,((t,e)=>(t+e)%3==0))],[Q.DATA_MASK_100,new Le(Q.DATA_MASK_100,((t,e)=>0==(Math.floor(t/2)+Math.floor(e/3)&1)))],[Q.DATA_MASK_101,new Le(Q.DATA_MASK_101,((t,e)=>t*e%6==0))],[Q.DATA_MASK_110,new Le(Q.DATA_MASK_110,((t,e)=>t*e%6<3))],[Q.DATA_MASK_111,new Le(Q.DATA_MASK_111,((t,e)=>0==(t+e+t*e%3&1)))]]);class Fe{constructor(t){const e=t.getHeight();if(e<21||1!=(3&e))throw new T;this.bitMatrix=t}readFormatInformation(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;let t=0;for(let i=0;i<6;i++)t=this.copyBit(i,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(let i=5;i>=0;i--)t=this.copyBit(8,i,t);const e=this.bitMatrix.getHeight();let r=0;const n=e-7;for(let i=e-1;i>=n;i--)r=this.copyBit(8,i,r);for(let i=e-8;i=0;s--)for(let e=t-9;e>=n;e--)r=this.copyBit(e,s,r);let i=ve.decodeVersionInformation(r);if(null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;r=0;for(let s=5;s>=0;s--)for(let e=t-9;e>=n;e--)r=this.copyBit(s,e,r);if(i=ve.decodeVersionInformation(r),null!==i&&i.getDimensionForVersion()===t)return this.parsedVersion=i,i;throw new T}copyBit(t,e,r){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?r<<1|1:r<<1}readCodewords(){const t=this.readFormatInformation(),e=this.readVersion(),r=Le.values.get(t.getDataMask()),n=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,n);const i=e.buildFunctionPattern();let s=!0;const o=new Uint8Array(e.getTotalCodewords());let a=0,l=0,c=0;for(let h=n-1;h>0;h-=2){6===h&&h--;for(let t=0;t=0&&o[c].codewords.length!==l;)c--;c++;const h=l-n.getECCodewordsPerBlock();let d=0;for(let u=0;ut.available())throw new T;const n=new Uint8Array(2*r);let i=0;for(;r>0;){const e=t.readBits(13);let s=e/96<<8&4294967295|e%96;s+=s<959?41377:42657,n[i]=s>>8&255,n[i+1]=255&s,i+=2,r--}try{e.append(N.decode(n,D.GB2312))}catch(s){throw new T(s)}}static decodeKanjiSegment(t,e,r){if(13*r>t.available())throw new T;const n=new Uint8Array(2*r);let i=0;for(;r>0;){const e=t.readBits(13);let s=e/192<<8&4294967295|e%192;s+=s<7936?33088:49472,n[i]=s>>8,n[i+1]=s,i+=2,r--}try{e.append(N.decode(n,D.SHIFT_JIS))}catch(s){throw new T(s)}}static decodeByteSegment(t,e,r,n,i,s){if(8*r>t.available())throw new T;const o=new Uint8Array(r);for(let c=0;c=Ue.ALPHANUMERIC_CHARS.length)throw new T;return Ue.ALPHANUMERIC_CHARS[t]}static decodeAlphanumericSegment(t,e,r,n){const i=e.length();for(;r>1;){if(t.available()<11)throw new T;const n=t.readBits(11);e.append(Ue.toAlphaNumericChar(Math.floor(n/45))),e.append(Ue.toAlphaNumericChar(n%45)),r-=2}if(1===r){if(t.available()<6)throw new T;e.append(Ue.toAlphaNumericChar(t.readBits(6)))}if(n)for(let s=i;s=3;){if(t.available()<10)throw new T;const n=t.readBits(10);if(n>=1e3)throw new T;e.append(Ue.toAlphaNumericChar(Math.floor(n/100))),e.append(Ue.toAlphaNumericChar(Math.floor(n/10)%10)),e.append(Ue.toAlphaNumericChar(n%10)),r-=3}if(2===r){if(t.available()<7)throw new T;const r=t.readBits(7);if(r>=100)throw new T;e.append(Ue.toAlphaNumericChar(Math.floor(r/10))),e.append(Ue.toAlphaNumericChar(r%10))}else if(1===r){if(t.available()<4)throw new T;const r=t.readBits(4);if(r>=10)throw new T;e.append(Ue.toAlphaNumericChar(r))}}static parseECIValue(t){const e=t.readBits(8);if(0==(128&e))return 127&e;if(128==(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192==(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new T}}Ue.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Ue.GB2312_SUBSET=1;class He{constructor(t){this.mirrored=t}isMirrored(){return this.mirrored}applyMirroredCorrection(t){if(!this.mirrored||null===t||t.length<3)return;const e=t[0];t[0]=t[2],t[2]=e}}class Ve{constructor(){this.rsDecoder=new dt(ct.QR_CODE_FIELD_256)}decodeBooleanArray(t,e){return this.decodeBitMatrix(b.parseFromBooleanArray(t),e)}decodeBitMatrix(t,e){const r=new Fe(t);let n=null;try{return this.decodeBitMatrixParser(r,e)}catch(i){n=i}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();const t=this.decodeBitMatrixParser(r,e);return t.setOther(new He(!0)),t}catch(i){if(null!==n)throw n;throw i}}decodeBitMatrixParser(t,e){const r=t.readVersion(),n=t.readFormatInformation().getErrorCorrectionLevel(),i=t.readCodewords(),s=ke.getDataBlocks(i,r,n);let o=0;for(const c of s)o+=c.getNumDataCodewords();const a=new Uint8Array(o);let l=0;for(const c of s){const t=c.getCodewords(),e=c.getNumDataCodewords();this.correctErrors(t,e);for(let r=0;r=r)return!1;return!0}crossCheckVertical(t,e,r,n){const i=this.image,s=i.getHeight(),o=this.crossCheckStateCount;o[0]=0,o[1]=0,o[2]=0;let a=t;for(;a>=0&&i.get(e,a)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&!i.get(e,a)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;ar)return NaN;for(;ar)return NaN;const l=o[0]+o[1]+o[2];return 5*Math.abs(l-n)>=2*n?NaN:this.foundPatternCross(o)?Xe.centerFromEnd(o,a):NaN}handlePossibleCenter(t,e,r){const n=t[0]+t[1]+t[2],i=Xe.centerFromEnd(t,r),s=this.crossCheckVertical(e,i,2*t[1],n);if(!isNaN(s)){const e=(t[0]+t[1]+t[2])/3;for(const t of this.possibleCenters)if(t.aboutEquals(e,s,i))return t.combineEstimate(s,i,e);const r=new Ge(i,s,e);this.possibleCenters.push(r),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(r)}return null}}class We extends mt{constructor(t,e,r,n){super(t,e),this.estimatedModuleSize=r,this.count=n,void 0===n&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(t,e,r){if(Math.abs(e-this.getY())<=t&&Math.abs(r-this.getX())<=t){const e=Math.abs(t-this.estimatedModuleSize);return e<=1||e<=this.estimatedModuleSize}return!1}combineEstimate(t,e,r){const n=this.count+1,i=(this.count*this.getX()+e)/n,s=(this.count*this.getY()+t)/n,o=(this.count*this.estimatedModuleSize+r)/n;return new We(i,s,o,n)}}class ze{constructor(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class Ye{constructor(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(t){const e=null!=t&&void 0!==t.get(S.TRY_HARDER),r=null!=t&&void 0!==t.get(S.PURE_BARCODE),n=this.image,i=n.getHeight(),s=n.getWidth();let o=Math.floor(3*i/(4*Ye.MAX_MODULES));(ol[2]&&(h+=t-l[2]-o,e=s-1)}t=0,l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0}else l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,t=3;else l[++t]++;else l[t]++;Ye.foundPatternCross(l)&&!0===this.handlePossibleCenter(l,h,s,r)&&(o=l[0],this.hasSkipped&&(a=this.haveMultiplyConfirmedCenters()))}const c=this.selectBestPatterns();return mt.orderBestPatterns(c),new ze(c)}static centerFromEnd(t,e){return e-t[4]-t[3]-t[2]/2}static foundPatternCross(t){let e=0;for(let i=0;i<5;i++){const r=t[i];if(0===r)return!1;e+=r}if(e<7)return!1;const r=e/7,n=r/2;return Math.abs(r-t[0])=s&&e>=s&&o.get(e-s,t-s);)i[2]++,s++;if(t=s&&e>=s&&!o.get(e-s,t-s)&&i[1]<=r;)i[1]++,s++;if(tr)return!1;for(;t>=s&&e>=s&&o.get(e-s,t-s)&&i[0]<=r;)i[0]++,s++;if(i[0]>r)return!1;const a=o.getHeight(),l=o.getWidth();for(s=1;t+s=a||e+s>=l)return!1;for(;t+s=a||e+s>=l||i[3]>=r)return!1;for(;t+s=r)return!1;const c=i[0]+i[1]+i[2]+i[3]+i[4];return Math.abs(c-n)<2*n&&Ye.foundPatternCross(i)}crossCheckVertical(t,e,r,n){const i=this.image,s=i.getHeight(),o=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(e,a);)o[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(e,a)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&i.get(e,a)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;a=r)return NaN;for(;a=r)return NaN;const l=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(l-n)>=2*n?NaN:Ye.foundPatternCross(o)?Ye.centerFromEnd(o,a):NaN}crossCheckHorizontal(t,e,r,n){const i=this.image,s=i.getWidth(),o=this.getCrossCheckStateCount();let a=t;for(;a>=0&&i.get(a,e);)o[2]++,a--;if(a<0)return NaN;for(;a>=0&&!i.get(a,e)&&o[1]<=r;)o[1]++,a--;if(a<0||o[1]>r)return NaN;for(;a>=0&&i.get(a,e)&&o[0]<=r;)o[0]++,a--;if(o[0]>r)return NaN;for(a=t+1;a=r)return NaN;for(;a=r)return NaN;const l=o[0]+o[1]+o[2]+o[3]+o[4];return 5*Math.abs(l-n)>=n?NaN:Ye.foundPatternCross(o)?Ye.centerFromEnd(o,a):NaN}handlePossibleCenter(t,e,r,n){const i=t[0]+t[1]+t[2]+t[3]+t[4];let s=Ye.centerFromEnd(t,r),o=this.crossCheckVertical(e,Math.floor(s),t[2],i);if(!isNaN(o)&&(s=this.crossCheckHorizontal(Math.floor(s),Math.floor(o),t[2],i),!isNaN(s)&&(!n||this.crossCheckDiagonal(Math.floor(o),Math.floor(s),t[2],i)))){const t=i/7;let e=!1;const r=this.possibleCenters;for(let n=0,i=r.length;n=Ye.CENTER_QUORUM){if(null!=t)return this.hasSkipped=!0,Math.floor((Math.abs(t.getX()-e.getX())-Math.abs(t.getY()-e.getY()))/2);t=e}return 0}haveMultiplyConfirmedCenters(){let t=0,e=0;const r=this.possibleCenters.length;for(const s of this.possibleCenters)s.getCount()>=Ye.CENTER_QUORUM&&(t++,e+=s.getEstimatedModuleSize());if(t<3)return!1;const n=e/r;let i=0;for(const s of this.possibleCenters)i+=Math.abs(s.getEstimatedModuleSize()-n);return i<=.05*e}selectBestPatterns(){const t=this.possibleCenters.length;if(t<3)throw new M;const e=this.possibleCenters;let r;if(t>3){let n=0,i=0;for(const t of this.possibleCenters){const e=t.getEstimatedModuleSize();n+=e,i+=e*e}r=n/t;let s=Math.sqrt(i/t-r*r);e.sort(((t,e)=>{const n=Math.abs(e.getEstimatedModuleSize()-r),i=Math.abs(t.getEstimatedModuleSize()-r);return ni?1:0}));const o=Math.max(.2*r,s);for(let t=0;t3;t++){const n=e[t];Math.abs(n.getEstimatedModuleSize()-r)>o&&(e.splice(t,1),t--)}}if(e.length>3){let t=0;for(const r of e)t+=r.getEstimatedModuleSize();r=t/e.length,e.sort(((t,e)=>{if(e.getCount()===t.getCount()){const n=Math.abs(e.getEstimatedModuleSize()-r),i=Math.abs(t.getEstimatedModuleSize()-r);return ni?-1:0}return e.getCount()-t.getCount()})),e.splice(3)}return[e[0],e[1],e[2]]}}Ye.CENTER_QUORUM=2,Ye.MIN_SKIP=3,Ye.MAX_MODULES=57;class Ze{constructor(t){this.image=t}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(t){this.resultPointCallback=null==t?null:t.get(S.NEED_RESULT_POINT_CALLBACK);const e=new Ye(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)}processFinderPatternInfo(t){const e=t.getTopLeft(),r=t.getTopRight(),n=t.getBottomLeft(),i=this.calculateModuleSize(e,r,n);if(i<1)throw new M("No pattern found in proccess finder.");const s=Ze.computeDimension(e,r,n,i),o=ve.getProvisionalVersionForDimension(s),a=o.getDimensionForVersion()-7;let l=null;if(o.getAlignmentPatternCenters().length>0){const t=r.getX()-e.getX()+n.getX(),s=r.getY()-e.getY()+n.getY(),o=1-3/a,c=Math.floor(e.getX()+o*(t-e.getX())),h=Math.floor(e.getY()+o*(s-e.getY()));for(let e=4;e<=16;e<<=1)try{l=this.findAlignmentInRegion(i,c,h,e);break}catch(d){if(!(d instanceof M))throw d}}const c=Ze.createTransform(e,r,n,l,s),h=Ze.sampleGrid(this.image,c,s);let u;return u=null===l?[n,e,r]:[n,e,r,l],new At(h,u)}static createTransform(t,e,r,n,i){const s=i-3.5;let o,a,l,c;return null!==n?(o=n.getX(),a=n.getY(),l=s-3,c=l):(o=e.getX()-t.getX()+r.getX(),a=e.getY()-t.getY()+r.getY(),l=s,c=s),_t.quadrilateralToQuadrilateral(3.5,3.5,s,3.5,l,c,3.5,s,t.getX(),t.getY(),e.getX(),e.getY(),o,a,r.getX(),r.getY())}static sampleGrid(t,e,r){return St.getInstance().sampleGridWithTransform(t,r,r,e)}static computeDimension(t,e,r,n){const i=gt.round(mt.distance(t,e)/n),s=gt.round(mt.distance(t,r)/n);let o=Math.floor((i+s)/2)+7;switch(3&o){case 0:o++;break;case 2:o--;break;case 3:throw new M("Dimensions could be not found.")}return o}calculateModuleSize(t,e,r){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,r))/2}calculateModuleSizeOneWay(t,e){const r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14}sizeOfBlackWhiteBlackRunBothWays(t,e,r,n){let i=this.sizeOfBlackWhiteBlackRun(t,e,r,n),s=1,o=t-(r-t);o<0?(s=t/(t-o),o=0):o>=this.image.getWidth()&&(s=(this.image.getWidth()-1-t)/(o-t),o=this.image.getWidth()-1);let a=Math.floor(e-(n-e)*s);return s=1,a<0?(s=e/(e-a),a=0):a>=this.image.getHeight()&&(s=(this.image.getHeight()-1-e)/(a-e),a=this.image.getHeight()-1),o=Math.floor(t+(o-t)*s),i+=this.sizeOfBlackWhiteBlackRun(t,e,o,a),i-1}sizeOfBlackWhiteBlackRun(t,e,r,n){const i=Math.abs(n-e)>Math.abs(r-t);if(i){let i=t;t=e,e=i,i=r,r=n,n=i}const s=Math.abs(r-t),o=Math.abs(n-e);let a=-s/2;const l=t0){if(f===n)break;f+=c,a-=s}}return 2===h?gt.distance(r+l,n,t,e):NaN}findAlignmentInRegion(t,e,r,n){const i=Math.floor(n*t),s=Math.max(0,e-i),o=Math.min(this.image.getWidth()-1,e+i);if(o-s<3*t)throw new M("Alignment top exceeds estimated module size.");const a=Math.max(0,r-i),l=Math.min(this.image.getHeight()-1,r+i);if(l-a<3*t)throw new M("Alignment bottom exceeds estimated module size.");return new Xe(this.image,s,a,o-s,l-a,t,this.resultPointCallback).find()}}class Ke{constructor(){this.decoder=new Ve}getDecoder(){return this.decoder}decode(t,e){let r,n;if(null!=e&&void 0!==e.get(S.PURE_BARCODE)){const i=Ke.extractPureBits(t.getBlackMatrix());r=this.decoder.decodeBitMatrix(i,e),n=Ke.NO_POINTS}else{const i=new Ze(t.getBlackMatrix()).detect(e);r=this.decoder.decodeBitMatrix(i.getBits(),e),n=i.getPoints()}r.getOther()instanceof He&&r.getOther().applyMirroredCorrection(n);const i=new G(r.getText(),r.getRawBytes(),void 0,n,z.QR_CODE,void 0),s=r.getByteSegments();null!==s&&i.putMetadata(it.BYTE_SEGMENTS,s);const o=r.getECLevel();return null!==o&&i.putMetadata(it.ERROR_CORRECTION_LEVEL,o),r.hasStructuredAppend()&&(i.putMetadata(it.STRUCTURED_APPEND_SEQUENCE,r.getStructuredAppendSequenceNumber()),i.putMetadata(it.STRUCTURED_APPEND_PARITY,r.getStructuredAppendParity())),i}reset(){}static extractPureBits(t){const e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null===e||null===r)throw new M;const n=this.moduleSize(e,t);let i=e[1],s=r[1],o=e[0],a=r[0];if(o>=a||i>=s)throw new M;if(s-i!=a-o&&(a=o+(s-i),a>=t.getWidth()))throw new M;const l=Math.round((a-o+1)/n),c=Math.round((s-i+1)/n);if(l<=0||c<=0)throw new M;if(c!==l)throw new M;const h=Math.floor(n/2);i+=h,o+=h;const u=o+Math.floor((l-1)*n)-a;if(u>0){if(u>h)throw new M;o-=u}const d=i+Math.floor((c-1)*n)-s;if(d>0){if(d>h)throw new M;i-=d}const f=new b(l,c);for(let g=0;g0;){const o=je.findGuardPattern(t,i,--n,r,!1,s,l);if(null==o){n++;break}e=o}o[0]=new mt(e[0],n),o[1]=new mt(e[1],n),a=!0;break}}let c=n+1;if(a){let n=0,i=Int32Array.from([Math.trunc(o[0].getX()),Math.trunc(o[1].getX())]);for(;cje.SKIPPED_ROW_COUNT_MAX)break;n++}}c-=n+1,o[2]=new mt(i[0],c),o[3]=new mt(i[1],c)}return c-n0&&l++i?n-i:i-n;if(s>r)return 1/0;a+=s}return a/i}}je.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),je.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),je.MAX_AVG_VARIANCE=.42,je.MAX_INDIVIDUAL_VARIANCE=.8,je.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),je.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),je.MAX_PIXEL_DRIFT=3,je.MAX_PATTERN_DRIFT=5,je.SKIPPED_ROW_COUNT_MAX=25,je.ROW_STEP=5,je.BARCODE_MIN_HEIGHT=10;class Je{constructor(t,e){if(0===e.length)throw new u;this.field=t;let r=e.length;if(r>1&&0===e[0]){let t=1;for(;tr.length){let t=e;e=r,r=t}let n=new Int32Array(r.length),i=r.length-e.length;w.arraycopy(r,0,n,0,i);for(let s=i;s=0;e--){let r=this.getCoefficient(e);0!==r&&(r<0?(t.append(" - "),r=-r):t.length()>0&&t.append(" + "),0!==e&&1===r||t.append(r),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()}}class $e{add(t,e){return(t+e)%this.modulus}subtract(t,e){return(this.modulus+t-e)%this.modulus}exp(t){return this.expTable[t]}log(t){if(0===t)throw new u;return this.logTable[t]}inverse(t){if(0===t)throw new lt;return this.expTable[this.modulus-this.logTable[t]-1]}multiply(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]}getSize(){return this.modulus}equals(t){return t===this}}class tr extends $e{constructor(t,e){super(),this.modulus=t,this.expTable=new Int32Array(t),this.logTable=new Int32Array(t);let r=1;for(let n=0;n0;f--){let t=n.evaluateAt(this.field.exp(f));i[e-f]=t,0!==t&&(s=!0)}if(!s)return 0;let o=this.field.getOne();if(null!=r)for(const f of r){let e=this.field.exp(t.length-1-f),r=new Je(this.field,new Int32Array([this.field.subtract(0,e),1]));o=o.multiply(r)}let a=new Je(this.field,i),l=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),a,e),c=l[0],h=l[1],u=this.findErrorLocations(c),d=this.findErrorMagnitudes(h,c,u);for(let g=0;g=Math.round(r/2);){let t=n,e=s;if(n=i,s=o,n.isZero())throw f.getChecksumInstance();i=t;let r=this.field.getZero(),a=n.getCoefficient(n.getDegree()),l=this.field.inverse(a);for(;i.getDegree()>=n.getDegree()&&!i.isZero();){let t=i.getDegree()-n.getDegree(),e=this.field.multiply(i.getCoefficient(i.getDegree()),l);r=r.add(this.field.buildMonomial(t,e)),i=i.subtract(n.multiplyByMonomial(t,e))}o=r.multiply(s).subtract(e).negative()}let a=o.getCoefficient(0);if(0===a)throw f.getChecksumInstance();let l=this.field.inverse(a);return[o.multiply(l),i.multiply(l)]}findErrorLocations(t){let e=t.getDegree(),r=new Int32Array(e),n=0;for(let i=1;i0){let e=r?this.topLeft:this.topRight,i=Math.trunc(e.getY()-t);i<0&&(i=0);let o=new mt(e.getX(),i);r?n=o:s=o}if(e>0){let t=r?this.bottomLeft:this.bottomRight,n=Math.trunc(t.getY()+e);n>=this.image.getHeight()&&(n=this.image.getHeight()-1);let s=new mt(t.getX(),n);r?i=s:o=s}return new rr(this.image,n,i,s,o)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class nr{constructor(t,e,r,n){this.columnCount=t,this.errorCorrectionLevel=n,this.rowCountUpperPart=e,this.rowCountLowerPart=r,this.rowCount=e+r}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class ir{constructor(){this.buffer=""}static form(t,e){let r=-1;function n(t,n,i,s,o,a){if("%%"===t)return"%";if(void 0===e[++r])return;t=s?parseInt(s.substr(1)):void 0;let l,c=o?parseInt(o.substr(1)):void 0;switch(a){case"s":l=e[r];break;case"c":l=e[r][0];break;case"f":l=parseFloat(e[r]).toFixed(t);break;case"p":l=parseFloat(e[r]).toPrecision(t);break;case"e":l=parseFloat(e[r]).toExponential(t);break;case"x":l=parseInt(e[r]).toString(c||16);break;case"d":l=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0)}l="object"==typeof l?JSON.stringify(l):(+l).toString(c);let h=parseInt(i),u=i&&i[0]+""=="0"?"0":" ";for(;l.length=0&&(e=this.codewords[n],null!=e))return e;if(n=this.imageRowToCodewordIndex(t)+r,nr,getValue:()=>n};i.getValue()>t?(t=i.getValue(),e=[],e.push(i.getKey())):i.getValue()===t&&e.push(i.getKey())}return qe.toIntArray(e)}getConfidence(t){return this.values.get(t)}}class ar extends sr{constructor(t,e){super(t),this._isLeft=e}setRowNumbers(){for(let t of this.getCodewords())null!=t&&t.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(t){let e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);let r=this.getBoundingBox(),n=this._isLeft?r.getTopLeft():r.getTopRight(),i=this._isLeft?r.getBottomLeft():r.getBottomRight(),s=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(i.getY())),a=-1,l=1,c=0;for(let h=s;h=t.getRowCount()||n>h)e[h]=null;else{let t;t=l>2?(l-2)*n:n;let i=t>=h;for(let r=1;r<=t&&!i;r++)i=null!=e[h-r];i?e[h]=null:(a=r.getRowNumber(),c=1)}}}getRowHeights(){let t=this.getBarcodeMetadata();if(null==t)return null;this.adjustIncompleteIndicatorColumnRowNumbers(t);let e=new Int32Array(t.getRowCount());for(let r of this.getCodewords())if(null!=r){let t=r.getRowNumber();if(t>=e.length)continue;e[t]++}return e}adjustIncompleteIndicatorColumnRowNumbers(t){let e=this.getBoundingBox(),r=this._isLeft?e.getTopLeft():e.getTopRight(),n=this._isLeft?e.getBottomLeft():e.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),s=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.getCodewords(),a=-1;for(let l=i;l=t.getRowCount()?o[l]=null:a=e.getRowNumber())}}getBarcodeMetadata(){let t=this.getCodewords(),e=new or,r=new or,n=new or,i=new or;for(let o of t){if(null==o)continue;o.setRowNumberAsRowIndicatorColumn();let t=o.getValue()%30,s=o.getRowNumber();switch(this._isLeft||(s+=2),s%3){case 0:r.setValue(3*t+1);break;case 1:i.setValue(t/3),n.setValue(t%3);break;case 2:e.setValue(t+1)}}if(0===e.getValue().length||0===r.getValue().length||0===n.getValue().length||0===i.getValue().length||e.getValue()[0]<1||r.getValue()[0]+n.getValue()[0]qe.MAX_ROWS_IN_BARCODE)return null;let s=new nr(e.getValue()[0],r.getValue()[0],n.getValue()[0],i.getValue()[0]);return this.removeIncorrectCodewords(t,s),s}removeIncorrectCodewords(t,e){for(let r=0;re.getRowCount())t[r]=null;else switch(this._isLeft||(s+=2),s%3){case 0:3*i+1!==e.getRowCountUpperPart()&&(t[r]=null);break;case 1:Math.trunc(i/3)===e.getErrorCorrectionLevel()&&i%3===e.getRowCountLowerPart()||(t[r]=null);break;case 2:i+1!==e.getColumnCount()&&(t[r]=null)}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+"\n"+super.toString()}}class lr{constructor(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let t,e=qe.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e0&&i0&&(o[0]=r[e-1],o[4]=i[e-1],o[5]=s[e-1]),e>1&&(o[8]=r[e-2],o[10]=i[e-2],o[11]=s[e-2]),e>=1;r=1&e,hr.RATIOS_TABLE[t]||(hr.RATIOS_TABLE[t]=new Array(qe.BARS_IN_MODULE)),hr.RATIOS_TABLE[t][qe.BARS_IN_MODULE-n-1]=Math.fround(i/qe.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(t){let e=hr.getDecodedCodewordValue(hr.sampleBitCounts(t));return-1!==e?e:hr.getClosestDecodedValue(t)}static sampleBitCounts(t){let e=gt.sum(t),r=new Int32Array(qe.BARS_IN_MODULE),n=0,i=0;for(let s=0;s1)for(let s=0;s=n)break}tnew Array(qe.BARS_IN_MODULE)));class ur{constructor(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(t){this.segmentIndex=t}getFileId(){return this.fileId}setFileId(t){this.fileId=t}getOptionalData(){return this.optionalData}setOptionalData(t){this.optionalData=t}isLastSegment(){return this.lastSegment}setLastSegment(t){this.lastSegment=t}getSegmentCount(){return this.segmentCount}setSegmentCount(t){this.segmentCount=t}getSender(){return this.sender||null}setSender(t){this.sender=t}getAddressee(){return this.addressee||null}setAddressee(t){this.addressee=t}getFileName(){return this.fileName}setFileName(t){this.fileName=t}getFileSize(){return this.fileSize}setFileSize(t){this.fileSize=t}getChecksum(){return this.checksum}setChecksum(t){this.checksum=t}getTimestamp(){return this.timestamp}setTimestamp(t){this.timestamp=t}}class dr{static parseLong(t,e){return parseInt(t,e)}}class fr extends c{}fr.kind="NullPointerException";class gr{writeBytes(t){this.writeBytesOffset(t,0,t.length)}writeBytesOffset(t,e,r){if(null==t)throw new fr;if(e<0||e>t.length||r<0||e+r>t.length||e+r<0)throw new m;if(0!==r)for(let n=0;n0&&this.grow(t)}grow(t){let e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new wr;e=E.MAX_VALUE}this.buf=C.copyOfUint8Array(this.buf,e)}write(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1}writeBytesOffset(t,e,r){if(e<0||e>t.length||r<0||e+r-t.length>0)throw new m;this.ensureCapacity(this.count+r),w.arraycopy(t,e,this.buf,this.count,r),this.count+=r}writeTo(t){t.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return C.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(t){return t?"string"==typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(t){return new String(this.buf).toString()}toString_number(t){return new String(this.buf).toString()}close(){}}function Ar(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==Y)return Y.BigInt||null;if("undefined"!=typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}let Cr;function Er(t){if(void 0===Cr&&(Cr=Ar()),null===Cr)throw new Error("BigInt is not supported!");return Cr(t)}function pr(){let t=[];t[0]=Er(1);let e=Er(900);t[1]=e;for(let r=2;r<16;r++)t[r]=t[r-1]*e;return t}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(J||(J={}));class _r{static decode(t,e){let r=new O(""),n=y.ISO8859_1;r.enableDecoding(n);let i=1,s=t[i++],o=new ur;for(;it[0])throw T.getFormatInstance();let n=new Int32Array(_r.NUMBER_OF_SEQUENCE_CODEWORDS);for(let o=0;o<_r.NUMBER_OF_SEQUENCE_CODEWORDS;o++,e++)n[o]=t[e];r.setSegmentIndex(E.parseInt(_r.decodeBase900toBase10(n,_r.NUMBER_OF_SEQUENCE_CODEWORDS)));let i=new O;e=_r.textCompaction(t,e,i),r.setFileId(i.toString());let s=-1;for(t[e]===_r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=e+1);e0){for(let t=0;t<6;++t)s.write(Number(Er(a)>>Er(8*(5-t))));a=0,o=0}}n===e[0]&&r<_r.TEXT_COMPACTION_MODE_LATCH&&(t[o++]=r);for(let e=0;e0){for(let t=0;t<6;++t)s.write(Number(Er(a)>>Er(8*(5-t))));a=0,o=0}}}return i.append(N.decode(s.toByteArray(),r)),n}static numericCompaction(t,e,r){let n=0,i=!1,s=new Int32Array(_r.MAX_NUMERIC_CODEWORDS);for(;e0&&(r.append(_r.decodeBase900toBase10(s,n)),n=0)}return e}static decodeBase900toBase10(t,e){let r=Er(0);for(let i=0;i@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",_r.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",_r.EXP900=Ar()?pr():[],_r.NUMBER_OF_SEQUENCE_CODEWORDS=2;class Ir{constructor(){}static decode(t,e,r,n,i,s,o){let a,l=new rr(t,e,r,n,i),c=null,h=null;for(let f=!0;;f=!1){if(null!=e&&(c=Ir.getRowIndicatorColumn(t,l,e,!0,s,o)),null!=n&&(h=Ir.getRowIndicatorColumn(t,l,n,!1,s,o)),a=Ir.merge(c,h),null==a)throw M.getNotFoundInstance();let r=a.getBoundingBox();if(!f||null==r||!(r.getMinY()l.getMaxY()))break;l=r}a.setBoundingBox(l);let u=a.getBarcodeColumnCount()+1;a.setDetectionResultColumn(0,c),a.setDetectionResultColumn(u,h);let d=null!=c;for(let f=1;f<=u;f++){let e,r=d?f:u-f;if(void 0!==a.getDetectionResultColumn(r))continue;e=0===r||r===u?new ar(l,0===r):new sr(l),a.setDetectionResultColumn(r,e);let n=-1,i=n;for(let c=l.getMinY();c<=l.getMaxY();c++){if(n=Ir.getStartColumn(a,r,c,d),n<0||n>l.getMaxX()){if(-1===i)continue;n=i}let h=Ir.detectCodeword(t,l.getMinX(),l.getMaxX(),d,n,c,s,o);null!=h&&(e.setCodeword(c,h),i=n,s=Math.min(s,h.getWidth()),o=Math.max(o,h.getWidth()))}}return Ir.createDecoderResult(a)}static merge(t,e){if(null==t&&null==e)return null;let r=Ir.getBarcodeMetadata(t,e);if(null==r)return null;let n=rr.merge(Ir.adjustBoundingBox(t),Ir.adjustBoundingBox(e));return new lr(r,n)}static adjustBoundingBox(t){if(null==t)return null;let e=t.getRowHeights();if(null==e)return null;let r=Ir.getMax(e),n=0;for(let o of e)if(n+=r-o,o>0)break;let i=t.getCodewords();for(let o=0;n>0&&null==i[o];o++)n--;let s=0;for(let o=e.length-1;o>=0&&(s+=r-e[o],!(e[o]>0));o--);for(let o=i.length-1;s>0&&null==i[o];o--)s--;return t.getBoundingBox().addMissingRows(n,s,t.isLeft())}static getMax(t){let e=-1;for(let r of t)e=Math.max(e,r);return e}static getBarcodeMetadata(t,e){let r,n;return null==t||null==(r=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(n=e.getBarcodeMetadata())?r:r.getColumnCount()!==n.getColumnCount()&&r.getErrorCorrectionLevel()!==n.getErrorCorrectionLevel()&&r.getRowCount()!==n.getRowCount()?null:r}static getRowIndicatorColumn(t,e,r,n,i,s){let o=new ar(e,n);for(let a=0;a<2;a++){let l=0===a?1:-1,c=Math.trunc(Math.trunc(r.getX()));for(let a=Math.trunc(Math.trunc(r.getY()));a<=e.getMaxY()&&a>=e.getMinY();a+=l){let e=Ir.detectCodeword(t,0,t.getWidth(),n,c,a,i,s);null!=e&&(o.setCodeword(a,e),c=n?e.getStartX():e.getEndX())}}return o}static adjustCodewordCount(t,e){let r=e[0][1],n=r.getValue(),i=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-Ir.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===n.length){if(i<1||i>qe.MAX_CODEWORDS_IN_BARCODE)throw M.getNotFoundInstance();r.setValue(i)}else n[0]!==i&&r.setValue(i)}static createDecoderResult(t){let e=Ir.createBarcodeMatrix(t);Ir.adjustCodewordCount(t,e);let r=new Array,n=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),i=[],s=new Array;for(let a=0;a0;){for(let t=0;tnew Array(t.getBarcodeColumnCount()+2)));for(let n=0;n=0){if(n>=e.length)continue;e[n][r].setValue(t.getValue())}}r++}return e}static isValidBarcodeColumn(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1}static getStartColumn(t,e,r,n){let i=n?1:-1,s=null;if(Ir.isValidBarcodeColumn(t,e-i)&&(s=t.getDetectionResultColumn(e-i).getCodeword(r)),null!=s)return n?s.getEndX():s.getStartX();if(s=t.getDetectionResultColumn(e).getCodewordNearby(r),null!=s)return n?s.getStartX():s.getEndX();if(Ir.isValidBarcodeColumn(t,e-i)&&(s=t.getDetectionResultColumn(e-i).getCodewordNearby(r)),null!=s)return n?s.getEndX():s.getStartX();let o=0;for(;Ir.isValidBarcodeColumn(t,e-i);){e-=i;for(let r of t.getDetectionResultColumn(e).getCodewords())if(null!=r)return(n?r.getEndX():r.getStartX())+i*o*(r.getEndX()-r.getStartX());o++}return n?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()}static detectCodeword(t,e,r,n,i,s,o,a){i=Ir.adjustCodewordStartColumn(t,e,r,n,i,s);let l,c=Ir.getModuleBitCount(t,e,r,n,i,s);if(null==c)return null;let h=gt.sum(c);if(n)l=i+h;else{for(let t=0;t=e)&&l=e:oIr.CODEWORD_SKEW_SIZE)return i;o+=a}a=-a,n=!n}return o}static checkCodewordSkew(t,e,r){return e-Ir.CODEWORD_SKEW_SIZE<=t&&t<=r+Ir.CODEWORD_SKEW_SIZE}static decodeCodewords(t,e,r){if(0===t.length)throw T.getFormatInstance();let n=1<r/2+Ir.MAX_ERRORS||r<0||r>Ir.MAX_EC_CODEWORDS)throw f.getChecksumInstance();return Ir.errorCorrection.decode(t,r,e)}static verifyCodewordCount(t,e){if(t.length<4)throw T.getFormatInstance();let r=t[0];if(r>t.length)throw T.getFormatInstance();if(0===r){if(!(e>=1;return e}static getCodewordBucketNumber(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)}static getCodewordBucketNumber_number(t){return Ir.getCodewordBucketNumber(Ir.getBitCountForCodeword(t))}static getCodewordBucketNumber_Int32Array(t){return(t[0]-t[2]+t[4]-t[6]+9)%9}static toString(t){let e=new ir;for(let r=0;rt))}static getMaxWidth(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMinWidth(t,e){return null==t||null==e?E.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))}static getMaxCodewordWidth(t){return Math.floor(Math.max(Math.max(Sr.getMaxWidth(t[0],t[4]),Sr.getMaxWidth(t[6],t[2])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN),Math.max(Sr.getMaxWidth(t[1],t[5]),Sr.getMaxWidth(t[7],t[3])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(t){return Math.floor(Math.min(Math.min(Sr.getMinWidth(t[0],t[4]),Sr.getMinWidth(t[6],t[2])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN),Math.min(Sr.getMinWidth(t[1],t[5]),Sr.getMinWidth(t[7],t[3])*qe.MODULES_IN_CODEWORD/qe.MODULES_IN_STOP_PATTERN)))}reset(){}}class Tr extends c{}Tr.kind="ReaderException";class yr{constructor(t,e){this.verbose=!0===t,e&&this.setHints(e)}decode(t,e){return e&&this.setHints(e),this.decodeInternal(t)}decodeWithState(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)}setHints(t){this.hints=t;const r=!e(t)&&!0===t.get(S.TRY_HARDER),n=e(t)?null:t.get(S.POSSIBLE_FORMATS),i=new Array;if(!e(n)){const e=n.some((t=>t===z.UPC_A||t===z.UPC_E||t===z.EAN_13||t===z.EAN_8||t===z.CODABAR||t===z.CODE_39||t===z.CODE_93||t===z.CODE_128||t===z.ITF||t===z.RSS_14||t===z.RSS_EXPANDED));e&&!r&&i.push(new Ae(t,this.verbose)),n.includes(z.QR_CODE)&&i.push(new Ke),n.includes(z.DATA_MATRIX)&&i.push(new De),n.includes(z.AZTEC)&&i.push(new Rt),n.includes(z.PDF_417)&&i.push(new Sr),e&&r&&i.push(new Ae(t,this.verbose))}0===i.length&&(r||i.push(new Ae(t,this.verbose)),i.push(new Ke),i.push(new De),i.push(new Rt),i.push(new Sr),r&&i.push(new Ae(t,this.verbose))),this.readers=i}reset(){if(null!==this.readers)for(const t of this.readers)t.reset()}decodeInternal(t){if(null===this.readers)throw new Tr("No readers where selected, nothing can be read.");for(const r of this.readers)try{return r.decode(t,this.hints)}catch(e){if(e instanceof Tr)continue}throw new M("No MultiFormat Readers were able to detect the code.")}}class Rr extends V{constructor(t=null,e=500){const r=new yr;r.setHints(t),super(r,e)}decodeBitmap(t){return this.reader.decodeWithState(t)}}class Nr extends V{constructor(t=500){super(new Sr,t)}}class Dr extends V{constructor(t=500){super(new Ke,t)}}var Or,br;(br=Or||(Or={}))[br.ERROR_CORRECTION=0]="ERROR_CORRECTION",br[br.CHARACTER_SET=1]="CHARACTER_SET",br[br.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",br[br.MIN_SIZE=3]="MIN_SIZE",br[br.MAX_SIZE=4]="MAX_SIZE",br[br.MARGIN=5]="MARGIN",br[br.PDF417_COMPACT=6]="PDF417_COMPACT",br[br.PDF417_COMPACTION=7]="PDF417_COMPACTION",br[br.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",br[br.AZTEC_LAYERS=9]="AZTEC_LAYERS",br[br.QR_VERSION=10]="QR_VERSION";var Mr=Or;class Pr{constructor(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new at(t,Int32Array.from([1])))}buildGenerator(t){const e=this.cachedGenerators;if(t>=e.length){let r=e[e.length-1];const n=this.field;for(let i=e.length;i<=t;i++){const t=r.multiply(new at(n,Int32Array.from([1,n.exp(i-1+n.getGeneratorBase())])));e.push(t),r=t}}return e[t]}encode(t,e){if(0===e)throw new u("No error correction bytes");const r=t.length-e;if(r<=0)throw new u("No data bytes provided");const n=this.buildGenerator(e),i=new Int32Array(r);w.arraycopy(t,0,i,0,r);let s=new at(this.field,i);s=s.multiplyByMonomial(e,1);const o=s.divide(n)[1].getCoefficients(),a=e-o.length;for(let l=0;l=5&&(r+=Br.N1+(t-5)),t=1,n=i)}t>=5&&(r+=Br.N1+(t-5))}return r}}Br.N1=3,Br.N2=3,Br.N3=40,Br.N4=10;class vr{constructor(t,e){this.width=t,this.height=e;const r=new Array(e);for(let n=0;n!==e;n++)r[n]=new Uint8Array(t);this.bytes=r}getHeight(){return this.height}getWidth(){return this.width}get(t,e){return this.bytes[e][t]}getArray(){return this.bytes}setNumber(t,e,r){this.bytes[e][t]=r}setBoolean(t,e,r){this.bytes[e][t]=r?1:0}clear(t){for(const e of this.bytes)C.fill(e,t)}equals(t){if(!(t instanceof vr))return!1;const e=t;if(this.width!==e.width)return!1;if(this.height!==e.height)return!1;for(let r=0,n=this.height;r>\n"),t.toString()}setMode(t){this.mode=t}setECLevel(t){this.ecLevel=t}setVersion(t){this.version=t}setMaskPattern(t){this.maskPattern=t}setMatrix(t){this.matrix=t}static isValidMaskPattern(t){return t>=0&&t0;){for(6===s&&(s-=1);o>=0&&o=r;)t^=e<=0)for(let r=0;r!==s;r++){const i=n[r];i>=0&&kr.isEmpty(e.get(i,t))&&kr.embedPositionAdjustmentPattern(i-2,t-2,e)}}}}kr.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),kr.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),kr.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),kr.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),kr.VERSION_INFO_POLY=7973,kr.TYPE_INFO_POLY=1335,kr.TYPE_INFO_MASK_PATTERN=21522;class xr{constructor(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class Ur{constructor(){}static calculateMaskPenalty(t){return Br.applyMaskPenaltyRule1(t)+Br.applyMaskPenaltyRule2(t)+Br.applyMaskPenaltyRule3(t)+Br.applyMaskPenaltyRule4(t)}static encode(t,e,r=null){let n=Ur.DEFAULT_BYTE_MODE_ENCODING;const i=null!==r&&void 0!==r.get(Mr.CHARACTER_SET);i&&(n=r.get(Mr.CHARACTER_SET).toString());const s=this.chooseMode(t,n),o=new p;if(s===xe.BYTE&&(i||Ur.DEFAULT_BYTE_MODE_ENCODING!==n)){const t=y.getCharacterSetECIByName(n);void 0!==t&&this.appendECI(t,o)}this.appendModeInfo(s,o);const a=new p;let l;if(this.appendBytes(t,s,a,n),null!==r&&void 0!==r.get(Mr.QR_VERSION)){const t=Number.parseInt(r.get(Mr.QR_VERSION).toString(),10);l=ve.getVersionForNumber(t);const n=this.calculateBitsNeeded(s,o,a,l);if(!this.willFit(n,l,e))throw new Fr("Data too big for requested version")}else l=this.recommendVersion(e,s,o,a);const c=new p;c.appendBitArray(o);const h=s===xe.BYTE?a.getSizeInBytes():t.length;this.appendLengthInfo(h,l,s,c),c.appendBitArray(a);const u=l.getECBlocksForLevel(e),d=l.getTotalCodewords()-u.getTotalECCodewords();this.terminateBits(d,c);const f=this.interleaveWithECBytes(c,l.getTotalCodewords(),d,u.getNumBlocks()),g=new Lr;g.setECLevel(e),g.setMode(s),g.setVersion(l);const w=l.getDimensionForVersion(),m=new vr(w,w),A=this.chooseMaskPattern(f,e,l,m);return g.setMaskPattern(A),kr.buildMatrix(f,e,l,A,m),g.setMatrix(m),g}static recommendVersion(t,e,r,n){const i=this.calculateBitsNeeded(e,r,n,ve.getVersionForNumber(1)),s=this.chooseVersion(i,t),o=this.calculateBitsNeeded(e,r,n,s);return this.chooseVersion(o,t)}static calculateBitsNeeded(t,e,r,n){return e.getSize()+t.getCharacterCountBits(n)+r.getSize()}static getAlphanumericCode(t){return t159)&&(t<224||t>235))return!1}return!0}static chooseMaskPattern(t,e,r,n){let i=Number.MAX_SAFE_INTEGER,s=-1;for(let o=0;o=(t+7)/8}static terminateBits(t,e){const r=8*t;if(e.getSize()>r)throw new Fr("data bits cannot fit in the QR Code"+e.getSize()+" > "+r);for(let s=0;s<4&&e.getSize()0)for(let s=n;s<8;s++)e.appendBit(!1);const i=t-e.getSizeInBytes();for(let s=0;s=r)throw new Fr("Block ID too large");const o=t%r,a=r-o,l=Math.floor(t/r),c=l+1,h=Math.floor(e/r),u=h+1,d=l-h,f=c-u;if(d!==f)throw new Fr("EC bytes mismatch");if(r!==a+o)throw new Fr("RS blocks mismatch");if(t!==(h+d)*a+(u+f)*o)throw new Fr("Total bytes mismatch");n=1<=0&&e<=9}static appendNumericBytes(t,e){const r=t.length;let n=0;for(;n=33088&&t<=40956?n=t-33088:t>=57408&&t<=60351&&(n=t-49472),-1===n)throw new Fr("Invalid byte sequence");const i=192*(n>>8)+(255&n);e.appendBits(i,13)}}static appendECI(t,e){e.appendBits(xe.ECI.getBits(),4),e.appendBits(t.getValue(),8)}}Ur.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),Ur.DEFAULT_BYTE_MODE_ENCODING=y.UTF8.getName();class Hr{write(t,e,r,n=null){if(0===t.length)throw new u("Found empty contents");if(e<0||r<0)throw new u("Requested dimensions are too small: "+e+"x"+r);let i=be.L,s=Hr.QUIET_ZONE_SIZE;null!==n&&(void 0!==n.get(Mr.ERROR_CORRECTION)&&(i=be.fromString(n.get(Mr.ERROR_CORRECTION).toString())),void 0!==n.get(Mr.MARGIN)&&(s=Number.parseInt(n.get(Mr.MARGIN).toString(),10)));const o=Ur.encode(t,i,n);return this.renderResult(o,e,r,s)}writeToDom(t,e,r,n,i=null){"string"==typeof t&&(t=document.querySelector(t));const s=this.write(e,r,n,i);t&&t.appendChild(s)}renderResult(t,e,r,n){const i=t.getMatrix();if(null===i)throw new ut;const s=i.getWidth(),o=i.getHeight(),a=s+2*n,l=o+2*n,c=Math.max(e,a),h=Math.max(r,l),u=Math.min(Math.floor(c/a),Math.floor(h/l)),d=Math.floor((c-s*u)/2),f=Math.floor((h-o*u)/2),g=this.createSVGElement(c,h);for(let w=0,m=f;we||i+o>r)throw new u("Crop rectangle does not fit within image data.");a&&this.reverseHorizontal(s,o)}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth();(null==e||e.length>16&255,s=r>>7&510,o=255&r;i[e]=(n+s+o)/4&255}this.luminances=i}else this.luminances=t;if(void 0===n&&(this.dataWidth=e),void 0===i&&(this.dataHeight=r),void 0===s&&(this.left=0),void 0===o&&(this.top=0),this.left+e>this.dataWidth||this.top+r>this.dataHeight)throw new u("Crop rectangle does not fit within image data.")}getRow(t,e){if(t<0||t>=this.getHeight())throw new u("Requested row is outside the image: "+t);const r=this.getWidth();(null==e||e.length"}}class jr extends Qr{constructor(t,e,r){super(t,0,0),this.binaryShiftStart=e,this.binaryShiftByteCount=r}appendTo(t,e){for(let r=0;r62?t.appendBits(this.binaryShiftByteCount-31,16):0===r?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+r],8)}addBinaryShift(t,e){return new jr(this,t,e)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}function Jr(t,e,r){return new jr(t,e,r)}function $r(t,e,r){return new Qr(t,e,r)}const tn=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],en=0,rn=1,nn=2,sn=3,on=4,an=new Qr(null,0,0),ln=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])];function cn(t){for(let e of t)C.fill(e,-1);return t[en][on]=0,t[rn][on]=0,t[rn][en]=28,t[sn][on]=0,t[nn][on]=0,t[nn][en]=15,t}const hn=cn(C.createInt32Array(6,6));class un{constructor(t,e,r,n){this.token=t,this.mode=e,this.binaryShiftByteCount=r,this.bitCount=n}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(t,e){let r=this.bitCount,n=this.token;if(t!==this.mode){let e=ln[this.mode][t];n=$r(n,65535&e,e>>16),r+=e>>16}let i=t===nn?4:5;return n=$r(n,e,i),new un(n,t,0,r+i)}shiftAndAppend(t,e){let r=this.token,n=this.mode===nn?4:5;return r=$r(r,hn[this.mode][t],n),r=$r(r,e,5),new un(r,this.mode,0,this.bitCount+n+5)}addBinaryShiftChar(t){let e=this.token,r=this.mode,n=this.bitCount;if(this.mode===on||this.mode===nn){let t=ln[r][en];e=$r(e,65535&t,t>>16),n+=t>>16,r=en}let i=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,s=new un(e,r,this.binaryShiftByteCount+1,n+i);return 2078===s.binaryShiftByteCount&&(s=s.endBinaryShift(t+1)),s}endBinaryShift(t){if(0===this.binaryShiftByteCount)return this;let e=this.token;return e=Jr(e,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new un(e,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(t){let e=this.bitCount+(ln[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(e+=10),e<=t.bitCount}toBitArray(t){let e=[];for(let n=this.endBinaryShift(t.length).token;null!==n;n=n.getPrevious())e.unshift(n);let r=new p;for(const n of e)n.appendTo(r,t);return r}toString(){return D.format("%s bits=%d bytes=%d",tn[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0}}function dn(t){const e=D.getCharCode(" "),r=D.getCharCode("."),n=D.getCharCode(",");t[en][e]=1;const i=D.getCharCode("Z"),s=D.getCharCode("A");for(let d=s;d<=i;d++)t[en][d]=d-s+2;t[rn][e]=1;const o=D.getCharCode("z"),a=D.getCharCode("a");for(let d=a;d<=o;d++)t[rn][d]=d-a+2;t[nn][e]=1;const l=D.getCharCode("9"),c=D.getCharCode("0");for(let d=c;d<=l;d++)t[nn][d]=d-c+2;t[nn][n]=12,t[nn][r]=13;const h=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""];for(let d=0;d","?","[","]","{","}"];for(let d=0;d0&&(t[on][D.getCharCode(u[d])]=d);return t}un.INITIAL_STATE=new un(an,en,0,0);const fn=dn(C.createInt32Array(5,256));class gn{constructor(t){this.text=t}encode(){const t=D.getCharCode(" "),e=D.getCharCode("\n");let r=Kr.singletonList(un.INITIAL_STATE);for(let n=0;n0?(r=gn.updateStateListForPair(r,n,i),n++):r=this.updateStateListForChar(r,n)}return Kr.min(r,((t,e)=>t.getBitCount()-e.getBitCount())).toBitArray(this.text)}updateStateListForChar(t,e){const r=[];for(let n of t)this.updateStateForChar(n,e,r);return gn.simplifyStates(r)}updateStateForChar(t,e,r){let n=255&this.text[e],i=fn[t.getMode()][n]>0,s=null;for(let o=0;o<=on;o++){let a=fn[o][n];if(a>0){if(null==s&&(s=t.endBinaryShift(e)),!i||o===t.getMode()||o===nn){const t=s.latchAndAppend(o,a);r.push(t)}if(!i&&hn[t.getMode()][o]>=0){const t=s.shiftAndAppend(o,a);r.push(t)}}}if(t.getBinaryShiftByteCount()>0||0===fn[t.getMode()][n]){let n=t.addBinaryShiftChar(e);r.push(n)}}static updateStateListForPair(t,e,r){const n=[];for(let i of t)this.updateStateForPair(i,e,r,n);return this.simplifyStates(n)}static updateStateForPair(t,e,r,n){let i=t.endBinaryShift(e);if(n.push(i.latchAndAppend(on,r)),t.getMode()!==on&&n.push(i.shiftAndAppend(on,r)),3===r||4===r){let t=i.latchAndAppend(nn,16-r).latchAndAppend(nn,1);n.push(t)}if(t.getBinaryShiftByteCount()>0){let r=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);n.push(r)}}static simplifyStates(t){let e=[];for(const r of t){let t=!0;for(const n of e){if(n.isBetterThanOrEqualTo(r)){t=!1;break}r.isBetterThanOrEqualTo(n)&&(e=e.filter((t=>t!==n)))}t&&e.push(r)}return e}}class wn{constructor(){}static encodeBytes(t){return wn.encode(t,wn.DEFAULT_EC_PERCENT,wn.DEFAULT_AZTEC_LAYERS)}static encode(t,e,r){let n,i,s,o,a,l=new gn(t).encode(),c=E.truncDivision(l.getSize()*e,100)+11,h=l.getSize()+c;if(r!==wn.DEFAULT_AZTEC_LAYERS){if(n=r<0,i=Math.abs(r),i>(n?wn.MAX_NB_BITS_COMPACT:wn.MAX_NB_BITS))throw new u(D.format("Illegal value %s for layers",r));s=wn.totalBitsInLayer(i,n),o=wn.WORD_SIZE[i];let t=s-s%o;if(a=wn.stuffBits(l,o),a.getSize()+c>t)throw new u("Data to large for user specified layer");if(n&&a.getSize()>64*o)throw new u("Data to large for user specified layer")}else{o=0,a=null;for(let t=0;;t++){if(t>wn.MAX_NB_BITS)throw new u("Data too large for an Aztec code");if(n=t<=3,i=n?t+1:t,s=wn.totalBitsInLayer(i,n),h>s)continue;null!=a&&o===wn.WORD_SIZE[i]||(o=wn.WORD_SIZE[i],a=wn.stuffBits(l,o));let e=s-s%o;if(!(n&&a.getSize()>64*o)&&a.getSize()+c<=e)break}}let d,f=wn.generateCheckWords(a,s,o),g=a.getSize()/o,w=wn.generateModeMessage(n,i,g),m=(n?11:14)+4*i,A=new Int32Array(m);if(n){d=m;for(let t=0;t=n||t.get(s+r))&&(o|=1<0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]r&&(r=o,e=s)}if(!e)throw"No largest barcode found";return e},t.prototype.createBarcodeDetectorFormats=function(t){for(var e=[],r=0,n=t;r0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=n&&(t.isClosed=!0,t.parentElement.removeChild(t.surface),e())}))}))},t.prototype.getCapabilities=function(){return new dt(this.getFirstTrackOrFail())},t}(),gt=function(){function t(t){this.mediaStream=t}return t.prototype.render=function(t,e,r){return at(this,void 0,void 0,(function(){return lt(this,(function(n){return[2,ft.create(t,this.mediaStream,e,r)]}))}))},t.create=function(e){return at(this,void 0,void 0,(function(){var r;return lt(this,(function(n){switch(n.label){case 0:if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return r={audio:!1,video:e},[4,navigator.mediaDevices.getUserMedia(r)];case 1:return[2,new t(n.sent())]}}))}))},t}(),wt=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))},mt=function(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]t&&(n.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),s=t),s)},t.prototype.validateQrboxConfig=function(t){if("number"!=typeof t&&"function"!=typeof t&&(void 0===t.width||void 0===t.height))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},t.prototype.toQrdimensions=function(t,e,r){if("number"==typeof r)return{width:r,height:r};if("function"==typeof r)try{return r(t,e)}catch(n){throw new Error("qrbox config was passed as a function but it failed with unknown error"+n)}return r},t.prototype.setupUi=function(t,e,r){r.isShadedBoxEnabled()&&this.validateQrboxSize(t,e,r);var n=X(r.qrbox)?{width:t,height:e}:r.qrbox;this.validateQrboxConfig(n);var i=this.toQrdimensions(t,e,n);i.height>e&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var s=r.isShadedBoxEnabled()&&i.height<=e,o={x:0,y:0,width:t,height:e},a=s?this.getShadedRegionBounds(t,e,i):o,l=this.createCanvasElement(a.width,a.height),c=l.getContext("2d",{willReadFrequently:!0});c.canvas.width=a.width,c.canvas.height=a.height,this.element.append(l),s&&this.possiblyInsertShadingElement(this.element,t,e,i),this.createScannerPausedUiElement(this.element),this.qrRegion=a,this.context=c,this.canvasElement=l},t.prototype.createScannerPausedUiElement=function(t){var e=document.createElement("div");e.innerText=W.scannerPaused(),e.style.display="none",e.style.position="absolute",e.style.top="0px",e.style.zIndex="1",e.style.background="rgba(9, 9, 9, 0.46)",e.style.color="#FFECEC",e.style.textAlign="center",e.style.width="100%",t.appendChild(e),this.scannerPausedUiElement=e},t.prototype.scanContext=function(t,e){var r=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then((function(e){return t(e.text,H.createFromQrcodeResult(e)),r.possiblyUpdateShaders(!0),!0})).catch((function(t){r.possiblyUpdateShaders(!1);var n=W.codeParseError(t);return e(n,V.createFrom(n)),!1}))},t.prototype.foreverScan=function(t,e,r){var n=this;if(this.shouldScan&&this.renderedCamera){var i=this.renderedCamera.getSurface(),s=i.videoWidth/i.clientWidth,o=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var a=this.qrRegion.width*s,l=this.qrRegion.height*o,c=this.qrRegion.x*s,h=this.qrRegion.y*o;this.context.drawImage(i,c,h,a,l,0,0,this.qrRegion.width,this.qrRegion.height);var u=function(){n.foreverScanTimeout=setTimeout((function(){n.foreverScan(t,e,r)}),n.getTimeoutFps(t.fps))};this.scanContext(e,r).then((function(i){i||!0===t.disableFlip?u():(n.context.translate(n.context.canvas.width,0),n.context.scale(-1,1),n.scanContext(e,r).finally((function(){u()})))})).catch((function(t){n.logger.logError("Error happend while scanning context",t),u()}))}},t.prototype.createVideoConstraints=function(t){if("string"==typeof t)return{deviceId:{exact:t}};if("object"==typeof t){var e="facingMode",r="deviceId",n={user:!0,environment:!0},i="exact",s=function(t){if(t in n)return!0;throw"config has invalid 'facingMode' value = "+"'".concat(t,"'")},o=Object.keys(t);if(1!==o.length)throw"'cameraIdOrConfig' object should have exactly 1 key,"+" if passed as an object, found ".concat(o.length," keys");var a=Object.keys(t)[0];if(a!==e&&a!==r)throw"Only '".concat(e,"' and '").concat(r,"' ")+" are supported for 'cameraIdOrConfig'";if(a!==e){var l=t.deviceId;if("string"==typeof l)return{deviceId:l};if("object"==typeof l){if(i in l)return{deviceId:{exact:l["".concat(i)]}};throw"'deviceId' should be string or object with"+" ".concat(i," as key.")}throw"Invalid type of 'deviceId' = ".concat(typeof l)}var c=t.facingMode;if("string"==typeof c){if(s(c))return{facingMode:c}}else{if("object"!=typeof c)throw"Invalid type of 'facingMode' = ".concat(typeof c);if(!(i in c))throw"'facingMode' should be string or object with"+" ".concat(i," as key.");if(s(c["".concat(i)]))return{facingMode:{exact:c["".concat(i)]}}}}throw"Invalid type of 'cameraIdOrConfig' = ".concat(typeof t)},t.prototype.computeCanvasDrawConfig=function(t,e,r,n){if(t<=r&&e<=n)return{x:(r-t)/2,y:(n-e)/2,width:t,height:e};var i=t,s=e;return t>r&&(e*=r/t,t=r),e>n&&(t*=n/e,e=n),this.logger.log("Image downsampled from "+"".concat(i,"X").concat(s)+" to ".concat(t,"X").concat(e,".")),this.computeCanvasDrawConfig(t,e,r,n)},t.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},t.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach((function(e){e.style.backgroundColor=t?Nt.BORDER_SHADER_MATCH_COLOR:Nt.BORDER_SHADER_DEFAULT_COLOR})),this.qrMatch=t)},t.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},t.prototype.createCanvasElement=function(t,e,r){var n=t,i=e,s=document.createElement("canvas");return s.style.width="".concat(n,"px"),s.style.height="".concat(i,"px"),s.style.display="none",s.id=X(r)?"qr-canvas":r,s},t.prototype.getShadedRegionBounds=function(t,e,r){if(r.width>t||r.height>e)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-r.width)/2,y:(e-r.height)/2,width:r.width,height:r.height}},t.prototype.possiblyInsertShadingElement=function(t,e,r,n){if(!(e-n.width<1||r-n.height<1)){var i=document.createElement("div");i.style.position="absolute";var s=(e-n.width)/2,o=(r-n.height)/2;if(i.style.borderLeft="".concat(s,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderRight="".concat(s,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderTop="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderBottom="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id="".concat(Nt.SHADED_REGION_ELEMENT_ID),e-n.width<11||r-n.height<11)this.hasBorderShaders=!1;else{var a=40;this.insertShaderBorders(i,a,5,-5,null,0,!0),this.insertShaderBorders(i,a,5,-5,null,0,!1),this.insertShaderBorders(i,a,5,null,-5,0,!0),this.insertShaderBorders(i,a,5,null,-5,0,!1),this.insertShaderBorders(i,5,45,-5,null,-5,!0),this.insertShaderBorders(i,5,45,null,-5,-5,!0),this.insertShaderBorders(i,5,45,-5,null,-5,!1),this.insertShaderBorders(i,5,45,null,-5,-5,!1),this.hasBorderShaders=!0}t.append(i)}},t.prototype.insertShaderBorders=function(t,e,r,n,i,s,o){var a=document.createElement("div");a.style.position="absolute",a.style.backgroundColor=Nt.BORDER_SHADER_DEFAULT_COLOR,a.style.width="".concat(e,"px"),a.style.height="".concat(r,"px"),null!==n&&(a.style.top="".concat(n,"px")),null!==i&&(a.style.bottom="".concat(i,"px")),o?a.style.left="".concat(s,"px"):a.style.right="".concat(s,"px"),this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(a),t.appendChild(a)},t.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},t.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},t.prototype.getTimeoutFps=function(t){return 1e3/t},t}();(It=_t||(_t={}))[It.STATUS_DEFAULT=0]="STATUS_DEFAULT",It[It.STATUS_SUCCESS=1]="STATUS_SUCCESS",It[It.STATUS_WARNING=2]="STATUS_WARNING",It[It.STATUS_REQUESTING_PERMISSION=3]="STATUS_REQUESTING_PERMISSION";const bt=R({data:()=>({currentDate:"",taskList:[],showH5Scan:!1,html5QrCode:null,scanType:"",btn1Info:"开始盘点",tagsAmount:0,btn2Disabled:!1,btn3Disabled:!1,cbDisabled:!1,dataList:[],pageNum:100,offset:50,epcList:[],tempList:[],asyncFlag:!1,voiceFlag:!0,barcodeFlag:!1,main:null,hhwUHFController:null,globalEvent:null,receiver:null,inventoryPlanList:[],planPage:1,planPageSize:5,planTotal:0,planLoading:!1,planHasMore:!0}),created(){this.asyncFlag,this.voiceFlag,this.barcodeFlag},onLoad(){this.updateDate(),this.initUHFEvent(),this.getInventoryPlanList(!0)},onShow(){},onHide(){},methods:{updateDate(){const t=new Date,e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0");this.currentDate=`${e}-${r}-${n}`},handleScan(i){this.scanType=i,navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:{ideal:1280},height:{ideal:720}}}).then((()=>{this.showH5Scan=!0,this.$nextTick((()=>{window.Html5Qrcode||(window.Html5Qrcode=Ot);const r={fps:10,qrbox:{width:250,height:250},aspectRatio:1,formatsToSupport:[D.QR_CODE]};this.html5QrCode=new window.Html5Qrcode("reader"),this.html5QrCode.start({facingMode:"environment"},r,(r=>{this.closeH5Scan();let n=r.trim();console.log("id:",n),n=this.normalizeScannedId(n),n?/^\d+$/.test(n)?"inventory"===this.scanType?e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}&view=1`}):t({title:"二维码信息错误",icon:"none"}):t({title:"二维码无效",icon:"none"})}),(t=>{console.log("扫码错误:",t)})).catch((e=>{console.error("启动扫码失败:",e),t({title:"启动扫码失败,请检查摄像头权限",icon:"none",duration:2e3}),this.closeH5Scan()}))}))})).catch((e=>{console.error("摄像头权限错误:",e),r({title:"提示",content:"请允许访问摄像头以使用扫码功能",confirmText:"确定",showCancel:!1,success:()=>{"android"===n().platform&&t({title:"请在系统设置中开启摄像头权限",icon:"none",duration:2e3})}})}))},scanInventory(){this.handleScan("inventory")},scanView(){this.handleScan("view")},closeH5Scan(){this.showH5Scan=!1,this.html5QrCode&&this.html5QrCode.stop().then((()=>{this.html5QrCode.clear()}))},async getInventoryPlanList(e=!1){var r,n;if(!this.planLoading)try{this.planLoading=!0,e&&(this.planPage=1,this.planHasMore=!0);const s={page:this.planPage,page_size:this.planPageSize},o=await T(s);if(console.log("盘点计划列表响应:",o),o.data&&40001===o.data.errcode)return t({title:(null==(r=o.data)?void 0:r.errmsg)||"获取盘点计划失败",icon:"none"}),void i({url:"/pages/login/login"});if(o.data&&o.data.list){const t=o.data.list,r=t.data||[];this.inventoryPlanList=e?r:[...this.inventoryPlanList,...r],this.planTotal=t.total||0,this.planHasMore=r.length===this.planPageSize,this.planHasMore&&this.planPage++}else t({title:(null==(n=o.data)?void 0:n.message)||"获取盘点计划失败",icon:"none"})}catch(s){console.error("获取盘点计划列表失败:",s),t({title:"获取盘点计划失败",icon:"none"})}finally{this.planLoading=!1}},refreshPlans(){this.getInventoryPlanList(!0)},loadMorePlans(){this.planHasMore&&!this.planLoading&&this.getInventoryPlanList(!1)},getStatusText:t=>({0:"未开始",1:"进行中",2:"已完成"}[t]||"未知状态"),getTypeText:t=>({1:"年度",2:"季度"}[t]||"未知类型"),formatDate(t){if(!t)return"";const e=new Date(t);return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},viewPlanDetail(t){console.log("查看计划详情:",t);const r=encodeURIComponent(JSON.stringify(t));e({url:`/pages/plan-detail/plan-detail?planInfo=${r}&planId=${t.id}`})},getProgress(t){if(2===t.status)return 100;if(0===t.status)return 0;const e=new Date,r=new Date(t.start_date),n=new Date(t.end_date);if(en)return 100;const i=n.getTime()-r.getTime(),s=e.getTime()-r.getTime();return Math.round(s/i*100)},initAndroidComponents(){},initUHFEvent(){},handleUHFEvent(e){console.log(e.tag_info_list);var r=e.tag_info_list;if(null!=r){for(var n=0;nArray.from(t,(function(t){return("0"+(255&t).toString(16)).slice(-2)})).join(""),hexString2Bytes(t){var e=0,r=t.length;if(r%2!=0)return null;r/=2;for(var n=new Array,i=0;i({id:t.id||t.material_info_id||t.inventory_id||"",zichanmingcheng:t.zichanmingcheng||"",total_num:t.total_num??t.inventorys_total??t.zaikushuliang??0})))},normalizeScannedId(t){if(!t)return"";const e=String(t).trim();if(/^\d+$/.test(e))return e;if(/^\d+(?:\.\d+)?$/.test(e)){const t=Number(e);if(!Number.isNaN(t)&&Number.isFinite(t))return Math.trunc(t).toString()}return""},goInventoryFromList(r){const n=r&&r.id;n?e({url:`/pages/inventory/inventory?code=${encodeURIComponent(n)}`}):t({title:"无法获取物资ID",icon:"none"})},initBarcodeScan(){},startBarcodeScan(){},stopBarcodeScan(){},handleInventory(){"开始盘点"==this.btn1Info?this.startInventory():this.stopInventory()},startInventory(){this.btn2Disabled=!0,this.btn3Disabled=!0,this.cbDisabled=!0,this.btn1Info="停止盘点"},stopInventory(){},clearTags(){this.dataList=[],this.tempList=[],this.epcList=[],this.tagsAmount=0,this.offset=50,this.taskList=[]},viewMaterials(){const e=this.epcList.length?this.epcList:this.dataList.map((t=>t.epc)).filter(Boolean);if(!e.length)return void t({title:"请先获取标签数据",icon:"none"});const r=e.join(",");s({title:"查询中..."}),y({ids:r,page:1,page_size:999}).then((e=>{o(),console.log("res:",e);const r=this.formatMaterialList(e);if(0===r.length)return this.taskList=[],void t({title:"未查询到物资信息",icon:"none"});this.taskList=r})).catch((e=>{console.error("viewMaterials error",e),o(),t({title:"获取物资失败",icon:"none"})}))},loadmore(){if(console.log("inventory loadmore","dataList size1: "+this.dataList.length,"temList size: "+this.tempList.length),this.dataList.length>=this.tempList.length)console.log("inventory loadmore","nomore");else{var t;t=this.tempList.length-this.offset>=this.pageNum?this.pageNum:this.tempList.length-this.offset;for(var e=this.offset;e[u(T,{class:"index-content"},{default:l((()=>[u(T,{class:"btn-group"},{default:l((()=>[u(o,{class:"main-btn",onClick:s.scanInventory},{default:l((()=>[d("扫码盘点")])),_:1},8,["onClick"]),u(o,{class:"main-btn outline",onClick:s.scanView},{default:l((()=>[d("扫码查看")])),_:1},8,["onClick"])])),_:1}),u(T,{class:"inventory-section"},{default:l((()=>[u(T,{class:"inventory-header"},{default:l((()=>[u(y,{class:"inventory-title"},{default:l((()=>[d("标签盘点")])),_:1}),u(y,{class:"tags-amount"},{default:l((()=>[d("标签数量: "+f(i.tagsAmount),1)])),_:1})])),_:1}),u(R,{class:"tag-list","scroll-y":"",onScrolltolower:s.loadmore,"lower-threshold":"50"},{default:l((()=>[u(T,{class:"list-item-head"},{default:l((()=>[u(y,{class:"list-item-text-id"},{default:l((()=>[d("序号")])),_:1}),u(y,{class:"list-item-text-epc"},{default:l((()=>[d("标签信息")])),_:1}),u(y,{class:"list-item-text-count"},{default:l((()=>[d("次数")])),_:1}),u(y,{class:"list-item-text-rssi"},{default:l((()=>[d("信号强度")])),_:1})])),_:1}),(h(!0),g(m,null,w(i.dataList,(t=>(h(),a(T,{class:"list-item",key:t.id},{default:l((()=>[u(y,{class:"list-item-text-id"},{default:l((()=>[d(f(t.id+1),1)])),_:2},1024),u(y,{class:"list-item-text-epc"},{default:l((()=>[d(f(t.epc),1)])),_:2},1024),u(y,{class:"list-item-text-count"},{default:l((()=>[d(f(t.count),1)])),_:2},1024),u(y,{class:"list-item-text-rssi"},{default:l((()=>[d(f(t.rssi),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["onScrolltolower"]),u(T,{class:"inventory-options"}),u(T,{class:"inventory-btn-box"},{default:l((()=>[u(o,{type:"primary",onClick:s.handleInventory,class:"inventory-btn"},{default:l((()=>[d(f(i.btn1Info),1)])),_:1},8,["onClick"]),u(o,{type:"primary",disabled:i.btn2Disabled,onClick:s.viewMaterials,class:"inventory-btn"},{default:l((()=>[d("查看物资")])),_:1},8,["disabled","onClick"])])),_:1}),u(T,null,{default:l((()=>[u(o,{type:"primary",disabled:i.btn3Disabled,onClick:s.clearTags,class:"inventory-btn clear-btn"},{default:l((()=>[d("清空")])),_:1},8,["disabled","onClick"])])),_:1})])),_:1}),u(T,{class:"task-section"},{default:l((()=>[u(T,{class:"task-title"},{default:l((()=>[d("物资列表")])),_:1}),u(T,{class:"task-list"},{default:l((()=>[u(T,{class:"task-item",style:{"font-weight":"600"}},{default:l((()=>[u(T,{class:"task-info"},{default:l((()=>[u(y,{class:"task-name"},{default:l((()=>[d("物资名称")])),_:1})])),_:1}),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("顺序号")])),_:1})])),_:1}),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("库存")])),_:1})])),_:1}),u(T,{class:"task-info",style:{width:"120rpx","text-align":"right"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(h(!0),g(m,null,w(i.taskList,((t,e)=>(h(),a(T,{class:"task-item",key:e},{default:l((()=>[u(T,{class:"task-info"},{default:l((()=>[u(y,{class:"task-name"},{default:l((()=>[d(f(t.zichanmingcheng),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d(f(t.shunxuhao),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{"flex-direction":"row","align-items":"center",gap:"8rpx"}},{default:l((()=>[u(y,{class:"task-time"},{default:l((()=>[d(f(t.total_num),1)])),_:2},1024)])),_:2},1024),u(T,{class:"task-info",style:{width:"120rpx",display:"flex","justify-content":"flex-end"}},{default:l((()=>[u(o,{size:"mini",type:"primary",onClick:I((e=>s.goInventoryFromList(t)),["stop"])},{default:l((()=>[d("盘点")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1}),u(T,{class:"inventory-plan-section"},{default:l((()=>[u(T,{class:"inventory-plan-header"},{default:l((()=>[u(y,{class:"inventory-plan-title"},{default:l((()=>[d("盘点计划")])),_:1})])),_:1}),u(T,{class:"plan-list"},{default:l((()=>[u(T,{class:"plan-item",style:{"font-weight":"600"}},{default:l((()=>[u(T,{class:"plan-info plan-name-col"},{default:l((()=>[u(y,{class:"plan-name"},{default:l((()=>[d("计划名称")])),_:1})])),_:1}),u(T,{class:"plan-info plan-status-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("状态")])),_:1})])),_:1}),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("开始日期")])),_:1})])),_:1}),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("结束日期")])),_:1})])),_:1}),u(T,{class:"plan-info plan-action-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(h(!0),g(m,null,w(i.inventoryPlanList,(t=>(h(),a(T,{class:"plan-item",key:t.id},{default:l((()=>[u(T,{class:"plan-info plan-name-col"},{default:l((()=>[u(y,{class:"plan-name"},{default:l((()=>[d(f(t.name),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-status-col"},{default:l((()=>[u(y,{class:S(["plan-status","status-"+t.status])},{default:l((()=>[d(f(s.getStatusText(t.status)),1)])),_:2},1032,["class"])])),_:2},1024),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d(f(s.formatDate(t.start_date)),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-date-col"},{default:l((()=>[u(y,{class:"plan-time"},{default:l((()=>[d(f(s.formatDate(t.end_date)),1)])),_:2},1024)])),_:2},1024),u(T,{class:"plan-info plan-action-col"},{default:l((()=>[u(o,{size:"mini",type:"primary",onClick:I((e=>s.viewPlanDetail(t)),["stop"])},{default:l((()=>[d("查看")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i.planLoading?(h(),a(T,{key:0,class:"load-more"},{default:l((()=>[u(T,{class:"loading-spinner"}),u(y,{class:"loading-text"},{default:l((()=>[d("加载中...")])),_:1})])),_:1})):!i.planHasMore&&i.inventoryPlanList.length>0?(h(),a(T,{key:1,class:"load-more"},{default:l((()=>[u(y,{class:"no-more-text"},{default:l((()=>[d("— 没有更多数据了 —")])),_:1})])),_:1})):A("",!0)])),_:1}),i.showH5Scan?(h(),g("div",{key:0,class:"h5-scan-modal"},[C("div",{id:"reader",style:{width:"300px",height:"300px",margin:"0 auto"}}),u(o,{onClick:s.closeH5Scan},{default:l((()=>[d("关闭")])),_:1},8,["onClick"])])):A("",!0)])),_:1})])),_:1},8,["onScrolltolower","onRefresherrefresh","refresher-triggered"])}],["__scopeId","data-v-79bde49e"]]);export{bt as default}; diff --git a/unpackage/dist/build/web/assets/pages-inventory-inventory.C6NjEH2T.js b/unpackage/dist/build/web/assets/pages-inventory-inventory.C6NjEH2T.js new file mode 100644 index 0000000..eb422fe --- /dev/null +++ b/unpackage/dist/build/web/assets/pages-inventory-inventory.C6NjEH2T.js @@ -0,0 +1 @@ +import{s as e,B as a,b as t,h as l,r as s,C as o,D as n,E as i,f as c,d as r,w as d,c as u,j as m,F as f,m as h,o as _,e as p,t as g,i as y,q as v,u as b,p as C,l as k,I as w,G as M,x,S as D,H as F,J as R}from"./index--qIYCxYV.js";import{c as S,u as I,s as T,d as q,e as N,f as P}from"./api.CI2LxOCM.js";import{_ as z}from"./_plugin-vue_export-helper.BCo6x5W8.js";const V=z({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:"",maintenanceRecords:[],showModal:!1,showDetailModal:!1,currentRecord:{},showCompleteModal:!1,completeForm:{actual_date:"",notes:"",photos:[],signature:""},currentMaintenanceRecord:null,signatureCtx:null,signaturePoints:[],isDrawing:!1}),onLoad(a){this.isViewMode="1"===a.view,this.date=this.getToday(),this.materialId=a.code,console.log("materialId:",this.materialId),this.materialId&&(S(this.materialId).then((a=>{if(console.log("response:",a),a.data){const e=a.data;this.material_info_id=e.wuzibianma_material_infos_wuzibianma_relation.id;const t=e.wuzibianma_material_infos_wuzibianma_relation||{},l=t.fenlei_detail||{},s=e.wuzizhuangtai_detail||{},o=e.chubeifangshi_detail||{},n=e.dengjifenlei_detail||{},i=e.chanquanxinxi_detail||{},c=e.materialstorages||{},r=e.shelfs||{},d=e.equipment_maintain_config||{},u=e.material_info_type||"";if(u){const e=u.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=l.name||"-",this.materialName=e.zichanmingcheng||"-",this.materialCode=e.wuzibianma||"-",this.materialType=e.wuzileixing||"-",this.materialSpec=t.guigexinghao||e.guigexinghao||"-",this.materialSize=t.wuziguige||"-",this.unit=t.jiliangdanwei||e.jiliangdanwei||"-",this.batchNumber=e.rukupici||"-",this.stockQty=e.zaikushuliang||e.inventorys_total||"0",this.sequenceNumber=e.shunxuhao||"-",this.waitNum=e.wait_num||"-",this.productionDate=e.shengchanriqi||"-",this.storageDate=e.rukuriqi||"-",this.materialStatus=s.value||"-",this.reserveMethod=o.value||"-",this.warehouseName=c.cangkumingcheng||"-",this.shelfName=r.huojiamingcheng||"-",this.shelfLayer=e.huojiaceng||"-",this.levelCategory=n.value||"-",this.propertyInfo=i.value||"-",this.isFixedAsset=e.shifouweigudingzichan||"-",this.fixedAssetCode=e.gudingzichanbianma||"-",this.reserveYears=e.chubeinianxian||"-",this.storageRequirement=e.cunfangyaoqiu||"-",this.maintenanceRequirement=e.weihuyaoqiu||"-",this.maintenanceFrequency=d.name||"-",this.material_infos_plan_id=e.material_infos_plan_id||""}else e({title:"未获取到物资信息",icon:"none"})})).catch((()=>{e({title:"获取物资信息失败",icon:"none"})})),this.getMaintenanceRecords())},methods:{showInventoryModal(){this.showModal=!0},closeInventoryModal(){this.showModal=!1},getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?e({title:"最多上传3张照片",icon:"none"}):a({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void e({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void e({title:"盘点数量必须为0或正整数",icon:"none"});t({title:"提交中..."});let a=[];for(let t=0;t{console.log("res:",a),l(),!a||a.data&&void 0!==a.data.errcode?e({title:a.data.errmsg||"提交失败",icon:"none"}):(e({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{s({url:"/pages/index/index"})}),1200))})).catch((()=>{l(),e({title:"提交失败",icon:"none"})}))},async getMaintenanceRecords(){if(this.materialId)try{const e={page:1,page_size:999,"filter[0][key]":"inventorys_id","filter[0][op]":"eq","filter[0][value]":this.materialId},a=await q(e);console.log("运维记录响应:",a),a.data&&a.data.list&&a.data.list.data?this.maintenanceRecords=a.data.list.data:this.maintenanceRecords=[]}catch(e){console.error("获取运维记录失败:",e),this.maintenanceRecords=[]}},formatDate(e){if(!e)return"-";if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const a=new Date(e);if(isNaN(a.getTime()))return e;return`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`},getDateDifferenceInDays(e){if(!e)return 0;const a=new Date(e),t=new Date;t.setHours(0,0,0,0),a.setHours(0,0,0,0);const l=a-t;return Math.ceil(l/864e5)},getBadgeText(e){if(!e)return"-";const a=this.getDateDifferenceInDays(e);return a>=0?`还有 ${a} 天`:`已超期 ${Math.abs(a)} 天`},getBadgeClass(e){if(!e)return"status-default";const a=this.getDateDifferenceInDays(e);return a<0?"status-overdue":a<=3?"status-urgent":"status-normal"},completeMaintenance(e){console.log("完成维护:",e),this.currentMaintenanceRecord=e,this.completeForm={actual_date:this.getToday(),notes:"",photos:[],signature:""},this.showCompleteModal=!0,this.$nextTick((()=>{this.initSignatureCanvas()}))},closeCompleteModal(){this.showCompleteModal=!1,this.currentMaintenanceRecord=null,this.completeForm={actual_date:"",notes:"",photos:[],signature:""}},onDateChange(e){this.completeForm.actual_date=e.detail.value},chooseCompletePhoto(){this.completeForm.photos.length>=9?e({title:"最多上传9张照片",icon:"none"}):a({count:9-this.completeForm.photos.length,success:async a=>{t({title:"上传中..."});try{for(let e=0;e{const e=o("signatureCanvas",this);e.setStrokeStyle("#000000"),e.setLineWidth(3),e.setLineCap("round"),e.setLineJoin("round"),this.signatureCtx=e,this.signaturePoints=[],this.isDrawing=!1}))},onTouchStart(e){if(!this.signatureCtx)return void this.initSignatureCanvas();this.isDrawing=!0;const a=e.touches[0],t={x:a.x,y:a.y};this.signaturePoints=[t],this.signatureCtx.beginPath(),this.signatureCtx.moveTo(t.x,t.y)},onTouchMove(e){if(!this.isDrawing||!this.signatureCtx)return;e.preventDefault();const a=e.touches[0],t={x:a.x,y:a.y};if(this.signaturePoints.length>0){const e=this.signaturePoints[this.signaturePoints.length-1];this.signatureCtx.moveTo(e.x,e.y),this.signatureCtx.lineTo(t.x,t.y),this.signatureCtx.stroke(),this.signatureCtx.draw(!0)}this.signaturePoints.push(t)},onTouchEnd(){this.isDrawing=!1,this.saveSignature()},saveSignature(){this.signatureCtx&&n({canvasId:"signatureCanvas",success:e=>{this.completeForm.signature=e.tempFilePath},fail:e=>{console.error("保存签名失败:",e)}},this)},clearSignature(){this.signatureCtx&&(this.signatureCtx.clearRect(0,0,1e3,1e3),this.signatureCtx.draw(!0),this.completeForm.signature="",this.signaturePoints=[],this.isDrawing=!1)},async submitCompleteMaintenance(){var a;if(this.completeForm.actual_date)if(this.currentMaintenanceRecord&&this.currentMaintenanceRecord.id){t({title:"提交中..."});try{let t=null;if(this.completeForm.signature){const e=await I(this.completeForm.signature);e&&e.id&&(t=e.id)}const s={id:this.currentMaintenanceRecord.id,maintenance_date:this.formatDate(this.completeForm.actual_date),maintenance_content:this.completeForm.notes,file_ids:this.completeForm.photos.map((e=>e.id)),sign_id:t,status:1};console.log("提交完成维护数据:",s);const o=await N(s);console.log("提交完成维护响应:",o),l(),!o||o.data&&void 0!==o.data.errcode?e({title:(null==(a=o.data)?void 0:a.errmsg)||"提交失败",icon:"none"}):(e({title:"完成维护成功",icon:"success"}),this.closeCompleteModal(),this.getMaintenanceRecords())}catch(s){console.error("提交完成维护失败:",s),l(),e({title:"提交失败",icon:"none"})}}else e({title:"维护记录信息错误",icon:"none"});else e({title:"请选择实际维护日期",icon:"none"})},async viewMaintenance(a){if(console.log("查看维护记录:",a),a.id){t({title:"加载中..."});try{const t=await P(a.id);console.log("运维记录详情:",t),t.data?(this.currentRecord=t.data,this.showDetailModal=!0):e({title:"获取详情失败",icon:"none"})}catch(s){console.error("获取运维记录详情失败:",s),e({title:"获取详情失败",icon:"none"})}finally{l()}}else e({title:"记录ID不存在",icon:"none"})},closeDetailModal(){this.showDetailModal=!1,this.currentRecord={}},previewImage(e,a){a&&0!==a.length||(a=[e]),i({current:e,urls:a})}}},[["render",function(e,a,t,l,s,o){const n=C,i=h,S=k,I=w,T=M,q=x,N=D,P=F,z=R;return _(),c(f,null,[r(i,{class:"inventory-bg"},{default:d((()=>[r(i,{class:"inventory-card"},{default:d((()=>[r(i,{class:"readonly-group"},{default:d((()=>[r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("一级分类")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.firstCategory),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("二级分类")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.secondCategory),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("所属种类")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.categoryName),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("物资名称")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.materialName),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("物资类型")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.materialType),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("物资型号")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.materialSpec),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("物资规格")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.materialSize),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("单位")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.unit),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("入库批次")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.batchNumber),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("在库数量")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.stockQty)+g(s.unit?" "+s.unit:""),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("顺序号")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.sequenceNumber),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("待出库")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.waitNum),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("生产日期")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.productionDate),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("入库日期")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.storageDate),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("物资状态")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.materialStatus),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("储备方式")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.reserveMethod),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("所在仓库")])),_:1}),r(i,{class:"readonly-value"},{default:d((()=>[p(g(s.warehouseName),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("所在货架")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.shelfName),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("所在货架层")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.shelfLayer),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("等级分类")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.levelCategory),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("产权信息")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.propertyInfo),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("是否为固定资产")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.isFixedAsset),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("固定资产编码")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.fixedAssetCode),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("储备年限")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.reserveYears),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("存放要求")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.storageRequirement),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("维护要求")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.maintenanceRequirement),1)])),_:1})])),_:1}),r(i,{class:"readonly-item"},{default:d((()=>[r(n,{class:"readonly-label"},{default:d((()=>[p("保养频次")])),_:1}),r(n,{class:"readonly-value"},{default:d((()=>[p(g(s.maintenanceFrequency),1)])),_:1})])),_:1})])),_:1}),s.isViewMode?m("",!0):(_(),u(i,{key:0,class:"inventory-action-section"},{default:d((()=>[r(S,{class:"inventory-action-btn",onClick:o.showInventoryModal},{default:d((()=>[p("盘点")])),_:1},8,["onClick"])])),_:1})),r(i,{class:"maintenance-section"},{default:d((()=>[r(i,{class:"section-title"},{default:d((()=>[p("运维记录")])),_:1}),s.maintenanceRecords.length>0?(_(),u(i,{key:0,class:"maintenance-list"},{default:d((()=>[(_(!0),c(f,null,y(s.maintenanceRecords,((e,a)=>(_(),u(i,{class:"maintenance-item",key:a},{default:d((()=>[r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("记录编号:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[p(g(e.no||"-"),1)])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("计划维护日期:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[p(g(o.formatDate(e.planned_maintenance_date)||"-"),1)])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("截止日期:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[p(g(o.formatDate(e.end_date)||"-"),1)])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("负责人:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[p(g(e.responsible_admin?e.responsible_admin.name:"-"),1)])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("运维内容:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[e.equipment_maintain_config_id&&e.equipment_maintain_config&&e.equipment_maintain_config.name?(_(),c("span",{key:0},g(e.equipment_maintain_config.name),1)):e.content?(_(),c("span",{key:1},g(e.content),1)):(_(),c("span",{key:2},"-"))])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("状态:")])),_:1}),r(n,{class:"maintenance-value"},{default:d((()=>[p(g(1===e.status?"已完成":"待处理"),1)])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-row"},{default:d((()=>[r(n,{class:"maintenance-label"},{default:d((()=>[p("实际维护日期/状态:")])),_:1}),r(i,{class:"maintenance-value"},{default:d((()=>[1===e.status?(_(),u(n,{key:0},{default:d((()=>[p(g(o.formatDate(e.maintenance_date)||"-"),1)])),_:2},1024)):(_(),u(i,{key:1,class:b(["status-badge",o.getBadgeClass(e.end_date)])},{default:d((()=>[p(g(o.getBadgeText(e.end_date)),1)])),_:2},1032,["class"]))])),_:2},1024)])),_:2},1024),r(i,{class:"maintenance-actions"},{default:d((()=>[0===e.status?(_(),u(S,{key:0,class:"action-btn complete-btn",onClick:a=>o.completeMaintenance(e)},{default:d((()=>[p("完成维护")])),_:2},1032,["onClick"])):m("",!0),1===e.status?(_(),u(S,{key:1,class:"action-btn view-btn",onClick:a=>o.viewMaintenance(e)},{default:d((()=>[p("查看")])),_:2},1032,["onClick"])):m("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1})):(_(),u(i,{key:1,class:"empty-maintenance"},{default:d((()=>[r(n,null,{default:d((()=>[p("暂无运维记录")])),_:1})])),_:1}))])),_:1})])),_:1})])),_:1}),s.showModal?(_(),u(i,{key:0,class:"inventory-modal",onClick:o.closeInventoryModal},{default:d((()=>[r(i,{class:"modal-content",onClick:a[2]||(a[2]=v((()=>{}),["stop"]))},{default:d((()=>[r(i,{class:"modal-header"},{default:d((()=>[r(n,{class:"modal-title"},{default:d((()=>[p("物资盘点")])),_:1}),r(i,{class:"modal-close",onClick:o.closeInventoryModal},{default:d((()=>[r(n,{class:"close-icon"},{default:d((()=>[p("×")])),_:1})])),_:1},8,["onClick"])])),_:1}),r(i,{class:"modal-body"},{default:d((()=>[r(i,{class:"form-group"},{default:d((()=>[r(n,{class:"form-label"},{default:d((()=>[p("盘点数量")])),_:1}),r(I,{class:"form-input",type:"number",modelValue:s.countQty,"onUpdate:modelValue":a[0]||(a[0]=e=>s.countQty=e),placeholder:"请输入盘点数量"},null,8,["modelValue"])])),_:1}),r(i,{class:"form-group"},{default:d((()=>[r(n,{class:"form-label"},{default:d((()=>[p("盘点备注")])),_:1}),r(T,{class:"form-textarea",modelValue:s.remark,"onUpdate:modelValue":a[1]||(a[1]=e=>s.remark=e),placeholder:"请输入备注信息"},null,8,["modelValue"])])),_:1}),r(i,{class:"form-group"},{default:d((()=>[r(n,{class:"form-label"},{default:d((()=>[p("照片上传")])),_:1}),r(i,{class:"photo-upload"},{default:d((()=>[(_(!0),c(f,null,y(s.photos,((e,a)=>(_(),u(i,{key:a,class:"photo-preview"},{default:d((()=>[r(q,{src:e,mode:"aspectFill",class:"photo-img"},null,8,["src"]),r(i,{class:"photo-del",onClick:e=>o.deletePhoto(a)},{default:d((()=>[r(n,{class:"delete-icon"},{default:d((()=>[p("×")])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)))),128)),s.photos.length<3?(_(),u(S,{key:0,class:"photo-btn",onClick:o.choosePhoto},{default:d((()=>[r(n,{class:"iconfont icon-camera"}),r(n,{class:"btn-text"},{default:d((()=>[p("上传照片")])),_:1})])),_:1},8,["onClick"])):m("",!0)])),_:1})])),_:1})])),_:1}),r(i,{class:"modal-footer"},{default:d((()=>[r(S,{class:"modal-btn cancel-btn",onClick:o.closeInventoryModal},{default:d((()=>[p("取消")])),_:1},8,["onClick"]),r(S,{class:"modal-btn submit-btn",onClick:o.submit},{default:d((()=>[p("提交盘点")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["onClick"])):m("",!0),s.showDetailModal?(_(),u(i,{key:1,class:"detail-modal",onClick:o.closeDetailModal},{default:d((()=>[r(i,{class:"detail-modal-content",onClick:a[4]||(a[4]=v((()=>{}),["stop"]))},{default:d((()=>[r(i,{class:"detail-modal-header"},{default:d((()=>[r(n,{class:"detail-modal-title"},{default:d((()=>[p("运维记录详情")])),_:1}),r(i,{class:"detail-modal-close",onClick:o.closeDetailModal},{default:d((()=>[r(n,{class:"close-icon"},{default:d((()=>[p("×")])),_:1})])),_:1},8,["onClick"])])),_:1}),r(N,{class:"detail-modal-body","scroll-y":""},{default:d((()=>[r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("计划维护日期:")])),_:1}),r(n,{class:"detail-form-value"},{default:d((()=>[p(g(o.formatDate(s.currentRecord.planned_maintenance_date)||"-"),1)])),_:1})])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("实际维护日期:")])),_:1}),r(n,{class:"detail-form-value"},{default:d((()=>[p(g(o.formatDate(s.currentRecord.maintenance_date)||"-"),1)])),_:1})])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("负责人:")])),_:1}),r(n,{class:"detail-form-value"},{default:d((()=>[p(g(s.currentRecord.responsible_admin?s.currentRecord.responsible_admin.name:"-"),1)])),_:1})])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("运维内容:")])),_:1}),r(n,{class:"detail-form-value"},{default:d((()=>[p(g(s.currentRecord.content||"-"),1)])),_:1})])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("维护备注:")])),_:1}),r(n,{class:"detail-form-value"},{default:d((()=>[p(g(s.currentRecord.maintenance_content||"-"),1)])),_:1})])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("维护照片:")])),_:1}),s.currentRecord.files&&s.currentRecord.files.length?(_(),u(i,{key:0,class:"detail-photo-gallery"},{default:d((()=>[(_(!0),c(f,null,y(s.currentRecord.files,((e,a)=>(_(),u(q,{key:"file-"+a,src:e.url,class:"detail-photo-preview",mode:"aspectFill",onClick:a=>o.previewImage(e.url,s.currentRecord.files.map((e=>e.url)))},null,8,["src","onClick"])))),128))])),_:1})):(_(),u(n,{key:1,class:"detail-form-value"},{default:d((()=>[p("-")])),_:1}))])),_:1}),r(i,{class:"detail-form-group"},{default:d((()=>[r(n,{class:"detail-form-label"},{default:d((()=>[p("签名照片:")])),_:1}),s.currentRecord.sign&&s.currentRecord.sign.url?(_(),u(i,{key:0,class:"detail-photo-gallery"},{default:d((()=>[r(q,{src:s.currentRecord.sign.url,class:"detail-sign-preview",mode:"aspectFill",onClick:a[3]||(a[3]=e=>o.previewImage(s.currentRecord.sign.url,[s.currentRecord.sign.url]))},null,8,["src"])])),_:1})):(_(),u(n,{key:1,class:"detail-form-value"},{default:d((()=>[p("-")])),_:1}))])),_:1})])),_:1}),r(i,{class:"detail-modal-footer"},{default:d((()=>[r(S,{class:"modal-btn submit-btn",onClick:o.closeDetailModal},{default:d((()=>[p("关闭")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["onClick"])):m("",!0),s.showCompleteModal?(_(),u(i,{key:2,class:"complete-modal",onClick:o.closeCompleteModal},{default:d((()=>[r(i,{class:"complete-modal-content",onClick:a[6]||(a[6]=v((()=>{}),["stop"]))},{default:d((()=>[r(i,{class:"complete-modal-header"},{default:d((()=>[r(n,{class:"complete-modal-title"},{default:d((()=>[p("完成维护")])),_:1}),r(i,{class:"complete-modal-close",onClick:o.closeCompleteModal},{default:d((()=>[r(n,{class:"close-icon"},{default:d((()=>[p("×")])),_:1})])),_:1},8,["onClick"])])),_:1}),r(N,{class:"complete-modal-body","scroll-y":""},{default:d((()=>[r(i,{class:"complete-form-group"},{default:d((()=>[r(n,{class:"complete-form-label"},{default:d((()=>[p("实际维护日期")])),_:1}),r(P,{mode:"date",value:s.completeForm.actual_date,onChange:o.onDateChange},{default:d((()=>[r(i,{class:"complete-form-input"},{default:d((()=>[r(n,{class:b(s.completeForm.actual_date?"input-value":"input-placeholder")},{default:d((()=>[p(g(s.completeForm.actual_date||"请选择实际维护日期"),1)])),_:1},8,["class"])])),_:1})])),_:1},8,["value","onChange"])])),_:1}),r(i,{class:"complete-form-group"},{default:d((()=>[r(n,{class:"complete-form-label"},{default:d((()=>[p("维护备注")])),_:1}),r(T,{class:"complete-form-textarea",modelValue:s.completeForm.notes,"onUpdate:modelValue":a[5]||(a[5]=e=>s.completeForm.notes=e),placeholder:"请输入维护备注",maxlength:500},null,8,["modelValue"])])),_:1}),r(i,{class:"complete-form-group"},{default:d((()=>[r(n,{class:"complete-form-label"},{default:d((()=>[p("上传图片")])),_:1}),r(i,{class:"complete-photo-upload"},{default:d((()=>[(_(!0),c(f,null,y(s.completeForm.photos,((e,a)=>(_(),u(i,{key:a,class:"complete-photo-preview"},{default:d((()=>[r(q,{src:e.url,mode:"aspectFill",class:"complete-photo-img"},null,8,["src"]),r(i,{class:"complete-photo-del",onClick:e=>o.removeCompletePhoto(a)},{default:d((()=>[r(n,{class:"delete-icon"},{default:d((()=>[p("×")])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)))),128)),s.completeForm.photos.length<9?(_(),u(S,{key:0,class:"complete-photo-btn",onClick:o.chooseCompletePhoto},{default:d((()=>[r(n,{class:"iconfont icon-camera"}),r(n,{class:"btn-text"},{default:d((()=>[p("上传照片")])),_:1})])),_:1},8,["onClick"])):m("",!0)])),_:1})])),_:1}),r(i,{class:"complete-form-group"},{default:d((()=>[r(n,{class:"complete-form-label"},{default:d((()=>[p("签名")])),_:1}),r(i,{class:"signature-wrapper"},{default:d((()=>[r(z,{"canvas-id":"signatureCanvas",class:"signature-canvas","disable-scroll":"true",onTouchstart:o.onTouchStart,onTouchmove:o.onTouchMove,onTouchend:o.onTouchEnd},null,8,["onTouchstart","onTouchmove","onTouchend"]),r(i,{class:"signature-actions"},{default:d((()=>[r(S,{class:"signature-btn",onClick:o.clearSignature},{default:d((()=>[p("清除签名")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1}),r(i,{class:"complete-modal-footer"},{default:d((()=>[r(S,{class:"modal-btn cancel-btn",onClick:o.closeCompleteModal},{default:d((()=>[p("取消")])),_:1},8,["onClick"]),r(S,{class:"modal-btn submit-btn",onClick:o.submitCompleteMaintenance},{default:d((()=>[p("确认完成")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["onClick"])):m("",!0)],64)}],["__scopeId","data-v-d025f7c1"]]);export{V as default}; diff --git a/unpackage/dist/build/web/assets/pages-inventory-inventory.kBIVsz8T.js b/unpackage/dist/build/web/assets/pages-inventory-inventory.kBIVsz8T.js deleted file mode 100644 index a69a452..0000000 --- a/unpackage/dist/build/web/assets/pages-inventory-inventory.kBIVsz8T.js +++ /dev/null @@ -1 +0,0 @@ -import{s as e,B as a,b as l,h as t,r as s,c as i,w as o,m as n,o as d,d as r,e as u,t as c,j as f,f as m,i as _,F as y,p as h,I as g,C as p,l as b,x as v}from"./index-AvyRkr7C.js";import{c as w,u as k,s as x}from"./api.BGBfCZZa.js";import{_ as C}from"./_plugin-vue_export-helper.BCo6x5W8.js";const N=C({data:()=>({isViewMode:!1,stockQty:"",countQty:"",remark:"",photo:"",photos:[],material_info_id:"",firstCategory:"-",secondCategory:"-",categoryName:"-",materialName:"-",materialCode:"-",materialType:"-",materialSpec:"-",materialSize:"-",unit:"-",batchNumber:"-",sequenceNumber:"-",waitNum:"-",productionDate:"-",storageDate:"-",materialStatus:"-",reserveMethod:"-",warehouseName:"-",shelfName:"-",shelfLayer:"-",levelCategory:"-",propertyInfo:"-",isFixedAsset:"-",fixedAssetCode:"-",reserveYears:"-",storageRequirement:"-",maintenanceRequirement:"-",maintenanceFrequency:"-",material_infos_plan_id:"",materialId:""}),onLoad(a){this.isViewMode="1"===a.view,this.date=this.getToday(),this.materialId=a.code,console.log("materialId:",this.materialId),this.materialId&&w(this.materialId).then((a=>{if(console.log("response:",a),a.data){const e=a.data;this.material_info_id=e.wuzibianma_material_infos_wuzibianma_relation.id;const l=e.wuzibianma_material_infos_wuzibianma_relation||{},t=l.fenlei_detail||{},s=e.wuzizhuangtai_detail||{},i=e.chubeifangshi_detail||{},o=e.dengjifenlei_detail||{},n=e.chanquanxinxi_detail||{},d=e.materialstorages||{},r=e.shelfs||{},u=e.equipment_maintain_config||{},c=e.material_info_type||"";if(c){const e=c.split("-");this.firstCategory=e[0]||"-",this.secondCategory=e.length>1?e[1]:e[0]||"-"}this.categoryName=t.name||"-",this.materialName=e.zichanmingcheng||"-",this.materialCode=e.wuzibianma||"-",this.materialType=e.wuzileixing||"-",this.materialSpec=l.guigexinghao||e.guigexinghao||"-",this.materialSize=l.wuziguige||"-",this.unit=l.jiliangdanwei||e.jiliangdanwei||"-",this.batchNumber=e.rukupici||"-",this.stockQty=e.zaikushuliang||e.inventorys_total||"0",this.sequenceNumber=e.shunxuhao||"-",this.waitNum=e.wait_num||"-",this.productionDate=e.shengchanriqi||"-",this.storageDate=e.rukuriqi||"-",this.materialStatus=s.value||"-",this.reserveMethod=i.value||"-",this.warehouseName=d.cangkumingcheng||"-",this.shelfName=r.huojiamingcheng||"-",this.shelfLayer=e.huojiaceng||"-",this.levelCategory=o.value||"-",this.propertyInfo=n.value||"-",this.isFixedAsset=e.shifouweigudingzichan||"-",this.fixedAssetCode=e.gudingzichanbianma||"-",this.reserveYears=e.chubeinianxian||"-",this.storageRequirement=e.cunfangyaoqiu||"-",this.maintenanceRequirement=e.weihuyaoqiu||"-",this.maintenanceFrequency=u.name||"-",this.material_infos_plan_id=e.material_infos_plan_id||""}else e({title:"未获取到物资信息",icon:"none"})})).catch((()=>{e({title:"获取物资信息失败",icon:"none"})}))},methods:{getToday(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},choosePhoto(){this.photos.length>=3?e({title:"最多上传3张照片",icon:"none"}):a({count:3-this.photos.length,success:e=>{this.photos=[...this.photos,...e.tempFilePaths]}})},deletePhoto(e){this.photos.splice(e,1)},async submit(){if(!this.countQty)return void e({title:"请输入盘点数量",icon:"none"});if(!/^(0|[1-9][0-9]*)$/.test(this.countQty))return void e({title:"盘点数量必须为0或正整数",icon:"none"});l({title:"提交中..."});let a=[];for(let l=0;l{console.log("res:",a),t(),!a||a.data&&void 0!==a.data.errcode?e({title:a.data.errmsg||"提交失败",icon:"none"}):(e({title:"盘点提交成功",icon:"success"}),setTimeout((()=>{s({url:"/pages/index/index"})}),1200))})).catch((()=>{t(),e({title:"提交失败",icon:"none"})}))}}},[["render",function(e,a,l,t,s,w){const k=h,x=n,C=g,N=p,q=v,z=b;return d(),i(x,{class:"inventory-bg"},{default:o((()=>[r(x,{class:"inventory-card"},{default:o((()=>[r(x,{class:"readonly-group"},{default:o((()=>[r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("一级分类")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.firstCategory),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("二级分类")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.secondCategory),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("所属种类")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.categoryName),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("物资名称")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.materialName),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("物资类型")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.materialType),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("物资型号")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.materialSpec),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("物资规格")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.materialSize),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("单位")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.unit),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("入库批次")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.batchNumber),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("在库数量")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.stockQty)+c(s.unit?" "+s.unit:""),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("顺序号")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.sequenceNumber),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("待出库")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.waitNum),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("生产日期")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.productionDate),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("入库日期")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.storageDate),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("物资状态")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.materialStatus),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("储备方式")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.reserveMethod),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("所在仓库")])),_:1}),r(x,{class:"readonly-value"},{default:o((()=>[u(c(s.warehouseName),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("所在货架")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.shelfName),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("所在货架层")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.shelfLayer),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("等级分类")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.levelCategory),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("产权信息")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.propertyInfo),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("是否为固定资产")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.isFixedAsset),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("固定资产编码")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.fixedAssetCode),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("储备年限")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.reserveYears),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("存放要求")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.storageRequirement),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("维护要求")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.maintenanceRequirement),1)])),_:1})])),_:1}),r(x,{class:"readonly-item"},{default:o((()=>[r(k,{class:"readonly-label"},{default:o((()=>[u("保养频次")])),_:1}),r(k,{class:"readonly-value"},{default:o((()=>[u(c(s.maintenanceFrequency),1)])),_:1})])),_:1})])),_:1}),s.isViewMode?f("",!0):(d(),i(x,{key:0,class:"form-group"},{default:o((()=>[r(k,{class:"form-label"},{default:o((()=>[u("盘点数量")])),_:1}),r(C,{class:"form-input",type:"number",modelValue:s.countQty,"onUpdate:modelValue":a[0]||(a[0]=e=>s.countQty=e),placeholder:"请输入盘点数量"},null,8,["modelValue"])])),_:1})),s.isViewMode?f("",!0):(d(),i(x,{key:1,class:"form-group"},{default:o((()=>[r(k,{class:"form-label"},{default:o((()=>[u("盘点备注")])),_:1}),r(N,{class:"form-textarea",modelValue:s.remark,"onUpdate:modelValue":a[1]||(a[1]=e=>s.remark=e),placeholder:"请输入备注信息"},null,8,["modelValue"])])),_:1})),s.isViewMode?f("",!0):(d(),i(x,{key:2,class:"form-group"},{default:o((()=>[r(k,{class:"form-label"},{default:o((()=>[u("照片上传")])),_:1}),r(x,{class:"photo-upload"},{default:o((()=>[(d(!0),m(y,null,_(s.photos,((e,a)=>(d(),i(x,{key:a,class:"photo-preview"},{default:o((()=>[r(q,{src:e,mode:"aspectFill",class:"photo-img"},null,8,["src"]),r(x,{class:"photo-del",onClick:e=>w.deletePhoto(a)},{default:o((()=>[r(k,{class:"delete-icon"},{default:o((()=>[u("×")])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)))),128)),s.photos.length<3?(d(),i(z,{key:0,class:"photo-btn",onClick:w.choosePhoto},{default:o((()=>[r(k,{class:"iconfont icon-camera"}),r(k,{class:"btn-text"},{default:o((()=>[u("上传照片")])),_:1})])),_:1},8,["onClick"])):f("",!0)])),_:1})])),_:1})),s.isViewMode?f("",!0):(d(),i(z,{key:3,class:"submit-btn",onClick:w.submit},{default:o((()=>[u("提交盘点")])),_:1},8,["onClick"]))])),_:1})])),_:1})}],["__scopeId","data-v-3954e584"]]);export{N as default}; diff --git a/unpackage/dist/build/web/assets/pages-login-login.7v_elnvs.js b/unpackage/dist/build/web/assets/pages-login-login.BXgwkOkX.js similarity index 93% rename from unpackage/dist/build/web/assets/pages-login-login.7v_elnvs.js rename to unpackage/dist/build/web/assets/pages-login-login.BXgwkOkX.js index 6320364..1620966 100644 --- a/unpackage/dist/build/web/assets/pages-login-login.7v_elnvs.js +++ b/unpackage/dist/build/web/assets/pages-login-login.BXgwkOkX.js @@ -1 +1 @@ -import{s as a,b as e,h as s,y as l,z as o,c as t,w as n,m as d,o as r,d as c,e as i,p as u,I as m,l as p}from"./index-AvyRkr7C.js";import{l as f}from"./api.BGBfCZZa.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=_({data:()=>({username:"",password:""}),methods:{handleLogin(){this.username&&this.password?(e({title:"登录中...",mask:!0}),f(this.username,this.password).then((e=>{s(),console.log(e),e.data&&void 0!==e.data.errcode?a({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(console.log(e.data.access_token),e.data.access_token&&l("token",e.data.access_token),a({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{o({url:"/pages/index/index"})}),1500))})).catch((()=>{s(),a({title:"网络错误",icon:"none"})}))):a({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(a,e,s,l,o,f){const _=d,g=u,h=m,b=p;return r(),t(_,{class:"login-bg"},{default:n((()=>[c(_,{class:"login-card"},{default:n((()=>[c(_,{class:"login-title"},{default:n((()=>[i("欢迎登录")])),_:1}),c(_,{class:"login-subtitle"},{default:n((()=>[i("河道防汛物资管理系统")])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("用户名")])),_:1}),c(h,{class:"form-input",type:"text",modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=a=>o.username=a),placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("密码")])),_:1}),c(h,{class:"form-input",type:"password",modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=a=>o.password=a),placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),c(b,{class:"login-btn",onClick:f.handleLogin},{default:n((()=>[i("登 录")])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-973a11b9"]]);export{g as default}; +import{s as a,b as e,h as s,y as l,z as o,c as t,w as n,m as d,o as r,d as c,e as i,p as u,I as m,l as p}from"./index--qIYCxYV.js";import{l as f}from"./api.CI2LxOCM.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=_({data:()=>({username:"",password:""}),methods:{handleLogin(){this.username&&this.password?(e({title:"登录中...",mask:!0}),f(this.username,this.password).then((e=>{s(),console.log(e),e.data&&void 0!==e.data.errcode?a({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(console.log(e.data.access_token),e.data.access_token&&l("token",e.data.access_token),a({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{o({url:"/pages/index/index"})}),1500))})).catch((()=>{s(),a({title:"网络错误",icon:"none"})}))):a({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(a,e,s,l,o,f){const _=d,g=u,h=m,b=p;return r(),t(_,{class:"login-bg"},{default:n((()=>[c(_,{class:"login-card"},{default:n((()=>[c(_,{class:"login-title"},{default:n((()=>[i("欢迎登录")])),_:1}),c(_,{class:"login-subtitle"},{default:n((()=>[i("河道防汛物资管理系统")])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("用户名")])),_:1}),c(h,{class:"form-input",type:"text",modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=a=>o.username=a),placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("密码")])),_:1}),c(h,{class:"form-input",type:"password",modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=a=>o.password=a),placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),c(b,{class:"login-btn",onClick:f.handleLogin},{default:n((()=>[i("登 录")])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-973a11b9"]]);export{g as default}; diff --git a/unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.5c5rGa03.js b/unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.DNRi6IFP.js similarity index 97% rename from unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.5c5rGa03.js rename to unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.DNRi6IFP.js index 090dd3c..e304da2 100644 --- a/unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.5c5rGa03.js +++ b/unpackage/dist/build/web/assets/pages-plan-detail-plan-detail.DNRi6IFP.js @@ -1 +1 @@ -import{D as a,s as t,r as e,n as l,c as s,w as i,S as r,o as n,d as o,e as d,t as f,u as c,f as u,i as m,F as _,j as p,p as g,m as h,I as y,l as v,q as I}from"./index-AvyRkr7C.js";import{d as M}from"./api.BGBfCZZa.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=L({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(t){if(t.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(t.planInfo)),this.planId=this.planInfo.id}catch(e){console.error("解析计划信息失败:",e)}t.planId&&(this.planId=t.planId),a({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(a=!1){var l,s;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,a&&(this.materialPage=1,this.materialHasMore=!0);const i={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},r=await M(i);if(console.log("物资列表响应:",r),r.data&&40001===r.data.errcode)return t({title:(null==(l=r.data)?void 0:l.errmsg)||"获取物资列表失败",icon:"none"}),void e({url:"/pages/login/login"});if(r.data&&r.data.list){const t=r.data.list,e=t.data||[];this.materialList=a?e:[...this.materialList,...e],this.materialTotal=t.total||0,this.materialHasMore=e.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else t({title:(null==(s=r.data)?void 0:s.message)||"获取物资列表失败",icon:"none"})}catch(i){console.error("获取物资列表失败:",i),t({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:a=>({0:"未开始",1:"进行中",2:"已完成"}[a]||"未知状态"),getTypeText:a=>({1:"年度",2:"季度"}[a]||"未知类型"),getInventoryStatusText:a=>({0:"待盘点",1:"已盘点"}[a]||"待盘点"),formatDate(a){if(!a)return"";const t=new Date(a);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(a){console.log("开始盘点物资:",a),a.inventorys_id?l({url:`/pages/inventory/inventory?code=${a.inventorys_id}`}):t({title:"暂无盘点信息",icon:"none"})}}},[["render",function(a,t,e,l,M,L){const w=g,x=h,S=y,b=v,T=r;return n(),s(T,{class:"plan-detail-container","scroll-y":"",onScrolltolower:L.loadMoreMaterials,"lower-threshold":"100",onRefresherrefresh:L.refreshMaterials,"refresher-enabled":"true","refresher-triggered":M.materialLoading},{default:i((()=>[o(x,{class:"plan-info-card"},{default:i((()=>[o(x,{class:"plan-info-header"},{default:i((()=>[o(w,{class:"plan-info-title"},{default:i((()=>[d("盘点计划详情")])),_:1})])),_:1}),o(x,{class:"plan-info-content"},{default:i((()=>[o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("计划名称")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(M.planInfo.name||"暂无"),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("计划编号")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(M.planInfo.no||"暂无"),1)])),_:1})])),_:1})])),_:1}),o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("盘点类型")])),_:1}),o(w,{class:"info-value type-text"},{default:i((()=>[d(f(L.getTypeText(M.planInfo.type)),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("物资数量")])),_:1}),o(w,{class:"info-value count-text"},{default:i((()=>[d(f(M.planInfo.chart_total||0)+" 项",1)])),_:1})])),_:1})])),_:1}),o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("开始时间")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(L.formatDate(M.planInfo.start_date)),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("结束时间")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(L.formatDate(M.planInfo.end_date)),1)])),_:1})])),_:1})])),_:1}),o(x,{class:"status-row"},{default:i((()=>[o(x,{class:"status-item"},{default:i((()=>[o(w,{class:"status-label"},{default:i((()=>[d("计划状态")])),_:1}),o(x,{class:c(["status-badge","status-"+M.planInfo.status])},{default:i((()=>[o(w,{class:"status-text"},{default:i((()=>[d(f(L.getStatusText(M.planInfo.status)),1)])),_:1})])),_:1},8,["class"])])),_:1})])),_:1})])),_:1})])),_:1}),o(x,{class:"material-list-card"},{default:i((()=>[o(x,{class:"material-list-header"},{default:i((()=>[o(w,{class:"material-list-title"},{default:i((()=>[d("盘点物资列表")])),_:1}),o(w,{class:"material-count"},{default:i((()=>[d("共 "+f(M.materialTotal)+" 项",1)])),_:1})])),_:1}),o(x,{class:"material-search-bar"},{default:i((()=>[o(S,{type:"text",placeholder:"请输入物资名称",modelValue:M.materialKeyword,"onUpdate:modelValue":t[0]||(t[0]=a=>M.materialKeyword=a)},null,8,["modelValue"]),o(b,{size:"mini",type:"primary",onClick:L.searchMaterials},{default:i((()=>[d("搜索")])),_:1},8,["onClick"])])),_:1}),o(x,{class:"material-list"},{default:i((()=>[o(x,{class:"material-item",style:{"font-weight":"600"}},{default:i((()=>[o(x,{class:"material-info material-name-col"},{default:i((()=>[o(w,{class:"material-name"},{default:i((()=>[d("物资名称")])),_:1})])),_:1}),o(x,{class:"material-info material-model-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("物资型号")])),_:1})])),_:1}),o(x,{class:"material-info material-spec-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("物资规格")])),_:1})])),_:1}),o(x,{class:"material-info material-status-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("状态")])),_:1})])),_:1}),o(x,{class:"material-info material-action-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(n(!0),u(_,null,m(M.materialList,(a=>(n(),s(x,{class:"material-item",key:a.id},{default:i((()=>[o(x,{class:"material-info material-name-col"},{default:i((()=>[o(w,{class:"material-name"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.zichanmingcheng)||"未知物资"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-model-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.guigexinghao)||"暂无"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-spec-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.wuziguige)||"暂无"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-status-col"},{default:i((()=>[o(w,{class:c(["material-status","status-"+(a.status||0)])},{default:i((()=>[d(f(L.getInventoryStatusText(a.status)),1)])),_:2},1032,["class"])])),_:2},1024),o(x,{class:"material-info material-action-col"},{default:i((()=>[o(x,{class:"inventory-action-btn",onClick:I((t=>L.startInventory(a)),["stop"])},{default:i((()=>[o(w,{class:"inventory-btn-text"},{default:i((()=>[d("盘点")])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),M.materialLoading?(n(),s(x,{key:0,class:"load-more"},{default:i((()=>[o(x,{class:"loading-spinner"}),o(w,{class:"loading-text"},{default:i((()=>[d("加载中...")])),_:1})])),_:1})):!M.materialHasMore&&M.materialList.length>0?(n(),s(x,{key:1,class:"load-more"},{default:i((()=>[o(w,{class:"no-more-text"},{default:i((()=>[d("— 没有更多数据了 —")])),_:1})])),_:1})):p("",!0)])),_:1})])),_:1},8,["onScrolltolower","onRefresherrefresh","refresher-triggered"])}],["__scopeId","data-v-6986c331"]]);export{w as default}; +import{K as a,s as t,r as e,n as l,c as s,w as i,S as r,o as n,d as o,e as d,t as f,u as c,f as u,i as m,F as _,j as p,p as g,m as h,I as y,l as v,q as I}from"./index--qIYCxYV.js";import{h as M}from"./api.CI2LxOCM.js";import{_ as L}from"./_plugin-vue_export-helper.BCo6x5W8.js";const w=L({data:()=>({planId:null,planInfo:{},materialList:[],materialPage:1,materialPageSize:100,materialTotal:0,materialLoading:!1,materialHasMore:!0,materialKeyword:""}),onLoad(t){if(t.planInfo)try{this.planInfo=JSON.parse(decodeURIComponent(t.planInfo)),this.planId=this.planInfo.id}catch(e){console.error("解析计划信息失败:",e)}t.planId&&(this.planId=t.planId),a({title:this.planInfo.name||"盘点计划详情"}),this.getMaterialList(!0)},methods:{searchMaterials(){this.getMaterialList(!0)},async getMaterialList(a=!1){var l,s;if(!this.materialLoading&&this.planId)try{this.materialLoading=!0,a&&(this.materialPage=1,this.materialHasMore=!0);const i={page:this.materialPage,page_size:this.materialPageSize,sort_type:"DESC",sort_name:"status",keyword:this.materialKeyword,"filter[0][key]":"material_infos_plan_id","filter[0][op]":"eq","filter[0][value]":this.planId},r=await M(i);if(console.log("物资列表响应:",r),r.data&&40001===r.data.errcode)return t({title:(null==(l=r.data)?void 0:l.errmsg)||"获取物资列表失败",icon:"none"}),void e({url:"/pages/login/login"});if(r.data&&r.data.list){const t=r.data.list,e=t.data||[];this.materialList=a?e:[...this.materialList,...e],this.materialTotal=t.total||0,this.materialHasMore=e.length===this.materialPageSize,this.materialHasMore&&this.materialPage++}else t({title:(null==(s=r.data)?void 0:s.message)||"获取物资列表失败",icon:"none"})}catch(i){console.error("获取物资列表失败:",i),t({title:"获取物资列表失败",icon:"none"})}finally{this.materialLoading=!1}},refreshMaterials(){this.getMaterialList(!0)},loadMoreMaterials(){this.materialHasMore&&!this.materialLoading&&this.getMaterialList(!1)},getStatusText:a=>({0:"未开始",1:"进行中",2:"已完成"}[a]||"未知状态"),getTypeText:a=>({1:"年度",2:"季度"}[a]||"未知类型"),getInventoryStatusText:a=>({0:"待盘点",1:"已盘点"}[a]||"待盘点"),formatDate(a){if(!a)return"";const t=new Date(a);return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`},startInventory(a){console.log("开始盘点物资:",a),a.inventorys_id?l({url:`/pages/inventory/inventory?code=${a.inventorys_id}`}):t({title:"暂无盘点信息",icon:"none"})}}},[["render",function(a,t,e,l,M,L){const w=g,x=h,S=y,b=v,T=r;return n(),s(T,{class:"plan-detail-container","scroll-y":"",onScrolltolower:L.loadMoreMaterials,"lower-threshold":"100",onRefresherrefresh:L.refreshMaterials,"refresher-enabled":"true","refresher-triggered":M.materialLoading},{default:i((()=>[o(x,{class:"plan-info-card"},{default:i((()=>[o(x,{class:"plan-info-header"},{default:i((()=>[o(w,{class:"plan-info-title"},{default:i((()=>[d("盘点计划详情")])),_:1})])),_:1}),o(x,{class:"plan-info-content"},{default:i((()=>[o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("计划名称")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(M.planInfo.name||"暂无"),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("计划编号")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(M.planInfo.no||"暂无"),1)])),_:1})])),_:1})])),_:1}),o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("盘点类型")])),_:1}),o(w,{class:"info-value type-text"},{default:i((()=>[d(f(L.getTypeText(M.planInfo.type)),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("物资数量")])),_:1}),o(w,{class:"info-value count-text"},{default:i((()=>[d(f(M.planInfo.chart_total||0)+" 项",1)])),_:1})])),_:1})])),_:1}),o(x,{class:"info-row"},{default:i((()=>[o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("开始时间")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(L.formatDate(M.planInfo.start_date)),1)])),_:1})])),_:1}),o(x,{class:"info-item"},{default:i((()=>[o(w,{class:"info-label"},{default:i((()=>[d("结束时间")])),_:1}),o(w,{class:"info-value"},{default:i((()=>[d(f(L.formatDate(M.planInfo.end_date)),1)])),_:1})])),_:1})])),_:1}),o(x,{class:"status-row"},{default:i((()=>[o(x,{class:"status-item"},{default:i((()=>[o(w,{class:"status-label"},{default:i((()=>[d("计划状态")])),_:1}),o(x,{class:c(["status-badge","status-"+M.planInfo.status])},{default:i((()=>[o(w,{class:"status-text"},{default:i((()=>[d(f(L.getStatusText(M.planInfo.status)),1)])),_:1})])),_:1},8,["class"])])),_:1})])),_:1})])),_:1})])),_:1}),o(x,{class:"material-list-card"},{default:i((()=>[o(x,{class:"material-list-header"},{default:i((()=>[o(w,{class:"material-list-title"},{default:i((()=>[d("盘点物资列表")])),_:1}),o(w,{class:"material-count"},{default:i((()=>[d("共 "+f(M.materialTotal)+" 项",1)])),_:1})])),_:1}),o(x,{class:"material-search-bar"},{default:i((()=>[o(S,{type:"text",placeholder:"请输入物资名称",modelValue:M.materialKeyword,"onUpdate:modelValue":t[0]||(t[0]=a=>M.materialKeyword=a)},null,8,["modelValue"]),o(b,{size:"mini",type:"primary",onClick:L.searchMaterials},{default:i((()=>[d("搜索")])),_:1},8,["onClick"])])),_:1}),o(x,{class:"material-list"},{default:i((()=>[o(x,{class:"material-item",style:{"font-weight":"600"}},{default:i((()=>[o(x,{class:"material-info material-name-col"},{default:i((()=>[o(w,{class:"material-name"},{default:i((()=>[d("物资名称")])),_:1})])),_:1}),o(x,{class:"material-info material-model-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("物资型号")])),_:1})])),_:1}),o(x,{class:"material-info material-spec-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("物资规格")])),_:1})])),_:1}),o(x,{class:"material-info material-status-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("状态")])),_:1})])),_:1}),o(x,{class:"material-info material-action-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>[d("操作")])),_:1})])),_:1})])),_:1}),(n(!0),u(_,null,m(M.materialList,(a=>(n(),s(x,{class:"material-item",key:a.id},{default:i((()=>[o(x,{class:"material-info material-name-col"},{default:i((()=>[o(w,{class:"material-name"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.zichanmingcheng)||"未知物资"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-model-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.guigexinghao)||"暂无"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-spec-col"},{default:i((()=>[o(w,{class:"material-time"},{default:i((()=>{var t;return[d(f((null==(t=a.inventory)?void 0:t.wuziguige)||"暂无"),1)]})),_:2},1024)])),_:2},1024),o(x,{class:"material-info material-status-col"},{default:i((()=>[o(w,{class:c(["material-status","status-"+(a.status||0)])},{default:i((()=>[d(f(L.getInventoryStatusText(a.status)),1)])),_:2},1032,["class"])])),_:2},1024),o(x,{class:"material-info material-action-col"},{default:i((()=>[o(x,{class:"inventory-action-btn",onClick:I((t=>L.startInventory(a)),["stop"])},{default:i((()=>[o(w,{class:"inventory-btn-text"},{default:i((()=>[d("盘点")])),_:1})])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),M.materialLoading?(n(),s(x,{key:0,class:"load-more"},{default:i((()=>[o(x,{class:"loading-spinner"}),o(w,{class:"loading-text"},{default:i((()=>[d("加载中...")])),_:1})])),_:1})):!M.materialHasMore&&M.materialList.length>0?(n(),s(x,{key:1,class:"load-more"},{default:i((()=>[o(w,{class:"no-more-text"},{default:i((()=>[d("— 没有更多数据了 —")])),_:1})])),_:1})):p("",!0)])),_:1})])),_:1},8,["onScrolltolower","onRefresherrefresh","refresher-triggered"])}],["__scopeId","data-v-6986c331"]]);export{w as default}; diff --git a/unpackage/dist/build/web/assets/pages-profile-profile.DrOqm1nk.js b/unpackage/dist/build/web/assets/pages-profile-profile.D6YsSPp2.js similarity index 92% rename from unpackage/dist/build/web/assets/pages-profile-profile.DrOqm1nk.js rename to unpackage/dist/build/web/assets/pages-profile-profile.D6YsSPp2.js index 3f97aa5..2dca6c2 100644 --- a/unpackage/dist/build/web/assets/pages-profile-profile.DrOqm1nk.js +++ b/unpackage/dist/build/web/assets/pages-profile-profile.D6YsSPp2.js @@ -1 +1 @@ -import{s as a,v as s,r as e,c as t,w as l,m as o,o as n,d as c,e as r,t as u,x as f,p as i,l as d}from"./index-AvyRkr7C.js";import{b as m}from"./api.BGBfCZZa.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=_({data:()=>({userInfo:{}}),onShow(){m().then((s=>{s.data?(console.log("返回数据",s.data),this.userInfo=s.data):a({title:s.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{a({title:"网络错误",icon:"none"})}))},methods:{logout(){s("token"),e({url:"/pages/login/login"})}}},[["render",function(a,s,e,m,_,p){const g=f,v=o,I=i,b=d;return n(),t(v,{class:"profile-container"},{default:l((()=>[c(v,{class:"avatar-section"},{default:l((()=>[c(g,{class:"avatar",src:_.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])])),_:1}),c(v,{class:"info-section"},{default:l((()=>[c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("用户名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.username||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("姓名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.name||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("部门:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.department&&_.userInfo.department.name||"-"),1)])),_:1})])),_:1})])),_:1}),c(b,{class:"logout-btn",onClick:p.logout},{default:l((()=>[r("退出登录")])),_:1},8,["onClick"])])),_:1})}],["__scopeId","data-v-2ebc68cc"]]);export{p as default}; +import{s as a,v as s,r as e,c as t,w as l,m as o,o as n,d as c,e as r,t as u,x as f,p as i,l as d}from"./index--qIYCxYV.js";import{b as m}from"./api.CI2LxOCM.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=_({data:()=>({userInfo:{}}),onShow(){m().then((s=>{s.data?(console.log("返回数据",s.data),this.userInfo=s.data):a({title:s.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{a({title:"网络错误",icon:"none"})}))},methods:{logout(){s("token"),e({url:"/pages/login/login"})}}},[["render",function(a,s,e,m,_,p){const g=f,v=o,I=i,b=d;return n(),t(v,{class:"profile-container"},{default:l((()=>[c(v,{class:"avatar-section"},{default:l((()=>[c(g,{class:"avatar",src:_.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])])),_:1}),c(v,{class:"info-section"},{default:l((()=>[c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("用户名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.username||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("姓名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.name||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("部门:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.department&&_.userInfo.department.name||"-"),1)])),_:1})])),_:1})])),_:1}),c(b,{class:"logout-btn",onClick:p.logout},{default:l((()=>[r("退出登录")])),_:1},8,["onClick"])])),_:1})}],["__scopeId","data-v-2ebc68cc"]]);export{p as default}; diff --git a/unpackage/dist/build/web/assets/pages-scan-scan.LnRS99dn.js b/unpackage/dist/build/web/assets/pages-scan-scan.BIBZEr_x.js similarity index 92% rename from unpackage/dist/build/web/assets/pages-scan-scan.LnRS99dn.js rename to unpackage/dist/build/web/assets/pages-scan-scan.BIBZEr_x.js index 8a445b7..e0eeda7 100644 --- a/unpackage/dist/build/web/assets/pages-scan-scan.LnRS99dn.js +++ b/unpackage/dist/build/web/assets/pages-scan-scan.BIBZEr_x.js @@ -1 +1 @@ -import{A as s,s as a,c as e,w as t,m as l,o as c,d as u,e as n,t as r,j as o,l as d,p as f}from"./index-AvyRkr7C.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=i({data:()=>({result:""}),methods:{doScan(){s({success:s=>{this.result=s.result},fail:()=>{a({title:"扫码失败",icon:"none"})}})}}},[["render",function(s,a,i,_,p,m){const b=l,h=d,j=f;return c(),e(b,{class:"scan-bg"},{default:t((()=>[u(b,{class:"scan-title"},{default:t((()=>[n("扫码盘点")])),_:1}),u(h,{class:"scan-btn",onClick:m.doScan},{default:t((()=>[n("点击开始扫码")])),_:1},8,["onClick"]),p.result?(c(),e(b,{key:0,class:"scan-result"},{default:t((()=>[u(j,{class:"result-label"},{default:t((()=>[n("扫码结果:")])),_:1}),u(j,{class:"result-value"},{default:t((()=>[n(r(p.result),1)])),_:1})])),_:1})):o("",!0)])),_:1})}],["__scopeId","data-v-237fd63b"]]);export{_ as default}; +import{A as s,s as a,c as e,w as t,m as l,o as c,d as u,e as n,t as r,j as o,l as d,p as f}from"./index--qIYCxYV.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=i({data:()=>({result:""}),methods:{doScan(){s({success:s=>{this.result=s.result},fail:()=>{a({title:"扫码失败",icon:"none"})}})}}},[["render",function(s,a,i,_,p,m){const b=l,h=d,j=f;return c(),e(b,{class:"scan-bg"},{default:t((()=>[u(b,{class:"scan-title"},{default:t((()=>[n("扫码盘点")])),_:1}),u(h,{class:"scan-btn",onClick:m.doScan},{default:t((()=>[n("点击开始扫码")])),_:1},8,["onClick"]),p.result?(c(),e(b,{key:0,class:"scan-result"},{default:t((()=>[u(j,{class:"result-label"},{default:t((()=>[n("扫码结果:")])),_:1}),u(j,{class:"result-value"},{default:t((()=>[n(r(p.result),1)])),_:1})])),_:1})):o("",!0)])),_:1})}],["__scopeId","data-v-237fd63b"]]);export{_ as default}; diff --git a/unpackage/dist/build/web/assets/uni.698555fb.css b/unpackage/dist/build/web/assets/uni.698555fb.css new file mode 100644 index 0000000..d6022be --- /dev/null +++ b/unpackage/dist/build/web/assets/uni.698555fb.css @@ -0,0 +1 @@ +uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(0deg,rgba(255,255,255,.95),rgba(255,255,255,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:var(--picker-view-column-indicator-height);overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}uni-textarea[auto-height=true]{height:fit-content!important}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-view{display:block}uni-view[hidden]{display:none}uni-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box}.uni-modal{position:fixed;z-index:999;width:80%;max-width:300px;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;text-align:center;border-radius:3px;overflow:hidden}.uni-modal *{box-sizing:border-box}.uni-modal__hd{padding:1em 1.6em .3em}.uni-modal__title{font-weight:400;font-size:18px;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-modal__bd{padding:1.3em 1.6em;min-height:40px;font-size:15px;line-height:1.4;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;color:#999;max-height:400px;overflow-x:hidden;overflow-y:auto}.uni-modal__textarea{resize:none;border:0;margin:0;width:90%;padding:10px;font-size:20px;outline:none;border:none;background-color:#eee;text-decoration:inherit;line-height:1.2}.uni-modal__ft{position:relative;line-height:48px;font-size:18px;display:flex}.uni-modal__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleY(.5)}.uni-modal__btn{display:block;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;cursor:pointer}.uni-modal__btn:active{background-color:#eee}.uni-modal__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleX(.5)}.uni-modal__btn:first-child:after{display:none}.uni-modal__btn_default{color:#353535}.uni-modal__btn_primary{color:#007aff}uni-toast{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box;pointer-events:none;font-size:16px}.uni-sample-toast{position:fixed;z-index:999;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;max-width:80%}.uni-simple-toast__text{display:inline-block;vertical-align:middle;color:#fff;background-color:rgba(17,17,17,.7);padding:10px 20px;border-radius:5px;font-size:13px;text-align:center;max-width:100%;word-break:break-word;white-space:normal}uni-toast .uni-mask{pointer-events:auto}.uni-toast{position:fixed;z-index:999;width:8em;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(17,17,17,.7);text-align:center;border-radius:5px;color:#fff}.uni-toast *{box-sizing:border-box}.uni-toast__icon{margin:20px 0 0;width:38px!important;height:38px!important;vertical-align:baseline!important}.uni-icon_toast{margin:15px 0 0}.uni-icon_toast.uni-icon-success-no-circle:before{color:#fff;font-size:55px}.uni-icon_toast.uni-loading{margin:20px 0 0;width:38px;height:38px;vertical-align:baseline}.uni-toast__content{margin:0 0 15px}uni-picker{position:relative;display:block;cursor:pointer}uni-picker[hidden]{display:none}uni-picker[disabled]{cursor:not-allowed}.uni-picker-container{display:none;position:fixed;left:0;right:0;top:0;bottom:0;box-sizing:border-box;z-index:999;font-size:16px}.uni-picker-container .uni-picker-custom *{box-sizing:border-box}.uni-picker-container .uni-picker-custom{position:fixed;left:0;bottom:0;transform:translateY(100%);backface-visibility:hidden;z-index:999;width:100%;background-color:#fff;visibility:hidden;transition:transform .3s,visibility .3s}.uni-picker-container .uni-picker-custom.uni-picker-toggle{visibility:visible;transform:translate(0)}.uni-picker-container .uni-picker-content{position:relative;display:block;width:100%;height:238px;background-color:#fff}.uni-picker-container .uni-picker-item{padding:0;height:34px;line-height:34px;text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-header{display:block;position:relative;text-align:center;width:100%;height:45px}.uni-picker-container .uni-picker-header:after{content:"";position:absolute;left:0;bottom:0;right:0;height:1px;clear:both;border-bottom:1px solid #e5e5e5;color:#e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-container .uni-picker-action{display:block;max-width:50%;top:0;height:100%;box-sizing:border-box;padding:0 14px;font-size:17px;line-height:45px;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-action.uni-picker-action-cancel{float:left;color:#888}.uni-picker-container .uni-picker-action.uni-picker-action-confirm{float:right;color:#007aff}.uni-picker-container .uni-picker-select{display:none}.uni-picker-system{position:absolute;display:none;display:block;top:0;left:0;width:100%;height:100%;overflow:hidden}.uni-picker-system>.uni-picker-system_input{position:absolute;border:none;height:100%;opacity:0;cursor:pointer}.uni-picker-system>.uni-picker-system_input.firefox{top:0;left:0;width:100%}.uni-picker-system>.uni-picker-system_input.chrome{top:0;left:0;width:2em;font-size:32px;height:32px}@media screen and (min-width: 500px) and (min-height: 500px){.uni-mask.uni-picker-mask{background:none}.uni-picker-container .uni-picker-custom{width:300px!important;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);opacity:0;border-radius:5px;transition:opacity .3s,visibility .3s;box-shadow:0 0 20px 5px rgba(0,0,0,.3)}.uni-picker-container .uni-picker-header{border-radius:5px 5px 0 0}.uni-picker-container .uni-picker-content{transform:translate(0 0);overflow:hidden;border-radius:0 0 5px 5px}.uni-picker-container .uni-picker-custom.uni-picker-toggle{opacity:1;transform:translate(-50%,-50%)}.uni-selector-select .uni-picker-header,.uni-selector-select .uni-picker-content{display:none}.uni-selector-select .uni-picker-select{display:block;max-height:300px;overflow:auto;background-color:#fff;border-radius:5px;padding:6px 0}.uni-selector-select .uni-picker-item{padding:0 10px;color:#555}.uni-selector-select .uni-picker-item:hover{background-color:#f6f6f6}.uni-selector-select .uni-picker-item.selected{color:#007aff}} diff --git a/unpackage/dist/build/web/assets/uni.d4d56438.css b/unpackage/dist/build/web/assets/uni.d4d56438.css deleted file mode 100644 index aeb15bf..0000000 --- a/unpackage/dist/build/web/assets/uni.d4d56438.css +++ /dev/null @@ -1 +0,0 @@ -uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}uni-textarea[auto-height=true]{height:fit-content!important}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-view{display:block}uni-view[hidden]{display:none}uni-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box}.uni-modal{position:fixed;z-index:999;width:80%;max-width:300px;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;text-align:center;border-radius:3px;overflow:hidden}.uni-modal *{box-sizing:border-box}.uni-modal__hd{padding:1em 1.6em .3em}.uni-modal__title{font-weight:400;font-size:18px;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-modal__bd{padding:1.3em 1.6em;min-height:40px;font-size:15px;line-height:1.4;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;color:#999;max-height:400px;overflow-x:hidden;overflow-y:auto}.uni-modal__textarea{resize:none;border:0;margin:0;width:90%;padding:10px;font-size:20px;outline:none;border:none;background-color:#eee;text-decoration:inherit;line-height:1.2}.uni-modal__ft{position:relative;line-height:48px;font-size:18px;display:flex}.uni-modal__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleY(.5)}.uni-modal__btn{display:block;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;cursor:pointer}.uni-modal__btn:active{background-color:#eee}.uni-modal__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleX(.5)}.uni-modal__btn:first-child:after{display:none}.uni-modal__btn_default{color:#353535}.uni-modal__btn_primary{color:#007aff}uni-toast{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box;pointer-events:none;font-size:16px}.uni-sample-toast{position:fixed;z-index:999;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;max-width:80%}.uni-simple-toast__text{display:inline-block;vertical-align:middle;color:#fff;background-color:rgba(17,17,17,.7);padding:10px 20px;border-radius:5px;font-size:13px;text-align:center;max-width:100%;word-break:break-word;white-space:normal}uni-toast .uni-mask{pointer-events:auto}.uni-toast{position:fixed;z-index:999;width:8em;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(17,17,17,.7);text-align:center;border-radius:5px;color:#fff}.uni-toast *{box-sizing:border-box}.uni-toast__icon{margin:20px 0 0;width:38px!important;height:38px!important;vertical-align:baseline!important}.uni-icon_toast{margin:15px 0 0}.uni-icon_toast.uni-icon-success-no-circle:before{color:#fff;font-size:55px}.uni-icon_toast.uni-loading{margin:20px 0 0;width:38px;height:38px;vertical-align:baseline}.uni-toast__content{margin:0 0 15px} diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 511804f..7f82356 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,7 +1,7 @@ - + + diff --git a/unpackage/release/apk/apk0109.apk b/unpackage/release/apk/apk0109.apk new file mode 100644 index 0000000..fd28efa Binary files /dev/null and b/unpackage/release/apk/apk0109.apk differ