diff --git a/FQA.md b/FQA.md new file mode 100644 index 0000000..e8db6e6 --- /dev/null +++ b/FQA.md @@ -0,0 +1,29 @@ +## 对讲(talk) + +在浏览器中使用麦克风是需要允许的,所以需要用户允许。 [获取麦克风权限](https://developer.mozilla.org/zh-CN/docs/Web/API/WebRTC_API/Build_a_phone_with_peerjs/Connect_peers/Get_microphone_permission) + +在 iframe 中使用需要配置 `allow="microphone"` + + +## [iframe](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/iframe) + +在iframe中,需要设置[同源策略](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Reference/Headers/Permissions-Policy#iframe)。 + +- [iframe 当全屏请求失败时](https://developer.mozilla.org/zh-CN/docs/Web/API/Fullscreen_API/Guide#%E5%BD%93%E5%85%A8%E5%B1%8F%E8%AF%B7%E6%B1%82%E5%A4%B1%E8%B4%A5%E6%97%B6) + +`allowfullscreen` 设置为 true 时,可以通过调用 ` +``` + +- [iframe 麦克风使用](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/iframe#allow) + +设置 `allow="microphone;"` 时,可以通过调用 ` +``` + diff --git a/demos/with-uniapp-vue3/package.json b/demos/with-uniapp-vue3/package.json index 0c7555c..7c47931 100644 --- a/demos/with-uniapp-vue3/package.json +++ b/demos/with-uniapp-vue3/package.json @@ -50,7 +50,7 @@ "@dcloudio/uni-mp-weixin": "3.0.0-4030620241128001", "@dcloudio/uni-mp-xhs": "3.0.0-4030620241128001", "@dcloudio/uni-quickapp-webview": "3.0.0-4030620241128001", - "ezuikit-js": "8.1.12-beta.2", + "ezuikit-js": "8.1.13-beta.1", "vue": "^3.4.21", "vue-i18n": "^9.1.9" }, diff --git a/demos/with-uniapp-vue3/pnpm-lock.yaml b/demos/with-uniapp-vue3/pnpm-lock.yaml new file mode 100644 index 0000000..be76255 --- /dev/null +++ b/demos/with-uniapp-vue3/pnpm-lock.yaml @@ -0,0 +1,7054 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + '@dcloudio/uni-app': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(@dcloudio/types@3.4.19)(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-app-harmony': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18) + '@dcloudio/uni-app-plus': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18) + '@dcloudio/uni-components': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-h5': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-alipay': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-baidu': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-jd': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-kuaishou': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-lark': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-qq': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-toutiao': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-weixin': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-xhs': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-quickapp-webview': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + ezuikit-js: + specifier: 8.1.13-beta.1 + version: 8.1.13-beta.1 + vue: + specifier: ^3.4.21 + version: 3.5.18(typescript@4.9.5) + vue-i18n: + specifier: ^9.1.9 + version: 9.14.5(vue@3.5.18) + +devDependencies: + '@dcloudio/types': + specifier: ^3.4.8 + version: 3.4.19 + '@dcloudio/uni-automator': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(jest-environment-node@27.5.1)(jest@27.0.4)(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-cli-shared': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-stacktracey': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001 + '@dcloudio/vite-plugin-uni': + specifier: 3.0.0-4030620241128001 + version: 3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18) + '@vue/runtime-core': + specifier: ^3.4.21 + version: 3.5.18 + '@vue/tsconfig': + specifier: ^0.1.3 + version: 0.1.3 + typescript: + specifier: ^4.9.4 + version: 4.9.5 + vite: + specifier: 5.2.8 + version: 5.2.8(terser@5.43.1) + vue-tsc: + specifier: ^1.0.24 + version: 1.8.27(typescript@4.9.5) + +packages: + + /@ampproject/remapping@2.3.0: + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/gen-mapping': 0.3.12 + '@jridgewell/trace-mapping': 0.3.29 + + /@antfu/utils@0.7.10: + resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} + + /@babel/code-frame@7.27.1: + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.27.1 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + /@babel/compat-data@7.28.0: + resolution: {integrity: sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==} + engines: {node: '>=6.9.0'} + + /@babel/core@7.28.0: + resolution: {integrity: sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': 2.3.0 + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.28.0 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) + '@babel/helpers': 7.28.2 + '@babel/parser': 7.28.0 + '@babel/template': 7.27.2 + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + convert-source-map: 2.0.0 + debug: 4.4.1 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + /@babel/generator@7.28.0: + resolution: {integrity: sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + '@jridgewell/gen-mapping': 0.3.12 + '@jridgewell/trace-mapping': 0.3.29 + jsesc: 3.1.0 + + /@babel/helper-annotate-as-pure@7.27.3: + resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.28.2 + dev: true + + /@babel/helper-compilation-targets@7.27.2: + resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/compat-data': 7.28.0 + '@babel/helper-validator-option': 7.27.1 + browserslist: 4.25.1 + lru-cache: 5.1.1 + semver: 6.3.1 + + /@babel/helper-create-class-features-plugin@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-QwGAmuvM17btKU5VqXfb+Giw4JcN0hjuufz3DYnpeVDvZLAObloM77bhMXiqry3Iio+Ai4phVRDwl6WU10+r5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + '@babel/helper-member-expression-to-functions': 7.27.1 + '@babel/helper-optimise-call-expression': 7.27.1 + '@babel/helper-replace-supers': 7.27.1(@babel/core@7.28.0) + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + '@babel/traverse': 7.28.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-create-regexp-features-plugin@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + regexpu-core: 6.2.0 + semver: 6.3.1 + dev: true + + /@babel/helper-define-polyfill-provider@0.6.5(@babel/core@7.28.0): + resolution: {integrity: sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-plugin-utils': 7.27.1 + debug: 4.4.1 + lodash.debounce: 4.0.8 + resolve: 1.22.10 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-globals@7.28.0: + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} + engines: {node: '>=6.9.0'} + + /@babel/helper-member-expression-to-functions@7.27.1: + resolution: {integrity: sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-module-imports@7.27.1: + resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + transitivePeerDependencies: + - supports-color + + /@babel/helper-module-transforms@7.27.3(@babel/core@7.28.0): + resolution: {integrity: sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + + /@babel/helper-optimise-call-expression@7.27.1: + resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.28.2 + dev: true + + /@babel/helper-plugin-utils@7.27.1: + resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-remap-async-to-generator@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + '@babel/helper-wrap-function': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-replace-supers@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-member-expression-to-functions': 7.27.1 + '@babel/helper-optimise-call-expression': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-skip-transparent-expression-wrappers@7.27.1: + resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-string-parser@7.27.1: + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + /@babel/helper-validator-identifier@7.27.1: + resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==} + engines: {node: '>=6.9.0'} + + /@babel/helper-validator-option@7.27.1: + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} + + /@babel/helper-wrap-function@7.27.1: + resolution: {integrity: sha512-NFJK2sHUvrjo8wAU/nQTWU890/zB2jj0qBcCbZbbf+005cAsv6tMjXz31fBign6M5ov1o0Bllu+9nbqkfsjjJQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.27.2 + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helpers@7.28.2: + resolution: {integrity: sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.27.2 + '@babel/types': 7.28.2 + + /@babel/parser@7.28.0: + resolution: {integrity: sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==} + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': 7.28.2 + + /@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-bugfix-safari-class-field-initializer-scope@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.13.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-6BpaYGDavZqkI6yT+KSPdpZFfpnd68UKXbcjI9pJ13pvHhPrCKWOOLp+ysvMeA+DxnhuPpgIaRpxRxo5A9t5jw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.28.0): + resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + dev: true + + /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.28.0): + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.28.0): + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.28.0): + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-import-assertions@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-import-attributes@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.28.0): + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-jsx@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.28.0): + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.28.0): + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.28.0): + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.28.0): + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.28.0): + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-typescript@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.28.0): + resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-arrow-functions@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-async-generator-functions@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-remap-async-to-generator': 7.27.1(@babel/core@7.28.0) + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-async-to-generator@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-remap-async-to-generator': 7.27.1(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-block-scoped-functions@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-block-scoping@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-gKKnwjpdx5sER/wl0WN0efUBFzF/56YZO0RJrSYP4CljXnP31ByY7fol89AzomdlLNzI36AvOTmYHsnZTCkq8Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-class-properties@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-class-static-block@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-s734HmYU78MVzZ++joYM+NkJusItbdRcbm+AGRgJCt3iA+yux0QpD9cBVdz3tKyrjVYWRl7j0mHSmv4lhV0aoA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.12.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-classes@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-IjM1IoJNw72AZFlj33Cu8X0q2XK/6AaVC3jQu+cgQ5lThWD5ajnuUAml80dqRmOhmPkTH8uAwnpMu9Rvj0LTRA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-globals': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-replace-supers': 7.27.1(@babel/core@7.28.0) + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-computed-properties@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/template': 7.27.2 + dev: true + + /@babel/plugin-transform-destructuring@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-v1nrSMBiKcodhsyJ4Gf+Z0U/yawmJDBOTpEB3mcQY52r9RIyPneGyAS/yM6seP/8I+mWI3elOMtT5dB8GJVs+A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-dotall-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-duplicate-keys@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-duplicate-named-capturing-groups-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-dynamic-import@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-explicit-resource-management@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-K8nhUcn3f6iB+P3gwCv/no7OdzOZQcKchW6N389V6PD8NUWKZHzndOd9sPDVbMoBsbmjMqlB4L9fm+fEFNVlwQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-destructuring': 7.28.0(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-exponentiation-operator@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-export-namespace-from@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-for-of@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-function-name@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-json-strings@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-literals@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-logical-assignment-operators@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-SJvDs5dXxiae4FbSL1aBJlG4wvl594N6YEVVn9e3JGulwioy6z3oPjx/sQBO3Y4NwUu5HNix6KJ3wBZoewcdbw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-member-expression-literals@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-modules-amd@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-commonjs@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-systemjs@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-modules-umd@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-named-capturing-groups-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-new-target@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-nullish-coalescing-operator@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-numeric-separator@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-object-rest-spread@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-9VNGikXxzu5eCiQjdE4IZn8sb9q7Xsk5EXLDBKUYg1e/Tve8/05+KJEtcxGxAgCY5t/BpKQM+JEL/yT4tvgiUA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-destructuring': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-parameters': 7.27.7(@babel/core@7.28.0) + '@babel/traverse': 7.28.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-object-super@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-replace-supers': 7.27.1(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-optional-catch-binding@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-optional-chaining@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-parameters@7.27.7(@babel/core@7.28.0): + resolution: {integrity: sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-private-methods@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-private-property-in-object@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-property-literals@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-regenerator@7.28.1(@babel/core@7.28.0): + resolution: {integrity: sha512-P0QiV/taaa3kXpLY+sXla5zec4E+4t4Aqc9ggHlfZ7a2cp8/x/Gv08jfwEtn9gnnYIMvHx6aoOZ8XJL8eU71Dg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-regexp-modifiers@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-reserved-words@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-shorthand-properties@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-spread@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-sticky-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-template-literals@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-typeof-symbol@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-typescript@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-4AEiDEBPIZvLQaWlc9liCavE0xRM0dNca41WtBeM3jgFptfUOSG9z0uteLhq6+3rq+WB6jIvUwKDTpXEHPJ2Vg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-annotate-as-pure': 7.27.3 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/plugin-transform-unicode-escapes@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-unicode-property-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-unicode-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/plugin-transform-unicode-sets-regex@7.27.1(@babel/core@7.28.0): + resolution: {integrity: sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) + '@babel/helper-plugin-utils': 7.27.1 + dev: true + + /@babel/preset-env@7.28.0(@babel/core@7.28.0): + resolution: {integrity: sha512-VmaxeGOwuDqzLl5JUkIRM1X2Qu2uKGxHEQWh+cvvbl7JuJRgKGJSfsEF/bUaxFhJl/XAyxBe7q7qSuTbKFuCyg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/compat-data': 7.28.0 + '@babel/core': 7.28.0 + '@babel/helper-compilation-targets': 7.27.2 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-validator-option': 7.27.1 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-bugfix-safari-class-field-initializer-scope': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.28.0) + '@babel/plugin-syntax-import-assertions': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-syntax-import-attributes': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.28.0) + '@babel/plugin-transform-arrow-functions': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-async-generator-functions': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-async-to-generator': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-block-scoped-functions': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-block-scoping': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-class-properties': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-class-static-block': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-classes': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-computed-properties': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-destructuring': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-dotall-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-duplicate-keys': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-duplicate-named-capturing-groups-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-dynamic-import': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-explicit-resource-management': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-exponentiation-operator': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-export-namespace-from': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-for-of': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-function-name': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-json-strings': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-literals': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-logical-assignment-operators': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-member-expression-literals': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-modules-amd': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-modules-systemjs': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-modules-umd': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-named-capturing-groups-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-new-target': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-nullish-coalescing-operator': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-numeric-separator': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-object-rest-spread': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-object-super': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-optional-catch-binding': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-parameters': 7.27.7(@babel/core@7.28.0) + '@babel/plugin-transform-private-methods': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-private-property-in-object': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-property-literals': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-regenerator': 7.28.1(@babel/core@7.28.0) + '@babel/plugin-transform-regexp-modifiers': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-reserved-words': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-shorthand-properties': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-spread': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-sticky-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-template-literals': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-typeof-symbol': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-unicode-escapes': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-unicode-property-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-unicode-regex': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-transform-unicode-sets-regex': 7.27.1(@babel/core@7.28.0) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.28.0) + babel-plugin-polyfill-corejs2: 0.4.14(@babel/core@7.28.0) + babel-plugin-polyfill-corejs3: 0.13.0(@babel/core@7.28.0) + babel-plugin-polyfill-regenerator: 0.6.5(@babel/core@7.28.0) + core-js-compat: 3.45.0 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.28.0): + resolution: {integrity: sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==} + peerDependencies: + '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/types': 7.28.2 + esutils: 2.0.3 + dev: true + + /@babel/runtime@7.28.2: + resolution: {integrity: sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==} + engines: {node: '>=6.9.0'} + dev: false + + /@babel/template@7.27.2: + resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + + /@babel/traverse@7.28.0: + resolution: {integrity: sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.28.0 + '@babel/helper-globals': 7.28.0 + '@babel/parser': 7.28.0 + '@babel/template': 7.27.2 + '@babel/types': 7.28.2 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + + /@babel/types@7.28.2: + resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + + /@bcoe/v8-coverage@0.2.3: + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + dev: true + + /@dcloudio/types@3.4.19: + resolution: {integrity: sha512-1foayOFEAQ+jnQLt3ACsovCNjer3/fXn1I2VBpmDOzs2nk/n4UHwRLAxZV/RpxRqaGOPEvKrO/Pq+VI6sAmuRw==} + + /@dcloudio/uni-app-harmony@3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-T2coKkZawltfsgvaPX8bfAQofmHTpkPiZB8Am3gcnkHRE/Z3NOOlk/Ko5EezuquSulTJvOkMMYcdyZcGZS4TLQ==} + dependencies: + '@dcloudio/uni-app-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18) + debug: 4.4.1 + fs-extra: 10.1.0 + licia: 1.48.0 + postcss-selector-parser: 6.1.2 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vite + - vue + dev: false + + /@dcloudio/uni-app-plus@3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-iSWCNQ682XKJ6K4U+hnNFFd/83wFkl66l2RvUNlq9DZalh5LnEO+W1/WqzIdeAr6KKB8gulNkTC+GAbGEOABDQ==} + dependencies: + '@dcloudio/uni-app-uts': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-app-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18) + '@dcloudio/uni-app-vue': 3.0.0-4030620241128001 + debug: 4.4.1 + fs-extra: 10.1.0 + licia: 1.48.0 + postcss-selector-parser: 6.1.2 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vite + - vue + dev: false + + /@dcloudio/uni-app-uts@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-VM4leJqf50UDR/9MMYAHxnKBNf13gpZWZUe8L11ai3zppubh+J12vaVBYmzAitOPCG6LaGnYSlYp3uxxGiEiLw==} + dependencies: + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-nvue-styler': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@jridgewell/gen-mapping': 0.3.12 + '@jridgewell/trace-mapping': 0.3.29 + '@rollup/pluginutils': 5.2.0 + '@vue/compiler-core': 3.4.21 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + '@vue/consolidate': 1.0.0 + '@vue/shared': 3.4.21 + debug: 4.4.1 + es-module-lexer: 1.7.0 + estree-walker: 2.0.2 + fs-extra: 10.1.0 + magic-string: 0.30.17 + picocolors: 1.1.1 + source-map-js: 1.2.1 + unimport: 3.14.6 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-app-vite@3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-sPSXJqU9zh26lKMPdDRqVjBH4mjXRLrjQGcUPqPNLTQ2TOBhhJtkmiBIYhhgvYgQ4SZ5zqRwXlBvFvyNxAHitA==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-nvue-styler': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@rollup/pluginutils': 5.2.0 + '@vitejs/plugin-vue': 5.1.0(vite@5.2.8)(vue@3.5.18) + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + debug: 4.4.1 + fs-extra: 10.1.0 + picocolors: 1.1.1 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vite + - vue + dev: false + + /@dcloudio/uni-app-vue@3.0.0-4030620241128001: + resolution: {integrity: sha512-BxblHfDWWmDW2+9M8TJwKNKCbvlmH0VGJvRYudF46vl7+6sRml/06YBy9KjhTRIY4WetN7IVYuSuA0PbH2HG+w==} + dev: false + + /@dcloudio/uni-app@3.0.0-4030620241128001(@dcloudio/types@3.4.19)(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-J+hIUT+d2RIIKygO+2tOgHPgWjFtnpTTLLBYd2QsXtxWGDqV2CRvf2FG4KzNf82P46OjUh54O+EJwvAcMFItCg==} + peerDependencies: + '@dcloudio/types': ^3.4.14 + dependencies: + '@dcloudio/types': 3.4.19 + '@dcloudio/uni-cloud': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-components': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-push': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@dcloudio/uni-stat': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-automator@3.0.0-4030620241128001(jest-environment-node@27.5.1)(jest@27.0.4)(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-TsJnM9yaSWTnw8eApaNMpdH/+VNC9rjwLDJ6vyMpsYPCxko7LVQmu6QlAbNYONBFvaM5P63qlbooinPvnue2sA==} + peerDependencies: + jest: 27.0.4 + jest-environment-node: 27.5.1 + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + address: 1.2.2 + cross-env: 7.0.3 + debug: 4.4.1 + default-gateway: 6.0.3 + fs-extra: 10.1.0 + jest: 27.0.4 + jest-environment-node: 27.5.1 + jsonc-parser: 3.3.1 + licia: 1.48.0 + merge: 2.1.1 + qrcode-reader: 1.0.4 + qrcode-terminal: 0.12.0 + ws: 8.18.3 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - bufferutil + - postcss + - rollup + - supports-color + - ts-node + - utf-8-validate + - vue + dev: true + + /@dcloudio/uni-cli-shared@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-GidAAGBxpSV+77hPLWAACYJDsrcgRXTay+NNO1HPx4ESlOzuUPh9bFWkZL+D5hYcE0uj9xpwX0rMX4hYxApJEw==} + engines: {node: ^14.18.0 || >=16.0.0} + dependencies: + '@ampproject/remapping': 2.3.0 + '@babel/code-frame': 7.27.1 + '@babel/core': 7.28.0 + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@intlify/core-base': 9.1.9 + '@intlify/shared': 9.1.9 + '@intlify/vue-devtools': 9.1.9 + '@rollup/pluginutils': 5.2.0 + '@vue/compiler-core': 3.4.21 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + '@vue/compiler-ssr': 3.4.21 + '@vue/server-renderer': 3.4.21(vue@3.5.18) + '@vue/shared': 3.4.21 + adm-zip: 0.5.16 + autoprefixer: 10.4.21(postcss@8.5.6) + base64url: 3.0.1 + chokidar: 3.6.0 + compare-versions: 3.6.0 + debug: 4.4.1 + es-module-lexer: 1.7.0 + esbuild: 0.20.2 + estree-walker: 2.0.2 + fast-glob: 3.3.3 + fs-extra: 10.1.0 + hash-sum: 2.0.0 + isbinaryfile: 5.0.4 + jsonc-parser: 3.3.1 + lines-and-columns: 2.0.4 + magic-string: 0.30.17 + merge: 2.1.1 + mime: 3.0.0 + module-alias: 2.2.3 + os-locale-s-fix: 1.0.8-fix-1 + picocolors: 1.1.1 + postcss-import: 14.1.0(postcss@8.5.6) + postcss-load-config: 3.1.4(postcss@8.5.6) + postcss-modules: 4.3.1(postcss@8.5.6) + postcss-selector-parser: 6.1.2 + resolve: 1.22.10 + source-map-js: 1.2.1 + tapable: 2.2.2 + unplugin-auto-import: 0.18.6 + xregexp: 3.1.0 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + + /@dcloudio/uni-cloud@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-UcQwaBEoQHlA/SNxFij4kITjbbeNmOsOc3VC3PekNDL2rWvNTnH/H5ZWgTmLGn/7mmBmZfAzoF79c1KlVrHdJg==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + fast-glob: 3.3.3 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-components@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-2yZko6In0XAeEHu9WqOjPj3a5r4wF53KDRRvRoxWBEvKg6byUmVg1NEl68N4cE4sa1I6P99jQO4D/SeI/6Dp7w==} + dependencies: + '@dcloudio/uni-cloud': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-h5': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-h5-vite@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-z3tIO2FPQapUV6pj42cvNBrc6Uk2sH54GIC7uxdOGM2n3MWQJccycYaXqATLaMUFIHlHwQP4l+Ozw0dqTzc2mQ==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@rollup/pluginutils': 5.2.0 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + '@vue/server-renderer': 3.4.21(vue@3.5.18) + '@vue/shared': 3.4.21 + debug: 4.4.1 + fs-extra: 10.1.0 + mime: 3.0.0 + module-alias: 2.2.3 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-h5-vue@3.0.0-4030620241128001(vue@3.5.18): + resolution: {integrity: sha512-9fFUYXA30IlgSrNKv5WIP6ksKMaCycEjx6Zo64Tlfyz/8sK6HSQSbL/JE8TawCreci8JgreGOCLBESYXpqmKDA==} + dependencies: + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/server-renderer': 3.4.21(vue@3.5.18) + transitivePeerDependencies: + - vue + dev: false + + /@dcloudio/uni-h5@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-Jo83ICFIx1O22Z8FEw57Lqed/gqWw9sm1yn15R3eoYxYJsRdRqFqB+C3ktKdLMDBXNukuUo0zK8IPTN3GWRefA==} + dependencies: + '@dcloudio/uni-h5-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-h5-vue': 3.0.0-4030620241128001(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/server-renderer': 3.4.21(vue@3.5.18) + '@vue/shared': 3.4.21 + debug: 4.4.1 + localstorage-polyfill: 1.0.1 + postcss-selector-parser: 6.1.2 + safe-area-insets: 1.4.1 + vue-router: 4.5.1(vue@3.5.18) + xmlhttprequest: 1.8.0 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-i18n@3.0.0-4030620241128001: + resolution: {integrity: sha512-0AMRvaQ1rxWceNoqkasosiOm9VY/CAziLohtD6WFYqvbn3U/rDy1cne8VpWcDItkNUFS8+mUIIVxp4RW09dtWw==} + + /@dcloudio/uni-mp-alipay@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-D48x7NOwv6HhTHTnJ09BXA/kMflA+QrB2PTVDL8DhW5BUPsB8njRPwh3IHD1BBMKCmKKunEzCp5JLSq+7ZBJ7g==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-baidu@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-drjDb8AztZJFVmS+0e9g5a3XfwC0a4kjWk3usPMtOYf9DitwRR4p0vmCLv7MfBP//BzqXWrpYY/RaJVJ8A+H5Q==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-mp-weixin': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + jimp: 0.10.3 + licia: 1.48.0 + qrcode-reader: 1.0.4 + qrcode-terminal: 0.12.0 + ws: 8.18.3 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - bufferutil + - debug + - postcss + - rollup + - supports-color + - ts-node + - utf-8-validate + - vue + dev: false + + /@dcloudio/uni-mp-compiler@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-3ZkA/GAlvI/cTPm0zrhf3AHmROA3FXxb1XExdBX6LXY2XIY2psXm5ZFl1N9P3qPI6kEIPqu1H6Od51xfu8PxIg==} + dependencies: + '@babel/generator': 7.28.0 + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/compiler-dom': 3.4.21 + '@vue/shared': 3.4.21 + estree-walker: 2.0.2 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-jd@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-CDGj5kaU3ubjEqHjMLgMS7vjRXbQa8Kj49s48ODfxqY3gLQH2seMQ4SDw/b82I4UsYmMIAugfawTKBG3LY/DeA==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-kuaishou@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-vLJCV3R7sFZj8r4u70Lj5tGzzi7qbJXarrKYkR/xV4/oFQLy9ls5qlXHwj29S0N3qnazqhNMCKg+Ee8/jkatpg==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-mp-weixin': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - bufferutil + - debug + - postcss + - rollup + - supports-color + - ts-node + - utf-8-validate + - vue + dev: false + + /@dcloudio/uni-mp-lark@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-7xgnRZwsJKwVxyPQlwtnOYW4pZTDq9AFI2dbxWtVLR6PrGO/HnsxbDp8+dkLwL0OxM9LtnvP/uA57uPgTQmm7g==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-toutiao': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-qq@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-3ow3Dtrne/k04GvSDGKjfbVcI6EQGEui6ag9//6StalJfCD5kXco5MjAl4EYhVTyKLSCsrsvWNdmUAfDdzWREw==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + fs-extra: 10.1.0 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-toutiao@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-rZVrPIYFiQGfFgm5+1v3SlHUcl7pwfTl2UIEj+Fy98v6kYXoE1yb2AIC9R5t/35QLMXi9yGr7Lg36lp8OoW35w==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-vite@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-j0J9PIIE02sNJKhmErNHdB6VjCD/YipeP4qgLACymPnUzD3yZK8x7m4qufLyDPifuUXgvuNvVMhzAz/38RtJXA==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-i18n': 3.0.0-4030620241128001 + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + '@vue/shared': 3.4.21 + debug: 4.4.1 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-mp-vue@3.0.0-4030620241128001: + resolution: {integrity: sha512-el5ZV62PK4KMhn3kyoAZWsFsDdHVXdTHVtTw++gzzG5PPIdCYgPtGGNZoJO0ZgPWfgtWw9MCoYRqdjFWSOmgBg==} + dependencies: + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + dev: false + + /@dcloudio/uni-mp-weixin@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-G3aw7dZUxpO3AvAX8gHbT9fq1LMn++GpE3rHRlXhrE9F+C9eVrRtwqt9EdVszZvJJu8X9aSK9kvaLFFgdSUGiw==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + jimp: 0.10.3 + licia: 1.48.0 + qrcode-reader: 1.0.4 + qrcode-terminal: 0.12.0 + ws: 8.18.3 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - bufferutil + - debug + - postcss + - rollup + - supports-color + - ts-node + - utf-8-validate + - vue + dev: false + + /@dcloudio/uni-mp-xhs@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-lD7XL0FZZxPBmFDOiia/oEa2VTA0m2RqBq1WtnSwSeA0C81LFqutpObaA8+XBrIYVqeXs+9golW0Y1a8/FYAMA==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-compiler': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-nvue-styler@3.0.0-4030620241128001: + resolution: {integrity: sha512-SNSc5Pw3ekSI0SJ4K9bnbo3KCU3bKsqchLzeeMXe/4WbAs0NkTwoNf6UdzajMo15hsBDu2lJEIU9TsS0GcgZ5A==} + dependencies: + parse-css-font: 4.0.0 + postcss: 8.5.6 + dev: false + + /@dcloudio/uni-push@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-zp5P9KY/pXV7mqFC1lsfqwt0sqT4cRKfS7vgyWb4CRiz4dwxhgFkQwIVyCNhpb1idzyEeK++HWf7dPDO/qU+8A==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-quickapp-webview@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-scgFTl3PEzDQ6pIu2OZ2GlD9lD+fkfw5f9G57qEqFAH/YXYdXQz9JMD8dSa14e99Mk5FHu22sBW+n01jlJZ3lw==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vite': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-mp-vue': 3.0.0-4030620241128001 + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@vue/shared': 3.4.21 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/uni-shared@3.0.0-4030620241128001: + resolution: {integrity: sha512-GrfljYl+hEfRaZZNlAzT35NVK6P4MBg9xMN+bNT2ALLwCt6pL/9tJZLask302sOSjOgjhAzaN9qNdVKCDo0H0A==} + dependencies: + '@vue/shared': 3.4.21 + + /@dcloudio/uni-stacktracey@3.0.0-4030620241128001: + resolution: {integrity: sha512-LJiiKBYYtHME4m0nAPM4VswPXxUopkx3XXkeHBQzEvNGGZZzxrDPpwZavpsifbJml5a47KOO9PsmoBiZymIxqQ==} + dev: true + + /@dcloudio/uni-stat@3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18): + resolution: {integrity: sha512-0WCvT+FIKxy1MNryK5nhKH1sBZchu5KTWv/nVZo+NmTwsvcdUf4rWei3DYq6Qo0ehBasVeW8nIIYoAwB7pDQsw==} + dependencies: + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + debug: 4.4.1 + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: false + + /@dcloudio/vite-plugin-uni@3.0.0-4030620241128001(postcss@8.5.6)(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-sXIuBQz/j/aUDc+uSJuTozUj8W6Wy6dtC1S7oS95yLqacNOrzAhITfNWpmY51Zff7NXIt4bp+V++awDo0wnLsg==} + engines: {node: ^14.18.0 || >=16.0.0} + hasBin: true + peerDependencies: + vite: ^5.2.8 + dependencies: + '@babel/core': 7.28.0 + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.28.0) + '@babel/plugin-transform-typescript': 7.28.0(@babel/core@7.28.0) + '@dcloudio/uni-cli-shared': 3.0.0-4030620241128001(postcss@8.5.6)(vue@3.5.18) + '@dcloudio/uni-shared': 3.0.0-4030620241128001 + '@rollup/pluginutils': 5.2.0 + '@vitejs/plugin-legacy': 5.3.2(terser@5.43.1)(vite@5.2.8) + '@vitejs/plugin-vue': 5.1.0(vite@5.2.8)(vue@3.5.18) + '@vitejs/plugin-vue-jsx': 3.1.0(vite@5.2.8)(vue@3.5.18) + '@vue/compiler-core': 3.4.21 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-sfc': 3.4.21 + '@vue/shared': 3.4.21 + cac: 6.7.9 + debug: 4.4.1 + estree-walker: 2.0.2 + express: 4.21.2 + fast-glob: 3.3.3 + fs-extra: 10.1.0 + hash-sum: 2.0.0 + jsonc-parser: 3.3.1 + magic-string: 0.30.17 + picocolors: 1.1.1 + terser: 5.43.1 + unplugin-auto-import: 0.18.6 + vite: 5.2.8(terser@5.43.1) + transitivePeerDependencies: + - '@nuxt/kit' + - '@vueuse/core' + - postcss + - rollup + - supports-color + - ts-node + - vue + dev: true + + /@esbuild/aix-ppc64@0.20.2: + resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + optional: true + + /@esbuild/android-arm64@0.20.2: + resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-arm@0.20.2: + resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/android-x64@0.20.2: + resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + optional: true + + /@esbuild/darwin-arm64@0.20.2: + resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/darwin-x64@0.20.2: + resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@esbuild/freebsd-arm64@0.20.2: + resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/freebsd-x64@0.20.2: + resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /@esbuild/linux-arm64@0.20.2: + resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-arm@0.20.2: + resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ia32@0.20.2: + resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-loong64@0.20.2: + resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-mips64el@0.20.2: + resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-ppc64@0.20.2: + resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-riscv64@0.20.2: + resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-s390x@0.20.2: + resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/linux-x64@0.20.2: + resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@esbuild/netbsd-x64@0.20.2: + resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + optional: true + + /@esbuild/openbsd-x64@0.20.2: + resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + optional: true + + /@esbuild/sunos-x64@0.20.2: + resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + optional: true + + /@esbuild/win32-arm64@0.20.2: + resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-ia32@0.20.2: + resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@esbuild/win32-x64@0.20.2: + resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /@ezuikit/player-ezopen@8.1.12-beta.4: + resolution: {integrity: sha512-qp3d7s8t2OlHwt/+qofxsk68bWbLOj1qbK3VdxUJQ8D37KGn7aKRc6EtdyP2yDMe8LCSyytJzbyORDCkaKu9VA==} + dependencies: + '@ezuikit/player-plugin-record': 8.1.8-beta.3 + '@ezuikit/utils-i18n': 1.0.1 + '@ezuikit/utils-logger': 1.0.1 + '@ezuikit/utils-service': 1.0.1 + '@ezuikit/utils-tools': 1.0.4 + '@juggle/resize-observer': 3.4.0 + dayjs: 1.11.13 + deepmerge: 4.3.1 + eventemitter3: 5.0.1 + jquery: 3.7.1 + screenfull: 5.2.0 + ua-parser-js: 1.0.37 + dev: false + + /@ezuikit/player-plugin-record@8.1.8-beta.3: + resolution: {integrity: sha512-YcQ5MR8zyg8b+o/ktr6r+YCXkiEX43HVmzVkfJsERgaokaHzoNIpOomEl51j/13gcemjSXuN6i1apCRC2v32pg==} + dev: false + + /@ezuikit/utils-collect@0.1.1: + resolution: {integrity: sha512-BgEOnTtAq8rQRBAKv5rLXbQLGOnfOZ6NS0QTmiviey80JbMJlxrLiqmjL5lxvkm4JtCcXCtSgPA4tskQKN4eDA==} + dev: false + + /@ezuikit/utils-i18n@1.0.1: + resolution: {integrity: sha512-uUjN3ADHV2ZG4QznuA7FB89/ck8AGV4qS8hm/sqeSA6/ie4ryYw8MS4wIv71WgPBIgIVDfASuEapyLOwq7R2aQ==} + dependencies: + i18n-js: 4.5.1 + dev: false + + /@ezuikit/utils-logger@1.0.1: + resolution: {integrity: sha512-qak0MXh4vWZCji3aSCfHdWR3EbZCaqS0iMT8/QWuWPRr0vDmTRMP3kFOAw1MuMraR0ocjPBE2PaTEmUuwVqaAw==} + dev: false + + /@ezuikit/utils-service@1.0.1: + resolution: {integrity: sha512-iNjYuU7AScBJxvKBM9PjiGI2y64QJNPT/H1Fy/Y7ZIAlw4DO//TP+x50qCho+i+EOUpWLtOqBQvtRb7a0O4X4Q==} + dependencies: + '@ezuikit/utils-tools': 1.0.4 + dayjs: 1.11.13 + dev: false + + /@ezuikit/utils-tools@1.0.4: + resolution: {integrity: sha512-w+LZ03qowSqrSqDnuONKPpmEn0cuCaF2pkgHL1YicR0of/ZelCho5X8cy5TXQe7UsrQkIM2M7vVennv5KnAdpQ==} + dev: false + + /@intlify/core-base@9.1.9: + resolution: {integrity: sha512-x5T0p/Ja0S8hs5xs+ImKyYckVkL4CzcEXykVYYV6rcbXxJTe2o58IquSqX9bdncVKbRZP7GlBU1EcRaQEEJ+vw==} + engines: {node: '>= 10'} + dependencies: + '@intlify/devtools-if': 9.1.9 + '@intlify/message-compiler': 9.1.9 + '@intlify/message-resolver': 9.1.9 + '@intlify/runtime': 9.1.9 + '@intlify/shared': 9.1.9 + '@intlify/vue-devtools': 9.1.9 + + /@intlify/core-base@9.14.5: + resolution: {integrity: sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==} + engines: {node: '>= 16'} + dependencies: + '@intlify/message-compiler': 9.14.5 + '@intlify/shared': 9.14.5 + dev: false + + /@intlify/devtools-if@9.1.9: + resolution: {integrity: sha512-oKSMKjttG3Ut/1UGEZjSdghuP3fwA15zpDPcjkf/1FjlOIm6uIBGMNS5jXzsZy593u+P/YcnrZD6cD3IVFz9vQ==} + engines: {node: '>= 10'} + dependencies: + '@intlify/shared': 9.1.9 + + /@intlify/message-compiler@9.1.9: + resolution: {integrity: sha512-6YgCMF46Xd0IH2hMRLCssZI3gFG4aywidoWQ3QP4RGYQXQYYfFC54DxhSgfIPpVoPLQ+4AD29eoYmhiHZ+qLFQ==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-resolver': 9.1.9 + '@intlify/shared': 9.1.9 + source-map: 0.6.1 + + /@intlify/message-compiler@9.14.5: + resolution: {integrity: sha512-IHzgEu61/YIpQV5Pc3aRWScDcnFKWvQA9kigcINcCBXN8mbW+vk9SK+lDxA6STzKQsVJxUPg9ACC52pKKo3SVQ==} + engines: {node: '>= 16'} + dependencies: + '@intlify/shared': 9.14.5 + source-map-js: 1.2.1 + dev: false + + /@intlify/message-resolver@9.1.9: + resolution: {integrity: sha512-Lx/DBpigeK0sz2BBbzv5mu9/dAlt98HxwbG7xLawC3O2xMF9MNWU5FtOziwYG6TDIjNq0O/3ZbOJAxwITIWXEA==} + engines: {node: '>= 10'} + + /@intlify/runtime@9.1.9: + resolution: {integrity: sha512-XgPw8+UlHCiie3fI41HPVa/VDJb3/aSH7bLhY1hJvlvNV713PFtb4p4Jo+rlE0gAoMsMCGcsiT982fImolSltg==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-compiler': 9.1.9 + '@intlify/message-resolver': 9.1.9 + '@intlify/shared': 9.1.9 + + /@intlify/shared@9.1.9: + resolution: {integrity: sha512-xKGM1d0EAxdDFCWedcYXOm6V5Pfw/TMudd6/qCdEb4tv0hk9EKeg7lwQF1azE0dP2phvx0yXxrt7UQK+IZjNdw==} + engines: {node: '>= 10'} + + /@intlify/shared@9.14.5: + resolution: {integrity: sha512-9gB+E53BYuAEMhbCAxVgG38EZrk59sxBtv3jSizNL2hEWlgjBjAw1AwpLHtNaeda12pe6W20OGEa0TwuMSRbyQ==} + engines: {node: '>= 16'} + dev: false + + /@intlify/vue-devtools@9.1.9: + resolution: {integrity: sha512-YPehH9uL4vZcGXky4Ev5qQIITnHKIvsD2GKGXgqf+05osMUI6WSEQHaN9USRa318Rs8RyyPCiDfmA0hRu3k7og==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-resolver': 9.1.9 + '@intlify/runtime': 9.1.9 + '@intlify/shared': 9.1.9 + + /@istanbuljs/load-nyc-config@1.1.0: + resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + find-up: 4.1.0 + get-package-type: 0.1.0 + js-yaml: 3.14.1 + resolve-from: 5.0.0 + dev: true + + /@istanbuljs/schema@0.1.3: + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + dev: true + + /@jest/console@27.5.1: + resolution: {integrity: sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + jest-message-util: 27.5.1 + jest-util: 27.5.1 + slash: 3.0.0 + dev: true + + /@jest/core@27.5.1: + resolution: {integrity: sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/console': 27.5.1 + '@jest/reporters': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + emittery: 0.8.1 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-changed-files: 27.5.1 + jest-config: 27.5.1 + jest-haste-map: 27.5.1 + jest-message-util: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-resolve-dependencies: 27.5.1 + jest-runner: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + jest-watcher: 27.5.1 + micromatch: 4.0.8 + rimraf: 3.0.2 + slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /@jest/environment@27.5.1: + resolution: {integrity: sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + jest-mock: 27.5.1 + dev: true + + /@jest/fake-timers@27.5.1: + resolution: {integrity: sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@sinonjs/fake-timers': 8.1.0 + '@types/node': 24.2.0 + jest-message-util: 27.5.1 + jest-mock: 27.5.1 + jest-util: 27.5.1 + dev: true + + /@jest/globals@27.5.1: + resolution: {integrity: sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/types': 27.5.1 + expect: 27.5.1 + dev: true + + /@jest/reporters@27.5.1: + resolution: {integrity: sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@jest/console': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + collect-v8-coverage: 1.0.2 + exit: 0.1.2 + glob: 7.2.3 + graceful-fs: 4.2.11 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-instrument: 5.2.1 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.1.7 + jest-haste-map: 27.5.1 + jest-resolve: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + slash: 3.0.0 + source-map: 0.6.1 + string-length: 4.0.2 + terminal-link: 2.1.1 + v8-to-istanbul: 8.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/source-map@27.5.1: + resolution: {integrity: sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + callsites: 3.1.0 + graceful-fs: 4.2.11 + source-map: 0.6.1 + dev: true + + /@jest/test-result@27.5.1: + resolution: {integrity: sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/console': 27.5.1 + '@jest/types': 27.5.1 + '@types/istanbul-lib-coverage': 2.0.6 + collect-v8-coverage: 1.0.2 + dev: true + + /@jest/test-sequencer@27.5.1: + resolution: {integrity: sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/test-result': 27.5.1 + graceful-fs: 4.2.11 + jest-haste-map: 27.5.1 + jest-runtime: 27.5.1 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/transform@27.5.1: + resolution: {integrity: sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/core': 7.28.0 + '@jest/types': 27.5.1 + babel-plugin-istanbul: 6.1.1 + chalk: 4.1.2 + convert-source-map: 1.9.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11 + jest-haste-map: 27.5.1 + jest-regex-util: 27.5.1 + jest-util: 27.5.1 + micromatch: 4.0.8 + pirates: 4.0.7 + slash: 3.0.0 + source-map: 0.6.1 + write-file-atomic: 3.0.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/types@27.5.1: + resolution: {integrity: sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + '@types/istanbul-reports': 3.0.4 + '@types/node': 24.2.0 + '@types/yargs': 16.0.9 + chalk: 4.1.2 + dev: true + + /@jimp/bmp@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-keMOc5woiDmONXsB/6aXLR4Z5Q+v8lFq3EY2rcj2FmstbDMhRuGbmcBxlEgOqfRjwvtf/wOtJ3Of37oAWtVfLg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + bmp-js: 0.1.0 + core-js: 3.45.0 + dev: false + + /@jimp/core@0.10.3: + resolution: {integrity: sha512-Gd5IpL3U2bFIO57Fh/OA3HCpWm4uW/pU01E75rI03BXfTdz3T+J7TwvyG1XaqsQ7/DSlS99GXtLQPlfFIe28UA==} + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/utils': 0.10.3 + any-base: 1.1.0 + buffer: 5.7.1 + core-js: 3.45.0 + exif-parser: 0.1.12 + file-type: 9.0.0 + load-bmfont: 1.4.2 + mkdirp: 0.5.6 + phin: 2.9.3 + pixelmatch: 4.0.2 + tinycolor2: 1.6.0 + transitivePeerDependencies: + - debug + dev: false + + /@jimp/custom@0.10.3: + resolution: {integrity: sha512-nZmSI+jwTi5IRyNLbKSXQovoeqsw+D0Jn0SxW08wYQvdkiWA8bTlDQFgQ7HVwCAKBm8oKkDB/ZEo9qvHJ+1gAQ==} + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/core': 0.10.3 + core-js: 3.45.0 + transitivePeerDependencies: + - debug + dev: false + + /@jimp/gif@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-vjlRodSfz1CrUvvrnUuD/DsLK1GHB/yDZXHthVdZu23zYJIW7/WrIiD1IgQ5wOMV7NocfrvPn2iqUfBP81/WWA==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + omggif: 1.0.10 + dev: false + + /@jimp/jpeg@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-AAANwgUZOt6f6P7LZxY9lyJ9xclqutYJlsxt3JbriXUGJgrrFAIkcKcqv1nObgmQASSAQKYaMV9KdHjMlWFKlQ==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + jpeg-js: 0.3.7 + dev: false + + /@jimp/plugin-blit@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-5zlKlCfx4JWw9qUVC7GI4DzXyxDWyFvgZLaoGFoT00mlXlN75SarlDwc9iZ/2e2kp4bJWxz3cGgG4G/WXrbg3Q==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-blur@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-cTOK3rjh1Yjh23jSfA6EHCHjsPJDEGLC8K2y9gM7dnTUK1y9NNmkFS23uHpyjgsWFIoH9oRh2SpEs3INjCpZhQ==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-circle@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-51GAPIVelqAcfuUpaM5JWJ0iWl4vEjNXB7p4P7SX5udugK5bxXUjO6KA2qgWmdpHuCKtoNgkzWU9fNSuYp7tCA==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-color@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-RgeHUElmlTH7vpI4WyQrz6u59spiKfVQbsG/XUzfWGamFSixa24ZDwX/yV/Ts+eNaz7pZeIuv533qmKPvw2ujg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + tinycolor2: 1.6.0 + dev: false + + /@jimp/plugin-contain@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3)(@jimp/plugin-resize@0.10.3)(@jimp/plugin-scale@0.10.3): + resolution: {integrity: sha512-bYJKW9dqzcB0Ihc6u7jSyKa3juStzbLs2LFr6fu8TzA2WkMS/R8h+ddkiO36+F9ILTWHP0CIA3HFe5OdOGcigw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blit': '>=0.3.5' + '@jimp/plugin-resize': '>=0.3.5' + '@jimp/plugin-scale': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-blit': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-scale': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-cover@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-crop@0.10.3)(@jimp/plugin-resize@0.10.3)(@jimp/plugin-scale@0.10.3): + resolution: {integrity: sha512-pOxu0cM0BRPzdV468n4dMocJXoMbTnARDY/EpC3ZW15SpMuc/dr1KhWQHgoQX5kVW1Wt8zgqREAJJCQ5KuPKDA==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-crop': '>=0.3.5' + '@jimp/plugin-resize': '>=0.3.5' + '@jimp/plugin-scale': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-crop': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-scale': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-crop@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-nB7HgOjjl9PgdHr076xZ3Sr6qHYzeBYBs9qvs3tfEEUeYMNnvzgCCGtUl6eMakazZFCMk3mhKmcB9zQuHFOvkg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-displace@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-8t3fVKCH5IVqI4lewe4lFFjpxxr69SQCz5/tlpDLQZsrNScNJivHdQ09zljTrVTCSgeCqQJIKgH2Q7Sk/pAZ0w==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-dither@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-JCX/oNSnEg1kGQ8ffZ66bEgQOLCY3Rn+lrd6v1jjLy/mn9YVZTMsxLtGCXpiCDC2wG/KTmi4862ysmP9do9dAQ==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-fisheye@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-RRZb1wqe+xdocGcFtj2xHU7sF7xmEZmIa6BmrfSchjyA2b32TGPWKnP3qyj7p6LWEsXn+19hRYbjfyzyebPElQ==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-flip@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-rotate@0.10.3): + resolution: {integrity: sha512-0epbi8XEzp0wmSjoW9IB0iMu0yNF17aZOxLdURCN3Zr+8nWPs5VNIMqSVa1Y62GSyiMDpVpKF/ITiXre+EqrPg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-rotate': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-rotate': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3)(@jimp/plugin-crop@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-gaussian@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-25eHlFbHUDnMMGpgRBBeQ2AMI4wsqCg46sue0KklI+c2BaZ+dGXmJA5uT8RTOrt64/K9Wz5E+2n7eBnny4dfpQ==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-invert@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-effYSApWY/FbtlzqsKXlTLkgloKUiHBKjkQnqh5RL4oQxh/33j6aX+HFdDyQKtsXb8CMd4xd7wyiD2YYabTa0g==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-mask@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-twrg8q8TIhM9Z6Jcu9/5f+OCAPaECb0eKrrbbIajJqJ3bCUlj5zbfgIhiQIzjPJ6KjpnFPSqHQfHkU1Vvk/nVw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-normalize@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-xkb5eZI/mMlbwKkDN79+1/t/+DBo8bBXZUMsT4gkFgMRKNRZ6NQPxlv1d3QpRzlocsl6UMxrHnhgnXdLAcgrXw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-print@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3): + resolution: {integrity: sha512-wjRiI6yjXsAgMe6kVjizP+RgleUCLkH256dskjoNvJzmzbEfO7xQw9g6M02VET+emnbY0CO83IkrGm2q43VRyg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blit': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-blit': 0.10.3(@jimp/custom@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + load-bmfont: 1.4.2 + transitivePeerDependencies: + - debug + dev: false + + /@jimp/plugin-resize@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-rf8YmEB1d7Sg+g4LpqF0Mp+dfXfb6JFJkwlAIWPUOR7lGsPWALavEwTW91c0etEdnp0+JB9AFpy6zqq7Lwkq6w==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-rotate@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3)(@jimp/plugin-crop@0.10.3)(@jimp/plugin-resize@0.10.3): + resolution: {integrity: sha512-YXLlRjm18fkW9MOHUaVAxWjvgZM851ofOipytz5FyKp4KZWDLk+dZK1JNmVmK7MyVmAzZ5jsgSLhIgj+GgN0Eg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blit': '>=0.3.5' + '@jimp/plugin-crop': '>=0.3.5' + '@jimp/plugin-resize': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-blit': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-crop': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-scale@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-resize@0.10.3): + resolution: {integrity: sha512-5DXD7x7WVcX1gUgnlFXQa8F+Q3ThRYwJm+aesgrYvDOY+xzRoRSdQvhmdd4JEEue3lyX44DvBSgCIHPtGcEPaw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-resize': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-shadow@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blur@0.10.3)(@jimp/plugin-resize@0.10.3): + resolution: {integrity: sha512-/nkFXpt2zVcdP4ETdkAUL0fSzyrC5ZFxdcphbYBodqD7fXNqChS/Un1eD4xCXWEpW8cnG9dixZgQgStjywH0Mg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blur': '>=0.3.5' + '@jimp/plugin-resize': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-blur': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugin-threshold@0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-color@0.10.3)(@jimp/plugin-resize@0.10.3): + resolution: {integrity: sha512-Dzh0Yq2wXP2SOnxcbbiyA4LJ2luwrdf1MghNIt9H+NX7B+IWw/N8qA2GuSm9n4BPGSLluuhdAWJqHcTiREriVA==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + '@jimp/plugin-color': '>=0.8.0' + '@jimp/plugin-resize': '>=0.8.0' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-color': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + dev: false + + /@jimp/plugins@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-jTT3/7hOScf0EIKiAXmxwayHhryhc1wWuIe3FrchjDjr9wgIGNN2a7XwCgPl3fML17DXK1x8EzDneCdh261bkw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugin-blit': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-blur': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-circle': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-color': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-contain': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3)(@jimp/plugin-resize@0.10.3)(@jimp/plugin-scale@0.10.3) + '@jimp/plugin-cover': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-crop@0.10.3)(@jimp/plugin-resize@0.10.3)(@jimp/plugin-scale@0.10.3) + '@jimp/plugin-crop': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-displace': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-dither': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-fisheye': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-flip': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-rotate@0.10.3) + '@jimp/plugin-gaussian': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-invert': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-mask': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-normalize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-print': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3) + '@jimp/plugin-resize': 0.10.3(@jimp/custom@0.10.3) + '@jimp/plugin-rotate': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blit@0.10.3)(@jimp/plugin-crop@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/plugin-scale': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/plugin-shadow': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-blur@0.10.3)(@jimp/plugin-resize@0.10.3) + '@jimp/plugin-threshold': 0.10.3(@jimp/custom@0.10.3)(@jimp/plugin-color@0.10.3)(@jimp/plugin-resize@0.10.3) + core-js: 3.45.0 + timm: 1.7.1 + transitivePeerDependencies: + - debug + dev: false + + /@jimp/png@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-YKqk/dkl+nGZxSYIDQrqhmaP8tC3IK8H7dFPnnzFVvbhDnyYunqBZZO3SaZUKTichClRw8k/CjBhbc+hifSGWg==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/utils': 0.10.3 + core-js: 3.45.0 + pngjs: 3.4.0 + dev: false + + /@jimp/tiff@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-7EsJzZ5Y/EtinkBGuwX3Bi4S+zgbKouxjt9c82VJTRJOQgLWsE/RHqcyRCOQBhHAZ9QexYmDz34medfLKdoX0g==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + core-js: 3.45.0 + utif: 2.0.1 + dev: false + + /@jimp/types@0.10.3(@jimp/custom@0.10.3): + resolution: {integrity: sha512-XGmBakiHZqseSWr/puGN+CHzx0IKBSpsKlmEmsNV96HKDiP6eu8NSnwdGCEq2mmIHe0JNcg1hqg59hpwtQ7Tiw==} + peerDependencies: + '@jimp/custom': '>=0.3.5' + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/bmp': 0.10.3(@jimp/custom@0.10.3) + '@jimp/custom': 0.10.3 + '@jimp/gif': 0.10.3(@jimp/custom@0.10.3) + '@jimp/jpeg': 0.10.3(@jimp/custom@0.10.3) + '@jimp/png': 0.10.3(@jimp/custom@0.10.3) + '@jimp/tiff': 0.10.3(@jimp/custom@0.10.3) + core-js: 3.45.0 + timm: 1.7.1 + dev: false + + /@jimp/utils@0.10.3: + resolution: {integrity: sha512-VcSlQhkil4ReYmg1KkN+WqHyYfZ2XfZxDsKAHSfST1GEz/RQHxKZbX+KhFKtKflnL0F4e6DlNQj3vznMNXCR2w==} + dependencies: + '@babel/runtime': 7.28.2 + core-js: 3.45.0 + regenerator-runtime: 0.13.11 + dev: false + + /@jridgewell/gen-mapping@0.3.12: + resolution: {integrity: sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==} + dependencies: + '@jridgewell/sourcemap-codec': 1.5.4 + '@jridgewell/trace-mapping': 0.3.29 + + /@jridgewell/resolve-uri@3.1.2: + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + /@jridgewell/source-map@0.3.10: + resolution: {integrity: sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q==} + dependencies: + '@jridgewell/gen-mapping': 0.3.12 + '@jridgewell/trace-mapping': 0.3.29 + + /@jridgewell/sourcemap-codec@1.5.4: + resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==} + + /@jridgewell/trace-mapping@0.3.29: + resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==} + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.4 + + /@juggle/resize-observer@3.4.0: + resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==} + dev: false + + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.19.1 + + /@rollup/pluginutils@5.2.0: + resolution: {integrity: sha512-qWJ2ZTbmumwiLFomfzTyt5Kng4hwPi9rwCYN4SHb6eaRU1KNO4ccxINHr/VhH4GgPlt1XfSTLX2LBTme8ne4Zw==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': 1.0.8 + estree-walker: 2.0.2 + picomatch: 4.0.3 + + /@rollup/rollup-android-arm-eabi@4.46.2: + resolution: {integrity: sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA==} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-android-arm64@4.46.2: + resolution: {integrity: sha512-nTeCWY83kN64oQ5MGz3CgtPx8NSOhC5lWtsjTs+8JAJNLcP3QbLCtDDgUKQc/Ro/frpMq4SHUaHN6AMltcEoLQ==} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-arm64@4.46.2: + resolution: {integrity: sha512-HV7bW2Fb/F5KPdM/9bApunQh68YVDU8sO8BvcW9OngQVN3HHHkw99wFupuUJfGR9pYLLAjcAOA6iO+evsbBaPQ==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-x64@4.46.2: + resolution: {integrity: sha512-SSj8TlYV5nJixSsm/y3QXfhspSiLYP11zpfwp6G/YDXctf3Xkdnk4woJIF5VQe0of2OjzTt8EsxnJDCdHd2xMA==} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-freebsd-arm64@4.46.2: + resolution: {integrity: sha512-ZyrsG4TIT9xnOlLsSSi9w/X29tCbK1yegE49RYm3tu3wF1L/B6LVMqnEWyDB26d9Ecx9zrmXCiPmIabVuLmNSg==} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + optional: true + + /@rollup/rollup-freebsd-x64@4.46.2: + resolution: {integrity: sha512-pCgHFoOECwVCJ5GFq8+gR8SBKnMO+xe5UEqbemxBpCKYQddRQMgomv1104RnLSg7nNvgKy05sLsY51+OVRyiVw==} + cpu: [x64] + os: [freebsd] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm-gnueabihf@4.46.2: + resolution: {integrity: sha512-EtP8aquZ0xQg0ETFcxUbU71MZlHaw9MChwrQzatiE8U/bvi5uv/oChExXC4mWhjiqK7azGJBqU0tt5H123SzVA==} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm-musleabihf@4.46.2: + resolution: {integrity: sha512-qO7F7U3u1nfxYRPM8HqFtLd+raev2K137dsV08q/LRKRLEc7RsiDWihUnrINdsWQxPR9jqZ8DIIZ1zJJAm5PjQ==} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.46.2: + resolution: {integrity: sha512-3dRaqLfcOXYsfvw5xMrxAk9Lb1f395gkoBYzSFcc/scgRFptRXL9DOaDpMiehf9CO8ZDRJW2z45b6fpU5nwjng==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-musl@4.46.2: + resolution: {integrity: sha512-fhHFTutA7SM+IrR6lIfiHskxmpmPTJUXpWIsBXpeEwNgZzZZSg/q4i6FU4J8qOGyJ0TR+wXBwx/L7Ho9z0+uDg==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-loongarch64-gnu@4.46.2: + resolution: {integrity: sha512-i7wfGFXu8x4+FRqPymzjD+Hyav8l95UIZ773j7J7zRYc3Xsxy2wIn4x+llpunexXe6laaO72iEjeeGyUFmjKeA==} + cpu: [loong64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-ppc64-gnu@4.46.2: + resolution: {integrity: sha512-B/l0dFcHVUnqcGZWKcWBSV2PF01YUt0Rvlurci5P+neqY/yMKchGU8ullZvIv5e8Y1C6wOn+U03mrDylP5q9Yw==} + cpu: [ppc64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.46.2: + resolution: {integrity: sha512-32k4ENb5ygtkMwPMucAb8MtV8olkPT03oiTxJbgkJa7lJ7dZMr0GCFJlyvy+K8iq7F/iuOr41ZdUHaOiqyR3iQ==} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-riscv64-musl@4.46.2: + resolution: {integrity: sha512-t5B2loThlFEauloaQkZg9gxV05BYeITLvLkWOkRXogP4qHXLkWSbSHKM9S6H1schf/0YGP/qNKtiISlxvfmmZw==} + cpu: [riscv64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-s390x-gnu@4.46.2: + resolution: {integrity: sha512-YKjekwTEKgbB7n17gmODSmJVUIvj8CX7q5442/CK80L8nqOUbMtf8b01QkG3jOqyr1rotrAnW6B/qiHwfcuWQA==} + cpu: [s390x] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.46.2: + resolution: {integrity: sha512-Jj5a9RUoe5ra+MEyERkDKLwTXVu6s3aACP51nkfnK9wJTraCC8IMe3snOfALkrjTYd2G1ViE1hICj0fZ7ALBPA==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-musl@4.46.2: + resolution: {integrity: sha512-7kX69DIrBeD7yNp4A5b81izs8BqoZkCIaxQaOpumcJ1S/kmqNFjPhDu1LHeVXv0SexfHQv5cqHsxLOjETuqDuA==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-arm64-msvc@4.46.2: + resolution: {integrity: sha512-wiJWMIpeaak/jsbaq2HMh/rzZxHVW1rU6coyeNNpMwk5isiPjSTx0a4YLSlYDwBH/WBvLz+EtsNqQScZTLJy3g==} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-ia32-msvc@4.46.2: + resolution: {integrity: sha512-gBgaUDESVzMgWZhcyjfs9QFK16D8K6QZpwAaVNJxYDLHWayOta4ZMjGm/vsAEy3hvlS2GosVFlBlP9/Wb85DqQ==} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-x64-msvc@4.46.2: + resolution: {integrity: sha512-CvUo2ixeIQGtF6WvuB87XWqPQkoFAFqW+HUo/WzHwuHDvIwZCtjdWXoYCcr06iKGydiqTclC4jU/TNObC/xKZg==} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + + /@sinonjs/commons@1.8.6: + resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} + dependencies: + type-detect: 4.0.8 + dev: true + + /@sinonjs/fake-timers@8.1.0: + resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} + dependencies: + '@sinonjs/commons': 1.8.6 + dev: true + + /@tootallnate/once@1.1.2: + resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} + engines: {node: '>= 6'} + dev: true + + /@types/babel__core@7.20.5: + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + dependencies: + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + dev: true + + /@types/babel__generator@7.27.0: + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + dependencies: + '@babel/types': 7.28.2 + dev: true + + /@types/babel__template@7.4.4: + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + dependencies: + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 + dev: true + + /@types/babel__traverse@7.28.0: + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + dependencies: + '@babel/types': 7.28.2 + dev: true + + /@types/estree@1.0.8: + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + /@types/graceful-fs@4.1.9: + resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} + dependencies: + '@types/node': 24.2.0 + dev: true + + /@types/istanbul-lib-coverage@2.0.6: + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + dev: true + + /@types/istanbul-lib-report@3.0.3: + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + dev: true + + /@types/istanbul-reports@3.0.4: + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} + dependencies: + '@types/istanbul-lib-report': 3.0.3 + dev: true + + /@types/node@24.2.0: + resolution: {integrity: sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==} + dependencies: + undici-types: 7.10.0 + dev: true + + /@types/prettier@2.7.3: + resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==} + dev: true + + /@types/stack-utils@2.0.3: + resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} + dev: true + + /@types/yargs-parser@21.0.3: + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + dev: true + + /@types/yargs@16.0.9: + resolution: {integrity: sha512-tHhzvkFXZQeTECenFoRljLBYPZJ7jAVxqqtEI0qTLOmuultnFp4I9yKE17vTuhf7BkhCu7I4XuemPgikDVuYqA==} + dependencies: + '@types/yargs-parser': 21.0.3 + dev: true + + /@vitejs/plugin-legacy@5.3.2(terser@5.43.1)(vite@5.2.8): + resolution: {integrity: sha512-8moCOrIMaZ/Rjln0Q6GsH6s8fAt1JOI3k8nmfX4tXUxE5KAExVctSyOBk+A25GClsdSWqIk2yaUthH3KJ2X4tg==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + terser: ^5.4.0 + vite: ^5.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/preset-env': 7.28.0(@babel/core@7.28.0) + browserslist: 4.25.1 + browserslist-to-esbuild: 2.1.1(browserslist@4.25.1) + core-js: 3.45.0 + magic-string: 0.30.17 + regenerator-runtime: 0.14.1 + systemjs: 6.15.1 + terser: 5.43.1 + vite: 5.2.8(terser@5.43.1) + transitivePeerDependencies: + - supports-color + dev: true + + /@vitejs/plugin-vue-jsx@3.1.0(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-w9M6F3LSEU5kszVb9An2/MmXNxocAnUb3WhRr8bHlimhDrXNt6n6D2nJQR3UXpGlZHh/EsgouOHCsM8V3Ln+WA==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^4.0.0 || ^5.0.0 + vue: ^3.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/plugin-transform-typescript': 7.28.0(@babel/core@7.28.0) + '@vue/babel-plugin-jsx': 1.4.0(@babel/core@7.28.0) + vite: 5.2.8(terser@5.43.1) + vue: 3.5.18(typescript@4.9.5) + transitivePeerDependencies: + - supports-color + dev: true + + /@vitejs/plugin-vue@5.1.0(vite@5.2.8)(vue@3.5.18): + resolution: {integrity: sha512-QMRxARyrdiwi1mj3AW4fLByoHTavreXq0itdEW696EihXglf1MB3D4C2gBvE0jMPH29ZjC3iK8aIaUMLf4EOGA==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + vite: ^5.0.0 + vue: ^3.2.25 + dependencies: + vite: 5.2.8(terser@5.43.1) + vue: 3.5.18(typescript@4.9.5) + + /@volar/language-core@1.11.1: + resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==} + dependencies: + '@volar/source-map': 1.11.1 + dev: true + + /@volar/source-map@1.11.1: + resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==} + dependencies: + muggle-string: 0.3.1 + dev: true + + /@volar/typescript@1.11.1: + resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==} + dependencies: + '@volar/language-core': 1.11.1 + path-browserify: 1.0.1 + dev: true + + /@vue/babel-helper-vue-transform-on@1.4.0: + resolution: {integrity: sha512-mCokbouEQ/ocRce/FpKCRItGo+013tHg7tixg3DUNS+6bmIchPt66012kBMm476vyEIJPafrvOf4E5OYj3shSw==} + dev: true + + /@vue/babel-plugin-jsx@1.4.0(@babel/core@7.28.0): + resolution: {integrity: sha512-9zAHmwgMWlaN6qRKdrg1uKsBKHvnUU+Py+MOCTuYZBoZsopa90Di10QRjB+YPnVss0BZbG/H5XFwJY1fTxJWhA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + peerDependenciesMeta: + '@babel/core': + optional: true + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.28.0) + '@babel/template': 7.27.2 + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + '@vue/babel-helper-vue-transform-on': 1.4.0 + '@vue/babel-plugin-resolve-type': 1.4.0(@babel/core@7.28.0) + '@vue/shared': 3.5.18 + transitivePeerDependencies: + - supports-color + dev: true + + /@vue/babel-plugin-resolve-type@1.4.0(@babel/core@7.28.0): + resolution: {integrity: sha512-4xqDRRbQQEWHQyjlYSgZsWj44KfiF6D+ktCuXyZ8EnVDYV3pztmXJDf1HveAjUAXxAnR8daCQT51RneWWxtTyQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/core': 7.28.0 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/parser': 7.28.0 + '@vue/compiler-sfc': 3.5.18 + transitivePeerDependencies: + - supports-color + dev: true + + /@vue/compiler-core@3.4.21: + resolution: {integrity: sha512-MjXawxZf2SbZszLPYxaFCjxfibYrzr3eYbKxwpLR9EQN+oaziSu3qKVbwBERj1IFIB8OLUewxB5m/BFzi613og==} + dependencies: + '@babel/parser': 7.28.0 + '@vue/shared': 3.4.21 + entities: 4.5.0 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + /@vue/compiler-core@3.5.18: + resolution: {integrity: sha512-3slwjQrrV1TO8MoXgy3aynDQ7lslj5UqDxuHnrzHtpON5CBinhWjJETciPngpin/T3OuW3tXUf86tEurusnztw==} + dependencies: + '@babel/parser': 7.28.0 + '@vue/shared': 3.5.18 + entities: 4.5.0 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + /@vue/compiler-dom@3.4.21: + resolution: {integrity: sha512-IZC6FKowtT1sl0CR5DpXSiEB5ayw75oT2bma1BEhV7RRR1+cfwLrxc2Z8Zq/RGFzJ8w5r9QtCOvTjQgdn0IKmA==} + dependencies: + '@vue/compiler-core': 3.4.21 + '@vue/shared': 3.4.21 + + /@vue/compiler-dom@3.5.18: + resolution: {integrity: sha512-RMbU6NTU70++B1JyVJbNbeFkK+A+Q7y9XKE2EM4NLGm2WFR8x9MbAtWxPPLdm0wUkuZv9trpwfSlL6tjdIa1+A==} + dependencies: + '@vue/compiler-core': 3.5.18 + '@vue/shared': 3.5.18 + + /@vue/compiler-sfc@3.4.21: + resolution: {integrity: sha512-me7epoTxYlY+2CUM7hy9PCDdpMPfIwrOvAXud2Upk10g4YLv9UBW7kL798TvMeDhPthkZ0CONNrK2GoeI1ODiQ==} + dependencies: + '@babel/parser': 7.28.0 + '@vue/compiler-core': 3.4.21 + '@vue/compiler-dom': 3.4.21 + '@vue/compiler-ssr': 3.4.21 + '@vue/shared': 3.4.21 + estree-walker: 2.0.2 + magic-string: 0.30.17 + postcss: 8.5.6 + source-map-js: 1.2.1 + + /@vue/compiler-sfc@3.5.18: + resolution: {integrity: sha512-5aBjvGqsWs+MoxswZPoTB9nSDb3dhd1x30xrrltKujlCxo48j8HGDNj3QPhF4VIS0VQDUrA1xUfp2hEa+FNyXA==} + dependencies: + '@babel/parser': 7.28.0 + '@vue/compiler-core': 3.5.18 + '@vue/compiler-dom': 3.5.18 + '@vue/compiler-ssr': 3.5.18 + '@vue/shared': 3.5.18 + estree-walker: 2.0.2 + magic-string: 0.30.17 + postcss: 8.5.6 + source-map-js: 1.2.1 + + /@vue/compiler-ssr@3.4.21: + resolution: {integrity: sha512-M5+9nI2lPpAsgXOGQobnIueVqc9sisBFexh5yMIMRAPYLa7+5wEJs8iqOZc1WAa9WQbx9GR2twgznU8LTIiZ4Q==} + dependencies: + '@vue/compiler-dom': 3.4.21 + '@vue/shared': 3.4.21 + + /@vue/compiler-ssr@3.5.18: + resolution: {integrity: sha512-xM16Ak7rSWHkM3m22NlmcdIM+K4BMyFARAfV9hYFl+SFuRzrZ3uGMNW05kA5pmeMa0X9X963Kgou7ufdbpOP9g==} + dependencies: + '@vue/compiler-dom': 3.5.18 + '@vue/shared': 3.5.18 + + /@vue/consolidate@1.0.0: + resolution: {integrity: sha512-oTyUE+QHIzLw2PpV14GD/c7EohDyP64xCniWTcqcEmTd699eFqTIwOmtDYjcO1j3QgdXoJEoWv1/cCdLrRoOfg==} + engines: {node: '>= 0.12.0'} + dev: false + + /@vue/devtools-api@6.6.4: + resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} + dev: false + + /@vue/language-core@1.8.27(typescript@4.9.5): + resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@volar/language-core': 1.11.1 + '@volar/source-map': 1.11.1 + '@vue/compiler-dom': 3.5.18 + '@vue/shared': 3.5.18 + computeds: 0.0.1 + minimatch: 9.0.5 + muggle-string: 0.3.1 + path-browserify: 1.0.1 + typescript: 4.9.5 + vue-template-compiler: 2.7.16 + dev: true + + /@vue/reactivity@3.5.18: + resolution: {integrity: sha512-x0vPO5Imw+3sChLM5Y+B6G1zPjwdOri9e8V21NnTnlEvkxatHEH5B5KEAJcjuzQ7BsjGrKtfzuQ5eQwXh8HXBg==} + dependencies: + '@vue/shared': 3.5.18 + + /@vue/runtime-core@3.5.18: + resolution: {integrity: sha512-DUpHa1HpeOQEt6+3nheUfqVXRog2kivkXHUhoqJiKR33SO4x+a5uNOMkV487WPerQkL0vUuRvq/7JhRgLW3S+w==} + dependencies: + '@vue/reactivity': 3.5.18 + '@vue/shared': 3.5.18 + + /@vue/runtime-dom@3.5.18: + resolution: {integrity: sha512-YwDj71iV05j4RnzZnZtGaXwPoUWeRsqinblgVJwR8XTXYZ9D5PbahHQgsbmzUvCWNF6x7siQ89HgnX5eWkr3mw==} + dependencies: + '@vue/reactivity': 3.5.18 + '@vue/runtime-core': 3.5.18 + '@vue/shared': 3.5.18 + csstype: 3.1.3 + + /@vue/server-renderer@3.4.21(vue@3.5.18): + resolution: {integrity: sha512-aV1gXyKSN6Rz+6kZ6kr5+Ll14YzmIbeuWe7ryJl5muJ4uwSwY/aStXTixx76TwkZFJLm1aAlA/HSWEJ4EyiMkg==} + peerDependencies: + vue: 3.4.21 + dependencies: + '@vue/compiler-ssr': 3.4.21 + '@vue/shared': 3.4.21 + vue: 3.5.18(typescript@4.9.5) + + /@vue/server-renderer@3.5.18(vue@3.5.18): + resolution: {integrity: sha512-PvIHLUoWgSbDG7zLHqSqaCoZvHi6NNmfVFOqO+OnwvqMz/tqQr3FuGWS8ufluNddk7ZLBJYMrjcw1c6XzR12mA==} + peerDependencies: + vue: 3.5.18 + dependencies: + '@vue/compiler-ssr': 3.5.18 + '@vue/shared': 3.5.18 + vue: 3.5.18(typescript@4.9.5) + + /@vue/shared@3.4.21: + resolution: {integrity: sha512-PuJe7vDIi6VYSinuEbUIQgMIRZGgM8e4R+G+/dQTk0X1NEdvgvvgv7m+rfmDH1gZzyA1OjjoWskvHlfRNfQf3g==} + + /@vue/shared@3.5.18: + resolution: {integrity: sha512-cZy8Dq+uuIXbxCZpuLd2GJdeSO/lIzIspC2WtkqIpje5QyFbvLaI5wZtdUjLHjGZrlVX6GilejatWwVYYRc8tA==} + + /@vue/tsconfig@0.1.3: + resolution: {integrity: sha512-kQVsh8yyWPvHpb8gIc9l/HIDiiVUy1amynLNpCy8p+FoCiZXCo6fQos5/097MmnNZc9AtseDsCrfkhqCrJ8Olg==} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + dev: true + + /abab@2.0.6: + resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + deprecated: Use your platform's native atob() and btoa() methods instead + dev: true + + /abortcontroller-polyfill@1.7.8: + resolution: {integrity: sha512-9f1iZ2uWh92VcrU9Y8x+LdM4DLj75VE0MJB8zuF1iUnroEptStw+DQ8EQPMUdfe5k+PkB1uUfDQfWbhstH8LrQ==} + dev: false + + /accepts@1.3.8: + resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} + engines: {node: '>= 0.6'} + dependencies: + mime-types: 2.1.35 + negotiator: 0.6.3 + dev: true + + /acorn-globals@6.0.0: + resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} + dependencies: + acorn: 7.4.1 + acorn-walk: 7.2.0 + dev: true + + /acorn-walk@7.2.0: + resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn@7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /acorn@8.15.0: + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} + hasBin: true + + /address@1.2.2: + resolution: {integrity: sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==} + engines: {node: '>= 10.0.0'} + dev: true + + /adm-zip@0.5.16: + resolution: {integrity: sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==} + engines: {node: '>=12.0'} + + /agent-base@6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + dependencies: + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + dev: true + + /ansi-escapes@4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.21.3 + dev: true + + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /ansi-styles@5.2.0: + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} + dev: true + + /any-base@1.1.0: + resolution: {integrity: sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg==} + dev: false + + /anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + /argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + dependencies: + sprintf-js: 1.0.3 + dev: true + + /array-flatten@1.1.1: + resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} + dev: true + + /asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + dev: true + + /autoprefixer@10.4.21(postcss@8.5.6): + resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==} + engines: {node: ^10 || ^12 || >=14} + hasBin: true + peerDependencies: + postcss: ^8.1.0 + dependencies: + browserslist: 4.25.1 + caniuse-lite: 1.0.30001731 + fraction.js: 4.3.7 + normalize-range: 0.1.2 + picocolors: 1.1.1 + postcss: 8.5.6 + postcss-value-parser: 4.2.0 + + /babel-jest@27.5.1(@babel/core@7.28.0): + resolution: {integrity: sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + '@babel/core': ^7.8.0 + dependencies: + '@babel/core': 7.28.0 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/babel__core': 7.20.5 + babel-plugin-istanbul: 6.1.1 + babel-preset-jest: 27.5.1(@babel/core@7.28.0) + chalk: 4.1.2 + graceful-fs: 4.2.11 + slash: 3.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-istanbul@6.1.1: + resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} + engines: {node: '>=8'} + dependencies: + '@babel/helper-plugin-utils': 7.27.1 + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-instrument: 5.2.1 + test-exclude: 6.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-jest-hoist@27.5.1: + resolution: {integrity: sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/template': 7.27.2 + '@babel/types': 7.28.2 + '@types/babel__core': 7.20.5 + '@types/babel__traverse': 7.28.0 + dev: true + + /babel-plugin-polyfill-corejs2@0.4.14(@babel/core@7.28.0): + resolution: {integrity: sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/compat-data': 7.28.0 + '@babel/core': 7.28.0 + '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-corejs3@0.13.0(@babel/core@7.28.0): + resolution: {integrity: sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) + core-js-compat: 3.45.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-polyfill-regenerator@0.6.5(@babel/core@7.28.0): + resolution: {integrity: sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==} + peerDependencies: + '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0 + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) + transitivePeerDependencies: + - supports-color + dev: true + + /babel-preset-current-node-syntax@1.2.0(@babel/core@7.28.0): + resolution: {integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==} + peerDependencies: + '@babel/core': ^7.0.0 || ^8.0.0-0 + dependencies: + '@babel/core': 7.28.0 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.28.0) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.28.0) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.28.0) + '@babel/plugin-syntax-import-attributes': 7.27.1(@babel/core@7.28.0) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.28.0) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.28.0) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.28.0) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.28.0) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.28.0) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.28.0) + dev: true + + /babel-preset-jest@27.5.1(@babel/core@7.28.0): + resolution: {integrity: sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.28.0 + babel-plugin-jest-hoist: 27.5.1 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.0) + dev: true + + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + /base64-js@1.5.1: + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + dev: false + + /base64url@3.0.1: + resolution: {integrity: sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==} + engines: {node: '>=6.0.0'} + + /bignumber.js@9.3.1: + resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} + dev: false + + /binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + /bmp-js@0.1.0: + resolution: {integrity: sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==} + dev: false + + /body-parser@1.20.3: + resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==} + engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} + dependencies: + bytes: 3.1.2 + content-type: 1.0.5 + debug: 2.6.9 + depd: 2.0.0 + destroy: 1.2.0 + http-errors: 2.0.0 + iconv-lite: 0.4.24 + on-finished: 2.4.1 + qs: 6.13.0 + raw-body: 2.5.2 + type-is: 1.6.18 + unpipe: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /brace-expansion@1.1.12: + resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /brace-expansion@2.0.2: + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + dependencies: + balanced-match: 1.0.2 + + /braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.1.1 + + /browser-process-hrtime@1.0.0: + resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} + dev: true + + /browserslist-to-esbuild@2.1.1(browserslist@4.25.1): + resolution: {integrity: sha512-KN+mty6C3e9AN8Z5dI1xeN15ExcRNeISoC3g7V0Kax/MMF9MSoYA2G7lkTTcVUFntiEjkpI0HNgqJC1NjdyNUw==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + browserslist: '*' + dependencies: + browserslist: 4.25.1 + meow: 13.2.0 + dev: true + + /browserslist@4.25.1: + resolution: {integrity: sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001731 + electron-to-chromium: 1.5.197 + node-releases: 2.0.19 + update-browserslist-db: 1.1.3(browserslist@4.25.1) + + /bser@2.1.1: + resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + dependencies: + node-int64: 0.4.0 + dev: true + + /buffer-equal@0.0.1: + resolution: {integrity: sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==} + engines: {node: '>=0.4.0'} + dev: false + + /buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + /buffer@5.7.1: + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + dev: false + + /bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + dev: true + + /cac@6.7.9: + resolution: {integrity: sha512-XN5qEpfNQCJ8jRaZgitSkkukjMRCGio+X3Ks5KUbGGlPbV+pSem1l9VuzooCBXOiMFshUZgyYqg6rgN8rjkb/w==} + engines: {node: '>=8'} + dev: true + + /call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + dev: true + + /call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + dev: true + + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camelcase@5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + dev: true + + /camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} + dev: true + + /caniuse-lite@1.0.30001731: + resolution: {integrity: sha512-lDdp2/wrOmTRWuoB5DpfNkC0rJDU8DqRa6nYL6HK6sytw70QMopt/NIc/9SM7ylItlBWfACXk0tEn37UWM/+mg==} + + /centra@2.7.0: + resolution: {integrity: sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==} + dependencies: + follow-redirects: 1.15.11 + transitivePeerDependencies: + - debug + dev: false + + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + dev: true + + /chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + /ci-info@3.9.0: + resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} + engines: {node: '>=8'} + dev: true + + /cjs-module-lexer@1.4.3: + resolution: {integrity: sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==} + dev: true + + /cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + + /co@4.6.0: + resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + dev: true + + /collect-v8-coverage@1.0.2: + resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} + dev: true + + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + dependencies: + delayed-stream: 1.0.0 + dev: true + + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + + /compare-versions@3.6.0: + resolution: {integrity: sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==} + + /computeds@0.0.1: + resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==} + dev: true + + /concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + dev: true + + /confbox@0.1.8: + resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + + /confbox@0.2.2: + resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==} + + /content-disposition@0.5.4: + resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} + engines: {node: '>= 0.6'} + dependencies: + safe-buffer: 5.2.1 + dev: true + + /content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + dev: true + + /convert-source-map@1.9.0: + resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} + dev: true + + /convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + /cookie-signature@1.0.6: + resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} + dev: true + + /cookie@0.7.1: + resolution: {integrity: sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==} + engines: {node: '>= 0.6'} + dev: true + + /core-js-compat@3.45.0: + resolution: {integrity: sha512-gRoVMBawZg0OnxaVv3zpqLLxaHmsubEGyTnqdpI/CEBvX4JadI1dMSHxagThprYRtSVbuQxvi6iUatdPxohHpA==} + dependencies: + browserslist: 4.25.1 + dev: true + + /core-js@3.45.0: + resolution: {integrity: sha512-c2KZL9lP4DjkN3hk/an4pWn5b5ZefhRJnAc42n6LJ19kSnbeRbdQZE5dSeE2LBol1OwJD3X1BQvFTAsa8ReeDA==} + requiresBuild: true + + /cross-env@7.0.3: + resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} + engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} + hasBin: true + dependencies: + cross-spawn: 7.0.6 + dev: true + + /cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /css-font-size-keywords@1.0.0: + resolution: {integrity: sha512-Q+svMDbMlelgCfH/RVDKtTDaf5021O486ZThQPIpahnIjUkMUslC+WuOQSWTgGSrNCH08Y7tYNEmmy0hkfMI8Q==} + dev: false + + /css-font-stretch-keywords@1.0.1: + resolution: {integrity: sha512-KmugPO2BNqoyp9zmBIUGwt58UQSfyk1X5DbOlkb2pckDXFSAfjsD5wenb88fNrD6fvS+vu90a/tsPpb9vb0SLg==} + dev: false + + /css-font-style-keywords@1.0.1: + resolution: {integrity: sha512-0Fn0aTpcDktnR1RzaBYorIxQily85M2KXRpzmxQPgh8pxUN9Fcn00I8u9I3grNr1QXVgCl9T5Imx0ZwKU973Vg==} + dev: false + + /css-font-weight-keywords@1.0.0: + resolution: {integrity: sha512-5So8/NH+oDD+EzsnF4iaG4ZFHQ3vaViePkL1ZbZ5iC/KrsCY+WHq/lvOgrtmuOQ9pBBZ1ADGpaf+A4lj1Z9eYA==} + dev: false + + /css-list-helpers@2.0.0: + resolution: {integrity: sha512-9Bj8tZ0jWbAM3u/U6m/boAzAwLPwtjzFvwivr2piSvyVa3K3rChJzQy4RIHkNkKiZCHrEMWDJWtTR8UyVhdDnQ==} + dev: false + + /css-system-font-keywords@1.0.0: + resolution: {integrity: sha512-1umTtVd/fXS25ftfjB71eASCrYhilmEsvDEI6wG/QplnmlfmVM5HkZ/ZX46DT5K3eblFPgLUHt5BRCb0YXkSFA==} + dev: false + + /cssesc@3.0.0: + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} + hasBin: true + + /cssom@0.3.8: + resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} + dev: true + + /cssom@0.4.4: + resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} + dev: true + + /cssstyle@2.3.0: + resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} + engines: {node: '>=8'} + dependencies: + cssom: 0.3.8 + dev: true + + /csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + + /data-urls@2.0.0: + resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} + engines: {node: '>=10'} + dependencies: + abab: 2.0.6 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + dev: true + + /dayjs@1.11.13: + resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} + dev: false + + /de-indent@1.0.2: + resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} + dev: true + + /debounce-promise@3.1.2: + resolution: {integrity: sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==} + dev: false + + /debug@2.6.9: + resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.0.0 + dev: true + + /debug@4.4.1: + resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.3 + + /decimal.js@10.6.0: + resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} + dev: true + + /dedent@0.7.0: + resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} + dev: true + + /deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + /default-gateway@6.0.3: + resolution: {integrity: sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==} + engines: {node: '>= 10'} + dependencies: + execa: 5.1.1 + dev: true + + /delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + dev: true + + /delegate@3.2.0: + resolution: {integrity: sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==} + dev: false + + /depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + dev: true + + /destroy@1.2.0: + resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} + engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} + dev: true + + /detect-newline@3.1.0: + resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} + engines: {node: '>=8'} + dev: true + + /diff-sequences@27.5.1: + resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /dom-walk@0.1.2: + resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==} + dev: false + + /domexception@2.0.1: + resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} + engines: {node: '>=8'} + deprecated: Use your platform's native DOMException instead + dependencies: + webidl-conversions: 5.0.0 + dev: true + + /dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + dev: true + + /ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + dev: true + + /electron-to-chromium@1.5.197: + resolution: {integrity: sha512-m1xWB3g7vJ6asIFz+2pBUbq3uGmfmln1M9SSvBe4QIFWYrRHylP73zL/3nMjDmwz8V+1xAXQDfBd6+HPW0WvDQ==} + + /emittery@0.8.1: + resolution: {integrity: sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==} + engines: {node: '>=10'} + dev: true + + /emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /encodeurl@1.0.2: + resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} + engines: {node: '>= 0.8'} + dev: true + + /encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + dev: true + + /entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + /error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + dependencies: + is-arrayish: 0.2.1 + dev: true + + /es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + dev: true + + /es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + dev: true + + /es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + + /es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + dev: true + + /es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + dev: true + + /esbuild@0.20.2: + resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/aix-ppc64': 0.20.2 + '@esbuild/android-arm': 0.20.2 + '@esbuild/android-arm64': 0.20.2 + '@esbuild/android-x64': 0.20.2 + '@esbuild/darwin-arm64': 0.20.2 + '@esbuild/darwin-x64': 0.20.2 + '@esbuild/freebsd-arm64': 0.20.2 + '@esbuild/freebsd-x64': 0.20.2 + '@esbuild/linux-arm': 0.20.2 + '@esbuild/linux-arm64': 0.20.2 + '@esbuild/linux-ia32': 0.20.2 + '@esbuild/linux-loong64': 0.20.2 + '@esbuild/linux-mips64el': 0.20.2 + '@esbuild/linux-ppc64': 0.20.2 + '@esbuild/linux-riscv64': 0.20.2 + '@esbuild/linux-s390x': 0.20.2 + '@esbuild/linux-x64': 0.20.2 + '@esbuild/netbsd-x64': 0.20.2 + '@esbuild/openbsd-x64': 0.20.2 + '@esbuild/sunos-x64': 0.20.2 + '@esbuild/win32-arm64': 0.20.2 + '@esbuild/win32-ia32': 0.20.2 + '@esbuild/win32-x64': 0.20.2 + + /escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + /escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + dev: true + + /escape-string-regexp@2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + dev: true + + /escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + + /escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + dev: true + + /esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + /estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + dependencies: + '@types/estree': 1.0.8 + + /esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + dev: true + + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: false + + /execa@5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} + dependencies: + cross-spawn: 7.0.6 + get-stream: 6.0.1 + human-signals: 2.1.0 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + dev: true + + /exif-parser@0.1.12: + resolution: {integrity: sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==} + dev: false + + /exit@0.1.2: + resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==} + engines: {node: '>= 0.8.0'} + dev: true + + /expect@27.5.1: + resolution: {integrity: sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + jest-get-type: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + dev: true + + /express@4.21.2: + resolution: {integrity: sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==} + engines: {node: '>= 0.10.0'} + dependencies: + accepts: 1.3.8 + array-flatten: 1.1.1 + body-parser: 1.20.3 + content-disposition: 0.5.4 + content-type: 1.0.5 + cookie: 0.7.1 + cookie-signature: 1.0.6 + debug: 2.6.9 + depd: 2.0.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 1.3.1 + fresh: 0.5.2 + http-errors: 2.0.0 + merge-descriptors: 1.0.3 + methods: 1.1.2 + on-finished: 2.4.1 + parseurl: 1.3.3 + path-to-regexp: 0.1.12 + proxy-addr: 2.0.7 + qs: 6.13.0 + range-parser: 1.2.1 + safe-buffer: 5.2.1 + send: 0.19.0 + serve-static: 1.16.2 + setprototypeof: 1.2.0 + statuses: 2.0.1 + type-is: 1.6.18 + utils-merge: 1.0.1 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + /exsolve@1.0.7: + resolution: {integrity: sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==} + + /ezuikit-js@8.1.13-beta.1: + resolution: {integrity: sha512-1tBhWEXwXZk7+uwJR2QBayTFYuGbffo4YjdyrjY4XPTjMyQtzlEx76fYdfqQOjc6C5c6r+YqCPLzSuNaTssZEQ==} + dependencies: + '@ezuikit/player-ezopen': 8.1.12-beta.4 + '@ezuikit/utils-collect': 0.1.1 + '@ezuikit/utils-i18n': 1.0.1 + '@ezuikit/utils-logger': 1.0.1 + '@ezuikit/utils-tools': 1.0.4 + '@juggle/resize-observer': 3.4.0 + abortcontroller-polyfill: 1.7.8 + debounce-promise: 3.1.2 + deepmerge: 4.3.1 + delegate: 3.2.0 + formdata-polyfill: 4.0.10 + jquery: 3.7.1 + lodash-es: 4.17.21 + screenfull: 5.2.0 + uuid: 8.3.2 + dev: false + + /fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + /fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fastq@1.19.1: + resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} + dependencies: + reusify: 1.1.0 + + /fb-watchman@2.0.2: + resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} + dependencies: + bser: 2.1.1 + dev: true + + /fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + dev: false + + /file-type@9.0.0: + resolution: {integrity: sha512-Qe/5NJrgIOlwijpq3B7BEpzPFcgzggOTagZmkXQY4LA6bsXKTUstK7Wp12lEJ/mLKTpvIZxmIuRcLYWT6ov9lw==} + engines: {node: '>=6'} + dev: false + + /fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + + /finalhandler@1.3.1: + resolution: {integrity: sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==} + engines: {node: '>= 0.8'} + dependencies: + debug: 2.6.9 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.1 + unpipe: 1.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + + /follow-redirects@1.15.11: + resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dev: false + + /form-data@3.0.4: + resolution: {integrity: sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==} + engines: {node: '>= 6'} + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.2 + mime-types: 2.1.35 + dev: true + + /formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + dependencies: + fetch-blob: 3.2.0 + dev: false + + /forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + dev: true + + /fraction.js@4.3.7: + resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} + + /fresh@0.5.2: + resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} + engines: {node: '>= 0.6'} + dev: true + + /fs-extra@10.1.0: + resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} + engines: {node: '>=12'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 6.1.0 + universalify: 2.0.1 + + /fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + dev: true + + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + /generic-names@4.0.0: + resolution: {integrity: sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==} + dependencies: + loader-utils: 3.3.1 + + /gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + /get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + dev: true + + /get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + dev: true + + /get-package-type@0.1.0: + resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} + engines: {node: '>=8.0.0'} + dev: true + + /get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + dev: true + + /get-stream@6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + dev: true + + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + + /glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /global@4.4.0: + resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==} + dependencies: + min-document: 2.19.0 + process: 0.11.10 + dev: false + + /gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + dev: true + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + dev: true + + /has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.1.0 + dev: true + + /hash-sum@2.0.0: + resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==} + + /hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + + /he@1.2.0: + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} + hasBin: true + dev: true + + /html-encoding-sniffer@2.0.1: + resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} + engines: {node: '>=10'} + dependencies: + whatwg-encoding: 1.0.5 + dev: true + + /html-escaper@2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + dev: true + + /http-errors@2.0.0: + resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} + engines: {node: '>= 0.8'} + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.1 + toidentifier: 1.0.1 + dev: true + + /http-proxy-agent@4.0.1: + resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} + engines: {node: '>= 6'} + dependencies: + '@tootallnate/once': 1.1.2 + agent-base: 6.0.2 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + dev: true + + /https-proxy-agent@5.0.1: + resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} + engines: {node: '>= 6'} + dependencies: + agent-base: 6.0.2 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + dev: true + + /human-signals@2.1.0: + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} + dev: true + + /i18n-js@4.5.1: + resolution: {integrity: sha512-n7jojFj1WC0tztgr0I8jqTXuIlY1xNzXnC3mjKX/YjJhimdM+jXM8vOmn9d3xQFNC6qDHJ4ovhdrGXrRXLIGkA==} + dependencies: + bignumber.js: 9.3.1 + lodash: 4.17.21 + make-plural: 7.4.0 + dev: false + + /iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /icss-replace-symbols@1.1.0: + resolution: {integrity: sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==} + + /icss-utils@5.1.0(postcss@8.5.6): + resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==} + engines: {node: ^10 || ^12 || >= 14} + peerDependencies: + postcss: ^8.1.0 + dependencies: + postcss: 8.5.6 + + /ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + dev: false + + /import-local@3.2.0: + resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==} + engines: {node: '>=8'} + hasBin: true + dependencies: + pkg-dir: 4.2.0 + resolve-cwd: 3.0.0 + dev: true + + /imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + dev: true + + /inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /invert-kv@3.0.1: + resolution: {integrity: sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==} + engines: {node: '>=8'} + + /ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + dev: true + + /is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + dev: true + + /is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + dependencies: + binary-extensions: 2.3.0 + + /is-core-module@2.16.1: + resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} + engines: {node: '>= 0.4'} + dependencies: + hasown: 2.0.2 + + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + /is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-function@1.0.2: + resolution: {integrity: sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==} + dev: false + + /is-generator-fn@2.1.0: + resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} + engines: {node: '>=6'} + dev: true + + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + /is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: true + + /is-stream@2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + dev: true + + /is-typedarray@1.0.0: + resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} + dev: true + + /isbinaryfile@5.0.4: + resolution: {integrity: sha512-YKBKVkKhty7s8rxddb40oOkuP0NbaeXrQvLin6QMHL7Ypiy2RW9LwOVrVgZRyOrhQlayMd9t+D8yDy8MKFTSDQ==} + engines: {node: '>= 18.0.0'} + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /istanbul-lib-coverage@3.2.2: + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} + engines: {node: '>=8'} + dev: true + + /istanbul-lib-instrument@5.2.1: + resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} + engines: {node: '>=8'} + dependencies: + '@babel/core': 7.28.0 + '@babel/parser': 7.28.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.2 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-lib-report@3.0.1: + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} + dependencies: + istanbul-lib-coverage: 3.2.2 + make-dir: 4.0.0 + supports-color: 7.2.0 + dev: true + + /istanbul-lib-source-maps@4.0.1: + resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} + engines: {node: '>=10'} + dependencies: + debug: 4.4.1 + istanbul-lib-coverage: 3.2.2 + source-map: 0.6.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-reports@3.1.7: + resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} + engines: {node: '>=8'} + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.1 + dev: true + + /jest-changed-files@27.5.1: + resolution: {integrity: sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + execa: 5.1.1 + throat: 6.0.2 + dev: true + + /jest-circus@27.5.1: + resolution: {integrity: sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + co: 4.6.0 + dedent: 0.7.0 + expect: 27.5.1 + is-generator-fn: 2.1.0 + jest-each: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + slash: 3.0.0 + stack-utils: 2.0.6 + throat: 6.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-cli@27.5.1: + resolution: {integrity: sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.11 + import-local: 3.2.0 + jest-config: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + prompts: 2.4.2 + yargs: 16.2.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-config@27.5.1: + resolution: {integrity: sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + peerDependencies: + ts-node: '>=9.0.0' + peerDependenciesMeta: + ts-node: + optional: true + dependencies: + '@babel/core': 7.28.0 + '@jest/test-sequencer': 27.5.1 + '@jest/types': 27.5.1 + babel-jest: 27.5.1(@babel/core@7.28.0) + chalk: 4.1.2 + ci-info: 3.9.0 + deepmerge: 4.3.1 + glob: 7.2.3 + graceful-fs: 4.2.11 + jest-circus: 27.5.1 + jest-environment-jsdom: 27.5.1 + jest-environment-node: 27.5.1 + jest-get-type: 27.5.1 + jest-jasmine2: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-runner: 27.5.1 + jest-util: 27.5.1 + jest-validate: 27.5.1 + micromatch: 4.0.8 + parse-json: 5.2.0 + pretty-format: 27.5.1 + slash: 3.0.0 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-diff@27.5.1: + resolution: {integrity: sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + chalk: 4.1.2 + diff-sequences: 27.5.1 + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-docblock@27.5.1: + resolution: {integrity: sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + detect-newline: 3.1.0 + dev: true + + /jest-each@27.5.1: + resolution: {integrity: sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + chalk: 4.1.2 + jest-get-type: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-environment-jsdom@27.5.1: + resolution: {integrity: sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + jest-mock: 27.5.1 + jest-util: 27.5.1 + jsdom: 16.7.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-environment-node@27.5.1: + resolution: {integrity: sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + jest-mock: 27.5.1 + jest-util: 27.5.1 + dev: true + + /jest-get-type@27.5.1: + resolution: {integrity: sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /jest-haste-map@27.5.1: + resolution: {integrity: sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/graceful-fs': 4.1.9 + '@types/node': 24.2.0 + anymatch: 3.1.3 + fb-watchman: 2.0.2 + graceful-fs: 4.2.11 + jest-regex-util: 27.5.1 + jest-serializer: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + micromatch: 4.0.8 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.3 + dev: true + + /jest-jasmine2@27.5.1: + resolution: {integrity: sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/source-map': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + co: 4.6.0 + expect: 27.5.1 + is-generator-fn: 2.1.0 + jest-each: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-runtime: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + pretty-format: 27.5.1 + throat: 6.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-leak-detector@27.5.1: + resolution: {integrity: sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-matcher-utils@27.5.1: + resolution: {integrity: sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + chalk: 4.1.2 + jest-diff: 27.5.1 + jest-get-type: 27.5.1 + pretty-format: 27.5.1 + dev: true + + /jest-message-util@27.5.1: + resolution: {integrity: sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/code-frame': 7.27.1 + '@jest/types': 27.5.1 + '@types/stack-utils': 2.0.3 + chalk: 4.1.2 + graceful-fs: 4.2.11 + micromatch: 4.0.8 + pretty-format: 27.5.1 + slash: 3.0.0 + stack-utils: 2.0.6 + dev: true + + /jest-mock@27.5.1: + resolution: {integrity: sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + dev: true + + /jest-pnp-resolver@1.2.3(jest-resolve@27.5.1): + resolution: {integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==} + engines: {node: '>=6'} + peerDependencies: + jest-resolve: '*' + peerDependenciesMeta: + jest-resolve: + optional: true + dependencies: + jest-resolve: 27.5.1 + dev: true + + /jest-regex-util@27.5.1: + resolution: {integrity: sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dev: true + + /jest-resolve-dependencies@27.5.1: + resolution: {integrity: sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + jest-regex-util: 27.5.1 + jest-snapshot: 27.5.1 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-resolve@27.5.1: + resolution: {integrity: sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + chalk: 4.1.2 + graceful-fs: 4.2.11 + jest-haste-map: 27.5.1 + jest-pnp-resolver: 1.2.3(jest-resolve@27.5.1) + jest-util: 27.5.1 + jest-validate: 27.5.1 + resolve: 1.22.10 + resolve.exports: 1.1.1 + slash: 3.0.0 + dev: true + + /jest-runner@27.5.1: + resolution: {integrity: sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/console': 27.5.1 + '@jest/environment': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + emittery: 0.8.1 + graceful-fs: 4.2.11 + jest-docblock: 27.5.1 + jest-environment-jsdom: 27.5.1 + jest-environment-node: 27.5.1 + jest-haste-map: 27.5.1 + jest-leak-detector: 27.5.1 + jest-message-util: 27.5.1 + jest-resolve: 27.5.1 + jest-runtime: 27.5.1 + jest-util: 27.5.1 + jest-worker: 27.5.1 + source-map-support: 0.5.21 + throat: 6.0.2 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-runtime@27.5.1: + resolution: {integrity: sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/environment': 27.5.1 + '@jest/fake-timers': 27.5.1 + '@jest/globals': 27.5.1 + '@jest/source-map': 27.5.1 + '@jest/test-result': 27.5.1 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + chalk: 4.1.2 + cjs-module-lexer: 1.4.3 + collect-v8-coverage: 1.0.2 + execa: 5.1.1 + glob: 7.2.3 + graceful-fs: 4.2.11 + jest-haste-map: 27.5.1 + jest-message-util: 27.5.1 + jest-mock: 27.5.1 + jest-regex-util: 27.5.1 + jest-resolve: 27.5.1 + jest-snapshot: 27.5.1 + jest-util: 27.5.1 + slash: 3.0.0 + strip-bom: 4.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-serializer@27.5.1: + resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@types/node': 24.2.0 + graceful-fs: 4.2.11 + dev: true + + /jest-snapshot@27.5.1: + resolution: {integrity: sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@babel/core': 7.28.0 + '@babel/generator': 7.28.0 + '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.28.0) + '@babel/traverse': 7.28.0 + '@babel/types': 7.28.2 + '@jest/transform': 27.5.1 + '@jest/types': 27.5.1 + '@types/babel__traverse': 7.28.0 + '@types/prettier': 2.7.3 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.28.0) + chalk: 4.1.2 + expect: 27.5.1 + graceful-fs: 4.2.11 + jest-diff: 27.5.1 + jest-get-type: 27.5.1 + jest-haste-map: 27.5.1 + jest-matcher-utils: 27.5.1 + jest-message-util: 27.5.1 + jest-util: 27.5.1 + natural-compare: 1.4.0 + pretty-format: 27.5.1 + semver: 7.7.2 + transitivePeerDependencies: + - supports-color + dev: true + + /jest-util@27.5.1: + resolution: {integrity: sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + chalk: 4.1.2 + ci-info: 3.9.0 + graceful-fs: 4.2.11 + picomatch: 2.3.1 + dev: true + + /jest-validate@27.5.1: + resolution: {integrity: sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/types': 27.5.1 + camelcase: 6.3.0 + chalk: 4.1.2 + jest-get-type: 27.5.1 + leven: 3.1.0 + pretty-format: 27.5.1 + dev: true + + /jest-watcher@27.5.1: + resolution: {integrity: sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + '@jest/test-result': 27.5.1 + '@jest/types': 27.5.1 + '@types/node': 24.2.0 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + jest-util: 27.5.1 + string-length: 4.0.2 + dev: true + + /jest-worker@27.5.1: + resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/node': 24.2.0 + merge-stream: 2.0.0 + supports-color: 8.1.1 + dev: true + + /jest@27.0.4: + resolution: {integrity: sha512-Px1iKFooXgGSkk1H8dJxxBIrM3tsc5SIuI4kfKYK2J+4rvCvPGr/cXktxh0e9zIPQ5g09kOMNfHQEmusBUf/ZA==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + hasBin: true + peerDependencies: + node-notifier: ^8.0.1 || ^9.0.0 + peerDependenciesMeta: + node-notifier: + optional: true + dependencies: + '@jest/core': 27.5.1 + import-local: 3.2.0 + jest-cli: 27.5.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jimp@0.10.3: + resolution: {integrity: sha512-meVWmDMtyUG5uYjFkmzu0zBgnCvvxwWNi27c4cg55vWNVC9ES4Lcwb+ogx+uBBQE3Q+dLKjXaLl0JVW+nUNwbQ==} + dependencies: + '@babel/runtime': 7.28.2 + '@jimp/custom': 0.10.3 + '@jimp/plugins': 0.10.3(@jimp/custom@0.10.3) + '@jimp/types': 0.10.3(@jimp/custom@0.10.3) + core-js: 3.45.0 + regenerator-runtime: 0.13.11 + transitivePeerDependencies: + - debug + dev: false + + /jpeg-js@0.3.7: + resolution: {integrity: sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ==} + dev: false + + /jquery@3.7.1: + resolution: {integrity: sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==} + dev: false + + /js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + /js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + + /js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + + /jsdom@16.7.0: + resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} + engines: {node: '>=10'} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true + dependencies: + abab: 2.0.6 + acorn: 8.15.0 + acorn-globals: 6.0.0 + cssom: 0.4.4 + cssstyle: 2.3.0 + data-urls: 2.0.0 + decimal.js: 10.6.0 + domexception: 2.0.1 + escodegen: 2.1.0 + form-data: 3.0.4 + html-encoding-sniffer: 2.0.1 + http-proxy-agent: 4.0.1 + https-proxy-agent: 5.0.1 + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.21 + parse5: 6.0.1 + saxes: 5.0.1 + symbol-tree: 3.2.4 + tough-cookie: 4.1.4 + w3c-hr-time: 1.0.2 + w3c-xmlserializer: 2.0.0 + webidl-conversions: 6.1.0 + whatwg-encoding: 1.0.5 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + ws: 7.5.10 + xml-name-validator: 3.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + dev: true + + /jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + /json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + dev: true + + /json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + /jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + /jsonfile@6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.1 + optionalDependencies: + graceful-fs: 4.2.11 + + /kleur@3.0.3: + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} + engines: {node: '>=6'} + dev: true + + /lcid@3.1.1: + resolution: {integrity: sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==} + engines: {node: '>=8'} + dependencies: + invert-kv: 3.0.1 + + /leven@3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + dev: true + + /licia@1.48.0: + resolution: {integrity: sha512-bBWiT5CSdEtwuAHiYTJ74yItCjIFdHi4xiFk6BRDfKa+sdCpkUHp69YKb5udNOJlHDzFjNjcMgNZ/+wQIHrB8A==} + + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + + /lines-and-columns@2.0.4: + resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + /load-bmfont@1.4.2: + resolution: {integrity: sha512-qElWkmjW9Oq1F9EI5Gt7aD9zcdHb9spJCW1L/dmPf7KzCCEJxq8nhHz5eCgI9aMf7vrG/wyaCqdsI+Iy9ZTlog==} + dependencies: + buffer-equal: 0.0.1 + mime: 1.6.0 + parse-bmfont-ascii: 1.0.6 + parse-bmfont-binary: 1.0.6 + parse-bmfont-xml: 1.1.6 + phin: 3.7.1 + xhr: 2.6.0 + xtend: 4.0.2 + transitivePeerDependencies: + - debug + dev: false + + /loader-utils@3.3.1: + resolution: {integrity: sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==} + engines: {node: '>= 12.13.0'} + + /local-pkg@0.5.1: + resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==} + engines: {node: '>=14'} + dependencies: + mlly: 1.7.4 + pkg-types: 1.3.1 + + /local-pkg@1.1.1: + resolution: {integrity: sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==} + engines: {node: '>=14'} + dependencies: + mlly: 1.7.4 + pkg-types: 2.2.0 + quansync: 0.2.10 + + /localstorage-polyfill@1.0.1: + resolution: {integrity: sha512-m4iHVZxFH5734oQcPKU08025gIz2+4bjWR9lulP8ZYxEJR0BpA0w32oJmkzh8y3UI9ci7xCBehQDc3oA1X+VHw==} + engines: {node: '>=6'} + dev: false + + /locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + dependencies: + p-locate: 4.1.0 + dev: true + + /lodash-es@4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + dev: false + + /lodash.camelcase@4.3.0: + resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} + + /lodash.debounce@4.0.8: + resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} + dev: true + + /lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + /lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + dependencies: + yallist: 3.1.1 + + /magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + dependencies: + '@jridgewell/sourcemap-codec': 1.5.4 + + /make-dir@4.0.0: + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} + dependencies: + semver: 7.7.2 + dev: true + + /make-plural@7.4.0: + resolution: {integrity: sha512-4/gC9KVNTV6pvYg2gFeQYTW3mWaoJt7WZE5vrp1KnQDgW92JtYZnzmZT81oj/dUTqAIu0ufI2x3dkgu3bB1tYg==} + dev: false + + /makeerror@1.0.12: + resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} + dependencies: + tmpl: 1.0.5 + dev: true + + /math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + dev: true + + /media-typer@0.3.0: + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} + engines: {node: '>= 0.6'} + dev: true + + /meow@13.2.0: + resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} + engines: {node: '>=18'} + dev: true + + /merge-descriptors@1.0.3: + resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==} + dev: true + + /merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + /merge@2.1.1: + resolution: {integrity: sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==} + + /methods@1.1.2: + resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} + engines: {node: '>= 0.6'} + dev: true + + /micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + /mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + dev: true + + /mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + dependencies: + mime-db: 1.52.0 + dev: true + + /mime@1.6.0: + resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} + engines: {node: '>=4'} + hasBin: true + + /mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} + hasBin: true + + /mimic-fn@2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + dev: true + + /min-document@2.19.0: + resolution: {integrity: sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==} + dependencies: + dom-walk: 0.1.2 + dev: false + + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.12 + dev: true + + /minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.2 + + /minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + dev: false + + /mkdirp@0.5.6: + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} + hasBin: true + dependencies: + minimist: 1.2.8 + dev: false + + /mlly@1.7.4: + resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==} + dependencies: + acorn: 8.15.0 + pathe: 2.0.3 + pkg-types: 1.3.1 + ufo: 1.6.1 + + /module-alias@2.2.3: + resolution: {integrity: sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==} + + /ms@2.0.0: + resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} + dev: true + + /ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + /muggle-string@0.3.1: + resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==} + dev: true + + /nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + /natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + dev: true + + /negotiator@0.6.3: + resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} + engines: {node: '>= 0.6'} + dev: true + + /node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + dev: false + + /node-int64@0.4.0: + resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} + dev: true + + /node-releases@2.0.19: + resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} + + /normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + /normalize-range@0.1.2: + resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} + engines: {node: '>=0.10.0'} + + /npm-run-path@4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + dependencies: + path-key: 3.1.1 + dev: true + + /nwsapi@2.2.21: + resolution: {integrity: sha512-o6nIY3qwiSXl7/LuOU0Dmuctd34Yay0yeuZRLFmDPrrdHpXKFndPj3hM+YEPVHYC5fx2otBx4Ilc/gyYSAUaIA==} + dev: true + + /object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + dev: true + + /omggif@1.0.10: + resolution: {integrity: sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==} + dev: false + + /on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + dependencies: + ee-first: 1.1.1 + dev: true + + /once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + dependencies: + wrappy: 1.0.2 + dev: true + + /onetime@5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + dependencies: + mimic-fn: 2.1.0 + dev: true + + /os-locale-s-fix@1.0.8-fix-1: + resolution: {integrity: sha512-Sv0OvhPiMutICiwORAUefv02DCPb62IelBmo8ZsSrRHyI3FStqIWZvjqDkvtjU+lcujo7UNir+dCwKSqlEQ/5w==} + engines: {node: '>=10', yarn: ^1.22.4} + dependencies: + lcid: 3.1.1 + + /p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + dependencies: + p-try: 2.2.0 + dev: true + + /p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + dependencies: + p-limit: 2.3.0 + dev: true + + /p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + dev: true + + /pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + dev: false + + /parse-bmfont-ascii@1.0.6: + resolution: {integrity: sha512-U4RrVsUFCleIOBsIGYOMKjn9PavsGOXxbvYGtMOEfnId0SVNsgehXh1DxUdVPLoxd5mvcEtvmKs2Mmf0Mpa1ZA==} + dev: false + + /parse-bmfont-binary@1.0.6: + resolution: {integrity: sha512-GxmsRea0wdGdYthjuUeWTMWPqm2+FAd4GI8vCvhgJsFnoGhTrLhXDDupwTo7rXVAgaLIGoVHDZS9p/5XbSqeWA==} + dev: false + + /parse-bmfont-xml@1.1.6: + resolution: {integrity: sha512-0cEliVMZEhrFDwMh4SxIyVJpqYoOWDJ9P895tFuS+XuNzI5UBmBk5U5O4KuJdTnZpSBI4LFA2+ZiJaiwfSwlMA==} + dependencies: + xml-parse-from-string: 1.0.1 + xml2js: 0.5.0 + dev: false + + /parse-css-font@4.0.0: + resolution: {integrity: sha512-lnY7dTUfjRXsSo5G5C639L8RaBBaVSgL+5hacIFKsNHzeCJQ5SFSZv1DZmc7+wZv/22PFGOq2YbaEHLdaCS/mQ==} + dependencies: + css-font-size-keywords: 1.0.0 + css-font-stretch-keywords: 1.0.1 + css-font-style-keywords: 1.0.1 + css-font-weight-keywords: 1.0.0 + css-list-helpers: 2.0.0 + css-system-font-keywords: 1.0.0 + unquote: 1.1.1 + dev: false + + /parse-headers@2.0.6: + resolution: {integrity: sha512-Tz11t3uKztEW5FEVZnj1ox8GKblWn+PvHY9TmJV5Mll2uHEwRdR/5Li1OlXoECjLYkApdhWy44ocONwXLiKO5A==} + dev: false + + /parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': 7.27.1 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + dev: true + + /parse5@6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: true + + /parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + dev: true + + /path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + dev: true + + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + dev: true + + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + /path-to-regexp@0.1.12: + resolution: {integrity: sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==} + dev: true + + /pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + /phin@2.9.3: + resolution: {integrity: sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. + dev: false + + /phin@3.7.1: + resolution: {integrity: sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==} + engines: {node: '>= 8'} + dependencies: + centra: 2.7.0 + transitivePeerDependencies: + - debug + dev: false + + /picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + /picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + + /pify@2.3.0: + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} + + /pirates@4.0.7: + resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} + engines: {node: '>= 6'} + dev: true + + /pixelmatch@4.0.2: + resolution: {integrity: sha512-J8B6xqiO37sU/gkcMglv6h5Jbd9xNER7aHzpfRdNmV4IbQBzBpe4l9XmbG+xPF/znacgu2jfEw+wHffaq/YkXA==} + hasBin: true + dependencies: + pngjs: 3.4.0 + dev: false + + /pkg-dir@4.2.0: + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + dev: true + + /pkg-types@1.3.1: + resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + dependencies: + confbox: 0.1.8 + mlly: 1.7.4 + pathe: 2.0.3 + + /pkg-types@2.2.0: + resolution: {integrity: sha512-2SM/GZGAEkPp3KWORxQZns4M+WSeXbC2HEvmOIJe3Cmiv6ieAJvdVhDldtHqM5J1Y7MrR1XhkBT/rMlhh9FdqQ==} + dependencies: + confbox: 0.2.2 + exsolve: 1.0.7 + pathe: 2.0.3 + + /pngjs@3.4.0: + resolution: {integrity: sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==} + engines: {node: '>=4.0.0'} + dev: false + + /postcss-import@14.1.0(postcss@8.5.6): + resolution: {integrity: sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==} + engines: {node: '>=10.0.0'} + peerDependencies: + postcss: ^8.0.0 + dependencies: + postcss: 8.5.6 + postcss-value-parser: 4.2.0 + read-cache: 1.0.0 + resolve: 1.22.10 + + /postcss-load-config@3.1.4(postcss@8.5.6): + resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} + engines: {node: '>= 10'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 2.1.0 + postcss: 8.5.6 + yaml: 1.10.2 + + /postcss-modules-extract-imports@3.1.0(postcss@8.5.6): + resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==} + engines: {node: ^10 || ^12 || >= 14} + peerDependencies: + postcss: ^8.1.0 + dependencies: + postcss: 8.5.6 + + /postcss-modules-local-by-default@4.2.0(postcss@8.5.6): + resolution: {integrity: sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==} + engines: {node: ^10 || ^12 || >= 14} + peerDependencies: + postcss: ^8.1.0 + dependencies: + icss-utils: 5.1.0(postcss@8.5.6) + postcss: 8.5.6 + postcss-selector-parser: 7.1.0 + postcss-value-parser: 4.2.0 + + /postcss-modules-scope@3.2.1(postcss@8.5.6): + resolution: {integrity: sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==} + engines: {node: ^10 || ^12 || >= 14} + peerDependencies: + postcss: ^8.1.0 + dependencies: + postcss: 8.5.6 + postcss-selector-parser: 7.1.0 + + /postcss-modules-values@4.0.0(postcss@8.5.6): + resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==} + engines: {node: ^10 || ^12 || >= 14} + peerDependencies: + postcss: ^8.1.0 + dependencies: + icss-utils: 5.1.0(postcss@8.5.6) + postcss: 8.5.6 + + /postcss-modules@4.3.1(postcss@8.5.6): + resolution: {integrity: sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q==} + peerDependencies: + postcss: ^8.0.0 + dependencies: + generic-names: 4.0.0 + icss-replace-symbols: 1.1.0 + lodash.camelcase: 4.3.0 + postcss: 8.5.6 + postcss-modules-extract-imports: 3.1.0(postcss@8.5.6) + postcss-modules-local-by-default: 4.2.0(postcss@8.5.6) + postcss-modules-scope: 3.2.1(postcss@8.5.6) + postcss-modules-values: 4.0.0(postcss@8.5.6) + string-hash: 1.1.3 + + /postcss-selector-parser@6.1.2: + resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + + /postcss-selector-parser@7.1.0: + resolution: {integrity: sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==} + engines: {node: '>=4'} + dependencies: + cssesc: 3.0.0 + util-deprecate: 1.0.2 + + /postcss-value-parser@4.2.0: + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} + + /postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + /pretty-format@27.5.1: + resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} + engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + dependencies: + ansi-regex: 5.0.1 + ansi-styles: 5.2.0 + react-is: 17.0.2 + dev: true + + /process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + dev: false + + /prompts@2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} + engines: {node: '>= 6'} + dependencies: + kleur: 3.0.3 + sisteransi: 1.0.5 + dev: true + + /proxy-addr@2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + dev: true + + /psl@1.15.0: + resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==} + dependencies: + punycode: 2.3.1 + dev: true + + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + dev: true + + /qrcode-reader@1.0.4: + resolution: {integrity: sha512-rRjALGNh9zVqvweg1j5OKIQKNsw3bLC+7qwlnead5K/9cb1cEIAGkwikt/09U0K+2IDWGD9CC6SP7tHAjUeqvQ==} + + /qrcode-terminal@0.12.0: + resolution: {integrity: sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==} + hasBin: true + + /qs@6.13.0: + resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} + engines: {node: '>=0.6'} + dependencies: + side-channel: 1.1.0 + dev: true + + /quansync@0.2.10: + resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==} + + /querystringify@2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + dev: true + + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + /range-parser@1.2.1: + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} + dev: true + + /raw-body@2.5.2: + resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} + engines: {node: '>= 0.8'} + dependencies: + bytes: 3.1.2 + http-errors: 2.0.0 + iconv-lite: 0.4.24 + unpipe: 1.0.0 + dev: true + + /react-is@17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + dev: true + + /read-cache@1.0.0: + resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} + dependencies: + pify: 2.3.0 + + /readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + dependencies: + picomatch: 2.3.1 + + /regenerate-unicode-properties@10.2.0: + resolution: {integrity: sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==} + engines: {node: '>=4'} + dependencies: + regenerate: 1.4.2 + dev: true + + /regenerate@1.4.2: + resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} + dev: true + + /regenerator-runtime@0.13.11: + resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} + dev: false + + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + dev: true + + /regexpu-core@6.2.0: + resolution: {integrity: sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==} + engines: {node: '>=4'} + dependencies: + regenerate: 1.4.2 + regenerate-unicode-properties: 10.2.0 + regjsgen: 0.8.0 + regjsparser: 0.12.0 + unicode-match-property-ecmascript: 2.0.0 + unicode-match-property-value-ecmascript: 2.2.0 + dev: true + + /regjsgen@0.8.0: + resolution: {integrity: sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==} + dev: true + + /regjsparser@0.12.0: + resolution: {integrity: sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==} + hasBin: true + dependencies: + jsesc: 3.0.2 + dev: true + + /require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + dev: true + + /requires-port@1.0.0: + resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + dev: true + + /resolve-cwd@3.0.0: + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} + dependencies: + resolve-from: 5.0.0 + dev: true + + /resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + dev: true + + /resolve.exports@1.1.1: + resolution: {integrity: sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==} + engines: {node: '>=10'} + dev: true + + /resolve@1.22.10: + resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==} + engines: {node: '>= 0.4'} + hasBin: true + dependencies: + is-core-module: 2.16.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + /reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + /rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported + hasBin: true + dependencies: + glob: 7.2.3 + dev: true + + /rollup@4.46.2: + resolution: {integrity: sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.46.2 + '@rollup/rollup-android-arm64': 4.46.2 + '@rollup/rollup-darwin-arm64': 4.46.2 + '@rollup/rollup-darwin-x64': 4.46.2 + '@rollup/rollup-freebsd-arm64': 4.46.2 + '@rollup/rollup-freebsd-x64': 4.46.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.46.2 + '@rollup/rollup-linux-arm-musleabihf': 4.46.2 + '@rollup/rollup-linux-arm64-gnu': 4.46.2 + '@rollup/rollup-linux-arm64-musl': 4.46.2 + '@rollup/rollup-linux-loongarch64-gnu': 4.46.2 + '@rollup/rollup-linux-ppc64-gnu': 4.46.2 + '@rollup/rollup-linux-riscv64-gnu': 4.46.2 + '@rollup/rollup-linux-riscv64-musl': 4.46.2 + '@rollup/rollup-linux-s390x-gnu': 4.46.2 + '@rollup/rollup-linux-x64-gnu': 4.46.2 + '@rollup/rollup-linux-x64-musl': 4.46.2 + '@rollup/rollup-win32-arm64-msvc': 4.46.2 + '@rollup/rollup-win32-ia32-msvc': 4.46.2 + '@rollup/rollup-win32-x64-msvc': 4.46.2 + fsevents: 2.3.3 + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + + /safe-area-insets@1.4.1: + resolution: {integrity: sha512-r/nRWTjFGhhm3w1Z6Kd/jY11srN+lHt2mNl1E/emQGW8ic7n3Avu4noibklfSM+Y34peNphHD/BSZecav0sXYQ==} + dev: false + + /safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true + + /safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /sax@1.4.1: + resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==} + dev: false + + /saxes@5.0.1: + resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} + engines: {node: '>=10'} + dependencies: + xmlchars: 2.2.0 + dev: true + + /screenfull@5.2.0: + resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} + engines: {node: '>=0.10.0'} + dev: false + + /scule@1.3.0: + resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} + + /semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + /semver@7.7.2: + resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} + engines: {node: '>=10'} + hasBin: true + dev: true + + /send@0.19.0: + resolution: {integrity: sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==} + engines: {node: '>= 0.8.0'} + dependencies: + debug: 2.6.9 + depd: 2.0.0 + destroy: 1.2.0 + encodeurl: 1.0.2 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 0.5.2 + http-errors: 2.0.0 + mime: 1.6.0 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.2.1 + statuses: 2.0.1 + transitivePeerDependencies: + - supports-color + dev: true + + /serve-static@1.16.2: + resolution: {integrity: sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==} + engines: {node: '>= 0.8.0'} + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 0.19.0 + transitivePeerDependencies: + - supports-color + dev: true + + /setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + dev: true + + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /side-channel-list@1.0.0: + resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + dev: true + + /side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + dev: true + + /side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + dev: true + + /side-channel@1.1.0: + resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.0 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + dev: true + + /signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + dev: true + + /sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + dev: true + + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + /source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + /source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + /source-map@0.7.6: + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} + engines: {node: '>= 12'} + dev: true + + /sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + dev: true + + /stack-utils@2.0.6: + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} + dependencies: + escape-string-regexp: 2.0.0 + dev: true + + /statuses@2.0.1: + resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} + engines: {node: '>= 0.8'} + dev: true + + /string-hash@1.1.3: + resolution: {integrity: sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==} + + /string-length@4.0.2: + resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} + engines: {node: '>=10'} + dependencies: + char-regex: 1.0.2 + strip-ansi: 6.0.1 + dev: true + + /string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-bom@4.0.0: + resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} + engines: {node: '>=8'} + dev: true + + /strip-final-newline@2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + dev: true + + /strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + dev: true + + /strip-literal@2.1.1: + resolution: {integrity: sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==} + dependencies: + js-tokens: 9.0.1 + + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-color@8.1.1: + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-hyperlinks@2.3.0: + resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + dev: true + + /supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + /symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + dev: true + + /systemjs@6.15.1: + resolution: {integrity: sha512-Nk8c4lXvMB98MtbmjX7JwJRgJOL8fluecYCfCeYBznwmpOs8Bf15hLM6z4z71EDAhQVrQrI+wt1aLWSXZq+hXA==} + dev: true + + /tapable@2.2.2: + resolution: {integrity: sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==} + engines: {node: '>=6'} + + /terminal-link@2.1.1: + resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} + engines: {node: '>=8'} + dependencies: + ansi-escapes: 4.3.2 + supports-hyperlinks: 2.3.0 + dev: true + + /terser@5.43.1: + resolution: {integrity: sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.10 + acorn: 8.15.0 + commander: 2.20.3 + source-map-support: 0.5.21 + + /test-exclude@6.0.0: + resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} + engines: {node: '>=8'} + dependencies: + '@istanbuljs/schema': 0.1.3 + glob: 7.2.3 + minimatch: 3.1.2 + dev: true + + /throat@6.0.2: + resolution: {integrity: sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==} + dev: true + + /timm@1.7.1: + resolution: {integrity: sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw==} + dev: false + + /tinycolor2@1.6.0: + resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==} + dev: false + + /tmpl@1.0.5: + resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} + dev: true + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + + /toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + dev: true + + /tough-cookie@4.1.4: + resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} + engines: {node: '>=6'} + dependencies: + psl: 1.15.0 + punycode: 2.3.1 + universalify: 0.2.0 + url-parse: 1.5.10 + dev: true + + /tr46@2.1.0: + resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} + engines: {node: '>=8'} + dependencies: + punycode: 2.3.1 + dev: true + + /type-detect@4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + dev: true + + /type-fest@0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + dev: true + + /type-is@1.6.18: + resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} + engines: {node: '>= 0.6'} + dependencies: + media-typer: 0.3.0 + mime-types: 2.1.35 + dev: true + + /typedarray-to-buffer@3.1.5: + resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} + dependencies: + is-typedarray: 1.0.0 + dev: true + + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} + engines: {node: '>=4.2.0'} + hasBin: true + + /ua-parser-js@1.0.37: + resolution: {integrity: sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==} + dev: false + + /ufo@1.6.1: + resolution: {integrity: sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==} + + /undici-types@7.10.0: + resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==} + dev: true + + /unicode-canonical-property-names-ecmascript@2.0.1: + resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==} + engines: {node: '>=4'} + dev: true + + /unicode-match-property-ecmascript@2.0.0: + resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==} + engines: {node: '>=4'} + dependencies: + unicode-canonical-property-names-ecmascript: 2.0.1 + unicode-property-aliases-ecmascript: 2.1.0 + dev: true + + /unicode-match-property-value-ecmascript@2.2.0: + resolution: {integrity: sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==} + engines: {node: '>=4'} + dev: true + + /unicode-property-aliases-ecmascript@2.1.0: + resolution: {integrity: sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==} + engines: {node: '>=4'} + dev: true + + /unimport@3.14.6: + resolution: {integrity: sha512-CYvbDaTT04Rh8bmD8jz3WPmHYZRG/NnvYVzwD6V1YAlvvKROlAeNDUBhkBGzNav2RKaeuXvlWYaa1V4Lfi/O0g==} + dependencies: + '@rollup/pluginutils': 5.2.0 + acorn: 8.15.0 + escape-string-regexp: 5.0.0 + estree-walker: 3.0.3 + fast-glob: 3.3.3 + local-pkg: 1.1.1 + magic-string: 0.30.17 + mlly: 1.7.4 + pathe: 2.0.3 + picomatch: 4.0.3 + pkg-types: 1.3.1 + scule: 1.3.0 + strip-literal: 2.1.1 + unplugin: 1.16.1 + transitivePeerDependencies: + - rollup + + /universalify@0.2.0: + resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} + engines: {node: '>= 4.0.0'} + dev: true + + /universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} + + /unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + dev: true + + /unplugin-auto-import@0.18.6: + resolution: {integrity: sha512-LMFzX5DtkTj/3wZuyG5bgKBoJ7WSgzqSGJ8ppDRdlvPh45mx6t6w3OcbExQi53n3xF5MYkNGPNR/HYOL95KL2A==} + engines: {node: '>=14'} + peerDependencies: + '@nuxt/kit': ^3.2.2 + '@vueuse/core': '*' + peerDependenciesMeta: + '@nuxt/kit': + optional: true + '@vueuse/core': + optional: true + dependencies: + '@antfu/utils': 0.7.10 + '@rollup/pluginutils': 5.2.0 + fast-glob: 3.3.3 + local-pkg: 0.5.1 + magic-string: 0.30.17 + minimatch: 9.0.5 + unimport: 3.14.6 + unplugin: 1.16.1 + transitivePeerDependencies: + - rollup + + /unplugin@1.16.1: + resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==} + engines: {node: '>=14.0.0'} + dependencies: + acorn: 8.15.0 + webpack-virtual-modules: 0.6.2 + + /unquote@1.1.1: + resolution: {integrity: sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==} + dev: false + + /update-browserslist-db@1.1.3(browserslist@4.25.1): + resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.25.1 + escalade: 3.2.0 + picocolors: 1.1.1 + + /url-parse@1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + dev: true + + /utif@2.0.1: + resolution: {integrity: sha512-Z/S1fNKCicQTf375lIP9G8Sa1H/phcysstNrrSdZKj1f9g58J4NMgb5IgiEZN9/nLMPDwF0W7hdOe9Qq2IYoLg==} + dependencies: + pako: 1.0.11 + dev: false + + /util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + /utils-merge@1.0.1: + resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} + engines: {node: '>= 0.4.0'} + dev: true + + /uuid@8.3.2: + resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + hasBin: true + dev: false + + /v8-to-istanbul@8.1.1: + resolution: {integrity: sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==} + engines: {node: '>=10.12.0'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.6 + convert-source-map: 1.9.0 + source-map: 0.7.6 + dev: true + + /vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + dev: true + + /vite@5.2.8(terser@5.43.1): + resolution: {integrity: sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.20.2 + postcss: 8.5.6 + rollup: 4.46.2 + terser: 5.43.1 + optionalDependencies: + fsevents: 2.3.3 + + /vue-i18n@9.14.5(vue@3.5.18): + resolution: {integrity: sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==} + engines: {node: '>= 16'} + peerDependencies: + vue: ^3.0.0 + dependencies: + '@intlify/core-base': 9.14.5 + '@intlify/shared': 9.14.5 + '@vue/devtools-api': 6.6.4 + vue: 3.5.18(typescript@4.9.5) + dev: false + + /vue-router@4.5.1(vue@3.5.18): + resolution: {integrity: sha512-ogAF3P97NPm8fJsE4by9dwSYtDwXIY1nFY9T6DyQnGHd1E2Da94w9JIolpe42LJGIl0DwOHBi8TcRPlPGwbTtw==} + peerDependencies: + vue: ^3.2.0 + dependencies: + '@vue/devtools-api': 6.6.4 + vue: 3.5.18(typescript@4.9.5) + dev: false + + /vue-template-compiler@2.7.16: + resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==} + dependencies: + de-indent: 1.0.2 + he: 1.2.0 + dev: true + + /vue-tsc@1.8.27(typescript@4.9.5): + resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==} + hasBin: true + peerDependencies: + typescript: '*' + dependencies: + '@volar/typescript': 1.11.1 + '@vue/language-core': 1.8.27(typescript@4.9.5) + semver: 7.7.2 + typescript: 4.9.5 + dev: true + + /vue@3.5.18(typescript@4.9.5): + resolution: {integrity: sha512-7W4Y4ZbMiQ3SEo+m9lnoNpV9xG7QVMLa+/0RFwwiAVkeYoyGXqWE85jabU4pllJNUzqfLShJ5YLptewhCWUgNA==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@vue/compiler-dom': 3.5.18 + '@vue/compiler-sfc': 3.5.18 + '@vue/runtime-dom': 3.5.18 + '@vue/server-renderer': 3.5.18(vue@3.5.18) + '@vue/shared': 3.5.18 + typescript: 4.9.5 + + /w3c-hr-time@1.0.2: + resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} + deprecated: Use your platform's native performance.now() and performance.timeOrigin. + dependencies: + browser-process-hrtime: 1.0.0 + dev: true + + /w3c-xmlserializer@2.0.0: + resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} + engines: {node: '>=10'} + dependencies: + xml-name-validator: 3.0.0 + dev: true + + /walker@1.0.8: + resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} + dependencies: + makeerror: 1.0.12 + dev: true + + /web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + dev: false + + /webidl-conversions@5.0.0: + resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} + engines: {node: '>=8'} + dev: true + + /webidl-conversions@6.1.0: + resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} + engines: {node: '>=10.4'} + dev: true + + /webpack-virtual-modules@0.6.2: + resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} + + /whatwg-encoding@1.0.5: + resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} + dependencies: + iconv-lite: 0.4.24 + dev: true + + /whatwg-mimetype@2.3.0: + resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} + dev: true + + /whatwg-url@8.7.0: + resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} + engines: {node: '>=10'} + dependencies: + lodash: 4.17.21 + tr46: 2.1.0 + webidl-conversions: 6.1.0 + dev: true + + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + dev: true + + /write-file-atomic@3.0.3: + resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} + dependencies: + imurmurhash: 0.1.4 + is-typedarray: 1.0.0 + signal-exit: 3.0.7 + typedarray-to-buffer: 3.1.5 + dev: true + + /ws@7.5.10: + resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} + engines: {node: '>=8.3.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /ws@8.18.3: + resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + /xhr@2.6.0: + resolution: {integrity: sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==} + dependencies: + global: 4.4.0 + is-function: 1.0.2 + parse-headers: 2.0.6 + xtend: 4.0.2 + dev: false + + /xml-name-validator@3.0.0: + resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} + dev: true + + /xml-parse-from-string@1.0.1: + resolution: {integrity: sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g==} + dev: false + + /xml2js@0.5.0: + resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==} + engines: {node: '>=4.0.0'} + dependencies: + sax: 1.4.1 + xmlbuilder: 11.0.1 + dev: false + + /xmlbuilder@11.0.1: + resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} + engines: {node: '>=4.0'} + dev: false + + /xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: true + + /xmlhttprequest@1.8.0: + resolution: {integrity: sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA==} + engines: {node: '>=0.4.0'} + dev: false + + /xregexp@3.1.0: + resolution: {integrity: sha512-4Y1x6DyB8xRoxosooa6PlGWqmmSKatbzhrftZ7Purmm4B8R4qIEJG1A2hZsdz5DhmIqS0msC0I7KEq93GphEVg==} + + /xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + dev: false + + /y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + dev: true + + /yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + /yaml@1.10.2: + resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} + engines: {node: '>= 6'} + + /yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + dev: true + + /yargs@16.2.0: + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + dev: true diff --git a/demos/with-uniapp-vue3/src/components/Player.vue b/demos/with-uniapp-vue3/src/components/Player.vue index faca2bf..573c2ba 100644 --- a/demos/with-uniapp-vue3/src/components/Player.vue +++ b/demos/with-uniapp-vue3/src/components/Player.vue @@ -114,8 +114,8 @@ const init = () => { player = new EZUIKitPlayer({ id: "video-container", // 视频容器ID accessToken: - "at.4dd7o6hgdb9ywl9c283g0hj27e789uru-2a5ejk6tkf-19b1cb1-azyfqm3a", - url: "ezopen://open.ys7.com/C69625501/1.hd.live", + "at.740rax9011b1oasg264ewfjy6ojtt53e-4ub963f7w6-1nwtus1-ivo3rfn", + url: "ezopen://open.ys7.com/BC7799091/1.hd.live", // simple: 极简版; pcLive: pc直播; pcRec: pc回放; mobileLive: 移动端直播; mobileRec: 移动端回放;security: 安防版; voice: 语音版; template: "mobileLive", plugin: ["talk"], // 加载插件,talk-对讲 diff --git a/demos/with-uniapp-vue3/src/manifest.json b/demos/with-uniapp-vue3/src/manifest.json index 309b9ec..fdd6720 100644 --- a/demos/with-uniapp-vue3/src/manifest.json +++ b/demos/with-uniapp-vue3/src/manifest.json @@ -37,11 +37,19 @@ "", "", "", - "" + "", + "", + "" ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "permissions": { + "microphone": { + "desc": "需要访问麦克风以实现语音功能" + } + } + }, /* SDK配置 */ "sdkConfigs" : {} } @@ -68,5 +76,11 @@ "uniStatistics": { "enable": false }, - "vueVersion" : "3" + "vueVersion" : "3", + // "h5" : { + // "router": { + // "mode": "hash", + // "base": "/" + // } + // } } diff --git a/demos/with-uniapp-vue3/src/pages.json b/demos/with-uniapp-vue3/src/pages.json index a3bdf4f..70e9823 100644 --- a/demos/with-uniapp-vue3/src/pages.json +++ b/demos/with-uniapp-vue3/src/pages.json @@ -5,6 +5,12 @@ "style": { "navigationBarTitleText": "uni-app" } + }, + { + "path": "pages/webview/index", + "style": { + "navigationBarTitleText": "webview" + } } ], "globalStyle": { diff --git a/demos/with-uniapp-vue3/src/pages/index/index.vue b/demos/with-uniapp-vue3/src/pages/index/index.vue index 7994e5d..eaff909 100644 --- a/demos/with-uniapp-vue3/src/pages/index/index.vue +++ b/demos/with-uniapp-vue3/src/pages/index/index.vue @@ -2,7 +2,7 @@ - {{ title }} + @@ -11,7 +11,13 @@ \ No newline at end of file diff --git a/demos/with-uniapp-vue3/src/static/ezuikit.js b/demos/with-uniapp-vue3/src/static/ezuikit.js new file mode 100644 index 0000000..ba6a396 --- /dev/null +++ b/demos/with-uniapp-vue3/src/static/ezuikit.js @@ -0,0 +1,144 @@ +/* +* ezuikit.js v8.1.13-beta.1 +* ezuikit javascript for npm +* Copyright (c) 2025-08-06 Ezviz-OpenBiz +* Released under the MIT License. +*/ +!function(e,A){"object"==typeof exports&&"undefined"!=typeof module?module.exports=A():"function"==typeof define&&define.amd?define(A):(e="undefined"!=typeof globalThis?globalThis:e||self).EZUIKit=A()}(this,(function(){"use strict";function e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}Date.prototype.Format=function(e){var A={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),A)new RegExp("("+t+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?A[t]:("00"+A[t]).substr((""+A[t]).length)));return e};var A=function(e,A,t,i){var n=document.getElementsByTagName("head")[0].getElementsByTagName("script"),a=!1;if(t)a=t();else for(var r=0;r3){var t=A[1],i=A[2],n="1"===A[3],a="live";return e.indexOf("rec=local")>-1?a="rec":e.indexOf("rec=cloud")>-1&&(a="cloud.rec"),{deviceSerial:t,channelNo:i,hd:n,type:a}}return{}};var c=function(A,t,i,n,a,r){var o=A,s=new XMLHttpRequest;s.onreadystatechange=function(){if(4==s.readyState&&200==s.status)if(function(A){if("string"==typeof A)try{var t=JSON.parse(A);return!("object"!==(void 0===t?"undefined":e(t))||!t)}catch(e){return!1}}(s.responseText)){var A=JSON.parse(s.responseText);a(A)}else a(s.responseText)},s.open(t,o,!0);var g=new FormData;for(var l in i)g.append(l,i[l]);if(n&&"object"===(void 0===n?"undefined":e(n)))for(var l in n)s.setRequestHeader(l,n[l]);s.send(g)},d=function(){return!!window&&navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone|Opera Mini)/i)},I=function(){function e(e,t){var i=this;A("https://open.ys7.com/assets/ezuikit_v3.4/js/hls.js",(function(){window.Hls.isSupported()&&i.initHLS(e,t)}),(function(){return!!window.Hls}))}var t=e.prototype;return t.toString=function(){return"hls "+this.coreX+"-"+this.coreY},t.initHLS=function(e,A){var t=l(A);t.deviceSerial,t.channelNo,t.hd;var i=document.getElementById(e),n=new window.Hls({defaultAudioCodec:"mp4a.40.2"});n.loadSource(A),n.attachMedia(i),n.on(window.Hls.Events.MANIFEST_PARSED,(function(){i.play()})),n.on(window.Hls.Events.ERROR,(function(e,A){if(A.fatal)switch(A.type){case window.Hls.ErrorTypes.NETWORK_ERROR:n.startLoad();break;case window.Hls.ErrorTypes.MEDIA_ERROR:n.recoverMediaError();break;default:n.destroy()}})),this.hls=n,this.video=i,this.hlsUrl=A},t.play=function(){this.hls.startLoad(),this.video.play()},t.stop=function(){this.video.pause(),this.hls.stopLoad()},e}(),C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,B={exports:{}};var f=(u||(u=1,function(e,A){function t(e,A){return null!=A&&"undefined"!=typeof Symbol&&A[Symbol.hasInstance]?!!A[Symbol.hasInstance](e):e instanceof A}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(t,n){"object"==i(A)&&"object"==i(e)?e.exports=n():"object"==i(A)?A.flvjs=n():t.flvjs=n()}(globalThis,(function(){return function(){var e={343:function(e){var A=function(){},t=function(e,A,t){this.fn=e,this.context=A,this.once=t||!1},i=function(e,A,i,n,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var r=new t(i,n||e,a),s=o?o+A:A;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],r]:e._events[s].push(r):(e._events[s]=r,e._eventsCount++),e},n=function(e,t){0==--e._eventsCount?e._events=new A:delete e._events[t]},a=function(){this._events=new A,this._eventsCount=0},r=Object.prototype.hasOwnProperty,o="~";Object.create&&(A.prototype=Object.create(null),(new A).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,A,t=[];if(0===this._eventsCount)return t;for(A in e=this._events)r.call(e,A)&&t.push(o?A.slice(1):A);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(e)):t},a.prototype.listeners=function(e){var A=o?o+e:e,t=this._events[A];if(!t)return[];if(t.fn)return[t.fn];for(var i=0,n=t.length,a=new Array(n);i=e[n]&&A0&&e[0].originalDts=A[n].dts&&e((null===(A=t[n].lastSample)||void 0===A?void 0:A.originalDts)||0)&&e=((null===(t=null===(A=i[a])||void 0===A?void 0:A.lastSample)||void 0===t?void 0:t.originalDts)||0)&&(a===i.length-1||a0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,n)},e.prototype.getLastSegmentBefore=function(e){var A=this._searchNearestSegmentBefore(e);return A>=0?this._list[A]:null},e.prototype.getLastSampleBefore=function(e){var A=this.getLastSegmentBefore(e);return null!=A?A.lastSample:null},e.prototype.getLastSyncPointBefore=function(e){for(var A=this._searchNearestSegmentBefore(e),t=this._list[A].syncPoints;0===t.length&&A>0;)A--,t=this._list[A].syncPoints;return t.length>0?t[t.length-1]:null},e}()},976:function(e,A,n){var a=function(e,A,t){var i=e;if(A+t=128){A.push(String.fromCharCode(65535&r)),i+=2;continue}}else if(t[i]<240){if(a(t,i,2)&&(r=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2])>=2048&&55296!=(63488&r)){A.push(String.fromCharCode(65535&r)),i+=3;continue}}else if(t[i]<248){var r;if(a(t,i,3)&&(r=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3])>65536&&r<1114112){r-=65536,A.push(String.fromCharCode(r>>>10|55296)),A.push(String.fromCharCode(1023&r|56320)),i+=4;continue}}A.push(String.fromCharCode(65533)),++i}return A.join("")},u=n(713),B=(g=new ArrayBuffer(2),new DataView(g).setInt16(0,256,!0),256===new Int16Array(g)[0]),f=function(){function e(){}return e.parseScriptData=function(A,t,i){var n={};try{var a=e.parseValue(A,t,i),r=e.parseValue(A,t+a.size,i-a.size);n[a.data]=r.data}catch(e){d.A.e("AMF",e.toString())}return n},e.parseObject=function(A,t,i){if(i<3)throw new u.j4("Data not enough when parse ScriptDataObject");var n=e.parseString(A,t,i),a=e.parseValue(A,t+n.size,i-n.size),r=a.objectEnd;return{data:{name:n.data,value:a.data},size:n.size+a.size,objectEnd:r}},e.parseVariable=function(A,t,i){return e.parseObject(A,t,i)},e.parseString=function(e,A,t){if(t<2)throw new u.j4("Data not enough when parse String");var i=new DataView(e,A,t).getUint16(0,!B);return{data:i>0?h(new Uint8Array(e,A+2,i)):"",size:2+i}},e.parseLongString=function(e,A,t){if(t<4)throw new u.j4("Data not enough when parse LongString");var i=new DataView(e,A,t).getUint32(0,!B);return{data:i>0?h(new Uint8Array(e,A+4,i)):"",size:4+i}},e.parseDate=function(e,A,t){if(t<10)throw new u.j4("Data size invalid when parse Date");var i=new DataView(e,A,t),n=i.getFloat64(0,!B),a=i.getInt16(8,!B);return{data:new Date(n+=60*a*1e3),size:10}},e.parseValue=function(A,t,i){if(i<1)throw new u.j4("Data not enough when parse Value");var n,a=new DataView(A,t,i),r=1,o=a.getUint8(0),s=!1;try{switch(o){case 0:n=a.getFloat64(1,!B),r+=8;break;case 1:n=!!a.getUint8(1),r+=1;break;case 2:var g=e.parseString(A,t+1,i-1);n=g.data,r+=g.size;break;case 3:n={};var l=0;for(9==(16777215&a.getUint32(i-4,!B))&&(l=3);r32)throw new u.Qn("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var A=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,A}var t=this._current_word_bits_left?this._current_word:0;t>>>=32-this._current_word_bits_left;var i=e-this._current_word_bits_left;this._fillCurrentWord();var n=Math.min(i,this._current_word_bits_left),a=this._current_word>>>32-n;return this._current_word<<=n,this._current_word_bits_left-=n,t<>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()},e.prototype.readUEG=function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1},e.prototype.readSEG=function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)},e}(),x=function(){function e(){}return e._ebsp2rbsp=function(e){for(var A=e,t=A.byteLength,i=new Uint8Array(t),n=0,a=0;a=2&&3===A[a]&&0===A[a-1]&&0===A[a-2]||(i[n]=A[a],n++);return new Uint8Array(i.buffer,0,n)},e.parseSPS=function(A){for(var t=A.subarray(1,4),i="avc1.",n=0;n<3;n++){var a=t[n].toString(16);a.length<2&&(a="0"+a),i+=a}var r=e._ebsp2rbsp(A),o=new E(r);o.readByte();var s=o.readByte();o.readByte();var g=o.readByte();o.readUEG();var l=e.getProfileString(s),c=e.getLevelString(g),d=1,I=420,C=8,h=8;if((100===s||110===s||122===s||244===s||44===s||83===s||86===s||118===s||128===s||138===s||144===s)&&(3===(d=o.readUEG())&&o.readBits(1),d<=3&&(I=[0,420,422,444][d]),C=o.readUEG()+8,h=o.readUEG()+8,o.readBits(1),o.readBool()))for(var u=3!==d?8:12,B=0;B0&&T<16?(w=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][T-1],b=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][T-1]):255===T&&(w=o.readByte()<<8|o.readByte(),b=o.readByte()<<8|o.readByte())}if(o.readBool()&&o.readBool(),o.readBool()&&(o.readBits(4),o.readBool()&&o.readBits(24)),o.readBool()&&(o.readUEG(),o.readUEG()),o.readBool()){var N=o.readBits(32),M=o.readBits(32);R=o.readBool(),F=(k=M)/(P=2*N)}}var L=1;1===w&&1===b||(L=w/b);var G=0,Y=0;0===d?(G=1,Y=2-y):(G=3===d?1:2,Y=(1===d?2:1)*(2-y));var U=16*(p+1),J=16*(m+1)*(2-y);U-=(_+S)*G,J-=(v+D)*Y;var H=Math.ceil(U*L);return o.destroy(),o=null,{codec_mimetype:i,profile_idc:s,level_idc:g,profile_string:l,level_string:c,chroma_format_idc:d,bit_depth:C,bit_depth_luma:C,bit_depth_chroma:h,ref_frames:Q,chroma_format:I,chroma_format_string:e.getChromaFormatString(I),frame_rate:{fixed:R,fps:F,fps_den:P,fps_num:k},sar_ratio:{width:w,height:b},codec_size:{width:U,height:J},present_size:{width:H,height:J}}},e._skipScalingList=function(e,A){for(var t=8,i=8,n=0;n=2&&3===A[a]&&0===A[a-1]&&0===A[a-2]||(i[n]=A[a],n++);return new Uint8Array(i.buffer,0,n)},e.parseVPS=function(A){var t=e._ebsp2rbsp(A),i=new E(t);return i.readByte(),i.readByte(),i.readBits(4),i.readBits(2),i.readBits(6),{num_temporal_layers:i.readBits(3)+1,temporal_id_nested:i.readBool()}},e.parseSPS=function(A){var t=e._ebsp2rbsp(A),i=new E(t);i.readByte(),i.readByte();for(var n=0,a=0,r=0,o=0,s=(i.readBits(4),i.readBits(3)),g=(i.readBool(),i.readBits(2)),l=i.readBool(),c=i.readBits(5),d=i.readByte(),I=i.readByte(),C=i.readByte(),h=i.readByte(),u=i.readByte(),B=i.readByte(),f=i.readByte(),x=i.readByte(),Q=i.readByte(),p=i.readByte(),m=i.readByte(),y=[],_=[],S=0;S0)for(S=s;S<8;S++)i.readBits(2);for(S=0;S1&&i.readSEG(),S=0;S0&&z<=16?(j=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][z-1],W=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][z-1]):255===z&&(j=i.readBits(16),W=i.readBits(16))}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(3),i.readBool(),i.readBool()&&(i.readByte(),i.readByte(),i.readByte())),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool(),i.readBool(),i.readBool(),i.readBool()&&(i.readUEG(),i.readUEG(),i.readUEG(),i.readUEG()),i.readBool()&&(X=i.readBits(32),q=i.readBits(32),i.readBool()&&i.readUEG(),i.readBool())){var $,ee,Ae=!1;for($=i.readBool(),ee=i.readBool(),($||ee)&&((Ae=i.readBool())&&(i.readByte(),i.readBits(5),i.readBool(),i.readBits(5)),i.readBits(4),i.readBits(4),Ae&&i.readBits(4),i.readBits(5),i.readBits(5),i.readBits(5)),S=0;S<=s;S++){var te=i.readBool();Z=te;var ie=!1,ne=1;te||(ie=i.readBool());var ae=!1;if(ie?i.readSEG():ae=i.readBool(),ae||(ne=i.readUEG()+1),$)for(Y=0;Y>3,a=!!(4&A[i]),r=!!(2&A[i]);A[i],i+=1,a&&(i+=1);var o=Number.POSITIVE_INFINITY;if(r){o=0;for(var s=0;o|=(127&A[i])<<7*s,128&A[i+=1];s++);}1===n&&(t=e.parseSeuqneceHeader(A.subarray(i,i+o))),i+=o}return t},e.parseSeuqneceHeader=function(A){var t=new E(A),i=t.readBits(3),n=(t.readBool(),t.readBool()),a=!0,r=0,o=0,s=[];if(n)s.push({operating_point_idc:0,level:t.readBits(5),tier:0});else{if(t.readBool()){var g=t.readBits(32),l=t.readBits(32),c=t.readBool();if(c){for(var d=0;0===t.readBits(1);)d+=1;d>=32||t.readBits(d)}r=l,o=g,a=c,t.readBool()&&(t.readBits(5),t.readBits(32),t.readBits(5),t.readBits(5))}for(var I=t.readBool(),C=t.readBits(5),h=0;h<=C;h++){var u=t.readBits(12),B=t.readBits(5),f=B>7?t.readBits(1):0;s.push({operating_point_idc:u,level:B,tier:f}),I&&t.readBool()&&t.readBits(4)}}var x=s[0],Q=x.level,p=x.tier,m=t.readBits(4),y=t.readBits(4),_=t.readBits(m+1)+1,S=t.readBits(y+1)+1,v=!1;n||(v=t.readBool()),v&&(t.readBits(4),t.readBits(4)),t.readBool(),t.readBool(),t.readBool();var D=!1;n||(t.readBool(),t.readBool(),t.readBool(),t.readBool(),(D=t.readBool())&&(t.readBool(),t.readBool()),(t.readBool()||t.readBits(1))&&(t.readBool()||t.readBits(1)),D&&t.readBits(3)),t.readBool(),t.readBool(),t.readBool();var w=t.readBool(),b=8;b=2===i&&w?t.readBool()?12:10:w?10:8;var F=!1;1!==i&&(F=t.readBool()),t.readBool()&&(t.readBits(8),t.readBits(8),t.readBits(8));var R=1,k=1;return F?(t.readBits(1),R=1,k=1):(t.readBits(1),0===i?(R=1,k=1):1===i?(R=0,k=0):12===b?t.readBits(1)&&t.readBits(1):(R=1,k=0),R&&k&&t.readBits(2),t.readBits(1)),t.readBool(),t.destroy(),t=null,{codec_mimetype:"av01.".concat(i,".").concat(e.getLevelString(Q,p),".").concat(b.toString(10).padStart(2,"0")),level:Q,tier:p,level_string:e.getLevelString(Q,p),profile_idc:i,profile_string:"".concat(i),bit_depth:b,ref_frames:1,chroma_format:e.getChromaFormat(F,R,k),chroma_format_string:e.getChromaFormatString(F,R,k),frame_rate:{fixed:a,fps:r/o,fps_den:o,fps_num:r},sar_ratio:{width:1,height:1},codec_size:{width:_,height:S},present_size:{width:1*_,height:S}}},e.getLevelString=function(e,A){return"".concat(e.toString(10).padStart(2,"0")).concat(0===A?"M":"H")},e.getChromaFormat=function(e,A,t){return e?0:0===A&&0===t?3:1===A&&0===t?2:1===A&&1===t?1:Number.NaN},e.getChromaFormatString=function(e,A,t){return e?"4:0:0":0===A&&0===t?"4:4:4":1===A&&0===t?"4:2:2":1===A&&1===t?"4:2:0":"Unknown"},e}(),_=function(){function e(e,A){var t;this.TAG="FLVDemuxer",this._config=A,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new C.A,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(t=new ArrayBuffer(2),new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0])}return e.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},e.probe=function(e){var A=new Uint8Array(e);if(A.byteLength<9)return{needMoreData:!0};var t={match:!1};if(70!==A[0]||76!==A[1]||86!==A[2]||1!==A[3])return t;var i,n=(4&A[4])>>>2!=0,a=!!(1&A[4]),r=(i=A)[5]<<24|i[6]<<16|i[7]<<8|i[8];return r<9?t:{match:!0,consumed:r,dataOffset:r,hasAudioTrack:n,hasVideoTrack:a}},e.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(e.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(e){this._timestampBase=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedDuration",{get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo&&(this._mediaInfo.duration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasAudio",{set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo&&(this._mediaInfo.hasAudio=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasVideo",{set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo&&(this._mediaInfo.hasVideo=e)},enumerable:!1,configurable:!0}),e.prototype.resetMediaInfo=function(){this._mediaInfo=new C.A},e.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},e.prototype.parseChunks=function(A,t){var i,n;if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new u.j4("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var a=0,r=this._littleEndian;if(0===t){if(!(A.byteLength>13))return 0;var o=e.probe(A);a=(null==o?void 0:o.dataOffset)||0}for(this._firstParse&&(this._firstParse=!1,t+a!==this._dataOffset&&d.A.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==(s=new DataView(A,a)).getUint32(0,!r)&&d.A.w(this.TAG,"PrevTagSize0 !== 0 !!!"),a+=4);aA.byteLength)break;var g=s.getUint8(0),l=16777215&s.getUint32(0,!r);if(a+11+l+4>A.byteLength)break;if(8===g||9===g||18===g){var c=s.getUint8(4),I=s.getUint8(5),C=s.getUint8(6)|I<<8|c<<16|s.getUint8(7)<<24;16777215&s.getUint32(7,!r)&&d.A.w(this.TAG,"Meet tag which has StreamID != 0!");var h=a+11;switch(g){case 8:this._parseAudioData(A,h,l,C);break;case 9:this._parseVideoData(A,h,l,C,t+a);break;case 18:this._parseScriptData(A,h,l)}var B=s.getUint32(11+l,!r);B!==11+l&&d.A.w(this.TAG,"Invalid PrevTagSize ".concat(B)),a+=11+l+4}else d.A.w(this.TAG,"Unsupported tag type ".concat(g,", skipped")),a+=11+l+4}return this._isInitialMetadataDispatched()&&this._dispatch&&((null===(i=this._audioTrack)||void 0===i?void 0:i.length)||(null===(n=this._videoTrack)||void 0===n?void 0:n.length))&&this._onDataAvailable(this._audioTrack,this._videoTrack),a},e.prototype._parseScriptData=function(e,A,t){var n,a,r,o=f.parseScriptData(e,A,t);if(o.hasOwnProperty("onMetaData")){if(null==o.onMetaData||"object"!=i(o.onMetaData))return void d.A.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&d.A.w(this.TAG,"Found another onMetaData tag!"),this._metadata=o;var s=null===(n=this._metadata)||void 0===n?void 0:n.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},s)),"boolean"==typeof(null==s?void 0:s.hasAudio)&&(this._hasAudioFlagOverrided||(this._hasAudio=s.hasAudio,this._mediaInfo&&(this._mediaInfo.hasAudio=this._hasAudio))),"boolean"==typeof(null==s?void 0:s.hasVideo)&&(this._hasVideoFlagOverrided||(this._hasVideo=s.hasVideo,this._mediaInfo&&(this._mediaInfo.hasVideo=this._hasVideo))),"number"==typeof(null==s?void 0:s.audiodatarate)&&this._mediaInfo&&(this._mediaInfo.audioDataRate=s.audiodatarate),"number"==typeof(null==s?void 0:s.videodatarate)&&this._mediaInfo&&(this._mediaInfo.videoDataRate=s.videodatarate),"number"==typeof(null==s?void 0:s.width)&&this._mediaInfo&&(this._mediaInfo.width=s.width),"number"==typeof(null==s?void 0:s.height)&&this._mediaInfo&&(this._mediaInfo.height=s.height),"number"==typeof(null==s?void 0:s.duration)){if(!this._durationOverrided){var g=Math.floor(s.duration*this._timescale);this._duration=g,this._mediaInfo&&(this._mediaInfo.duration=g)}}else this._mediaInfo&&(this._mediaInfo.duration=0);if("number"==typeof(null==s?void 0:s.framerate)){var l=Math.floor(1e3*s.framerate);if(l>0){var c=l/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=c,this._referenceFrameRate.fps_num=l,this._referenceFrameRate.fps_den=1e3,this._mediaInfo&&(this._mediaInfo.fps=c)}}if("object"==i(null==s?void 0:s.keyframes)){this._mediaInfo&&(this._mediaInfo.hasKeyframesIndex=!0);var I=s.keyframes;this._mediaInfo&&(this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(I)),s.keyframes=null}else this._mediaInfo&&(this._mediaInfo.hasKeyframesIndex=!1);this._dispatch=!1,this._mediaInfo&&(this._mediaInfo.metadata=s),d.A.v(this.TAG,"Parsed onMetaData"),(null===(a=this._mediaInfo)||void 0===a?void 0:a.isComplete())&&(null===(r=this._onMediaInfo)||void 0===r||r.call(this,this._mediaInfo))}Object.keys(o).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},o))},e.prototype._parseKeyframesIndex=function(e){for(var A=[],t=[],i=1;i>>4;if(2===u||10===u){var B=0,f=(12&h)>>>2;if(f>=0&&f<=4){B=this._flvSoundRateTable[f];var E=1&h,x=this._audioMetadata,p=this._audioTrack;if(x||(!1!==this._hasAudio||this._hasAudioFlagOverrided||(this._hasAudio=!0,this._mediaInfo&&(this._mediaInfo.hasAudio=!0)),(x=this._audioMetadata={}).type="audio",x.id=null==p?void 0:p.id,x.timescale=this._timescale,x.duration=this._duration,x.audioSampleRate=B,x.channelCount=0===E?1:2),10===u){var y=this._parseAACAudioData(e,A+1,t-1);if(void 0===y)return;if(0===(null==y?void 0:y.packetType)){if(null==x?void 0:x.config){if(m(y.data.config,null==x?void 0:x.config))return;d.A.w(this.TAG,"AudioSpecificConfig has been changed, re-generate initialization segment")}var _=y.data;x.audioSampleRate=null==_?void 0:_.samplingRate,x.channelCount=null==_?void 0:_.channelCount,x.codec=null==_?void 0:_.codec,x.originalCodec=null==_?void 0:_.originalCodec,x.config=null==_?void 0:_.config,x.refSampleDuration=1024/x.audioSampleRate*x.timescale,d.A.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&((null===(r=this._audioTrack)||void 0===r?void 0:r.length)||(null===(o=this._videoTrack)||void 0===o?void 0:o.length))&&(null===(s=this._onDataAvailable)||void 0===s||s.call(this,this._audioTrack,this._videoTrack)):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,null===(g=this._onTrackMetadata)||void 0===g||g.call(this,"audio",x),(D=this._mediaInfo).audioCodec=x.originalCodec||"",D.audioSampleRate=x.audioSampleRate,D.audioChannelCount=x.channelCount,D.hasVideo?null!=D.videoCodec&&(D.mimeType='video/x-flv; codecs="'+D.videoCodec+","+D.audioCodec+'"'):D.mimeType='video/x-flv; codecs="'+D.audioCodec+'"',(null==D?void 0:D.isComplete())&&(null===(l=this._onMediaInfo)||void 0===l||l.call(this,D))}else if(1===y.packetType){var S=this._timestampBase+i,v={unit:y.data,length:y.data.byteLength,dts:S,pts:S};p&&(null==p||p.samples.push(v),p.length+=(null===(c=null==y?void 0:y.data)||void 0===c?void 0:c.length)||0)}else d.A.e(this.TAG,"Flv: Unsupported AAC data type ".concat(y.packetType))}else if(2===u){if(!x.codec){var D;if(void 0===(_=this._parseMP3AudioData(e,A+1,t-1,!0)))return;x.audioSampleRate=_.samplingRate,x.channelCount=_.channelCount,x.codec=_.codec,x.originalCodec=_.originalCodec,x.refSampleDuration=1152/x.audioSampleRate*x.timescale,d.A.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,null===(I=this._onTrackMetadata)||void 0===I||I.call(this,"audio",x),(D=this._mediaInfo).audioCodec=x.codec,D.audioSampleRate=x.audioSampleRate,D.audioChannelCount=x.channelCount,D.audioDataRate=_.bitRate,(null==D?void 0:D.hasVideo)?null!=D.videoCodec&&(D.mimeType='video/x-flv; codecs="'+D.videoCodec+","+D.audioCodec+'"'):D.mimeType='video/x-flv; codecs="'+D.audioCodec+'"',D.isComplete()&&(null===(C=this._onMediaInfo)||void 0===C||C.call(this,D))}var w=this._parseMP3AudioData(e,A+1,t-1,!1);if(void 0===w)return;S=this._timestampBase+i;var b={unit:w,length:w.byteLength,dts:S,pts:S};null==p||p.samples.push(b),p&&(p.length+=w.length)}}else null===(a=this._onError)||void 0===a||a.call(this,Q.A.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+f)}else null===(n=this._onError)||void 0===n||n.call(this,Q.A.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+u)}},e.prototype._parseAACAudioData=function(e,A,t){if(!(t<=1)){var i={},n=new Uint8Array(e,A,t);return i.packetType=n[0],0===n[0]?i.data=this._parseAACAudioSpecificConfig(e,A+1,t-1):i.data=n.subarray(1),i}d.A.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},e.prototype._parseAACAudioSpecificConfig=function(e,A,t){var i,n,a,r,o=new Uint8Array(e,A,t),s=null,g=0,l=null;if(g=a=o[0]>>>3,(r=(7&o[0])<<1|o[1]>>>7)<0||r>=this._mpegSamplingRates.length)null===(i=this._onError)||void 0===i||i.call(this,Q.A.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var c=this._mpegSamplingRates[r],d=(120&o[1])>>>3;if(!(d<0||d>=8)){5===g&&(l=(7&o[1])<<1|o[2]>>>7,o[2]);var I=self.navigator.userAgent.toLowerCase();return I.includes("firefox")?r>=6?(g=5,s=new Array(4),l=r-3):(g=2,s=new Array(2),l=r):I.includes("android")?(g=2,s=new Array(2),l=r):(g=5,l=r,s=new Array(4),r>=6?l=r-3:1===d&&(g=2,s=new Array(2),l=r)),s[0]=g<<3,s[0]|=(15&r)>>>1,s[1]=(15&r)<<7,s[1]|=(15&d)<<3,5===g&&(s[1]|=(15&l)>>>1,s[2]=(1&l)<<7,s[2]|=8,s[3]=0),{config:s,samplingRate:c,channelCount:d,codec:"mp4a.40."+g,originalCodec:"mp4a.40."+a}}null===(n=this._onError)||void 0===n||n.call(this,Q.A.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},e.prototype._parseMP3AudioData=function(e,A,t,i){if(!(t<4)){this._littleEndian;var n,a=new Uint8Array(e,A,t);if(i){if(255!==a[0])return;var r=a[1]>>>3&3,o=(6&a[1])>>1,s=(240&a[2])>>>4,g=(12&a[2])>>>2,l=3&~(a[3]>>>6)?2:1,c=0,I=0;switch(r){case 0:c=this._mpegAudioV25SampleRateTable[g];break;case 2:c=this._mpegAudioV20SampleRateTable[g];break;case 3:c=this._mpegAudioV10SampleRateTable[g]}switch(o){case 1:s>>4;if(128&o){var g=15&o,l=String.fromCharCode.apply(String,function(e,A,t){if(2===arguments.length)for(var i,n=0,a=A.length;n0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return r}(new Uint8Array(e,A,t).slice(1,5)),!1));"hvc1"===l?this._parseEnhancedHEVCVideoPacket(e,A+5,t-5,i,n,s,g):"av01"===l?this._parseEnhancedAV1VideoPacket(e,A+5,t-5,i,n,s,g):null===(r=this._onError)||void 0===r||r.call(this,Q.A.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(l))}else{var c=15&o;7===c?this._parseAVCVideoPacket(e,A+1,t-1,i,n,s):12===c?this._parseHEVCVideoPacket(e,A+1,t-1,i,n,s):null===(a=this._onError)||void 0===a||a.call(this,Q.A.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(c))}}},e.prototype._parseAVCVideoPacket=function(e,A,t,i,n,a){var r;if(t<4)d.A.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var o=this._littleEndian,s=new DataView(e,A,t),g=s.getUint8(0),l=(16777215&s.getUint32(0,!o))<<8>>8;0===g?this._parseAVCDecoderConfigurationRecord(e,A+4,t-4):1===g?this._parseAVCVideoData(e,A+4,t-4,i,n,a,l):2===g||null===(r=this._onError)||void 0===r||r.call(this,Q.A.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(g))}},e.prototype._parseHEVCVideoPacket=function(e,A,t,i,n,a){var r;if(t<4)d.A.w(this.TAG,"Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");else{var o=this._littleEndian,s=new DataView(e,A,t),g=s.getUint8(0),l=(16777215&s.getUint32(0,!o))<<8>>8;0===g?this._parseHEVCDecoderConfigurationRecord(e,A+4,t-4):1===g?this._parseHEVCVideoData(e,A+4,t-4,i,n,a,l):2===g||null===(r=this._onError)||void 0===r||r.call(this,Q.A.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(g))}},e.prototype._parseEnhancedHEVCVideoPacket=function(e,A,t,i,n,a,r){var o,s=this._littleEndian,g=new DataView(e,A,t);if(0===r)this._parseHEVCDecoderConfigurationRecord(e,A,t);else if(1===r){var l=(4294967040&g.getUint32(0,!s))>>8;this._parseHEVCVideoData(e,A+3,t-3,i,n,a,l)}else 3===r?this._parseHEVCVideoData(e,A,t,i,n,a,0):2===r||null===(o=this._onError)||void 0===o||o.call(this,Q.A.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(r))},e.prototype._parseEnhancedAV1VideoPacket=function(e,A,t,i,n,a,r){var o,s;this._littleEndian,0===r?this._parseAV1CodecConfigurationRecord(e,A,t):1===r?this._parseAV1VideoData(e,A,t,i,n,a,0):5===r?null===(o=this._onError)||void 0===o||o.call(this,Q.A.FORMAT_ERROR,"Flv: Not Suported MP2T AV1 video packet type ".concat(r)):2===r||null===(s=this._onError)||void 0===s||s.call(this,Q.A.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(r))},e.prototype._parseAVCDecoderConfigurationRecord=function(e,A,t){var i,n,a,r,o,s,g,l,c,I,C;if(t<7)d.A.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var h=this._videoMetadata,u=this._videoTrack,B=this._littleEndian,f=new DataView(e,A,t);if(h){if(void 0!==h.avcc){var E=new Uint8Array(e,A,t);if(m(E,h.avcc))return;d.A.w(this.TAG,"AVCDecoderConfigurationRecord has been changed, re-generate initialization segment")}}else!1!==this._hasVideo||this._hasVideoFlagOverrided||(this._hasVideo=!0,this._mediaInfo&&(this._mediaInfo.hasVideo=!0)),(h=this._videoMetadata={}).type="video",h.id=null==u?void 0:u.id,h.timescale=this._timescale,h.duration=this._duration;var p=f.getUint8(0),y=f.getUint8(1);if(f.getUint8(2),f.getUint8(3),1===p&&0!==y)if(this._naluLengthSize=1+(3&f.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var _=31&f.getUint8(5);if(0!==_){_>1&&d.A.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(_));for(var S=6,v=0;v<_;v++){var D=f.getUint16(S,!B);if(S+=2,0!==D){var w=new Uint8Array(e,A+S,D);S+=D;var b=x.parseSPS(w);if(0===v){h.codecWidth=b.codec_size.width,h.codecHeight=b.codec_size.height,h.presentWidth=b.present_size.width,h.presentHeight=b.present_size.height,h.profile=b.profile_string,h.level=b.level_string,h.bitDepth=b.bit_depth,h.chromaFormat=b.chroma_format,h.sarRatio=b.sar_ratio,h.frameRate=b.frame_rate,b.frame_rate.fixed&&0!==b.frame_rate.fps_num&&0!==b.frame_rate.fps_den||(h.frameRate=this._referenceFrameRate);var F=null===(r=h.frameRate)||void 0===r?void 0:r.fps_den,R=null===(o=h.frameRate)||void 0===o?void 0:o.fps_num;h.refSampleDuration=h.timescale*(F/R);for(var k=w.subarray(1,4),P="avc1.",T=0;T<3;T++){var N=k[T].toString(16);N.length<2&&(N="0"+N),P+=N}h.codec=P;var M=this._mediaInfo;M.width=h.codecWidth,M.height=h.codecHeight,M.fps=h.frameRate.fps,M.profile=h.profile,M.level=h.level,M.refFrames=b.ref_frames,M.chromaFormat=b.chroma_format_string,M.sarNum=h.sarRatio.width,M.sarDen=h.sarRatio.height,M.videoCodec=P,M.hasAudio?null!=M.audioCodec&&(M.mimeType='video/x-flv; codecs="'+M.videoCodec+","+M.audioCodec+'"'):M.mimeType='video/x-flv; codecs="'+M.videoCodec+'"',M.isComplete()&&(null===(s=this._onMediaInfo)||void 0===s||s.call(this,M))}}}var L=f.getUint8(S);if(0!==L){for(L>1&&d.A.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(L)),S++,v=0;v=t){d.A.w(this.TAG,"Malformed Nalu near timestamp ".concat(C,", offset = ").concat(c,", dataSize = ").concat(t));break}var u=s.getUint32(c,!o);if(3===I&&(u>>>=8),u>t-I)return void d.A.w(this.TAG,"Malformed Nalus near timestamp ".concat(C,", NaluSize > DataSize!"));var B=31&s.getUint8(c+I);5===B&&(h=!0);var f=new Uint8Array(e,A+c,I+u),E={type:B,data:f};g.push(E),l+=f.byteLength,c+=I+u}if(g.length){var x=this._videoTrack,Q={units:g,length:l,isKeyframe:h,dts:C,cts:r,pts:C+r};h&&(Q.fileposition=n),x&&(x.samples.push(Q),x.length+=l)}},e.prototype._parseHEVCVideoData=function(e,A,t,i,n,a,r){for(var o=this._littleEndian,s=new DataView(e,A,t),g=[],l=0,c=0,I=this._naluLengthSize,C=this._timestampBase+i,h=1===a;c=t){d.A.w(this.TAG,"Malformed Nalu near timestamp ".concat(C,", offset = ").concat(c,", dataSize = ").concat(t));break}var u=s.getUint32(c,!o);if(3===I&&(u>>>=8),u>t-I)return void d.A.w(this.TAG,"Malformed Nalus near timestamp ".concat(C,", NaluSize > DataSize!"));var B=31&s.getUint8(c+I);19!==B&&20!==B||(h=!0);var f=new Uint8Array(e,A+c,I+u),E={type:B,data:f};g.push(E),l+=f.byteLength,c+=I+u}if(g.length){var x=this._videoTrack,Q={units:g,length:l,isKeyframe:h,dts:C,cts:r,pts:C+r};h&&(Q.fileposition=n),x&&(null==x||x.samples.push(Q),x.length+=l)}},e.prototype._parseAV1VideoData=function(e,A,t,i,n,a,r){this._littleEndian;var o,s=[],g=this._timestampBase+i,l=1===a;if(o=t,s.push({unitType:0,data:new Uint8Array(e,A+0,t)}),s.length){var c=this._videoTrack,d={units:s,length:o,isKeyframe:l,dts:g,cts:r,pts:g+r};l&&(d.fileposition=n),c&&(null==c||c.samples.push(d),c.length+=o)}},e}(),S=_,v=function(){function e(){}return e.prototype.destroy=function(){this.onError=null,this.onMediaInfo=null,this.onMetaDataArrived=null,this.onTrackMetadata=null,this.onDataAvailable=null,this.onTimedID3Metadata=null,this.onSMPTE2038Metadata=null,this.onSCTE35Metadata=null,this.onPESPrivateData=null,this.onPESPrivateDataDescriptor=null},e}(),D=function(){this.program_pmt_pid={}};!function(e){e[e.kMPEG1Audio=3]="kMPEG1Audio",e[e.kMPEG2Audio=4]="kMPEG2Audio",e[e.kPESPrivateData=6]="kPESPrivateData",e[e.kADTSAAC=15]="kADTSAAC",e[e.kLOASAAC=17]="kLOASAAC",e[e.kAC3=129]="kAC3",e[e.kEAC3=135]="kEAC3",e[e.kID3=21]="kID3",e[e.kSCTE35=134]="kSCTE35",e[e.kH264=27]="kH264",e[e.kH265=36]="kH265"}(l||(l={}));var w,b=function(){this.pid_stream_type={},this.common_pids={h264:void 0,h265:void 0,adts_aac:void 0,loas_aac:void 0,opus:void 0,ac3:void 0,eac3:void 0,mp3:void 0},this.pes_private_data_pids={},this.timed_id3_pids={},this.scte_35_pids={},this.smpte2038_pids={}},F=function(){},R=function(){},k=function(){this.slices=[],this.total_length=0,this.expected_length=0,this.file_position=0,this.random_access_indicator=0};!function(e){e[e.kUnspecified=0]="kUnspecified",e[e.kSliceNonIDR=1]="kSliceNonIDR",e[e.kSliceDPA=2]="kSliceDPA",e[e.kSliceDPB=3]="kSliceDPB",e[e.kSliceDPC=4]="kSliceDPC",e[e.kSliceIDR=5]="kSliceIDR",e[e.kSliceSEI=6]="kSliceSEI",e[e.kSliceSPS=7]="kSliceSPS",e[e.kSlicePPS=8]="kSlicePPS",e[e.kSliceAUD=9]="kSliceAUD",e[e.kEndOfSequence=10]="kEndOfSequence",e[e.kEndOfStream=11]="kEndOfStream",e[e.kFiller=12]="kFiller",e[e.kSPSExt=13]="kSPSExt",e[e.kReserved0=14]="kReserved0"}(w||(w={}));var P,T,N=function(){},M=function(e){var A=e.data.byteLength;this.type=e.type,this.data=new Uint8Array(4+A),new DataView(this.data.buffer).setUint32(0,A),this.data.set(e.data,4)},L=function(){function e(e){this.TAG="H264AnnexBParser",this.current_startcode_offset_=0,this.eof_flag_=!1,this.data_=e,this.current_startcode_offset_=this.findNextStartCodeOffset(0),this.eof_flag_&&d.A.e(this.TAG,"Could not find H264 startcode until payload end!")}return e.prototype.findNextStartCodeOffset=function(e){for(var A=e,t=this.data_;;){if(A+3>=t.byteLength)return this.eof_flag_=!0,t.byteLength;var i=t[A+0]<<24|t[A+1]<<16|t[A+2]<<8|t[A+3],n=t[A+0]<<16|t[A+1]<<8|t[A+2];if(1===i||1===n)return A;A++}},e.prototype.readNextNaluPayload=function(){for(var e=this.data_,A=null;null==A&&!this.eof_flag_;){var t=this.current_startcode_offset_,i=31&e[t+=1==(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])?4:3],n=(128&e[t])>>>7,a=this.findNextStartCodeOffset(t);if(this.current_startcode_offset_=a,!(i>=w.kReserved0)&&0===n){var r=e.subarray(t,a);(A=new N).type=i,A.data=r}}return A},e}(),G=function(){function e(e,A,t){var i=8+e.byteLength+1+2+A.byteLength,n=!1;66!==e[3]&&77!==e[3]&&88!==e[3]&&(n=!0,i+=4);var a=this.data=new Uint8Array(i);a[0]=1,a[1]=e[1],a[2]=e[2],a[3]=e[3],a[4]=255,a[5]=225;var r=e.byteLength;a[6]=r>>>8,a[7]=255&r;var o=8;a.set(e,8),a[o+=r]=1;var s=A.byteLength;a[o+1]=s>>>8,a[o+2]=255&s,a.set(A,o+3),o+=3+s,n&&(a[o]=252|t.chroma_format_idc,a[o+1]=248|t.bit_depth_luma-8,a[o+2]=248|t.bit_depth_chroma-8,a[o+3]=0,o+=4)}return e.prototype.getData=function(){return this.data},e}();!function(e){e[e.kNull=0]="kNull",e[e.kAACMain=1]="kAACMain",e[e.kAAC_LC=2]="kAAC_LC",e[e.kAAC_SSR=3]="kAAC_SSR",e[e.kAAC_LTP=4]="kAAC_LTP",e[e.kAAC_SBR=5]="kAAC_SBR",e[e.kAAC_Scalable=6]="kAAC_Scalable",e[e.kLayer1=32]="kLayer1",e[e.kLayer2=33]="kLayer2",e[e.kLayer3=34]="kLayer3"}(P||(P={})),function(e){e[e.k96000Hz=0]="k96000Hz",e[e.k88200Hz=1]="k88200Hz",e[e.k64000Hz=2]="k64000Hz",e[e.k48000Hz=3]="k48000Hz",e[e.k44100Hz=4]="k44100Hz",e[e.k32000Hz=5]="k32000Hz",e[e.k24000Hz=6]="k24000Hz",e[e.k22050Hz=7]="k22050Hz",e[e.k16000Hz=8]="k16000Hz",e[e.k12000Hz=9]="k12000Hz",e[e.k11025Hz=10]="k11025Hz",e[e.k8000Hz=11]="k8000Hz",e[e.k7350Hz=12]="k7350Hz"}(T||(T={}));var Y,U,J=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],H=(Y=function(e,A){return Y=Object.setPrototypeOf||t({__proto__:[]},Array)&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},Y(e,A)},function(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}Y(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}),K=function(){},O=function(e){function A(){return null!==e&&e.apply(this,arguments)||this}return H(A,e),A}(K),V=function(){function e(e){this.TAG="AACADTSParser",this.data_=e,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&d.A.e(this.TAG,"Could not found ADTS syncword until payload end")}return e.prototype.findNextSyncwordOffset=function(e){for(var A=e,t=this.data_;;){if(A+7>=t.byteLength)return this.eof_flag_=!0,t.byteLength;if(4095==(t[A+0]<<8|t[A+1])>>>4)return A;A++}},e.prototype.readNextAACFrame=function(){for(var e=this.data_,A=null;null==A&&!this.eof_flag_;){var t=this.current_syncword_offset_,i=(8&e[t+1])>>>3,n=(6&e[t+1])>>>1,a=1&e[t+1],r=(192&e[t+2])>>>6,o=(60&e[t+2])>>>2,s=(1&e[t+2])<<2|(192&e[t+3])>>>6,g=(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5;if(e[t+6],t+g>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var l=1===a?7:9,c=g-l;t+=l;var d=this.findNextSyncwordOffset(t+c);if(this.current_syncword_offset_=d,(0===i||1===i)&&0===n){var I=e.subarray(t,t+c);(A=new K).audio_object_type=r+1,A.sampling_freq_index=o,A.sampling_frequency=J[o],A.channel_config=s,A.data=I}}return A},e.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},e.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},e}(),j=function(){function e(e){this.TAG="AACLOASParser",this.data_=e,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&d.A.e(this.TAG,"Could not found LOAS syncword until payload end")}return e.prototype.findNextSyncwordOffset=function(e){for(var A=e,t=this.data_;;){if(A+1>=t.byteLength)return this.eof_flag_=!0,t.byteLength;if(695==(t[A+0]<<3|t[A+1]>>>5))return A;A++}},e.prototype.getLATMValue=function(e){for(var A=e.readBits(2),t=0,i=0;i<=A;i++)t<<=8,t|=e.readByte();return t},e.prototype.readNextAACFrame=function(e){for(var A=this.data_,t=null;null==t&&!this.eof_flag_;){var i=this.current_syncword_offset_,n=(31&A[i+1])<<8|A[i+2];if(i+3+n>=this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var a=new E(A.subarray(i+3,i+3+n)),r=null;if(a.readBool()){if(null==e){d.A.w(this.TAG,"StreamMuxConfig Missing"),this.current_syncword_offset_=this.findNextSyncwordOffset(i+3+n),a.destroy();continue}r=e}else{var o=a.readBool();if(o&&a.readBool()){d.A.e(this.TAG,"audioMuxVersionA is Not Supported"),a.destroy();break}if(o&&this.getLATMValue(a),!a.readBool()){d.A.e(this.TAG,"allStreamsSameTimeFraming zero is Not Supported"),a.destroy();break}if(0!==a.readBits(6)){d.A.e(this.TAG,"more than 2 numSubFrames Not Supported"),a.destroy();break}if(0!==a.readBits(4)){d.A.e(this.TAG,"more than 2 numProgram Not Supported"),a.destroy();break}if(0!==a.readBits(3)){d.A.e(this.TAG,"more than 2 numLayer Not Supported"),a.destroy();break}var s=o?this.getLATMValue(a):0,g=a.readBits(5);s-=5;var l=a.readBits(4);s-=4;var c=a.readBits(4);s-=4,a.readBits(3),(s-=3)>0&&a.readBits(s);var I=a.readBits(3);if(0!==I){d.A.e(this.TAG,"frameLengthType = ".concat(I,". Only frameLengthType = 0 Supported")),a.destroy();break}a.readByte();var C=a.readBool();if(C)if(o)this.getLATMValue(a);else for(;;){var h=a.readBool();if(a.readByte(),!h)break}a.readBool()&&a.readByte(),(r=new O).audio_object_type=g,r.sampling_freq_index=l,r.sampling_frequency=J[r.sampling_freq_index],r.channel_config=c,r.other_data_present=C}for(var u=0;;){var B=a.readByte();if(u+=B,255!==B)break}for(var f=new Uint8Array(u),x=0;x=6?(i=5,A=new Array(4),r=n-3):(i=2,A=new Array(2),r=n):o.includes("android")?(i=2,A=new Array(2),r=n):(i=5,r=n,A=new Array(4),n>=6?r=n-3:1===a&&(i=2,A=new Array(2),r=n)),A[0]=i<<3,A[0]|=(15&n)>>>1,A[1]=(15&n)<<7,A[1]|=(15&a)<<3,5===i&&(A[1]|=(15&r)>>>1,A[2]=(1&r)<<7,A[2]|=8,A[3]=0),this.config=A,this.sampling_rate=J[n],this.channel_count=a,this.codec_mimetype="mp4a.40."+i.toString(),this.original_codec_mimetype="mp4a.40."+t.toString()},Z=function(){},X=function(){};!function(e){e[e.kSpliceNull=0]="kSpliceNull",e[e.kSpliceSchedule=4]="kSpliceSchedule",e[e.kSpliceInsert=5]="kSpliceInsert",e[e.kTimeSignal=6]="kTimeSignal",e[e.kBandwidthReservation=7]="kBandwidthReservation",e[e.kPrivateCommand=255]="kPrivateCommand"}(U||(U={}));var q,z=function(e){var A=e.readBool();return A?(e.readBits(6),{time_specified_flag:A,pts_time:4*e.readBits(31)+e.readBits(2)}):(e.readBits(7),{time_specified_flag:A})},$=function(e){var A=e.readBool();return e.readBits(6),{auto_return:A,duration:4*e.readBits(31)+e.readBits(2)}},ee=function(e,A){var t=A.readBits(8);return e?{component_tag:t}:{component_tag:t,splice_time:z(A)}},Ae=function(e){return{component_tag:e.readBits(8),utc_splice_time:e.readBits(32)}},te=function(e){var A=e.readBits(32),t=e.readBool();e.readBits(7);var i={splice_event_id:A,splice_event_cancel_indicator:t};if(t)return i;if(i.out_of_network_indicator=e.readBool(),i.program_splice_flag=e.readBool(),i.duration_flag=e.readBool(),e.readBits(5),i.program_splice_flag)i.utc_splice_time=e.readBits(32);else{i.component_count=e.readBits(8),i.components=[];for(var n=0;n=t.byteLength)return this.eof_flag_=!0,t.byteLength;var i=t[A+0]<<24|t[A+1]<<16|t[A+2]<<8|t[A+3],n=t[A+0]<<16|t[A+1]<<8|t[A+2];if(1===i||1===n)return A;A++}},e.prototype.readNextNaluPayload=function(){for(var e=this.data_,A=null;null==A&&!this.eof_flag_;){var t=this.current_startcode_offset_,i=e[t+=1==(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])?4:3]>>1&63,n=(128&e[t])>>>7,a=this.findNextStartCodeOffset(t);if(this.current_startcode_offset_=a,0===n){var r=e.subarray(t,a);(A=new le).type=i,A.data=r}}return A},e}(),Ie=function(){function e(e,A,t,i){var n=23+(5+e.byteLength)+(5+A.byteLength)+(5+t.byteLength),a=this.data=new Uint8Array(n);a[0]=1,a[1]=(3&i.general_profile_space)<<6|(i.general_tier_flag?1:0)<<5|31&i.general_profile_idc,a[2]=i.general_profile_compatibility_flags_1,a[3]=i.general_profile_compatibility_flags_2,a[4]=i.general_profile_compatibility_flags_3,a[5]=i.general_profile_compatibility_flags_4,a[6]=i.general_constraint_indicator_flags_1,a[7]=i.general_constraint_indicator_flags_2,a[8]=i.general_constraint_indicator_flags_3,a[9]=i.general_constraint_indicator_flags_4,a[10]=i.general_constraint_indicator_flags_5,a[11]=i.general_constraint_indicator_flags_6,a[12]=i.general_level_idc,a[13]=240|(3840&i.min_spatial_segmentation_idc)>>8,a[14]=255&i.min_spatial_segmentation_idc,a[15]=252|3&i.parallelismType,a[16]=252|3&i.chroma_format_idc,a[17]=248|7&i.bit_depth_luma_minus8,a[18]=248|7&i.bit_depth_chroma_minus8,a[19]=0,a[20]=0,a[21]=(3&i.constant_frame_rate)<<6|(7&i.num_temporal_layers)<<3|(i.temporal_id_nested?1:0)<<2|3,a[22]=3,a[23]=128|q.kSliceVPS,a[24]=0,a[25]=1,a[26]=(65280&e.byteLength)>>8,a[27]=255&e.byteLength,a.set(e,28),a[23+(5+e.byteLength)+0]=128|q.kSliceSPS,a[23+(5+e.byteLength)+1]=0,a[23+(5+e.byteLength)+2]=1,a[23+(5+e.byteLength)+3]=(65280&A.byteLength)>>8,a[23+(5+e.byteLength)+4]=255&A.byteLength,a.set(A,23+(5+e.byteLength)+5),a[23+(5+e.byteLength+5+A.byteLength)+0]=128|q.kSlicePPS,a[23+(5+e.byteLength+5+A.byteLength)+1]=0,a[23+(5+e.byteLength+5+A.byteLength)+2]=1,a[23+(5+e.byteLength+5+A.byteLength)+3]=(65280&t.byteLength)>>8,a[23+(5+e.byteLength+5+A.byteLength)+4]=255&t.byteLength,a.set(t,23+(5+e.byteLength+5+A.byteLength)+5)}return e.prototype.getData=function(){return this.data},e}(),Ce=function(){},he=function(){},ue=function(){},Be=[[64,64,80,80,96,96,112,112,128,128,160,160,192,192,224,224,256,256,320,320,384,384,448,448,512,512,640,640,768,768,896,896,1024,1024,1152,1152,1280,1280],[69,70,87,88,104,105,121,122,139,140,174,175,208,209,243,244,278,279,348,349,417,418,487,488,557,558,696,697,835,836,975,976,1114,1115,1253,1254,1393,1394],[96,96,120,120,144,144,168,168,192,192,240,240,288,288,336,336,384,384,480,480,576,576,672,672,768,768,960,960,1152,1152,1344,1344,1536,1536,1728,1728,1920,1920]],fe=function(){function e(e){this.TAG="AC3Parser",this.data_=e,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&d.A.e(this.TAG,"Could not found AC3 syncword until payload end")}return e.prototype.findNextSyncwordOffset=function(e){for(var A=e,t=this.data_;;){if(A+7>=t.byteLength)return this.eof_flag_=!0,t.byteLength;if(2935==(t[A+0]<<8|t[A+1]))return A;A++}},e.prototype.readNextAC3Frame=function(){for(var e=this.data_,A=null;null==A&&!this.eof_flag_;){var t=this.current_syncword_offset_,i=e[t+4]>>6,n=[48e3,44200,33e3][i],a=63&e[t+4],r=2*Be[i][a];if(t+r>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var o=this.findNextSyncwordOffset(t+r);this.current_syncword_offset_=o;var s=e[t+5]>>3,g=7&e[t+5],l=e[t+6]>>5,c=0;1&l&&1!==l&&(c+=2),4&l&&(c+=2),2===l&&(c+=2);var d=(e[t+6]<<8|e[t+7])>>12-c&1,I=[2,1,2,3,3,4,4,5][l]+d;(A=new ue).sampling_frequency=n,A.channel_count=I,A.channel_mode=l,A.bit_stream_identification=s,A.low_frequency_effects_channel_on=d,A.bit_stream_mode=g,A.frame_size_code=a,A.data=e.subarray(t,t+r)}return A},e.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},e.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},e}(),Ee=function(e){var A;A=[e.sampling_rate_code<<6|e.bit_stream_identification<<1|e.bit_stream_mode>>2,(3&e.bit_stream_mode)<<6|e.channel_mode<<3|e.low_frequency_effects_channel_on<<2|e.frame_size_code>>4,e.frame_size_code<<4&224],this.config=A,this.sampling_rate=e.sampling_frequency,this.bit_stream_identification=e.bit_stream_identification,this.bit_stream_mode=e.bit_stream_mode,this.low_frequency_effects_channel_on=e.low_frequency_effects_channel_on,this.channel_count=e.channel_count,this.channel_mode=e.channel_mode,this.codec_mimetype="ac-3",this.original_codec_mimetype="ac-3"},xe=function(){},Qe=function(){function e(e){this.TAG="EAC3Parser",this.data_=e,this.current_syncword_offset_=this.findNextSyncwordOffset(0),this.eof_flag_&&d.A.e(this.TAG,"Could not found AC3 syncword until payload end")}return e.prototype.findNextSyncwordOffset=function(e){for(var A=e,t=this.data_;;){if(A+7>=t.byteLength)return this.eof_flag_=!0,t.byteLength;if(2935==(t[A+0]<<8|t[A+1]))return A;A++}},e.prototype.readNextEAC3Frame=function(){for(var e=this.data_,A=null;null==A&&!this.eof_flag_;){var t=this.current_syncword_offset_,i=new E(e.subarray(t+2)),n=(i.readBits(2),i.readBits(3),i.readBits(11)+1<<1),a=i.readBits(2),r=null,o=null;3===a?(r=[24e3,22060,16e3][a=i.readBits(2)],o=3):(r=[48e3,44100,32e3][a],o=i.readBits(2));var s=i.readBits(3),g=i.readBits(1),l=i.readBits(5);if(t+n>this.data_.byteLength){this.eof_flag_=!0,this.has_last_incomplete_data=!0;break}var c=this.findNextSyncwordOffset(t+n);this.current_syncword_offset_=c;var d=[2,1,2,3,3,4,4,5][s]+g;i.destroy(),(A=new xe).sampling_frequency=r,A.channel_count=d,A.channel_mode=s,A.bit_stream_identification=l,A.low_frequency_effects_channel_on=g,A.frame_size=n,A.num_blks=[1,2,3,6][o],A.data=e.subarray(t,t+n)}return A},e.prototype.hasIncompleteData=function(){return this.has_last_incomplete_data},e.prototype.getIncompleteData=function(){return this.has_last_incomplete_data?this.data_.subarray(this.current_syncword_offset_):null},e}(),pe=function(e){var A,t=Math.floor(e.frame_size*e.sampling_frequency/(16*e.num_blks));A=[255&t,248&t,e.sampling_rate_code<<6|e.bit_stream_identification<<1,e.channel_mode<<1|e.low_frequency_effects_channel_on,0],this.config=A,this.sampling_rate=e.sampling_frequency,this.bit_stream_identification=e.bit_stream_identification,this.num_blks=e.num_blks,this.low_frequency_effects_channel_on=e.low_frequency_effects_channel_on,this.channel_count=e.channel_count,this.channel_mode=e.channel_mode,this.codec_mimetype="ec-3",this.original_codec_mimetype="ec-3"},me=function(){var e=function(A,i){return e=Object.setPrototypeOf||t({__proto__:[]},Array)&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},e(A,i)};return function(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=A}e(A,t),A.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),ye=function(){return ye=Object.assign||function(e){for(var A,t=1,i=arguments.length;t0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return r},Se=function(e,A,t){if(2===arguments.length)for(var i,n=0,a=A.length;n=4?(d.A.v("TSDemuxer","ts_packet_size = 192, m2ts mode"),t-=4):204===i&&d.A.v("TSDemuxer","ts_packet_size = 204, RS encoded MPEG2-TS stream"),{match:!0,consumed:0,ts_packet_size:i,sync_offset:t})},A.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},A.prototype.resetMediaInfo=function(){this.media_info_=new C.A},A.prototype.parseChunks=function(e,A){var t;if(!(this.onError&&this.onMediaInfo&&this.onTrackMetadata&&this.onDataAvailable))throw new u.j4("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var i=0;for(this.first_parse_&&(this.first_parse_=!1,i=this.sync_offset_);i+this.ts_packet_size_<=e.byteLength;){var n=A+i;192===this.ts_packet_size_&&(i+=4);var a=new Uint8Array(e,i,188),r=a[0];if(71!==r){d.A.e(this.TAG,"sync_byte = ".concat(r,", not 0x47"));break}var o=(64&a[1])>>>6,s=(a[1],(31&a[1])<<8|a[2]),g=(48&a[3])>>>4,c=15&a[3],I={},C=4;if(2===g||3===g){var h=a[4];if(5+h===188){i+=188,204===this.ts_packet_size_&&(i+=16);continue}h>0&&(I=this.parseAdaptationField(e,i+4,1+h)),C=5+h}if(1===g||3===g)if(0===s||s===this.current_pmt_pid_||void 0!==this.pmt_&&this.pmt_.pid_stream_type[s]===l.kSCTE35){var B=188-C;this.handleSectionSlice(e,i+C,B,{pid:s,file_position:n,payload_unit_start_indicator:o,continuity_conunter:c,random_access_indicator:I.random_access_indicator})}else if(void 0!==(null===(t=this.pmt_)||void 0===t?void 0:t.pid_stream_type[s])){B=188-C;var f=this.pmt_.pid_stream_type[s];(s===this.pmt_.common_pids.h264||s===this.pmt_.common_pids.h265||s===this.pmt_.common_pids.adts_aac||s===this.pmt_.common_pids.loas_aac||s===this.pmt_.common_pids.ac3||s===this.pmt_.common_pids.eac3||s===this.pmt_.common_pids.opus||s===this.pmt_.common_pids.mp3||this.pmt_.pes_private_data_pids[s]||this.pmt_.timed_id3_pids[s])&&this.handlePESSlice(e,i+C,B,{pid:s,stream_type:f,file_position:n,payload_unit_start_indicator:o,continuity_conunter:c,random_access_indicator:I.random_access_indicator})}i+=188,204===this.ts_packet_size_&&(i+=16)}return this.dispatchAudioVideoMediaSegment(),i},A.prototype.parseAdaptationField=function(e,A,t){var i=new Uint8Array(e,A,t),n=i[0];return n>0?n>183?(d.A.w(this.TAG,"Illegal adaptation_field_length: ".concat(n)),{}):{discontinuity_indicator:(128&i[1])>>>7,random_access_indicator:(64&i[1])>>>6,elementary_stream_priority_indicator:(32&i[1])>>>5}:{}},A.prototype.handleSectionSlice=function(e,A,t,i){var n=new Uint8Array(e,A,t),a=this.section_slice_queues_?this.section_slice_queues_[i.pid]:{};if(i.payload_unit_start_indicator){var r=n[0];if(void 0!==a&&0!==(null==a?void 0:a.total_length)){var o=new Uint8Array(e,A+1,Math.min(t,r));a.slices.push(o),a.total_length+=o.byteLength,a.total_length===a.expected_length?this.emitSectionSlices(a,i):this.clearSlices(a,i)}for(var s=1+r;s=a.expected_length&&this.clearSlices(a,i),s+=o.byteLength}}else void 0!==a&&0!==a.total_length&&(o=new Uint8Array(e,A,Math.min(t,a.expected_length-a.total_length)),a.slices.push(o),a.total_length+=o.byteLength,a.total_length===a.expected_length?this.emitSectionSlices(a,i):a.total_length>=a.expected_length&&this.clearSlices(a,i))},A.prototype.handlePESSlice=function(e,A,t,i){var n=new Uint8Array(e,A,t),a=n[0]<<16|n[1]<<8|n[2],r=(n[3],n[4]<<8|n[5]);if(i.payload_unit_start_indicator){if(1!==a)return void d.A.e(this.TAG,"handlePESSlice: packet_start_code_prefix should be 1 but with value ".concat(a));var o=this.pes_slice_queues_[i.pid];o&&(0===o.expected_length||o.expected_length===o.total_length?this.emitPESSlices(o,i):this.clearSlices(o,i)),this.pes_slice_queues_&&(this.pes_slice_queues_[i.pid]=new k,this.pes_slice_queues_[i.pid].file_position=i.file_position,this.pes_slice_queues_[i.pid].random_access_indicator=i.random_access_indicator)}if(void 0!==this.pes_slice_queues_[i.pid]){var s=this.pes_slice_queues_[i.pid];s.slices.push(n),i.payload_unit_start_indicator&&(s.expected_length=0===r?0:r+6),s.total_length+=n.byteLength,s.expected_length>0&&s.expected_length===s.total_length?this.emitPESSlices(s,i):s.expected_length>0&&s.expected_length>>6,r=A[8],o=void 0,s=void 0;2!==a&&3!==a||(o=536870912*(14&A[9])+4194304*(255&A[10])+16384*(254&A[11])+128*(255&A[12])+(254&A[13])/2,s=3===a?536870912*(14&A[14])+4194304*(255&A[15])+16384*(254&A[16])+128*(255&A[17])+(254&A[18])/2:o);var g=9+r,c=void 0;if(0!==n){if(n<3+r)return void d.A.v(this.TAG,"Malformed PES: PES_packet_length < 3 + PES_header_data_length");c=n-3-r}else c=A.byteLength-g;var I=A.subarray(g,g+c);switch(e.stream_type){case l.kMPEG1Audio:case l.kMPEG2Audio:this.parseMP3Payload(I,o);break;case l.kPESPrivateData:this.pmt_.common_pids.opus===e.pid?this.parseOpusPayload(I,o):this.pmt_.common_pids.ac3===e.pid?this.parseAC3Payload(I,o):this.pmt_.common_pids.eac3===e.pid?this.parseEAC3Payload(I,o):this.pmt_.smpte2038_pids[e.pid]?this.parseSMPTE2038MetadataPayload(I,o,s,e.pid,i):this.parsePESPrivateDataPayload(I,o,s,e.pid,i);break;case l.kADTSAAC:this.parseADTSAACPayload(I,o);break;case l.kLOASAAC:this.parseLOASAACPayload(I,o);break;case l.kAC3:this.parseAC3Payload(I,o);break;case l.kEAC3:this.parseEAC3Payload(I,o);break;case l.kID3:this.parseTimedID3MetadataPayload(I,o,s,e.pid,i);break;case l.kH264:this.parseH264Payload(I,o,s,e.file_position,e.random_access_indicator);break;case l.kH265:this.parseH265Payload(I,o,s,e.file_position,e.random_access_indicator)}}else 188!==i&&191!==i&&240!==i&&241!==i&&255!==i&&242!==i&&248!==i||e.stream_type!==l.kPESPrivateData||(g=6,c=void 0,c=0!==n?n:A.byteLength-g,I=A.subarray(g,g+c),this.parsePESPrivateDataPayload(I,void 0,void 0,e.pid,i));else d.A.e(this.TAG,"parsePES: packet_start_code_prefix should be 1 but with value ".concat(t))},A.prototype.parsePAT=function(e){var A=e[0];if(0===A){var t=(15&e[1])<<8|e[2],i=(e[3],e[4],(62&e[5])>>>1),n=1&e[5],a=e[6],r=(e[7],null);if(1===n&&0===a)(r=new D).version_number=i;else if(null==(r=this.pat_))return;for(var o=t-5-4,s=-1,g=-1,l=8;l<8+o;l+=4){var c=e[l]<<8|e[l+1],I=(31&e[l+2])<<8|e[l+3];0===c?r.network_pid=I:(r.program_pmt_pid[c]=I,-1===s&&(s=c),-1===g&&(g=I))}1===n&&0===a&&(void 0===this.pat_&&d.A.v(this.TAG,"Parsed first PAT: ".concat(JSON.stringify(r))),this.pat_=r,this.current_program_=s,this.current_pmt_pid_=g)}else d.A.e(this.TAG,"parsePAT: table_id ".concat(A," is not corresponded to PAT!"))},A.prototype.parsePMT=function(e){var A=e[0];if(2===A){var t=(15&e[1])<<8|e[2],i=e[3]<<8|e[4],n=(62&e[5])>>>1,a=1&e[5],r=e[6],o=(e[7],null);if(1===a&&0===r)(o=new b).program_number=i,o.version_number=n,this.program_pmt_map_[i]=o;else if(null==(o=this.program_pmt_map_[i]))return;e[8],e[9];for(var s=(15&e[10])<<8|e[11],g=12+s,c=t-9-s-4,I=g;I0){for(var E=I+5;E1&&(d.A.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(s,"ms, PES pts: ").concat(o,"ms")),o=s)}}for(var g=new V(e),l=null,c=o,I=0;null!=(l=g.readNextAACFrame());){r=1024/l.sampling_frequency*1e3;var C={codec:"aac",data:l};this.audio_init_segment_dispatched_?this.detectAudioMetadataChange(C)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(C)):(this.audio_metadata_={codec:"aac",audio_object_type:l.audio_object_type,sampling_freq_index:l.sampling_freq_index,sampling_frequency:l.sampling_frequency,channel_config:l.channel_config},this.dispatchAudioInitSegment(C)),I=c;var h=Math.floor(c),u={unit:l.data,length:l.data.byteLength,pts:h,dts:h};this.audio_track_&&(null===(n=this.audio_track_)||void 0===n||n.samples.push(u),this.audio_track_.length+=l.data.byteLength),c+=r}g.hasIncompleteData()&&(this.aac_last_incomplete_data_=g.getIncompleteData()),I&&(this.aac_last_sample_pts_=I)}},A.prototype.parseLOASAACPayload=function(e,A){var t,i,n;if(!this.has_video_||this.video_init_segment_dispatched_){if(this.aac_last_incomplete_data_){var a=new Uint8Array(e.byteLength+this.aac_last_incomplete_data_.byteLength);a.set(this.aac_last_incomplete_data_,0),a.set(e,this.aac_last_incomplete_data_.byteLength),e=a}var r,o=0;if(void 0!==A&&(o=A/this.timescale_),"aac"===(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec)){if(void 0===A&&void 0!==this.aac_last_sample_pts_)r=1024/this.audio_metadata_.sampling_frequency*1e3,o=this.aac_last_sample_pts_+r;else if(void 0===A)return void d.A.w(this.TAG,"AAC: Unknown pts");if(this.aac_last_incomplete_data_&&this.aac_last_sample_pts_){r=1024/this.audio_metadata_.sampling_frequency*1e3;var s=this.aac_last_sample_pts_+r;Math.abs(s-o)>1&&(d.A.w(this.TAG,"AAC: Detected pts overlapped, "+"expected: ".concat(s,"ms, PES pts: ").concat(o,"ms")),o=s)}}for(var g=new j(e),l=null,c=o,I=0;null!=(l=g.readNextAACFrame(null!==(i=this.loas_previous_frame)&&void 0!==i?i:void 0));){this.loas_previous_frame=l,r=1024/l.sampling_frequency*1e3;var C={codec:"aac",data:l};this.audio_init_segment_dispatched_?this.detectAudioMetadataChange(C)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(C)):(this.audio_metadata_={codec:"aac",audio_object_type:l.audio_object_type,sampling_freq_index:l.sampling_freq_index,sampling_frequency:l.sampling_frequency,channel_config:l.channel_config},this.dispatchAudioInitSegment(C)),I=c;var h=Math.floor(c),u={unit:l.data,length:l.data.byteLength,pts:h,dts:h};this.audio_track_&&(null===(n=this.audio_track_)||void 0===n||n.samples.push(u),this.audio_track_.length+=l.data.byteLength),c+=r}g.hasIncompleteData()&&(this.aac_last_incomplete_data_=g.getIncompleteData()),I&&(this.aac_last_sample_pts_=I)}},A.prototype.parseAC3Payload=function(e,A){var t,i;if(!this.has_video_||this.video_init_segment_dispatched_){var n,a=0;if(void 0!==A&&(a=A/this.timescale_),"ac-3"===(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec))if(void 0===A&&void 0!==this.aac_last_sample_pts_)n=1536/this.audio_metadata_.sampling_frequency*1e3,a=this.aac_last_sample_pts_+n;else if(void 0===A)return void d.A.w(this.TAG,"AC3: Unknown pts");for(var r=new fe(e),o=null,s=a,g=0;null!=(o=r.readNextAC3Frame());){n=1536/o.sampling_frequency*1e3;var l={codec:"ac-3",data:o};this.audio_init_segment_dispatched_?this.detectAudioMetadataChange(l)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(l)):(this.audio_metadata_={codec:"ac-3",sampling_frequency:o.sampling_frequency,bit_stream_identification:o.bit_stream_identification,bit_stream_mode:o.bit_stream_mode,low_frequency_effects_channel_on:o.low_frequency_effects_channel_on,channel_mode:o.channel_mode},this.dispatchAudioInitSegment(l)),g=s;var c=Math.floor(s),I={unit:o.data,length:o.data.byteLength,pts:c,dts:c};this.audio_track_&&(null===(i=this.audio_track_)||void 0===i||i.samples.push(I),this.audio_track_.length+=o.data.byteLength),s+=n}g&&(this.aac_last_sample_pts_=g)}},A.prototype.parseEAC3Payload=function(e,A){var t,i;if(!this.has_video_||this.video_init_segment_dispatched_){var n,a=0;if(void 0!==A&&(a=A/this.timescale_),"ec-3"===(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec))if(void 0===A&&void 0!==this.aac_last_sample_pts_)n=256*(this.audio_metadata_.num_blks||0)/(this.audio_metadata_.sampling_frequency||0)*1e3,a=this.aac_last_sample_pts_+n;else if(void 0===A)return void d.A.w(this.TAG,"EAC3: Unknown pts");for(var r=new Qe(e),o=null,s=a,g=0;null!=(o=r.readNextEAC3Frame());){n=1536/o.sampling_frequency*1e3;var l={codec:"ec-3",data:o};this.audio_init_segment_dispatched_?this.detectAudioMetadataChange(l)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(l)):(this.audio_metadata_={codec:"ec-3",sampling_frequency:o.sampling_frequency,bit_stream_identification:o.bit_stream_identification,low_frequency_effects_channel_on:o.low_frequency_effects_channel_on,num_blks:o.num_blks,channel_mode:o.channel_mode},this.dispatchAudioInitSegment(l)),g=s;var c=Math.floor(s),I={unit:o.data,length:o.data.byteLength,pts:c,dts:c};this.audio_track_&&(null===(i=this.audio_track_)||void 0===i||i.samples.push(I),this.audio_track_.length+=o.data.byteLength),s+=n}g&&(this.aac_last_sample_pts_=g)}},A.prototype.parseOpusPayload=function(e,A){var t,i;if(!this.has_video_||this.video_init_segment_dispatched_){var n,a=0;if(void 0!==A&&(a=A/this.timescale_),"opus"===(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec))if(void 0===A&&void 0!==this.aac_last_sample_pts_)n=20,a=this.aac_last_sample_pts_+n;else if(void 0===A)return void d.A.w(this.TAG,"Opus: Unknown pts");for(var r=a,o=0,s=0;s>>3&3,n=(6&e[1])>>1,a=(e[2],(12&e[2])>>>2),r=3&~(e[3]>>>6)?2:1,o=0,s=34;switch(i){case 0:o=[11025,12e3,8e3,0][a];break;case 2:o=[22050,24e3,16e3,0][a];break;case 3:o=[44100,48e3,32e3,0][a]}switch(n){case 1:s=34;break;case 2:s=33;break;case 3:s=32}var g=new he;g.object_type=s,g.sample_rate=o,g.channel_count=r,g.data=e;var l={codec:"mp3",data:g};this.audio_init_segment_dispatched_?this.detectAudioMetadataChange(l)&&(this.dispatchAudioMediaSegment(),this.dispatchAudioInitSegment(l)):(this.audio_metadata_={codec:"mp3",object_type:s,sample_rate:o,channel_count:r},this.dispatchAudioInitSegment(l));var c={unit:e,length:e.byteLength,pts:A/this.timescale_,dts:A/this.timescale_};this.audio_track_&&(null===(t=this.audio_track_)||void 0===t||t.samples.push(c),this.audio_track_.length+=e.byteLength)}},A.prototype.detectAudioMetadataChange=function(e){var A,t,i,n;if(e.codec!==(null===(A=this.audio_metadata_)||void 0===A?void 0:A.codec))return d.A.v(this.TAG,"Audio: Audio Codecs changed from "+"".concat(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec," to ").concat(e.codec)),!0;if("aac"===e.codec&&"aac"===this.audio_metadata_.codec){if((a=e.data).audio_object_type!==this.audio_metadata_.audio_object_type)return d.A.v(this.TAG,"AAC: AudioObjectType changed from "+"".concat(this.audio_metadata_.audio_object_type," to ").concat(a.audio_object_type)),!0;if(a.sampling_freq_index!==this.audio_metadata_.sampling_freq_index)return d.A.v(this.TAG,"AAC: SamplingFrequencyIndex changed from "+"".concat(this.audio_metadata_.sampling_freq_index," to ").concat(a.sampling_freq_index)),!0;if(a.channel_config!==this.audio_metadata_.channel_config)return d.A.v(this.TAG,"AAC: Channel configuration changed from "+"".concat(null===(i=this.audio_metadata_)||void 0===i?void 0:i.channel_config," to ").concat(a.channel_config)),!0}else if("ac-3"===e.codec&&"ac-3"===this.audio_metadata_.codec){var a;if((a=e.data).sampling_frequency!==this.audio_metadata_.sampling_frequency)return d.A.v(this.TAG,"AC3: Sampling Frequency changed from "+"".concat(null===(n=this.audio_metadata_)||void 0===n?void 0:n.sampling_frequency," to ").concat(a.sampling_frequency)),!0;if(a.bit_stream_identification!==this.audio_metadata_.bit_stream_identification)return d.A.v(this.TAG,"AC3: Bit Stream Identification changed from "+"".concat(this.audio_metadata_.bit_stream_identification," to ").concat(a.bit_stream_identification)),!0;if(a.bit_stream_mode!==this.audio_metadata_.bit_stream_mode)return d.A.v(this.TAG,"AC3: BitStream Mode changed from "+"".concat(this.audio_metadata_.bit_stream_mode," to ").concat(a.bit_stream_mode)),!0;if(a.channel_mode!==this.audio_metadata_.channel_mode)return d.A.v(this.TAG,"AC3: Channel Mode changed from "+"".concat(this.audio_metadata_.channel_mode," to ").concat(a.channel_mode)),!0;if(a.low_frequency_effects_channel_on!==this.audio_metadata_.low_frequency_effects_channel_on)return d.A.v(this.TAG,"AC3: Low Frequency Effects Channel On changed from "+"".concat(this.audio_metadata_.low_frequency_effects_channel_on," to ").concat(a.low_frequency_effects_channel_on)),!0}else if("opus"===e.codec&&"opus"===this.audio_metadata_.codec){if((r=e.meta).sample_rate!==this.audio_metadata_.sample_rate)return d.A.v(this.TAG,"Opus: SamplingFrequencyIndex changed from "+"".concat(this.audio_metadata_.sample_rate," to ").concat(r.sample_rate)),!0;if(r.channel_count!==this.audio_metadata_.channel_count)return d.A.v(this.TAG,"Opus: Channel count changed from "+"".concat(this.audio_metadata_.channel_count," to ").concat(r.channel_count)),!0}else if("mp3"===e.codec&&"mp3"===this.audio_metadata_.codec){var r;if((r=e.data).object_type!==this.audio_metadata_.object_type)return d.A.v(this.TAG,"MP3: AudioObjectType changed from "+"".concat(this.audio_metadata_.object_type," to ").concat(r.object_type)),!0;if(r.sample_rate!==this.audio_metadata_.sample_rate)return d.A.v(this.TAG,"MP3: SamplingFrequencyIndex changed from "+"".concat(this.audio_metadata_.sample_rate," to ").concat(r.sample_rate)),!0;if(r.channel_count!==this.audio_metadata_.channel_count)return d.A.v(this.TAG,"MP3: Channel count changed from "+"".concat(this.audio_metadata_.channel_count," to ").concat(r.channel_count)),!0}return!1},A.prototype.dispatchAudioInitSegment=function(e){var A,t,i,n,a,r,o={type:"audio"};if(o.id=null===(A=this.audio_track_)||void 0===A?void 0:A.id,o.timescale=1e3,o.duration=this.duration_,"aac"===(null===(t=this.audio_metadata_)||void 0===t?void 0:t.codec)){var s="aac"===e.codec?e.data:null,g=new W(s);o.audioSampleRate=g.sampling_rate,o.channelCount=g.channel_count,o.codec=g.codec_mimetype,o.originalCodec=g.original_codec_mimetype,o.config=g.config,o.refSampleDuration=1024/o.audioSampleRate*o.timescale}else if("ac-3"===(null===(i=this.audio_metadata_)||void 0===i?void 0:i.codec)){var l="ac-3"===e.codec?e.data:null,c=new Ee(l);o.audioSampleRate=c.sampling_rate,o.channelCount=c.channel_count,o.codec=c.codec_mimetype,o.originalCodec=c.original_codec_mimetype,o.config=c.config,o.refSampleDuration=1536/o.audioSampleRate*o.timescale}else if("ec-3"===(null===(n=this.audio_metadata_)||void 0===n?void 0:n.codec)){var I="ec-3"===e.codec?e.data:null,C=new pe(I);o.audioSampleRate=C.sampling_rate,o.channelCount=C.channel_count,o.codec=C.codec_mimetype,o.originalCodec=C.original_codec_mimetype,o.config=C.config,o.refSampleDuration=256*C.num_blks/o.audioSampleRate*o.timescale}else"opus"===(null===(a=this.audio_metadata_)||void 0===a?void 0:a.codec)?(o.audioSampleRate=this.audio_metadata_.sample_rate,o.channelCount=this.audio_metadata_.channel_count,o.channelConfigCode=this.audio_metadata_.channel_config_code,o.codec="opus",o.originalCodec="opus",o.config=void 0,o.refSampleDuration=20):"mp3"===(null===(r=this.audio_metadata_)||void 0===r?void 0:r.codec)&&(o.audioSampleRate=this.audio_metadata_.sample_rate,o.channelCount=this.audio_metadata_.channel_count,o.codec="mp3",o.originalCodec="mp3",o.config=void 0);this.audio_init_segment_dispatched_||d.A.v(this.TAG,"Generated first AudioSpecificConfig for mimeType: ".concat(o.codec)),this.onTrackMetadata&&this.onTrackMetadata("audio",o),this.audio_init_segment_dispatched_=!0,this.video_metadata_changed_=!1;var h=this.media_info_;h.hasAudio=!0,h.audioCodec=o.originalCodec,h.audioSampleRate=o.audioSampleRate,h.audioChannelCount=o.channelCount,h.hasVideo&&h.videoCodec?h.mimeType='video/mp2t; codecs="'.concat(h.videoCodec,",").concat(h.audioCodec,'"'):h.mimeType='video/mp2t; codecs="'.concat(h.audioCodec,'"'),h.isComplete()&&this.onMediaInfo&&this.onMediaInfo(h)},A.prototype.dispatchPESPrivateDataDescriptor=function(e,A,t){var i=new X;i.pid=e,i.stream_type=A,i.descriptor=t,this.onPESPrivateDataDescriptor&&this.onPESPrivateDataDescriptor(i)},A.prototype.parsePESPrivateDataPayload=function(e,A,t,i,n){var a=new Z;if(a.pid=i,a.stream_id=n,a.len=e.byteLength,a.data=e,void 0!==A){var r=Math.floor(A/this.timescale_);a.pts=r}else a.nearest_pts=this.aac_last_sample_pts_;if(void 0!==t){var o=Math.floor(t/this.timescale_);a.dts=o}this.onPESPrivateData&&this.onPESPrivateData(a)},A.prototype.parseTimedID3MetadataPayload=function(e,A,t,i,n){var a=new Z;if(a.pid=i,a.stream_id=n,a.len=e.byteLength,a.data=e,void 0!==A){var r=Math.floor(A/this.timescale_);a.pts=r}if(void 0!==t){var o=Math.floor(t/this.timescale_);a.dts=o}this.onTimedID3Metadata&&this.onTimedID3Metadata(a)},A.prototype.parseSMPTE2038MetadataPayload=function(e,A,t,i,n){var a=new Ce;if(a.pid=i,a.stream_id=n,a.len=e.byteLength,a.data=e,void 0!==A){var r=Math.floor(A/this.timescale_);a.pts=r}if(a.nearest_pts=this.aac_last_sample_pts_,void 0!==t){var o=Math.floor(t/this.timescale_);a.dts=o}a.ancillaries=function(e){for(var A=new E(e),t=0,i=[];t+=6,0===A.readBits(6);){var n=A.readBool();t+=1;var a=A.readBits(11);t+=11;var r=A.readBits(12);t+=12;var o=255&A.readBits(10);t+=10;var s=255&A.readBits(10);t+=10;var g=255&A.readBits(10);t+=10;for(var l=new Uint8Array(g),c=0;c>>24&255,n[1]=i>>>16&255,n[2]=i>>>8&255,n[3]=255&i,n.set(e,4);var s=8;for(o=0;o>>24&255,A>>>16&255,A>>>8&255,255&A,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},e.trak=function(A){return e.box(e.types.trak,e.tkhd(A),e.mdia(A))},e.tkhd=function(A){var t=A.id,i=A.duration,n=A.presentWidth,a=A.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>>8&255,255&n,0,0,a>>>8&255,255&a,0,0]))},e.mdia=function(A){return e.box(e.types.mdia,e.mdhd(A),e.hdlr(A),e.minf(A))},e.mdhd=function(A){var t=A.timescale,i=A.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))},e.hdlr=function(A){var t;return t="audio"===A.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,t)},e.minf=function(A){var t;return t="audio"===A.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,t,e.dinf(),e.stbl(A))},e.dinf=function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))},e.stbl=function(A){return e.box(e.types.stbl,e.stsd(A),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))},e.stsd=function(A){return"audio"===A.type?"mp3"===A.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(A)):"ac-3"===A.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.ac3(A)):"ec-3"===A.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.ec3(A)):"opus"===A.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.Opus(A)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(A)):"video"===A.type&&A.codec.startsWith("hvc1")?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.hvc1(A)):"video"===A.type&&A.codec.startsWith("av01")?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.av01(A)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(A))},e.mp3=function(A){var t=A.channelCount,i=A.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types[".mp3"],n)},e.mp4a=function(A){var t=A.channelCount,i=A.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types.mp4a,n,e.esds(A))},e.ac3=function(A){var t,i=A.channelCount,n=A.audioSampleRate,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types["ac-3"],a,e.box(e.types.dac3,new Uint8Array(null!==(t=A.config)&&void 0!==t?t:[])))},e.ec3=function(A){var t,i=A.channelCount,n=A.audioSampleRate,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types["ec-3"],a,e.box(e.types.dec3,new Uint8Array(null!==(t=A.config)&&void 0!==t?t:[])))},e.esds=function(A){var t,i=null!==(t=A.config)&&void 0!==t?t:[],n=i.length,a=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(i).concat([6,1,2]));return e.box(e.types.esds,a)},e.Opus=function(A){var t=A.channelCount,i=A.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return e.box(e.types.Opus,n,e.dOps(A))},e.dOps=function(A){var t=A.channelCount,i=A.channelConfigCode,n=A.audioSampleRate,a=[];switch(i){case 1:case 2:a=[0];break;case 0:a=[255,1,1,0,1];break;case 128:a=[255,2,0,0,1];break;case 3:a=[1,2,1,0,2,1];break;case 4:a=[1,2,2,0,1,2,3];break;case 5:a=[1,3,2,0,4,1,2,3];break;case 6:a=[1,4,2,0,4,1,2,3,5];break;case 7:a=[1,4,2,0,4,1,2,3,5,6];break;case 8:a=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:a=[1,1,2,0,1];break;case 131:a=[1,1,3,0,1,2];break;case 132:a=[1,1,4,0,1,2,3];break;case 133:a=[1,1,5,0,1,2,3,4];break;case 134:a=[1,1,6,0,1,2,3,4,5];break;case 135:a=[1,1,7,0,1,2,3,4,5,6];break;case 136:a=[1,1,8,0,1,2,3,4,5,6,7]}var r=new Uint8Array(function(e,A,t){if(2===arguments.length)for(var i,n=0,a=A.length;n>>24&255,n>>>17&255,n>>>8&255,n>>>0&255,0,0],function(e,A){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,n,a=t.call(e),r=[];try{for(;(void 0===A||A-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}return r}(a),!1));return e.box(e.types.dOps,r)},e.avc1=function(A){var t=A.avcc,i=A.codecWidth,n=A.codecHeight,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,n>>>8&255,255&n,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,a,e.box(e.types.avcC,t))},e.hvc1=function(A){var t=A.hvcc,i=A.codecWidth,n=A.codecHeight,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,n>>>8&255,255&n,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.hvc1,a,e.box(e.types.hvcC,t))},e.av01=function(A){var t,i,n=A.av1c,a=null!==(t=A.codecWidth)&&void 0!==t?t:192,r=null!==(i=A.codecHeight)&&void 0!==i?i:108,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a>>>8&255,255&a,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.av01,o,e.box(e.types.av1C,n))},e.mvex=function(A){return e.box(e.types.mvex,e.trex(A))},e.trex=function(A){var t=A.id,i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,i)},e.moof=function(A,t){return e.box(e.types.moof,e.mfhd(A.sequenceNumber),e.traf(A,t))},e.mfhd=function(A){var t=new Uint8Array([0,0,0,0,A>>>24&255,A>>>16&255,A>>>8&255,255&A]);return e.box(e.types.mfhd,t)},e.traf=function(A,t){var i=A.id,n=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),a=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),r=e.sdtp(A),o=e.trun(A,r.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,n,a,o,r)},e.sdtp=function(A){for(var t=A.samples||[],i=t.length,n=new Uint8Array(4+i),a=0;a>>24&255,n>>>16&255,n>>>8&255,255&n,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(var o=0;o>>24&255,s>>>16&255,s>>>8&255,255&s,g>>>24&255,g>>>16&255,g>>>8&255,255&g,l.isLeading<<2|l.dependsOn,l.isDependedOn<<6|l.hasRedundancy<<4|l.isNonSync,0,0,c>>>24&255,c>>>16&255,c>>>8&255,255&c],12+16*o)}return e.box(e.types.trun,r)},e.mdat=function(A){return e.box(e.types.mdat,A)},e.constants={FTYP:new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),STSD_PREFIX:new Uint8Array([0,0,0,0,0,0,0,1]),STTS:we,STSC:we,STCO:we,STSZ:new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),HDLR_VIDEO:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),HDLR_AUDIO:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),DREF:new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),SMHD:new Uint8Array([0,0,0,0,0,0,0,0]),VMHD:new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},e}();be.init();var Fe=be,Re=function(){function e(){}return e.getSilentFrame=function(e,A){if("mp4a.40.2"===e){if(1===A)return new Uint8Array([0,200,0,128,35,128]);if(2===A)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===A)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===A)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===A)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===A)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===A)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===A)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===A)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}(),ke=n(453),Pe=function(){function e(e){var A;this.TAG="MP4Remuxer",this._fillSilentAfterSeek=!1,this._config=e,this._isLive=!!e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ke.Sc("audio"),this._videoSegmentInfoList=new ke.Sc("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!I.A.chrome||!(I.A.version&&I.A.version.major<50||I.A.version&&50===I.A.version.major&&((null===(A=I.A.version)||void 0===A?void 0:A.build)||0)<2661)),this._fillSilentAfterSeek=!(!I.A.msedge&&!I.A.msie),this._mp3UseMpegAudio=!I.A.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},e.prototype.bindDataSource=function(e){var A;return e.onDataAvailable=null===(A=this.remux)||void 0===A?void 0:A.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(e.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e},enumerable:!1,configurable:!0}),e.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},e.prototype.seek=function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},e.prototype.remux=function(e,A){if(!this._onMediaSegment)throw new u.j4("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,A),A&&this._remuxVideo(A),e&&this._remuxAudio(e)},e.prototype._onTrackMetadataReceived=function(e,A){var t=null,i="mp4",n=A.codec;if("audio"===e)this._audioMeta=A,"mp3"===A.codec&&this._mp3UseMpegAudio?(i="mpeg",n="",t=new Uint8Array):t=Fe.generateInitSegment(A);else{if("video"!==e)return;this._videoMeta=A,t=Fe.generateInitSegment(A)}if(!this._onInitSegment)throw new u.j4("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:t.buffer,codec:n,container:"".concat(e,"/").concat(i),mediaDuration:A.duration})},e.prototype._calculateDtsBase=function(e,A){var t,i;this._dtsBaseInited||((null===(t=null==e?void 0:e.samples)||void 0===t?void 0:t.length)&&(this._audioDtsBase=e.samples[0].dts),(null===(i=null==A?void 0:A.samples)||void 0===i?void 0:i.length)&&(this._videoDtsBase=A.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},e.prototype.getTimestampBase=function(){if(this._dtsBaseInited)return this._dtsBase},e.prototype.flushStashedSamples=function(){var e=this._videoStashedLastSample,A=this._audioStashedLastSample,t={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(t.samples.push(e),t.length=null==e?void 0:e.length);var i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=A&&(i.samples.push(A),i.length=null==A?void 0:A.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(t,!0),this._remuxAudio(i,!0)},e.prototype._remuxAudio=function(e,A){var t,i,n,a,r,o,s;if(null!=this._audioMeta){var g,l,c=e,C=c.samples,h=-1,u=this._audioMeta.refSampleDuration,B="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,f=this._dtsBaseInited&&void 0===this._audioNextDts,E=!1;if(C&&0!==C.length&&(1!==C.length||A)){var x=0,Q=null,p=0;B?(x=0,p=c.length):(x=8,p=8+c.length);var m=null;if(C.length>1&&(p-=(m=C.pop()).length),null!=this._audioStashedLastSample){var y=this._audioStashedLastSample;this._audioStashedLastSample=null,C.unshift(y),p+=y.length}null!=m&&(this._audioStashedLastSample=m);var _=C[0].dts-this._dtsBase;if(this._audioNextDts)g=_-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())g=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(E=!0);else{var S=this._audioSegmentInfoList.getLastSampleBefore(_);if(null!=S){var v=_-(S.originalDts+S.duration);v<=3&&(v=0),g=_-(S.dts+S.duration+v)}else g=0}if(E){var D=_-g,w=this._videoSegmentInfoList.getLastSegmentBefore(_);if(null!=w&&w.beginDts=3*(u||0)&&this._fillAudioTimestampGap&&!I.A.safari){N=!0;var Y,U=Math.floor(g/(u||0));d.A.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"originalDts: ".concat(T," ms, curRefDts: ").concat(G," ms, ")+"dtsCorrection: ".concat(Math.round(g)," ms, generate: ").concat(U," frames")),b=Math.floor(G),L=Math.floor(G+(u||0))-b,null==(Y=Re.getSilentFrame(null===(n=this._audioMeta)||void 0===n?void 0:n.originalCodec,this._audioMeta.channelCount))&&(d.A.w(this.TAG,"Unable to generate silent frame for "+"".concat(null===(a=this._audioMeta)||void 0===a?void 0:a.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Y=P),M=[];for(var J=0;J=1?null===(r=R[R.length-1])||void 0===r?void 0:r.duration:Math.floor(u||0),this._audioNextDts=b+L;-1===h&&(h=b),R.push({dts:b,pts:b,cts:0,unit:y.unit,size:null===(o=y.unit)||void 0===o?void 0:o.byteLength,duration:L,originalDts:T,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),N&&R.push.apply(R,M)}}if(0===R.length)return c.samples=[],void(c.length=0);for(B?Q=new Uint8Array(p):((Q=new Uint8Array(p))[0]=p>>>24&255,Q[1]=p>>>16&255,Q[2]=p>>>8&255,Q[3]=255&p,Q.set(Fe.types.mdat,4)),k=0;k1&&(I-=(C=s.pop()).length),null!=this._videoStashedLastSample){var h=this._videoStashedLastSample;this._videoStashedLastSample=null,s.unshift(h),I+=(null==h?void 0:h.length)||0}null!=C&&(this._videoStashedLastSample=C);var u=s[0].dts-this._dtsBase;if(this._videoNextDts)n=u-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())n=0;else{var B=this._videoSegmentInfoList.getLastSampleBefore(u);if(null!=B){var f=u-(B.originalDts+B.duration);f<=3&&(f=0),n=u-(B.dts+B.duration+f)}else n=0}for(var E=new ke.EZ,x=[],Q=0;Q=1?x[x.length-1].duration:Math.floor((null===(t=this._videoMeta)||void 0===t?void 0:t.refSampleDuration)||0),m){var D=new ke.$_(y,S,v,h.dts,!0);D.fileposition=h.fileposition,E.appendSyncPoint(D)}x.push({dts:y,pts:S,cts:_,units:h.units,size:h.length,isKeyframe:m,duration:v,originalDts:p,flags:{isLeading:0,dependsOn:m?2:1,isDependedOn:m?1:0,hasRedundancy:0,isNonSync:m?0:1}})}for((d=new Uint8Array(I))[0]=I>>>24&255,d[1]=I>>>16&255,d[2]=I>>>8&255,d[3]=255&I,d.set(Fe.types.mdat,4),Q=0;Q0)null===(t=this._demuxer)||void 0===t||t.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments?null===(i=this._mediaDataSource.segments[this._currentSegmentIndex])||void 0===i?void 0:i.timestampBase:0,s=(null===(n=this._demuxer)||void 0===n?void 0:n.parseChunks(e,A))||0;else{var g=null;(g=S.probe(e)).match&&(this._setupFLVDemuxerRemuxer(g),s=(null===(a=this._demuxer)||void 0===a?void 0:a.parseChunks(e,A))||0),g.match||(null==g?void 0:g.needMoreData)||(g=De.probe(e)).match&&(this._setupTSDemuxerRemuxer(g),s=(null===(r=this._demuxer)||void 0===r?void 0:r.parseChunks(e,A))||0),g.match||(null==g?void 0:g.needMoreData)||(g=null,d.A.e(this.TAG,"Non MPEG-TS/FLV, Unsupported media type!"),Promise.resolve().then((function(){o._internalAbort()})),this._emitter.emit(Ne.A.DEMUX_ERROR,Q.A.FORMAT_UNSUPPORTED,"Non MPEG-TS/FLV, Unsupported media type!"))}return s},e.prototype._setupFLVDemuxerRemuxer=function(e){var A;this._demuxer=new S(e,this._config),this._remuxer||(this._remuxer=new Pe(this._config));var t=this._mediaDataSource;void 0===t.duration||isNaN(t.duration)||(this._demuxer.overridedDuration=t.duration),"boolean"==typeof t.hasAudio&&(this._demuxer.overridedHasAudio=t.hasAudio),"boolean"==typeof t.hasVideo&&(this._demuxer.overridedHasVideo=t.hasVideo),t.segments&&this._demuxer&&this._remuxer&&(this._demuxer.timestampBase=null===(A=null==t?void 0:t.segments[this._currentSegmentIndex])||void 0===A?void 0:A.timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this))},e.prototype._setupTSDemuxerRemuxer=function(e){var A=this._demuxer=new De(e,this._config);this._remuxer||(this._remuxer=new Pe(this._config)),A.onError=this._onDemuxException.bind(this),A.onMediaInfo=this._onMediaInfo.bind(this),A.onMetaDataArrived=this._onMetaDataArrived.bind(this),A.onTimedID3Metadata=this._onTimedID3Metadata.bind(this),A.onSMPTE2038Metadata=this._onSMPTE2038Metadata.bind(this),A.onSCTE35Metadata=this._onSCTE35Metadata.bind(this),A.onPESPrivateDataDescriptor=this._onPESPrivateDataDescriptor.bind(this),A.onPESPrivateData=this._onPESPrivateData.bind(this),this._remuxer.bindDataSource(this._demuxer),this._demuxer.bindDataSource(this._ioctl),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this)},e.prototype._onMediaInfo=function(e){var A,t,i=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=(null===(t=null===(A=this._mediaDataSource)||void 0===A?void 0:A.segments)||void 0===t?void 0:t.length)||0,Object.setPrototypeOf(this._mediaInfo,C.A.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,C.A.prototype),this._mediaInfo.segments&&(this._mediaInfo.segments[this._currentSegmentIndex]=n),this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=i._pendingSeekTime;i._pendingSeekTime=null,i.seek(e)}))},e.prototype._onMetaDataArrived=function(e){this._emitter.emit(Ne.A.METADATA_ARRIVED,e)},e.prototype._onScriptDataArrived=function(e){this._emitter.emit(Ne.A.SCRIPTDATA_ARRIVED,e)},e.prototype._onTimedID3Metadata=function(e){var A,t=null===(A=this._remuxer)||void 0===A?void 0:A.getTimestampBase();void 0!==t&&(void 0!==e.pts&&(e.pts-=t),void 0!==e.dts&&(e.dts-=t),this._emitter.emit(Ne.A.TIMED_ID3_METADATA_ARRIVED,e))},e.prototype._onSMPTE2038Metadata=function(e){var A,t=null===(A=this._remuxer)||void 0===A?void 0:A.getTimestampBase();void 0!==t&&(void 0!==e.pts&&(e.pts-=t),void 0!==e.dts&&(e.dts-=t),void 0!==e.nearest_pts&&(e.nearest_pts-=t),this._emitter.emit(Ne.A.SMPTE2038_METADATA_ARRIVED,e))},e.prototype._onSCTE35Metadata=function(e){var A,t=null===(A=this._remuxer)||void 0===A?void 0:A.getTimestampBase();void 0!==t&&(void 0!==e.pts&&(e.pts-=t),void 0!==e.nearest_pts&&(e.nearest_pts-=t),this._emitter.emit(Ne.A.SCTE35_METADATA_ARRIVED,e))},e.prototype._onPESPrivateDataDescriptor=function(e){this._emitter.emit(Ne.A.PES_PRIVATE_DATA_DESCRIPTOR,e)},e.prototype._onPESPrivateData=function(e){var A,t=null===(A=this._remuxer)||void 0===A?void 0:A.getTimestampBase();void 0!==t&&(void 0!==e.pts&&(e.pts-=t),void 0!==e.nearest_pts&&(e.nearest_pts-=t),void 0!==e.dts&&(e.dts-=t),this._emitter.emit(Ne.A.PES_PRIVATE_DATA_ARRIVED,e))},e.prototype._onIOSeeked=function(){var e;null===(e=this._remuxer)||void 0===e||e.insertDiscontinuity()},e.prototype._onIOComplete=function(e){var A,t,i=e+1;i<((null===(t=null===(A=this._mediaDataSource)||void 0===A?void 0:A.segments)||void 0===t?void 0:t.length)||0)?(this._internalAbort(),this._remuxer&&this._remuxer.flushStashedSamples(),this._loadSegment(i)):(this._remuxer&&this._remuxer.flushStashedSamples(),this._emitter.emit(Ne.A.LOADING_COMPLETE),this._disableStatisticsReporter())},e.prototype._onIORedirect=function(e){var A,t=null===(A=this._ioctl)||void 0===A?void 0:A.extraData;this._mediaDataSource.segments&&(this._mediaDataSource.segments[t].redirectedURL=e)},e.prototype._onIORecoveredEarlyEof=function(){this._emitter.emit(Ne.A.RECOVERED_EARLY_EOF)},e.prototype._onIOException=function(e,A){d.A.e(this.TAG,"IOException: type = ".concat(e,", code = ").concat(A.code,", msg = ").concat(A.msg)),this._emitter.emit(Ne.A.IO_ERROR,e,A),this._disableStatisticsReporter()},e.prototype._onDemuxException=function(e,A){d.A.e(this.TAG,"DemuxException: type = ".concat(e,", info = ").concat(A)),this._emitter.emit(Ne.A.DEMUX_ERROR,e,A)},e.prototype._onRemuxerInitSegmentArrival=function(e,A){this._emitter.emit(Ne.A.INIT_SEGMENT,e,A)},e.prototype._onRemuxerMediaSegmentArrival=function(e,A){if(null==this._pendingSeekTime&&(this._emitter.emit(Ne.A.MEDIA_SEGMENT,e,A),null!=this._pendingResolveSeekPoint&&"video"===e)){var t=A.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,I.A.safari&&t.length>0&&t[0].originalDts===i&&(i=t[0].pts),this._emitter.emit(Ne.A.RECOMMEND_SEEKPOINT,i)}},e.prototype._enableStatisticsReporter=function(){null==this._statisticsReporter&&this._reportStatisticsInfo&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},e.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype._reportSegmentMediaInfo=function(e){var A,t,i,n,a=(null===(A=this._mediaInfo)||void 0===A?void 0:A.segments)?null===(t=this._mediaInfo)||void 0===t?void 0:t.segments[e]:{},r=Object.assign({},a);r.duration=null===(i=this._mediaInfo)||void 0===i?void 0:i.duration,r.segmentCount=null===(n=this._mediaInfo)||void 0===n?void 0:n.segmentCount,delete r.segments,delete r.keyframesIndex,this._emitter.emit(Ne.A.MEDIA_INFO,r)},e.prototype._reportStatisticsInfo=function(){var e,A,t,i,n,a,r={};r.url=null===(e=this._ioctl)||void 0===e?void 0:e.currentURL,r.hasRedirect=null===(A=this._ioctl)||void 0===A?void 0:A.hasRedirect,r.hasRedirect&&(r.redirectedURL=null===(t=this._ioctl)||void 0===t?void 0:t.currentRedirectedURL),r.speed=null===(i=this._ioctl)||void 0===i?void 0:i.currentSpeed,r.loaderType=null===(n=this._ioctl)||void 0===n?void 0:n.loaderType,r.currentSegmentIndex=this._currentSegmentIndex,r.totalSegmentCount=null===(a=this._mediaDataSource.segments)||void 0===a?void 0:a.length,this._emitter.emit(Ne.A.STATISTICS_INFO,r)},e}()},716:function(e,A,t){t.d(A,{A:function(){return i}});var i={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",TIMED_ID3_METADATA_ARRIVED:"timed_id3_metadata_arrived",SMPTE2038_METADATA_ARRIVED:"smpte2038_metadata_arrived",SCTE35_METADATA_ARRIVED:"scte35_metadata_arrived",PES_PRIVATE_DATA_DESCRIPTOR:"pes_private_data_descriptor",PES_PRIVATE_DATA_ARRIVED:"pes_private_data_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"}},291:function(e,A,t){var i=function(e,A){var t={msg:Q.A.INIT_SEGMENT,data:{type:e,data:A}};self.postMessage(t,[A.data])},n=function(e,A){var t={msg:Q.A.MEDIA_SEGMENT,data:{type:e,data:A}};self.postMessage(t,[A.data])},a=function(){var e={msg:Q.A.LOADING_COMPLETE};self.postMessage(e)},r=function(){var e={msg:Q.A.RECOVERED_EARLY_EOF};self.postMessage(e)},o=function(e){var A={msg:Q.A.MEDIA_INFO,data:e};self.postMessage(A)},s=function(e){var A={msg:Q.A.METADATA_ARRIVED,data:e};self.postMessage(A)},g=function(e){var A={msg:Q.A.SCRIPTDATA_ARRIVED,data:e};self.postMessage(A)},l=function(e){var A={msg:Q.A.TIMED_ID3_METADATA_ARRIVED,data:e};self.postMessage(A)},c=function(e){var A={msg:Q.A.SMPTE2038_METADATA_ARRIVED,data:e};self.postMessage(A)},d=function(e){var A={msg:Q.A.SCTE35_METADATA_ARRIVED,data:e};self.postMessage(A)},I=function(e){var A={msg:Q.A.PES_PRIVATE_DATA_DESCRIPTOR,data:e};self.postMessage(A)},C=function(e){var A={msg:Q.A.PES_PRIVATE_DATA_ARRIVED,data:e};self.postMessage(A)},h=function(e){var A={msg:Q.A.STATISTICS_INFO,data:e};self.postMessage(A)},u=function(e,A){self.postMessage({msg:Q.A.IO_ERROR,data:{type:e,info:A}})},B=function(e,A){self.postMessage({msg:Q.A.DEMUX_ERROR,data:{type:e,info:A}})},f=function(e){self.postMessage({msg:Q.A.RECOMMEND_SEEKPOINT,data:e})},E=t(641),x=t(976),Q=t(716),p=null,m=function(e,A){self.postMessage({msg:"logcat_callback",data:{type:e,logcat:A}})};self.addEventListener("message",(function(e){switch(e.data.cmd){case"init":(p=new x.A(e.data.param[0],e.data.param[1])).on(Q.A.IO_ERROR,u),p.on(Q.A.DEMUX_ERROR,B),p.on(Q.A.INIT_SEGMENT,i),p.on(Q.A.MEDIA_SEGMENT,n),p.on(Q.A.LOADING_COMPLETE,a),p.on(Q.A.RECOVERED_EARLY_EOF,r),p.on(Q.A.MEDIA_INFO,o),p.on(Q.A.METADATA_ARRIVED,s),p.on(Q.A.SCRIPTDATA_ARRIVED,g),p.on(Q.A.TIMED_ID3_METADATA_ARRIVED,l),p.on(Q.A.SMPTE2038_METADATA_ARRIVED,c),p.on(Q.A.SCTE35_METADATA_ARRIVED,d),p.on(Q.A.PES_PRIVATE_DATA_DESCRIPTOR,I),p.on(Q.A.PES_PRIVATE_DATA_ARRIVED,C),p.on(Q.A.STATISTICS_INFO,h),p.on(Q.A.RECOMMEND_SEEKPOINT,f);break;case"destroy":p&&(p.destroy(),p=null),self.postMessage({msg:"destroyed"});break;case"start":null==p||p.start();break;case"stop":null==p||p.stop();break;case"seek":null==p||p.seek(e.data.param);break;case"pause":null==p||p.pause();break;case"resume":null==p||p.resume();break;case"logging_config":var A=e.data.param;E.A.applyConfig(A),!0===A.enableCallback?E.A.addLogListener(m):E.A.removeLogListener(m)}}))},465:function(e,A,t){t.d(A,{A:function(){return i}});var i={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},133:function(e,A,n){var a=function(){return Object.assign({},I)},r=function(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")},o=function(e){return!isNaN(1*e)},s=function(e,A,t){var i={};i[t]=[];var a=A.toString(),s=a.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/)||a.match(/^\(\w+,\s*\w+,\s*(\w+)\)\s?\=\s?\>/);if(!s)return i;for(var g,l=s[1],c=new RegExp("(\\\\n|\\W)"+r(l)+m,"g");g=c.exec(a);)"dll-reference"!==g[3]&&i[t].push(g[3]);for(c=new RegExp("\\("+r(l)+'\\("(dll-reference\\s('+p+'))"\\)\\)'+m,"g");g=c.exec(a);)e[g[2]]||(i[t].push(g[1]),e[g[2]]=n(g[1]).m),i[g[2]]=i[g[2]]||[],i[g[2]].push(g[4]);for(var d=Object.keys(i),I=0;I0}),!1)},l=function(e,A,t,i){var n=e[i].map((function(e){return'"'+e+'": '+A[i][e].toString()})).join(","),a=Q.toString().split("ENTRY_MODULE");return a[0]+"{"+n+"}"+a[1]+'"'+t+'"'+a[2]};n.d(A,{default:function(){return O}});var c={h264:1,h265:2,h266:4,vp8:8,vp9:16,av1:32},d=n(302),I={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,liveBufferLatencyChasing:!1,liveBufferLatencyMaxLatency:1.5,liveBufferLatencyMinRemain:.5,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0,url:void 0,redirectedURL:void 0,cors:!1},C=function(){function e(){}return e.supportMSEH264Playback=function(){var e;return null===(e=window.MediaSource)||void 0===e?void 0:e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')},e.supportMSEH265Playback=function(){var e;return null===(e=window.MediaSource)||void 0===e?void 0:e.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"')},e.supportNetworkStreamIO=function(){var e=new d.A({},a()),A=e.loaderType;return e.destroy(),"fetch-stream-loader"===A||"xhr-moz-chunked-loader"===A},e.getNetworkLoaderTypeName=function(){var e=new d.A({},a()),A=e.loaderType;return e.destroy(),A},e.supportNativeMediaPlayback=function(A){void 0===e.videoElement&&(e.videoElement=window.document.createElement("video"));var t=e.videoElement.canPlayType(A);return"probably"===t||"maybe"===t},e.getFeatureList=function(){var A={msePlayback:!1,mseLivePlayback:!1,mseH265Playback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeMP4H265Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return A.msePlayback=e.supportMSEH264Playback(),A.networkStreamIO=e.supportNetworkStreamIO(),A.networkLoaderName=e.getNetworkLoaderTypeName()||"",A.mseLivePlayback=A.msePlayback&&A.networkStreamIO,A.mseH265Playback=e.supportMSEH265Playback(),A.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),A.nativeMP4H265Playback=e.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'),A.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),A.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),A},e}(),h=C,u=n(288),B=n(413),f=n(502),E=n(620),x={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",TIMED_ID3_METADATA_ARRIVED:"timed_id3_metadata_arrived",SMPTE2038_METADATA_ARRIVED:"smpte2038_metadata_arrived",SCTE35_METADATA_ARRIVED:"scte35_metadata_arrived",PES_PRIVATE_DATA_DESCRIPTOR:"pes_private_data_descriptor",PES_PRIVATE_DATA_ARRIVED:"pes_private_data_arrived",STATISTICS_INFO:"statistics_info",DESTROYING:"destroying"},Q=function(){var e=ENTRY_MODULE,A={};function t(i){if(A[i])return A[i].exports;var n=A[i]={exports:{}};return e[i](n,n.exports,t),n.exports}t.m=e,t.n=function(e){var A=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(A,{a:A}),A},t.d=function(e,A){for(var i in A)t.o(A,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:A[i]})},t.g=function(){if("[object Object]"===Object.prototype.toString.call(globalThis))return globalThis;try{return this||new Function("return this")()}catch(e){if("[object Object]"===Object.prototype.toString.call(window))return window}}(),t.o=function(e,A){return Object.prototype.hasOwnProperty.call(e,A)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=t(ENTRY_MODULE);return i.default||i};Q.toString();var p="[\\.|\\-|\\+|\\w|/|@]+",m="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+p+").*?\\)",y=n(641),_=n(976),S=n(716),v=n(825),D=function(){function e(e,A){if(this.TAG="Transmuxer",this._workerDestroying=!1,this._controller=null,this._emitter=new B.A,A.enableWorker&&"undefined"!=typeof Worker)try{this._worker=this._worker=function(e,A){A=A||{};var t={main:n.m},i=A.all?{main:Object.keys(t.main)}:function(e,A){for(var t={main:[A]},i={main:[]},n={main:{}};g(t);)for(var a=Object.keys(t),r=0;r0&&(n+=";codecs=".concat(i.codec));var a=!1;if(f.A.v(this.TAG,"Received Initialization Segment, mimeType: "+n),this._lastInitSegments[i.type]=i,n!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])f.A.v(this.TAG,"Notice: ".concat(i.type," mimeType changed, origin: ").concat(this._mimeTypes[i.type]||"",", target: ").concat(n));else{a=!0;try{var r=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(n);r.addEventListener("error",this.e.onSourceBufferError),r.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return f.A.e(this.TAG,e.message),void this._emitter.emit(b,{code:e.code,msg:e.message})}}this._mimeTypes[i.type]=n}A||this._pendingSegments[i.type].push(i),a||this._sourceBuffers[i.type]&&!(null===(t=this._sourceBuffers[i.type])||void 0===t?void 0:t.updating)&&this._doAppendSegments(),E.A.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())},e.prototype.appendMediaSegment=function(e){var A=e;this._pendingSegments[A.type].push(A),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var t=this._sourceBuffers[A.type];!t||t.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},e.prototype.seek=function(e){var A,t;for(var i in this._sourceBuffers)if(this._sourceBuffers[i]){var n=this._sourceBuffers[i];if("open"===(null===(A=this._mediaSource)||void 0===A?void 0:A.readyState))try{null==n||n.abort()}catch(e){f.A.e(this.TAG,e.message)}this._idrList.clear();var a=this._pendingSegments[i];if(a.splice(0,a.length),"closed"!==(null===(t=this._mediaSource)||void 0===t?void 0:t.readyState)){if(n){for(var r=0;r=1&&t-a.start(0)>=((null===(A=this._config)||void 0===A?void 0:A.autoCleanupMaxBackwardDuration)||0))return!0}}return!1},e.prototype._doCleanupSourceBuffer=function(){var e,A,t,i=null===(e=this._mediaElement)||void 0===e?void 0:e.currentTime;for(var n in this._sourceBuffers){var a=this._sourceBuffers[n];if(a){for(var r=a.buffered,o=!1,s=0;s=((null===(A=this._config)||void 0===A?void 0:A.autoCleanupMaxBackwardDuration)||0)){o=!0;var c=i-((null===(t=this._config)||void 0===t?void 0:t.autoCleanupMinBackwardDuration)||0);this._pendingRemoveRanges[n].push({start:g,end:c})}}else l0&&(isNaN(a)||r>a)&&(f.A.v(this.TAG,"Update MediaSource duration from ".concat(a," to ").concat(r)),this._mediaSource.duration=r),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},e.prototype._doRemoveRanges=function(){var e;for(var A in this._pendingRemoveRanges)if(this._sourceBuffers[A]&&!(null===(e=this._sourceBuffers[A])||void 0===e?void 0:e.updating))for(var t=this._sourceBuffers[A],i=this._pendingRemoveRanges[A];i.length&&!(null==t?void 0:t.updating);){var n=i.shift();null==t||t.remove(n.start,n.end)}},e.prototype._doAppendSegments=function(){var e,A,t,i=this._pendingSegments;for(var n in i)if(this._sourceBuffers[n]&&!(null===(e=this._sourceBuffers[n])||void 0===e?void 0:e.updating)&&i[n].length>0){var a=i[n].shift();if(null==a?void 0:a.timestampOffset){var r=(null===(A=this._sourceBuffers[n])||void 0===A?void 0:A.timestampOffset)||0,o=a.timestampOffset/1e3;Math.abs(r-o)>.1&&(f.A.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(r," to ").concat(o)),this._sourceBuffers[n]&&(this._sourceBuffers[n].timestampOffset=o)),delete a.timestampOffset}if(!a.data||0===a.data.byteLength)continue;try{null===(t=this._sourceBuffers[n])||void 0===t||t.appendBuffer(a.data),this._isBufferFull=!1,"video"===n&&a.hasOwnProperty("info")&&this._idrList.appendArray(a.info.syncPoints)}catch(e){this._pendingSegments[n].unshift(a),22===e.code?(this._isBufferFull||this._emitter.emit(k),this._isBufferFull=!0):(f.A.e(this.TAG,e.message),this._emitter.emit(b,{code:e.code,msg:e.message}))}}},e.prototype._onSourceOpen=function(){var e;if(f.A.v(this.TAG,"MediaSource onSourceOpen"),null===(e=this._mediaSource)||void 0===e||e.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var A=this._pendingSourceBufferInit;A.length;){var t=A.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(F)},e.prototype._onSourceEnded=function(){f.A.v(this.TAG,"MediaSource onSourceEnded")},e.prototype._onSourceClose=function(){f.A.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},e.prototype._hasPendingSegments=function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0},e.prototype._hasPendingRemoveRanges=function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0},e.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(R)},e.prototype._onSourceBufferError=function(e){f.A.e(this.TAG,"SourceBuffer Error: ".concat(e))},e}(),M=N,L=n(465),G={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Y={NETWORK_EXCEPTION:u.Xv.EXCEPTION,NETWORK_STATUS_CODE_INVALID:u.Xv.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:u.Xv.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:u.Xv.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:L.A.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:L.A.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:L.A.CODEC_UNSUPPORTED},U=function(){function e(e,A){var t,n,r;this.TAG="MSEPlayer",this._type="MSEPlayer",this._emitter=new B.A,this._config=a(),"object"==(void 0===A?"undefined":i(A))&&Object.assign(this._config,A);var o=e.type.toLowerCase();if("mse"!==o&&"mpegts"!==o&&"m2ts"!==o&&"flv"!==o)throw new T.Qn("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var s=E.A.chrome&&(E.A.version&&(null===(t=E.A.version)||void 0===t?void 0:t.major)<50||E.A.version&&50===(null===(n=null===E.A||void 0===E.A?void 0:E.A.version)||void 0===n?void 0:n.major)&&((null===(r=null===E.A||void 0===E.A?void 0:E.A.version)||void 0===r?void 0:r.build)||-1)<2661);this._alwaysSeekKeyframe=!!(s||E.A.msedge||E.A.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return e.prototype.destroy=function(){this._emitter.emit(x.DESTROYING),null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,A){var t=this;e===x.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){t._emitter.emit(x.MEDIA_INFO,t.mediaInfo)})):e===x.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){t._emitter.emit(x.STATISTICS_INFO,t.statisticsInfo)})),this._emitter.addListener(e,A)},e.prototype.off=function(e,A){this._emitter.removeListener(e,A)},e.prototype.attachMediaElement=function(e){var A,t,i,n,a,r=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new M(this._config),null===(A=this._msectl)||void 0===A||A.on(R,this._onmseUpdateEnd.bind(this)),null===(t=this._msectl)||void 0===t||t.on(k,this._onmseBufferFull.bind(this)),null===(i=this._msectl)||void 0===i||i.on(F,(function(){r._mseSourceOpened=!0,r._hasPendingLoad&&(r._hasPendingLoad=!1,r.load())})),null===(n=this._msectl)||void 0===n||n.on(b,(function(e){r._emitter.emit(x.ERROR,G.MEDIA_ERROR,Y.MEDIA_MSE_ERROR,e)})),null===(a=this._msectl)||void 0===a||a.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}},e.prototype.detachMediaElement=function(){var e;this._mediaElement&&(null===(e=this._msectl)||void 0===e||e.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)},e.prototype.load=function(){var e=this;if(!this._mediaElement)throw new T.j4("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new T.j4("MSEPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(!this._config.deferLoadAfterSourceOpen||this._mseSourceOpened?(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new w(this._mediaDataSource,this._config),this._transmuxer.on(S.A.INIT_SEGMENT,(function(A,t){var i;null===(i=e._msectl)||void 0===i||i.appendInitSegment(t)})),this._transmuxer.on(S.A.MEDIA_SEGMENT,(function(A,t){var i,n,a;if(null===(i=e._msectl)||void 0===i||i.appendMediaSegment(t),e._config.lazyLoad&&!e._config.isLive){var r=null===(n=e._mediaElement)||void 0===n?void 0:n.currentTime;t.info.endDts>=1e3*(r+((null===(a=e._config)||void 0===a?void 0:a.lazyLoadMaxDuration)||0))&&null==e._progressChecker&&(f.A.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(S.A.LOADING_COMPLETE,(function(){var A;null===(A=e._msectl)||void 0===A||A.endOfStream(),e._emitter.emit(x.LOADING_COMPLETE)})),this._transmuxer.on(S.A.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(x.RECOVERED_EARLY_EOF)})),this._transmuxer.on(S.A.IO_ERROR,(function(A,t){e._emitter.emit(x.ERROR,G.NETWORK_ERROR,A,t)})),this._transmuxer.on(S.A.DEMUX_ERROR,(function(A,t){e._emitter.emit(x.ERROR,G.MEDIA_ERROR,A,{code:-1,msg:t})})),this._transmuxer.on(S.A.MEDIA_INFO,(function(A){e._mediaInfo=A,e._emitter.emit(x.MEDIA_INFO,Object.assign({},A))})),this._transmuxer.on(S.A.METADATA_ARRIVED,(function(A){e._emitter.emit(x.METADATA_ARRIVED,A)})),this._transmuxer.on(S.A.SCRIPTDATA_ARRIVED,(function(A){e._emitter.emit(x.SCRIPTDATA_ARRIVED,A)})),this._transmuxer.on(S.A.TIMED_ID3_METADATA_ARRIVED,(function(A){e._emitter.emit(x.TIMED_ID3_METADATA_ARRIVED,A)})),this._transmuxer.on(S.A.SMPTE2038_METADATA_ARRIVED,(function(A){e._emitter.emit(x.SMPTE2038_METADATA_ARRIVED,A)})),this._transmuxer.on(S.A.SCTE35_METADATA_ARRIVED,(function(A){e._emitter.emit(x.SCTE35_METADATA_ARRIVED,A)})),this._transmuxer.on(S.A.PES_PRIVATE_DATA_DESCRIPTOR,(function(A){e._emitter.emit(x.PES_PRIVATE_DATA_DESCRIPTOR,A)})),this._transmuxer.on(S.A.PES_PRIVATE_DATA_ARRIVED,(function(A){e._emitter.emit(x.PES_PRIVATE_DATA_ARRIVED,A)})),this._transmuxer.on(S.A.STATISTICS_INFO,(function(A){e._statisticsInfo=e._fillStatisticsInfo(A),e._emitter.emit(x.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(S.A.RECOMMEND_SEEKPOINT,(function(A){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=A/1e3)})),this._transmuxer.open()):this._hasPendingLoad=!0)},e.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){var e;return function(e,A,i,n){return new(i||(i=Promise))((function(A,a){function r(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?A(e.value):(n=e.value,t(n,i)?n:new i((function(e){e(n)}))).then(r,o)}s((n=n.apply(e,[])).next())}))}(this,0,void 0,(function(){return function(e,A){var t,i,n,a,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((n=(n=r.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]0&&!(null===(t=this._mediaElement)||void 0===t?void 0:t.paused)){var r=n.end(n.length-1);if(r>((null===(i=this._config)||void 0===i?void 0:i.liveBufferLatencyMaxLatency)||0)&&r-a>(this._config.liveBufferLatencyMaxLatency||0)){var o=r-(this._config.liveBufferLatencyMinRemain||0);this.currentTime=o}}if(this._config.lazyLoad&&!this._config.isLive){for(var s=0,g=0;g=a+(this._config.lazyLoadMaxDuration||0)&&null==this._progressChecker&&(f.A.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},e.prototype._onmseBufferFull=function(){f.A.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()},e.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},e.prototype._checkProgressAndResume=function(){for(var e,A,t,i=(null===(e=this._mediaElement)||void 0===e?void 0:e.currentTime)||0,n=null===(A=this._mediaElement)||void 0===A?void 0:A.buffered,a=!1,r=0;r=o&&i=s-(this._config.lazyLoadRecoverDuration||0)&&(a=!0);break}}a&&(window.clearInterval(this._progressChecker),this._progressChecker=null,a&&(f.A.v(this.TAG,"Continue loading from paused position"),null===(t=this._transmuxer)||void 0===t||t.resume()))},e.prototype._isTimepointBuffered=function(e){for(var A,t=null===(A=this._mediaElement)||void 0===A?void 0:A.buffered,i=0;i=n&&e0){var g=(null===(t=this._mediaElement)||void 0===t?void 0:t.buffered).start(0);(g<1&&e0&&A.currentTime0){var r=a.start(0);if(r<1&&n0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},e.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.play=function(){var e;return function(e,A,i,n){return new(i||(i=Promise))((function(A,a){function r(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var n;e.done?A(e.value):(n=e.value,t(n,i)?n:new i((function(e){e(n)}))).then(r,o)}s((n=n.apply(e,[])).next())}))}(this,0,void 0,(function(){return function(e,A){var t,i,n,a,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(r=0)),r;)try{if(t=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((n=(n=r.trys).length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"averageKBps",{get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024},enumerable:!1,configurable:!0}),e}(),s=n(288),g=n(620),l=n(713),c=(a=function(e,A){return a=Object.setPrototypeOf||t({__proto__:[]},Array)&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},a(e,A)},function(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}a(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}),d=function(e){function A(A,t){var i=e.call(this,"fetch-stream-loader")||this;return i.TAG="FetchStreamLoader",i._seekHandler=A,i._config=t,i._needStash=!0,i._requestAbort=!1,i._abortController=null,i._contentLength=null,i._receivedLength=0,i}return c(A,e),A.isSupported=function(){var e;try{var A=g.A.msedge&&((null===(e=null===g.A||void 0===g.A?void 0:g.A.version)||void 0===e?void 0:e.minor)||0)>=15048&&!g.A.webkit,t=!g.A.msedge||A;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}},A.prototype.destroy=function(){this.isWorking()&&this.abort(),e.prototype.destroy.call(this)},A.prototype.open=function(e,A){var t=this;this._dataSource=e,this._range=A;var n=e.url;this._config.reuseRedirectedURL&&void 0!==e.redirectedURL&&(n=e.redirectedURL);var a=this._seekHandler.getConfig(n,A),r=new self.Headers;if("object"==i(a.headers)){var o=a.headers;for(var g in o)o.hasOwnProperty(g)&&r.append(g,o[g])}var c={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"==i(this._config.headers))for(var g in this._config.headers)r.append(g,this._config.headers[g]);e.cors||(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),(null==e?void 0:e.referrerPolicy)&&(c.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,this._abortController&&(c.signal=this._abortController.signal)),this._status=s.eO.kConnecting,self.fetch(a.url,c).then((function(e){var A,i;if(t._requestAbort)return t._status=s.eO.kIdle,void(null===(A=e.body)||void 0===A||A.cancel());if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==a.url&&t._onURLRedirect){var n=t._seekHandler.removeURLParameters(e.url);t._onURLRedirect(n)}var r=e.headers.get("Content-Length");return null!=r&&(t._contentLength=parseInt(r),0!==t._contentLength&&t._onContentLengthKnown&&t._onContentLengthKnown(t._contentLength)),t._pump.call(t,null===(i=e.body)||void 0===i?void 0:i.getReader())}if(t._status=s.eO.kError,!t._onError)throw new l.Al("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);t._onError(s.Xv.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){var A;if(!(null===(A=t._abortController)||void 0===A?void 0:A.signal.aborted)){if(t._status=s.eO.kError,!t._onError)throw e;t._onError(s.Xv.EXCEPTION,{code:-1,msg:e.message})}}))},A.prototype.abort=function(){var e;if(this._requestAbort=!0,(this._status!==s.eO.kBuffering||!g.A.chrome)&&this._abortController)try{null===(e=this._abortController)||void 0===e||e.abort()}catch(e){}},A.prototype._pump=function(e){var A=this;return e.read().then((function(t){var i,n,a,r;if(t.done)if(null!==A._contentLength&&A._receivedLength299)){if(this._status=s.eO.kError,!this._onError)throw new l.Al("MozChunkedLoader: Http code invalid, "+A.status+" "+A.statusText);this._onError(s.Xv.HTTP_STATUS_CODE_INVALID,{code:A.status,msg:A.statusText})}else this._status=s.eO.kBuffering}},A.prototype._onProgress=function(e){var A;if(this._status!==s.eO.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,i=((null===(A=this._range)||void 0===A?void 0:A.from)||0)+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}},A.prototype._onLoadEnd=function(e){this._requestAbort?this._requestAbort=!1:this._status!==s.eO.kError&&(this._status=s.eO.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))},A.prototype._onXhrError=function(e){this._status=s.eO.kError;var A=0,t=null;if(this._contentLength&&e.loaded=this._contentLength&&(n=((null===(A=this._range)||void 0===A?void 0:A.from)||0)+this._contentLength-1),this._currentRequestRange={from:i,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)},A.prototype._internalOpen=function(e,A){this._lastTimeLoaded=0;var t=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?t=this._currentRedirectedURL:null!=e.redirectedURL&&(t=e.redirectedURL));var n=this._seekHandler.getConfig(t,A);this._currentRequestURL=n.url;var a=this._xhr=new XMLHttpRequest;if(a.open("GET",n.url,!0),a.responseType="arraybuffer",a.onreadystatechange=this._onReadyStateChange.bind(this),a.onprogress=this._onProgress.bind(this),a.onload=this._onLoad.bind(this),a.onerror=this._onXhrError.bind(this),e.withCredentials&&(a.withCredentials=!0),"object"==i(n.headers)){var r=n.headers;for(var o in r)r.hasOwnProperty(o)&&a.setRequestHeader(o,r[o])}if("object"==i(this._config.headers))for(var o in r=this._config.headers)r.hasOwnProperty(o)&&a.setRequestHeader(o,r[o]);a.send()},A.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=s.eO.kComplete},A.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},A.prototype._onReadyStateChange=function(e){var A=e.target;if(2===A.readyState){if(null!=A.responseURL){var t=this._seekHandler.removeURLParameters(A.responseURL);A.responseURL!==this._currentRequestURL&&t!==this._currentRedirectedURL&&(this._currentRedirectedURL=t,this._onURLRedirect&&this._onURLRedirect(t))}if(A.status>=200&&A.status<=299){if(this._waitForTotalLength)return;this._status=s.eO.kBuffering}else{if(this._status=s.eO.kError,!this._onError)throw new l.Al("RangeLoader: Http code invalid, "+A.status+" "+A.statusText);this._onError(s.Xv.HTTP_STATUS_CODE_INVALID,{code:A.status,msg:A.statusText})}}},A.prototype._onProgress=function(e){if(this._status!==s.eO.kError){if(null===this._contentLength){var A=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,A=!0;var t=e.total;this._internalAbort(),null!=t&&0!==t&&(this._totalLength=t)}if(-1===this._range.to?this._contentLength=(this._totalLength||0)-this._range.from:this._contentLength=this._range.to-this._range.from+1,A)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var i=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(i)}},A.prototype._normalizeSpeed=function(e){var A=this._chunkSizeKBList,t=A.length-1,i=0,n=0,a=t;if(e=A[i]&&e=3&&(A=this._speedSampler.currentKBps)),0!==A){var t=this._normalizeSpeed(A);this._currentSpeedNormalized!==t&&(this._currentSpeedNormalized=t,this._currentChunkSizeKB=t)}var i=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;var a=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength0)for(var a=A.split("&"),r=0;r0;o[0]!==this._startName&&o[0]!==this._endName&&(s&&(n+="&"),n+=a[r])}return 0===n.length?t:t+"?"+n},e}(),Q=function(){function e(e,A,t){this.TAG="IOController",this._config=A,this._extraData=t,this._stashInitialSize=65536,void 0!==A.stashInitialSize&&A.stashInitialSize>0&&(this._stashInitialSize=A.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,A.enableStashBuffer||(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url||""),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new o,this._speedNormalizeList=[32,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return e.prototype.destroy=function(){var e,A,t;(null===(e=this._loader)||void 0===e?void 0:e.isWorking())&&(null===(A=this._loader)||void 0===A||A.abort()),null===(t=this._loader)||void 0===t||t.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},e.prototype.isWorking=function(){var e;return(null===(e=this._loader)||void 0===e?void 0:e.isWorking())&&!this._paused},e.prototype.isPaused=function(){return this._paused},Object.defineProperty(e.prototype,"status",{get:function(){var e;return null===(e=this._loader)||void 0===e?void 0:e.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extraData",{get:function(){return this._extraData},set:function(e){this._extraData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(e){this._onSeeked=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(e){this._onRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentURL",{get:function(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasRedirect",{get:function(){var e;return null!=this._redirectedURL||void 0!==(null===(e=this._dataSource)||void 0===e?void 0:e.redirectedURL)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentRedirectedURL",{get:function(){var e;return this._redirectedURL||(null===(e=this._dataSource)||void 0===e?void 0:e.redirectedURL)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSpeed",{get:function(){var e,A;return this._loaderClass===u?null===(e=this._loader)||void 0===e?void 0:e.currentSpeed:null===(A=this._speedSampler)||void 0===A?void 0:A.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderType",{get:function(){var e;return null===(e=this._loader)||void 0===e?void 0:e.type},enumerable:!1,configurable:!0}),e.prototype._selectSeekHandler=function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new E(!!this._config.rangeLoadZeroStart);else if("param"===e.seekType){var A=e.seekParamStart||"bstart",t=e.seekParamEnd||"bend";this._seekHandler=new x(A,t)}else{if("custom"!==e.seekType)throw new l.Qn("Invalid seekType in config: ".concat((null==e?void 0:e.seekType)||""));if("function"!=typeof e.customSeekHandler)throw new l.Qn("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}},e.prototype._selectLoader=function(){var e;if(null!=this._config.customLoader)this._loaderClass=(null===(e=this._config)||void 0===e?void 0:e.customLoader)||null;else if(this._isWebSocketURL)this._loaderClass=f;else if(d.isSupported())this._loaderClass=d;else if(C.isSupported())this._loaderClass=C;else{if(!u.isSupported())throw new l.Al("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=u}},e.prototype._createLoader=function(){var e;this._loaderClass&&(this._loader=new this._loaderClass(this._seekHandler,this._config),(null===(e=this._loader)||void 0===e?void 0:e.needStashBuffer)||(this._enableStash=!1),this._loader&&(this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)))},e.prototype.open=function(e){var A,t;this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),null===(A=this._speedSampler)||void 0===A||A.reset(),e||(this._fullRequestFlag=!0),null===(t=this._loader)||void 0===t||t.open(this._dataSource,Object.assign({},this._currentRange))},e.prototype.abort=function(){var e;null===(e=this._loader)||void 0===e||e.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},e.prototype.pause=function(){var e,A;this.isWorking()&&(null===(e=this._loader)||void 0===e||e.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange&&(this._currentRange.to=this._stashByteStart-1)):this._resumeFrom=((null===(A=this._currentRange)||void 0===A?void 0:A.to)||0)+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)},e.prototype._internalSeek=function(e,A){var t,i,n,a;(null===(t=this._loader)||void 0===t?void 0:t.isWorking())&&(null===(i=this._loader)||void 0===i||i.abort()),this._flushStashBuffer(A),null===(n=this._loader)||void 0===n||n.destroy(),this._loader=null;var r={from:e,to:-1};this._currentRange={from:r.from,to:-1},null===(a=this._speedSampler)||void 0===a||a.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,r),this._onSeeked&&this._onSeeked()},e.prototype.updateUrl=function(e){if(!e||"string"!=typeof e||0===e.length)throw new l.Qn("Url must be a non-empty string!");this._dataSource.url=e},e.prototype._expandBuffer=function(e){for(var A=this._stashSize;A+10485760){var i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(t,0,A).set(i,0)}this._stashBuffer=t,this._bufferSize=A}},e.prototype._normalizeSpeed=function(e){var A=this._speedNormalizeList,t=A.length-1,i=0,n=0,a=t;if(e=A[i]&&e=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(A=8192);var t=1024*A+1048576;this._bufferSize0){var o=this._stashBuffer.slice(0,this._stashUsed);(c=this._dispatchChunks(o,this._stashByteStart))0&&(d=new Uint8Array(o,c),g.set(d,0),this._stashUsed=d.byteLength,this._stashByteStart+=c):(this._stashUsed=0,this._stashByteStart+=c),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),g=new Uint8Array(this._stashBuffer,0,this._bufferSize)),g.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else(c=this._dispatchChunks(e,A))this._bufferSize&&(this._expandBuffer(s),g=new Uint8Array(this._stashBuffer,0,this._bufferSize)),g.set(new Uint8Array(e,c),0),this._stashUsed+=s,this._stashByteStart=A+c);else if(0===this._stashUsed){var s;(c=this._dispatchChunks(e,A))this._bufferSize&&this._expandBuffer(s),(g=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e,c),0),this._stashUsed+=s,this._stashByteStart=A+c)}else{var g,c;if(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(g=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,(c=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))0){var d=new Uint8Array(this._stashBuffer,c);g.set(d,0)}this._stashUsed-=c,this._stashByteStart+=c}}},e.prototype._flushStashBuffer=function(e){if(this._stashUsed>0){var A=this._stashBuffer.slice(0,this._stashUsed),t=this._dispatchChunks(A,this._stashByteStart),i=A.byteLength-t;if(t0){var n=new Uint8Array(this._stashBuffer,0,this._bufferSize),a=new Uint8Array(A,t);n.set(a,0),this._stashUsed=a.byteLength,this._stashByteStart+=t}return 0}r.A.w(this.TAG,"".concat(i," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,i}return 0},e.prototype._onLoaderComplete=function(e,A){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},e.prototype._onLoaderError=function(e,A){var t;switch(r.A.e(this.TAG,"Loader error, code = ".concat(A.code,", msg = ").concat(A.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=s.Xv.UNRECOVERABLE_EARLY_EOF),e){case s.Xv.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var i=((null===(t=this._currentRange)||void 0===t?void 0:t.to)||0)+1;return void(i1&&(a.version.minor=parseInt(r[1],10)),r.length>2&&(a.version.build=parseInt(r[2],10))}if(n.platform&&(a[n.platform]=!0),(a.chrome||a.opr||a.safari)&&(a.webkit=!0),a.rv||a.iemobile){a.rv&&delete a.rv;var o="msie";n.browser=o,a[o]=!0}if(a.edge){delete a.edge;var s="msedge";n.browser=s,a[s]=!0}if(a.opr){var g="opera";n.browser=g,a[g]=!0}if(a.safari&&a.android){var l="android";n.browser=l,a[l]=!0}for(var c in a.name=n.browser,a.platform=n.platform,i)Object.prototype.hasOwnProperty.call(i,c)&&delete i[c];Object.assign(i,a)}();var n=i},713:function(e,A,i){i.d(A,{Al:function(){return r},Qn:function(){return s},Xu:function(){return g},j4:function(){return o}});var n,a=(n=function(e,A){return n=Object.setPrototypeOf||t({__proto__:[]},Array)&&function(e,A){e.__proto__=A}||function(e,A){for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[t]=A[t])},n(e,A)},function(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}n(e,A),e.prototype=null===A?Object.create(A):(t.prototype=A.prototype,new t)}),r=function(){function e(e){this.name="RuntimeException",this._message=e}return Object.defineProperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.name+": "+this.message},e}(),o=function(e){function A(A){var t=e.call(this,A)||this;return t.name="IllegalStateException",t}return a(A,e),A}(r),s=function(e){function A(A){var t=e.call(this,A)||this;return t.name="InvalidArgumentException",t}return a(A,e),A}(r),g=function(e){function A(A){var t=e.call(this,A)||this;return t.name="NotImplementedException",t}return a(A,e),A}(r)},502:function(e,A,t){t.d(A,{A:function(){return n}});var i=t(413),n=function(){function e(){}return e.e=function(A,t){var i;A&&!e.FORCE_GLOBAL_TAG||(A=e.GLOBAL_TAG);var n="[".concat(A,"] > ").concat(t);e.ENABLE_CALLBACK&&(null===(i=e.emitter)||void 0===i||i.emit("log","error",n)),e.ENABLE_ERROR&&(console.error||console.warn)},e.i=function(A,t){A&&!e.FORCE_GLOBAL_TAG||(A=e.GLOBAL_TAG);var i="[".concat(A,"] > ").concat(t);e.ENABLE_CALLBACK&&e.emitter.emit("log","info",i),e.ENABLE_INFO&&console.info},e.w=function(A,t){A&&!e.FORCE_GLOBAL_TAG||(A=e.GLOBAL_TAG);var i="[".concat(A,"] > ").concat(t);e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",i),e.ENABLE_WARN&&console.warn},e.d=function(A,t){var i;A&&!e.FORCE_GLOBAL_TAG||(A=e.GLOBAL_TAG);var n="[".concat(A,"] > ").concat(t);e.ENABLE_CALLBACK&&(null===(i=e.emitter)||void 0===i||i.emit("log","debug",n)),e.ENABLE_DEBUG&&console.debug},e.v=function(A,t){var i;A&&!e.FORCE_GLOBAL_TAG||(A=e.GLOBAL_TAG);var n="[".concat(A,"] > ").concat(t);e.ENABLE_CALLBACK&&(null===(i=e.emitter)||void 0===i||i.emit("log","verbose",n)),e.ENABLE_VERBOSE},e.FORCE_GLOBAL_TAG=!1,e.GLOBAL_TAG="ezuikit-flv",e.ENABLE_CALLBACK=!1,e.emitter=new i.A,e.ENABLE_ERROR=!0,e.ENABLE_INFO=!0,e.ENABLE_WARN=!0,e.ENABLE_DEBUG=!0,e.ENABLE_VERBOSE=!0,e}()},641:function(e,A,t){t.d(A,{A:function(){return a}});var i=t(413),n=t(502),a=function(){function e(){}return Object.defineProperty(e,"forceGlobalTag",{get:function(){return n.A.FORCE_GLOBAL_TAG},set:function(A){n.A.FORCE_GLOBAL_TAG=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"globalTag",{get:function(){return n.A.GLOBAL_TAG},set:function(A){n.A.GLOBAL_TAG=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableAll",{get:function(){return n.A.ENABLE_VERBOSE&&n.A.ENABLE_DEBUG&&n.A.ENABLE_INFO&&n.A.ENABLE_WARN&&n.A.ENABLE_ERROR},set:function(A){n.A.ENABLE_VERBOSE=A,n.A.ENABLE_DEBUG=A,n.A.ENABLE_INFO=A,n.A.ENABLE_WARN=A,n.A.ENABLE_ERROR=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableDebug",{get:function(){return n.A.ENABLE_DEBUG},set:function(A){n.A.ENABLE_DEBUG=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableVerbose",{get:function(){return n.A.ENABLE_VERBOSE},set:function(A){n.A.ENABLE_VERBOSE=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableInfo",{get:function(){return n.A.ENABLE_INFO},set:function(A){n.A.ENABLE_INFO=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableWarn",{get:function(){return n.A.ENABLE_WARN},set:function(A){n.A.ENABLE_WARN=A,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableError",{get:function(){return n.A.ENABLE_ERROR},set:function(A){n.A.ENABLE_ERROR=A,e._notifyChange()},enumerable:!1,configurable:!0}),e.getConfig=function(){return{globalTag:n.A.GLOBAL_TAG,forceGlobalTag:n.A.FORCE_GLOBAL_TAG,enableVerbose:n.A.ENABLE_VERBOSE,enableDebug:n.A.ENABLE_DEBUG,enableInfo:n.A.ENABLE_INFO,enableWarn:n.A.ENABLE_WARN,enableError:n.A.ENABLE_ERROR,enableCallback:n.A.ENABLE_CALLBACK}},e.applyConfig=function(e){n.A.GLOBAL_TAG=e.globalTag,n.A.FORCE_GLOBAL_TAG=e.forceGlobalTag,n.A.ENABLE_VERBOSE=e.enableVerbose,n.A.ENABLE_DEBUG=e.enableDebug,n.A.ENABLE_INFO=e.enableInfo,n.A.ENABLE_WARN=e.enableWarn,n.A.ENABLE_ERROR=e.enableError,n.A.ENABLE_CALLBACK=!!e.enableCallback},e._notifyChange=function(){var A=e.emitter;if(A.listenerCount("change")>0){var t=e.getConfig();A.emit("change",t)}},e.registerListener=function(A){e.emitter.addListener("change",A)},e.removeListener=function(A){e.emitter.removeListener("change",A)},e.addLogListener=function(A){n.A.emitter.addListener("log",A),n.A.emitter.listenerCount("log")>0&&(n.A.ENABLE_CALLBACK=!0,e._notifyChange())},e.removeLogListener=function(A){n.A.emitter.removeListener("log",A),0===n.A.emitter.listenerCount("log")&&(n.A.ENABLE_CALLBACK=!1,e._notifyChange())},e.emitter=new i.A,e}()},413:function(e,A,t){t.d(A,{A:function(){return i}});var i=t(343)}},A={};function n(t){var i=A[t];if(void 0!==i)return i.exports;var a=A[t]={exports:{}};return e[t](a,a.exports,n),a.exports}return n.m=e,n.d=function(e,A){for(var t in A)n.o(A,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:A[t]})},n.o=function(e,A){return Object.prototype.hasOwnProperty.call(e,A)},n(446)}()}))}(B,B.exports)),B.exports),E=h(f);window.flvjs=E;var x,Q=function(){function e(e,A){window.flvjs.isSupported()&&this.initFLV(e,A)}var A=e.prototype;return A.toString=function(){return"Flv "+this.coreX+"-"+this.coreY},A.initFLV=function(e,A){var t=l(A);t.deviceSerial,t.channelNo,t.hd,t.type;var i=document.getElementById(e);i.getAttribute("controls")||i.setAttribute("controls",!0);var n=window.flvjs.createPlayer({type:"flv",url:A,isLive:!0},{enableStashBuffer:!0,stashInitialSize:128,enableWorker:!0});n.attachMediaElement(i),n.load(),n.play(),this.flvUrl=A,this.flv=n,this.video=i,this.video.addEventListener("oncanplaythrough",(function(){}),!1),this.video.addEventListener("onerror",(function(){}),!1)},A.play=function(){this.video.play()},A.stop=function(){this.video.pause(),this.flv.unload()},A.destroy=function(){void 0!==this.flv&&null!==this.flv&&(this.flv.pause(),this.flv.unload(),this.flv.detachMediaElement(),this.flv.destroy(),this.flv=null)},e}();x||(x=1,function(){function e(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,i=Array(A);t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,a=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw a}}}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,A,t){var i=I(e,A);if(i){var n=Object.getOwnPropertyDescriptor(i,A);return n.get?n.get.call(arguments.length<3?e:t):n.value}},o.apply(null,arguments)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function g(e,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(A&&A.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),A&&d(e,A)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function d(e,A){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,A){return e.__proto__=A,e},d(e,A)}function I(e,A){for(;!{}.hasOwnProperty.call(e,A)&&null!==(e=s(e)););return e}function h(e,A,t,i){var n=o(s(e.prototype),A,t);return"function"==typeof n?function(e){return n.apply(t,e)}:n}function u(e,A){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,A);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function B(e){var A=u(e,"string");return"symbol"==typeof A?A:A+""}function f(A,t){if(A){if("string"==typeof A)return e(A,t);var i={}.toString.call(A).slice(8,-1);return"Object"===i&&A.constructor&&(i=A.constructor.name),"Map"===i||"Set"===i?Array.from(A):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(A,t):void 0}}function E(e){var A;try{A=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(A=document.createEvent("Event")).initEvent("abort",!1,!1):(A=document.createEventObject()).type="abort":A={type:"abort",bubbles:!1,cancelable:!1}}return A.reason=e,A}function x(e){if(void 0===e)if("undefined"==typeof document)(e=new Error("This operation was aborted")).name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(A){(e=new Error("This operation was aborted")).name="AbortError"}return e}!function(e){e.AbortSignal,e.AbortController}("undefined"!=typeof self?self:C);var Q=function(){function e(){i(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(e,[{key:"addEventListener",value:function(e,A,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:A,options:t})}},{key:"removeEventListener",value:function(e,A){if(e in this.listeners)for(var t=this.listeners[e],i=0,n=t.length;i>>0)+"_",n=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new A(t+(i||"")+"_"+n++,i)}})),a("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),a=0;a2?a[1]:"sd"),"rec"===A.type&&n[2]&&(A.recType=n[2].includes(".cloud.")?"cloud":""),A.searchParams=function(e){var A=e.split("?")[1],t={};if(A)for(var i=A.split("&"),n=0;n=3),this.log=this._loggerFactory("log",this._levelNum>=2),this.warn=this._loggerFactory("warn",this._levelNum>=1),this.error=this._loggerFactory("error",this._levelNum>=0),this.setOptions(e)}var A=e.prototype;return A.setOptions=function(e){var A;this._options=Object.assign({},this._options,e),this._levelNum=this._matchLevel(null!=(A=this._options.level)?A:"INFO"),this.info=this._loggerFactory("info",this._levelNum>=3),this.log=this._loggerFactory("log",this._levelNum>=2),this.warn=this._loggerFactory("warn",this._levelNum>=1),this.error=this._loggerFactory("error",this._levelNum>=0)},A._matchLevel=function(e){var A=3;switch(e){case"INFO":A=3;break;case"LOG":A=2;break;case"WARN":A=1;break;case"ERROR":A=0}return A},A._loggerFactory=function(A,t){var i=console[A];if(t&&i){var n,a=this._options.name?"%c["+this._options.name+"]%c %c["+A.toUpperCase()+"]":"%c["+A.toUpperCase()+"]",r=[this._options.name?"background: green;color: #fff":null,this._options.name?"":null,D[A]].filter((function(e){return null!=e}));return(n=i).bind.apply(n,[].concat([console,a],r))}return e.noop},A.getOptions=function(){return this._options},A.getVersion=function(){return"1.0.1"},e}();function b(e){return(e=+e)<10&&(e="0"+e),e+""}w.noop=function(){};var F=["info","log","warn","error"];function R(e){var A=new w(e);return new Proxy(A,{get:function(e,A){if(F.includes(A)){var t;if(null==(t=e._options)?void 0:t.showTime){var i=(a=(n=new Date(Date.now())).getFullYear(),r=n.getMonth()+1,o=n.getDate(),s=n.getHours(),g=n.getMinutes(),l=n.getSeconds(),c=n.getMilliseconds(),a+"/"+b(r)+"/"+b(o)+" "+b(s)+":"+b(g)+":"+b(l)+":"+c);return e[A].bind(console,"["+i+"]")}return e[A].bind(console)}var n,a,r,o,s,g,l,c;return Reflect.get(e,A)}})} +/* + * + * @ezuikit/utils-i18n v1.0.1 + * Copyright (c) 2024-3-23 Ezviz-OpenBiz + * Released under MIT the License. + * + */var k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T,N=Array.isArray,M="object"==typeof k&&k&&k.Object===Object&&k,L=M,G="object"==typeof self&&self&&self.Object===Object&&self,Y=L||G||Function("return this")(),U=Y.Symbol,J=U,H=Object.prototype,K=H.hasOwnProperty,O=H.toString,V=J?J.toStringTag:void 0,j=Object.prototype.toString,W=function(e){var A=K.call(e,V),t=e[V];try{e[V]=void 0;var i=!0}catch(e){}var n=O.call(e);return i&&(A?e[V]=t:delete e[V]),n},Z=U?U.toStringTag:void 0,X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?W(e):function(e){return j.call(e)}(e)},q=function(e){return null!=e&&"object"==typeof e},z=X,ee=q,Ae=function(e){return"symbol"==typeof e||ee(e)&&"[object Symbol]"==z(e)},te=N,ie=Ae,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ae=/^\w*$/,re=function(e,A){if(te(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!ie(e))||ae.test(e)||!ne.test(e)||null!=A&&e in Object(A)},oe=function(e){var A=typeof e;return null!=e&&("object"==A||"function"==A)},se=X,ge=oe,le=function(e){if(!ge(e))return!1;var A=se(e);return"[object Function]"==A||"[object GeneratorFunction]"==A||"[object AsyncFunction]"==A||"[object Proxy]"==A},ce=Y["__core-js_shared__"],de=(T=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",Ie=Function.prototype.toString,Ce=function(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""},he=le,ue=function(e){return!!de&&de in e},Be=oe,fe=Ce,Ee=/^\[object .+?Constructor\]$/,xe=Function.prototype,Qe=Object.prototype,pe=xe.toString,me=Qe.hasOwnProperty,ye=RegExp("^"+pe.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=function(e,A){var t=function(e,A){return null==e?void 0:e[A]}(e,A);return function(e){return!(!Be(e)||ue(e))&&(he(e)?ye:Ee).test(fe(e))}(t)?t:void 0},Se=_e(Object,"create"),ve=Se,De=Se,we=Object.prototype.hasOwnProperty,be=Se,Fe=Object.prototype.hasOwnProperty,Re=Se,ke=function(){this.__data__=ve?ve(null):{},this.size=0},Pe=function(e){var A=this.has(e)&&delete this.__data__[e];return this.size-=A?1:0,A},Te=function(e){var A=this.__data__;if(De){var t=A[e];return"__lodash_hash_undefined__"===t?void 0:t}return we.call(A,e)?A[e]:void 0};function Ne(e){var A=-1,t=null==e?0:e.length;for(this.clear();++A-1},je.prototype.set=function(e,A){var t=this.__data__,i=Oe(t,e);return i<0?(++this.size,t.push([e,A])):t[i][1]=A,this};var We=je,Ze=_e(Y,"Map"),Xe=Me,qe=We,ze=Ze,$e=function(e,A){var t=e.__data__;return function(e){var A=typeof e;return"string"==A||"number"==A||"symbol"==A||"boolean"==A?"__proto__"!==e:null===e}(A)?t["string"==typeof A?"string":"hash"]:t.map},eA=$e,AA=$e,tA=$e,iA=$e;function nA(e){var A=-1,t=null==e?0:e.length;for(this.clear();++A-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},OA=yA,VA=UA,jA=N,WA=HA,ZA=KA,XA=SA,qA=function(e,A,t){for(var i=-1,n=(A=OA(A,e)).length,a=!1;++i0){if(++A>=800)return arguments[0]}else A=0;return e.apply(void 0,arguments)}}(qi),en=ji,An=function(e,A,t){return A=Wi(void 0===A?e.length-1:A,0),function(){for(var i=arguments,n=-1,a=Wi(i.length-A,0),r=Array(a);++n1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(a=e.length>3&&"function"==typeof a?(n--,a):void 0,r&&cn(t[0],t[1],r)&&(a=n<3?void 0:a,n=1),A=Object(A);++i-1},_n=fn,Sn=pn,vn=xn,Dn=P((function(e){return e&&e.length?function(e,A,t){var i=-1,n=yn,a=e.length,r=!0,o=[],s=o;if(a>=200){var g=Sn(e);if(g)return vn(g);r=!1,n=_n,s=new mn}else s=o;e:for(;++i{const t=[],i=[];return t.push(A),A||t.push(e.locale),e.enableFallback&&t.push(e.defaultLocale),t.filter(Boolean).map((e=>e.toString())).forEach((function(A){if(i.includes(A)||i.push(A),!e.enableFallback)return;const t=A.split("-");3===t.length&&i.push(`${t[0]}-${t[1]}`),i.push(t[0])})),Dn(i)};class bn{constructor(e){this.i18n=e,this.registry={},this.register("default",wn)}register(e,A){if("function"!=typeof A){const e=A;A=()=>e}this.registry[e]=A}get(e){let A=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"==typeof A&&(A=A(this.i18n,e)),A instanceof Array||(A=[A]),A}}const Fn=function(e){let{pluralizer:A,includeZero:t=!0,ordinal:i=!1}=e;return function(e,n){return[t&&0===n?"zero":"",A(n,i)].filter(Boolean)}}({pluralizer:(e,A)=>{const t=String(e).split("."),i=!t[1],n=Number(t[0])==e,a=n&&t[0].slice(-1),r=n&&t[0].slice(-2);return A?1==a&&11!=r?"one":2==a&&12!=r?"two":3==a&&13!=r?"few":"other":1==e&&i?"one":"other"},includeZero:!0});class Rn{constructor(e){this.i18n=e,this.registry={},this.register("default",Fn)}register(e,A){this.registry[e]=A}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}var kn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Pn=function(e){return kn.test(e)},Tn="\\ud800-\\udfff",Nn="["+Tn+"]",Mn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ln="\\ud83c[\\udffb-\\udfff]",Gn="[^"+Tn+"]",Yn="(?:\\ud83c[\\udde6-\\uddff]){2}",Un="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="(?:"+Mn+"|"+Ln+")?",Hn="[\\ufe0e\\ufe0f]?",Kn=Hn+Jn+"(?:\\u200d(?:"+[Gn,Yn,Un].join("|")+")"+Hn+Jn+")*",On="(?:"+[Gn+Mn+"?",Mn,Yn,Un,Nn].join("|")+")",Vn=RegExp(Ln+"(?="+Ln+")|"+On+Kn,"g"),jn=function(e){return e.split("")},Wn=Pn,Zn=function(e,A,t){var i=e.length;return t=void 0===t?i:t,!A&&t>=i?e:function(e,A,t){var i=-1,n=e.length;A<0&&(A=-A>n?0:n+A),(t=t>n?n:t)<0&&(t+=n),n=A>t?0:t-A>>>0,A>>>=0;for(var a=Array(n);++i(A[La(t)]=e[t],A)),{}):{}}function Ya(e){return null!=e} +/* + * bignumber.js v9.1.2 + * A JavaScript library for arbitrary-precision arithmetic. + * https://github.com/MikeMcl/bignumber.js + * Copyright (c) 2022 Michael Mclaughlin + * MIT Licensed. + * + * BigNumber.prototype methods | BigNumber methods + * | + * absoluteValue abs | clone + * comparedTo | config set + * decimalPlaces dp | DECIMAL_PLACES + * dividedBy div | ROUNDING_MODE + * dividedToIntegerBy idiv | EXPONENTIAL_AT + * exponentiatedBy pow | RANGE + * integerValue | CRYPTO + * isEqualTo eq | MODULO_MODE + * isFinite | POW_PRECISION + * isGreaterThan gt | FORMAT + * isGreaterThanOrEqualTo gte | ALPHABET + * isInteger | isBigNumber + * isLessThan lt | maximum max + * isLessThanOrEqualTo lte | minimum min + * isNaN | random + * isNegative | sum + * isPositive | + * isZero | + * minus | + * modulo mod | + * multipliedBy times | + * negated | + * plus | + * precision sd | + * shiftedBy | + * squareRoot sqrt | + * toExponential | + * toFixed | + * toFormat | + * toFraction | + * toJSON | + * toNumber | + * toPrecision | + * toString | + * valueOf | + * + */var Ua=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Ja=Math.ceil,Ha=Math.floor,Ka="[BigNumber Error] ",Oa=Ka+"Number primitive has more than 15 significant digits: ",Va=1e14,ja=14,Wa=9007199254740991,Za=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Xa=1e7,qa=1e9;function za(e){var A=0|e;return e>0||e===A?A:A-1}function $a(e){for(var A,t,i=1,n=e.length,a=e[0]+"";ig^t?1:-1;for(o=(s=n.length)<(g=a.length)?s:g,r=0;ra[r]^t?1:-1;return s==g?0:s>g^t?1:-1}function Ar(e,A,t,i){if(et||e!==Ha(e))throw Error(Ka+(i||"Argument")+("number"==typeof e?et?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function tr(e){var A=e.c.length-1;return za(e.e/ja)==A&&e.c[A]%2!=0}function ir(e,A){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(A<0?"e":"e+")+A}function nr(e,A,t){var i,n;if(A<0){for(n=t+".";++A;n+=t);e=n+e}else if(++A>(i=e.length)){for(n=t,A-=i;--A;n+=t);e+=n}else AE?d.c=d.e=null:e.e=10;s/=10,o++);return void(o>E?d.c=d.e=null:(d.e=o,d.c=[e]))}c=String(e)}else{if(!Ua.test(c=String(e)))return n(d,c,g);d.s=45==c.charCodeAt(0)?(c=c.slice(1),-1):1}(o=c.indexOf("."))>-1&&(c=c.replace(".","")),(s=c.search(/e/i))>0?(o<0&&(o=s),o+=+c.slice(s+1),c=c.substring(0,s)):o<0&&(o=c.length)}else{if(Ar(A,2,y.length,"Base"),10==A&&_)return b(d=new S(e),C+d.e+1,h);if(c=String(e),g="number"==typeof e){if(0*e!=0)return n(d,c,g,A);if(d.s=1/e<0?(c=c.slice(1),-1):1,S.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(Oa+e)}else d.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1;for(t=y.slice(0,A),o=s=0,l=c.length;so){o=l;continue}}else if(!r&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){r=!0,s=-1,o=0;continue}return n(d,String(e),g,A)}g=!1,(o=(c=i(c,A,10,d.s)).indexOf("."))>-1?c=c.replace(".",""):o=c.length}for(s=0;48===c.charCodeAt(s);s++);for(l=c.length;48===c.charCodeAt(--l););if(c=c.slice(s,++l)){if(l-=s,g&&S.DEBUG&&l>15&&(e>Wa||e!==Ha(e)))throw Error(Oa+d.s*e);if((o=o-s-1)>E)d.c=d.e=null;else if(o=B)?ir(s,r):nr(s,r,"0");else if(a=(e=b(new S(e),A,t)).e,o=(s=$a(e.c)).length,1==i||2==i&&(A<=a||a<=u)){for(;oo){if(--A>0)for(s+=".";A--;s+="0");}else if((A+=a-o)>0)for(a+1==o&&(s+=".");A--;s+="0");return e.s<0&&n?"-"+s:s}function D(e,A){for(var t,i,n=1,a=new S(e[0]);n=10;n/=10,i++);return(t=i+t*ja-1)>E?e.c=e.e=null:t=10;o/=10,n++);if((a=A-n)<0)a+=ja,r=A,s=c[g=0],l=Ha(s/d[n-r-1]%10);else if((g=Ja((a+1)/ja))>=c.length){if(!i)break e;for(;c.length<=g;c.push(0));s=l=0,n=1,r=(a%=ja)-ja+1}else{for(s=o=c[g],n=1;o>=10;o/=10,n++);l=(r=(a%=ja)-ja+n)<0?0:Ha(s/d[n-r-1]%10)}if(i=i||A<0||null!=c[g+1]||(r<0?s:s%d[n-r-1]),i=t<4?(l||i)&&(0==t||t==(e.s<0?3:2)):l>5||5==l&&(4==t||i||6==t&&(a>0?r>0?s/d[n-r]:0:c[g-1])%10&1||t==(e.s<0?8:7)),A<1||!c[0])return c.length=0,i?(A-=e.e+1,c[0]=d[(ja-A%ja)%ja],e.e=-A||0):c[0]=e.e=0,e;if(0==a?(c.length=g,o=1,g--):(c.length=g+1,o=d[ja-a],c[g]=r>0?Ha(s/d[n-r]%d[r])*o:0),i)for(;;){if(0==g){for(a=1,r=c[0];r>=10;r/=10,a++);for(r=c[0]+=o,o=1;r>=10;r/=10,o++);a!=o&&(e.e++,c[0]==Va&&(c[0]=1));break}if(c[g]+=o,c[g]!=Va)break;c[g--]=0,o=1}for(a=c.length;0===c[--a];c.pop());}e.e>E?e.c=e.e=null:e.e=B?ir(A,t):nr(A,t,"0"),e.s<0?"-"+A:A)}return S.clone=e,S.ROUND_UP=0,S.ROUND_DOWN=1,S.ROUND_CEIL=2,S.ROUND_FLOOR=3,S.ROUND_HALF_UP=4,S.ROUND_HALF_DOWN=5,S.ROUND_HALF_EVEN=6,S.ROUND_HALF_CEIL=7,S.ROUND_HALF_FLOOR=8,S.EUCLID=9,S.config=S.set=function(e){var A,t;if(null!=e){if("object"!=typeof e)throw Error(Ka+"Object expected: "+e);if(e.hasOwnProperty(A="DECIMAL_PLACES")&&(Ar(t=e[A],0,qa,A),C=t),e.hasOwnProperty(A="ROUNDING_MODE")&&(Ar(t=e[A],0,8,A),h=t),e.hasOwnProperty(A="EXPONENTIAL_AT")&&((t=e[A])&&t.pop?(Ar(t[0],-qa,0,A),Ar(t[1],0,qa,A),u=t[0],B=t[1]):(Ar(t,-qa,qa,A),u=-(B=t<0?-t:t))),e.hasOwnProperty(A="RANGE"))if((t=e[A])&&t.pop)Ar(t[0],-qa,-1,A),Ar(t[1],1,qa,A),f=t[0],E=t[1];else{if(Ar(t,-qa,qa,A),!t)throw Error(Ka+A+" cannot be zero: "+t);f=-(E=t<0?-t:t)}if(e.hasOwnProperty(A="CRYPTO")){if((t=e[A])!==!!t)throw Error(Ka+A+" not true or false: "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw x=!t,Error(Ka+"crypto unavailable");x=t}else x=t}if(e.hasOwnProperty(A="MODULO_MODE")&&(Ar(t=e[A],0,9,A),Q=t),e.hasOwnProperty(A="POW_PRECISION")&&(Ar(t=e[A],0,qa,A),p=t),e.hasOwnProperty(A="FORMAT")){if("object"!=typeof(t=e[A]))throw Error(Ka+A+" not an object: "+t);m=t}if(e.hasOwnProperty(A="ALPHABET")){if("string"!=typeof(t=e[A])||/^.?$|[+\-.\s]|(.).*\1/.test(t))throw Error(Ka+A+" invalid: "+t);_="0123456789"==t.slice(0,10),y=t}}return{DECIMAL_PLACES:C,ROUNDING_MODE:h,EXPONENTIAL_AT:[u,B],RANGE:[f,E],CRYPTO:x,MODULO_MODE:Q,POW_PRECISION:p,FORMAT:m,ALPHABET:y}},S.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!S.DEBUG)return!0;var A,t,i=e.c,n=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===a||-1===a)&&n>=-qa&&n<=qa&&n===Ha(n)){if(0===i[0]){if(0===n&&1===i.length)return!0;break e}if((A=(n+1)%ja)<1&&(A+=ja),String(i[0]).length==A){for(A=0;A=Va||t!==Ha(t))break e;if(0!==t)return!0}}}else if(null===i&&null===n&&(null===a||1===a||-1===a))return!0;throw Error(Ka+"Invalid BigNumber: "+e)},S.maximum=S.max=function(){return D(arguments,-1)},S.minimum=S.min=function(){return D(arguments,1)},S.random=(a=9007199254740992,r=Math.random()*a&2097151?function(){return Ha(Math.random()*a)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var A,t,i,n,a,o=0,s=[],g=new S(I);if(null==e?e=C:Ar(e,0,qa),n=Ja(e/ja),x)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(n*=2));o>>11))>=9e15?(t=crypto.getRandomValues(new Uint32Array(2)),A[o]=t[0],A[o+1]=t[1]):(s.push(a%1e14),o+=2);o=n/2}else{if(!crypto.randomBytes)throw x=!1,Error(Ka+"crypto unavailable");for(A=crypto.randomBytes(n*=7);o=9e15?crypto.randomBytes(7).copy(A,o):(s.push(a%1e14),o+=7);o=n/7}if(!x)for(;o=10;a/=10,o++);ot-1&&(null==r[n+1]&&(r[n+1]=0),r[n+1]+=r[n]/t|0,r[n]%=t)}return r.reverse()}return function(i,n,a,r,o){var s,g,l,c,d,I,u,B,f=i.indexOf("."),E=C,x=h;for(f>=0&&(c=p,p=0,i=i.replace(".",""),I=(B=new S(n)).pow(i.length-f),p=c,B.c=A(nr($a(I.c),I.e,"0"),10,a,e),B.e=B.c.length),l=c=(u=A(i,n,a,o?(s=y,e):(s=e,y))).length;0==u[--c];u.pop());if(!u[0])return s.charAt(0);if(f<0?--l:(I.c=u,I.e=l,I.s=r,u=(I=t(I,B,E,x,a)).c,d=I.r,l=I.e),f=u[g=l+E+1],c=a/2,d=d||g<0||null!=u[g+1],d=x<4?(null!=f||d)&&(0==x||x==(I.s<0?3:2)):f>c||f==c&&(4==x||d||6==x&&1&u[g-1]||x==(I.s<0?8:7)),g<1||!u[0])i=d?nr(s.charAt(1),-E,s.charAt(0)):s.charAt(0);else{if(u.length=g,d)for(--a;++u[--g]>a;)u[g]=0,g||(++l,u=[1].concat(u));for(c=u.length;!u[--c];);for(f=0,i="";f<=c;i+=s.charAt(u[f++]));i=nr(i,l,s.charAt(0))}return i}}(),t=function(){function e(e,A,t){var i,n,a,r,o=0,s=e.length,g=A%Xa,l=A/Xa|0;for(e=e.slice();s--;)o=((n=g*(a=e[s]%Xa)+(i=l*a+(r=e[s]/Xa|0)*g)%Xa*Xa+o)/t|0)+(i/Xa|0)+l*r,e[s]=n%t;return o&&(e=[o].concat(e)),e}function A(e,A,t,i){var n,a;if(t!=i)a=t>i?1:-1;else for(n=a=0;nA[n]?1:-1;break}return a}function t(e,A,t,i){for(var n=0;t--;)e[t]-=n,n=e[t]1;e.splice(0,1));}return function(i,n,a,r,o){var s,g,l,c,d,I,C,h,u,B,f,E,x,Q,p,m,y,_=i.s==n.s?1:-1,v=i.c,D=n.c;if(!(v&&v[0]&&D&&D[0]))return new S(i.s&&n.s&&(v?!D||v[0]!=D[0]:D)?v&&0==v[0]||!D?0*_:_/0:NaN);for(u=(h=new S(_)).c=[],_=a+(g=i.e-n.e)+1,o||(o=Va,g=za(i.e/ja)-za(n.e/ja),_=_/ja|0),l=0;D[l]==(v[l]||0);l++);if(D[l]>(v[l]||0)&&g--,_<0)u.push(1),c=!0;else{for(Q=v.length,m=D.length,l=0,_+=2,(d=Ha(o/(D[0]+1)))>1&&(D=e(D,d,o),v=e(v,d,o),m=D.length,Q=v.length),x=m,f=(B=v.slice(0,m)).length;f=o/2&&p++;do{if(d=0,(s=A(D,B,m,f))<0){if(E=B[0],m!=f&&(E=E*o+(B[1]||0)),(d=Ha(E/p))>1)for(d>=o&&(d=o-1),C=(I=e(D,d,o)).length,f=B.length;1==A(I,B,C,f);)d--,t(I,m=10;_/=10,l++);b(h,a+(h.e=l+g*ja-1)+1,r,c)}else h.e=g,h.r=+c;return h}}(),o=/^(-?)0([xbo])(?=\w[\w.]*$)/i,s=/^([^.]+)\.$/,g=/^\.([^.]+)$/,l=/^-?(Infinity|NaN)$/,c=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(e,A,t,i){var n,a=t?A:A.replace(c,"");if(l.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!t&&(a=a.replace(o,(function(e,A,t){return n="x"==(t=t.toLowerCase())?16:"b"==t?2:8,i&&i!=n?e:A})),i&&(n=i,a=a.replace(s,"$1").replace(g,"0.$1")),A!=a))return new S(a,n);if(S.DEBUG)throw Error(Ka+"Not a"+(i?" base "+i:"")+" number: "+A);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new S(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,A){return er(this,new S(e,A))},d.decimalPlaces=d.dp=function(e,A){var t,i,n,a=this;if(null!=e)return Ar(e,0,qa),null==A?A=h:Ar(A,0,8),b(new S(a),e+a.e+1,A);if(!(t=a.c))return null;if(i=((n=t.length-1)-za(this.e/ja))*ja,n=t[n])for(;n%10==0;n/=10,i--);return i<0&&(i=0),i},d.dividedBy=d.div=function(e,A){return t(this,new S(e,A),C,h)},d.dividedToIntegerBy=d.idiv=function(e,A){return t(this,new S(e,A),0,1)},d.exponentiatedBy=d.pow=function(e,A){var t,i,n,a,r,o,s,g,l=this;if((e=new S(e)).c&&!e.isInteger())throw Error(Ka+"Exponent not an integer: "+F(e));if(null!=A&&(A=new S(A)),r=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return g=new S(Math.pow(+F(l),r?e.s*(2-tr(e)):+F(e))),A?g.mod(A):g;if(o=e.s<0,A){if(A.c?!A.c[0]:!A.s)return new S(NaN);(i=!o&&l.isInteger()&&A.isInteger())&&(l=l.mod(A))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||r&&l.c[1]>=24e7:l.c[0]<8e13||r&&l.c[0]<=9999975e7)))return a=l.s<0&&tr(e)?-0:0,l.e>-1&&(a=1/a),new S(o?1/a:a);p&&(a=Ja(p/ja+2))}for(r?(t=new S(.5),o&&(e.s=1),s=tr(e)):s=(n=Math.abs(+F(e)))%2,g=new S(I);;){if(s){if(!(g=g.times(l)).c)break;a?g.c.length>a&&(g.c.length=a):i&&(g=g.mod(A))}if(n){if(0===(n=Ha(n/2)))break;s=n%2}else if(b(e=e.times(t),e.e+1,1),e.e>14)s=tr(e);else{if(0==(n=+F(e)))break;s=n%2}l=l.times(l),a?l.c&&l.c.length>a&&(l.c.length=a):i&&(l=l.mod(A))}return i?g:(o&&(g=I.div(g)),A?g.mod(A):a?b(g,p,h,void 0):g)},d.integerValue=function(e){var A=new S(this);return null==e?e=h:Ar(e,0,8),b(A,A.e+1,e)},d.isEqualTo=d.eq=function(e,A){return 0===er(this,new S(e,A))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,A){return er(this,new S(e,A))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,A){return 1===(A=er(this,new S(e,A)))||0===A},d.isInteger=function(){return!!this.c&&za(this.e/ja)>this.c.length-2},d.isLessThan=d.lt=function(e,A){return er(this,new S(e,A))<0},d.isLessThanOrEqualTo=d.lte=function(e,A){return-1===(A=er(this,new S(e,A)))||0===A},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,A){var t,i,n,a,r=this,o=r.s;if(A=(e=new S(e,A)).s,!o||!A)return new S(NaN);if(o!=A)return e.s=-A,r.plus(e);var s=r.e/ja,g=e.e/ja,l=r.c,c=e.c;if(!s||!g){if(!l||!c)return l?(e.s=-A,e):new S(c?r:NaN);if(!l[0]||!c[0])return c[0]?(e.s=-A,e):new S(l[0]?r:3==h?-0:0)}if(s=za(s),g=za(g),l=l.slice(),o=s-g){for((a=o<0)?(o=-o,n=l):(g=s,n=c),n.reverse(),A=o;A--;n.push(0));n.reverse()}else for(i=(a=(o=l.length)<(A=c.length))?o:A,o=A=0;A0)for(;A--;l[t++]=0);for(A=Va-1;i>o;){if(l[--i]=0;){for(t=0,d=E[n]%u,I=E[n]/u|0,a=n+(r=s);a>n;)t=((g=d*(g=f[--r]%u)+(o=I*g+(l=f[r]/u|0)*d)%u*u+C[a]+t)/h|0)+(o/u|0)+I*l,C[a--]=g%h;C[a]=t}return t?++i:C.splice(0,1),w(e,C,i)},d.negated=function(){var e=new S(this);return e.s=-e.s||null,e},d.plus=function(e,A){var t,i=this,n=i.s;if(A=(e=new S(e,A)).s,!n||!A)return new S(NaN);if(n!=A)return e.s=-A,i.minus(e);var a=i.e/ja,r=e.e/ja,o=i.c,s=e.c;if(!a||!r){if(!o||!s)return new S(n/0);if(!o[0]||!s[0])return s[0]?e:new S(o[0]?i:0*n)}if(a=za(a),r=za(r),o=o.slice(),n=a-r){for(n>0?(r=a,t=s):(n=-n,t=o),t.reverse();n--;t.push(0));t.reverse()}for((n=o.length)-(A=s.length)<0&&(t=s,s=o,o=t,A=n),n=0;A;)n=(o[--A]=o[A]+s[A]+n)/Va|0,o[A]=Va===o[A]?0:o[A]%Va;return n&&(o=[n].concat(o),++r),w(e,o,r)},d.precision=d.sd=function(e,A){var t,i,n,a=this;if(null!=e&&e!==!!e)return Ar(e,1,qa),null==A?A=h:Ar(A,0,8),b(new S(a),e,A);if(!(t=a.c))return null;if(i=(n=t.length-1)*ja+1,n=t[n]){for(;n%10==0;n/=10,i--);for(n=t[0];n>=10;n/=10,i++);}return e&&a.e+1>i&&(i=a.e+1),i},d.shiftedBy=function(e){return Ar(e,-9007199254740991,Wa),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,A,i,n,a,r=this,o=r.c,s=r.s,g=r.e,l=C+4,c=new S("0.5");if(1!==s||!o||!o[0])return new S(!s||s<0&&(!o||o[0])?NaN:o?r:1/0);if(0==(s=Math.sqrt(+F(r)))||s==1/0?(((A=$a(o)).length+g)%2==0&&(A+="0"),s=Math.sqrt(+A),g=za((g+1)/2)-(g<0||g%2),i=new S(A=s==1/0?"5e"+g:(A=s.toExponential()).slice(0,A.indexOf("e")+1)+g)):i=new S(s+""),i.c[0])for((s=(g=i.e)+l)<3&&(s=0);;)if(a=i,i=c.times(a.plus(t(r,a,l,1))),$a(a.c).slice(0,s)===(A=$a(i.c)).slice(0,s)){if(i.e0&&C>0){for(a=C%o||o,l=I.substr(0,a);a0&&(l+=g+I.slice(a)),d&&(l="-"+l)}i=c?l+(t.decimalSeparator||"")+((s=+t.fractionGroupSize)?c.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+(t.fractionGroupSeparator||"")):c):l}return(t.prefix||"")+i+(t.suffix||"")},d.toFraction=function(e){var A,i,n,a,r,o,s,g,l,c,d,C,u=this,B=u.c;if(null!=e&&(!(s=new S(e)).isInteger()&&(s.c||1!==s.s)||s.lt(I)))throw Error(Ka+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+F(s));if(!B)return new S(u);for(A=new S(I),l=i=new S(I),n=g=new S(I),C=$a(B),r=A.e=C.length-u.e-1,A.c[0]=Za[(o=r%ja)<0?ja+o:o],e=!e||s.comparedTo(A)>0?r>0?A:l:s,o=E,E=1/0,s=new S(C),g.c[0]=0;c=t(s,A,0,1),1!=(a=i.plus(c.times(n))).comparedTo(e);)i=n,n=a,l=g.plus(c.times(a=l)),g=a,A=s.minus(c.times(a=A)),s=a;return a=t(e.minus(i),n,0,1),g=g.plus(a.times(l)),i=i.plus(a.times(n)),g.s=l.s=u.s,d=t(l,n,r*=2,h).minus(u).abs().comparedTo(t(g,i,r,h).minus(u).abs())<1?[l,n]:[g,i],E=o,d},d.toNumber=function(){return+F(this)},d.toPrecision=function(e,A){return null!=e&&Ar(e,1,qa),v(this,e,A,2)},d.toString=function(e){var A,t=this,n=t.s,a=t.e;return null===a?n?(A="Infinity",n<0&&(A="-"+A)):A="NaN":(null==e?A=a<=u||a>=B?ir($a(t.c),a):nr($a(t.c),a,"0"):10===e&&_?A=nr($a((t=b(new S(t),C+a+1,h)).c),t.e,"0"):(Ar(e,2,y.length,"Base"),A=i(nr($a(t.c),a,"0"),10,e,n,!0)),n<0&&t.c[0]&&(A="-"+A)),A},d.valueOf=d.toJSON=function(){return F(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=A&&S.set(A),S}();function or(e){var A;return null!==(A=ar[e])&&void 0!==A?A:ar.default}!function(e){e[e.up=rr.ROUND_UP]="up",e[e.down=rr.ROUND_DOWN]="down",e[e.truncate=rr.ROUND_DOWN]="truncate",e[e.halfUp=rr.ROUND_HALF_UP]="halfUp",e[e.default=rr.ROUND_HALF_UP]="default",e[e.halfDown=rr.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=rr.ROUND_HALF_EVEN]="halfEven",e[e.banker=rr.ROUND_HALF_EVEN]="banker",e[e.ceiling=rr.ROUND_CEIL]="ceiling",e[e.ceil=rr.ROUND_CEIL]="ceil",e[e.floor=rr.ROUND_FLOOR]="floor"}(ar||(ar={}));var sr=Math.floor,gr=/\s/,lr=/^\s+/,cr=function(e){return e?e.slice(0,function(e){for(var A=e.length;A--&&gr.test(e.charAt(A)););return A}(e)+1).replace(lr,""):e},dr=oe,Ir=Ae,Cr=/^[-+]0x[0-9a-f]+$/i,hr=/^0b[01]+$/i,ur=/^0o[0-7]+$/i,Br=parseInt,fr=1/0,Er=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(Ir(e))return NaN;if(dr(e)){var A="function"==typeof e.valueOf?e.valueOf():e;e=dr(A)?A+"":A}if("string"!=typeof e)return 0===e?e:+e;e=cr(e);var t=hr.test(e);return t||ur.test(e)?Br(e.slice(2),t?2:8):Cr.test(e)?NaN:+e}(e))===fr||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},xr=Er,Qr=gn,pr=EA,mr=P((function(e,A,t){return A=(t?Qr(e,A,t):void 0===A)?1:function(e){var A=xr(e),t=A%1;return A==A?t?A-t:A:0}(A),function(e,A){var t="";if(!e||A<1||A>9007199254740991)return t;do{A%2&&(t+=e),(A=sr(A/2))&&(e+=e)}while(A);return t}(pr(e),A)}));function yr(e,A){const t=function(e,A){let{precision:t,significant:i}=A;return i&&null!==t&&t>0?t-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):t}(e,A);if(null===t)return e.toString();const i=or(A.roundMode);if(t>=0)return e.toFixed(t,i);const n=Math.pow(10,Math.abs(t));return(e=new rr(e.div(n).toFixed(0,i)).times(n)).toString()}function _r(e,A){var t,i,n;const a=new rr(e);if(A.raise&&!a.isFinite())throw new Error(`"${e}" is not a valid numeric value`);const r=yr(a,A),o=new rr(r),s=o.lt(0),g=o.isZero();let[l,c]=r.split(".");const d=[];let I;const C=null!==(t=A.format)&&void 0!==t?t:"%n",h=null!==(i=A.negativeFormat)&&void 0!==i?i:`-${C}`,u=s&&!g?h:C;for(l=l.replace("-","");l.length>0;)d.unshift(l.substr(Math.max(0,l.length-3),3)),l=l.substr(0,l.length-3);return l=d.join(""),I=d.join(A.delimiter),c=A.significant?function(e){let{significand:A,whole:t,precision:i}=e;if("0"===t||null===i)return A;const n=Math.max(0,i-t.length);return(null!=A?A:"").substr(0,n)}({whole:l,significand:c,precision:A.precision}):null!=c?c:mr("0",null!==(n=A.precision)&&void 0!==n?n:0),A.stripInsignificantZeros&&c&&(c=c.replace(/0+$/,"")),a.isNaN()&&(I=e.toString()),c&&a.isFinite()&&(I+=(A.separator||".")+c),function(e,A){let{formattedNumber:t,unit:i}=A;return e.replace("%n",t).replace("%u",i)}(u,{formattedNumber:I,unit:A.unit})}function Sr(e,A,t){let i="";return(A instanceof String||"string"==typeof A)&&(i=A),A instanceof Array&&(i=A.join(e.defaultSeparator)),t.scope&&(i=[t.scope,i].join(e.defaultSeparator)),i}function vr(e){var A,t;if(null===e)return"null";const i=typeof e;return"object"!==i?i:(null===(t=null===(A=null==e?void 0:e.constructor)||void 0===A?void 0:A.name)||void 0===t?void 0:t.toLowerCase())||"object"}function Dr(e,A,t){t=Object.keys(t).reduce(((A,i)=>(A[e.transformKey(i)]=t[i],A)),{});const i=A.match(e.placeholder);if(!i)return A;for(;i.length;){let n;const a=i.shift(),r=a.replace(e.placeholder,"$1");n=Ya(t[r])?t[r].toString().replace(/\$/gm,"_#$#_"):r in t?e.nullPlaceholder(e,a,A,t):e.missingPlaceholder(e,a,A,t);const o=new RegExp(a.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));A=A.replace(o,n)}return A.replace(/_#\$#_/g,"$")}function wr(e,A){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i="locale"in(t=Object.assign({},t))?t.locale:e.locale,n=vr(i),a=e.locales.get("string"===n?i:typeof i).slice(),r=Sr(e,A,t).split(e.defaultSeparator).map((A=>e.transformKey(A))),o=a.map((A=>r.reduce(((e,A)=>e&&e[A]),e.translations[A])));return o.push(t.defaultValue),o.find((e=>Ya(e)))}var br=function(e,A){for(var t=-1,i=A.length,n=e.length;++to))return!1;var g=a.get(e),l=a.get(A);if(g&&l)return g==A&&l==e;var c=-1,d=!0,I=2&t?new Nr:void 0;for(a.set(e,A),a.set(A,e);++cA||a&&r&&s&&!o&&!g||i&&r&&s||!t&&s||!n)return 1;if(!i&&!a&&!g&&e0&&i(s)?t>1?e(s,t-1,i,n,a):Pr(a,s):n||(a[a.length]=s)}return a},vs=function(e,A,t){A=A.length?xs(A,(function(e){return _s(e)?function(A){return Qs(A,1===e.length?e[0]:e)}:e})):[ys];var i=-1;A=xs(A,ms(ps));var n=function(e,A){var t=-1,i=Bs(e)?Array(e.length):[];return us(e,(function(e,n,a){i[++t]=A(e,n,a)})),i}(e,(function(e,t,n){return{criteria:xs(A,(function(A){return A(e)})),index:++i,value:e}}));return function(e,A){var t=e.length;for(e.sort(A);t--;)e[t]=e[t].value;return e}(n,(function(e,A){return function(e,A,t){for(var i=-1,n=e.criteria,a=A.criteria,r=n.length,o=t.length;++i=o?s:s*("desc"==t[i]?-1:1)}return e.index-A.index}(e,A,t)}))},Ds=gn,ws=P(nn((function(e,A){if(null==e)return[];var t=A.length;return t>1&&Ds(e,A[0],A[1])?A=[]:t>2&&Ds(A[0],A[1],A[2])&&(A=[A[0]]),vs(e,Ss(A,1),[])}))),bs=oi;const Fs={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},Rs=P((function(e,A){return function(e,A,t){for(var i=-1,n=e.length,a=A.length,r={};++iparseInt(e,10))));const ks=["byte","kb","mb","gb","tb","pb","eb"];function Ps(e){if(e instanceof Date)return e;if("number"==typeof e){const A=new Date;return A.setTime(e),A}const A=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(A){const e=A.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[t,i,n,a,r,o,s]=e;return A[8]?new Date(Date.UTC(t,i,n,a,r,o,s)):new Date(t,i,n,a,r,o,s)}e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)&&(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")));const t=new Date;return t.setTime(Date.parse(e)),t}function Ts(e){let A,t,{i18n:i,count:n,scope:a,options:r,baseScope:o}=e;if(r=Object.assign({},r),A="object"==typeof a&&a?a:wr(i,a,r),!A)return i.missingTranslation.get(a,r);const s=i.pluralization.get(r.locale)(i,n),g=[];for(;s.length;){const e=s.shift();if(Ya(A[e])){t=A[e];break}g.push(e)}return Ya(t)?(r.count=n,i.interpolate(i,t,r)):i.missingTranslation.get(o.split(i.defaultSeparator).concat([g[0]]),r)}const Ns={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};var Ms=Math.ceil,Ls=Math.max,Gs=gn,Ys=Er,Us=P((function(e,A,t){return t&&"number"!=typeof t&&Gs(e,A,t)&&(A=t=void 0),e=Ys(e),void 0===A?(A=e,e=0):A=Ys(A),function(e,A,t){for(var i=-1,n=Ls(Ms((A-e)/(t||1)),0),a=Array(n);n--;)a[++i]=e,e+=t;return a}(e,A,t=void 0===t?et>=e&&t<=A,Hs=function(e,A){A instanceof Array&&(A=A.join(e.defaultSeparator));const t=A.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+t.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,A,t)=>`${A} ${t.toLowerCase()}`))},Ks=(e,A,t)=>{const i=Sr(e,A,t),n="locale"in t?t.locale:e.locale,a=vr(n);return`[missing "${["string"==a?n:a,i].join(e.defaultSeparator)}" translation]`},Os=(e,A,t)=>{const i=Sr(e,A,t),n=[e.locale,i].join(e.defaultSeparator);throw new Error(`Missing translation: ${n}`)};class Vs{constructor(e){this.i18n=e,this.registry={},this.register("guess",Hs),this.register("message",Ks),this.register("error",Os)}register(e,A){this.registry[e]=A}get(e,A){var t;return this.registry[null!==(t=A.missingBehavior)&&void 0!==t?t:this.i18n.missingBehavior](this.i18n,e,A)}}const js={defaultLocale:"en",availableLocales:["en"],locale:"en",defaultSeparator:".",placeholder:/(?:\{\{|%\{)(.*?)(?:\}\}?)/gm,enableFallback:!1,missingBehavior:"message",missingTranslationPrefix:"",missingPlaceholder:(e,A)=>`[missing "${A}" value]`,nullPlaceholder:(e,A,t,i)=>e.missingPlaceholder(e,A,t,i),transformKey:e=>e};let Ws=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._locale=js.locale,this._defaultLocale=js.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:t,enableFallback:i,missingBehavior:n,missingTranslationPrefix:a,missingPlaceholder:r,nullPlaceholder:o,defaultLocale:s,defaultSeparator:g,placeholder:l,transformKey:c}=Object.assign(Object.assign({},js),A);this.locale=t,this.defaultLocale=s,this.defaultSeparator=g,this.enableFallback=i,this.locale=t,this.missingBehavior=n,this.missingTranslationPrefix=a,this.missingPlaceholder=r,this.nullPlaceholder=o,this.placeholder=l,this.pluralization=new Rn(this),this.locales=new bn(this),this.missingTranslation=new Vs(this),this.transformKey=c,this.interpolate=Dr,this.store(e)}store(e){In(this.translations,e),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!=typeof e)throw new Error(`Expected newLocale to be a string; got ${vr(e)}`);const A=this._locale!==e;this._locale=e,A&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!=typeof e)throw new Error(`Expected newLocale to be a string; got ${vr(e)}`);const A=this._defaultLocale!==e;this._defaultLocale=e,A&&this.hasChanged()}translate(e,A){const t=function(e,A,t){let i=[{scope:A}];if(Ya(t.defaults)&&(i=i.concat(t.defaults)),Ya(t.defaultValue)){const n="function"==typeof t.defaultValue?t.defaultValue(e,A,t):t.defaultValue;i.push({message:n}),delete t.defaultValue}return i}(this,e,A=Object.assign({},A));let i;return t.some((e=>(Ya(e.scope)?i=wr(this,e.scope,A):Ya(e.message)&&(i=e.message),null!=i)))?("string"==typeof i?i=this.interpolate(this,i,A):"object"==typeof i&&i&&Ya(A.count)&&(i=Ts({i18n:this,count:A.count||0,scope:i,options:A,baseScope:Sr(this,e,A)})),A&&i instanceof Array&&(i=i.map((e=>"string"==typeof e?Dr(this,e,A):e))),i):this.missingTranslation.get(e,A)}pluralize(e,A,t){return Ts({i18n:this,count:e,scope:A,options:Object.assign({},t),baseScope:Sr(this,A,null!=t?t:{})})}localize(e,A,t){if(t=Object.assign({},t),null==A)return"";switch(e){case"currency":return this.numberToCurrency(A);case"number":return _r(A,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},wr(this,"number.format")));case"percentage":return this.numberToPercentage(A);default:{let i;return i=e.match(/^(date|time)/)?this.toTime(e,A):A.toString(),Dr(this,i,t)}}}toTime(e,A){const t=Ps(A),i=wr(this,e);return t.toString().match(/invalid/i)?t.toString():i?this.strftime(t,i):t.toString()}numberToCurrency(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _r(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},Ga(this.get("number.format"))),Ga(this.get("number.currency.format"))),A))}numberToPercentage(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _r(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},Ga(this.get("number.format"))),Ga(this.get("number.percentage.format"))),A))}numberToHumanSize(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,A,t){const i=or(t.roundMode),n=1024,a=new rr(A).abs(),r=a.lt(n);let o;const s=(e=>{const A=ks.length-1,t=new rr(Math.log(e.toNumber())).div(Math.log(n)).integerValue(rr.ROUND_DOWN).toNumber();return Math.min(A,t)})(a);o=r?a.integerValue():new rr(yr(a.div(Math.pow(n,s)),{significant:t.significant,precision:t.precision,roundMode:t.roundMode}));const g=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),l=e.translate(`number.human.storage_units.units.${r?"byte":ks[s]}`,{count:a.integerValue().toNumber()});let c=o.toFixed(t.precision,i);return t.stripInsignificantZeros&&(c=c.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),g.replace("%n",c).replace("%u",l)}(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Ga(this.get("number.human.format"))),Ga(this.get("number.human.storage_units"))),A))}numberToHuman(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,A,t){const i={roundMode:t.roundMode,precision:t.precision,significant:t.significant};let n;if("string"===vr(t.units)){const A=t.units;if(n=wr(e,A),!n)throw new Error(`The scope "${e.locale}${e.defaultSeparator}${Sr(e,A,{})}" couldn't be found`)}else n=t.units;let a=yr(new rr(A),i);const r=((e,A)=>{const t=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>ws(Object.keys(e).map((e=>Rs[e])),(e=>-1*e)))(A).find((e=>t>=e))||0})(new rr(a),n),o=((e,A)=>e[Fs[A.toString()]]||"")(n,r);if(a=yr(new rr(a).div(Math.pow(10,r)),i),t.stripInsignificantZeros){let[e,A]=a.split(".");A=(A||"").replace(/0+$/,""),a=e,A&&(a+=`${t.separator}${A}`)}return t.format.replace("%n",a||"0").replace("%u",o).trim()}(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},Ga(this.get("number.human.format"))),Ga(this.get("number.human.decimal_units"))),A))}numberToRounded(e,A){return _r(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},A))}numberToDelimited(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,A){const t=new rr(e);if(!t.isFinite())return e.toString();if(!A.delimiterPattern.global)throw new Error(`options.delimiterPattern must be a global regular expression; received ${A.delimiterPattern}`);let[i,n]=t.toString().split(".");return i=i.replace(A.delimiterPattern,(e=>`${e}${A.delimiter}`)),[i,n].filter(Boolean).join(A.separator)}(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},A))}withLocale(e,A){return function(e,A,t,i){return new(t||(t=Promise))((function(A,n){function a(e){try{o(i.next(e))}catch(e){n(e)}}function r(e){try{o(i.throw(e))}catch(e){n(e)}}function o(e){var i;e.done?A(e.value):(i=e.value,i instanceof t?i:new t((function(e){e(i)}))).then(a,r)}o((i=i.apply(e,[])).next())}))}(this,0,void 0,(function*(){const t=this.locale;try{this.locale=e,yield A()}finally{this.locale=t}}))}strftime(e,A){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,A){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{abbrDayNames:i,dayNames:n,abbrMonthNames:a,monthNames:r,meridian:o}=Object.assign(Object.assign({},Ns),t);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const s=e.getDay(),g=e.getDate(),l=e.getFullYear(),c=e.getMonth()+1,d=e.getHours();let I=d;const C=d>11?"pm":"am",h=e.getSeconds(),u=e.getMinutes(),B=e.getTimezoneOffset(),f=Math.floor(Math.abs(B/60)),E=Math.abs(B)-60*f,x=(B>0?"-":"+")+(f.toString().length<2?"0"+f:f)+(E.toString().length<2?"0"+E:E);return I>12?I-=12:0===I&&(I=12),(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=A.replace("%a",i[s])).replace("%A",n[s])).replace("%b",a[c])).replace("%B",r[c])).replace("%d",g.toString().padStart(2,"0"))).replace("%e",g.toString())).replace("%-d",g.toString())).replace("%H",d.toString().padStart(2,"0"))).replace("%-H",d.toString())).replace("%k",d.toString())).replace("%I",I.toString().padStart(2,"0"))).replace("%-I",I.toString())).replace("%l",I.toString())).replace("%m",c.toString().padStart(2,"0"))).replace("%-m",c.toString())).replace("%M",u.toString().padStart(2,"0"))).replace("%-M",u.toString())).replace("%p",o[C])).replace("%P",o[C].toLowerCase())).replace("%S",h.toString().padStart(2,"0"))).replace("%-S",h.toString())).replace("%w",s.toString())).replace("%y",l.toString().padStart(2,"0").substr(-2))).replace("%-y",l.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",l.toString())).replace(/%z/i,x)}(e,A,Object.assign(Object.assign(Object.assign({},Ga(wr(this,"date"))),{meridian:{am:wr(this,"time.am")||"AM",pm:wr(this,"time.pm")||"PM"}}),t))}update(e,A){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!1};if(t.strict&&!et(this.translations,e))throw new Error(`The path "${e}" is not currently defined`);const i=RA(this.translations,e),n=vr(i),a=vr(A);if(t.strict&&n!==a)throw new Error(`The current type for "${e}" is "${n}", but you're trying to override it with "${a}"`);let r;r="object"===a?Object.assign(Object.assign({},i),A):A;const o=e.split(this.defaultSeparator),s=o.pop();let g=this.translations;for(const e of o)g[e]||(g[e]={}),g=g[e];g[s]=r,this.hasChanged()}toSentence(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{wordsConnector:t,twoWordsConnector:i,lastWordConnector:n}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},Ga(wr(this,"support.array"))),A),a=e.length;switch(a){case 0:return"";case 1:return`${e[0]}`;case 2:return e.join(i);default:return[e.slice(0,a-1).join(t),n,e[a-1]].join("")}}timeAgoInWords(e,A){return function(e,A,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const n=i.scope||"datetime.distance_in_words",a=function(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.t(A,{count:t,scope:n})};A=Ps(A),t=Ps(t);let r=A.getTime()/1e3,o=t.getTime()/1e3;r>o&&([A,t,r,o]=[t,A,o,r]);const s=Math.round(o-r),g=Math.round((o-r)/60),l=g/60/24,c=Math.round(g/60),d=Math.round(l),I=Math.round(d/30);if(Js(0,1,g))return i.includeSeconds?Js(0,4,s)?a("less_than_x_seconds",5):Js(5,9,s)?a("less_than_x_seconds",10):Js(10,19,s)?a("less_than_x_seconds",20):Js(20,39,s)?a("half_a_minute"):Js(40,59,s)?a("less_than_x_minutes",1):a("x_minutes",1):0===g?a("less_than_x_minutes",1):a("x_minutes",g);if(Js(2,44,g))return a("x_minutes",g);if(Js(45,89,g))return a("about_x_hours",1);if(Js(90,1439,g))return a("about_x_hours",c);if(Js(1440,2519,g))return a("x_days",1);if(Js(2520,43199,g))return a("x_days",d);if(Js(43200,86399,g))return a("about_x_months",Math.round(g/43200));if(Js(86400,525599,g))return a("x_months",I);let C=A.getFullYear();A.getMonth()+1>=3&&(C+=1);let h=t.getFullYear();t.getMonth()+1<3&&(h-=1);const u=525600,B=g-1440*(C>h?0:Us(C,h).filter((e=>1==new Date(e,1,29).getMonth())).length),f=Math.trunc(B/u),E=parseFloat((B/u-f).toPrecision(3));return E<.25?a("about_x_years",f):E<.75?a("over_x_years",f):a("almost_x_years",f+1)}(this,e,A,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _r(e,A=Object.assign(Object.assign({delimiter:",",precision:3,separator:".",unit:"",format:"%u%n",significant:!1,stripInsignificantZeros:!1},Ga(this.get("number.format"))),A))}get(e){return wr(this,e)}runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}};var Zs,Xs,qs=function(){function e(e,A){this._i18n=new Ws(e,A)}var A=e.prototype;return A.t=function(e,A){return this._i18n.t(e,A)},A.appendTranslations=function(e){var A=this;Object.keys(e).forEach((function(t){A._i18n.translations[t]=Object.assign(A._i18n.translations[t]||{},e[t])}))},A.switchTranslation=function(e){this._i18n.locale=e},A.getCurrentLocale=function(){return this._i18n.locale},A.getCurrentTranslation=function(){return this._i18n.translations[this._i18n.locale]},A.getTranslations=function(){return this._i18n.translations},A.onChange=function(e){var A=this;return this._i18n.onChange((function(){return e(A)}))},A.getVersion=function(){return"1.0.1"},e}();var zs,$s,eg=function(){if(Xs)return Zs;Xs=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===A}(e)}(e)},A="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(e,A){return!1!==A.clone&&A.isMergeableObject(e)?o((t=e,Array.isArray(t)?[]:{}),e,A):e;var t}function i(e,A,i){return e.concat(A).map((function(e){return t(e,i)}))}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(A){return Object.propertyIsEnumerable.call(e,A)})):[]}(e))}function a(e,A){try{return A in e}catch(e){return!1}}function r(e,A,i){var r={};return i.isMergeableObject(e)&&n(e).forEach((function(A){r[A]=t(e[A],i)})),n(A).forEach((function(n){(function(e,A){return a(e,A)&&!(Object.hasOwnProperty.call(e,A)&&Object.propertyIsEnumerable.call(e,A))})(e,n)||(a(e,n)&&i.isMergeableObject(A[n])?r[n]=function(e,A){if(!A.customMerge)return o;var t=A.customMerge(e);return"function"==typeof t?t:o}(n,i)(e[n],A[n],i):r[n]=t(A[n],i))})),r}function o(A,n,a){(a=a||{}).arrayMerge=a.arrayMerge||i,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=t;var o=Array.isArray(n);return o===Array.isArray(A)?o?a.arrayMerge(A,n,a):r(A,n,a):t(n,a)}return o.all=function(e,A){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,t){return o(e,t,A)}),{})},Zs=o}(),Ag=h(eg);var tg=($s||($s=1,zs=function(e){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,n=void 0,a=void 0,r=[];return function(){var s=function(e){return"function"==typeof e?e():e}(A),g=(new Date).getTime(),l=!i||g-i>s;i=g;for(var c=arguments.length,d=Array(c),I=0;I'),I.innerHTML=C,g.appendChild(I),g.appendChild(l),o.appendChild(g)},A.loadingStop=function(e){var A;null==(A=this.jSPlugin.logger)||A.info(ng,"loadingStop()");var t=document.getElementById(e+"-loading-item-0");t&&document.getElementById(e+"-loading-icon")&&t.removeChild(document.getElementById(e+"-loading-icon"))},A.loadingSetText=function(e){var A,t=this;if(null==(A=this.jSPlugin.logger)||A.info(ng,"loadingSetText()"),this.loadingClearText(),document.getElementById(this.id+"-loading-item-0")){var i=document.getElementById(this.id+"-loading-item-0"),n=document.getElementById(this.id+"-loading-item-0").childNodes[1];if(n||(i.style.height="100%",(n=document.createElement("div")).innerHTML=e.text,i.appendChild(n)),n.id=this.id+"-loading-item-txt",n.innerHTML=e.text,n.style.fontSize="14px",!this.jSPlugin.isMobile&&this.jSPlugin.isCall){var a=this.jSPlugin.width/1024;n.style.fontSize=28*a+"px",n.style.marginTop="16px"}if(this.jSPlugin.isCall&&1==e.type){var r=document.getElementById(this.id+"-loading-item-txt"),o=document.createElement("div");o.style="margin-bottom: 8px;width:24px;height:24px;",o.innerHTML='\n \n \n \n \n \n \n \n ',i.insertBefore(o,r)}if(n.style.color=e.color||"#FFFFFF",n.style.padding="0 6%",n.style.textAlign="center",this.state.text=e.text,e.delayClear)var s=setTimeout((function(){t.loadingClearText(),clearTimeout(s)}),parseInt(e.delayClear))}},A.loadingSetTextWithBtn=function(e){var A,t=this;null==(A=this.jSPlugin.logger)||A.info(ng,"loadingSetTextWithBtn()"),this.loadingClear();var i=!!this.jSPlugin.Theme.call&&this.jSPlugin.Theme.call.themeData||null;(i&&(0===i.customConfig.bellPoster||"onCall"===this.jSPlugin.Theme.call.bellStatus)||e.mask)&&document.getElementById(this.id+"-loading-id-0")&&(document.getElementById(this.id+"-loading-id-0").style.background=e.maskStyle||"rgba(0,0,0,0.7)");var n=document.getElementById(this.id+"-loading-item-0");if(n){n.style.height="100%",n.style["pointer-events"]="auto";var a=document.createElement("div");if(a.id=this.id+"-loading-item-txt",a.innerHTML=e.text,a.title=e.text,a.style.color=e.color||"#FFFFFF",e.isMobile){var r=14*(this.jSPlugin.width/375);a.style.fontSize=r+"px"}else{var o=28*(this.jSPlugin.width/1024);a.style.fontSize=o+"px"}if(this.jSPlugin.isInspect&&(a.style="text-align: center; color: white; font-size: 14px; white-space: nowrap;overflow: hidden;text-overflow: ellipsis; width: 70%;"),n.appendChild(a),e.type&&2==e.type){var s=8,g=24;if(e.isMobile){g=24*(this.jSPlugin.width/375)}else{var l=this.jSPlugin.width/1024;s=l<1?16*l:16,g=40*l}var c=document.getElementById(this.id+"-loading-item-txt");(C=document.createElement("div")).style="margin-bottom: "+s+"px;width:"+g+"px;height:"+g+"px;",C.innerHTML='\n \n \n \n \n \n \n \n ',n.insertBefore(C,c)}else{var d=document.createElement("div");if(d.id=this.id+"-loading-item-btn-wrap",d.innerHTML='\n
'+e.btnName+'
\n \n \n \n ',e.isMobile)1==e.type?d.style="color:white;width:100px;height:30px;border-radius: 10px;background: rgba(255,255,255,0.25);text-align:center;line-height:30px;margin-top:9px;font-size:14px;-webkit-tap-highlight-color: transparent;":d.style="border: 1px solid rgba(204,204,204,1);color:white;width:80px;height:24px;border-radius: 12px;background: rgba(255,255,255,0.1);text-align:center;line-height:24px;margin-top:20px;font-size:12px;-webkit-tap-highlight-color: transparent;";else{var I=this.jSPlugin.width/1024;d.style="color:#648FFC;margin-top:16px;cursor: pointer;font-size:"+24*I+"px;",this.jSPlugin.isInspect&&this.jSPlugin.Theme&&"video"==this.jSPlugin.Theme.inspectMode&&(d.style="border: 1px solid rgba(255,255,255,1);color:white; cursor: pointer;text-align: center;width:80px;height:32px;border-radius:2px; text-align:center;line-height:32px;margin-top:16px;font-size:14px;-webkit-tap-highlight-color: transparent;")}if(n.appendChild(d),e.isMobile&&1==e.type){var C,h=document.getElementById(this.id+"-loading-item-txt");(C=document.createElement("div")).style="margin-bottom: 8px;width:24px;height:24px;",C.innerHTML='\n \n \n \n \n \n \n \n ',n.insertBefore(C,h)}document.getElementById(this.id+"-loading-item-btn-wrap")&&(document.getElementById(this.id+"-loading-item-btn-wrap").onclick=function(){t.jSPlugin.play(),t.loadingClear(),t.loadingStart(t.id),t.loadingSetText({text:"视频加载中"})})}this.state.text=e.text,e.delayClear&&setTimeout((function(){t.loadingClearText()}),parseInt(e.delayClear))}},A.loadingClearText=function(){var e;if(null==(e=this.jSPlugin.logger)||e.info(ng,"loadingClearText()"),document.getElementById(this.id+"-loading-item-0")){var A=document.getElementById(this.id+"-loading-item-0").childNodes;A.length>1?A[1].parentNode.removeChild(A[1]):A[0]&&A[0].parentNode.removeChild(A[0])}},A.loadingClear=function(){var e;if(null==(e=this.jSPlugin.logger)||e.info(ng,"loadingClearText()"),document.getElementById(this.id+"-loading-item-0")){for(var A=document.getElementById(this.id+"-loading-item-0").childNodes,t=A.length-1;t>=0;t--)A[t].parentNode.removeChild(A[t]);document.getElementById(this.id+"-loading-id-0")&&(document.getElementById(this.id+"-loading-id-0").style.background="none"),document.getElementById(this.id+"-loading-icon")&&document.getElementById(this.id+"-loading-icon").parentNode.removeChild(document.getElementById(this.id+"-loading-icon"))}},A.loadingEnd=function(){var e;null==(e=this.jSPlugin.logger)||e.info(ng,"loadingClearText()");var A=document.getElementById(this.id+"-loading-item-0");if(A){A.parentNode.removeChild(A);var t=document.getElementById(this.id+"-loading-id-0");t&&0===t.children.length&&t.parentNode.removeChild(t)}document.getElementById(this.id+"-loading-item-0").style.background="none"},e._instanceStyle=function(){e._STYLE||(e._STYLE=document.createElement("style"),e._STYLE.id="ezuikit-status-style",e._STYLE.innerHTML="@keyframes antRotate {to {transform: rotate(400deg);transform-origin:50% 50%;}} .loading {display: inline-block;z-index: 1000;-webkit-animation: antRotate 1s infinite linear;animation: antRotate 1s infinite linear;}",document.getElementsByTagName("head")[0].appendChild(e._STYLE))},e}(),rg="[Message]",og=function(){function e(e,A){var t;this.id=A,this.jSPlugin=e,this.timer=null,this.state={play:!1,loading:!1},null==(t=e.logger)||t.log(rg,"init")}return e.prototype.default=function(e,A){var t,i,n=this;null==(i=this.jSPlugin)||null==(t=i.logger)||t.log(rg,"default()");var a="msgId",r=A||document.getElementById(this.id+"-wrap");document.getElementById(this.id+"-"+a)&&r.removeChild(document.getElementById(this.id+"-"+a));var o=document.createElement("div");o.id=this.id+"-"+a,o.style="position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);text-align: center;padding: 4px 16px;background: #00000080;color: #FFFFFF;font-size: 14px;",o.innerHTML=e,r.appendChild(o),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){var e=document.getElementById(n.id+"-"+a);r&&e&&r.removeChild(e)}),2e3)},e}(),sg={391001:"取流地址或端口非法",391004:"连接到流媒体服务失败",395e3:"服务内部异常,请稍后重试",395400:"预览取流参数异常",395402:"设备当前时段无录像,请选择其他时间段",395403:"服务异常,请重试或联系客服",395404:"设备不在线,请优化网络后重启设备再试",395405:"设备侧网络问题,请检查优化网络后重启设备再试",395406:"token过期,请重试",395407:"客户端的URL格式错误",395409:"预览开启隐私保护",395410:"服务异常,请重试或联系客服",395411:"无权查看当前设备",395412:"服务异常,请重试或联系客服",395413:"服务异常,请重试或联系客服",395415:"设备通道错误",395416:"当前观看路数达到设备最大限制,请重启设备或联系设备售后处理",395451:"设备不支持该码流类型,请检查设备通道支持情况或联系硬件售后",395452:"设备侧网络较差,请检查优化网络后重启设备再试",395454:"设备侧网络较差,请检查优化网络后重启设备再试",395455:"设备通道异常,请检查通道配置后重试",395456:"设备通道异常,请检查通道配置后重试",395457:"服务异常,请重试或联系客服",395458:"服务异常,请重试或联系客服",395459:"服务异常,请重试或联系客服",395460:"服务异常,请重试或联系客服",395492:"服务异常,请重试或联系客服",395500:"服务异常,请重试或联系客服",395501:"服务异常,请重试或联系客服",395503:"服务异常,请重试或联系客服",395504:"服务异常,请重试或联系客服",395505:"服务异常,请重试或联系客服",395506:"暂不支持该设备直接取流,请连接NVR后重试或联系客服",395507:"设备4G无限流量套餐仅支持萤石云视频APP使用,请联系APP客服更换套餐",395530:"服务异常,请重试或联系客服",395544:"视频源不存在,请检查设备配置",395545:"服务异常,请重试或联系客服",395546:"同时观看人数达到账号最大限制,请联系客服",395547:"同时观看人数达到账号最大限制,请联系客服",395556:"服务异常,请重试或联系客服",395557:"设备取流失败,请联系硬件售后",395558:"查找录像开始时间错误",395560:"服务异常,请重试或联系客服",395561:"服务异常,请重试或联系客服",395562:"服务异常,请重试或联系客服",395563:"服务异常,请重试或联系客服",395564:"服务异常,请重试或联系客服",395566:"服务异常,请重试或联系客服",395567:"服务异常,请重试或联系客服",395568:"服务异常,请重试或联系客服",395569:"服务异常,请重试或联系客服",395600:"服务异常,请重试或联系客服",395601:"服务异常,请重试或联系客服",395602:"服务异常,请重试或联系客服",395610:"服务异常,请重试或联系客服",395620:"服务异常,请重试或联系客服",395701:"服务异常,请重试或联系客服",395702:"服务异常,请重试或联系客服",395703:"服务异常,请重试或联系客服",396001:"服务异常,请重试或联系客服",396099:"服务异常,请重试或联系客服",396101:"服务异常,请重试或联系客服",396102:"服务异常,请重试或联系客服",396103:"服务异常,请重试或联系客服",396104:"服务异常,请重试或联系客服",396105:"设备异常,请重试或联系客服",396106:"设备通道异常,请检查通道配置后重试",396107:"设备异常,请重试或联系客服",396108:"服务异常,请重试或联系客服",396109:"服务异常,请重试或联系客服",396110:"设备异常,请重试或联系客服",396501:"设备异常,请重试或联系客服",396502:"设备异常,请重试或联系客服",396503:"设备异常,请重试或联系客服",396504:"设备异常,请重试或联系客服",396505:"设备异常,请重试或联系客服",396506:"设备异常,请重试或联系客服",396508:"设备异常,请重试或联系客服",396509:"设备异常,请重试或联系客服",396510:"设备异常,请重试或联系客服",396511:"设备异常,请重试或联系客服",396512:"设备异常,请重试或联系客服",396513:"设备异常,请重试或联系客服",396514:"设备异常,请重试或联系客服",396515:"设备异常,请重试或联系客服",396516:"设备异常,请重试或联系客服",396517:"设备异常,请重试或联系客服",396518:"设备异常,请重试或联系客服",396519:"设备网络异常,请检查优化网络后重启设备再试",396520:"设备网络异常,请检查优化网络后重启设备再试",396700:"服务异常,请重试或联系客服",396701:"回放结束",397001:"服务异常,请重试或联系客服",397002:"服务异常,请重试或联系客服",397003:"服务异常,请重试或联系客服",397004:"服务异常,请重试或联系客服",397005:"设备取流连接断开,请检查网络后重试",397006:"服务异常,请重试或联系客服",397007:"服务异常,请重试或联系客服",399e3:"服务异常,请重试或联系客服",399001:"客户端网络超时",399002:"服务异常,请重试或联系客服",399016:"token失效,请更新并重试",399048:"同时观看人数达到账号最大限制,请联系客服",399049:"免费版并发数达到上限,请升级企业版使用多并发能力",3810001:"操作失败",3810002:"账号异常,操作失败",3810005:"账号异常,操作失败",3820002:"设备不存在,请检查设备连接情况",3820006:"操作失败,请检查设备网络情况",3820007:"操作失败,请检查设备网络情况",3820008:"操作过于频繁,稍后再试",3820014:"操作失败",3820032:"通道不存在请检查设备连接情况",3849999:"操作失败,请重试",386e4:"操作失败,设备不支持该操作",3860001:"操作失败,用户无权限",3860002:"设备已旋转到上限位",3860003:"设备已旋转到下限位",3860004:"设备已旋转到左限位",3860005:"设备已旋转到右限位",3860006:"操作失败,请重试",3860009:"设备正在操作中",3860020:"操作失败",BTN_RETRY:"重试",BTN_RELOAD:"重新加载",LOADING:"加载中,请稍后",TIMEFORMAT_ERROR:"时间格式有误,请确认",USE_MULTITHREADING_WARING:"您当前浏览器可以开启谷歌实验室多线程特性,获取更好播放体验,避免浏览器卡顿及崩溃,详见",OPEN_INSTRUCTIONS:"开启说明",INIT_FINSHED:"初始化播放器完成",INIT_SUCCESS:"初始化播放器成功",GET_PLAYURL_FAILED:"获取播放地址失败",VIDEO_LOADING:"视频加载中",DISCONNECT:"连接断开,请重试",DEVICE_ENCRYPTED:"设备已加密",NO_RECORD:"未找到录像片段",PLAY_FAILED:"播放失败,请检查设备及客户端网络",PLAY_SUCCESS:"播放成功",STOP_SUCCESS:"停止成功",CHANGE_PLAYURL_SUCCESS:"切换播放地址成功",CHANGE_PLAYURL_FAILED:"切换播放地址失败",GET_OSD_TIME:"获取OSD时间",GET_OSD_TIME_FAILED:"获取OSD时间失败",SET_POSTER:"设置播放器封面",RESIZE:"调整播放器尺寸",SPEED:"倍速",SPEED_RATE:"倍",SPEED_CANCEL:"取消",GET_SPEED:"获取当前播放速率",MAX_SPEED_LIMIT:"播放速度最大为4倍速度",MIN_SPEED_LIMIT:"播放速度最小为0.5倍速度",SEEK_CANNOT_CROSS_DAYS:"seek时间不能跨日期",SEEK_TIMEFORMAT_ERROR:"seek时间格式错误",PAUSE:"暂停",PAUSE_FAILED:"暂停失败",RESUME:"恢复播放",RESUME_FAILED:"恢复播放失败",CALL_END:"通话已结束",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"该设备在当天没有云录制的录像",CHANGE_VIDEO_LEVEL:"切换清晰度",CHANGE_VIDEO_LEVEL_FAIL:"切换清晰度失败",GET_VIDEO_LEVEL_LIST:"获取设备支持的清晰度列表",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"请输入正确的清度",VIDEO_LEVEL_NOT_SUPPORT:"当前设备不支持该清晰度",VIDEO_LEVEL_FLUENT:"流畅",VIDEO_LEVEL_SATNDARD:"标清",VIDEO_LEVEL_HEIGH:"高清",VIDEO_LEVEL_SPUER:"超清",VIDEO_LEVEL_EXTREME:"极清",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"重置主题",BTN_PLAY:"播放/结束播放",BTN_SOUND:"声音",BTN_RECORDVIDEO:"录屏",BTN_CAPTURE:"截图",BTN_TALK:"对讲",BTN_ZOOM:"电子放大",BTN_3D_ZOOM:"3D定位",BTN_PTZ:"云台控制",BTN_EXPEND:"全局全屏",BTN_WEBEXPEND:"网页全屏",BTN_HD:"画面清晰度",BTN_SPEED:"回放倍速",BTN_CLOUDREC:"云存储回放",BTN_CLOUDRECORD:"云录制",BTN_REC:"本地存储",DEVICE_NAME:"设备名称",DEVICE_ID:"设备序列号",CAPTURE_SUCCESS:"截图成功",CAPTURE_FAILED:"截图失败",START_RECORD_SUCCESS:"开始录制成功",START_RECORD_FAILED:"开始录制失败",STOP_RECORD_SUCCESS:"停止录制成功",STOP_RECORD_FAILED:"停止录制失败",RECORD_TIPS:"今日录像",RECORDS:"个录像",OPEN_SOUND:"开启声音",CLOSE_SOUND:"关闭声音",SOUND_OPENED:"当前已经有画面正在播放声音",ZOOM:"电子放大",START_ZOOM:"开启电子放大",CLOSE_ZOOM:"关闭电子放大",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"已经放大到最大倍数8.0X",ZOOM_SUB_MIN:"已经缩小到最小倍数1.0X",ZOOM_LIMIT_MAX:"超出最大倍率8.0X",ZOOM_LIMIT_MIN:"超出最小倍率1.0X","3D_ZOOM":"3D定位","3D_ZOOM_DISABLE":"未启用3D定位功能","3D_ZOOM_FAILED":"3D定位失败,请重试",START_3D_ZOOM:"开启3D定位",CLOSE_3D_ZOOM:"关闭3D定位",DEVICE_NOT_SUPPORT_3D_ZOOM:"当前设备不支持3D定位功能","3D_ZOOM_ACTIVED":"3D定位已处于开启状态","3D_ZOOM_NOT_ACTIVED":"未启用3D定位功能","3D_ZOOM_CLOSED":"3D定位已处于关闭状态",CHANGE_ZOOM_TYPE:"改变缩放模式",FULLSCREEN:"全局全屏",FULLSCREEN_EXIT:"退出全局全屏",GET_WEB_FULLSCREEN_STATUS:"获取浏览器网页全屏状态",WEB_FULLSCREEN:"开启网页全屏",WEB_FULLSCREEN_EXIT:"退出网页全屏",DESTROY:"销毁",GET_CAPACITY:"获取设备能力级",GET_PTZ_STATUS:"获取当前云台状态",GET_PTZ_STATUS_FAILED:"未加载Theme模块,无法获取云台状态",MOBILE_HIDE_PTZ:"移动端,非全屏状态不展示云台",OPTION_PTZ_FAILED:"未加载Theme模块,无法操作云台",MOBILE_PTZ_TIPS:"请通过操控云台来调整摄像机视角",PTZ_FAST:"快",PTZ_MID:"中",PTZ_SLOW:"慢",PTZ_SPEED:"调整云台转动速度",DEVICE_ZOOM:"控制设备放大/缩小画面",DEVICE_FOCUS:"调整设备焦距",NOT_SUPPORT_DEVICE_ZOOM:"当前设备不支持物理缩放",NOT_SUPPORT_FOCUS:"当前设备不支持变焦",MIRROR:"镜像翻转",MIRROR_TYPE_ERROR:"翻转参数类型错误",CHANGE_FEC_TYPE:"切换鱼眼矫正类型",DEVICE_NOT_SUPPORT:"设备不支持鱼眼模式",TYPE_NOT_SUPPORT:"鱼眼矫正类型暂时不支持",FEC_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正",NO_CANVAS_ID:"鱼眼矫正类型需要分屏,但是没有传正确的分屏的canvas id",SET_FEC_PARAMS:"设置3D矫正视角参数",GET_FEC_PARAMS:"获取3D矫正视角参数",SET_FEC_PARAMS_FAILED:"该矫正类型不能设置3D矫正视角参数",GET_FEC_PARAMS_FAILED:"该矫正类型不能获取3D矫正视角参数",GET_FEC_PARAMS_SUPPORT_VERSION:"当前只有V3软解支持鱼眼矫正获取3D矫正视角参数",SET_WATERMARK:"设置水印"},gg={391001:"Illegal streaming address or port",391004:"Failed to connect to streaming service",395e3:"Internal service exception, please try again later",395400:"Preview streaming parameter exception",395402:"Device has no recording in the current time period, please select another time period",395403:"Service exception, please try again or contact customer service",395404:"The device is not online, Please optimize the network and restart the device to try again",395405:"Device side network is poor, please check and optimize the network and restart the device to try again",395406:"Token expired, please try again",395407:"Client URL format error",395409:"Service exception, please try again or contact customer service",395410:"Service exception, please try again or contact customer service",395411:"No permission to view the current device",395412:"Service exception, please try again or contact customer service",395413:"Service exception, please try again or contact customer service",395415:"Device channel error",395416:"The current number of viewing channels has reached the maximum limit of the device. Please restart the device or contact the device after-sales service",395451:"The device does not support this bitstream type. Please check the device channel support or contact the hardware after-sales service",395452:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395454:"The network on the device side is poor. Please check and optimize the network and restart the device to try again",395455:"The device channel is abnormal. Please check the channel configuration and try again",395456:"The device channel is abnormal. Please check the channel configuration and try again",395457:"Service exception, please try again or contact customer service",395458:"Service exception, please try again or contact customer service",395459:"Service exception, please try again or contact customer service",395460:"Service exception, please try again or contact customer service",395492:"Service exception, please try again or contact customer service",395500:"Service exception, please try again or contact customer service",395501:"Service exception, please try again or contact customer service",395503:"Service exception, please try again or contact customer service",395504:"Service exception, please try again or contact customer service",395505:"Service exception, please try again or contact customer service",395506:"Direct streaming of this device is not supported at present, please try again or contact customer service after connecting to NVR",395507:"Device 4G unlimited traffic package only supports EZVIZ Cloud Video APP, please contact APP customer service to change the package",395530:"Service exception, please try again or contact customer service",395544:"Video source does not exist, please check device configuration",395545:"Service exception, please try again or contact customer service",395546:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395547:"The number of simultaneous viewers has reached the maximum limit of the account, please contact customer service",395556:"Service exception, please try again or contact customer service",395557:"Device streaming failed, please contact hardware after-sales",395558:"Error in finding the start time of recording",395560:"Service exception, please try again or contact customer service",395561:"Service exception, please try again or contact customer service",395562:"Service exception, please try again or contact customer service",395563:"Service exception, please try again or contact customer service",395564:"Service exception, please try again or contact customer service",395566:"Service exception, please try again or contact customer service",395567:"Service exception, please try again or contact customer service",395568:"Service exception, please try again or contact customer service",395569:"Service exception, please try again or contact customer service",395600:"Service exception, please try again or contact customer service",395601:"Service exception, please try again or contact customer service",395602:"Service exception, please try again or contact customer service",395610:"Service exception, please try again or contact customer service",395620:"Service exception, please try again or contact customer service",395701:"Service exception, please try again or contact customer service",395702:"Service exception, please try again or contact customer service",395703:"Service exception, please try again or contact customer service",396001:"Service exception, please try again or contact customer service",396099:"Service exception, please try again or contact customer service",396101:"Service exception, please try again or contact customer service",396102:"Service exception, please try again or contact customer service",396103:"Service exception, please try again or contact customer service",396104:"Service exception, please try again or contact customer service",396105:"Device abnormality, please try again or contact customer service",396106:"Device channel abnormality, please check the channel configuration and try again",396107:"Device abnormality, please try again or contact customer service",396108:"Service exception, please try again or contact customer service",396109:"Service exception, please try again or contact customer service",396110:"Device abnormality, please try again or contact customer service",396501:"Device abnormality, please try again or contact customer service",396502:"Device abnormality, please try again or contact customer service",396503:"Device abnormality, please try again or contact customer service",396504:"Device abnormality, please try again or contact customer service",396505:"Device abnormality, please try again or contact customer service",396506:"Device abnormality, please try again or contact customer service",396508:"Device abnormality, please try again or contact customer service",396509:"Device abnormality, please try again or contact customer service",396510:"Device abnormality, please try again or contact customer service",396511:"Device abnormality, please try again or contact customer service",396512:"Device abnormality, please try again or contact customer service",396513:"Device abnormality, please try again or contact customer service",396514:"Device abnormality, please try again or contact customer service",396515:"Device abnormality, please try again or contact customer service",396516:"Device abnormality, please try again or contact customer service",396517:"Device abnormality, please try again or contact customer service",396518:"Device abnormality, please try again or contact customer service",396519:"Device network abnormality, please check and optimize the network and restart the device to try again",396520:"Device network abnormality, please check and optimize the network and restart the device to try again",396700:"Service exception, please try again or contact customer service",396701:"Playback ends",397001:"Service exception, please try again or contact customer service",397002:"Service exception, please try again or contact customer service",397003:"Service exception, please try again or contact customer service",397004:"Service exception, please try again or contact customer service",397005:"Device streaming connection is disconnected, please check the network and try again",397006:"Service exception, please try again or contact customer service",397007:"Service exception, please try again or contact customer service",399e3:"Service exception, please try again or contact customer service",399001:"Client network timeout",399002:"Service exception, please try again or contact customer service",399016:"Token invalid, please update and retry",399048:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",399049:"The number of simultaneous viewers has reached the maximum account limit, please contact customer service",3810001:"Operation failed",3810002:"Account exception, operation failed",3810005:"Account exception, operation failed",3820002:"Device does not exist, please check the device connection status",3820006:"Operation failed, please check the network condition of the device",3820007:"Operation failed, please check the network condition of the device",3820008:"The operation is too frequent, please try again later",3820014:"Operation failed",3820032:"The channel does not exist. Please check the device connection status",3849999:"Operation failed, please try again",386e4:"Operation failed, the device does not support this operation",3860001:"Operation failed, user does not have permission",3860002:"The device has been rotated to the upper limit position",3860003:"The device has been rotated to the lower limit position",3860004:"The device has rotated to the left limit position",3860005:"The device has been rotated to the right limit position",3860006:"Operation failed, please try again",3860009:"The device is currently in operation",3860020:"Operation failed",BTN_RETRY:"Retry",BTN_RELOAD:"Reload",LOADING:"Loading, please wait",TIMEFORMAT_ERROR:"The time format is wrong, please confirm",USE_MULTITHREADING_WARING:"Your current browser can enable the multi-threaded feature of Google Labs to get a better playback experience and avoid browser freezes and crashes. For details, see:",OPEN_INSTRUCTIONS:"Enablement instructions",INIT_FINSHED:"Initialize the player completed",INIT_SUCCESS:"Initialize the player successfully",GET_PLAYURL_FAILED:"Failed to obtain the playback address",VIDEO_LOADING:"Video loading",DISCONNECT:"Connection disconnected, please try again",DEVICE_ENCRYPTED:"Device encrypted",NO_RECORD:"No video clips found",PLAY_FAILED:"Play failed, please check the device and client network",PLAY_SUCCESS:"Play successfully",STOP_SUCCESS:"Stop successfully",CHANGE_PLAYURL_SUCCESS:"Switch the playback address successfully",CHANGE_PLAYURL_FAILED:"Switch the playback address failed",GET_OSD_TIME:"Get OSD time",GET_OSD_TIME_FAILED:"Failed to get OSD time",SET_POSTER:"Set the player cover",RESIZE:"Adjust the player size",SPEED:"speeds",SPEED_RATE:"X",SPEED_CANCEL:"Cancel",GET_SPEED:"Get the current playback rate",MAX_SPEED_LIMIT:"The maximum playback speed is 4 times the speed",MIN_SPEED_LIMIT:"The minimum playback speed is 0.5 times the speed",SEEK_CANNOT_CROSS_DAYS:"The seek time cannot cross dates",SEEK_TIMEFORMAT_ERROR:"The seek time format is wrong",PAUSE:"Pause",PAUSE_FAILED:"Pause failed",RESUME:"Resume playback",RESUME_FAILED:"Resume playback failed",CALL_END:"Call ended",USER_DO_NOT_OWN_DEVICE:"loadingSetTextWithBtn",NO_CLOUD_RECORD:"The device has no cloud recorded video on that day",CHANGE_VIDEO_LEVEL:"Switch definition",CHANGE_VIDEO_LEVEL_FAIL:"Switch definition failed",GET_VIDEO_LEVEL_LIST:"Get the definition list supported by the device",PLEASE_INPUT_RIGHT_VIDEO_LEVEL:"Please enter the correct definition",VIDEO_LEVEL_NOT_SUPPORT:"The current device does not support this definition",VIDEO_LEVEL_FLUENT:"Fluent",VIDEO_LEVEL_SATNDARD:"Standard",VIDEO_LEVEL_HEIGH:"heigh",VIDEO_LEVEL_SPUER:"Super",VIDEO_LEVEL_EXTREME:"Extreme",VIDEO_LEVEL_3K:"3K",VIDEO_LEVEL_4k:"4K",RESET_THEME:"Reset theme",BTN_PLAY:"Play/end playback",BTN_SOUND:"Sound",BTN_RECORDVIDEO:"Screen recording",BTN_CAPTURE:"Screenshot",BTN_TALK:"Intercom",BTN_ZOOM:"Electronic zoom",BTN_3D_ZOOM:"3D positioning",BTN_PTZ:"PTZ control",BTN_EXPEND:"Global full screen",BTN_WEBEXPEND:"Web page full screen",BTN_HD:"Image definition",BTN_SPEED:"Playback speed",BTN_CLOUDREC:"Cloud storage playback",BTN_CLOUDRECORD:"Cloud recording",BTN_REC:"Local storage",DEVICE_NAME:"Device name",DEVICE_ID:"Device serial number",CAPTURE_SUCCESS:"Screenshot successful",CAPTURE_FAILED:"Screenshot failed",START_RECORD_SUCCESS:"Start recording successful",START_RECORD_FAILED:"Screenshot failed",STOP_RECORD_SUCCESS:"Stop recording successful",STOP_RECORD_FAILED:"Stop recording failed",RECORD_TIPS:"Today's recording",RECORDS:" in total",OPEN_SOUND:"Turn on sound",CLOSE_SOUND:"Turn off sound",SOUND_OPENED:"There is already a picture playing sound at the moment",ZOOM:"Electronic zoom",START_ZOOM:"Turn on electronic zoom",CLOSE_ZOOM:"Turn off electronic zoom",ZOOM_ADD:"+",ZOOM_SUB:"-",ZOOM_ADD_MAX:"It has been enlarged to a maximum magnification of 8.0X",ZOOM_SUB_MIN:"It has been reduced to the minimum multiple of 1.0X",ZOOM_LIMIT_MAX:"Exceeding maximum magnification of 8.0X",ZOOM_LIMIT_MIN:"Exceeding the minimum magnification of 1.0X","3D_ZOOM":"3D positioning","3D_ZOOM_DISABLE":"3D positioning function not enabled","3D_ZOOM_FAILED":"3D positioning failed, please try again",START_3D_ZOOM:"Turn on 3D positioning",CLOSE_3D_ZOOM:"Turn off 3D positioning",DEVICE_NOT_SUPPORT_3D_ZOOM:"Current device does not support 3D positioning function","3D_ZOOM_ACTIVED":"3D positioning is already enabled","3D_ZOOM_NOT_ACTIVED":"3D positioning function is not enabled","3D_ZOOM_CLOSED":"3D positioning is already disabled",CHANGE_ZOOM_TYPE:"Change zoom mode",FULLSCREEN:"Global full screen",FULLSCREEN_EXIT:"Exit global full screen",GET_WEB_FULLSCREEN_STATUS:"Get browser web page full screen status",WEB_FULLSCREEN:"Turn on web page full screen",WEB_FULLSCREEN_EXIT:"Exit full screen webpage",DESTROY:"Destroy",GET_CAPACITY:"Get device capability level",GET_PTZ_STATUS:"Get current PTZ status",GET_PTZ_STATUS_FAILED:"Theme module is not loaded, PTZ status cannot be obtained",MOBILE_HIDE_PTZ:"Mobile terminal, PTZ is not displayed in non-full screen state",OPTION_PTZ_FAILED:"Theme module is not loaded, PTZ cannot be operated",MOBILE_PTZ_TIPS:"Adjust camera angle by manipulating gimbal",PTZ_FAST:"F",PTZ_MID:"M",PTZ_SLOW:"S",PTZ_SPEED:"Adjust the PTZ rotation speed",DEVICE_ZOOM:"Control the device to zoom in/out of the screen",DEVICE_FOCUS:"Adjusting the device's focal length",NOT_SUPPORT_DEVICE_ZOOM:"Device does not support physical zoom",NOT_SUPPORT_FOCUS:"Device does not support adjusting the focal length",MIRROR:"Mirror flip",MIRROR_TYPE_ERROR:"Flip parameter type error",CHANGE_FEC_TYPE:"Switch fisheye correction type",DEVICE_NOT_SUPPORT:"Device does not support fisheye mode",TYPE_NOT_SUPPORT:"Fisheye correction type is not supported temporarily",FEC_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction",NO_CANVAS_ID:"Fisheye correction type requires split screen, but the correct split screen canvas id is not passed",SET_FEC_PARAMS:"Set 3D correction perspective parameters",GET_FEC_PARAMS:"Get 3D correction perspective parameters",SET_FEC_PARAMS_FAILED:"This correction type cannot set 3D correction perspective parameters",GET_FEC_PARAMS_FAILED:"This correction type cannot get 3D correction perspective parameters",GET_FEC_PARAMS_SUPPORT_VERSION:"Currently only V3 software solution supports fisheye correction Get 3D correction perspective parameters",SET_WATERMARK:"Set watermark"},lg="object"==typeof global&&global&&global.Object===Object&&global,cg="object"==typeof self&&self&&self.Object===Object&&self,dg=lg||cg||Function("return this")(),Ig=dg.Symbol,Cg=Object.prototype,hg=Cg.hasOwnProperty,ug=Cg.toString,Bg=Ig?Ig.toStringTag:void 0;var fg=Object.prototype.toString;var Eg=Ig?Ig.toStringTag:void 0;function xg(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Eg&&Eg in Object(e)?function(e){var A=hg.call(e,Bg),t=e[Bg];try{e[Bg]=void 0;var i=!0}catch(e){}var n=ug.call(e);return i&&(A?e[Bg]=t:delete e[Bg]),n}(e):function(e){return fg.call(e)}(e)}function Qg(e){return null!=e&&"object"==typeof e}function pg(e){return"symbol"==typeof e||Qg(e)&&"[object Symbol]"==xg(e)}var mg=Array.isArray,yg=Ig?Ig.prototype:void 0,_g=yg?yg.toString:void 0;function Sg(e){if("string"==typeof e)return e;if(mg(e))return function(e,A){for(var t=-1,i=null==e?0:e.length,n=Array(i);++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function nl(e){return null!=e&&il(e.length)&&!Gg(e)}var al=Object.prototype;function rl(e){return Qg(e)&&"[object Arguments]"==xg(e)}var ol=Object.prototype,sl=ol.hasOwnProperty,gl=ol.propertyIsEnumerable,ll=rl(function(){return arguments}())?rl:function(e){return Qg(e)&&sl.call(e,"callee")&&!gl.call(e,"callee")};var cl="object"==typeof exports&&exports&&!exports.nodeType&&exports,dl=cl&&"object"==typeof module&&module&&!module.nodeType&&module,Il=dl&&dl.exports===cl?dg.Buffer:void 0,Cl=(Il?Il.isBuffer:void 0)||function(){return!1},hl={};hl["[object Float32Array]"]=hl["[object Float64Array]"]=hl["[object Int8Array]"]=hl["[object Int16Array]"]=hl["[object Int32Array]"]=hl["[object Uint8Array]"]=hl["[object Uint8ClampedArray]"]=hl["[object Uint16Array]"]=hl["[object Uint32Array]"]=!0,hl["[object Arguments]"]=hl["[object Array]"]=hl["[object ArrayBuffer]"]=hl["[object Boolean]"]=hl["[object DataView]"]=hl["[object Date]"]=hl["[object Error]"]=hl["[object Function]"]=hl["[object Map]"]=hl["[object Number]"]=hl["[object Object]"]=hl["[object RegExp]"]=hl["[object Set]"]=hl["[object String]"]=hl["[object WeakMap]"]=!1;var ul,Bl="object"==typeof exports&&exports&&!exports.nodeType&&exports,fl=Bl&&"object"==typeof module&&module&&!module.nodeType&&module,El=fl&&fl.exports===Bl&&lg.process,xl=function(){try{var e=fl&&fl.require&&fl.require("util").types;return e||El&&El.binding&&El.binding("util")}catch(e){}}(),Ql=xl&&xl.isTypedArray,pl=Ql?(ul=Ql,function(e){return ul(e)}):function(e){return Qg(e)&&il(e.length)&&!!hl[xg(e)]},ml=Object.prototype.hasOwnProperty;function yl(e,A){var t=mg(e),i=!t&&ll(e),n=!t&&!i&&Cl(e),a=!t&&!i&&!n&&pl(e),r=t||i||n||a,o=r?function(e,A){for(var t=-1,i=Array(e);++t-1},Ll.prototype.set=function(e,A){var t=this.__data__,i=Nl(t,e);return i<0?(++this.size,t.push([e,A])):t[i][1]=A,this};var Gl=zg(dg,"Map");function Yl(e,A){var t,i,n=e.__data__;return("string"==(i=typeof(t=A))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?n["string"==typeof A?"string":"hash"]:n.map}function Ul(e){var A=-1,t=null==e?0:e.length;for(this.clear();++Ao))return!1;var g=a.get(e),l=a.get(A);if(g&&l)return g==A&&l==e;var c=-1,d=!0,I=2&t?new hc:void 0;for(a.set(e,A),a.set(A,e);++c=A||t<0||c&&e-g>=a}function h(){var e=Lc();if(C(e))return u(e);o=setTimeout(h,function(e){var t=A-(e-s);return c?Yc(t,a-(e-g)):t}(e))}function u(e){return o=void 0,d&&i?I(e):(i=n=void 0,r)}function B(){var e=Lc(),t=C(e);if(i=arguments,n=this,s=e,t){if(void 0===o)return function(e){return g=e,o=setTimeout(h,A),l?I(e):r}(s);if(c)return clearTimeout(o),o=setTimeout(h,A),I(s)}return void 0===o&&(o=setTimeout(h,A)),r}return A=Tg(A)||0,bg(t)&&(l=!!t.leading,a=(c="maxWait"in t)?Gc(Tg(t.maxWait)||0,A):a,d="trailing"in t?!!t.trailing:d),B.cancel=function(){void 0!==o&&clearTimeout(o),g=0,i=s=n=o=void 0},B.flush=function(){return void 0===o?r:u(Lc())},B}var Jc=Math.max;function Hc(e,A,t){var i=null==e?0:e.length;if(!i)return-1;var n=null==t?0:Mg(t);return n<0&&(n=Jc(i+n,0)),function(e,A,t){for(var i=e.length,n=t+-1;++n-1?i[n?e[a]:a]:void 0});var Vc={color:"red",backgroundColor:"red",activeColor:"red",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-0",iconId:"deviceID",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"},{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-1",iconId:"deviceName",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},jc={color:"blue",backgroundColor:"blue",activeColor:"blue",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-footer-0",iconId:"play",part:"left",defaultActive:0,isrender:0,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},Wc=function(e){this.jsPlugin=e;var A={id:e.id,isMouseDown:!1,isOver:!1,mousePosition:null,oldTime:null,nowTime:e.nowTime||null,moved:null,hoverTime:"2018-12-07 12:00:00",hoverLeft:0,timeTipShow:!1,randomNum:123,timeWidthTbls:[60,1800,3600,86400],timeUnits:["范围: 1分钟; 单位: 秒","范围: 30分钟; 单位: 分钟","范围: 1小时; 单位: 分钟","范围: 1天; 单位: 小时","范围: 3天; 单位: 小时"],drawPen:null,timeSection:[],canvasWidth:null,canvasHeight:null,timeTips:null},t=this;Object.keys(A).forEach((function(e){t[e]=A[e]})),this.options={width:this.canvasWidth,height:48,time:(new Date).getTime(),timeSection:[],timeWidth:0},this.subTime=function(e){return e<10?"0"+e:e},this.tranTime=function(e){var A=e;if(e){var t=new Date(e);A=t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()+" "+this.subTime(t.getHours())+":"+this.subTime(t.getMinutes())+":"+this.subTime(t.getSeconds())}return A},this.init=function(e){var A=this.options;return new Promise((function(i,n){e.width&&document.getElementById(e.id).setAttribute("width",parseInt(e.width,10)+"px"),t.randomNum=(Math.random()+"").split(".").join(""),t.timeWidthTblIndex=A.timeWidth;var a=document.getElementById(t.jsPlugin.id+"-canvas");t.drawPen=a.getContext("2d"),t.nowTime=e.nowTime||(new Date).setHours(0,0,0,0),t.timeSection=A.timeSection||[],t.canvasWidth=a.offsetWidth,t.canvasHeight=a.offsetHeight,t.timeLineClickable=e.timeLineClickable,t.onTimeLineClick=e.onTimeLineClick,t.updata(),document.getElementById(t.jsPlugin.id+"-canvas").addEventListener("mousemove",(function(e){t.options.readOnly||t.mousemove(e)})),document.getElementById(t.jsPlugin.id+"-canvas").addEventListener("mouseover",(function(e){t.options.readOnly||t.mouseover(e)})),document.getElementById(t.jsPlugin.id+"-canvas").addEventListener("mouseleave",(function(e){t.options.readOnly||t.mouseleave(e)})),document.getElementById(t.jsPlugin.id+"-canvas").addEventListener("mousedown",(function(e){t.options.readOnly||t.mousedown(e)})),document.getElementById(t.jsPlugin.id+"-canvas").addEventListener("mouseup",(function(A){if(!t.options.readOnly){var i=e.onChange;t.mouseUpFn(A,i)}})),i()}))},this.setWidth=function(e){e.width&&(document.getElementById(e.id).width=e.width,document.getElementById(e.id+"-canvas").width=e.width,document.getElementById(e.id+"-canvas-container").width=e.width,t.canvasWidth=e.width,t.updata({time:t.nowTime||new Date}))},this.mousemove=function(e){if(this.isMouseDown&&this.isOver){var A=this.mousePosition-e.pageX;if(0===A)return;var t=0;switch(this.timeWidth){case 60:t=.1;break;case 1800:t=3;break;case 3600:t=90;break;case 86400:t=120}var i=new Date(this.oldTime).getTime()+A*t*1e3;this.updata({time:i}),this.moved=!0}else{var n=parseInt(document.getElementById(this.jsPlugin.id+"-canvas-container").offsetLeft,10);this.mousePosition=e.pageX-n,this.updata()}},this.mousedown=function(e){this.isMouseDown=!0,this.mousePosition=e.pageX,this.oldTime=this.nowTime},this.mouseover=function(e){this.isOver=!0},this.mouseleave=function(e){this.isOver=!1,this.isMouseDown=!1,this.updata()},this.changeSize=function(e){this.options.timeWidth=e,this.updata({timeWidth:e})},this.setTimeLineClickable=function(e){this.timeLineClickable=e},this.mouseUpFn=function(e,A){if(this.isMouseDown)if(this.isMouseDown=!1,this.moved){this.moved=!1;var t=new Date(this.nowTime).getFullYear()+"/"+(new Date(this.nowTime).getMonth()+1)+"/"+new Date(this.nowTime).getDate()+" "+this.subTime(new Date(this.nowTime).getHours())+":"+this.subTime(new Date(this.nowTime).getMinutes())+":"+this.subTime(new Date(this.nowTime).getSeconds());this.nowTime=new Date(t),this.updata({time:this.nowTime}),this.oldTime=this.nowTime,A(this.nowTime)}else if(this.timeLineClickable){var i=0;switch(this.timeWidth){case 60:i=.1;break;case 1800:i=3;break;case 3600:i=90;break;case 86400:i=120}var n=this.canvasWidth/2,a=e.layerX-n>0?e.layerX-n:n-e.layerX,r=new Date(this.nowTime).getTime()+a*i*1e3;this.onTimeLineClick&&this.onTimeLineClick(r,this.nowTime)}},this.readOnly=function(e){this.options.readOnly=!0,document.getElementById(this.jsPlugin.id+"-canvas").style.cursor="not-allowed"},this.unReadOnly=function(e){this.options.readOnly=!1,document.getElementById(this.jsPlugin.id+"-canvas").style.cursor="pointer"},this.run=function(e){t.isMouseDown||t.updata(e)},this.getTime=function(e){},this.updata=function(e){e=e||{},t.nowTime=e.time||t.nowTime,t.timeSection=e.timeSection||t.timeSection,t.timeWidthTblIndex=e.timeWidth||t.timeWidthTblIndex,t.timeWidth=t.timeWidthTbls[e.timeWidth||t.timeWidthTblIndex],t.timeUnit=t.timeUnits[e.timeWidth||t.timeWidthTblIndex],0===e.timeWidth&&(t.timeWidthTblIndex=0,t.timeWidth=t.timeWidthTbls[0],t.timeUnit=t.timeUnits[0]),t.drawPen.fillStyle="#000000",t.drawPen.fillRect(0,0,t.canvasWidth,t.canvasHeight),t.timeSection.length?(t.drawScale(),t.drawRecord()):(t.drawRecord(),t.drawScale()),t.drawOtherMsg()},this.drawSolidLine=function(e,A,t,i,n,a){this.drawPen.save(),this.drawPen.strokeStyle=a,this.drawPen.lineWidth=n,this.drawPen.beginPath(),this.drawPen.moveTo(e,A),this.drawPen.lineTo(t,i),this.drawPen.stroke(),this.drawPen.restore()},this.drawString=function(e,A,t,i,n){this.drawPen.font="12px serif",this.drawPen.fillStyle="#ffffff",this.drawPen.textAlign=i||"left",this.drawPen.fillText(e,A,t+10)},this.drawScale=function(){var e=this,A="rgba(255,255,255)",t=new Date(e.nowTime),i=t.getSeconds(),n=t.getMinutes(),a=t.getHours(),r=t.getDate(),o=0;switch(e.timeWidth){case 60:var s=parseInt(e.canvasWidth/10);t.setSeconds(t.getSeconds()-parseInt(s/2,10)),r=t.getDate(),a=t.getHours(),n=t.getMinutes(),i=t.getSeconds();for(var g=0;g1e12?e[i].startTime:1e3*e[i].startTime),a=r(e[i].endTime>1e12?e[i].endTime:1e3*e[i].endTime);t.fillStyle="#1890ff80",t.fillRect(n,0,a-n,48)}else t.fillStyle="#000000",t.fillRect(0,0,A.canvasWidth,A.canvasHeight);function r(e){var t=10;switch(A.timeWidth){case 60:t=10;break;case 1800:t=20/60;break;case 3600:t=20/30/60;break;case 86400:t=.5/60}var i=A.canvasWidth/2+(e-A.nowTime)/1e3*t;return i>A.canvasWidth&&(i=A.canvasWidth),i<=0&&(i=0),i}},this.drawOtherMsg=function(){this.drawSolidLine(this.canvasWidth/2,0,this.canvasWidth/2,this.canvasHeight,2,"#1890FF"),this.drawPen.shadowBlur=0,this.isOver&&!this.isMouseDown?(this.mouseTime=this.mousePosition/this.canvasWidth*this.timeWidth*1e3+this.nowTime-this.timeWidth/2*1e3,this.mouseString=this.tranTime(this.mouseTime),this.hoverTime=this.mouseString,this.hoverLeft=this.mousePosition-60,this.timeTipShow=!0):this.timeTipShow=!1}};var Zc=function(e,A){void 0===A&&(A=0),(A<=-24||A>=24)&&(A=0);var t=60*A*60*1e3,i=e.getTime()+t;return new Date(i)},Xc=function(){function e(){}return e.formate=function(A,t,i){void 0===i&&(i=0);var n=A;"string"==typeof A?n=e.strToDate(A):"number"==typeof A&&(n=new Date(A));var a=(n=new Date(n.getTime()-3600*i*1e3)).getFullYear(),r=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0"),s=String(n.getHours()).padStart(2,"0"),g=String(n.getMinutes()).padStart(2,"0"),l=String(n.getSeconds()).padStart(2,"0");switch(t){case"YYYY-MM-DD hh:mm:ss":return a+"-"+r+"-"+o+" "+s+":"+g+":"+l;case"YYYYMMDDhhmmss":return""+a+r+o+s+g+l;case"YYYY/MM/DD hh:mm:ss":return a+"/"+r+"/"+o+" "+s+":"+g+":"+l;case"YYYYMMDDThhmmssZ":return""+a+r+o+"T"+s+g+l+"Z";case"YYYY/MM/DD":return a+"/"+r+"/"+o;case"YYYYMMDD":return""+a+r+o;case"YYYY-MM-DD":return a+"-"+r+"-"+o;case"YYYY":return""+a;case"MM":return""+r;case"DD":return""+o;case"hh:mm:ss":return s+":"+g+":"+l;case"hh":return""+s;case"mm":return""+g;case"ss":return""+l;default:throw new Error("Unsupported format type")}},e.diff=function(A,t,i){var n=A;"string"==typeof A?n=e.strToDate(A):"number"==typeof A&&(n=new Date(A));var a=t;"string"==typeof t?n=e.strToDate(t):"number"==typeof t&&(n=new Date(t));var r=n.getTime()-a.getTime();switch(i){case"year":return n.getFullYear()-a.getFullYear();case"month":var o=12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth());return n.getDate()=A.length)t&&t();else{var r=A[a];if(e.LoadedScripts.find((function(e){return e===r})))n(a+1);else{var o=document.querySelector('script[src="'+r+'"]');if(o)o.readyState?o.addEventListener("readystatechange",(function(){"complete"!=o.readyState&&"loaded"!=o.readyState||n(a+1)})):o.addEventListener("load",(function(){n(a+1)}));else{var s=document.createElement("script");s.src=r,s.setAttribute("crossorigin",!0),s.onload=function(){e.LoadedScripts.push(r),n(a+1),s=null},s.onerror=function(){i&&i(A[a]),s=null},document.head.appendChild(s)}}}}(0)},e.remove=function(A){void 0===A&&(A=[]),A.forEach((function(A){var t=document.querySelector('script[src="'+A+'"]');if(t)try{document.head.removeChild(t)}catch(e){}var i=e.LoadedScripts.indexOf(A);i>-1&&e.LoadedScripts.splice(i,1)}))},e.clear=function(){e.remove(e.LoadedScripts)},e}();td.LoadedScripts=[];var id,nd,ad="https://open.ys7.com",rd="ezuikit_addressList",od="ezuikit_reloadAddressList",sd={loggerOptions:{level:"INFO",showTime:!0,name:"ezuikit"},autoplay:!0,env:{domain:ad},host:ad.replace("https://",""),streamInfoCBType:1,videoLevelList:null},gd=[4,2,1,.5],ld=[{videoLevel:1,streamTypeIn:1,type:"compatible"},{videoLevel:2,streamTypeIn:1,type:"compatible"}],cd={0:"VIDEO_LEVEL_FLUENT",1:"VIDEO_LEVEL_SATNDARD",2:"VIDEO_LEVEL_HEIGH",3:"VIDEO_LEVEL_SPUER",4:"VIDEO_LEVEL_EXTREME",5:"VIDEO_LEVEL_3K",6:"VIDEO_LEVEL_4k"},dd={init:"init",decoderLoad:"decoderLoad",decoderLoaded:"decoderLoaded",firstFrameDisplay:"firstFrameDisplay",streamInfoCB:"streamInfoCB",videoInfo:"videoInfo",audioInfo:"audioInfo",play:"play",stop:"stop",changeVideoLevel:"changeVideoLevel",reSetTheme:"reSetTheme",changePlayUrl:"changePlayUrl",getOSDTime:"getOSDTime",capturePicture:"capturePicture",startSave:"startSave",stopSave:"stopSave",openSound:"openSound",closeSound:"closeSound",enable3DZoom:"enable3DZoom",close3DZoom:"close3DZoom",changeZoomType:"changeZoomType",setPoster:"setPoster",resize:"resize",fast:"fast",slow:"slow",speedChange:"speedChange",seek:"seek",fullscreen:"fullscreen",exitFullscreen:"exitFullscreen",fullscreenChange:"fullscreenChange",destroy:"destroy",getDeviceCapacity:"getDeviceCapacity",pause:"pause",resume:"resume",getVideoLevelList:"getVideoLevelList",setVideoLevelList:"setVideoLevelList",currentVideoLevel:"currentVideoLevel",getVideoLevel:"getVideoLevel",getPtzStatus:"getPtzStatus",getPlayRate:"getPlayRate",setMirrorFlip:"setMirrorFlip",setFECCorrectType:"setFECCorrectType",setFEC3DViewParam:"setFEC3DViewParam",getFEC3DViewParam:"getFEC3DViewParam",setWaterMarkFont:"setWaterMarkFont",volumeChange:"volumeChange",startTalk:"startTalk",stopTalk:"stopTalk",talkSuccess:"talkSuccess",talkError:"talkError",recTypeChange:"recTypeChange",recTimeChange:"recTimeChange",setLoggerOptions:"setLoggerOptions",setDisplayRegion:"setDisplayRegion",setAllDayRecTimes:"setAllDayRecTimes",setRecTimes:"setRecTimes",changeTheme:"changeTheme",date:{openDatePanel:"openDatePanel",closeDatePanel:"closeDatePanel",recStartTimeChange:"recStartTimeChange"},ptz:{openPtz:"openPtz",closePtz:"closePtz",ptzDirection:"ptzDirection",ptzSpeedChange:"ptzSpeedChange",ptzBtnClick:"ptzBtnClick"},zoom:(id={startZoom:"startZoom",closeZoom:"closeZoom",onZoomChange:"onZoomChange",openZoom:"openZoom"},id.closeZoom="closeZoom",id),timeLine:{timeWidthChange:"timeWidthChange"},http:{getCloudRecordTimes:"getCloudRecordTimes",getLocalRecTimes:"getLocalRecTimes",getCloudRecTimes:"getCloudRecTimes",getDeviceInfo:"getDeviceInfo",getDeviceList:"getDeviceList",setVideoLevel:"setVideoLevel",getDeviceSupportQuality:"getDeviceSupportQuality",getStreamAddressList:"getStreamAddressList"}},Id=function(){function e(e){if(this.jSPlugin=e,!document.getElementById(this.jSPlugin.id+"-audioControls"))return!1;this.currentTimeWidth=0,this.date=new Date,this.datepickerVisible=!1,this.seekTimer=null,this.disabled=!1,this.isSeeking=!1,this.seekFrequency=2e3,this.recList=[],this.lastDate=null,this.nowTime=null,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency),this.datepickerLang={zh:"zh-CN",en:"en-US"},this.recInit()}var A=e.prototype;return A.recInit=function(){var e,A,t,i,a=this;if(!document.getElementById(this.jSPlugin.id+"-audioControls"))return!1;this.currentTimeWidth=0;var s=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100,l=document.createElement("div");l.style="display:inline-block;height:48px;",l.id=this.jSPlugin.id+"-canvas-container",l.className="ezuikit-time-line-control";var c=document.createElement("canvas");c.id=this.jSPlugin.id+"-canvas",c.className="time-line-body",c.height="48",c.width=s,c.style="display:inline-block; margin:0; padding:0;",c.innerHTML="该浏览器不支持canvas",l.appendChild(c),o(l,document.getElementById(this.jSPlugin.id+"-audioControls"));var d=document.createElement("div");d.className="timeline-controls",d.style="display:flex;width:100px;height:48px;text-align:center;line-height: 48px;vertical-align: top;background: #000000;";var I='\n
\n \n \n add\n \n \n \n \n \n \n \n \n \n \n \n \n \n reduce\n \n \n \n \n \n \n \n \n
\n\n\n';d.innerHTML=I,o(d,l),this.timeLine=new Wc(this.jSPlugin),null==(A=this.jSPlugin)||null==(e=A.logger)||e.log("[TimeLine] init");var C=this,h=r("begin",this.jSPlugin.url)||(new Date).Format("yyyyMMdd");h=function(e,A){void 0===A&&(A=0),(A<=-24||A>=24)&&(A=0);var t=e.slice(0,4),i=e.slice(4,6),n=e.slice(6,8),a=e.slice(8,10),r=e.slice(10,12),o=e.slice(12,14),s=new Date(t,i-1,n,a,r,o);s.setHours(s.getHours()+A),s>new Date&&(s=new Date);var g=s.getFullYear(),l=("0"+(s.getMonth()+1)).slice(-2),c=("0"+s.getDate()).slice(-2),d=("0"+s.getHours()).slice(-2),I=("0"+s.getMinutes()).slice(-2),C=("0"+s.getSeconds()).slice(-2);return new Date(g+"/"+l+"/"+c+" "+d+":"+I+":"+C)}(h,r("timeZone",this.jSPlugin.url)?parseInt(r("timeZone",this.jSPlugin.url)):0),this.date=h.Format("yyyy-MM-dd"),this.timeLine.init({id:this.jSPlugin.id+"-canvas",width:s,nowTime:this.nowTime,timeLineClickable:this.jSPlugin.timeLineClickable,onTimeLineClick:this.jSPlugin.onTimeLineClick,onChange:function(e){if("rec"!==g(a.jSPlugin.url).type||new Date(e).Format("yyyy-MM-dd")==C.date){var A=new Date(e).Format("yyyyMMddhhmmss");if(a.jSPlugin.Theme&&a.jSPlugin.Theme.decoderState.state.recordvideo&&(a.jSPlugin.Theme.setDecoderState({recordvideo:!1}),"cloud.rec"===g(a.jSPlugin.url).type&&a.jSPlugin.stopSave()),"cloud.rec"===g(a.jSPlugin.url).type||a.jSPlugin.useSeek&&a.jSPlugin.capacity&&"1"==a.jSPlugin.capacity.support_seek_playback){if(!a.isSeeking)if(C.recList.length>0)if(C.lastDate&&new Date(e).valueOf()>=C.lastDate)a.jSPlugin.pluginStatus.loadingSetText({text:"seek回放未找到录像片段",color:"red",delayClear:2e3});else a.jSPlugin.Theme.decoderState.state.play?a.unSyncTimeLine().then((function(){a.isSeeking=!0,a.jSPlugin.pluginStatus.loadingStart(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),a.jSPlugin.pluginStatus.loadingSetText({text:a.jSPlugin.i18n.t("LOADING")}),a.jSPlugin.Theme.setDisabled(!0),a.jSPlugin._tempSeekTime=e,a.jSPlugin.seek(A.substr(8,6),"235959").then((function(){var A=setInterval((function(){a.jSPlugin._destroy?clearInterval(A):a.jSPlugin.getOSDTime().then((function(t){var i=new Date(e).valueOf()/1e3;if(t.data>=i-2){a.isSeeking=!1,a.syncTimeLine(),clearInterval(A),a.jSPlugin.pluginStatus.loadingStop(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),a.jSPlugin.pluginStatus.loadingClear(),a.jSPlugin.Theme.setDisabled(!1),a.jSPlugin._tempSeekTime=null,C.jSPlugin.waterMark_JSPlugin&&C.jSPlugin.setWaterMarkFont(C.jSPlugin.waterMark_JSPlugin);var n,r=a.jSPlugin.Theme.decoderState.state.sound,o=Ad.getInstance(a.jSPlugin.id);if(r&&o.getState().sound&&setTimeout((function(){a.jSPlugin.openSound()}),500),C.jSPlugin.eventEmitter)null==(n=C.jSPlugin.eventEmitter)||n.emit(dd.recTimeChange,{code:0,data:{time:new Date(e).Format("yyyyMMddhhmmss")}})}}))}),1e3)}))})):a.unSyncTimeLine().then((function(){a.jSPlugin.pluginStatus.loadingStart(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),a.jSPlugin.pluginStatus.loadingSetText({text:a.jSPlugin.i18n.t("LOADING")}),a.jSPlugin.Theme.setDisabled(!0);var t=a.jSPlugin.url;t.indexOf("begin")>-1?t=t.replace(/(begin=)(\d+)/,(function(e,t,i){return t+A})):t+="?begin="+A,a.jSPlugin.play({url:t}).then((function(){var A;(a.syncTimeLine(),a.jSPlugin.pluginStatus.loadingStop(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),a.jSPlugin.pluginStatus.loadingClear(),a.jSPlugin.Theme.setDisabled(!1),C.jSPlugin.waterMark_JSPlugin&&C.jSPlugin.setWaterMarkFont(C.jSPlugin.waterMark_JSPlugin),C.jSPlugin.eventEmitter)&&(null==(A=C.jSPlugin.eventEmitter)||A.emit(dd.recTimeChange,{code:0,data:{time:new Date(e).Format("yyyyMMddhhmmss")}}))})).catch((function(e){}))}))}else{var t=function(){setTimeout((function(){a.disabled=!1}),a.seekFrequency)},i=function(t){a.disabled=!0,a.unSyncTimeLine().then((function(){a.jSPlugin.pluginStatus.loadingStart(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),a.jSPlugin.pluginStatus.loadingSetText({text:a.jSPlugin.i18n.t("LOADING")}),a.jSPlugin.Theme.setDisabled(!0);var i=a.jSPlugin.url;i.indexOf("begin")>-1?i=i.replace(/(begin=)(\d+)/,(function(e,t,i){return t+A})):i+="?begin="+A,a.jSPlugin.play({url:i,unSaveUrl:!0,showPoster:!0}).then((function(){var A;(t&&t(),a.syncTimeLine(),a.jSPlugin.pluginStatus.loadingStop(a.jSPlugin.id),a.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),a.jSPlugin.pluginStatus.loadingClear(),a.jSPlugin.Theme.setDisabled(!1),C.jSPlugin.waterMark_JSPlugin&&C.jSPlugin.setWaterMarkFont(C.jSPlugin.waterMark_JSPlugin),a.jSPlugin.Theme.decoderState.state.sound&&a.jSPlugin.openSound(),C.jSPlugin.eventEmitter)&&(null==(A=C.jSPlugin.eventEmitter)||A.emit(dd.recTimeChange,{code:0,data:{time:new Date(e).Format("yyyyMMddhhmmss")}}))})).catch((function(e){}))})),a.jSPlugin.Theme&&a.jSPlugin.Theme.decoderState&&a.jSPlugin.Theme.decoderState.state&&a.jSPlugin.Theme.decoderState.state.zoom&&(a.jSPlugin.Theme.setDecoderState({zoom:!1}),a.jSPlugin.Zoom.stopZoom())};a.disabled?(a.seekTimer&&clearTimeout(a.seekTimer),a.seekTimer=setTimeout((function(){i(t)}),a.seekFrequency)):i(t)}}else{var n;C.jSPlugin.eventEmitter&&(null==(n=C.jSPlugin.eventEmitter)||n.emit(dd.recTimeChange,{code:-1,data:{time:new Date(e).Format("yyyyMMddhhmmss")},msg:"本地SD卡不支持跨天回放"}))}}}).then((function(){var e;null==(e=C.jSPlugin)||e.eventEmitter.on(dd.setAllDayRecTimes,(function(e){var A=new Date(new Date(C.date).Format("yyyy-MM-dd 00:00:00").replace(/-/g,"/")).getTime(),t=new Date(new Date(A).Format("yyyy-MM-dd 23:59:59").replace(/-/g,"/")).getTime();A=new Date(Zc(new Date(A),C.jSPlugin.timeZone)).getTime(),t=new Date(Zc(new Date(t),C.jSPlugin.timeZone)).getTime(),C.timeLine.getRecord(e.list,A,t),Array.isArray(e.list)&&e.list.length>0&&(C.recList=e.list,C.lastDate=1e3*e.list[e.list.length-1].endTime)})),a.syncTimeLine()}));var u,B,f=null==(i=document.getElementById(this.jSPlugin.id+"-wrap"))||null==(t=i.classList)?void 0:t.contains("ezuikit-player-wrap-mobile-fullscreen");if(document.getElementById(this.jSPlugin.id+"-canvas-container")&&!this.jSPlugin._isCurrentBrowserFullscreen&&!f){var E=parseInt(document.getElementById(this.jSPlugin.id+"-canvas-container").clientHeight);this.jSPlugin.jSPlugin.JS_Resize(this.jSPlugin.width,this.jSPlugin.height-E,!0)}u=C.jSPlugin,B=document.getElementById(u.id+"-wrap"),n(u.staticPath+"/rec/datepicker.min.css"),td.append([u.staticPath+"/rec/jquery.min.js",u.staticPath+"/rec/datepicker.js",u.staticPath+"/rec/datepicker."+C.datepickerLang[u.language]+".js"],(function(){var e=B.getElementsByClassName("datepicker-container")[0],A=new Date;try{var t,i,n,a;(null==(i=u.urlInfo)||null==(t=i.searchParams)?void 0:t.begin)&&(A=new Date(Xc.formate(null==(a=u.urlInfo)||null==(n=a.searchParams)?void 0:n.begin,"YYYY/MM/DD hh:mm:ss")))}catch(e){}!e&&$("#"+u.id+"-datepicker").datepicker&&$("#"+u.id+"-datepicker").datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:C.datepickerLang[u.language],date:new Date(A),format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:B}),(e=B.getElementsByClassName("datepicker-container")[0])&&(e.style.display="none"),C.datepickerVisible=!1,$("#"+u.id+"-datepicker").off("pick.datepicker").on("pick.datepicker",(function(A){if(A.date>new Date||new Date(A.date).Format("yyyyMMddhhmmss")===new Date(document.getElementById(u.id+"-datepicker").value).Format("yyyyMMdd"))A.preventDefault();else{var t,i=new Date(A.date).Format("yyyy-MM-dd");document.getElementById(u.id+"-datepicker").value=i,null==(t=C.jSPlugin.eventEmitter)||t.emit(dd.date.recStartTimeChange,{code:0,data:{time:i.replace(/-/gi,"/")}}),u.Theme.decoderState&&u.Theme.decoderState.state?u.Theme.decoderState.state.cloudRec?u.changePlayUrl({begin:new Date(A.date).Format("yyyyMMddhhmmss"),type:"cloud.rec"},(function(){}),!1).then((function(e){C.jSPlugin.Theme.decoderState.state.sound&&C.jSPlugin.openSound()})):u.Theme.decoderState.state.rec?u.changePlayUrl({begin:new Date(A.date).Format("yyyyMMddhhmmss"),type:"rec"},(function(){}),!1).then((function(e){C.jSPlugin.Theme.decoderState.state.sound&&C.jSPlugin.openSound()})).catch((function(e){})):u.changePlayUrl({begin:new Date(A.date).Format("yyyyMMddhhmmss")},(function(){}),!1).then((function(e){C.jSPlugin.Theme.decoderState.state.sound&&C.jSPlugin.openSound()})):u.changePlayUrl({begin:new Date(A.date).Format("yyyyMMddhhmmss")},(function(){}),!1).then((function(e){C.jSPlugin.Theme.decoderState.state.sound&&C.jSPlugin.openSound()})),C.date=i}e&&(e.style.display="none"),C.datepickerVisible=!1,u.Theme&&u.Theme.decoderState&&u.Theme.decoderState.state&&u.Theme.decoderState.state.zoom&&(u.Theme.setDecoderState({zoom:!1}),u.Zoom.stopZoom())})),$("#"+u.id+"-datepicker").off("click").on("click",(function(A){var t,i;C.datepickerVisible?e&&(e.style.display="none",null==u||null==(t=u.eventEmitter)||t.emit(dd.date.closeDatePanel)):e&&(e.style.display="inline",null==u||null==(i=u.eventEmitter)||i.emit(dd.date.openDatePanel)),C.datepickerVisible=!C.datepickerVisible}))}),(function(){})),document.getElementById(this.jSPlugin.id+"-timeline-scale-add").onclick=function(){a.unSyncTimeLine().then((function(){var e,A;a.currentTimeWidth<3&&(a.timeLine.changeSize(++a.currentTimeWidth),null==(A=a.jSPlugin)||null==(e=A.eventEmitter)||e.emit(dd.timeLine.timeWidthChange,a.currentTimeWidth));a.syncTimeLine()}))},document.getElementById(this.jSPlugin.id+"-timeline-scale-sub").onclick=function(){a.unSyncTimeLine().then((function(){var e,A;a.currentTimeWidth>0&&(a.timeLine.changeSize(--a.currentTimeWidth),null==(A=a.jSPlugin)||null==(e=A.eventEmitter)||e.emit(dd.timeLine.timeWidthChange,a.currentTimeWidth));a.syncTimeLine()}))},this.observer=new MutationObserver((function(e,A){}));var x=document.getElementById(""+this.jSPlugin.id);this.observer.observe(x,{attributes:!0,attributeOldValue:!0,attributeFilter:["style"]})},A.destroy=function(){var e,A;Ad.listInstances().length<=1&&(a(this.jSPlugin.staticPath+"/rec/datepicker.min.css"),td.remove([this.jSPlugin.staticPath+"/rec/jquery.min.js",this.jSPlugin.staticPath+"/rec/datepicker.js",this.jSPlugin.staticPath+"/rec/datepicker."+this.datepickerLang[this.jSPlugin.language]+".js"]),null==(A=this.jSPlugin)||null==(e=A.logger)||e.log("[Rec]","destroy"))},A.datepickerHide=function(){var e=document.getElementById(this.jSPlugin.id+"-wrap");if(e){var A=e.getElementsByClassName("datepicker-container")[0];A&&(A.style.display="none")}this.datepickerVisible=!1},A.datepickerShow=function(){var e=document.getElementById(this.jSPlugin.id+"-wrap");e&&(e.getElementsByClassName("datepicker-container")[0].style.display="inline");this.datepickerVisible=!0},A.recAutoSize=function(e){var A=this,t=this,i=parseInt(getComputedStyle(document.getElementById(t.jSPlugin.id)).width,10)-100;document.getElementById(this.jSPlugin.id+"-canvas")&&i!==parseInt(document.getElementById(t.jSPlugin.id+"-canvas").width)&&t.unSyncTimeLine().then((function(){t.timeLine.setWidth({id:""+A.jSPlugin.id,width:i}),t.syncTimeLine(),e&&e()}))},A.syncTimeLine=function(){var e=this;this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer),window.recTimer?Array.isArray(window.recTimer[this.jSPlugin.id])&&window.recTimer[this.jSPlugin.id].map((function(e){clearInterval(e)})):window.recTimer={},window.recTimer[this.jSPlugin.id]=[];var A=this;this.jSPlugin.recTimer=setInterval((function(){A.jSPlugin.getOSDTime().then((function(t){var i=t.data;if(-1===i);else if(i>0){var n=new Date(i>1e12?i:1e3*i);e.nowTime=n,A.timeLine.run({time:n})}})).catch((function(e){var t=A.jSPlugin.Theme.decoderState.state.pauseDate;A.timeLine.run({time:A.timeLine.nowTime||t})}))}),1e3),window.recTimer[this.jSPlugin.id].push(this.jSPlugin.recTimer)},A.unSyncTimeLine=function(){var e=this;return new Promise((function(A,t){e.jSPlugin.recTimer&&(clearInterval(e.jSPlugin.recTimer),e.jSPlugin.recTimer=null),window.recTimer?Array.isArray(window.recTimer[e.jSPlugin.id])&&(window.recTimer[e.jSPlugin.id].map((function(e){clearInterval(e)})),window.recTimer[e.jSPlugin.id]=[]):window.recTimer={},A()}))},e}(),Cd={exports:{}};var hd=(nd||(nd=1,function(e){!function(){var A="undefined"!=typeof window&&void 0!==window.document?window.document:{},t=e.exports,i=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,n=t.length,a={};i9?A:"0"+A)+":"+(t>9?t:"0"+t)},this.timeToMinute=function(e){var A=e.split(":");return 60*Number(A[0])+Number(A[1])},this.getPlayParam=e.getPlayParam,this.checkIsAppleDevice=function(){var e=navigator.userAgent,A=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),t=e.indexOf("iPad")>-1,i=e.indexOf("iPhone")>-1||e.indexOf("Mac")>-1;return!!(A||t||i)},this.checkIsHarmonyOS=function(){return navigator.userAgent.indexOf("ohos")>-1},this.checkIsHarmonyOS()?(document.getElementById("time-line-item")&&document.getElementById("time-line-item").parentNode.addEventListener("touchstart",(function(){if(A.state.disabled)return!1;e.ontouchstart()}),!1),document.getElementById("time-line-item")&&document.getElementById("time-line-item").parentNode.addEventListener("touchmove",(function(){if(A.state.disabled)return!1;e.ontouchmove()}),!1),document.getElementById("time-line-item")&&document.getElementById("time-line-item").parentNode.addEventListener("touchend",(function(){if(A.state.disabled)return!1;var t;new Promise((function(e,A){var i=-1;t=setInterval((function(){var A,n,a=null==(n=document.getElementById("time-line-item"))||null==(A=n.parentNode)?void 0:A.scrollTop;a!==i?i=a:(clearInterval(t),e(a))}),100)})).then((function(e){A.rectTopTotime(e),A.getPlayParam({current:A.state.current})})),e.ontouchend()}),!1)):(document.getElementById("time-line-item")&&(document.getElementById("time-line-item").parentNode.ontouchstart=function(){if(A.state.disabled)return!1;e.ontouchstart()}),document.getElementById("time-line-item")&&(document.getElementById("time-line-item").parentNode.ontouchmove=function(){if(A.state.disabled)return!1;e.ontouchmove()}),document.getElementById("time-line-item")&&(document.getElementById("time-line-item").parentNode.ontouchend=function(){if(A.state.disabled)return!1;var t;new Promise((function(e,A){var i=-1;t=setInterval((function(){var A,n,a=null==(n=document.getElementById("time-line-item"))||null==(A=n.parentNode)?void 0:A.scrollTop;a!==i?i=a:(clearInterval(t),e(a))}),100)})).then((function(e){A.rectTopTotime(e),A.getPlayParam({current:A.state.current})})),e.ontouchend()})),this.matchTimeDot()};Bd.prototype.changeScale=function(e){this.setState({timelag:e}),this.matchTimeDot()},Bd.prototype.setDateLine=function(e,A){if(e.length>0){void 0===A&&(A=e.length-1);var t=this.state.current;this.setState({availTimeLine:e,start:e[A].st,end:e[A].et,current:0===t?e[A].st:t}),this.matchRecTimeDot(),this.primaryOffsetH()}else this.setState({availTimeLine:[]}),this.matchRecTimeDot()},Bd.prototype.matchTimeDot=function(){var e=this.state;e.start;var A=e.end,t=e.timelag;e.availTimeLine;for(var i=[],n=this.timeToMinute(A),a=n=Math.floor(n/t)*t;a>=0;){var r=0,o=0;a==n&&(r=70),0==a&&(o=230);var s=this.minuteToTime(a);i.push({id:a,current:s,label:"a"+a,marginTop:r,marginBottom:o,recArr:[]}),a-=t}this.setState({timeArr:i}),this.renderDateLine()},Bd.prototype.matchRecTimeDot=function(){var e=this.state;e.start,e.end;var A=e.timelag,t=e.availTimeLine,i=e.timeArr,n=t.length;if(0===n)for(var a=0;as&&i[a].id'})),n+="
'+e.current+"
",i.innerHTML=n,t.appendChild(i)}))},Bd.prototype.primaryOffsetH=function(){var e=this.state,A=e.start,t=e.timelag,i=e.timeArr,n=e.current,a=i[0].current,r=this.timeToSecond(a)-this.timeToSecond(0===n?A:n),o=Math.ceil(r/t)+60;this.setState({scrollTop:o})},Bd.prototype.currentOffsetH=function(){var e=this.state,A=e.current,t=e.timelag,i=e.timeArr[0].current,n=this.timeToSecond(i)-this.timeToSecond(A),a=Math.ceil(n/t)+60;this.setState({scrollTop:a})},Bd.prototype.rectTopTotime=function(e){var A,t,i=this.state.timelag,n=Math.floor(e/60),a=e-60*n;if(0==a)A=this.state.timeArr[n-1].current,t=0;else{var r=this.state.timeArr[n].current,o=this.timeToMinute(r),s=(60-a)*i,g=Math.floor(s/60)+o,l=60*Math.floor(s/60);t=Math.ceil(s-l),A=this.minuteToTime(g)}this.setState({current:A+":"+(t>9?t:"0"+t),scrollTop:e})},Bd.prototype.stepScrollTimeLine=function(e){this.setState({current:e}),this.currentOffsetH()},Bd.prototype.secondCountDown=function(e){var A=this.state.current.split(":"),t=60*Number(A[0])*60+60*Number(A[1])+Number(A[2])+1,i=Math.floor(t/3600),n=Math.floor((t-3600*i)/60),a=t-3600*i-60*n;this.setState({current:(i>9?i:"0"+i)+":"+(n>9?n:"0"+n)+":"+(a>9?a:"0"+a)})};var fd=Bd;function Ed(e){10===(e+"").length&&(e*=1e3);var A=new Date(e),t=A.getHours(),i=A.getMinutes(),n=A.getSeconds();return(t>9?t:"0"+t)+":"+(i>9?i:"0"+i)+":"+(n>9?n:"0"+n)}Date.prototype.Format=function(e){var A={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),A)new RegExp("("+t+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?A[t]:("00"+A[t]).substr((""+A[t]).length)));return e};var xd=function(){function e(A,t,i){var n;if(null==A||null==(n=A.logger)||n.log("[MobileRec] init"),this.changeRecSpeed=t,this.resetMobileZoomStatus=i,this.isMobile=!0,this.jSPlugin=A,this.date=(new Date).Format("yyyy-MM-dd"),this.begin=((new Date).Format("yyyy-MM-dd")+" 00:00:00").replace(/-/g,"/"),this.end=((new Date).Format("yyyy-MM-dd")+" 23:59:59").replace(/-/g,"/"),this.initBegin=null,this.initEnd=null,this.type=g(this.jSPlugin.url).type,this.operating=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.recList=[],this.isSeeking=!1,this.datepickerLang={zh:"zh-CN",en:"en-US"},this.datepickerVisible=!1,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency),e._instanceStyle(),r("begin",this.jSPlugin.url)){var a=r("begin",this.jSPlugin.url);this.date=a.slice(0,4)+"/"+a.slice(4,6)+"/"+a.slice(6,8),this.begin=this.date+" "+(a.slice(8,10)||"00")+":"+(a.slice(10,12)||"00")+":"+(a.slice(12,14)||"00"),this.end=this.date+" 23:59:59",this.initBegin=this.begin}if(r("end",this.jSPlugin.url)){var o=r("end",this.jSPlugin.url);this.end=this.date+" "+(o.slice(8,10)||"23")+":"+(o.slice(10,12)||"59")+":"+(o.slice(12,14)||"59"),this.initEnd=this.end}this.recInit()}var i=e.prototype;return i.recInit=function(){this.createDom(),this.initTimeLine(),this.injectJsCss(this.jSPlugin),this.syncTimeLine(),this.bindEvent()},i.injectJsCss=function(e){this.unInjectJsCss();var t=this,i=document.getElementById(e.id+"-wrap");n(e.staticPath+"/rec/datepicker.min.css"),A(e.staticPath+"/rec/jquery.min.js",(function(e){A(e.staticPath+"/rec/datepicker.js",(function(e){A(e.staticPath+"/rec/datepicker."+t.datepickerLang[e.language]+".js",(function(e){var A=i.getElementsByClassName("datepicker-container")[0];!A&&$("#"+e.id+"-datepicker").datepicker&&$("#"+e.id+"-datepicker").datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:t.datepickerLang[e.language],date:new Date(r("begin",e.params.url).replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3"))||new Date,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:i}),(A=i.getElementsByClassName("datepicker-container")[0])&&(A.style.display="none",A.style.bottom="-314px",A.style.right="0px"),t.datepickerVisible=!1,$("#"+e.id+"-datepicker").on("pick.datepicker",(function(i){var n={begin:new Date(i.date).Format("yyyyMMddhhmmss")};if(t.begin=i.date,t.end=new Date(i.date).Format("yyyy-MM-dd")+" 23:59:59",i.date>new Date||new Date(i.date).Format("yyyyMMdd")===new Date(document.getElementById(e.id+"-datepicker").getAttribute("data-value")).Format("yyyyMMdd"))i.preventDefault();else{var a=new Date(i.date).Format("yyyy/MM/dd");document.getElementById(e.id+"-datepicker")&&document.getElementById(e.id+"-datepicker").setAttribute("data-value",a),t.date=a,e.eventEmitter.emit(dd.date.recStartTimeChange,{code:0,data:{time:a}}),e.Theme.decoderState&&e.Theme.decoderState.state&&(e.Theme.decoderState.state.cloudRec?n={begin:new Date(i.date).Format("yyyyMMddhhmmss"),type:"cloud.rec"}:e.Theme.decoderState.state.rec&&(n={begin:new Date(i.date).Format("yyyyMMddhhmmss"),type:"rec"}))}e.changePlayUrl(n,(function(){}),!1).then((function(){setTimeout((function(){var e=document.getElementById("date");e&&(e.value=new Date(i.date).Format("yyyy-MM-dd"))}),0),t.jSPlugin.Theme.decoderState.state.sound&&t.jSPlugin.openSound(),t.syncTimeLine()})),t.changeRecSpeed(1),t.resetMobileZoomStatus(),A&&(A.style.display="none"),t.datepickerVisible=!1})),$("#"+e.id+"-datepicker").off("click").on("click",(function(i){var n,a;t.datepickerVisible?A&&(A.style.display="none",null==e||null==(n=e.eventEmitter)||n.emit(dd.date.closeDatePanel)):A&&(A.style.display="inline",null==e||null==(a=e.eventEmitter)||a.emit(dd.date.openDatePanel));t.datepickerVisible=!t.datepickerVisible})),document.getElementById("date-picker")&&document.getElementById("date-picker").addEventListener("focus",(function(e){e.target.blur()}))}),(function(){}),e)}),(function(){}),e)}),(function(){}),e)},i.createDom=function(){var e=document.createElement("div");e.id="date-switch-container-wrap",e.className="date-switch-container-wrap",e.style="",e.innerHTML='\n
\n
'+this.jSPlugin.i18n.t("RECORD_TIPS")+'
\n
\n \n
\n
\n
\n ',o(e,document.getElementById(this.jSPlugin.id+"-wrap"));var A=document.createElement("div");A.id="rec-type-container-wrap",A.className="rec-type-container-wrap",A.style="",A.innerHTML='\n
\n
'+this.recList.length+""+this.jSPlugin.i18n.t("RECORDS")+'
\n
\n \n
\n
\n ',o(A,e);var t=document.createElement("div");t.id="mobile-rec-wrap",t.className="mobileRec-wrap",t.style="",t.innerHTML='\n
\n
\n
00:00:00
\n
\n
\n
\n
\n
\n
\n ',o(t,A)},i.initTimeLine=function(){var e,A,t,i=this;null==(A=this.jSPlugin)||null==(e=A.logger)||e.log("[TimeLine] init"),this.TimeLineOBJ=new fd({id:"time-line-item",getPlayParam:function(e){var A=i,t=e.current,n=new Date(i.date).Format("yyyyMMdd").substr(0,8)+(e.current?t.replace(/:/g,""):e.current.replace(/:/g,""));if("cloud.rec"===i.type||i.jSPlugin.useSeek&&i.jSPlugin.capacity&&"1"==i.jSPlugin.capacity.support_seek_playback){if(!i.isSeeking)if(A.recList.length>0)if(new Date(i.date+" "+e.current).valueOf()>=A.lastDate)i.jSPlugin.pluginStatus.loadingSetText({text:"seek回放未找到录像片段",color:"red",delayClear:2e3}),i.syncTimeLine();else i.jSPlugin.Theme.decoderState.state.play?i.unSyncTimeLine().then((function(){i.isSeeking=!0,i.jSPlugin.pluginStatus.loadingStart(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),i.jSPlugin.pluginStatus.loadingSetText({text:i.jSPlugin.i18n.t("LOADING")}),i.jSPlugin.Theme.setDisabled(!0),i.jSPlugin.seek(n.substr(8,6),"235959").then((function(){var e=setInterval((function(){i.jSPlugin.getOSDTime().then((function(t){new Date(1e3*t.data).Format("yyyyMMddhhmmss")>=n&&(i.isSeeking=!1,i.syncTimeLine(),clearInterval(e),i.jSPlugin.pluginStatus.loadingStop(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),i.jSPlugin.pluginStatus.loadingClear(),i.jSPlugin.Theme.setDisabled(!1),i.jSPlugin.waterMark_JSPlugin&&A.jSPlugin.setWaterMarkFont(A.jSPlugin.waterMark_JSPlugin),A.jSPlugin.Theme.decoderState.state.sound&&A.jSPlugin.openSound())}))}),500)}))})):i.unSyncTimeLine().then((function(){i.jSPlugin.pluginStatus.loadingStart(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),i.jSPlugin.pluginStatus.loadingSetText({text:i.jSPlugin.i18n.t("LOADING")}),i.jSPlugin.Theme.setDisabled(!0);var e=i.jSPlugin.url;e.indexOf("begin")>-1?e=e.replace(/(begin=)(\d+)/,(function(e,A,t){return A+n})):e+="?begin="+n,i.jSPlugin.play({url:e}).then((function(){i.syncTimeLine(),i.jSPlugin.pluginStatus.loadingStop(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),i.jSPlugin.pluginStatus.loadingClear(),i.jSPlugin.Theme.setDisabled(!1),A.jSPlugin.waterMark_JSPlugin&&A.jSPlugin.setWaterMarkFont(A.jSPlugin.waterMark_JSPlugin)})).catch((function(e){}))}))}else{var a=function(){setTimeout((function(){i.disabled=!1}),i.seekFrequency)},r=function(e){i.disabled=!0,i.unSyncTimeLine().then((function(){i.jSPlugin.pluginStatus.loadingStart(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!0}),i.jSPlugin.pluginStatus.loadingSetText({text:i.jSPlugin.i18n.t("LOADING")}),i.jSPlugin.Theme.setDisabled(!0);var t=i.jSPlugin.url;t.indexOf("begin")>-1?t=t.replace(/(begin=)(\d+)/,(function(e,A,t){return A+n})):t+="?begin="+n,i.jSPlugin.play({url:t,unSaveUrl:!0,showPoster:!0}).then((function(){e&&e(),i.syncTimeLine(),i.jSPlugin.pluginStatus.loadingStop(i.jSPlugin.id),i.jSPlugin.pluginStatus.setPlayStatus({loading:!1}),i.jSPlugin.pluginStatus.loadingClear(),i.jSPlugin.Theme.setDisabled(!1),A.jSPlugin.waterMark_JSPlugin&&A.jSPlugin.setWaterMarkFont(A.jSPlugin.waterMark_JSPlugin),i.jSPlugin.Theme.decoderState.state.sound&&i.jSPlugin.openSound()})).catch((function(e){}))})),i.jSPlugin.Theme&&i.jSPlugin.Theme.decoderState&&i.jSPlugin.Theme.decoderState.state&&i.jSPlugin.Theme.decoderState.state.zoom&&(i.jSPlugin.Theme.setDecoderState({zoom:!1}),i.jSPlugin.Zoom.stopZoom())};i.disabled?(i.seekTimer&&clearTimeout(i.seekTimer),i.seekTimer=setTimeout((function(){r(a)}),i.seekFrequency)):r(a)}},ontouchstart:function(){i.operating=!0,i.unSyncTimeLine()},ontouchmove:function(){0==i.operating&&(i.operating=!0,i.unSyncTimeLine())},ontouchend:function(){i.operating=!1}}),this.TimeLineOBJ.setDateLine(this.recList),null==(t=this.jSPlugin)||t.eventEmitter.on(dd.setAllDayRecTimes,(function(e){if(Array.isArray(e.list)){var A=e.list.length;document.getElementById("recCount")&&(document.getElementById("recCount").innerHTML=A);for(var t=[],n=A-1;n>=0;n--){var a=e.list[n],r=Ed(a.endTime),o=Ed(a.startTime);t.push({st:o,et:r})}i.TimeLineOBJ.setDateLine(t),e.list.length>0&&(i.recList=t,i.lastDate=1e3*e.list[e.list.length-1].endTime)}}))},i.unInjectJsCss=function(){Ad.listInstances().length<=1&&(a(this.jSPlugin.staticPath+"/rec/datepicker.min.css"),t(this.jSPlugin.staticPath+"/rec/jquery.min.js"),t(this.jSPlugin.staticPath+"/rec/datepicker.js"),t(this.jSPlugin.staticPath+"/rec/datepicker."+this.datepickerLang[this.jSPlugin.language]+".js"))},i.destroy=function(){var e,A;null==(A=this.jSPlugin)||null==(e=A.logger)||e.log("[MobileRec] destroy"),this.unInjectJsCss()},i.syncTimeLine=function(){var e=this;this.jSPlugin.recTimer&&clearInterval(this.jSPlugin.recTimer),window.recTimer?Array.isArray(window.recTimer[this.jSPlugin.id])&&window.recTimer[this.jSPlugin.id].map((function(e){clearInterval(e)})):window.recTimer={},window.recTimer[this.jSPlugin.id]=[];var A=this;this.TimeLineOBJ&&(this.jSPlugin.recTimer=setInterval((function(){if(e.operating)return!1;e.jSPlugin.getOSDTime().then((function(e){e.data>0&&A.TimeLineOBJ.stepScrollTimeLine(function(e){var A=new Date(e),t=A.getHours(),i=A.getMinutes(),n=A.getSeconds();return(t>9?t:"0"+t)+":"+(i>9?i:"0"+i)+":"+(n>9?n:"0"+n)}(1e3*e.data))})).catch((function(e){}))}),500),window.recTimer[this.jSPlugin.id].push(this.jSPlugin.recTimer))},i.unSyncTimeLine=function(){var e=this;return new Promise((function(A,t){e.jSPlugin.recTimer&&(clearInterval(e.jSPlugin.recTimer),e.jSPlugin.recTimer=null),window.recTimer?Array.isArray(window.recTimer[e.jSPlugin.id])&&(window.recTimer[e.jSPlugin.id].map((function(e){clearInterval(e)})),window.recTimer[e.jSPlugin.id]=[]):window.recTimer={},A()}))},i.bindEvent=function(){var e=this;document.getElementById("cloudType").checked="rec"===this.type,document.getElementById("cloudType").addEventListener("change",(function(A){var t;A.target.checked,e.type=A.target.checked?"rec":"cloud.rec",null==(t=e.jSPlugin)||t.eventEmitter.emit(dd.recTypeChange,{code:0,data:{type:e.jSPlugin._isCloudRecord&&"cloud.rec"===e.type?"cloudRecord":"rec"===e.type?"local":"cloud"}}),e.jSPlugin.changePlayUrl({type:e.type,begin:new Date(e.date).Format("yyyyMMdd")+"000000"},(function(){e.jSPlugin._isCloudRecord&&e.jSPlugin.Theme.changeTheme("mobileRec")})).then((function(){e.syncTimeLine(),e.changeRecSpeed(1),e.resetMobileZoomStatus(),e.jSPlugin.Theme.decoderState.state.sound&&e.jSPlugin.openSound()})).catch((function(e){}))}))},e._instanceStyle=function(){e._STYLE||(e._STYLE=document.createElement("style"),e._STYLE.id="ezuikit-mobile-rec-style",e._STYLE.innerHTML='\n body{\n padding: 0;\n margin: 0;\n }\n .time-line-container {\n text-align: left;\n height: 300px;\n /* outline: 1px solid red; */\n /* background: gray; */\n position: relative;\n /* padding-top: 60px; */\n margin-top: 20px;\n }\n\n .time-line-container .time-line-item-container {\n display: inline-block;\n /* height: 400px; */\n width: 30%;\n /* background: indianred; */\n overflow-y: scroll;\n overflow-x: hidden;\n /* padding-top: 60px; */\n height: 300px;\n box-sizing: border-box;\n white-space: nowrap;\n position: relative;\n }\n\n .time-line-container .time-line-item-container::-webkit-scrollbar {\n width: 0px;\n /*滚动条宽度*/\n height: 0px;\n /*滚动条高度*/\n }\n\n .time-line-item .time-item {\n position: relative;\n box-sizing: border-box;\n height: 60px;\n font-size: 12px;\n color: rgb(150, 150, 150);\n border-right: 6px solid;\n border-right-color: #ddd;\n }\n\n .time-line-item .time-item .scale {\n width: 6px;\n height: 9px;\n border-bottom: 1px solid #ccc;\n float: right;\n clear: both;\n }\n\n .time-line-item .time-item .item-unavail {\n width: 6px;\n position: absolute;\n left: 100%;\n background-color: #ddd;\n }\n\n .time-line-container .current-time {\n position: absolute;\n left: 0;\n top: 40px;\n height: 29px;\n /* line-height: 58px; */\n border-bottom: 1px solid #648FFC;\n width: 60%;\n margin-left: 26%;\n }\n\n .time-line-container .current-time .current-time-bg {\n position: relative;\n top: 15px;\n width: 100px;\n height: 29px;\n line-height: 29px;\n left: -70px;\n font-size: 12px;\n color: #2C2C2C;\n }\n\n .time-line-container .current-time .current-time-bg::before {\n content: \'\';\n display: inline-block;\n width: 6px;\n height: 6px;\n border-radius: 100%;\n background: #648FFC;\n top: 11px;\n position: absolute;\n right: 30px;\n }\n\n .date-switch-container {\n height: 40px;\n position: relative;\n text-align: center;\n margin: 20px 10px;\n }\n\n .date-switch-container .current-date {\n line-height: 40px;\n height: 22px;\n font-size: 16px;\n color: #2C2C2C;\n text-align: center;\n font-weight: bold;\n }\n\n .date-container {\n width: 40px;\n height: 40px;\n position: absolute;\n right: 0;\n top: 0;\n }\n\n .rec-type-container {\n display: flex;\n justify-content: space-between;\n }\n\n .rec-type-container .rec-type-text {\n padding: 0 15px;\n font-size: 12px;\n color: #2C2C2C;\n }\n\n .rec-type-container .rec-type-switch {\n padding: 0 20px;\n }\n\n .date-container input {\n position: absolute;\n opacity: 0;\n display: inline-block;\n width: 40px;\n height: 40px;\n z-index: 10;\n left: 0;\n }\n\n .date-container label {\n position: absolute;\n left: 0;\n top: 0;\n /* display: none; */\n z-index: 0;\n }\n\n .date-icon {\n display: inline-block;\n width: 40px;\n height: 40px;\n background: url(\'https://resource.eziot.com/group2/M00/00/6A/CtwQF2F6VieAQrU9AAABP-_Nsqo949.png\') no-repeat 100% 100%;\n }\n .select-container {\n padding: 10px;\n display: flex;\n justify-content: space-between;\n }\n\n .advice {\n height: 24px;\n width: 70px;\n display: flex;\n justify-content: space-between;\n line-height: 24px;\n background: #F8F8F8;\n border-radius: 8px;\n }\n\n .advice span {\n width: 40px;\n display: inline-block;\n }\n\n input[type="checkbox"]:not(:checked)+.advice span:first-child {\n box-shadow: 0px 2px 5px 0px rgb(23 45 101 / 20%);\n border-radius: 8px;\n text-align: center;\n\n }\n\n input[type="checkbox"]:checked+.advice span:last-child {\n box-shadow: 0px 2px 5px 0px rgb(23 45 101 / 20%);\n border-radius: 8px;\n text-align: center;\n }\n\n input[type="checkbox"]:not(:checked)+.advice span:first-child svg {\n fill: #648FFC !important;\n }\n\n input[type="checkbox"]:checked+.advice span:last-child svg {\n fill: #648FFC !important;\n }',document.getElementsByTagName("head")[0].appendChild(e._STYLE))},e}(),Qd="[Ptz]",pd=function(){function e(A){var t,i=this;if(this.jSPlugin=A,null==(t=this.jSPlugin.logger)||t.log(Qd,"init"),this.pluginStatus=this.jSPlugin.pluginStatus,this.showPtz=!1,document.getElementById(this.jSPlugin.id+"-ez-ptz-item"))return!1;var n=document.createElement("div");n.id=this.jSPlugin.id+"-ez-ptz-item",n.className="ez-ptz-wrap",n.style="display:none;",e._instanceStyle(),n.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n '+this.jSPlugin.i18n.t("PTZ_SLOW")+'\n
\n
\n '+this.jSPlugin.i18n.t("PTZ_MID")+'\n
\n
\n '+this.jSPlugin.i18n.t("PTZ_FAST")+'\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n ',document.getElementById(A.id+"-wrap").appendChild(n),document.getElementById(this.jSPlugin.id+"-ez-ptz-container").onmousedown=function(e){e.preventDefault(),e.stopPropagation(),i._handlePtzTouch(e,"start")},document.getElementById(this.jSPlugin.id+"-ez-ptz-container").onmouseup=function(e){e.preventDefault(),e.stopPropagation(),i._handlePtzTouch(e,"stop")},document.getElementById(this.jSPlugin.id+"-ez-ptz-container").ontouchstart=function(e){e.preventDefault(),e.stopPropagation(),i._handlePtzTouch(e,"start")},document.getElementById(this.jSPlugin.id+"-ez-ptz-container").ontouchend=function(e){e.preventDefault(),e.stopPropagation(),i._handlePtzTouch(e,"stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzspeed-container").onmouseup=function(e){var A;e.target.id&&(e.target.id.indexOf("slow")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.slow:1,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.add("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.remove("active")),e.target.id.indexOf("mid")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.mid:3,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.add("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.remove("active")),e.target.id.indexOf("fast")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.fast:7,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.add("active")),null==(A=i.jSPlugin)||A.eventEmitter.emit(dd.ptz.ptzSpeedChange,i.jSPlugin.ptzSpeed))},document.getElementById(this.jSPlugin.id+"-ez-ptzspeed-container").ontouchend=function(e){var A,t;e.target.id&&(e.target.id.indexOf("slow")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.slow:1,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.add("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.remove("active")),e.target.id.indexOf("mid")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.mid:3,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.add("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.remove("active")),e.target.id.indexOf("fast")>-1&&(i.jSPlugin.ptzSpeed=i.jSPlugin.ptzSpeedOptions?i.jSPlugin.ptzSpeedOptions.fast:7,document.getElementById(i.jSPlugin.id+"-ptzspeed-slow-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-mid-dot").classList.remove("active"),document.getElementById(i.jSPlugin.id+"-ptzspeed-fast-dot").classList.add("active")),null==(t=i.jSPlugin)||null==(A=t.eventEmitter)||A.emit(dd.ptz.ptzSpeedChange,i.jSPlugin.ptzSpeed))},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-add").onmousedown=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","add","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-add").onmouseup=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","add","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-sub").onmousedown=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","sub","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-sub").onmouseup=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","sub","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-add").onmousedown=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","add","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-add").onmouseup=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","add","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-sub").onmousedown=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","sub","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-sub").onmouseup=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","sub","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-add").ontouchstart=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","add","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-add").ontouchend=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","add","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-sub").ontouchstart=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","sub","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-zoom-sub").ontouchend=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("zoom","sub","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-add").ontouchstart=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","add","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-add").ontouchend=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","add","stop")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-sub").ontouchstart=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","sub","start")},document.getElementById(this.jSPlugin.id+"-ez-ptzbtn-focal-sub").ontouchend=function(e){e.preventDefault(),e.stopPropagation(),i._handleBtnTouch("focal","sub","stop")}}var A=e.prototype;return A.destroy=function(){},A.show=function(){document.getElementById(this.jSPlugin.id+"-ez-ptz-item")&&(document.getElementById(this.jSPlugin.id+"-ez-ptz-item").style="display: flex;box-sizing: content-box;"),this.showPtz=!0,this.jSPlugin.eventEmitter&&this.jSPlugin.eventEmitter.emit(dd.ptz.openPtz,{eventType:"openPtz",code:0,target:this,msg:"开启云台"})},A.hide=function(){document.getElementById(this.jSPlugin.id+"-ez-ptz-item")&&(document.getElementById(this.jSPlugin.id+"-ez-ptz-item").style="display: none"),this.showPtz=!1,this.jSPlugin.eventEmitter&&this.jSPlugin.eventEmitter.emit(dd.ptz.closePtz,{eventType:"closePtz",code:0,target:this,msg:"关闭云台"})},A._handlePtzTouch=function(e,A){var t,i,n=this;this._ptzQueue||(this._ptzQueue=Promise.resolve());var a=document.getElementById(this.jSPlugin.id+"-ez-ptz-container").getBoundingClientRect(),r=a.left+41,o=a.top+41,s=e.x||e.changedTouches[0].clientX,l=e.y||e.changedTouches[0].clientY,c=0,d=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start",I=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video,C=0;function h(e,A){var t=Math.atan2(A,e);t<0&&(t+=2*Math.PI);var i=t*(180/Math.PI)-225-12.5;return i<0&&(i+=360),Math.floor(i/45)+1}var u=/^rotate\(90/.test(document.getElementById(this.jSPlugin.id+"-wrap").style.transform),B=s-r,f=l-o;if(u)switch(h(B,f)){case 1:c=2,C=90;break;case 2:c=4,C=135;break;case 3:c=0,C=180;break;case 4:c=6,C=225;break;case 5:c=3,C=270;break;case 6:c=7,C=315;break;case 7:c=1,C=0;break;case 8:c=5,C=45}else switch(h(B,f)){case 1:c=0,C=180;break;case 2:c=6,C=225;break;case 3:c=3,C=270;break;case 4:c=7,C=315;break;case 5:c=1,C=0;break;case 6:c=5,C=45;break;case 7:c=2,C=90;break;case 8:c=4,C=135}document.getElementById(this.jSPlugin.id+"-ez-ptz-container").style="start"===A?"background-image:linear-gradient("+C+"deg, #4277FF 0%, rgba(100,143,252,0.00) 30%)":"","stop"===A&&(d=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",I=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video);var E=new FormData;E.append("deviceSerial",g(this.jSPlugin.url).deviceSerial),E.append("channelNo",g(this.jSPlugin.url).channelNo),E.append("speed",this.jSPlugin.ptzSpeed),E.append("direction",c),E.append("accessToken",I),this._ptzQueue=this._ptzQueue.then((function(){return fetch(d,{method:"POST",body:E}).then((function(e){return e.json()})).then((function(e){var t,i=e.code||(null==e||null==(t=e.result)?void 0:t.code);if("start"===A&&200!=i){var a,r,o,s,g=n.jSPlugin.i18n.t("38"+i)||e.msg;null==(a=n.pluginStatus)||a.loadingSetText({text:g,color:"red",delayClear:2e3}),null==(s=n.jSPlugin)||null==(o=s.logger)||o.error("[errors]",(null==(r=n.jSPlugin)?void 0:r.i18n.t("38"+i))+"("+i+")")}return[60002,60003,60004,60005,60006].indexOf(i)>-1&&(document.getElementById(n.jSPlugin.id+"-ez-ptz-container").style="background-image:linear-gradient("+C+"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)"),e})).catch((function(e){}))})),"stop"===A&&(this._ptzQueue=this._ptzQueue.finally((function(){}))),null==(i=this.jSPlugin)||null==(t=i.eventEmitter)||t.emit(dd.ptz.ptzDirection,{areaId:h(B,f),direction:c,backDeg:C,isRotate:u,ptzSpeed:this.jSPlugin.ptzSpeed,type:A})},A._handleBtnTouch=function(e,A,t){var i,n,a,r,o=this;this._ptzOperation||(this._ptzOperation=Promise.resolve());var s=8;s="zoom"===e?"add"===A?8:9:"add"===A?10:11;var l=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start",c=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video;"stop"===t&&(l=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",c=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video),null==(n=this.jSPlugin)||null==(i=n.logger)||i.log(Qd,e,A,t),null==(r=this.jSPlugin)||null==(a=r.eventEmitter)||a.emit(dd.ptz.ptzBtnClick,{btn:e,option:A,type:t});var d=new FormData;d.append("deviceSerial",g(this.jSPlugin.url).deviceSerial),d.append("channelNo",g(this.jSPlugin.url).channelNo),d.append("speed",this.jSPlugin.ptzSpeed),d.append("direction",s),d.append("accessToken",c),this._ptzOperation=this._ptzOperation.then((function(){return fetch(l,{method:"POST",body:d}).then((function(e){return e.json()})).then((function(A){var i,n=A.code||(null==A||null==(i=A.result)?void 0:i.code);if("start"===t&&200!=n){var a,r,s=6e4==n||60006==n?"zoom"===e?o.jSPlugin.i18n.t("NOT_SUPPORT_DEVICE_ZOOM"):o.jSPlugin.i18n.t("NOT_SUPPORT_FOCUS"):A.msg;o.pluginStatus.loadingSetText({text:s,color:"red",delayClear:2e3}),null==(r=o.jSPlugin)||null==(a=r.logger)||a.error("[errors]",s)}return A})).catch((function(e){}))})),"stop"===t&&(this._ptzOperation=this._ptzOperation.finally((function(){o._ptzOperation=null})))},e._instanceStyle=function(){if(!e._STYLE){e._STYLE=document.createElement("style"),e._STYLE.id="ezuikit-ptz-style";var A=d();e._STYLE.innerHTML="\n .ez-ptz-container {\n position: relative;\n width: 80px;\n height: 80px;\n background: rgba(255, 255, 255, 0.70);\n box-shadow: 0px 0px 33px 4px rgb(0 0 0 / 15%);\n border: 1px solid rgba(255, 255, 255, 0.70);\n border-radius: 100%;\n cursor: pointer;\n overflow: hidden;\n user-select: none;\n }\n .ez-ptz-container .ez-ptz-icon.top {\n width: 0;\n height: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 8px solid #999999;\n position: absolute;\n display: inline-block;\n left: calc(50% - 4px);\n top: 2px;\n }\n\n .ez-ptz-container .ez-ptz-icon.top.active {\n border-bottom-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.bottom {\n width: 0;\n height: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 8px solid #999999;\n position: absolute;\n display: inline-block;\n left: calc(50% - 4px);\n bottom: 2px;\n }\n\n .ez-ptz-container .ez-ptz-icon.bottom.active {\n border-top-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.right {\n width: 0;\n height: 0;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-left: 8px solid #999999;\n position: absolute;\n display: inline-block;\n top: calc(50% - 4px);\n right: 2px;\n }\n\n .ez-ptz-container .ez-ptz-icon.right.active {\n border-left-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.left {\n width: 0;\n height: 0;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-right: 8px solid #999999;\n position: absolute;\n display: inline-block;\n top: calc(50% - 4px);\n left: 2px;\n }\n\n .ez-ptz-container .ez-ptz-icon.left.active {\n border-right-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.top-left {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n position: absolute;\n display: inline-block;\n top: calc(25% - 4px);\n left: 16px;\n background: #999999;\n }\n\n .ez-ptz-container .ez-ptz-icon.top-left.active {\n border-right-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.left-bottom {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n position: absolute;\n display: inline-block;\n bottom: calc(25% - 4px);\n left: 16px;\n background: #999999;\n }\n\n .ez-ptz-container .ez-ptz-icon.left-bottom.active {\n border-right-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.bottom-right {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n position: absolute;\n display: inline-block;\n bottom: calc(25% - 4px);\n right: 16px;\n background: #999999;\n }\n\n .ez-ptz-container .ez-ptz-icon.bottom-right.active {\n border-right-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-icon.right-top {\n width: 4px;\n height: 4px;\n border-radius: 50%;\n position: absolute;\n display: inline-block;\n top: calc(25% - 4px);\n right: 16px;\n background: #999999;\n }\n\n .ez-ptz-container .ez-ptz-icon.right-top.active {\n border-right-color: #407AFF;\n }\n\n .ez-ptz-container .ez-ptz-main.center {\n width: 23px;\n height: 23px;\n background: #407AFF;\n border-radius: 100%;\n top: calc(50% - 12.4px);\n left: calc(50% - 12.4px);\n position: absolute;\n }\n\n .ez-ptz-wrap {\n position: absolute;\n right: 0px;\n top: 0;\n width: 85px;\n height: 100%;\n padding: 0 20px;\n flex-direction: column;\n justify-content: center;\n background: rgba(0,0,0,0.9);\n box-sizing: content-box !important;\n }\n\n .ez-ptz-close {\n position: absolute;\n color: #FFFFFF;\n top: 0;\n right: 0px;\n }\n\n .ez-ptzspeed-progress-line{\n height: 1px;\n background: #ffffff;\n margin: 16px 0 8px;\n display: flex;\n justify-content: space-between;\n }\n\n .ez-ptzspeed-progress-line-dot{\n width: 5px;\n height: 5px;\n border: 2px solid #ffffff;\n border-radius: 50%;\n background: #ffffff;\n margin: -3px 0;\n cursor: pointer;\n }\n\n .ez-ptzspeed-progress-line-dot.active{\n border-color: #407AFF;\n }\n\n .ez-ptzspeed-progress-points{\n display: flex;\n justify-content: space-between;\n }\n\n .ez-ptzspeed-progress-points-slow{\n cursor: pointer;\n color: #ffffff;\n }\n\n .ez-ptzspeed-progress-points-mid{\n cursor: pointer;\n color: #ffffff;\n }\n\n .ez-ptzspeed-progress-points-fast{\n cursor: pointer;\n color: #ffffff;\n }\n\n .ez-ptzbtn-container{\n width: 100%;\n height:"+(A?"60px":"18px")+";\n margin-top: 14px;\n display: "+(A?"block":"flex")+";\n }\n\n .ez-ptzbtn-focal,\n .ez-ptzbtn-zoom{\n width: "+(A?"100%":"50%")+";\n height: 20px;\n display: flex;\n border: 1px solid rgba(255,255,255,0.5);\n border-radius: 10px;\n padding-bottom: 0px;\n box-sizing: content-box;\n }\n\n .ez-ptzbtn-zoom-add,\n .ez-ptzbtn-zoom-sub,\n .ez-ptzbtn-focal-add,\n .ez-ptzbtn-focal-sub{\n width: "+(A?"50%":"24px")+";\n height: 20px;\n cursor: pointer;\n text-align: center;\n }\n\n .ez-ptzbtn-zoom{\n margin: "+(A?"0 0 8px":"0 4px 0 0")+";\n }\n\n .ez-ptzbtn-zoom-add{\n border-right: 1px solid rgba(255,255,255,0.5);\n }\n\n .ez-ptzbtn-focal-add{\n border-right: 1px solid rgba(255,255,255,0.5);\n }\n ",document.getElementsByTagName("head")[0].appendChild(e._STYLE)}},e}(),md=function(){function e(A){var t,i,n=this;this.jSPlugin=A,this.pluginStatus=new ag(this,this.jSPlugin.id),null==(i=this.jSPlugin)||null==(t=i.logger)||t.log("[MobilePtz] init"),e._instanceStyle();var a=document.createElement("div");a.className="mobile-ez-ptz-container",a.id="mobile-ez-ptz-container";var r=window.innerHeight;a.style="display:inline-block;width: "+this.jSPlugin.width+"px;text-align:center;height: "+(r-this.jSPlugin.height-5)+"px";var s=document.createElement("div");s.className="live-ptz-title",s.id="live-ptz-title",s.innerHTML=this.jSPlugin.i18n.t("BTN_PTZ"),document.getElementById("live-ptz-title")||a.appendChild(s);var g=document.createElement("div");g.className="live-ptz-intro",g.id="live-ptz-intro",g.innerHTML=this.jSPlugin.i18n.t("MOBILE_PTZ_TIPS"),document.getElementById("live-ptz-intro")||a.appendChild(g);var l=document.createElement("div");l.id="mobile-ez-ptz-item",l.className="mobile-ez-ptz-wrap",l.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n ',document.getElementById("mobile-ez-ptz-item")||a.appendChild(l),o(a,document.getElementById(this.jSPlugin.id+"-wrap")),document.getElementById("mobile-ez-ptz-item").ontouchstart=function(e){e.preventDefault(),n._handlePtzTouch(e,"start")},document.getElementById("mobile-ez-ptz-item").ontouchend=function(e){e.preventDefault(),n._handlePtzTouch(e,"stop")},document.getElementById("mobile-ez-ptz-item").onmousedown=function(e){e.preventDefault(),n._handlePtzTouch(e,"start")},document.getElementById("mobile-ez-ptz-item").onmouseup=function(e){e.preventDefault(),n._handlePtzTouch(e,"stop")}}var A=e.prototype;return A.show=function(){document.getElementById("mobile-ez-ptz-container").style="display: inline-block"},A.hide=function(){document.getElementById("mobile-ez-ptz-container").style="display: none"},A._handlePtzTouch=function(e,A){var t,i,n=this,a=document.getElementById("mobile-ez-ptz-item").getBoundingClientRect(),r=a.left+130,o=a.top+130,s=(e.x||e.changedTouches[0].clientX)-r,l=(e.y||e.changedTouches[0].clientY)-o,c=0,d=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start",I=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video;Math.abs(s)>Math.abs(l)?s>0?(c=3,document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("default","active")):(c=2,document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("default","active")):l>0?(c=1,document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("default","active")):(c=0,document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("default","active")),document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient("+(0===c?180:1===c?0:2===c?90:270)+"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)","stop"===A&&(d=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",I=this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video,document.getElementById("mobile-ez-ptz-item").style="",document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("active","default")),null==(i=this.jSPlugin)||null==(t=i.eventEmitter)||t.emit(dd.ptz.ptzDirection,{type:A,direction:c,isRotate:!1,ptzSpeed:1});var C=new FormData;C.append("deviceSerial",g(this.jSPlugin.url).deviceSerial),C.append("channelNo",g(this.jSPlugin.url).channelNo),C.append("speed",1),C.append("direction",c),C.append("accessToken",I),fetch(d,{method:"POST",body:C}).then((function(e){return e.json()})).then((function(e){if(200==e.code);else{var A,t;null==(t=n.jSPlugin)||null==(A=t.logger)||A.error("[errors]",n.jSPlugin.i18n.t("38"+e.code)+"("+e.code+")");var i=n.jSPlugin.i18n.t("38"+e.code)||e.msg;n.pluginStatus.loadingSetText({text:i,color:"red",delayClear:2e3}),60005!=e.code&&60002!=e.code&&60003!=e.code&&60004!=e.code||(document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient("+(0===c?180:1===c?0:2===c?90:270)+"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)")}})).catch((function(e){}))},e._instanceStyle=function(){e._STYLE||(e._STYLE=document.createElement("style"),e._STYLE.innerHTML="\n body{\n padding: 0;\n margin: 0;\n }\n #mobile-ez-ptz-container {\n display: inline-block;\n width: 375px;\n text-align: center;\n }\n .live-ptz-title{\n height: 25px;\n font-size: 18px;\n color: #2c2c2c;\n text-align: center;\n font-weight: 700;\n margin: 24px 0 12px;\n }\n .live-ptz-intro {\n margin-bottom: 24px;\n color: #aaaaaa;\n }\n .mobile-ez-ptz-wrap {\n background-image: linear-gradient(180deg, #f6f8ff 0%, #ededed6b 50%)\n }\n #mobile-ez-ptz-container .mobile-ez-ptz-container {\n position: relative;\n width: 260px;\n height: 260px;\n background: rgba(255, 255, 255, 0.80);\n border: 1px solid rgba(255, 255, 255, 0.80);\n border-radius: 100%;\n cursor: pointer;\n overflow: hidden;\n margin: auto;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n left: calc(50% - 6px);\n top: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top.active {\n border-bottom-color: #1890FF;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n left: calc(50% - 6px);\n bottom: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom.active {\n border-top-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right {\n width: 0;\n height: 0;\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-left: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n top: calc(50% - 6px);\n right: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right.active {\n border-left-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left {\n width: 0;\n height: 0;\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-right: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n top: calc(50% - 6px);\n left: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left.active {\n border-right-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .ez-ptz-main.center {\n width: 52px;\n height: 52px;\n background: #FFFFFF;\n border: 2px solid #eee;\n border-radius: 100%;\n top: calc(50% - 26px);\n left: calc(50% - 26px);\n position: absolute;\n /* box-shadow: 0px -39px 40px 6px #1890ff; */\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-wrap {\n display: inline-block;\n padding: 24px 24px;\n border-radius: 100%;\n overflow: hidden;\n }\n\n #mobile-ez-ptz-container .ez-ptz-close {\n position: absolute;\n color: #FFFFFF;\n top: 0;\n right: 0px;\n }",document.getElementsByTagName("head")[0].appendChild(e._STYLE))},e}(),yd={header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]},footer:{color:"#FFFFFF",backgroundColor:"rgb(0 0 0 / 0%)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-0",iconId:"play",part:"left",defaultActive:1,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-1",iconId:"capturePicture",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-2",iconId:"sound",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-3",iconId:"pantile",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-4",iconId:"recordvideo",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-5",iconId:"talk",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-6",iconId:"hd",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-7",iconId:"webExpend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-8",iconId:"expend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]}},_d={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},Sd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},vd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},Dd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},wd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:0},{iconId:"deviceName",part:"left",defaultActive:0,isrender:0},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:0},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:0},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:0}]}}},bd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},Fd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"cloudRecord",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}}},Rd={data:{header:{color:"#FFFFFF",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:0},{iconId:"deviceName",part:"left",defaultActive:0,isrender:0},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:0},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:0},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"speed",part:"right",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:0}]}}},kd=[{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcLive",themeIntro:"PC直播全量版",themeName:"PC直播全量版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:vd.data.header,footer:vd.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"security",themeIntro:"PC直播安防版",themeName:"PC直播安防版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:Dd.data.header,footer:Dd.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"voice",themeIntro:"PC直播语音版",themeName:"PC直播语音版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:bd.data.header,footer:bd.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"simple",themeIntro:"PC直播极简版",themeName:"PC直播极简版",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"",header:wd.data.header,footer:wd.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcRec",themeIntro:"PC回放全量版",themeName:"PC回放全量版",themeType:"webRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:Fd.data.header,footer:Fd.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileLive",themeIntro:"Mobile直播全量版",themeName:"Mobile直播全量版",themeType:"mobileLive",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:_d.data.header,footer:_d.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileRec",themeIntro:"Mobile回放全量版",themeName:"Mobile回放全量版",themeType:"mobileRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:Sd.data.header,footer:Sd.data.footer},{autoFocus:0,createTime:"2021-06-14T08:04:37.000Z",themeId:"miniRec",themeIntro:"Mobile回放全量版",themeName:"Mobile回放全量版",themeType:"mobileRec",updateTime:"2021-06-14T08:04:37.000Z",label:"官方",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"",header:Rd.data.header,footer:Rd.data.footer}]; +/* + * ZoomControl v0.0.1 + * zoom + * Copyright (c) 2025-07-29 Ezviz-OpenBiz + * Released under the MIT License. + */ +const Pd={initialZoom:1,defaultCursor:"auto",scrollVelocity:.1,animDuration:.25,defaultPos:[0,0],allowZoom:!0,allowMove:!0,allowPan:!0,onZoomChange:()=>{},onPanChange:(e,A)=>{},maxZoom:8,minZoom:1,zoomStep:.1,allowTouchEvents:!1,allowWheel:!0,ignoredMouseButtons:[],doubleTouchMaxDelay:300,decelerationDuration:750};let Td=class{constructor(e,A){var t=this;this.destroy=()=>{this.removeEventListeners()},this.setTransform=e=>{this.transform=e},this.getTransform=()=>this.transform,this.updateTranslate=()=>{let e=0,A=0;e=this.percentPos[0]<0?this.percentPos[0]<-.5*(this.zoom-1)?-.5*(this.zoom-1):this.percentPos[0]:this.percentPos[0]>.5*(this.zoom-1)?.5*(this.zoom-1):this.percentPos[0],A=this.percentPos[1]<0?this.percentPos[1]<-.5*(this.zoom-1)?-.5*(this.zoom-1):this.percentPos[1]:this.percentPos[1]>.5*(this.zoom-1)?.5*(this.zoom-1):this.percentPos[1],this.percentPos=[e,A]},this.update=()=>{this.container&&(this.updateTranslate(),this.container.style.transition=`transform ease-out ${this.transition}s`,this.container.style.transform=`translate3d(${100*this.percentPos[0]}%, ${100*this.percentPos[1]}%, 0) scale(${this.zoom})`)},this.setAllowZoom=e=>{this.options.allowZoom=e},this.setZoom=(e,A)=>{this.zoom=parseFloat(e.toFixed(this.getPrecision(this.options.zoomStep))),this.update(),this.options.onZoomChange&&this.options.onZoomChange(this.zoom.toFixed(this.getPrecision(this.options.zoomStep)),A)},this.getZoom=()=>this.zoom,this.setPos=e=>{var A,t;const i=null===(A=this.container)||void 0===A?void 0:A.clientWidth,n=null===(t=this.container)||void 0===t?void 0:t.clientHeight;this.percentPos=[e[0]/i,e[1]/n],this.pos=e,this.update(),this.options.onPanChange&&this.options.onPanChange({posX:e[0],posY:e[1]})},this.setTransitionDuration=e=>{this.transition=e,this.update()},this.setCursor=e=>{this.container&&(this.cursor=e)},this.zoomIn=e=>{var A,t;let i=this.pos[0],n=this.pos[1];const a=this.zoom,r=a+e<(null!==(A=this.options.maxZoom)&&void 0!==A?A:8)?a+e:null!==(t=this.options.maxZoom)&&void 0!==t?t:8;r!==a&&(i=i*(r-1)/(a>1?a-1:a),n=n*(r-1)/(a>1?a-1:a)),this.setZoom(r),this.setPos([i,n]),this.setTransitionDuration(this.options.animDuration)},this.zoomOut=e=>{var A,t;let i=this.pos[0],n=this.pos[1];const a=this.zoom,r=a-e>(null!==(A=this.options.minZoom)&&void 0!==A?A:1)?a-e:null!==(t=this.options.minZoom)&&void 0!==t?t:1;r!==a&&(i=i*(r-1)/(a-1),n=n*(r-1)/(a-1)),this.setZoom(r),this.setPos([i,n]),this.setTransitionDuration(this.options.animDuration)},this.zoomToZone=(e,A,t,i)=>{var n,a;if(!this.container)return;let r=this.pos[0],o=this.pos[1];const s=(null===(n=this.container)||void 0===n?void 0:n.parentNode).getBoundingClientRect(),g=this.zoom,l=s.width/t,c=s.height/i,d=Math.min(l,c,null!==(a=this.options.maxZoom)&&void 0!==a?a:8),I=this.container.getBoundingClientRect(),[C,h]=[I.width/g/2,I.height/g/2],[u,B]=[e+t/2,A+i/2];r=(C-u)*d,o=(h-B)*d,this.setZoom(d),this.setPos([r,o]),this.setTransitionDuration(this.options.animDuration)},this.getNewPosition=(e,A,t)=>{const[i,n,a]=[this.zoom,this.pos[0],this.pos[1]];if(1===t||!this)return[0,0];if(t>i){const r=this.container.getBoundingClientRect(),[o,s]=[r.width/2,r.height/2],[g,l]=[e-r.left-window.pageXOffset,A-r.top-window.pageYOffset],[c,d]=[(o-g)/i,(s-l)/i],I=t-i;return[n+c*I,a+d*I]}return[n*(t-1)/(i-1),a*(t-1)/(i-1)]},this.fullZoomInOnPosition=(e,A)=>{var t;const i=null!==(t=this.options.maxZoom)&&void 0!==t?t:8;this.setPos(this.getNewPosition(e,A,i)),this.setZoom(null!=i?i:8),this.setTransitionDuration(this.options.animDuration)},this.getLimitedShift=(e,A,t,i,n)=>{if(e>0){if(i>A)return 0;if(i+e>A)return A-i}else if(e<0){if(ne&&A?"move":e?"ew-resize":A?"ns-resize":"auto",this.move=function(e,A){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t.container)return;let n,a,r=t.pos[0],o=t.pos[1];const s=t.container.getBoundingClientRect(),g=t.container.parentNode.getBoundingClientRect(),l=t.transform?A:e,c=t.transform?e:A,[d,I,C]=t.transform?[s.height>g.bottom-g.top,c>0&&s.top-g.top<0,c<0&&s.bottom-g.bottom>0]:[s.width>g.right-g.left,l>0&&s.left-g.left<0,l<0&&s.right-g.right>0];n=d||I||C,n&&(t.transform?r+=t.getLimitedShift(c,g.top,g.bottom,s.top,s.bottom):r+=t.getLimitedShift(l,g.left,g.right,s.left,s.right));const[h,u,B]=t.transform?[s.width>g.right-g.left,l>0&&s.right-g.right<0,l<0&&s.left-g.left>0]:[s.height>g.bottom-g.top,c>0&&s.top-g.top<0,c<0&&s.bottom-g.bottom>0];if(a=h||u||B,a)if(t.transform){function E(e,A,t,i,n){if(e>0){if(nA)return 0;if(i+1+e>A)return A-i}return e}o+=E(l,g.left,g.right,s.left,s.right)}else o+=t.getLimitedShift(c,g.top,g.bottom,s.top,s.bottom);const f=t.getCursor(n,a);t.setPos([r,o]),t.setCursor(f),t.setTransitionDuration(i)},this.isDoubleTapping=()=>{var e,A,t,i;const n=(new Date).getTime();return n-(null!==(e=this.lastTouchTime)&&void 0!==e?e:0)<(null!==(A=this.options.doubleTouchMaxDelay)&&void 0!==A?A:300)&&n-(null!==(t=this.lastDoubleTapTime)&&void 0!==t?t:0)>(null!==(i=this.options.doubleTouchMaxDelay)&&void 0!==i?i:750)?(this.lastDoubleTapTime=n,!0):(this.lastTouchTime=n,!1)},this.startDeceleration=(e,A)=>{let t=null;const i=n=>{var a,r,o;null===t&&(t=n);const s=n-t,g=((null!==(a=this.options.decelerationDuration)&&void 0!==a?a:750)-s)/(null!==(r=this.options.decelerationDuration)&&void 0!==r?r:750),[l,c]=[e*g,A*g];s<(null!==(o=this.options.decelerationDuration)&&void 0!==o?o:750)&&Math.max(Math.abs(l),Math.abs(c))>1?(this.move(l,c,0),this.lastRequestAnimationId=requestAnimationFrame(i)):this.lastRequestAnimationId=null};this.lastRequestAnimationId=requestAnimationFrame(i)},this.reset=()=>{this.setZoom(this.options.initialZoom,!0),this.cursor=this.options.defaultCursor,this.setTransitionDuration(this.options.animDuration),this.setPos(this.options.defaultPos)},this.handleDoubleClick=e=>{var A;e.preventDefault(),this.options.allowZoom&&(this.zoom===(null!==(A=this.options.minZoom)&&void 0!==A?A:1)?this.fullZoomInOnPosition(e.pageX,e.pageY):this.reset())},this.addScale=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.handleZoomAdd(e)},this.handleZoomAdd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;var A;if(!t.options.allowZoom||!t.options.allowWheel)return;let i=parseFloat((t.zoom+e).toFixed(t.getPrecision(t.options.zoomStep)));i>(null!==(A=t.options.maxZoom)&&void 0!==A?A:8)&&(i=8),t.setZoom(i),t.setPos(t.pos),t.setTransitionDuration(.05)},this.subScale=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.handleZoomSub(e)},this.handleZoomSub=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;var A,i;if(!t.options.allowZoom||!t.options.allowWheel)return;let n=parseFloat((t.zoom-e).toFixed(t.getPrecision(t.options.zoomStep))),a=t.pos;n<(null!==(A=t.options.minZoom)&&void 0!==A?A:1)?(n=1,a=t.options.defaultPos):n!==t.zoom&&(a=n!==(null!==(i=t.options.minZoom)&&void 0!==i?i:1)?t.getNewPosition(t.pos[0],t.pos[1],n):t.options.defaultPos),t.setZoom(n),t.setPos(a),t.setTransitionDuration(.05)},this.handleMouseWheel=e=>{var A,t;if(e.preventDefault(),!this.options.allowZoom||!this.options.allowWheel)return;const i=e.deltaY<0?this.options.scrollVelocity:0-this.options.scrollVelocity,n=parseFloat(Math.max(Math.min(this.zoom+i,null!==(A=this.options.maxZoom)&&void 0!==A?A:8),null!==(t=this.options.minZoom)&&void 0!==t?t:1).toFixed(this.getPrecision(this.options.zoomStep)));this.setZoom(n),this.setPos(this.pos),this.setTransitionDuration(.05)},this.handleMouseStart=e=>{var A;e.preventDefault(),this.options.allowPan&&!(null===(A=this.options.ignoredMouseButtons)||void 0===A?void 0:A.includes(e.button))&&(this.lastRequestAnimationId&&cancelAnimationFrame(this.lastRequestAnimationId),this.lastCursor=[e.pageX,e.pageY])},this.handleMouseMove=e=>{if(e.preventDefault(),!this.options.allowPan||!this.lastCursor)return;const[A,t]=[e.pageX,e.pageY],i=A-this.lastCursor[0],n=t-this.lastCursor[1];this.move(i,n,0),this.lastCursor=[A,t],this.lastShift=[i,n]},this.handleMouseStop=e=>{e.preventDefault(),this.lastShift&&(this.startDeceleration(this.lastShift[0],this.lastShift[1]),this.lastShift=null),this.lastCursor=null,this.setCursor("auto")},this.getCoordinates=e=>this.transform?[e.pageY,window.innerWidth-e.pageX]:[e.pageX,e.pageY],this.handleTouchStart=e=>{const A=this.isDoubleTapping();this.isMultiTouch=e.touches.length,this.options.allowTouchEvents||e.preventDefault(),this.lastRequestAnimationId&&cancelAnimationFrame(this.lastRequestAnimationId);const[t,i]=this.getCoordinates(e.touches[0]);this.isMultiTouch>1?this.lastTouch=[t,i]:A&&this.options.allowZoom?1===this.zoom?this.fullZoomInOnPosition(t,i):this.reset():this.options.allowPan&&(this.lastTouch=[t,i])},this.handleTouchMove=e=>{var A,t,i,n;if(this.options.allowTouchEvents||e.preventDefault(),this.lastTouch)if(1===this.isMultiTouch){const[A,t]=this.getCoordinates(e.touches[0]);let i=A-this.lastTouch[0],n=t-this.lastTouch[1];this.move(i,n),this.lastShift=[i,n],this.lastTouch=[A,t],this.lastTouchDistance=null}else if(this.isMultiTouch>1){let a=this.zoom;const[r,o]=this.getCoordinates(e.touches[0]),[s,g]=this.getCoordinates(e.touches[1]),l=Math.sqrt(Math.pow(s-r,2)+Math.pow(g-o,2));if(this.lastTouchDistance&&l&&l!==this.lastTouchDistance){this.options.allowZoom&&(a+=(l-this.lastTouchDistance)/100,a>(null!==(A=this.options.maxZoom)&&void 0!==A?A:8)?a=null!==(t=this.options.maxZoom)&&void 0!==t?t:8:a<(null!==(i=this.options.minZoom)&&void 0!==i?i:1)&&(a=null!==(n=this.options.minZoom)&&void 0!==n?n:1));const[e,c]=[(r+s)/2,(o+g)/2],d=this.getNewPosition(e,c,a);this.setZoom(a),this.setPos(d),this.setTransitionDuration(0)}this.lastTouch=[r,o],this.lastTouchDistance=l}},this.handleTouchStop=()=>{this.lastShift&&(this.startDeceleration(this.lastShift[0],this.lastShift[1]),this.lastShift=null),this.lastTouch=null,this.lastTouchDistance=null,this.isMultiTouch=0},this.container=e,this.options=Object.assign({},Pd,A||{}),this.pos=[0,0],this.percentPos=[0,0],this.transition=this.options.animDuration,this.zoom=1,this.cursor="auto",this.lastCursor=[0,0],this.lastShift=null,this.lastTouch=null,this.lastTouchDistance=null,this.lastRequestAnimationId=null,this.lastTouchTime=(new Date).getTime(),this.lastDoubleTapTime=(new Date).getTime(),this.transform=!1,this.isMultiTouch=1,this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseStart=this.handleMouseStart.bind(this),this.handleMouseStop=this.handleMouseStop.bind(this),this.handleMouseWheel=this.handleMouseWheel.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchStop=this.handleTouchStop.bind(this),this.getZoom=this.getZoom.bind(this),this.setZoom=this.setZoom.bind(this),this.containerResizeObserver=new ResizeObserver((e=>{for(let A of e)this.pos=[A.contentRect.width*this.percentPos[0],A.contentRect.height*this.percentPos[1]]}))}setUpEventListeners(){const e=this.container,A=window.matchMedia("(pointer: fine)").matches;null==e||e.addEventListener("wheel",this.handleMouseWheel,{passive:!1}),this.containerResizeObserver.observe(e),A?(null==e||e.addEventListener("mousedown",this.handleMouseStart,{passive:!1}),null==e||e.addEventListener("mousemove",this.handleMouseMove,{passive:!1}),null==e||e.addEventListener("mouseup",this.handleMouseStop,{passive:!1}),null==e||e.addEventListener("mouseleave",this.handleMouseStop,{passive:!1})):(null==e||e.addEventListener("touchstart",this.handleTouchStart,{passive:!1}),null==e||e.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),null==e||e.addEventListener("touchend",this.handleTouchStop,{passive:!1}),null==e||e.addEventListener("touchcancel",this.handleTouchStop,{passive:!1}))}removeEventListeners(){const e=this.container,A=window.matchMedia("(pointer: fine)").matches;null==e||e.removeEventListener("wheel",this.handleMouseWheel),this.containerResizeObserver.unobserve(e),A?(null==e||e.removeEventListener("mousedown",this.handleMouseStart),null==e||e.removeEventListener("mousemove",this.handleMouseMove),null==e||e.removeEventListener("mouseup",this.handleMouseStop),null==e||e.removeEventListener("mouseleave",this.handleMouseStop)):(null==e||e.removeEventListener("touchstart",this.handleTouchStart),null==e||e.removeEventListener("touchmove",this.handleTouchMove),null==e||e.removeEventListener("touchend",this.handleTouchStop),null==e||e.removeEventListener("touchcancel",this.handleTouchStop))}getPrecision(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1).toString();return-1!==e.indexOf(".")?e.split(".")[1].length:1}};const Nd={maxZoom:8,minZoom:1,onZoomChange:()=>{}};let Md=class{constructor(e,A){var t=this;this.setTransform=e=>{this.Zoom.setTransform(e)},this.startZoom=()=>{const e=document.getElementById(`${this.options.id}-zoom-container`);e&&(e.style.display="block"),this.Zoom.setAllowZoom(!0),this.Zoom.setUpEventListeners()},this.stopZoom=()=>{const e=document.getElementById(`${this.options.id}-zoom-container`);e&&(e.style.display="none"),this.Zoom.setAllowZoom(!1),this.Zoom.reset(),this.Zoom.removeEventListeners()},this.addScale=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.Zoom.handleZoomAdd(e)},this.subScale=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.Zoom.handleZoomSub(e)},this.container=e,this.options=Object.assign({},Nd,A||{}),this.Zoom=new Td(this.container,Object.assign(Object.assign({},this.options),{allowZoom:!1,onZoomChange:(e,A)=>{this.renderDot(e),this.options.onZoomChange&&this.options.onZoomChange(e,A)}}));const i=document.createElement("div");i.id=`${this.options.id}-zoom-container`;const n=document.getElementById(`${this.options.id}-audioControls`);let a=48;n&&(a=n.offsetHeight);const r=this.options.isMobile?"\n -webkit-transform: scale(0.8);\n -moz-transform: scale(0.8);\n -ms-transform: scale(0.8);\n transform: scale(0.8);\n transform-origin: left bottom;":"";i.style.cssText=`position: absolute;\n display:none;\n left: 12px;\n bottom: ${this.options.isMobile?`${a+6}px`:"102px"};\n ${r}\n `;const o=`\n \n
1.0X
\n
\n \n \n ${this.options.i18n.t("ZOOM_ADD")}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n \n \n ${this.options.i18n.t("ZOOM_SUB")}\n \n \n \n \n \n \n \n \n \n \n
\n \n `;i.innerHTML=o;const s=document.getElementById(`${this.options.id}-audioControls`);if(s){s.parentNode&&s.parentNode.appendChild(i);const e=document.getElementById(`${this.options.id}-addScale`);e&&(e.onclick=()=>{this.addScale()});const A=document.getElementById(`${this.options.id}-subScale`);A&&(A.onclick=()=>{this.subScale()})}this.startZoom=this.startZoom.bind(this),this.stopZoom=this.stopZoom.bind(this),this.addScale=this.addScale.bind(this),this.subScale=this.subScale.bind(this),this.setTransform=this.setTransform.bind(this)}renderDot(e){const A=document.getElementById(`${this.options.id}-scale-value`);A&&(A.innerHTML=`${parseFloat(e).toFixed(1)}X`);const t=document.getElementById(`${this.options.id}-line-dot`);t&&(t.style.height=(parseFloat(e)-1)/7*100+"%");const i=document.getElementById(`${this.options.id}-scale-body-line-dot`);i&&(i.style.bottom=`calc(${(parseFloat(e)-1)/7*100}% - 3px)`)}};var Ld={0:"VIDEO_LEVEL_FLUENT",1:"VIDEO_LEVEL_SATNDARD",2:"VIDEO_LEVEL_HEIGH",3:"VIDEO_LEVEL_SPUER",4:"VIDEO_LEVEL_EXTREME",5:"VIDEO_LEVEL_3K",6:"VIDEO_LEVEL_4k"},Gd=function(e,A,t,i){var n=e.env.domain+"/api/service/media/template/getDetail?accessToken="+(e.accessToken||e.token.httpToken.url)+"&id="+A;e.logger.log("[https request] templateDetailApi()",n),fetch(n,{method:"GET"}).then((function(e){return e.json()})).then((function(A){try{var i,n;null==(n=e.logger)||null==(i=n.log)||i.call(n,"[https response] templateDetailApi()",JSON.stringify(A))}catch(e){}var a;(a=A).meta&&t(a)})).catch((function(e){i(e)}))};function Yd(e,A){(null==A||A>e.length)&&(A=e.length);for(var t=0,i=new Array(A);t=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Hd=function(e){var A="";return Object.keys(e).map((function(t,i){A+=t+":"+e[t]+(i0&&(this.autoFocus=parseInt(this.themeData.autoFocus),this.startAutoFocus(),document.getElementById(this.jSPlugin.id+"-wrap").addEventListener("click",(function(){document.getElementById(t.jSPlugin.id+"-audioControls")&&(document.getElementById(t.jSPlugin.id+"-audioControls").style.opacity=1,document.getElementById(t.jSPlugin.id+"-audioControls").style.pointerEvents="all"),document.getElementById(t.jSPlugin.id+"-headControl")&&(document.getElementById(t.jSPlugin.id+"-headControl").style.opacity=1,document.getElementById(t.jSPlugin.id+"-headControl").style.pointerEvents="all"),t.startAutoFocus()}))),this.setDecoderState({cloudRec:"cloud.rec"===g(this.jSPlugin.url).type,rec:"rec"===g(this.jSPlugin.url).type,type:g(this.jSPlugin.url).type});else if(!this.themeInited)var r=setInterval((function(){window.EZUIKit[t.jSPlugin.id].state.EZUIKitPlayer.init&&t.jSPlugin.autoplay&&(clearInterval(r),t.themeInited=!0)}),50);Hc(this.themeData.footer.btnList,(function(e){return"zoom"===e.iconId&&e.isrender>0}))>=0&&(this.isMobile&&!this.jSPlugin.use3DZoom&&(this.jSPlugin.beforeMobileZoomVerify=function(){return!!t.decoderState.state.play}),this.jSPlugin.logger.log("[Zoom]","init"),this.jSPlugin.Zoom=new Md(document.getElementById(this.jSPlugin.id+"-container-0"),Ud({},this.jSPlugin,{onZoomChange:function(e,A){e<=8&&e>=1&&t.jSPlugin.eventEmitter.emit(dd.zoom.onZoomChange,{zoom:e,reset:A}),e>=8&&!A&&t.jSPlugin.Message&&t.jSPlugin.Message.default(t.jSPlugin.i18n.t("ZOOM_ADD_MAX"),document.getElementById(""+t.jSPlugin.id)),e<=1&&!A&&t.jSPlugin.Message&&t.jSPlugin.Message.default(t.jSPlugin.i18n.t("ZOOM_SUB_MIN"),document.getElementById(""+t.jSPlugin.id))}})));var o,s=0;document.getElementById(this.jSPlugin.id+"-canvas-container")&&(s=parseInt((null==(o=document.getElementById(this.jSPlugin.id+"-canvas-container"))?void 0:o.clientHeight)+"",10));null==(A=this.jSPlugin)||null==(e=A.jSPlugin)||e.JS_Resize(this.jSPlugin.width,this.jSPlugin.height-s,!0)},A.setDecoderState=function(e,A){var t=this;void 0===A&&(A=!0);var i=this.themeData,n=i.header,a=i.footer;Object.keys(e).map((function(i,r){var o="#FFFFFF",s="#FFFFFF";switch(-1===n.btnList.findIndex((function(e){return e.iconId===i}))?(o=a.color.replace("-diy",""),s=a.activeColor.replace("-diy","")):(o=n.color.replace("-diy",""),s=a.activeColor.replace("-diy","")),i){case"play":e[i]?document.getElementById(t.jSPlugin.id+"-play")&&(document.getElementById(t.jSPlugin.id+"-play-content").children[0].children[0].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-play-content").children[0].children[1].style="display:none",document.getElementById(t.jSPlugin.id+"-play").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-play-content").childNodes[0].children[0].style.fill=e[i]?s:o):document.getElementById(t.jSPlugin.id+"-play")&&(document.getElementById(t.jSPlugin.id+"-play-content").children[0].children[1].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-play-content").children[0].children[0].style="display:none",document.getElementById(t.jSPlugin.id+"-play").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-play-content").childNodes[0].children[1].style.fill=e[i]?s:o);break;case"sound":document.getElementById(t.jSPlugin.id+"-sound")&&(e[i]?(document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[1].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[0].style="display:none",document.getElementById(t.jSPlugin.id+"-sound").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-sound-content").childNodes[0].children[1].style.fill=e[i]?s:o):(document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[0].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[1].style="display:none",document.getElementById(t.jSPlugin.id+"-sound").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-sound-content").childNodes[0].children[0].style.fill=e[i]?s:o));break;case"recordvideo":document.getElementById(t.jSPlugin.id+"-recordvideo")&&(document.getElementById(t.jSPlugin.id+"-recordvideo").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-recordvideo-content").childNodes[0].style.fill=e[i]?s:o,e[i]?t.countTime("add",0):t.countTime("destroy",0));break;case"talk":document.getElementById(t.jSPlugin.id+"-talk")&&(document.getElementById(t.jSPlugin.id+"-talk").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-talk-content").childNodes[1].style.fill=e[i]?s:o);break;case"zoom":document.getElementById(t.jSPlugin.id+"-zoom")&&(document.getElementById(t.jSPlugin.id+"-zoom").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-zoom-content").childNodes[1].style.fill=e[i]?s:o);break;case"pantile":document.getElementById(t.jSPlugin.id+"-pantile")&&(document.getElementById(t.jSPlugin.id+"-pantile").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-pantile-content").childNodes[0].style.fill=e[i]?s:o);break;case"webExpend":e[i]?(document.getElementById(t.jSPlugin.id+"-webExpend")&&(document.getElementById(t.jSPlugin.id+"-webExpend-content").children[0].children[1].style="display:inline-flex",document.getElementById(t.jSPlugin.id+"-webExpend-content").children[0].children[0].style="display:none"),document.getElementById(t.jSPlugin.id+"-expend")&&(document.getElementById(t.jSPlugin.id+"-expend").className="disabled")):(document.getElementById(t.jSPlugin.id+"-webExpend")&&(document.getElementById(t.jSPlugin.id+"-webExpend-content").children[0].children[0].style="display:inline-flex",document.getElementById(t.jSPlugin.id+"-webExpend-content").children[0].children[1].style="display:none"),document.getElementById(t.jSPlugin.id+"-expend")&&(document.getElementById(t.jSPlugin.id+"-expend").className="")),document.getElementById(t.jSPlugin.id+"-webExpend")&&(document.getElementById(t.jSPlugin.id+"-webExpend").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-webExpend-content").childNodes[0].childNodes[0].style.fill=e[i]?s:o,document.getElementById(t.jSPlugin.id+"-webExpend-content").childNodes[0].childNodes[1].style.fill=e[i]?s:o);break;case"capturePicture":document.getElementById(t.jSPlugin.id+"-capturePicture")&&(document.getElementById(t.jSPlugin.id+"-capturePicture").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-capturePicture-content").childNodes[0].style.fill=e[i]?s:o);break;case"expend":e[i]?(document.getElementById(t.jSPlugin.id+"-expend")&&(document.getElementById(t.jSPlugin.id+"-expend-content").children[0].children[1].style="display:inline-flex",document.getElementById(t.jSPlugin.id+"-expend-content").children[0].children[0].style="display:none"),document.getElementById(t.jSPlugin.id+"-webExpend")&&(document.getElementById(t.jSPlugin.id+"-webExpend").className="disabled")):(document.getElementById(t.jSPlugin.id+"-expend")&&(document.getElementById(t.jSPlugin.id+"-expend-content").children[0].children[0].style="display:inline-flex",document.getElementById(t.jSPlugin.id+"-expend-content").children[0].children[1].style="display:none"),document.getElementById(t.jSPlugin.id+"-webExpend")&&(document.getElementById(t.jSPlugin.id+"-webExpend").className="")),document.getElementById(t.jSPlugin.id+"-expend")&&(document.getElementById(t.jSPlugin.id+"-expend").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-expend-content").childNodes[0].childNodes[0].style.fill=e[i]?s:o,document.getElementById(t.jSPlugin.id+"-expend-content").childNodes[0].childNodes[1].style.fill=e[i]?s:o);break;case"hd":break;case"speed":if(document.getElementById(t.jSPlugin.id+"-speed")){var g=document.getElementById(t.jSPlugin.id+"-speed-content").children[1].children[0];"not-allowed"!==g.style.cursor&&(g.style.color=e[i]?s:o,g.style.borderColor=e[i]?s:o)}document.getElementById(t.jSPlugin.id+"-select-mask")&&(t.isMobile&&e[i]?document.getElementById(t.jSPlugin.id+"-select-mask").style.display="block":document.getElementById(t.jSPlugin.id+"-select-mask").style.display="none");break;case"cloudRec":document.getElementById(t.jSPlugin.id+"-cloudRec")&&(document.getElementById(t.jSPlugin.id+"-cloudRec").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-cloudRec-content").children[0].children[0].style.fill=e[i]?s:o),document.getElementById(t.jSPlugin.id+"-rec")&&(document.getElementById(t.jSPlugin.id+"-rec").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-rec-content").children[0].children[0].style.fill=e[i]?o:s);break;case"cloudRecord":var l=document.getElementById(t.jSPlugin.id+"-cloudRecord");l&&(l.className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-cloudRecord-content").children[0].children[0].style.fill=e[i]?s:o),document.getElementById(t.jSPlugin.id+"-rec")&&(document.getElementById(t.jSPlugin.id+"-rec").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-rec-content").children[0].children[0].style.fill=e[i]?o:s);break;case"rec":document.getElementById(t.jSPlugin.id+"-cloudRec")&&(document.getElementById(t.jSPlugin.id+"-cloudRec").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-cloudRec-content").children[0].children[0].style.fill=e[i]?o:s),document.getElementById(t.jSPlugin.id+"-cloudRecord")&&(document.getElementById(t.jSPlugin.id+"-cloudRecord").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-cloudRecord-content").children[0].children[0].style.fill=e[i]?o:s),document.getElementById(t.jSPlugin.id+"-rec")&&(document.getElementById(t.jSPlugin.id+"-rec").className=e[i]?"active":"",document.getElementById(t.jSPlugin.id+"-rec-content").children[0].children[0].style.fill=e[i]?s:o)}A&&(t.decoderState.state=Object.assign(t.decoderState.state,e))}))},A.startAutoFocus=function(){var e=this,A=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout((function(){document.getElementById(e.jSPlugin.id+"-audioControls")&&(document.getElementById(e.jSPlugin.id+"-audioControls").style.opacity=0,document.getElementById(e.jSPlugin.id+"-audioControls").style.pointerEvents="none"),document.getElementById(e.jSPlugin.id+"-headControl")&&(document.getElementById(e.jSPlugin.id+"-headControl").style.opacity=0,document.getElementById(e.jSPlugin.id+"-headControl").style.pointerEvents="none")}),1e3*A)},A.stopAutoFocus=function(){document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.opacity=1,document.getElementById(this.jSPlugin.id+"-audioControls").style.pointerEvents="all"),document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-headControl").style.opacity=1,document.getElementById(this.jSPlugin.id+"-headControl").style.pointerEvents="all"),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer)},A.hideFooter=function(){document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.display="none")},A.showFooter=function(){document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.display="block")},A.toString=function(){return this.coreX+"-"+this.coreY},A.renderFooter=function(e,A){var t=this.matchBtn(e),i=document.createElement("div");i.className="theme-icon-item",i.innerHTML='
'+t.domString+"
",i.onclick=function(e){t.onclick(e)},t.onmouseenter&&(i.onmouseenter=function(e){t.onmouseenter(e)}),t.onmouseleave&&(i.onmouseleave=function(e){t.onmouseleave(e)}),"left"===A?document.getElementById(this.jSPlugin.id+"-audioControls").childNodes[0].appendChild(i):document.getElementById(this.jSPlugin.id+"-audioControls").childNodes[1].appendChild(i)},A.renderHeader=function(e,A){var t=this.matchBtn(e),i=document.createElement("div");i.className="theme-icon-item",i.style="max-width:50%;",i.innerHTML=''+t.domString+"",i.onclick=function(e){t.onclick(e)},"left"===A?document.getElementById(this.jSPlugin.id+"-headControl").childNodes[0].appendChild(i):document.getElementById(this.jSPlugin.id+"-headControl").childNodes[1].appendChild(i)},A.countTime=function(e,A){void 0===A&&(A=0);var t=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var i=document.createElement("div");i.id=this.jSPlugin.id+"time-area",i.className="time-area",i.innerHTML='00:00',document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").appendChild(i)}if(this.countTimer&&clearInterval(this.countTimer),"add"===e){var n=A;document.getElementById(t.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval((function(){++n,document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML=function(e){var A=parseInt(e),t=0,i=0,n="00",a="00",r="00";A>59&&(t=parseInt(A/60),A=parseInt(A%60),t>59&&(i=parseInt(t/60),t=parseInt(t%60)));return n=parseInt(A)>9?parseInt(A):"0"+parseInt(A),a=parseInt(t)>9?parseInt(t):"0"+parseInt(t),r=parseInt(i)>9?parseInt(i):"0"+parseInt(i),i>0?r+":"+a+":"+n:t>0?a+":"+n:"00:"+n}(n)}),1e3)}else"destroy"===e&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(t.jSPlugin.id+"time-area")&&(document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(t.jSPlugin.id+"time-area").style.display="none"))},A.setDisabled=function(e){var A=this.decoderState.state,t=A.sound,i=A.expend,n=e?"cursor: not-allowed; color: gray; fill: gray; ":"cursor: default";null!=document.getElementById(t?this.jSPlugin.id+"-sound-icon":this.jSPlugin.id+"-nosound-icon")&&document.getElementById(t?this.jSPlugin.id+"-sound-icon":this.jSPlugin.id+"-nosound-icon").setAttribute("style",e?"cursor: not-allowed; color: gray; fill: gray;":"cursor: default"),null!=document.getElementById(this.jSPlugin.id+"-recordvideo-icon")&&document.getElementById(this.jSPlugin.id+"-recordvideo-icon").setAttribute("style",n),null!=document.getElementById(this.jSPlugin.id+"-capturePicture-icon")&&document.getElementById(this.jSPlugin.id+"-capturePicture-icon").setAttribute("style",n),null!=document.getElementById(this.jSPlugin.id+"-talk-icon")&&document.getElementById(this.jSPlugin.id+"-talk-icon").setAttribute("style",n),null!=document.getElementById(i?this.jSPlugin.id+"-unexpend-icon":this.jSPlugin.id+"-expend-icon")&&document.getElementById(i?this.jSPlugin.id+"-unexpend-icon":this.jSPlugin.id+"-expend-icon").setAttribute("style",n),document.getElementById(this.jSPlugin.id+"-pantile-icon")&&"none"!=document.getElementById(this.jSPlugin.id+"-pantile-icon").style.display&&document.getElementById(this.jSPlugin.id+"-pantile-icon").setAttribute("style",n);var a=document.getElementsByClassName(this.jSPlugin.id+"-select-quality-btn");if(a.length)for(var r=0;r',a.onclick=function(){var e=A.decoderState.state,t=e.play,i=e.rec,n=e.cloudRec,a=e.recordvideo,r=e.pantile,o=e.expend;e.talk,window.recTimer&&Array.isArray(window.recTimer[A.jSPlugin.id])&&(window.recTimer[A.jSPlugin.id].map((function(e){clearInterval(e)})),window.recTimer[A.jSPlugin.id]=[]),t?(i||n?A.jSPlugin.pause():A.jSPlugin.stop((function(){}),!0),a&&A.setDecoderState({recordvideo:!1})):(i||n?A.jSPlugin.resume().then((function(){A.setDisabled(t),A.setDecoderState({play:!t,expend:o})})):A.jSPlugin.play().then((function(){A.setDisabled(t),A.setDecoderState({play:!t,expend:o})})),A.jSPlugin.use3DZoom&&A.resetMobileZoomStatus()),A.jSPlugin.use3DZoom?(A.setDecoderState({zoom:!1}),A.allowZoom=!1):A.allowZoom=i||n,r&&A.Ptz&&(A.Ptz.hide(),A.setDecoderState({pantile:!1})),document.getElementById(A.jSPlugin.id+"-speedSelect")&&(document.getElementById(A.jSPlugin.id+"-speedSelect").style.display="none"),A.setDecoderState({speed:!1})};break;case"sound":a.title=this.jSPlugin.i18n.t("BTN_SOUND"),a.id=e,a.domString='\n \n \n \n \n ',a.onclick=function(){var e=A.decoderState.state,t=e.play,i=e.sound,n=e.talk;t&&!n&&(i?(A.jSPlugin.closeSound(),A.setDecoderState({sound:!1})):A.jSPlugin.openSound())};break;case"recordvideo":if(r)break;a.title=this.jSPlugin.i18n.t("BTN_RECORDVIDEO"),a.id=e,a.domString='',a.onclick=function(){var e=A.decoderState.state,t=e.play,i=e.recordvideo;t&&(i?A.jSPlugin.stopSave(A.jSPlugin.downloadRecord):A.jSPlugin.startSave(""+(new Date).getTime()))};break;case"capturePicture":a.title=this.jSPlugin.i18n.t("BTN_CAPTURE"),a.id=e,a.domString='',a.onclick=function(){A.decoderState.state.play&&A.jSPlugin.capturePicture(""+(new Date).getTime(),(function(){}),A.jSPlugin.download)};break;case"talk":if(r)break;a.title=this.jSPlugin.i18n.t("BTN_TALK"),a.id=e,a.domString='
Kd?8:5)+"px; position: absolute; left: "+(this.jSPlugin.width>Kd?20:13)+"px; top: "+(this.jSPlugin.width>Kd?14:9)+'px; border-radius: 50%; overflow:hidden;">
',this.jSPlugin.Talk.eventEmitter.on("volumeChange",(function(e){var t=e.data;document.getElementById(A.jSPlugin.id+"-volume-column")&&(document.getElementById(A.jSPlugin.id+"-volume-column").style.height=100*t+"%")})),a.onclick=function(){if(!A.jSPlugin.beforeTalk||"function"!=typeof A.jSPlugin.beforeTalk||!1!==A.jSPlugin.beforeTalk()){var e=A.decoderState.state,t=e.talk;e.play&&(t?A.jSPlugin.stopTalk():A.jSPlugin.startTalk())}};break;case"zoom":if(r)break;a.title=this.jSPlugin.use3DZoom?this.jSPlugin.i18n.t("BTN_3D_ZOOM"):this.jSPlugin.i18n.t("BTN_ZOOM"),a.id=e,a.domString='
\n \n \n \n \n ',a.onclick=function(){var e=A.decoderState.state,t=e.zoom,i=e.play;if(A.jSPlugin.use3DZoom){if(!i)return!1;t?A.jSPlugin.close3DZoom():A.jSPlugin.enable3DZoom()}else{if(A.zoomDisable)return!1;t?A._stopZoom():A._startZoom()}A.setDecoderState({zoom:!t})};break;case"pantile":if(r)break;a.title=this.jSPlugin.i18n.t("BTN_PTZ"),a.id=e,a.domString='',a.onclick=function(){var e=A.decoderState.state,t=e.play,i=e.pantile,n=e.expend;if(t)if(i)A.Ptz.hide(),A.setDecoderState({pantile:!1});else{if(A.isMobile&&!n)return!1;A.Ptz.show(),A.setDecoderState({pantile:!0})}};break;case"expend":a.title=this.jSPlugin.i18n.t("BTN_EXPEND"),a.id=e,a.domString='\n ',a.onclick=function(){var e=A.decoderState.state,t=e.expend,i=e.pantile;if(e.play)if(t)if(A.isMobile){var n=A._extendHeadeTimeLinrHight(!0);document.getElementById(A.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(A.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop="-32px"),document.getElementById(A.jSPlugin.id+"-select-speed")&&(document.getElementById(A.jSPlugin.id+"-select-speed").style.background="#ffffff"),function(e,A,t){var i="";i+="width:"+A+"px;",i+="height:"+t+"px;",i+="-webkit-transform: none; transform: none;",i+="-webkit-transform-origin: 0 0;",i+="transform-origin: 0 0;",i+="position: relative;",e.style.cssText=i}(document.getElementById(A.jSPlugin.id+"-wrap"),A.jSPlugin.width,A.jSPlugin.height),document.getElementById(A.jSPlugin.id+"-wrap").classList.remove("ezuikit-player-wrap-mobile-fullscreen"),A.jSPlugin.jSPlugin.JS_Resize(A.jSPlugin.width,A.jSPlugin.height-n),i&&A.Ptz&&(A.Ptz.hide(),A.setDecoderState({pantile:!1})),A.jSPlugin.fullScreenWidth=A.jSPlugin.width,A.jSPlugin.fullScreenHeight=A.jSPlugin.height,A.jSPlugin.Zoom&&A.jSPlugin.Zoom.setTransform(!t),document.getElementById(A.jSPlugin.id+"-pantile-icon")&&(document.getElementById(A.jSPlugin.id+"-pantile-icon").style.display="none"),document.getElementById(A.jSPlugin.id+"-hdSelect")&&(document.getElementById(A.jSPlugin.id+"-hdSelect").style.bottom="calc(constant(safe-area-inset-bottom) + 100px)",document.getElementById(A.jSPlugin.id+"-hdSelect").style.bottom="calc(env(safe-area-inset-bottom) + 100px)",document.getElementById(A.jSPlugin.id+"-hdSelect").style.height=45*(A.jSPlugin.videoLevelList||[]).length+"px"),A.setDecoderState({expend:!1})}else A.jSPlugin.exitFullscreen();else if(A.isMobile){var a,r=A._extendHeadeTimeLinrHight(!0);s(document.getElementById(A.jSPlugin.id+"-wrap")),document.getElementById(A.jSPlugin.id+"-wrap").classList.add("ezuikit-player-wrap-mobile-fullscreen");var o=document.documentElement.clientWidth,g=document.documentElement.clientHeight;document.getElementById(""+A.jSPlugin.id)&&(document.getElementById(""+A.jSPlugin.id).style["backface-visibility"]="hidden"),document.getElementById(A.jSPlugin.id+"-select-speed")&&(document.getElementById(A.jSPlugin.id+"-select-speed").style.background="none"),A.jSPlugin.jSPlugin.JS_Resize(g,o-r,!0),A.jSPlugin.fullScreenWidth=g,A.jSPlugin.fullScreenHeight=o-r,A.jSPlugin.Zoom&&(null==(a=A.jSPlugin.Zoom)||a.setTransform(!t)),document.getElementById(A.jSPlugin.id+"-pantile-icon")&&(document.getElementById(A.jSPlugin.id+"-pantile-icon").style.display="block"),document.getElementById(A.jSPlugin.id+"-hdSelect")&&(document.getElementById(A.jSPlugin.id+"-hdSelect").style.bottom=0,document.getElementById(A.jSPlugin.id+"-hdSelect").style.height="100%"),A.setDecoderState({expend:!0})}else A.jSPlugin.fullscreen()};break;case"webExpend":if(r)break;a.title=this.jSPlugin.i18n.t("BTN_WEBEXPEND"),a.id=e,a.domString='',a.onclick=function(){var e,t=A.decoderState.state,i=t.webExpend;if(t.expend)return!1;window.recTimer&&Array.isArray(window.recTimer[A.jSPlugin.id])&&(window.recTimer[A.jSPlugin.id].map((function(e){clearInterval(e)})),window.recTimer[A.jSPlugin.id]=[]),i?A.jSPlugin.exitBrowserFullscreen():A.jSPlugin.browserFullscreen(),(null==(e=A.jSPlugin.Theme)?void 0:e.Rec)&&setTimeout((function(){A.jSPlugin.Theme.Rec.recAutoSize()}),100)};break;case"hd":if(r)break;var g=this.jSPlugin.id+"-select-quality";return a.title=this.jSPlugin.i18n.t("BTN_HD"),a.id=e,a.onclick=function(e){var t=A.decoderState.state,i=t.expend,n=t.recordvideo,a=t.play,r=t.zoom,o=t.pantile,s=t.sound;if(t.talk,e.stopPropagation(),a){var l=e.target.id,c=e.target.getAttribute("data-type");if(0===l.indexOf(g)){if(A.jSPlugin.videoLevel+""!==c){var d=(A.jSPlugin.videoLevelList||[]).find((function(e){return e.level+""===c}));!d||d.streamTypeIn===A.jSPlugin.streamTypeIn&&d.level+""==A.jSPlugin.videoLevel+""||(A.jSPlugin.changeVideoLevel(d).then((function(e){s&&A.jSPlugin.openSound()})),r&&(A._stopZoom(),A.setDecoderState({zoom:!1})))}A.resetMobileZoomStatus(),n&&A.setDecoderState({recordvideo:!1})}A.showHD=!A.showHD,document.getElementById(A.jSPlugin.id+"-hdSelect")&&(document.getElementById(A.jSPlugin.id+"-hdSelect").style.display="none"===document.getElementById(A.jSPlugin.id+"-hdSelect").style.display?"block":"none",A.isMobile&&(document.getElementById(A.jSPlugin.id+"-select-hd-mask").style.display="none"===document.getElementById(A.jSPlugin.id+"-select-hd-mask").style.display?"block":"none"),A.themeData.autoFocus>0&&("none"===document.getElementById(A.jSPlugin.id+"-hdSelect").style.display?A.startAutoFocus():A.stopAutoFocus())),A.isMobile&&i&&A.showHD?document.getElementById(A.jSPlugin.id+"-hdSelect").className="hd speed-select mobile expend":document.getElementById(A.jSPlugin.id+"-hdSelect").className=A.isMobile?"hd speed-select mobile":"speed-select",o&&A.Ptz&&(A.Ptz.hide(),A.setDecoderState({pantile:!1}))}},setTimeout((function(){A.___renderVideoLevelList(A.jSPlugin.videoLevelList),A.__renderCurrentVideoLevel(A.jSPlugin.videoLevel)}),1e3),a;case"speed":if(r)break;a.title=this.jSPlugin.i18n.t("BTN_SPEED"),a.id=e,a.domString='\n
'+(1===this.nextRate?this.jSPlugin.i18n.t("SPEED"):(""+this.nextRate+this.jSPlugin.i18n.t("SPEED_RATE")).replace("3","0.5"))+'
\n
',a.onclick=function(e){var t=A.decoderState.state,i=t.speed,n=t.expend,a=t.play;if(e.stopPropagation(),!a)return!1;if(!i&&A.isMobile&&(document.getElementById(A.jSPlugin.id+"-speedSelect").className=n?"speed speed-select mobile expend":"speed speed-select mobile"),A.isMobile&&(n?(document.getElementById(A.jSPlugin.id+"-speedSelect").style.bottom="constant(safe-area-inset-bottom)",document.getElementById(A.jSPlugin.id+"-speedSelect").style.bottom="env(safe-area-inset-bottom)"):(document.getElementById(A.jSPlugin.id+"-speedSelect").style.bottom="calc(constant(safe-area-inset-bottom) + 100px)",document.getElementById(A.jSPlugin.id+"-speedSelect").style.bottom="calc(env(safe-area-inset-bottom) + 100px)")),A.nextRate=1,e.target.id)switch(e.target.id){case A.jSPlugin.id+"-select-speed1":A.nextRate=1,A.jSPlugin.jSPlugin.JS_Speed(A.nextRate),A.changeRecSpeed(1),A.jSPlugin.speed=1,A.setDecoderState({speed:!i});break;case A.jSPlugin.id+"-select-speed2":A.nextRate=2,A.jSPlugin.jSPlugin.JS_Speed(A.nextRate),A.changeRecSpeed(2),A.jSPlugin.speed=2,A.setDecoderState({speed:!i});break;case A.jSPlugin.id+"-select-speed4":A.nextRate=4,A.jSPlugin.jSPlugin.JS_Speed(A.nextRate),A.changeRecSpeed(4),A.jSPlugin.speed=4,A.setDecoderState({speed:!i});break;case A.jSPlugin.id+"-select-speed05":A.nextRate=3,A.jSPlugin.jSPlugin.JS_Speed(A.nextRate),A.changeRecSpeed(.5),A.jSPlugin.speed=.5,A.setDecoderState({speed:!i});break;default:A.isMobile?A.setDecoderState({speed:!i}):A.setDecoderState({speed:!0})}A.isMobile&&e.target.id===A.jSPlugin.id+"-speed-text"?document.getElementById(A.jSPlugin.id+"-speedSelect").style.display="block":document.getElementById(A.jSPlugin.id+"-speedSelect")&&(document.getElementById(A.jSPlugin.id+"-speedSelect").style.display="none"===document.getElementById(A.jSPlugin.id+"-speedSelect").style.display?"block":"none"),A.setDecoderState({speed:!i}),A.themeData.autoFocus>0&&("none"===document.getElementById(A.jSPlugin.id+"-speedSelect").style.display?A.startAutoFocus():A.stopAutoFocus())};break;case"deviceName":a.title=this.jSPlugin.i18n.t("DEVICE_NAME"),a.id=e,a.domString=""+this.jSPlugin.i18n.t("DEVICE_NAME")+"",a.onclick=function(){};break;case"deviceID":a.title=this.jSPlugin.i18n.t("DEVICE_ID"),a.id=e,a.domString=""+this.jSPlugin.i18n.t("DEVICE_ID")+"",a.onclick=function(){};break;case"cloudRec":if(this.jSPlugin._isCloudRecord)break;a.title=this.jSPlugin.i18n.t("BTN_CLOUDREC"),a.id=e,a.domString='\n \n \n\t\n\t\n\t\n \n \n ',a.onclick=function(){var e=A.decoderState.state.sound;A.setDecoderState({type:"cloud.rec",cloudRec:!0,rec:!1}),A.jSPlugin.eventEmitter.emit(dd.recTypeChange,{eventType:"cloud",code:0,data:{type:"cloud"}}),A.decoderState.state.zoom&&(A.setDecoderState({zoom:!1}),A._stopZoom(),A.jSPlugin.close3DZoom()),A.jSPlugin.changePlayUrl({type:"cloud.rec"},(function(){A.Rec&&A.Rec.syncTimeLine()}),!1).then((function(){e&&A.jSPlugin.openSound()}))};break;case"cloudRecord":var l=this.jSPlugin.width>Kd?48:32,c=this.jSPlugin.width>Kd?56:39,d=this.jSPlugin.width>Kd?24:18;if(!this.jSPlugin._isCloudRecord)break;a.title=this.jSPlugin.i18n.t("BTN_CLOUDRECORD"),a.id=e,a.domString='\n\n\n\t\n\t\n\t\n\t',a.onclick=function(){var e=A.decoderState.state.sound;A.setDecoderState({type:"cloud.rec",cloudRec:!0,rec:!1}),A.jSPlugin.eventEmitter.emit(dd.recTypeChange,{eventType:"cloudRecord",code:0,data:{type:"cloudRecord"}}),A.decoderState.state.zoom&&(A.setDecoderState({zoom:!1}),A._stopZoom(),A.jSPlugin.close3DZoom()),A.jSPlugin.changePlayUrl({type:"cloud.rec"},(function(){A.jSPlugin._isCloudRecord&&A.changeTheme("pcRec"),A.Rec&&A.Rec.syncTimeLine()}),!1).then((function(){e&&A.jSPlugin.openSound()}))};break;case"rec":a.title=this.jSPlugin.i18n.t("BTN_REC"),a.id=e,a.domString='\n \n \n \n\n\n\n \n \n ',a.onclick=function(){var e=A.decoderState.state.sound;A.setDecoderState({type:"rec",cloudRec:!1,rec:!0}),A.jSPlugin.eventEmitter.emit(dd.recTypeChange,{eventType:"local",code:0,data:{type:"local"}}),A.decoderState.state.zoom&&(A.setDecoderState({zoom:!1}),A._stopZoom(),A.jSPlugin.close3DZoom()),A.jSPlugin.changePlayUrl({type:"rec"},(function(){A.jSPlugin._isCloudRecord&&A.changeTheme("pcRec"),A.Rec&&A.Rec.syncTimeLine()}),!1).then((function(){e&&A.jSPlugin.openSound()}))}}return a},A._videoLevelIcon=function(e,A,t,i,n){return'\n i?48:32)+"px;line-height: "+(t>i?48:30)+'px;text-align: center; font-size: 14px;">\n '+(Object.values(Ld).includes(n.name)?this.jSPlugin.i18n.t(Ld[n.level]):n.name)+"\n \n "},A.___renderVideoLevelList=function(e){var A=this,t=this.jSPlugin.id+"-select-quality",i=t+"-item";if(0!==(null==e?void 0:e.length)||!document.getElementById(this.jSPlugin.id+"-hd")){var n=this.isMobile?45:32,a='\n \n \n ';document.getElementById(this.jSPlugin.id+"-hd-content")&&(document.getElementById(this.jSPlugin.id+"-hd-content").innerHTML=a)}},A.__renderCurrentVideoLevel=function(e){var A=this.jSPlugin.id+"-select-quality",t=this.jSPlugin.videoLevelList.find((function(A){return A.level===e||A.level===(null==e?void 0:e.level)}));t||(t=this.jSPlugin.videoLevelList[0]);var i=document.getElementById(this.jSPlugin.id+"-videoLevel-icon"),n=document.getElementById(this.jSPlugin.id+"-hdSelect-icon-warp");if(i&&n&&n.removeChild(i),n){var a=this.jSPlugin.width>Kd?16:13;n.innerHTML='\n Kd?48:32)+"px;line-height: "+(this.jSPlugin.width>Kd?48:32)+"px;text-align: center; font-size: "+a+'px;text-overflow: ellipsis;\n overflow: hidden;\n word-break: break-all;\n white-space: nowrap;">\n '+(Object.values(Ld).includes(t.name)?this.jSPlugin.i18n.t(Ld[t.level]):t.name)+"\n \n "}},A._renderVideoLevelListEvent=function(){var e,A,t=this;null==(e=this.jSPlugin.eventEmitter)||e.on(dd.setVideoLevelList,(function(e){return t.___renderVideoLevelList(e)})),null==(A=this.jSPlugin.eventEmitter)||A.on(dd.currentVideoLevel,(function(e){return t.__renderCurrentVideoLevel(e)}))},A._fullScreenChangeEvent=function(){var e=this,A=this;this._fullscreenchange=function(t){e.jSPlugin.isCurrentBrowserFullscreen?A.setDecoderState({webExpend:!0}):A.setDecoderState({webExpend:!1}),A.Rec&&window.randomNum==A.jSPlugin.randomNum&&setTimeout((function(){A.Rec.recAutoSize((function(){if(A.jSPlugin.Zoom.currentScale>1){var e=A.jSPlugin.Zoom.currentScale;A._stopZoom(),setTimeout((function(){A._startZoom(),A.jSPlugin.Zoom.currentScale=e,A.jSPlugin.Zoom.doScale(e)}),200)}}))}),100),document.getElementById(A.jSPlugin.id+"-hdSelect")&&(document.getElementById(A.jSPlugin.id+"-hdSelect").style.display="none"),document.getElementById(A.jSPlugin.id+"-speedSelect")&&(document.getElementById(A.jSPlugin.id+"-speedSelect").style.display="none"),A.isMobile&&(document.getElementById(A.jSPlugin.id+"-select-hd-mask")&&(document.getElementById(A.jSPlugin.id+"-select-hd-mask").style.display="none"),document.getElementById(A.jSPlugin.id+"-select-mask")&&(document.getElementById(A.jSPlugin.id+"-select-mask").style.display="none")),A.themeData.autoFocus>0&&A.startAutoFocus(),e.setDecoderState({speed:!1})},ud.isEnabled&&this.jSPlugin.eventEmitter.on(dd.fullscreenChange,this._fullscreenchange)},A.changeRecSpeed=function(e){var A,t,i=this,n=function(e){if(!document.getElementById(i.jSPlugin.id+"-speedSelect"))return!1;document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[0].className=document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[0].className.replace("active","default"),document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[1].className=document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[1].className.replace("active","default"),document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[2].className=document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[2].className.replace("active","default"),document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[3].className=document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[3].className.replace("active","default"),document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[e].className=document.getElementById(i.jSPlugin.id+"-speedSelect").childNodes[e].className.replace("default","active")},a="1";switch(e){case 1:n(2),a=this.jSPlugin.i18n.t("SPEED");break;case 2:n(1),a=""+e+this.jSPlugin.i18n.t("SPEED_RATE");break;case 4:n(0),a=""+e+this.jSPlugin.i18n.t("SPEED_RATE");break;case.5:n(3),a=""+e+this.jSPlugin.i18n.t("SPEED_RATE");break;default:n(2),a=""+e+this.jSPlugin.i18n.t("SPEED_RATE")}null==(t=this.jSPlugin)||null==(A=t.eventEmitter)||A.emit(dd.speedChange,e),document.getElementById(this.jSPlugin.id+"-speed-text")&&(document.getElementById(this.jSPlugin.id+"-speed-text").innerHTML=a)},A.initThemeData=function(){var e=this,A=this.themeData,t=A.header,i=A.footer,n=this.jSPlugin.id;if(this.header=Vc,this.footer=jc,this.isNeedRenderHeader=Hc(t.btnList,(function(e){return e.isrender>0}))>=0&&"miniRec"!=this.jSPlugin.id,this.isMobile&&(this.isNeedRenderHeader=Hc(t.btnList,(function(e){return e.isrender>0&&"deviceID"===e.iconId||e.isrender>0&&"deviceName"===e.iconId}))>=0&&"miniRec"!=this.jSPlugin.id),this.isNeedRenderFooter=Hc(i.btnList,(function(e){return e.isrender>0}))>=0&&"miniRec"!=this.jSPlugin.id,this.isNeedRenderTimeLine=Hc(t.btnList,(function(e){return"cloudRec"===e.iconId&&1===e.isrender||"rec"===e.iconId&&1===e.isrender}))>=0&&!this.jSPlugin.disabledTimeLine&&"miniRec"!=this.jSPlugin.id,["date-switch-container-wrap","rec-type-container-wrap","mobile-rec-wrap","mobile-ez-ptz-container"].forEach((function(e,A){document.getElementById(e)&&document.getElementById(e).parentElement.removeChild(document.getElementById(e))})),this.isNeedRenderHeader){if(document.getElementById(this.jSPlugin.id+"-headControl"))document.getElementById(this.jSPlugin.id+"-headControl").innerHTML="
";else{var a=document.createElement("div");a.setAttribute("id",this.jSPlugin.id+"-headControl"),a.setAttribute("class","header-controls"),a.innerHTML="
";var r={height:this.jSPlugin.width>Kd?"48px":"32px","line-height":this.jSPlugin.width>Kd?"48px":"32px",display:"flex","justify-content":"space-between",top:0,left:0,right:0,"z-index":999,"background-color":"rgba(0,0,0,.8)",color:"#FFFFFF",width:"100%",position:"absolute"};a.style=Hd(r),document.getElementById(n+"-wrap").insertBefore(a,document.getElementById(n))}var s=document.getElementById(n+"-wrap").classList.contains("ezuikit-player-wrap-mobile-fullscreen");!document.getElementById(this.jSPlugin.id+"-headControl")||this.jSPlugin._isCurrentBrowserFullscreen||s||this.jSPlugin.jSPlugin.JS_Resize(this.jSPlugin.width,this.jSPlugin.height-this._extendHeadeTimeLinrHight(!1),!0)}else document.getElementById(this.jSPlugin.id+"-headControl")&&document.getElementById(this.jSPlugin.id+"-headControl").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-headControl")),!document.getElementById(this.jSPlugin.id+"-headControl")||this.jSPlugin._isCurrentBrowserFullscreen||isMobileFullscreen||this.jSPlugin.jSPlugin.JS_Resize(this.jSPlugin.width,this.jSPlugin.height-this._extendHeadeTimeLinrHight(!1),!0);if(this.isNeedRenderFooter)if(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"))document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop="-"+(this.jSPlugin.width>Kd?48:32)+"px",document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").innerHTML='");else{var l=document.createElement("div");l.setAttribute("id",this.jSPlugin.id+"-ez-iframe-footer-container"),l.setAttribute("class","ez-iframe-footer-container");l.style=Hd({position:"absolute",bottom:0,left:0,right:0,display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,color:"#FFFFFF",width:"100%"}),l.innerHTML='",o(l,document.getElementById(n))}else document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"));if(this.isNeedRenderHeader&&document.getElementById(this.jSPlugin.id+"-headControl")){document.getElementById(this.jSPlugin.id+"-headControl").style.background=t.backgroundColor,document.getElementById(this.jSPlugin.id+"-headControl").style.color=t.color;for(var c,d=Jd(t.btnList);!(c=d()).done;){var I=c.value;if(I.isrender)try{this.renderHeader(I.iconId,I.part)}catch(e){}}}if(this.isNeedRenderFooter&&document.getElementById(this.jSPlugin.id+"-audioControls")){document.getElementById(this.jSPlugin.id+"-audioControls").style.background=i.backgroundColor,document.getElementById(this.jSPlugin.id+"-audioControls").style.color=i.color;for(var C,h=Jd(i.btnList);!(C=h()).done;){var u=C.value;if(u.isrender)try{this.renderFooter(u.iconId,u.part)}catch(e){}}}if(this.isNeedRenderTimeLine)if(this.isMobile)document.getElementById(this.jSPlugin.id+"-headControl-right")&&(document.getElementById(this.jSPlugin.id+"-headControl-right").style.display="none"),this.Rec?this.Rec.recInit():this.Rec=new xd(this.jSPlugin,this.changeRecSpeed,this.resetMobileZoomStatus);else{this.Rec?this.Rec.recInit():(this.jSPlugin.decoderState=this.decoderState,this.jSPlugin.setDecoderState=this.setDecoderState,this.Rec=new Id(this.jSPlugin));var B=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(B)}),50)}if(Hc(this.themeData.footer.btnList,(function(e){return"pantile"===e.iconId&&1===e.isrender}))>=0&&!this.jSPlugin.disabledPTZ&&(this.isMobile&&(this.MobilePtz=new md(this.jSPlugin)),this.Ptz=new pd(this.jSPlugin)),this.themeData.poster){this.jSPlugin.poster=this.themeData.poster;var f=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(f),e.jSPlugin.setPoster(e.themeData.poster))}),50)}this.inited=!0,this.jSPlugin.deviceInfo&&(document.getElementById(this.jSPlugin.id+"-deviceName-content")&&(document.getElementById(this.jSPlugin.id+"-deviceName-content").style.maxWidth="100%",document.getElementById(this.jSPlugin.id+"-deviceName-content").style.overflow="hidden",document.getElementById(this.jSPlugin.id+"-deviceName-content").style.textOverflow="ellipsis",document.getElementById(this.jSPlugin.id+"-deviceName-content").style.whiteSpace="nowrap",document.getElementById(this.jSPlugin.id+"-deviceName-content").innerHTML=this.jSPlugin.deviceInfo.deviceName||""),document.getElementById(this.jSPlugin.id+"-deviceID-content")&&(document.getElementById(this.jSPlugin.id+"-deviceID-content").style.maxWidth="100%",document.getElementById(this.jSPlugin.id+"-deviceID-content").style.overflow="hidden",document.getElementById(this.jSPlugin.id+"-deviceID-content").style.textOverflow="ellipsis",document.getElementById(this.jSPlugin.id+"-deviceID-content").style.whiteSpace="nowrap",document.getElementById(this.jSPlugin.id+"-deviceID-content").innerHTML=g(this.jSPlugin.url).deviceSerial||"")),this.renderThemeData()},A.resetMobileZoomStatus=function(){if(this.isMobile){var e=document.getElementById(this.jSPlugin.id+"-zoom-container");e&&e.style&&"none"!=e.style.display&&(e.style.display="none"),this.jSPlugin.jSPlugin.Zoom&&this.jSPlugin.jSPlugin.Zoom.resetZoom()}},A.webExpend=function(){var e=this.decoderState.state;e.webExpend;var A=e.expend;return!!e.play&&(!A&&void this.jSPlugin.browserFullscreen())},A.expend=function(){var e=this.decoderState.state,A=e.webExpend;if(!e.play)return!1;if(A)return!1;if(this.isMobile){s(document.getElementById(this.jSPlugin.id+"-wrap")),this.jSPlugin.Zoom&&this.jSPlugin.Zoom.setTransform(!0);var t=this._extendHeadeTimeLinrHight(!0),i=document.documentElement.clientWidth,n=document.documentElement.clientHeight;document.getElementById(""+this.jSPlugin.id).style["backface-visibility"]="hidden",this.jSPlugin.jSPlugin.JS_Resize(n,i-t,!0),this.jSPlugin.fullScreenWidth=n,this.jSPlugin.fullScreenHeight=i-t,this.setDecoderState({expend:!0})}else this.jSPlugin.fullscreen()},A._extendHeadeTimeLinrHight=function(e){var A=0,t=document.getElementById(this.jSPlugin.id+"-canvas-container");return t&&!e&&(A=parseInt(window.getComputedStyle(t).height,10)),A},A.disabledFECBtn=function(){var e=[this.jSPlugin.id+"-capturePicture",this.jSPlugin.id+"-capturePicture-content",this.jSPlugin.id+"-capturePicture-icon",this.jSPlugin.id+"-recordvideo",this.jSPlugin.id+"-recordvideo-content",this.jSPlugin.id+"-recordvideo-icon",this.jSPlugin.id+"-zoom",this.jSPlugin.id+"-zoom-content",this.jSPlugin.id+"-zoom-icon"],A=document.getElementById(this.jSPlugin.id+"-wrap");if(this.jSPlugin.use3DZoom?this.jSPlugin.close3DZoom():this._stopZoom(),this.setDecoderState({zoom:!1}),A)for(var t,i=Jd(e);!(t=i()).done;){var n=t.value,a=A.querySelector("#"+n);a&&(a.style.display="none")}},A.resumeFECBtn=function(){var e=[this.jSPlugin.id+"-capturePicture",this.jSPlugin.id+"-capturePicture-content",this.jSPlugin.id+"-capturePicture-icon",this.jSPlugin.id+"-recordvideo",this.jSPlugin.id+"-recordvideo-content",this.jSPlugin.id+"-recordvideo-icon",this.jSPlugin.id+"-zoom",this.jSPlugin.id+"-zoom-content",this.jSPlugin.id+"-zoom-icon"],A=document.getElementById(this.jSPlugin.id+"-wrap");if(A)for(var t,i=Jd(e);!(t=i()).done;){var n=t.value,a=A.querySelector("#"+n);a&&(a.style.display="")}},A.destroy=function(){var e=document.getElementById(this.jSPlugin.id+"-headControl");this.Rec&&this.Rec.destroy&&this.Rec.destroy(),this.Ptz&&this.Ptz.destroy&&this.Ptz.destroy(),e&&(e.innerHTML="");var A=document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container");this._removeElement(A);var t=document.getElementById(this.jSPlugin.id+"-ez-ptz-item");this._removeElement(t);var i=document.getElementById("mobile-ez-ptz-container");this._removeElement(i);var n=document.getElementById("date-switch-container-wrap");this._removeElement(n);var r=document.getElementById("rec-type-container-wrap");this._removeElement(r);var o=document.getElementById("mobile-rec-wrap");this._removeElement(o),ud.isEnabled&&this._fullscreenchange&&ud.off("change",this._fullscreenchange),Ad.listInstances().length<=1&&(a(this.jSPlugin.staticPath+"/speed/speed.css"),a(this.jSPlugin.staticPath+"/css/theme.css"))},A._removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},A._stopZoom=function(){var e,A,t,i,n;null==(t=this.jSPlugin)||null==(A=t.Zoom)||null==(e=A.stopZoom)||e.call(A),null==(n=this.jSPlugin)||null==(i=n.eventEmitter)||i.emit(dd.zoom.closeZoom)},A._startZoom=function(){var e,A,t,i,n;null==(t=this.jSPlugin)||null==(A=t.Zoom)||null==(e=A.startZoom)||e.call(A),null==(n=this.jSPlugin)||null==(i=n.eventEmitter)||i.emit(dd.zoom.openZoom)},e}();function jd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wd,Zd={exports:{}}; +/* + The MIT License (MIT) + + Copyright (c) 2016 Meetecho + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + */ +function Xd(e,A,t,i,n,a,r){try{var o=e[a](r),s=o.value}catch(e){return void t(e)}o.done?A(s):Promise.resolve(s).then(i,n)}function qd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function zd(e,A){var t,i,n,a,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(n=r.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&void 0!==arguments[0]?arguments[0]:{},A=e.window,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},g=i.log,l=i.detectBrowser(A),c={browserDetails:l,commonShim:s,extractVersion:i.extractVersion,disableLog:i.disableLog,disableWarnings:i.disableWarnings};switch(l.browser){case"chrome":if(!n||!n.shimPeerConnection||!t.shimChrome)return g("Chrome shim is not included in this adapter release."),c;g("adapter.js shimming chrome."),c.browserShim=n,n.shimGetUserMedia(A),n.shimMediaStream(A),n.shimPeerConnection(A),n.shimOnTrack(A),n.shimAddTrackRemoveTrack(A),n.shimGetSendersWithDtmf(A),n.shimGetStats(A),n.shimSenderReceiverGetStats(A),n.fixNegotiationNeeded(A),s.shimRTCIceCandidate(A),s.shimConnectionState(A),s.shimMaxMessageSize(A),s.shimSendThrowTypeError(A),s.removeAllowExtmapMixed(A);break;case"firefox":if(!r||!r.shimPeerConnection||!t.shimFirefox)return g("Firefox shim is not included in this adapter release."),c;g("adapter.js shimming firefox."),c.browserShim=r,r.shimGetUserMedia(A),r.shimPeerConnection(A),r.shimOnTrack(A),r.shimRemoveStream(A),r.shimSenderGetStats(A),r.shimReceiverGetStats(A),r.shimRTCDataChannel(A),r.shimAddTransceiver(A),r.shimCreateOffer(A),r.shimCreateAnswer(A),s.shimRTCIceCandidate(A),s.shimConnectionState(A),s.shimMaxMessageSize(A),s.shimSendThrowTypeError(A);break;case"edge":if(!a||!a.shimPeerConnection||!t.shimEdge)return g("MS edge shim is not included in this adapter release."),c;g("adapter.js shimming edge."),c.browserShim=a,a.shimGetUserMedia(A),a.shimGetDisplayMedia(A),a.shimPeerConnection(A),a.shimReplaceTrack(A),s.shimMaxMessageSize(A),s.shimSendThrowTypeError(A);break;case"safari":if(!o||!t.shimSafari)return g("Safari shim is not included in this adapter release."),c;g("adapter.js shimming safari."),c.browserShim=o,o.shimRTCIceServerUrls(A),o.shimCreateOfferLegacy(A),o.shimCallbacksAPI(A),o.shimLocalStreamsAPI(A),o.shimRemoteStreamsAPI(A),o.shimTrackEventTransceiver(A),o.shimGetUserMedia(A),s.shimRTCIceCandidate(A),s.shimMaxMessageSize(A),s.shimSendThrowTypeError(A),s.removeAllowExtmapMixed(A);break;default:g("Unsupported browser!")}return c};var i=g(e("./utils")),n=g(e("./chrome/chrome_shim")),a=g(e("./edge/edge_shim")),r=g(e("./firefox/firefox_shim")),o=g(e("./safari/safari_shim")),s=g(e("./common_shim"));function g(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}},{"./chrome/chrome_shim":3,"./common_shim":6,"./edge/edge_shim":7,"./firefox/firefox_shim":11,"./safari/safari_shim":14,"./utils":15}],3:[function(e,A,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=n.shimGetUserMedia=void 0;var a="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)},r=e("./getusermedia");Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return r.shimGetUserMedia}});var o=e("./getdisplaymedia");Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return o.shimGetDisplayMedia}}),n.shimMediaStream=function(e){e.MediaStream=e.MediaStream||e.webkitMediaStream},n.shimOnTrack=function(e){if("object"===(void 0===e?"undefined":a(e))&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var A=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var t=this;return this._ontrackpoly||(this._ontrackpoly=function(A){A.stream.addEventListener("addtrack",(function(i){var n=void 0;n=e.RTCPeerConnection.prototype.getReceivers?t.getReceivers().find((function(e){return e.track&&e.track.id===i.track.id})):{track:i.track};var a=new Event("track");a.track=i.track,a.receiver=n,a.transceiver={receiver:n},a.streams=[A.stream],t.dispatchEvent(a)})),A.stream.getTracks().forEach((function(i){var n=void 0;n=e.RTCPeerConnection.prototype.getReceivers?t.getReceivers().find((function(e){return e.track&&e.track.id===i.id})):{track:i};var a=new Event("track");a.track=i,a.receiver=n,a.transceiver={receiver:n},a.streams=[A.stream],t.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)),A.apply(this,arguments)}}else s.wrapPeerConnectionEvent(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))},n.shimGetSendersWithDtmf=function(e){if("object"===(void 0===e?"undefined":a(e))&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var A=function(e,A){return{track:A,get dtmf(){return void 0===this._dtmf&&("audio"===A.kind?this._dtmf=e.createDTMFSender(A):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){var n=t.apply(this,arguments);return n||(n=A(this,e),this._senders.push(n)),n};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){i.apply(this,arguments);var A=this._senders.indexOf(e);-1!==A&&this._senders.splice(A,1)}}var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((function(e){t._senders.push(A(t,e))}))};var r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((function(e){var t=A._senders.find((function(A){return A.track===e}));t&&A._senders.splice(A._senders.indexOf(t),1)}))}}else if("object"===(void 0===e?"undefined":a(e))&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var o=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,A=o.apply(this,[]);return A.forEach((function(A){return A._pc=e})),A},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}},n.shimGetStats=function(e){if(e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,t=Array.prototype.slice.call(arguments),i=t[0],n=t[1],a=t[2];if(arguments.length>0&&"function"==typeof i)return A.apply(this,arguments);if(0===A.length&&(0===arguments.length||"function"!=typeof i))return A.apply(this,[]);var r=function(e){var A={};return e.result().forEach((function(e){var t={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(A){t[A]=e.stat(A)})),A[t.id]=t})),A},o=function(e){return new Map(Object.keys(e).map((function(A){return[A,e[A]]})))};return arguments.length>=2?A.apply(this,[function(e){n(o(r(e)))},i]):new Promise((function(t,i){A.apply(e,[function(e){t(o(r(e)))},i])})).then(n,a)}}},n.shimSenderReceiverGetStats=function(e){if("object"===(void 0===e?"undefined":a(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var A=e.RTCPeerConnection.prototype.getSenders;A&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t});var i=e.RTCPeerConnection.prototype.addTrack;i&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=i.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(A){return s.filterStats(A,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,A=n.apply(this,[]);return A.forEach((function(A){return A._pc=e})),A}),s.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(A){return s.filterStats(A,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&t(arguments[0],e.MediaStreamTrack)){var A=arguments[0],i=void 0,n=void 0,a=void 0;return this.getSenders().forEach((function(e){e.track===A&&(i?a=!0:i=e)})),this.getReceivers().forEach((function(e){return e.track===A&&(n?a=!0:n=e),e.track===A})),a||i&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return r.apply(this,arguments)}}}},n.shimAddTrackRemoveTrackWithNative=l,n.shimAddTrackRemoveTrack=function(e){if(e.RTCPeerConnection){var A=s.detectBrowser(e);if(e.RTCPeerConnection.prototype.addTrack&&A.version>=65)return l(e);var t=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,A=t.apply(this);return this._reverseStreams=this._reverseStreams||{},A.map((function(A){return e._reverseStreams[A.id]}))};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(A){var t=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},A.getTracks().forEach((function(e){var A=t.getSenders().find((function(A){return A.track===e}));if(A)throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[A.id]){var n=new e.MediaStream(A.getTracks());this._streams[A.id]=n,this._reverseStreams[n.id]=A,A=n}i.apply(this,[A])};var n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(A,t){var i=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((function(e){return e===A})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var a=this.getSenders().find((function(e){return e.track===A}));if(a)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var r=this._streams[t.id];if(r)r.addTrack(A),Promise.resolve().then((function(){i.dispatchEvent(new Event("negotiationneeded"))}));else{var o=new e.MediaStream([A]);this._streams[t.id]=o,this._reverseStreams[o.id]=t,this.addStream(o)}return this.getSenders().find((function(e){return e.track===A}))},["createOffer","createAnswer"].forEach((function(A){var t=e.RTCPeerConnection.prototype[A],i=g({},A,(function(){var e=this,A=arguments;return arguments.length&&"function"==typeof arguments[0]?t.apply(this,[function(t){var i=o(e,t);A[0].apply(null,[i])},function(e){A[1]&&A[1].apply(null,e)},arguments[2]]):t.apply(this,arguments).then((function(A){return o(e,A)}))}));e.RTCPeerConnection.prototype[A]=i[A]}));var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,A){var t=A.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(A){var i=e._reverseStreams[A],n=e._streams[i.id];t=t.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:A.type,sdp:t})}(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};var r=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=r.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var A=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};var t=void 0;Object.keys(this._streams).forEach((function(i){A._streams[i].getTracks().find((function(A){return e.track===A}))&&(t=A._streams[i])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function o(e,A){var t=A.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(A){var i=e._reverseStreams[A],n=e._streams[i.id];t=t.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:A.type,sdp:t})}},n.shimPeerConnection=function(e){var A=s.detectBrowser(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection){A.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(A){var t=e.RTCPeerConnection.prototype[A],i=g({},A,(function(){return arguments[0]=new("addIceCandidate"===A?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}));e.RTCPeerConnection.prototype[A]=i[A]}));var t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?A.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}},n.fixNegotiationNeeded=function(e){s.wrapPeerConnectionEvent(e,"negotiationneeded",(function(e){if("stable"===e.target.signalingState)return e}))};var s=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils.js"));function g(e,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function l(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(A){return e._shimmedLocalStreams[A][0]}))};var A=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,t){if(!t)return A.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var i=A.apply(this,arguments);return this._shimmedLocalStreams[t.id]?-1===this._shimmedLocalStreams[t.id].indexOf(i)&&this._shimmedLocalStreams[t.id].push(i):this._shimmedLocalStreams[t.id]=[t,i],i};var t=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var A=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){var t=A.getSenders().find((function(A){return A.track===e}));if(t)throw new DOMException("Track already exists.","InvalidAccessError")}));var i=this.getSenders();t.apply(this,arguments);var n=this.getSenders().filter((function(e){return-1===i.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(n)};var i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],i.apply(this,arguments)};var n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var A=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(t){var i=A._shimmedLocalStreams[t].indexOf(e);-1!==i&&A._shimmedLocalStreams[t].splice(i,1),1===A._shimmedLocalStreams[t].length&&delete A._shimmedLocalStreams[t]})),n.apply(this,arguments)}}},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,A){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&"function"==typeof A&&(e.navigator.mediaDevices.getDisplayMedia=function(t){return A(t).then((function(A){var i=t.video&&t.video.width,n=t.video&&t.video.height,a=t.video&&t.video.frameRate;return t.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:A,maxFrameRate:a||3}},i&&(t.video.mandatory.maxWidth=i),n&&(t.video.mandatory.maxHeight=n),e.navigator.mediaDevices.getUserMedia(t)}))})}},{}],5:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)};t.shimGetUserMedia=function(e){var A=e&&e.navigator;if(A.mediaDevices){var t=a.detectBrowser(e),i=function(e){if("object"!==(void 0===e?"undefined":n(e))||e.mandatory||e.optional)return e;var A={};return Object.keys(e).forEach((function(t){if("require"!==t&&"advanced"!==t&&"mediaSource"!==t){var i="object"===n(e[t])?e[t]:{ideal:e[t]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);var a=function(e,A){return e?e+A.charAt(0).toUpperCase()+A.slice(1):"deviceId"===A?"sourceId":A};if(void 0!==i.ideal){A.optional=A.optional||[];var r={};"number"==typeof i.ideal?(r[a("min",t)]=i.ideal,A.optional.push(r),(r={})[a("max",t)]=i.ideal,A.optional.push(r)):(r[a("",t)]=i.ideal,A.optional.push(r))}void 0!==i.exact&&"number"!=typeof i.exact?(A.mandatory=A.mandatory||{},A.mandatory[a("",t)]=i.exact):["min","max"].forEach((function(e){void 0!==i[e]&&(A.mandatory=A.mandatory||{},A.mandatory[a(e,t)]=i[e])}))}})),e.advanced&&(A.optional=(A.optional||[]).concat(e.advanced)),A},o=function(e,a){if(t.version>=61)return a(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===n(e.audio)){var o=function(e,A,t){A in e&&!(t in e)&&(e[t]=e[A],delete e[A])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio)}if(e&&"object"===n(e.video)){var s=e.video.facingMode;s=s&&("object"===(void 0===s?"undefined":n(s))?s:{ideal:s});var g=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!A.mediaDevices.getSupportedConstraints||!A.mediaDevices.getSupportedConstraints().facingMode||g)){delete e.video.facingMode;var l=void 0;if("environment"===s.exact||"environment"===s.ideal?l=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(l=["front"]),l)return A.mediaDevices.enumerateDevices().then((function(A){A=A.filter((function(e){return"videoinput"===e.kind}));var t=A.find((function(e){return l.some((function(A){return e.label.toLowerCase().includes(A)}))}));return!t&&A.length&&l.includes("back")&&(t=A[A.length-1]),t&&(e.video.deviceId=s.exact?{exact:t.deviceId}:{ideal:t.deviceId}),e.video=i(e.video),r("chrome: "+JSON.stringify(e)),a(e)}))}e.video=i(e.video)}return r("chrome: "+JSON.stringify(e)),a(e)},s=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(A.getUserMedia=function(e,t,i){o(e,(function(e){A.webkitGetUserMedia(e,t,(function(e){i&&i(s(e))}))}))}.bind(A),A.mediaDevices.getUserMedia){var g=A.mediaDevices.getUserMedia.bind(A.mediaDevices);A.mediaDevices.getUserMedia=function(e){return o(e,(function(e){return g(e).then((function(A){if(e.audio&&!A.getAudioTracks().length||e.video&&!A.getVideoTracks().length)throw A.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return A}),(function(e){return Promise.reject(s(e))}))}))}}}};var a=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils.js")),r=a.log},{"../utils.js":15}],6:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)};t.shimRTCIceCandidate=function(e){if(!(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var A=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var t=new A(e),i=o.default.parseCandidate(e.candidate),a=Object.assign(t,i);return a.toJSON=function(){return{candidate:a.candidate,sdpMid:a.sdpMid,sdpMLineIndex:a.sdpMLineIndex,usernameFragment:a.usernameFragment}},a}return new A(e)},e.RTCIceCandidate.prototype=A.prototype,s.wrapPeerConnectionEvent(e,"icecandidate",(function(A){return A.candidate&&Object.defineProperty(A,"candidate",{value:new e.RTCIceCandidate(A.candidate),writable:"false"}),A}))}},t.shimMaxMessageSize=function(e){if(e.RTCPeerConnection){var A=s.detectBrowser(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e,i;if(this._sctp=null,"chrome"===A.browser&&A.version>=76&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0}),function(e){if(!e||!e.sdp)return!1;var A=o.default.splitSections(e.sdp);return A.shift(),A.some((function(e){var A=o.default.parseMLine(e);return A&&"application"===A.kind&&-1!==A.protocol.indexOf("SCTP")}))}(arguments[0])){var n=function(e){var A=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===A||A.length<2)return-1;var t=parseInt(A[1],10);return t!=t?-1:t}(arguments[0]),a=(e=n,i=65536,"firefox"===A.browser&&(i=A.version<57?-1===e?16384:2147483637:A.version<60?57===A.version?65535:65536:2147483637),i),r=function(e,t){var i=65536;"firefox"===A.browser&&57===A.version&&(i=65535);var n=o.default.matchPrefix(e.sdp,"a=max-message-size:");return n.length>0?i=parseInt(n[0].substr(19),10):"firefox"===A.browser&&-1!==t&&(i=2147483637),i}(arguments[0],n),s=void 0;s=0===a&&0===r?Number.POSITIVE_INFINITY:0===a||0===r?Math.max(a,r):Math.min(a,r);var g={};Object.defineProperty(g,"maxMessageSize",{get:function(){return s}}),this._sctp=g}return t.apply(this,arguments)}}},t.shimSendThrowTypeError=function(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var A=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=A.apply(this,arguments);return t(e,this),e},s.wrapPeerConnectionEvent(e,"datachannel",(function(e){return t(e.channel,e.target),e}))}function t(e,A){var t=e.send;e.send=function(){var i=arguments[0],n=i.length||i.size||i.byteLength;if("open"===e.readyState&&A.sctp&&n>A.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+A.sctp.maxMessageSize+" bytes)");return t.apply(e,arguments)}}},t.shimConnectionState=function(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var A=e.RTCPeerConnection.prototype;Object.defineProperty(A,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(A,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var t=A[e];A[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var A=e.target;if(A._lastConnectionState!==A.connectionState){A._lastConnectionState=A.connectionState;var t=new Event("connectionstatechange",e);A.dispatchEvent(t)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),t.apply(this,arguments)}}))}},t.removeAllowExtmapMixed=function(e){if(e.RTCPeerConnection){var A=s.detectBrowser(e);if(!("chrome"===A.browser&&A.version>=71)){var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n")),t.apply(this,arguments)}}}};var a,r=e("sdp"),o=(a=r)&&a.__esModule?a:{default:a},s=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("./utils"))},{"./utils":15,sdp:17}],7:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=t.shimGetUserMedia=void 0;var i=e("./getusermedia");Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return i.shimGetUserMedia}});var n=e("./getdisplaymedia");Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return n.shimGetDisplayMedia}}),t.shimPeerConnection=function(e){var A=r.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),A.version<15025)){var t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){t.set.call(this,e);var A=new Event("enabled");A.enabled=e,this.dispatchEvent(A)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);var i=(0,g.default)(e,A.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=(0,o.filterIceServers)(e.iceServers,A.version),r.log("ICE servers after filtering:",e.iceServers)),new i(e)},e.RTCPeerConnection.prototype=i.prototype},t.shimReplaceTrack=function(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)};var a,r=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils")),o=e("./filtericeservers"),s=e("rtcpeerconnection-shim"),g=(a=s)&&a.__esModule?a:{default:a}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}],8:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.filterIceServers=function(e,A){var t=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var A=e.urls||e.url;e.url&&!e.urls&&i.deprecated("RTCIceServer.url","RTCIceServer.urls");var n="string"==typeof A;return n&&(A=[A]),A=A.filter((function(e){if(0===e.indexOf("stun:"))return!1;var A=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return A&&!t?(t=!0,!0):A&&!t})),delete e.url,e.urls=n?A[0]:A,!!A.length}}))};var i=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15}],9:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}},{}],10:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetUserMedia=function(e){var A=e&&e.navigator,t=A.mediaDevices.getUserMedia.bind(A.mediaDevices);A.mediaDevices.getUserMedia=function(e){return t(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}},{}],11:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=t.shimGetUserMedia=void 0;var n="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)},a=e("./getusermedia");Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return a.shimGetUserMedia}});var r=e("./getdisplaymedia");Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return r.shimGetDisplayMedia}}),t.shimOnTrack=function(e){"object"===(void 0===e?"undefined":n(e))&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},t.shimPeerConnection=function(e){var A=o.detectBrowser(e);if("object"===(void 0===e?"undefined":n(e))&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){if(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),A.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(A){var t,i,n,a=e.RTCPeerConnection.prototype[A],r=(n=function(){return arguments[0]=new("addIceCandidate"===A?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)},(i=A)in(t={})?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t);e.RTCPeerConnection.prototype[A]=r[A]})),A.version<68){var t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var i={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=Array.prototype.slice.call(arguments),t=e[0],n=e[1],r=e[2];return a.apply(this,[t||null]).then((function(e){if(A.version<53&&!n)try{e.forEach((function(e){e.type=i[e.type]||e.type}))}catch(A){if("TypeError"!==A.name)throw A;e.forEach((function(A,t){e.set(t,Object.assign({},A,{type:i[A.type]||A.type}))}))}return e})).then(n,r)}}},t.shimSenderGetStats=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var A=e.RTCPeerConnection.prototype.getSenders;A&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t});var t=e.RTCPeerConnection.prototype.addTrack;t&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=t.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}},t.shimReceiverGetStats=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var A=e.RTCPeerConnection.prototype.getReceivers;A&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t}),o.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}},t.shimRemoveStream=function(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;o.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(t){t.track&&e.getTracks().includes(t.track)&&A.removeTrack(t)}))})},t.shimRTCDataChannel=function(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)},t.shimAddTransceiver=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.addTransceiver;A&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],t=e&&"sendEncodings"in e;t&&e.sendEncodings.forEach((function(e){if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var i=A.apply(this,arguments);if(t){var n=i.sender,a=n.getParameters();"encodings"in a||(a.encodings=e.sendEncodings,this.setParametersPromises.push(n.setParameters(a).catch((function(){}))))}return i})}},t.shimCreateOffer=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return A.apply(e,t)})).finally((function(){e.setParametersPromises=[]})):A.apply(this,arguments)}}},t.shimCreateAnswer=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return A.apply(e,t)})).finally((function(){e.setParametersPromises=[]})):A.apply(this,arguments)}}};var o=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,A){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(t){if(!t||!t.video){var i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return!0===t.video?t.video={mediaSource:A}:t.video.mediaSource=A,e.navigator.mediaDevices.getUserMedia(t)})}},{}],13:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)};t.shimGetUserMedia=function(e){var A=a.detectBrowser(e),t=e&&e.navigator,i=e&&e.MediaStreamTrack;if(t.getUserMedia=function(e,A,i){a.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(e).then(A,i)},!(A.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){var r=function(e,A,t){A in e&&!(t in e)&&(e[t]=e[A],delete e[A])},o=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(e){return"object"===(void 0===e?"undefined":n(e))&&"object"===n(e.audio)&&(e=JSON.parse(JSON.stringify(e)),r(e.audio,"autoGainControl","mozAutoGainControl"),r(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},i&&i.prototype.getSettings){var s=i.prototype.getSettings;i.prototype.getSettings=function(){var e=s.apply(this,arguments);return r(e,"mozAutoGainControl","autoGainControl"),r(e,"mozNoiseSuppression","noiseSuppression"),e}}if(i&&i.prototype.applyConstraints){var g=i.prototype.applyConstraints;i.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===(void 0===e?"undefined":n(e))&&(e=JSON.parse(JSON.stringify(e)),r(e,"autoGainControl","mozAutoGainControl"),r(e,"noiseSuppression","mozNoiseSuppression")),g.apply(this,[e])}}}};var a=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15}],14:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)};t.shimLocalStreamsAPI=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var A=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(i){return A.call(t,i,e)})),e.getVideoTracks().forEach((function(i){return A.call(t,i,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){var t=arguments[1];return t&&(this._localStreams?this._localStreams.includes(t)||this._localStreams.push(t):this._localStreams=[t]),A.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var i=e.getTracks();this.getSenders().forEach((function(e){i.includes(e.track)&&A.removeTrack(e)}))}})}},t.shimRemoteStreamsAPI=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var A=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(A._remoteStreams||(A._remoteStreams=[]),!A._remoteStreams.includes(e)){A._remoteStreams.push(e);var t=new Event("addstream");t.stream=e,A.dispatchEvent(t)}}))})}});var A=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(A){A.streams.forEach((function(A){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(A)>=0)){e._remoteStreams.push(A);var t=new Event("addstream");t.stream=A,e.dispatchEvent(t)}}))}),A.apply(e,arguments)}}},t.shimCallbacksAPI=function(e){if("object"===(void 0===e?"undefined":n(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype,t=A.createOffer,i=A.createAnswer,a=A.setLocalDescription,r=A.setRemoteDescription,o=A.addIceCandidate;A.createOffer=function(e,A){var i=arguments.length>=2?arguments[2]:arguments[0],n=t.apply(this,[i]);return A?(n.then(e,A),Promise.resolve()):n},A.createAnswer=function(e,A){var t=arguments.length>=2?arguments[2]:arguments[0],n=i.apply(this,[t]);return A?(n.then(e,A),Promise.resolve()):n};var s=function(e,A,t){var i=a.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i};A.setLocalDescription=s,s=function(e,A,t){var i=r.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i},A.setRemoteDescription=s,s=function(e,A,t){var i=o.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i},A.addIceCandidate=s}},t.shimGetUserMedia=function(e){var A=e&&e.navigator;if(A.mediaDevices&&A.mediaDevices.getUserMedia){var t=A.mediaDevices,i=t.getUserMedia.bind(t);A.mediaDevices.getUserMedia=function(e){return i(r(e))}}!A.getUserMedia&&A.mediaDevices&&A.mediaDevices.getUserMedia&&(A.getUserMedia=function(e,t,i){A.mediaDevices.getUserMedia(e).then(t,i)}.bind(A))},t.shimConstraints=r,t.shimRTCIceServerUrls=function(e){var A=e.RTCPeerConnection;e.RTCPeerConnection=function(e,t){if(e&&e.iceServers){for(var i=[],n=0;n=t&&parseInt(i[t],10)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e,A,t){A&&!t.has(A.id)&&(t.set(A.id,A),Object.keys(A).forEach((function(i){i.endsWith("Id")?s(e,e.get(A[i]),t):i.endsWith("Ids")&&A[i].forEach((function(A){s(e,e.get(A),t)}))})))}},{}],16:[function(e,A,i){var n=e("sdp");function a(e,A,t,i,a){var r=n.writeRtpDescription(e.kind,A);if(r+=n.writeIceParameters(e.iceGatherer.getLocalParameters()),r+=n.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===t?"actpass":a||"active"),r+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?r+="a=sendrecv\r\n":e.rtpSender?r+="a=sendonly\r\n":e.rtpReceiver?r+="a=recvonly\r\n":r+="a=inactive\r\n",e.rtpSender){var o=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=o;var s="msid:"+(i?i.id:"-")+" "+o+"\r\n";r+="a="+s,r+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+s,e.sendEncodingParameters[0].rtx&&(r+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+s,r+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return r+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(r+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+"\r\n"),r}function r(e,A){var t={codecs:[],headerExtensions:[],fecMechanisms:[]},i=function(e,A){e=parseInt(e,10);for(var t=0;t=14393&&-1===e.indexOf("?transport=udp"):(t=!0,!0)})),delete e.url,e.urls=n?i[0]:i,!!i.length}}))}(t.iceServers||[],A),this._iceGatherers=[],t.iceCandidatePoolSize)for(var r=t.iceCandidatePoolSize;r>0;r--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:t.iceServers,gatherPolicy:t.iceTransportPolicy}));else t.iceCandidatePoolSize=0;this._config=t,this.transceivers=[],this._sdpSessionId=n.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(c.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(c.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),c.prototype.onicecandidate=null,c.prototype.onaddstream=null,c.prototype.ontrack=null,c.prototype.onremovestream=null,c.prototype.onsignalingstatechange=null,c.prototype.oniceconnectionstatechange=null,c.prototype.onconnectionstatechange=null,c.prototype.onicegatheringstatechange=null,c.prototype.onnegotiationneeded=null,c.prototype.ondatachannel=null,c.prototype._dispatchEvent=function(e,A){this._isClosed||(this.dispatchEvent(A),"function"==typeof this["on"+e]&&this["on"+e](A))},c.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},c.prototype.getConfiguration=function(){return this._config},c.prototype.getLocalStreams=function(){return this.localStreams},c.prototype.getRemoteStreams=function(){return this.remoteStreams},c.prototype._createTransceiver=function(e,A){var t=this.transceivers.length>0,i={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&t)i.iceTransport=this.transceivers[0].iceTransport,i.dtlsTransport=this.transceivers[0].dtlsTransport;else{var n=this._createIceAndDtlsTransports();i.iceTransport=n.iceTransport,i.dtlsTransport=n.dtlsTransport}return A||this.transceivers.push(i),i},c.prototype.addTrack=function(A,t){if(this._isClosed)throw g("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var i,n=this.transceivers.find((function(e){return e.track===A}));if(n)throw g("InvalidAccessError","Track already exists.");for(var a=0;a=15025)e.getTracks().forEach((function(A){t.addTrack(A,e)}));else{var i=e.clone();e.getTracks().forEach((function(e,A){var t=i.getTracks()[A];e.addEventListener("enabled",(function(e){t.enabled=e.enabled}))})),i.getTracks().forEach((function(e){t.addTrack(e,i)}))}},c.prototype.removeTrack=function(A){if(this._isClosed)throw g("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!t(A,e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var i=this.transceivers.find((function(e){return e.rtpSender===A}));if(!i)throw g("InvalidAccessError","Sender was not created by this connection.");var n=i.stream;i.rtpSender.stop(),i.rtpSender=null,i.track=null,i.stream=null;var a=this.transceivers.map((function(e){return e.stream}));-1===a.indexOf(n)&&this.localStreams.indexOf(n)>-1&&this.localStreams.splice(this.localStreams.indexOf(n),1),this._maybeFireNegotiationNeeded()},c.prototype.removeStream=function(e){var A=this;e.getTracks().forEach((function(e){var t=A.getSenders().find((function(A){return A.track===e}));t&&A.removeTrack(t)}))},c.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},c.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},c.prototype._createIceGatherer=function(A,t){var i=this;if(t&&A>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var n=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(n,"state",{value:"new",writable:!0}),this.transceivers[A].bufferedCandidateEvents=[],this.transceivers[A].bufferCandidates=function(e){var t=!e.candidate||0===Object.keys(e.candidate).length;n.state=t?"completed":"gathering",null!==i.transceivers[A].bufferedCandidateEvents&&i.transceivers[A].bufferedCandidateEvents.push(e)},n.addEventListener("localcandidate",this.transceivers[A].bufferCandidates),n},c.prototype._gather=function(A,t){var i=this,a=this.transceivers[t].iceGatherer;if(!a.onlocalcandidate){var r=this.transceivers[t].bufferedCandidateEvents;this.transceivers[t].bufferedCandidateEvents=null,a.removeEventListener("localcandidate",this.transceivers[t].bufferCandidates),a.onlocalcandidate=function(e){if(!(i.usingBundle&&t>0)){var r=new Event("icecandidate");r.candidate={sdpMid:A,sdpMLineIndex:t};var o=e.candidate,s=!o||0===Object.keys(o).length;if(s)"new"!==a.state&&"gathering"!==a.state||(a.state="completed");else{"new"===a.state&&(a.state="gathering"),o.component=1,o.ufrag=a.getLocalParameters().usernameFragment;var g=n.writeCandidate(o);r.candidate=Object.assign(r.candidate,n.parseCandidate(g)),r.candidate.candidate=g,r.candidate.toJSON=function(){return{candidate:r.candidate.candidate,sdpMid:r.candidate.sdpMid,sdpMLineIndex:r.candidate.sdpMLineIndex,usernameFragment:r.candidate.usernameFragment}}}var l=n.getMediaSections(i._localDescription.sdp);l[r.candidate.sdpMLineIndex]+=s?"a=end-of-candidates\r\n":"a="+r.candidate.candidate+"\r\n",i._localDescription.sdp=n.getDescription(i._localDescription.sdp)+l.join("");var c=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),s||i._dispatchEvent("icecandidate",r),c&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){r.forEach((function(e){a.onlocalcandidate(e)}))}),0)}},c.prototype._createIceAndDtlsTransports=function(){var A=this,t=new e.RTCIceTransport(null);t.onicestatechange=function(){A._updateIceConnectionState(),A._updateConnectionState()};var i=new e.RTCDtlsTransport(t);return i.ondtlsstatechange=function(){A._updateConnectionState()},i.onerror=function(){Object.defineProperty(i,"state",{value:"failed",writable:!0}),A._updateConnectionState()},{iceTransport:t,dtlsTransport:i}},c.prototype._disposeIceAndDtlsTransports=function(e){var A=this.transceivers[e].iceGatherer;A&&(delete A.onlocalcandidate,delete this.transceivers[e].iceGatherer);var t=this.transceivers[e].iceTransport;t&&(delete t.onicestatechange,delete this.transceivers[e].iceTransport);var i=this.transceivers[e].dtlsTransport;i&&(delete i.ondtlsstatechange,delete i.onerror,delete this.transceivers[e].dtlsTransport)},c.prototype._transceive=function(e,t,i){var a=r(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:n.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),i&&e.rtpReceiver&&a.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&A<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?a.encodings=e.recvEncodingParameters:a.encodings=[{}],a.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(a.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},c.prototype.setLocalDescription=function(e){var A,t,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(g("TypeError",'Unsupported type "'+e.type+'"'));if(!o("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(g("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)A=n.splitSections(e.sdp),t=A.shift(),A.forEach((function(e,A){var t=n.parseRtpParameters(e);i.transceivers[A].localCapabilities=t})),i.transceivers.forEach((function(e,A){i._gather(e.mid,A)}));else if("answer"===e.type){A=n.splitSections(i._remoteDescription.sdp),t=A.shift();var a=n.matchPrefix(t,"a=ice-lite").length>0;A.forEach((function(e,A){var o=i.transceivers[A],s=o.iceGatherer,g=o.iceTransport,l=o.dtlsTransport,c=o.localCapabilities,d=o.remoteCapabilities;if(!(n.isRejected(e)&&0===n.matchPrefix(e,"a=bundle-only").length||o.rejected)){var I=n.getIceParameters(e,t),C=n.getDtlsParameters(e,t);a&&(C.role="server"),i.usingBundle&&0!==A||(i._gather(o.mid,A),"new"===g.state&&g.start(s,I,a?"controlling":"controlled"),"new"===l.state&&l.start(C));var h=r(c,d);i._transceive(o,h.codecs.length>0,!1)}}))}return i._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},c.prototype.setRemoteDescription=function(t){var a=this;if(-1===["offer","answer"].indexOf(t.type))return Promise.reject(g("TypeError",'Unsupported type "'+t.type+'"'));if(!o("setRemoteDescription",t.type,a.signalingState)||a._isClosed)return Promise.reject(g("InvalidStateError","Can not set remote "+t.type+" in state "+a.signalingState));var c={};a.remoteStreams.forEach((function(e){c[e.id]=e}));var d=[],I=n.splitSections(t.sdp),C=I.shift(),h=n.matchPrefix(C,"a=ice-lite").length>0,u=n.matchPrefix(C,"a=group:BUNDLE ").length>0;a.usingBundle=u;var B=n.matchPrefix(C,"a=ice-options:")[0];return a.canTrickleIceCandidates=!!B&&B.substr(14).split(" ").indexOf("trickle")>=0,I.forEach((function(o,g){var l=n.splitLines(o),I=n.getKind(o),B=n.isRejected(o)&&0===n.matchPrefix(o,"a=bundle-only").length,f=l[0].substr(2).split(" ")[2],E=n.getDirection(o,C),x=n.parseMsid(o),Q=n.getMid(o)||n.generateIdentifier();if(B||"application"===I&&("DTLS/SCTP"===f||"UDP/DTLS/SCTP"===f))a.transceivers[g]={mid:Q,kind:I,protocol:f,rejected:!0};else{var p,m,y,_,S,v,D,w,b;!B&&a.transceivers[g]&&a.transceivers[g].rejected&&(a.transceivers[g]=a._createTransceiver(I,!0));var F,R,k=n.parseRtpParameters(o);B||(F=n.getIceParameters(o,C),(R=n.getDtlsParameters(o,C)).role="client"),D=n.parseRtpEncodingParameters(o);var P=n.parseRtcpParameters(o),T=n.matchPrefix(o,"a=end-of-candidates",C).length>0,N=n.matchPrefix(o,"a=candidate:").map((function(e){return n.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===t.type||"answer"===t.type)&&!B&&u&&g>0&&a.transceivers[g]&&(a._disposeIceAndDtlsTransports(g),a.transceivers[g].iceGatherer=a.transceivers[0].iceGatherer,a.transceivers[g].iceTransport=a.transceivers[0].iceTransport,a.transceivers[g].dtlsTransport=a.transceivers[0].dtlsTransport,a.transceivers[g].rtpSender&&a.transceivers[g].rtpSender.setTransport(a.transceivers[0].dtlsTransport),a.transceivers[g].rtpReceiver&&a.transceivers[g].rtpReceiver.setTransport(a.transceivers[0].dtlsTransport)),"offer"!==t.type||B){if("answer"===t.type&&!B){m=(p=a.transceivers[g]).iceGatherer,y=p.iceTransport,_=p.dtlsTransport,S=p.rtpReceiver,v=p.sendEncodingParameters,w=p.localCapabilities,a.transceivers[g].recvEncodingParameters=D,a.transceivers[g].remoteCapabilities=k,a.transceivers[g].rtcpParameters=P,N.length&&"new"===y.state&&(!h&&!T||u&&0!==g?N.forEach((function(e){s(p.iceTransport,e)})):y.setRemoteCandidates(N)),u&&0!==g||("new"===y.state&&y.start(m,F,"controlling"),"new"===_.state&&_.start(R));var M=r(p.localCapabilities,p.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length;!M&&p.sendEncodingParameters[0].rtx&&delete p.sendEncodingParameters[0].rtx,a._transceive(p,"sendrecv"===E||"recvonly"===E,"sendrecv"===E||"sendonly"===E),!S||"sendrecv"!==E&&"sendonly"!==E?delete p.rtpReceiver:(b=S.track,x?(c[x.stream]||(c[x.stream]=new e.MediaStream),i(b,c[x.stream]),d.push([b,S,c[x.stream]])):(c.default||(c.default=new e.MediaStream),i(b,c.default),d.push([b,S,c.default])))}}else{(p=a.transceivers[g]||a._createTransceiver(I)).mid=Q,p.iceGatherer||(p.iceGatherer=a._createIceGatherer(g,u)),N.length&&"new"===p.iceTransport.state&&(!T||u&&0!==g?N.forEach((function(e){s(p.iceTransport,e)})):p.iceTransport.setRemoteCandidates(N)),w=e.RTCRtpReceiver.getCapabilities(I),A<15019&&(w.codecs=w.codecs.filter((function(e){return"rtx"!==e.name}))),v=p.sendEncodingParameters||[{ssrc:1001*(2*g+2)}];var L,G=!1;"sendrecv"===E||"sendonly"===E?(G=!p.rtpReceiver,S=p.rtpReceiver||new e.RTCRtpReceiver(p.dtlsTransport,I),G&&(b=S.track,x&&"-"===x.stream||(x?(c[x.stream]||(c[x.stream]=new e.MediaStream,Object.defineProperty(c[x.stream],"id",{get:function(){return x.stream}})),Object.defineProperty(b,"id",{get:function(){return x.track}}),L=c[x.stream]):(c.default||(c.default=new e.MediaStream),L=c.default)),L&&(i(b,L),p.associatedRemoteMediaStreams.push(L)),d.push([b,S,L]))):p.rtpReceiver&&p.rtpReceiver.track&&(p.associatedRemoteMediaStreams.forEach((function(A){var t=A.getTracks().find((function(e){return e.id===p.rtpReceiver.track.id}));t&&function(A,t){t.removeTrack(A),t.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:A}))}(t,A)})),p.associatedRemoteMediaStreams=[]),p.localCapabilities=w,p.remoteCapabilities=k,p.rtpReceiver=S,p.rtcpParameters=P,p.sendEncodingParameters=v,p.recvEncodingParameters=D,a._transceive(a.transceivers[g],!1,G)}}})),void 0===a._dtlsRole&&(a._dtlsRole="offer"===t.type?"active":"passive"),a._remoteDescription={type:t.type,sdp:t.sdp},"offer"===t.type?a._updateSignalingState("have-remote-offer"):a._updateSignalingState("stable"),Object.keys(c).forEach((function(A){var t=c[A];if(t.getTracks().length){if(-1===a.remoteStreams.indexOf(t)){a.remoteStreams.push(t);var i=new Event("addstream");i.stream=t,e.setTimeout((function(){a._dispatchEvent("addstream",i)}))}d.forEach((function(e){var A=e[0],i=e[1];t.id===e[2].id&&l(a,A,i,[t])}))}})),d.forEach((function(e){e[2]||l(a,e[0],e[1],[])})),e.setTimeout((function(){a&&a.transceivers&&a.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&e.iceTransport.addRemoteCandidate({})}))}),4e3),Promise.resolve()},c.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},c.prototype._updateSignalingState=function(e){this.signalingState=e;var A=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",A)},c.prototype._maybeFireNegotiationNeeded=function(){var A=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(A.needNegotiation){A.needNegotiation=!1;var e=new Event("negotiationneeded");A._dispatchEvent("negotiationneeded",e)}}),0))},c.prototype._updateIceConnectionState=function(){var e,A={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&A[e.iceTransport.state]++})),e="new",A.failed>0?e="failed":A.checking>0?e="checking":A.disconnected>0?e="disconnected":A.new>0?e="new":A.connected>0?e="connected":A.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var t=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",t)}},c.prototype._updateConnectionState=function(){var e,A={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(A[e.iceTransport.state]++,A[e.dtlsTransport.state]++)})),A.connected+=A.completed,e="new",A.failed>0?e="failed":A.connecting>0?e="connecting":A.disconnected>0?e="disconnected":A.new>0?e="new":A.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var t=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",t)}},c.prototype.createOffer=function(){var t=this;if(t._isClosed)return Promise.reject(g("InvalidStateError","Can not call createOffer after close"));var i=t.transceivers.filter((function(e){return"audio"===e.kind})).length,r=t.transceivers.filter((function(e){return"video"===e.kind})).length,o=arguments[0];if(o){if(o.mandatory||o.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==o.offerToReceiveAudio&&(i=!0===o.offerToReceiveAudio?1:!1===o.offerToReceiveAudio?0:o.offerToReceiveAudio),void 0!==o.offerToReceiveVideo&&(r=!0===o.offerToReceiveVideo?1:!1===o.offerToReceiveVideo?0:o.offerToReceiveVideo)}for(t.transceivers.forEach((function(e){"audio"===e.kind?--i<0&&(e.wantReceive=!1):"video"===e.kind&&--r<0&&(e.wantReceive=!1)}));i>0||r>0;)i>0&&(t._createTransceiver("audio"),i--),r>0&&(t._createTransceiver("video"),r--);var s=n.writeSessionBoilerplate(t._sdpSessionId,t._sdpSessionVersion++);t.transceivers.forEach((function(i,a){var r=i.track,o=i.kind,s=i.mid||n.generateIdentifier();i.mid=s,i.iceGatherer||(i.iceGatherer=t._createIceGatherer(a,t.usingBundle));var g=e.RTCRtpSender.getCapabilities(o);A<15019&&(g.codecs=g.codecs.filter((function(e){return"rtx"!==e.name}))),g.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach((function(A){e.name.toLowerCase()===A.name.toLowerCase()&&e.clockRate===A.clockRate&&(e.preferredPayloadType=A.payloadType)}))})),g.headerExtensions.forEach((function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach((function(A){e.uri===A.uri&&(e.id=A.id)}))}));var l=i.sendEncodingParameters||[{ssrc:1001*(2*a+1)}];r&&A>=15019&&"video"===o&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,o)),i.localCapabilities=g,i.sendEncodingParameters=l})),"max-compat"!==t._config.bundlePolicy&&(s+="a=group:BUNDLE "+t.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),s+="a=ice-options:trickle\r\n",t.transceivers.forEach((function(e,A){s+=a(e,e.localCapabilities,"offer",e.stream,t._dtlsRole),s+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===t.iceGatheringState||0!==A&&t.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,s+="a="+n.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(s+="a=end-of-candidates\r\n"))}));var l=new e.RTCSessionDescription({type:"offer",sdp:s});return Promise.resolve(l)},c.prototype.createAnswer=function(){var t=this;if(t._isClosed)return Promise.reject(g("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==t.signalingState&&"have-local-pranswer"!==t.signalingState)return Promise.reject(g("InvalidStateError","Can not call createAnswer in signalingState "+t.signalingState));var i=n.writeSessionBoilerplate(t._sdpSessionId,t._sdpSessionVersion++);t.usingBundle&&(i+="a=group:BUNDLE "+t.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),i+="a=ice-options:trickle\r\n";var o=n.getMediaSections(t._remoteDescription.sdp).length;t.transceivers.forEach((function(e,n){if(!(n+1>o)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?i+="m=application 0 DTLS/SCTP 5000\r\n":i+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?i+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(i+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(i+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var s;e.stream&&("audio"===e.kind?s=e.stream.getAudioTracks()[0]:"video"===e.kind&&(s=e.stream.getVideoTracks()[0]),s&&A>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var g=r(e.localCapabilities,e.remoteCapabilities),l=g.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length;!l&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,i+=a(e,g,"answer",e.stream,t._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(i+="a=rtcp-rsize\r\n")}}));var s=new e.RTCSessionDescription({type:"answer",sdp:i});return Promise.resolve(s)},c.prototype.addIceCandidate=function(e){var A,t=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(i,a){if(!t._remoteDescription)return a(g("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var r=e.sdpMLineIndex;if(e.sdpMid)for(var o=0;o0?n.parseCandidate(e.candidate):{};if("tcp"===c.protocol&&(0===c.port||9===c.port))return i();if(c.component&&1!==c.component)return i();if((0===r||r>0&&l.iceTransport!==t.transceivers[0].iceTransport)&&!s(l.iceTransport,c))return a(g("OperationError","Can not add ICE candidate"));var d=e.candidate.trim();0===d.indexOf("a=")&&(d=d.substr(2)),(A=n.getMediaSections(t._remoteDescription.sdp))[r]+="a="+(c.type?d:"end-of-candidates")+"\r\n",t._remoteDescription.sdp=n.getDescription(t._remoteDescription.sdp)+A.join("")}else for(var I=0;I0?A[0].split("/")[1]:"sendrecv",uri:A[1]}},n.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},n.parseFmtp=function(e){for(var A,t={},i=e.substr(e.indexOf(" ")+1).split(";"),n=0;n-1?(t.attribute=e.substr(A+1,i-A-1),t.value=e.substr(i+1)):t.attribute=e.substr(A+1),t},n.parseSsrcGroup=function(e){var A=e.substr(13).split(" ");return{semantics:A.shift(),ssrcs:A.map((function(e){return parseInt(e,10)}))}},n.getMid=function(e){var A=n.matchPrefix(e,"a=mid:")[0];if(A)return A.substr(6)},n.parseFingerprint=function(e){var A=e.substr(14).split(" ");return{algorithm:A[0].toLowerCase(),value:A[1]}},n.getDtlsParameters=function(e,A){return{role:"auto",fingerprints:n.matchPrefix(e+A,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(e,A){var t="a=setup:"+A+"\r\n";return e.fingerprints.forEach((function(e){t+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),t},n.getIceParameters=function(e,A){var t=n.splitLines(e);return{usernameFragment:(t=t.concat(n.splitLines(A))).filter((function(e){return 0===e.indexOf("a=ice-ufrag:")}))[0].substr(12),password:t.filter((function(e){return 0===e.indexOf("a=ice-pwd:")}))[0].substr(10)}},n.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},n.parseRtpParameters=function(e){for(var A={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},t=n.splitLines(e)[0].split(" "),i=3;i0?"9":"0",t+=" UDP/TLS/RTP/SAVPF ",t+=A.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",t+="c=IN IP4 0.0.0.0\r\n",t+="a=rtcp:9 IN IP4 0.0.0.0\r\n",A.codecs.forEach((function(e){t+=n.writeRtpMap(e),t+=n.writeFmtp(e),t+=n.writeRtcpFb(e)}));var i=0;return A.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(t+="a=maxptime:"+i+"\r\n"),t+="a=rtcp-mux\r\n",A.headerExtensions&&A.headerExtensions.forEach((function(e){t+=n.writeExtmap(e)})),t},n.parseRtpEncodingParameters=function(e){var A,t=[],i=n.parseRtpParameters(e),a=-1!==i.fecMechanisms.indexOf("RED"),r=-1!==i.fecMechanisms.indexOf("ULPFEC"),o=n.matchPrefix(e,"a=ssrc:").map((function(e){return n.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),s=o.length>0&&o[0].ssrc,g=n.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));g.length>0&&g[0].length>1&&g[0][0]===s&&(A=g[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var i={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&A&&(i.rtx={ssrc:A}),t.push(i),a&&((i=JSON.parse(JSON.stringify(i))).fec={ssrc:s,mechanism:r?"red+ulpfec":"red"},t.push(i))}})),0===t.length&&s&&t.push({ssrc:s});var l=n.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,t.forEach((function(e){e.maxBitrate=l}))),t},n.parseRtcpParameters=function(e){var A={},t=n.matchPrefix(e,"a=ssrc:").map((function(e){return n.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];t&&(A.cname=t.value,A.ssrc=t.ssrc);var i=n.matchPrefix(e,"a=rtcp-rsize");A.reducedSize=i.length>0,A.compound=0===i.length;var a=n.matchPrefix(e,"a=rtcp-mux");return A.mux=a.length>0,A},n.parseMsid=function(e){var A,t=n.matchPrefix(e,"a=msid:");if(1===t.length)return{stream:(A=t[0].substr(7).split(" "))[0],track:A[1]};var i=n.matchPrefix(e,"a=ssrc:").map((function(e){return n.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(A=i[0].value.split(" "))[0],track:A[1]}:void 0},n.parseSctpDescription=function(e){var A,t=n.parseMLine(e),i=n.matchPrefix(e,"a=max-message-size:");i.length>0&&(A=parseInt(i[0].substr(19),10)),isNaN(A)&&(A=65536);var a=n.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substr(12),10),protocol:t.fmt,maxMessageSize:A};if(n.matchPrefix(e,"a=sctpmap:").length>0){var r=n.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(r[0],10),protocol:r[1],maxMessageSize:A}}},n.writeSctpDescription=function(e,A){var t=[];return t="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+A.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+A.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+A.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+A.port+" "+A.protocol+" 65535\r\n"],void 0!==A.maxMessageSize&&t.push("a=max-message-size:"+A.maxMessageSize+"\r\n"),t.join("")},n.generateSessionId=function(){return Math.random().toString().substr(2,21)},n.writeSessionBoilerplate=function(e,A,t){var i=void 0!==A?A:2;return"v=0\r\no="+(t||"thisisadapterortc")+" "+(e||n.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},n.writeMediaSection=function(e,A,t,i){var a=n.writeRtpDescription(e.kind,A);if(a+=n.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=n.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===t?"actpass":"active"),a+="a=mid:"+e.mid+"\r\n",e.direction?a+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var r="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";a+="a="+r,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+r,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+r,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+"\r\n"),a},n.getDirection=function(e,A){for(var t=n.splitLines(e),i=0;i=26&&e<=A||eI.extension.isInstalled()}return!0};var $d={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return null!==document.querySelector("#janus-extension-installed")},getScreen:function(e){var A=window.setTimeout((function(){var A=new Error("NavigatorUserMediaError");return A.name='The required Chrome extension is not installed: click here to install it. (NOTE: this will need you to refresh the page)',e(A)}),1e3);this.cache[A]=e,window.postMessage({type:"janusGetScreen",id:A},"*")},init:function(){var e={};this.cache=e,window.addEventListener("message",(function(A){if(A.origin==window.location.origin)if("janusGotScreen"==A.data.type&&e[A.data.id]){var t=e[A.data.id];if(delete e[A.data.id],""===A.data.sourceId){var i=new Error("NavigatorUserMediaError");i.name="You cancelled the request for permission, giving up...",t(i)}else t(null,A.data.sourceId)}else"janusGetScreenPending"==A.data.type&&window.clearTimeout(A.data.id)}))}};function eI(e){if(void 0===eI.initDone)return e.error("Library not initialized"),{};if(!eI.isWebrtcSupported())return e.error("WebRTC not supported by this browser"),{};if(eI.log("Library initialized: "+eI.initDone),(e=e||{}).success="function"==typeof e.success?e.success:eI.noop,e.error="function"==typeof e.error?e.error:eI.noop,e.destroyed="function"==typeof e.destroyed?e.destroyed:eI.noop,null===e.server||void 0===e.server)return e.error("Invalid server url"),{};var A=!1,t=null,i={},n=null,a=null,r=0,o=e.server;eI.isArray(o)?(eI.log("Multiple servers provided ("+o.length+"), will use the first that works"),o=null,a=e.server,eI.debug(a)):0===o.indexOf("ws")?(A=!0,eI.log("Using WebSockets to contact Janus: "+o)):(A=!1,eI.log("Using REST API to contact Janus: "+o));var s=e.iceServers;null==s&&(s=[{urls:"stun:stun.l.google.com:19302"}]);var g=e.iceTransportPolicy,l=e.bundlePolicy,c=e.ipv6;null==c&&(c=!1);var d=!1;void 0!==e.withCredentials&&null!==e.withCredentials&&(d=!0===e.withCredentials);var I=10;void 0!==e.max_poll_events&&null!==e.max_poll_events&&(I=e.max_poll_events),I<1&&(I=1);var C=null;void 0!==e.token&&null!==e.token&&(C=e.token);var h=null;void 0!==e.apisecret&&null!==e.apisecret&&(h=e.apisecret),this.destroyOnUnload=!0,void 0!==e.destroyOnUnload&&null!==e.destroyOnUnload&&(this.destroyOnUnload=!0===e.destroyOnUnload);var u=25e3;void 0!==e.keepAlivePeriod&&null!==e.keepAlivePeriod&&(u=e.keepAlivePeriod),isNaN(u)&&(u=25e3);var B=6e4;function f(e){var A={high:9e5,medium:3e5,low:1e5};return null!=e&&(e.high&&(A.high=e.high),e.medium&&(A.medium=e.medium),e.low&&(A.low=e.low)),A}void 0!==e.longPollTimeout&&null!==e.longPollTimeout&&(B=e.longPollTimeout),isNaN(B)&&(B=6e4);var E=!1,x=null,Q={},p=this,m=0,y={};function _(){if(null!=x)if(eI.debug("Long poll..."),E){var A=o+"/"+x+"?rid="+(new Date).getTime();null!=I&&(A=A+"&maxev="+I),null!=C&&(A=A+"&token="+encodeURIComponent(C)),null!=h&&(A=A+"&apisecret="+encodeURIComponent(h)),eI.httpAPICall(A,{verb:"GET",withCredentials:d,success:S,timeout:B,error:function(A,t){if(eI.error(A+":",t),++m>3)return E=!1,void e.error("Lost connection to the server (is it down?)");_()}})}else eI.warn("Is the server down? (connected=false)")}function S(e,i){if(m=0,A||null==x||!0===i||_(),A||!eI.isArray(e))if("keepalive"!==e.rtcgw)if("ack"!==e.rtcgw)if("success"!==e.rtcgw)if("trickle"===e.rtcgw){if(null==(s=e.sender))return void eI.warn("Missing sender...");if(null==(l=Q[s]))return void eI.debug("This handle is not attached to this session");var n=e.candidate;eI.debug("Got a trickled candidate on session "+x),eI.debug(n);var a=l.webrtcStuff;a.pc&&a.remoteSdp?(eI.debug("Adding remote candidate:",n),n&&!0!==n.completed?a.pc.addIceCandidate(n):a.pc.addIceCandidate(eI.endOfCandidates)):(eI.debug("We didn't do setRemoteDescription (trickle got here before the offer?), caching candidate"),a.candidates||(a.candidates=[]),a.candidates.push(n),eI.debug(a.candidates))}else{if("webrtcup"===e.rtcgw)return eI.debug("Got a webrtcup event on session "+x),eI.debug(e),null==(s=e.sender)?void eI.warn("Missing sender..."):null==(l=Q[s])?void eI.debug("This handle is not attached to this session"):void l.webrtcState(!0);if("hangup"===e.rtcgw){if(eI.debug("Got a hangup event on session "+x),eI.debug(e),null==(s=e.sender))return void eI.warn("Missing sender...");if(null==(l=Q[s]))return void eI.debug("This handle is not attached to this session");l.webrtcState(!1,e.reason),l.hangup()}else if("detached"===e.rtcgw){if(eI.debug("Got a detached event on session "+x),eI.debug(e),null==(s=e.sender))return void eI.warn("Missing sender...");if(null==(l=Q[s]))return;l.detached=!0,l.ondetached(),l.detach()}else if("media"===e.rtcgw){if(eI.debug("Got a media event on session "+x),eI.debug(e),null==(s=e.sender))return void eI.warn("Missing sender...");if(null==(l=Q[s]))return void eI.debug("This handle is not attached to this session");l.mediaState(e.type,e.receiving)}else if("slowlink"===e.rtcgw){if(eI.debug("Got a slowlink event on session "+x),eI.debug(e),null==(s=e.sender))return void eI.warn("Missing sender...");if(null==(l=Q[s]))return void eI.debug("This handle is not attached to this session");l.slowLink(e.uplink,e.lost)}else{if("error"===e.rtcgw){var r,o;if(eI.error("Ooops: "+e.error.code+" "+e.error.reason),eI.debug(e),null!=(r=e.transaction))null!=(o=y[r])&&o(e),delete y[r];return}if("event"===e.rtcgw){var s;if(eI.debug("Got a plugin event on session "+x),eI.debug(e),null==(s=e.sender))return void eI.warn("Missing sender...");var g=e.plugindata;if(null==g)return void eI.warn("Missing plugindata...");eI.debug(" -- Event is coming from "+s+" ("+g.plugin+")");var l,c=g.data;if(eI.debug(c),null==(l=Q[s]))return void eI.warn("This handle is not attached to this session");var d=e.jsep;null!=d&&(eI.debug("Handling SDP as well..."),eI.debug(d));var I=l.onmessage;null!=I?(eI.debug("Notifying application..."),I(c,d)):eI.debug("No provided notification callback")}else{if("timeout"===e.rtcgw)return eI.error("Timeout on session "+x),eI.debug(e),void(A&&t.close(3504,"Gateway timeout"));eI.warn("Unknown message/event '"+e.rtcgw+"' on session "+x),eI.debug(e)}}}else eI.debug("Got a success on session "+x),eI.debug(e),null!=(r=e.transaction)&&(null!=(o=y[r])&&o(e),delete y[r]);else eI.debug("Got an ack on session "+x),eI.debug(e),null!=(r=e.transaction)&&(null!=(o=y[r])&&o(e),delete y[r]);else eI.vdebug("Got a keepalive on session "+x);else for(var C=0;C data channel: "+t),"open"===t){if(a.dataChannel[A].pending&&a.dataChannel[A].pending.length>0){for(var i in eI.log("Sending pending messages on <"+A+">:",a.dataChannel[A].pending.length),a.dataChannel[A].pending){var r=a.dataChannel[A].pending[i];eI.log("Sending string on data channel <"+A+">: "+r),a.dataChannel[A].send(r)}a.dataChannel[A].pending=[]}n.ondataopen(A)}};a.dataChannel[A]=t||a.pc.createDataChannel(A,{ordered:!1}),a.dataChannel[A].onmessage=function(e){eI.log("Received message on data channel:",e);var A=e.target.label;n.ondata(e.data,A)},a.dataChannel[A].onopen=r,a.dataChannel[A].onclose=r,a.dataChannel[A].onerror=function(e){eI.error("Got error on data channel:",e)},a.dataChannel[A].pending=[],i&&a.dataChannel[A].pending.push(i)}else eI.warn("Invalid handle")}function R(e,A){(A=A||{}).success="function"==typeof A.success?A.success:eI.noop,A.error="function"==typeof A.error?A.error:eI.noop;var t=Q[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return eI.warn("Invalid handle"),void A.error("Invalid handle");var i=t.webrtcStuff,n=A.text;if(null==n)return eI.warn("Invalid text"),void A.error("Invalid text");var a=A.label?A.label:eI.dataChanDefaultLabel;return i.dataChannel[a]?"open"!==i.dataChannel[a].readyState?(i.dataChannel[a].pending.push(n),void A.success()):(eI.log("Sending string on data channel <"+a+">: "+n),i.dataChannel[a].send(n),void A.success()):(F(e,a,!1,n),void A.success())}function k(e,A){(A=A||{}).success="function"==typeof A.success?A.success:eI.noop,A.error="function"==typeof A.error?A.error:eI.noop;var t=Q[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return eI.warn("Invalid handle"),void A.error("Invalid handle");var i=t.webrtcStuff;if(null===i.dtmfSender||void 0===i.dtmfSender){if(void 0!==i.pc&&null!==i.pc){var n=i.pc.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}));if(!n)return eI.warn("Invalid DTMF configuration (no audio track)"),void A.error("Invalid DTMF configuration (no audio track)");i.dtmfSender=n.dtmf,i.dtmfSender&&(eI.log("Created DTMF Sender"),i.dtmfSender.ontonechange=function(e){eI.debug("Sent DTMF tone: "+e.tone)})}if(null===i.dtmfSender||void 0===i.dtmfSender)return eI.warn("Invalid DTMF configuration"),void A.error("Invalid DTMF configuration")}var a=A.dtmf;if(null==a)return eI.warn("Invalid DTMF parameters"),void A.error("Invalid DTMF parameters");var r=a.tones;if(null==r)return eI.warn("Invalid DTMF string"),void A.error("Invalid DTMF string");var o=a.duration;null==o&&(o=500);var s=a.gap;null==s&&(s=50),eI.debug("Sending DTMF string "+r+" (duration "+o+"ms, gap "+s+"ms)"),i.dtmfSender.insertDTMF(r,o,s),A.success()}function P(e,i){(i=i||{}).success="function"==typeof i.success?i.success:eI.noop,i.error="function"==typeof i.error?i.error:eI.noop;var n=!0;void 0!==i.asyncRequest&&null!==i.asyncRequest&&(n=!0===i.asyncRequest);var a=!0;void 0!==i.noRequest&&null!==i.noRequest&&(a=!0===i.noRequest),eI.log("Destroying handle "+e+" (async="+n+")"),K(e);var r=Q[e];if(null==r||r.detached)return delete Q[e],void i.success();if(a)return delete Q[e],void i.success();if(!E)return eI.warn("Is the server down? (connected=false)"),void i.error("Is the server down? (connected=false)");var s={rtcgw:"detach",transaction:eI.randomString(12)};if(null!==r.token&&void 0!==r.token&&(s.token=r.token),null!=h&&(s.apisecret=h),A)return s.session_id=x,s.handle_id=e,t.send(JSON.stringify(s)),delete Q[e],void i.success();eI.httpAPICall(o+"/"+x+"/"+e,{verb:"POST",async:n,withCredentials:d,body:s,success:function(A){eI.log("Destroyed handle:"),eI.debug(A),"success"!==A.rtcgw&&eI.error("Ooops: "+A.error.code+" "+A.error.reason),delete Q[e],i.success()},error:function(A,t){eI.error(A+":",t),delete Q[e],i.success()}})}function T(e,A,t,i,n){return N.apply(this,arguments)}function N(){return N=function(e){return function(){var A=this,t=arguments;return new Promise((function(i,n){var a=e.apply(A,t);function r(e){Xd(a,i,n,r,o,"next",e)}function o(e){Xd(a,i,n,r,o,"throw",e)}r(void 0)}))}}((function(e,A,t,i,n){var a,r,o,d,I,C,h,u,B,E,x,p,m,y,_,S,v,D,w,R,k,P,T,N;return zd(this,(function(M){switch(M.label){case 0:return null==(a=Q[e])||null===a.webrtcStuff||void 0===a.webrtcStuff?(eI.warn("Invalid handle"),i.error("Invalid handle"),[2]):(r=a.webrtcStuff,eI.debug("streamsDone:",n),n&&(eI.debug(" -- Audio tracks:",n.getAudioTracks()),eI.debug(" -- Video tracks:",n.getVideoTracks())),o=!1,r.myStream&&t.update&&!r.streamExternal?[3,1]:(r.myStream=n,o=!0,[3,8]));case 1:if(!((!t.update&&O(t)||t.update&&(t.addAudio||t.replaceAudio))&&n.getAudioTracks()&&n.getAudioTracks().length))return[3,7];if(r.myStream.addTrack(n.getAudioTracks()[0]),!eI.unifiedPlan)return[3,6];if(eI.log((t.replaceAudio?"Replacing":"Adding")+" audio track:",n.getAudioTracks()[0]),d=null,(p=r.pc.getTransceivers())&&p.length>0)for(var L in p)if((m=p[L]).sender&&m.sender.track&&"audio"===m.sender.track.kind||m.receiver&&m.receiver.track&&"audio"===m.receiver.track.kind){d=m;break}I=null,M.label=2;case 2:return M.trys.push([2,4,,5]),[4,i.customizeStream(n)];case 3:return I=M.sent(),[3,5];case 4:return C=M.sent(),i.error(C),[3,5];case 5:return d&&d.sender?d.sender.replaceTrack((null==I||null==(u=I.getAudioTracks)||null==(h=u.call(I))?void 0:h[0])||n.getAudioTracks()[0]):r.pc.addTrack((null==I||null==(E=I.getAudioTracks)||null==(B=E.call(I))?void 0:B[0])||n.getAudioTracks()[0],I||n),[3,7];case 6:eI.log((t.replaceAudio?"Replacing":"Adding")+" audio track:",n.getAudioTracks()[0]),r.pc.addTrack(n.getAudioTracks()[0],n),M.label=7;case 7:if((!t.update&&j(t)||t.update&&(t.addVideo||t.replaceVideo))&&n.getVideoTracks()&&n.getVideoTracks().length)if(r.myStream.addTrack(n.getVideoTracks()[0]),eI.unifiedPlan){if(eI.log((t.replaceVideo?"Replacing":"Adding")+" video track:",n.getVideoTracks()[0]),x=null,(p=r.pc.getTransceivers())&&p.length>0)for(var L in p)if((m=p[L]).sender&&m.sender.track&&"video"===m.sender.track.kind||m.receiver&&m.receiver.track&&"video"===m.receiver.track.kind){x=m;break}x&&x.sender?x.sender.replaceTrack(n.getVideoTracks()[0]):r.pc.addTrack(n.getVideoTracks()[0],n)}else eI.log((t.replaceVideo?"Replacing":"Adding")+" video track:",n.getVideoTracks()[0]),r.pc.addTrack(n.getVideoTracks()[0],n);M.label=8;case 8:if(!r.pc){if(y={iceServers:s,iceTransportPolicy:g,bundlePolicy:l},"chrome"===eI.webRTCAdapter.browserDetails.browser&&(y.sdpSemantics=eI.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan"),_={optional:[{DtlsSrtpKeyAgreement:!0}]},!0===c&&_.optional.push({googIPv6:!0}),i.rtcConstraints&&"object"===qd(i.rtcConstraints))for(var L in eI.debug("Adding custom PeerConnection constraints:",i.rtcConstraints),i.rtcConstraints)_.optional.push(i.rtcConstraints[L]);"edge"===eI.webRTCAdapter.browserDetails.browser&&(y.bundlePolicy="max-bundle"),eI.log("Creating PeerConnection"),eI.debug(_),r.pc=new RTCPeerConnection(y,_),eI.debug(r.pc),r.pc.getStats&&(r.volume={},r.bitrate.value="0 kbits/sec"),eI.log("Preparing local SDP and gathering candidates (trickle="+r.trickle+")"),r.pc.oniceconnectionstatechange=function(e){r.pc&&a.iceState(r.pc.iceConnectionState)},r.pc.onicecandidate=function(A){if(null==A.candidate||"edge"===eI.webRTCAdapter.browserDetails.browser&&A.candidate.candidate.indexOf("endOfCandidates")>0)eI.log("End of candidates."),r.iceDone=!0,!0===r.trickle?b(e,{completed:!0}):function(e,A){A=A||{},A.success="function"==typeof A.success?A.success:eI.noop,A.error="function"==typeof A.error?A.error:eI.noop;var t=Q[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return void eI.warn("Invalid handle, not sending anything");var i=t.webrtcStuff;if(eI.log("Sending offer/answer SDP..."),null===i.mySdp||void 0===i.mySdp)return void eI.warn("Local SDP instance is invalid, not sending anything...");i.mySdp={type:i.pc.localDescription.type,sdp:i.pc.localDescription.sdp},!1===i.trickle&&(i.mySdp.trickle=!1);eI.debug(A),i.sdpSent=!0,A.success(i.mySdp)}(e,i);else{var t={candidate:A.candidate.candidate,sdpMid:A.candidate.sdpMid,sdpMLineIndex:A.candidate.sdpMLineIndex};!0===r.trickle&&b(e,t)}},r.pc.ontrack=function(e){eI.log("Handling Remote Track"),eI.debug(e),e.streams&&(r.remoteStream=e.streams[0],a.onremotestream(r.remoteStream),e.track.onended||(eI.log("Adding onended callback to track:",e.track),e.track.onended=function(e){eI.log("Remote track muted/removed:",e),r.remoteStream&&(r.remoteStream.removeTrack(e.target),a.onremotestream(r.remoteStream))},e.track.onmute=e.track.onended,e.track.onunmute=function(e){try{r.remoteStream.addTrack(e.target),a.onremotestream(r.remoteStream)}catch(e){eI.error(e)}}))}}if(!o||null==n)return[3,18];eI.log("Adding local stream"),S=!0===i.simulcast2,v=n.getTracks(),D=0,M.label=9;case 9:if(!(D0)for(var l in g){var c=g[l];c.sender&&c.sender.track&&"audio"===c.sender.track.kind||c.receiver&&c.receiver.track&&"audio"===c.receiver.track.kind?o||(o=c):(c.sender&&c.sender.track&&"video"===c.sender.track.kind||c.receiver&&c.receiver.track&&"video"===c.receiver.track.kind)&&(s||(s=c))}var d=O(A),I=V(A);d||I?d&&I?o&&(o.setDirection?o.setDirection("sendrecv"):o.direction="sendrecv",eI.log("Setting audio transceiver to sendrecv:",o)):d&&!I?o&&(o.setDirection?o.setDirection("sendonly"):o.direction="sendonly",eI.log("Setting audio transceiver to sendonly:",o)):!d&&I&&(o?(o.setDirection?o.setDirection("recvonly"):o.direction="recvonly",eI.log("Setting audio transceiver to recvonly:",o)):(o=n.pc.addTransceiver("audio",{direction:"recvonly"}),eI.log("Adding recvonly audio transceiver:",o))):A.removeAudio&&o&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive",eI.log("Setting audio transceiver to inactive:",o));var C=j(A),h=W(A);C||h?C&&h?s&&(s.setDirection?s.setDirection("sendrecv"):s.direction="sendrecv",eI.log("Setting video transceiver to sendrecv:",s)):C&&!h?s&&(s.setDirection?s.setDirection("sendonly"):s.direction="sendonly",eI.log("Setting video transceiver to sendonly:",s)):!C&&h&&(s?(s.setDirection?s.setDirection("recvonly"):s.direction="recvonly",eI.log("Setting video transceiver to recvonly:",s)):(s=n.pc.addTransceiver("video",{direction:"recvonly"}),eI.log("Adding recvonly video transceiver:",s))):A.removeVideo&&s&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive",eI.log("Setting video transceiver to inactive:",s))}else r.offerToReceiveAudio=V(A),r.offerToReceiveVideo=W(A);var u=!0===t.iceRestart;u&&(r.iceRestart=!0);eI.debug(r);var B=j(A);if(B&&a&&"firefox"===eI.webRTCAdapter.browserDetails.browser){eI.log("Enabling Simulcasting for Firefox (RID)");var E=n.pc.getSenders().find((function(e){return"video"==e.track.kind}));if(E){var x=E.getParameters();x||(x={});var p=f(t.simulcastMaxBitrates);x.encodings=[{rid:"h",active:!0,maxBitrate:p.high},{rid:"m",active:!0,maxBitrate:p.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:p.low,scaleResolutionDownBy:4}],E.setParameters(x)}}n.pc.createOffer(r).then((function(e){eI.debug(e);var A={type:e.type,sdp:e.sdp};t.customizeSdp(A),e.sdp=A.sdp,eI.log("Setting local description"),B&&a&&("chrome"===eI.webRTCAdapter.browserDetails.browser||"safari"===eI.webRTCAdapter.browserDetails.browser?(eI.log("Enabling Simulcasting for Chrome (SDP munging)"),e.sdp=function(e){for(var A=e.split("\r\n"),t=!1,i=[-1],n=[-1],a=null,r=null,o=null,s=null,g=-1,l=0;l-1){g=l;break}}else if(t){var c=A[l].match(/a=ssrc-group:FID (\d+) (\d+)/);if(c)i[0]=c[1],n[0]=c[2],A.splice(l,1),l--;else{if(i[0]){if((C=A[l].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(r=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(o=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" label:(.+)"))&&(s=C[1]),0===A[l].indexOf("a=ssrc:"+n[0])){A.splice(l,1),l--;continue}if(0===A[l].indexOf("a=ssrc:"+i[0])){A.splice(l,1),l--;continue}}0!=A[l].length||(A.splice(l,1),l--)}}}if(i[0]<0){g=-1,t=!1;for(l=0;l-1){g=l;break}}else if(t){if(i[0]<0){var I=A[l].match(/a=ssrc:(\d+)/);if(I){i[0]=I[1],A.splice(l,1),l--;continue}}else{var C;if((C=A[l].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(r=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(o=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" label:(.+)"))&&(s=C[1]),0===A[l].indexOf("a=ssrc:"+n[0])){A.splice(l,1),l--;continue}if(0===A[l].indexOf("a=ssrc:"+i[0])){A.splice(l,1),l--;continue}}0!=A[l].length||(A.splice(l,1),l--)}}}if(i[0]<0)return eI.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),e;g<0&&(g=A.length);i[1]=Math.floor(4294967295*Math.random()),i[2]=Math.floor(4294967295*Math.random()),n[1]=Math.floor(4294967295*Math.random()),n[2]=Math.floor(4294967295*Math.random());for(l=0;l0){for(var n=0;n0)for(var l in g){var c=g[l];c.sender&&c.sender.track&&"audio"===c.sender.track.kind||c.receiver&&c.receiver.track&&"audio"===c.receiver.track.kind?o||(o=c):(c.sender&&c.sender.track&&"video"===c.sender.track.kind||c.receiver&&c.receiver.track&&"video"===c.receiver.track.kind)&&(s||(s=c))}var d=O(A),I=V(A);if(d||I){if(d&&I){if(o)try{o.setDirection?o.setDirection("sendrecv"):o.direction="sendrecv",eI.log("Setting audio transceiver to sendrecv:",o)}catch(e){eI.error(e)}}else if(d&&!I)try{o&&(o.setDirection?o.setDirection("sendonly"):o.direction="sendonly",eI.log("Setting audio transceiver to sendonly:",o))}catch(e){eI.error(e)}else if(!d&&I)if(o)try{o.setDirection?o.setDirection("recvonly"):o.direction="recvonly",eI.log("Setting audio transceiver to recvonly:",o)}catch(e){eI.error(e)}else o=n.pc.addTransceiver("audio",{direction:"recvonly"}),eI.log("Adding recvonly audio transceiver:",o)}else if(A.removeAudio&&o)try{o.setDirection?o.setDirection("inactive"):o.direction="inactive",eI.log("Setting audio transceiver to inactive:",o)}catch(e){eI.error(e)}var C=j(A),h=W(A);if(C||h){if(C&&h){if(s)try{s.setDirection?s.setDirection("sendrecv"):s.direction="sendrecv",eI.log("Setting video transceiver to sendrecv:",s)}catch(e){eI.error(e)}}else if(C&&!h){if(s)try{s.setDirection?s.setDirection("sendonly"):s.direction="sendonly",eI.log("Setting video transceiver to sendonly:",s)}catch(e){eI.error(e)}}else if(!C&&h)if(s)try{s.setDirection?s.setDirection("recvonly"):s.direction="recvonly",eI.log("Setting video transceiver to recvonly:",s)}catch(e){eI.error(e)}else s=n.pc.addTransceiver("video",{direction:"recvonly"}),eI.log("Adding recvonly video transceiver:",s)}else if(A.removeVideo&&s)try{s.setDirection?s.setDirection("inactive"):s.direction="inactive",eI.log("Setting video transceiver to inactive:",s)}catch(e){eI.error(e)}}else r="firefox"==eI.webRTCAdapter.browserDetails.browser||"edge"==eI.webRTCAdapter.browserDetails.browser?{offerToReceiveAudio:V(A),offerToReceiveVideo:W(A)}:{mandatory:{OfferToReceiveAudio:V(A),OfferToReceiveVideo:W(A)}};eI.debug(r);var u=j(A);if(u&&a&&"firefox"===eI.webRTCAdapter.browserDetails.browser){eI.log("Enabling Simulcasting for Firefox (RID)");var B=n.pc.getSenders()[1];eI.log(B);var E=B.getParameters();eI.log(E);var x=f(t.simulcastMaxBitrates);B.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:x.high},{rid:"medium",active:!0,priority:"medium",maxBitrate:x.medium},{rid:"low",active:!0,priority:"low",maxBitrate:x.low}]})}n.pc.createAnswer(r).then((function(e){eI.debug(e);var A={type:e.type,sdp:e.sdp};t.customizeSdp(A),e.sdp=A.sdp,eI.log("Setting local description"),u&&a&&("chrome"===eI.webRTCAdapter.browserDetails.browser?eI.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):"firefox"!==eI.webRTCAdapter.browserDetails.browser&&eI.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),n.mySdp=e.sdp,n.pc.setLocalDescription(e).catch(t.error),n.mediaConstraints=r,n.iceDone||n.trickle?t.success(e):eI.log("Waiting for all candidates...")}),t.error)}(e,t,i)}),i.error),[2]}}))})),N.apply(this,arguments)}function M(e,A,t){(t=t||{}).success="function"==typeof t.success?t.success:eI.noop,t.error="function"==typeof t.error?t.error:H,t.customizeStream="function"==typeof t.customizeStream?t.customizeStream:eI.noop;var i=t.jsep;if(A&&i)return eI.error("Provided a JSEP to a createOffer"),void t.error("Provided a JSEP to a createOffer");if(!(A||i&&i.type&&i.sdp))return eI.error("A valid JSEP is required for createAnswer"),void t.error("A valid JSEP is required for createAnswer");t.media=t.media||{audio:!0,video:!0};var n=t.media,a=Q[e];if(null==a||null===a.webrtcStuff||void 0===a.webrtcStuff)return eI.warn("Invalid handle"),void t.error("Invalid handle");var r,o=a.webrtcStuff;if(o.trickle=(r=t.trickle,eI.debug("isTrickleEnabled:",r),null==r||!0===r),void 0===o.pc||null===o.pc)n.update=!1,n.keepAudio=!1,n.keepVideo=!1;else if(void 0!==o.pc&&null!==o.pc){if(eI.log("Updating existing media session"),n.update=!0,null!==t.stream&&void 0!==t.stream)t.stream!==o.myStream&&eI.log("Renegotiation involves a new external stream");else{if(n.addAudio){if(n.keepAudio=!1,n.replaceAudio=!1,n.removeAudio=!1,n.audioSend=!0,o.myStream&&o.myStream.getAudioTracks()&&o.myStream.getAudioTracks().length)return eI.error("Can't add audio stream, there already is one"),void t.error("Can't add audio stream, there already is one")}else n.removeAudio?(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!1,n.audioSend=!1):n.replaceAudio&&(n.keepAudio=!1,n.addAudio=!1,n.removeAudio=!1,n.audioSend=!0);if(null===o.myStream||void 0===o.myStream?(n.replaceAudio&&(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!0,n.audioSend=!0),O(n)&&(n.keepAudio=!1,n.addAudio=!0)):null===o.myStream.getAudioTracks()||void 0===o.myStream.getAudioTracks()||0===o.myStream.getAudioTracks().length?(n.replaceAudio&&(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!0,n.audioSend=!0),O(n)&&(n.keepVideo=!1,n.addAudio=!0)):!O(n)||n.removeAudio||n.replaceAudio||(n.keepAudio=!0),n.addVideo){if(n.keepVideo=!1,n.replaceVideo=!1,n.removeVideo=!1,n.videoSend=!0,o.myStream&&o.myStream.getVideoTracks()&&o.myStream.getVideoTracks().length)return eI.error("Can't add video stream, there already is one"),void t.error("Can't add video stream, there already is one")}else n.removeVideo?(n.keepVideo=!1,n.replaceVideo=!1,n.addVideo=!1,n.videoSend=!1):n.replaceVideo&&(n.keepVideo=!1,n.addVideo=!1,n.removeVideo=!1,n.videoSend=!0);null===o.myStream||void 0===o.myStream||null===o.myStream.getVideoTracks()||void 0===o.myStream.getVideoTracks()||0===o.myStream.getVideoTracks().length?(n.replaceVideo&&(n.keepVideo=!1,n.replaceVideo=!1,n.addVideo=!0,n.videoSend=!0),j(n)&&(n.keepVideo=!1,n.addVideo=!0)):!j(n)||n.removeVideo||n.replaceVideo||(n.keepVideo=!0),n.addData&&(n.data=!0)}if(O(n)&&n.keepAudio&&j(n)&&n.keepVideo)return a.consentDialog(!1),void T(e,i,n,t,o.myStream)}if(n.update&&!o.streamExternal){if(n.removeAudio||n.replaceAudio){if(o.myStream&&o.myStream.getAudioTracks()&&o.myStream.getAudioTracks().length){var s=o.myStream.getAudioTracks()[0];eI.log("Removing audio track:",s),o.myStream.removeTrack(s);try{s.stop()}catch(e){}}if(o.pc.getSenders()&&o.pc.getSenders().length){var g=!0;if(n.replaceAudio&&eI.unifiedPlan&&(g=!1),g)for(var l in o.pc.getSenders()){(s=o.pc.getSenders()[l])&&s.track&&"audio"===s.track.kind&&(eI.log("Removing audio sender:",s),o.pc.removeTrack(s))}}}if(n.removeVideo||n.replaceVideo){if(o.myStream&&o.myStream.getVideoTracks()&&o.myStream.getVideoTracks().length){s=o.myStream.getVideoTracks()[0];eI.log("Removing video track:",s),o.myStream.removeTrack(s);try{s.stop()}catch(e){}}if(o.pc.getSenders()&&o.pc.getSenders().length){var c=!0;if(n.replaceVideo&&eI.unifiedPlan&&(c=!1),c)for(var l in o.pc.getSenders()){(s=o.pc.getSenders()[l])&&s.track&&"video"===s.track.kind&&(eI.log("Removing video sender:",s),o.pc.removeTrack(s))}}}}if(null!==t.stream&&void 0!==t.stream){var d=t.stream;if(eI.log("MediaStream provided by the application"),eI.debug(d),n.update&&o.myStream&&o.myStream!==t.stream&&!o.streamExternal){try{var I=o.myStream.getTracks();for(var C in I){var h=I[C];eI.log(h),null!=h&&h.stop()}}catch(e){}o.myStream=null}return o.streamExternal=!0,a.consentDialog(!1),void T(e,i,n,t,d)}if(O(n)||j(n)){if(!eI.isGetUserMediaAvailable())return void t.error("getUserMedia not available");var u={mandatory:{},optional:[]};a.consentDialog(!0);var B=O(n);!0===B&&null!=n&&null!=n&&"object"===qd(n.audio)&&(B=n.audio);var f=j(n);if(!0===f&&null!=n&&null!=n){var E=!0===t.simulcast,x=!0===t.simulcast2;if(!E&&!x||i||void 0!==n.video&&!1!==n.video||(n.video="hires"),n.video&&"screen"!=n.video&&"window"!=n.video)if("object"===qd(n.video))f=n.video;else{var p=0,m=0;"lowres"===n.video?(m=240,p=320):"lowres-16:9"===n.video?(m=180,p=320):"hires"===n.video||"hires-16:9"===n.video||"hdres"===n.video?(m=720,p=1280):"fhdres"===n.video?(m=1080,p=1920):"4kres"===n.video?(m=2160,p=3840):"stdres"===n.video?(m=480,p=640):"stdres-16:9"===n.video?(m=360,p=640):(eI.log("Default video setting is stdres 4:3"),m=480,p=640),eI.log("Adding media constraint:",n.video),f={height:{ideal:m},width:{ideal:p}},eI.log("Adding video constraint:",f)}else if("screen"===n.video||"window"===n.video){var y=function(A,r){a.consentDialog(!1),A?t.error(A):T(e,i,n,t,r)},_=function(e,A,t){eI.log("Adding media constraint (screen capture)"),eI.debug(e),navigator.mediaDevices.getUserMedia(e).then((function(e){t?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(t){e.addTrack(t.getAudioTracks()[0]),A(null,e)})):A(null,e)})).catch((function(e){a.consentDialog(!1),A(e)}))};if(n.screenshareFrameRate||(n.screenshareFrameRate=3),navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(A){a.consentDialog(!1),O(n)&&!n.keepAudio?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(a){A.addTrack(a.getAudioTracks()[0]),T(e,i,n,t,A)})):T(e,i,n,t,A)}),(function(e){a.consentDialog(!1),t.error(e)}));if("chrome"===eI.webRTCAdapter.browserDetails.browser){var S=eI.webRTCAdapter.browserDetails.version,v=33;window.navigator.userAgent.match("Linux")&&(v=35),S>=26&&S<=v?(u={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:n.screenshareFrameRate,maxFrameRate:n.screenshareFrameRate,chromeMediaSource:"screen"}},audio:O(n)&&!n.keepAudio},_(u,y)):eI.extension.getScreen((function(e,A){if(e)return a.consentDialog(!1),t.error(e);(u={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:n.screenshareFrameRate,maxFrameRate:n.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}}).video.mandatory.chromeMediaSourceId=A,_(u,y,O(n)&&!n.keepAudio)}))}else if("firefox"===eI.webRTCAdapter.browserDetails.browser){if(!(eI.webRTCAdapter.browserDetails.version>=33)){var D=new Error("NavigatorUserMediaError");return D.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",a.consentDialog(!1),void t.error(D)}u={video:{mozMediaSource:n.video,mediaSource:n.video},audio:O(n)&&!n.keepAudio},_(u,(function(e,A){if(y(e,A),!e)var t=A.currentTime,i=window.setInterval((function(){A||window.clearInterval(i),A.currentTime==t&&(window.clearInterval(i),A.onended&&A.onended()),t=A.currentTime}),500)}))}return}}null!=n&&"screen"===n.video||navigator.mediaDevices.enumerateDevices().then((function(A){var r=A.some((function(e){return"audioinput"===e.kind})),o=function(e){if(eI.debug("isScreenSendEnabled:",e),null==e)return!1;if("object"!==qd(e.video)||"object"!==qd(e.video.mandatory))return!1;var A=e.video.mandatory;if(A.chromeMediaSource)return"desktop"===A.chromeMediaSource||"screen"===A.chromeMediaSource;if(A.mozMediaSource)return"window"===A.mozMediaSource||"screen"===A.mozMediaSource;if(A.mediaSource)return"window"===A.mediaSource||"screen"===A.mediaSource;return!1}(n)||A.some((function(e){return"videoinput"===e.kind})),s=O(n),g=j(n),l=function(e){return eI.debug("isAudioSendRequired:",e),null!=e&&(!1!==e.audio&&!1!==e.audioSend&&(void 0!==e.failIfNoAudio&&null!==e.failIfNoAudio&&!0===e.failIfNoAudio))}(n),c=function(e){return eI.debug("isVideoSendRequired:",e),null!=e&&(!1!==e.video&&!1!==e.videoSend&&(void 0!==e.failIfNoVideo&&null!==e.failIfNoVideo&&!0===e.failIfNoVideo))}(n);if(s||g||l||c){var I=!!s&&r,C=!!g&&o;if(!I&&!C)return a.consentDialog(!1),t.error("No capture device found"),!1;if(!I&&l)return a.consentDialog(!1),t.error("Audio capture is required, but no capture device found"),!1;if(!C&&c)return a.consentDialog(!1),t.error("Video capture is required, but no capture device found"),!1}var h={audio:!(!r||n.keepAudio)&&B,video:!(!o||n.keepVideo)&&f};eI.debug("getUserMedia constraints",h),h.audio||h.video?navigator.mediaDevices.getUserMedia(h).then((function(A){a.consentDialog(!1),T(e,i,n,t,A)})).catch((function(e){a.consentDialog(!1),t.error({code:e.code,name:e.name,message:e.message})})):(a.consentDialog(!1),T(e,i,n,t,d))})).catch((function(e){a.consentDialog(!1),t.error("enumerateDevices error",e)}))}else T(e,i,n,t)}function L(e,A){(A=A||{}).success="function"==typeof A.success?A.success:eI.noop,A.error="function"==typeof A.error?A.error:H;var t=A.jsep,i=Q[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return eI.warn("Invalid handle"),void A.error("Invalid handle");var n=i.webrtcStuff;if(null!=t){if(null===n.pc)return eI.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"),void A.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");n.pc.setRemoteDescription(t).then((function(){if(eI.log("Remote description accepted!"),n.remoteSdp=t.sdp,n.candidates&&n.candidates.length>0){for(var e=0;e-1)&&"inbound-rtp"===e.type&&e.id.indexOf("rtcp")<0?A=!0:"ssrc"!=e.type||!e.bytesReceived||"VP8"!==e.googCodecName&&""!==e.googCodecName||(A=!0),A)if(t.bitrate.bsnow=e.bytesReceived,t.bitrate.tsnow=e.timestamp,null===t.bitrate.bsbefore||null===t.bitrate.tsbefore)t.bitrate.bsbefore=t.bitrate.bsnow,t.bitrate.tsbefore=t.bitrate.tsnow;else{var i=t.bitrate.tsnow-t.bitrate.tsbefore;"safari"==eI.webRTCAdapter.browserDetails.browser&&(i/=1e3);var n=Math.round(8*(t.bitrate.bsnow-t.bitrate.bsbefore)/i);"safari"===eI.webRTCAdapter.browserDetails.browser&&(n=parseInt(n/1e3)),t.bitrate.value=n+" kbits/sec",t.bitrate.bsbefore=t.bitrate.bsnow,t.bitrate.tsbefore=t.bitrate.tsnow}}}))}))}),1e3),"0 kbits/sec"):t.bitrate.value:(eI.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function H(e){eI.error("WebRTC error:",e)}function K(e,i){eI.log("Cleaning WebRTC stuff");var n=Q[e];if(null!=n){var a=n.webrtcStuff;if(null!=a){if(!0===i){var r={rtcgw:"hangup",transaction:eI.randomString(12)};null!==n.token&&void 0!==n.token&&(r.token=n.token),null!=h&&(r.apisecret=h),eI.debug("Sending hangup request (handle="+e+"):"),eI.debug(r),A?(r.session_id=x,r.handle_id=e,t.send(JSON.stringify(r))):eI.httpAPICall(o+"/"+x+"/"+e,{verb:"POST",withCredentials:d,body:r})}a.remoteStream=null,a.volume&&(a.volume.local&&a.volume.local.timer&&clearInterval(a.volume.local.timer),a.volume.remote&&a.volume.remote.timer&&clearInterval(a.volume.remote.timer)),a.volume={},a.bitrate.timer&&clearInterval(a.bitrate.timer),a.bitrate.timer=null,a.bitrate.bsnow=null,a.bitrate.bsbefore=null,a.bitrate.tsnow=null,a.bitrate.tsbefore=null,a.bitrate.value=null;try{if(!a.streamExternal&&null!==a.myStream&&void 0!==a.myStream){eI.log("Stopping local stream tracks");var s=a.myStream.getTracks();for(var g in s){var l=s[g];eI.log(l),null!=l&&l.stop()}}}catch(e){}a.streamExternal=!1,a.myStream=null;try{a.pc.close()}catch(e){}a.pc=null,a.candidates=null,a.mySdp=null,a.remoteSdp=null,a.iceDone=!1,a.dataChannel={},a.dtmfSender=null}n.oncleanup()}}function O(e){return eI.debug("isAudioSendEnabled:",e),null==e||!1!==e.audio&&(void 0===e.audioSend||null===e.audioSend||!0===e.audioSend)}function V(e){return eI.debug("isAudioRecvEnabled:",e),null==e||!1!==e.audio&&(void 0===e.audioRecv||null===e.audioRecv||!0===e.audioRecv)}function j(e){return eI.debug("isVideoSendEnabled:",e),null==e||!1!==e.video&&(void 0===e.videoSend||null===e.videoSend||!0===e.videoSend)}function W(e){return eI.debug("isVideoRecvEnabled:",e),null==e||!1!==e.video&&(void 0===e.videoRecv||null===e.videoRecv||!0===e.videoRecv)}D(e),this.getServer=function(){return o},this.isConnected=function(){return E},this.reconnect=function(e){(e=e||{}).success="function"==typeof e.success?e.success:eI.noop,e.error="function"==typeof e.error?e.error:eI.noop,e.reconnect=!0,D(e)},this.getSessionId=function(){return x},this.destroy=function(a){!function(a){a=a||{},a.success="function"==typeof a.success?a.success:eI.noop;var r=!0;void 0!==a.asyncRequest&&null!==a.asyncRequest&&(r=!0===a.asyncRequest);var s=!0;void 0!==a.notifyDestroyed&&null!==a.notifyDestroyed&&(s=!0===a.notifyDestroyed);var g=!1;void 0!==a.cleanupHandles&&null!==a.cleanupHandles&&(g=!0===a.cleanupHandles);if(eI.log("Destroying session "+x+" (async="+r+")"),!E)return eI.warn("Is the server down? (connected=false)"),void a.success();if(null==x)return eI.warn("No session to destroy"),a.success(),void(s&&e.destroyed());if(g)for(var l in Q)P(l,{noRequest:!0});var c={rtcgw:"destroy",transaction:eI.randomString(12)};null!=C&&(c.token=C);null!=h&&(c.apisecret=h);if(A){c.session_id=x;var I=function(){for(var e in i)t.removeEventListener(e,i[e]);t.removeEventListener("message",u),t.removeEventListener("error",B),n&&clearTimeout(n),t.close()},u=function(A){var t=JSON.parse(A.data);t.session_id==c.session_id&&t.transaction==c.transaction&&(I(),a.success(),s&&e.destroyed())},B=function(A){I(),a.error("Failed to destroy the server: Is the server down?"),s&&e.destroyed()};return t.addEventListener("message",u),t.addEventListener("error",B),void t.send(JSON.stringify(c))}eI.httpAPICall(o+"/"+x,{verb:"POST",async:r,withCredentials:d,body:c,success:function(A){eI.log("Destroyed session:"),eI.debug(A),x=null,E=!1,"success"!==A.rtcgw&&eI.error("Ooops: "+A.error.code+" "+A.error.reason),a.success(),s&&e.destroyed()},error:function(A,t){eI.error(A+":",t),x=null,E=!1,a.success(),s&&e.destroyed()}})}(a)},this.attach=function(e){!function(e){if(e=e||{},e.success="function"==typeof e.success?e.success:eI.noop,e.error="function"==typeof e.error?e.error:eI.noop,e.consentDialog="function"==typeof e.consentDialog?e.consentDialog:eI.noop,e.iceState="function"==typeof e.iceState?e.iceState:eI.noop,e.mediaState="function"==typeof e.mediaState?e.mediaState:eI.noop,e.webrtcState="function"==typeof e.webrtcState?e.webrtcState:eI.noop,e.slowLink="function"==typeof e.slowLink?e.slowLink:eI.noop,e.onmessage="function"==typeof e.onmessage?e.onmessage:eI.noop,e.onlocalstream="function"==typeof e.onlocalstream?e.onlocalstream:eI.noop,e.onremotestream="function"==typeof e.onremotestream?e.onremotestream:eI.noop,e.ondata="function"==typeof e.ondata?e.ondata:eI.noop,e.ondataopen="function"==typeof e.ondataopen?e.ondataopen:eI.noop,e.oncleanup="function"==typeof e.oncleanup?e.oncleanup:eI.noop,e.ondetached="function"==typeof e.ondetached?e.ondetached:eI.noop,!E)return eI.warn("Is the server down? (connected=false)"),void e.error("Is the server down? (connected=false)");var i=e.plugin;if(null==i)return eI.error("Invalid plugin"),void e.error("Invalid plugin");var n=e.opaqueId,a=e.token?e.token:C,r=eI.randomString(12),s={rtcgw:"attach",plugin:i,opaque_id:n,transaction:r};null!=a&&(s.token=a);null!=h&&(s.apisecret=h);if(A)return y[r]=function(A){if(eI.debug(A),"success"!==A.rtcgw)return eI.error("Ooops: "+A.error.code+" "+A.error.reason),void e.error("Ooops: "+A.error.code+" "+A.error.reason);var t=A.data.id;eI.log("Created handle: "+t);var n={session:p,plugin:i,id:t,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return t},getPlugin:function(){return i},getVolume:function(){return G(t,!0)},getRemoteVolume:function(){return G(t,!0)},getLocalVolume:function(){return G(t,!1)},isAudioMuted:function(){return Y(t,!1)},muteAudio:function(){return U(t,!1,!0)},unmuteAudio:function(){return U(t,!1,!1)},isVideoMuted:function(){return Y(t,!0)},muteVideo:function(){return U(t,!0,!0)},unmuteVideo:function(){return U(t,!0,!1)},getBitrate:function(){return J(t)},send:function(e){w(t,e)},data:function(e){R(t,e)},dtmf:function(e){k(t,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){M(t,!0,e)},createAnswer:function(e){M(t,!1,e)},handleRemoteJsep:function(e){L(t,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){K(t,!0===e)},detach:function(e){P(t,e)}};Q[t]=n,e.success(n)},s.session_id=x,void t.send(JSON.stringify(s));eI.httpAPICall(o+"/"+x,{verb:"POST",withCredentials:d,body:s,success:function(A){if(eI.debug(A),"success"!==A.rtcgw)return eI.error("Ooops: "+A.error.code+" "+A.error.reason),void e.error("Ooops: "+A.error.code+" "+A.error.reason);var t=A.data.id;eI.log("Created handle: "+t);var n={session:p,plugin:i,id:t,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return t},getPlugin:function(){return i},getVolume:function(){return G(t,!0)},getRemoteVolume:function(){return G(t,!0)},getLocalVolume:function(){return G(t,!1)},isAudioMuted:function(){return Y(t,!1)},muteAudio:function(){return U(t,!1,!0)},unmuteAudio:function(){return U(t,!1,!1)},isVideoMuted:function(){return Y(t,!0)},muteVideo:function(){return U(t,!0,!0)},unmuteVideo:function(){return U(t,!0,!1)},getBitrate:function(){return J(t)},send:function(e){w(t,e)},data:function(e){R(t,e)},dtmf:function(e){k(t,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){M(t,!0,e)},createAnswer:function(e){M(t,!1,e)},handleRemoteJsep:function(e){L(t,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){K(t,!0===e)},detach:function(e){P(t,e)}};Q[t]=n,e.success(n)},error:function(e,A){eI.error(e+":",A)}})}(e)}}eI.useDefaultDependencies=function(e){var A=e&&e.fetch||fetch,t=e&&e.Promise||Promise,i=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,A){return new i(e,A)},extension:e&&e.extension||$d,isArray:function(e){return Array.isArray(e)},webRTCAdapter:e&&e.adapter||window.adapter,httpAPICall:function(e,i){var n={method:i.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};"POST"===i.verb&&(n.headers["Content-Type"]="application/json"),void 0!==i.withCredentials&&(n.credentials=!0===i.withCredentials?"include":i.withCredentials?i.withCredentials:"omit"),void 0!==i.body&&(n.body=JSON.stringify(i.body));var a=A(e,n).catch((function(e){return t.reject({message:"Probably a network error, is the server down?",error:e})}));if(void 0!==i.timeout){var r=new t((function(e,A){var t=setTimeout((function(){return clearTimeout(t),A({message:"Request timed out",timeout:i.timeout})}),i.timeout)}));a=t.race([a,r])}return a.then((function(e){return e.ok?qd(i.success)===qd(eI.noop)?e.json().then((function(e){i.success(e)})).catch((function(A){return t.reject({message:"Failed to parse response body",error:A,response:e})})):void 0:t.reject({message:"API call failed",response:e})})).catch((function(e){qd(i.error)===qd(eI.noop)&&i.error(e.message||"<< internal error >>",e)})),a}}},eI.useOldDependencies=function(e){var A=e&&e.jQuery||jQuery,t=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,A){return new t(e,A)},isArray:function(e){return A.isArray(e)},extension:e&&e.extension||$d,webRTCAdapter:e&&e.adapter||adapter,httpAPICall:function(e,t){var i=void 0!==t.body?{contentType:"application/json",data:JSON.stringify(t.body)}:{},n=void 0!==t.withCredentials?{xhrFields:{withCredentials:t.withCredentials}}:{};return A.ajax(A.extend(i,n,{url:e,type:t.verb,cache:!1,dataType:"json",async:t.async,timeout:t.timeout,success:function(e){qd(t.success)===qd(eI.noop)&&t.success(e)},error:function(e,A,i){qd(t.error)===qd(eI.noop)&&t.error(A,i)}}))}}},eI.noop=function(){},eI.dataChanDefaultLabel="JanusDataChannel",eI.endOfCandidates=null,eI.init=function(e){if((e=e||{}).callback="function"==typeof e.callback?e.callback:eI.noop,!0===eI.initDone)e.callback();else{if("undefined"!=typeof console&&void 0!==console.log||(console={log:function(){}}),eI.trace=eI.noop,eI.debug=eI.noop,eI.vdebug=eI.noop,eI.log=eI.noop,eI.warn=eI.noop,eI.error=eI.noop,!0===e.debug||"all"===e.debug)eI.trace=console.trace.bind(console)||eI.noop,eI.debug=console.debug.bind(console)||eI.noop,eI.vdebug=console.debug.bind(console)||eI.noop,eI.log=console.log.bind(console)||eI.noop,eI.warn=console.warn.bind(console)||eI.noop,eI.error=console.error.bind(console)||eI.noop;else if(Array.isArray(e.debug))for(var A in e.debug){switch(e.debug[A]){case"trace":eI.trace=console.trace.bind(console)||eI.noop;break;case"debug":eI.debug=console.debug.bind(console)||eI.noop;break;case"vdebug":eI.vdebug=console.debug.bind(console)||eI.noop;break;case"log":eI.log=console.log.bind(console)||eI.noop;break;case"warn":eI.warn=console.warn.bind(console)||eI.noop;break;case"error":eI.error=console.error.bind(console)||eI.noop}}var t=e.dependencies||eI.useDefaultDependencies();eI.isArray=t.isArray,eI.webRTCAdapter=t.webRTCAdapter,eI.httpAPICall=t.httpAPICall,eI.newWebSocket=t.newWebSocket,eI.extension=t.extension,eI.extension.init(),eI.listDevices=function(e,A){e="function"==typeof e?e:eI.noop,null==A&&(A={audio:!0,video:!0}),eI.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(A).then((function(A){navigator.mediaDevices.enumerateDevices().then((function(t){eI.debug(t),e(t);try{var i=A.getTracks();for(var n in i){var a=i[n];null!=a&&a.stop()}}catch(e){}}))})).catch((function(A){eI.error(A),e([])})):(eI.warn("navigator.mediaDevices unavailable"),e([]))},eI.attachMediaStream=function(e,A){"chrome"===eI.webRTCAdapter.browserDetails.browser?eI.webRTCAdapter.browserDetails.version>=52?e.srcObject=A:eI.error("Error attaching stream to element"):e.srcObject=A},eI.reattachMediaStream=function(e,A){"chrome"===eI.webRTCAdapter.browserDetails.browser?eI.webRTCAdapter.browserDetails.version>=52?e.srcObject=A.srcObject:void 0!==e.src?e.src=A.src:eI.error("Error reattaching stream to element"):e.srcObject=A.srcObject};var i=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0?"pagehide":"beforeunload",n=window["on"+i];if(window.addEventListener(i,(function(e){for(var A in eI.log("Closing window"),eI.sessions)null!==eI.sessions[A]&&void 0!==eI.sessions[A]&&eI.sessions[A].destroyOnUnload&&(eI.log("Destroying session "+A),eI.sessions[A].destroy({asyncRequest:!1,notifyDestroyed:!1}));n&&"function"==typeof n&&n()})),eI.safariVp8=!1,"safari"===eI.webRTCAdapter.browserDetails.browser&&eI.webRTCAdapter.browserDetails.version>=605)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){for(var A in RTCRtpSender.getCapabilities("video").codecs){var a=RTCRtpSender.getCapabilities("video").codecs[A];if(a&&a.mimeType&&"video/vp8"===a.mimeType.toLowerCase()){eI.safariVp8=!0;break}}eI.safariVp8?eI.log("This version of Safari supports VP8"):eI.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var r=new RTCPeerConnection({},{});r.createOffer({offerToReceiveVideo:!0}).then((function(e){eI.safariVp8=-1!==e.sdp.indexOf("VP8"),eI.safariVp8?eI.log("This version of Safari supports VP8"):eI.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),r.close(),r=null}))}if(eI.unifiedPlan=!1,"firefox"===eI.webRTCAdapter.browserDetails.browser&&eI.webRTCAdapter.browserDetails.version>=59)eI.unifiedPlan=!0;else if("chrome"===eI.webRTCAdapter.browserDetails.browser&&eI.webRTCAdapter.browserDetails.version<72)eI.unifiedPlan=!1;else if("undefined"==typeof RTCRtpTransceiver||"currentDirection"in RTCRtpTransceiver.prototype){var o=new RTCPeerConnection;try{o.addTransceiver("audio"),eI.unifiedPlan=!0}catch(e){}o.close()}else eI.unifiedPlan=!1;eI.initDone=!0,e.callback()}},eI.isWebrtcSupported=function(){return void 0!==window.RTCPeerConnection&&null!==window.RTCPeerConnection},eI.isGetUserMediaAvailable=function(){return void 0!==navigator.mediaDevices&&null!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia&&null!==navigator.mediaDevices.getUserMedia},eI.randomString=function(e){for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",i=0;i-1&&(window.EZUIKit.opt.talkType="gb28181"),e&&e(n.ttsUrl.indexOf("gb28181")>-1||-1!==window.EZUIKit.opt.deviceSerial.indexOf(":")),window.EZUIKit.opt.stream=A.jSPlugin.accessToken?n.stream:A.jSPlugin.token.streamToken.talk,window.startTalk({customizeStream:t._customizeStream.bind(t),audio:!A.microphoneId||{deviceId:A.microphoneId}}),A.observeVolumeChange(),A.jSPlugin.eventEmitter&&A.jSPlugin.eventEmitter.emit("startTalk",{eventType:"startTalk",code:0,target:A,msg:"开启对讲"})}}else A.pluginStatus.loadingSetText({text:i.msg||A.jSPlugin.i18n.t("38"+i.code),color:"red",delayClear:2e3}),A.jSPlugin.eventEmitter&&A.jSPlugin.eventEmitter.emit("startTalk",{eventType:"startTalk",code:-1,target:A,msg:i.msg||A.jSPlugin.i18n.t("38"+i.code)}),"function"==typeof A.jSPlugin.params.handleError&&A.jSPlugin.params.handleError({msg:i.msg||A.jSPlugin.i18n.t("38"+i.code),retcode:i.code,id:A.jSPlugin.params.id,type:"handleError"})})).catch((function(e){}))})).catch((function(e){}))}},A.stopTalk=function(){var e=this;try{window.stopTalk()}catch(e){var A,t,i,n;null==(t=this.jSPlugin)||null==(A=t.logger)||A.error(nI,"[errors]","stopTalk error:",e),null==(n=this.jSPlugin)||null==(i=n.eventEmitter)||i.emit(dd.stopTalk,{eventType:dd.stopTalk,code:-1,msg:"结束对讲"})}this.gainNode=null,this.volumeChangeInterval&&(clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=null),this.jSPlugin.eventEmitter&&setTimeout((function(){var A;null==(A=e.jSPlugin.eventEmitter)||A.emit(dd.volumeChange,{eventType:dd.volumeChange,code:0,target:e,data:0,msg:"音量变化"})}),200);var a,r=document.getElementById("myaudio");r&&r.srcObject&&(r.srcObject.getTracks()[0].stop(),null==(a=this.jSPlugin.eventEmitter)||a.emit(dd.stopTalk,{eventType:dd.stopTalk,code:0,target:this,msg:"结束对讲"}))},A.changeTalkChannelNo=function(e){window.EZUIKit.opt&&window.EZUIKit.opt.channelNo&&(this.talkChannelNo=e,window.EZUIKit.opt.channelNo=e)},A._customizeStream=function(e){var A=this;return new Promise((function(t,i){var n=new window.AudioContext;A.gainNode=n.createGain();var a,r=n.createMediaStreamSource(e);A.gainNode.gain.value=null!=(a=A.volumeGain)?a:1;var o=n.createMediaStreamDestination();r.connect(A.gainNode),A.gainNode.connect(o),t(o.stream)}))},A.setVolumeGain=function(e){var A=["",null].includes(e)?1:Number(e);return"number"==typeof A&&A>=0?(this.volumeGain=Math.min(A,10),this.gainNode&&(this.gainNode.gain.value=this.volumeGain),{code:0,msg:"成功",res:null}):{code:-1,msg:"参数格式有误",res:null}},A.observeVolumeChange=function(e){var A=this;void 0===e&&(e={});var t=e.interval,i=void 0===t?100:t;this.volumeChangeInterval&&(clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=null),this.volumeChangeInterval=setInterval((function(){var e,t,i,n,a;null==(a=window.tts)||null==(n=a.webrtcStuff)||null==(i=n.pc)||null==(t=i.getStats)||null==(e=t.call(i))||e.then((function(e){e.forEach((function(e){var t,i;"media-source"===e.type&&(null==(i=A.jSPlugin)||null==(t=i.eventEmitter)||t.emit("volumeChange",{eventType:"volumeChange",code:0,target:A,data:e.audioLevel,msg:"音量变化"}))}))}))}),i)},A.getMicrophonePermission=function(){return new Promise((function(e,A){navigator.mediaDevices.getUserMedia({audio:!0}).then((function(A){A.getTracks().forEach((function(e){e.stop()})),e({code:0,msg:"成功",res:null})})).catch((function(A){e({code:-1,msg:"获取麦克风权限失败",res:A})}))}))},A.getMicrophonesList=function(){return new Promise((function(e,A){navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then((function(A){var t=[];A.map((function(e){"audioinput"==e.kind&&t.push(e)})),e({code:0,msg:"成功",res:t})})):e({code:-1,msg:"未查询到相关设备",res:null})}))},A.setProfile=function(e){var A=this,t=e.microphoneId;t!==this.microphoneId&&(this.microphoneId=t,this.gainNode&&(window.stopTalk(),setTimeout((function(){window.startTalk({customizeStream:A._customizeStream.bind(A),audio:!A.microphoneId||{deviceId:A.microphoneId}})}),200)))},e}(),rI=function(){function e(e,A){this.jSPlugin=e,this.isMobile=A,this.timer=null,this.initToastCustom()}var A=e.prototype;return A.initToastCustom=function(){document.getElementById(this.jSPlugin.id+"-wrap-Toast-custom")?document.getElementById(this.jSPlugin.id+"-wrap-Toast-custom").style.display="none":this.randerToast()},A.randerToast=function(){var e=this.jSPlugin.width,A=1;A=this.isMobile?e/375||1:e/1024||1;var t=document.getElementById(this.jSPlugin.id+"-wrap"),i=document.createElement("div");i.style="display:none;position:absolute;top:0;width: 100%;align-items: center;justify-content: center;",i.id=this.jSPlugin.id+"-wrap-Toast-custom",this.isMobile?i.innerHTML='
\n
\n ':i.innerHTML='
\n
\n ',t.insertBefore(i,document.getElementById(this.jSPlugin.id))},A.initToastContent=function(e,A){var t=this;void 0===A&&(A=2e3),this.timer=null,document.getElementById(this.jSPlugin.id+"-wrap-Toast-custom")?(document.getElementById(this.jSPlugin.id+"-wrap-Toast-custom").style.display="flex",document.getElementById(this.jSPlugin.id+"-wrap-Toast-custom-content").innerText=e||"",this.timer=setTimeout((function(){document.getElementById(t.jSPlugin.id+"-wrap")&&document.getElementById(t.jSPlugin.id+"-wrap-Toast-custom")&&document.getElementById(t.jSPlugin.id+"-wrap").removeChild(document.getElementById(t.jSPlugin.id+"-wrap-Toast-custom"))}),A)):(this.randerToast(),this.initToastContent(e))},e}(),oI=function(e,A,t,i,n,a){void 0===A&&(A="GET"),void 0===t&&(t={}),void 0===a&&(a={});var r={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},o="";r=Object.assign(r,a);var s=new Headers;Object.keys(r).map((function(e){s.append(e,r[e])})),r=s,Object.keys(Object.assign({},t)).forEach((function(e){var A=t[e];"string"==typeof t[e]&&(A=t[e].replace("%","%25")),void 0!==t[e]&&(o+="&"+e+"="+encodeURIComponent(A))})),o.length>0&&(o=-1!==["GET","PUT","DELETE"].indexOf(A.toUpperCase())?"?"+o.slice(1):o.slice(1));var g=e+(-1!==["GET","PUT","DELETE"].indexOf(A.toUpperCase())?o:""),l={headers:r,method:A};"POST"===A&&(l.body=o),"POST"===A&&a&&"application/json"===a["Content-Type"]&&(l.body=JSON.stringify(t)),"GET"===A&&(-1===g.indexOf("?")?g+="?_r="+Math.random():g+="&_r="+Math.random()),fetch(g,l).then((function(e){var A=e.headers.get("content-type");return A&&-1!==A.indexOf("application/json")?e.json():e.text()})).then((function(e){i&&i(e)})).catch((function(e){n&&n(e)}))},sI=function(e,A,t){var i=new FormData;i.append("deviceSerial",g(e.url).deviceSerial),i.append("cmd","open"),fetch(domain+"/api/v3/device/acs/remote/door?accessToken="+(e.accessToken||e.token.deviceToken.globalAll),{method:"POST",body:i}).then((function(e){return e.json()})).then((function(e){A(e)})).catch((function(e){t(e)}))},gI=function(e,A,t){var i={accessToken:e.accessToken||e.token.httpToken.url,pageStart:0,pageSize:4,default:!0,voiceName:"轻应用语音文件"},n=e.env.domain+"/api/lapp/voice/query";oI(n,"POST",i,(function(e){A(e)}),(function(e){t(e)}),{"Content-Type":"application/x-www-form-urlencoded"})},lI=function(e,A,t,i){var n=e.env.domain+"/api/lapp/voice/send",a=new FormData;a.append("deviceSerial",g(e.url).deviceSerial),a.append("accessToken",e.accessToken||e.token.deviceToken.video),a.append("channelNo",g(e.url).channelNo||1),a.append("fileUrl",A),fetch(n,{method:"POST",body:a}).then((function(e){return e.json()})).then((function(e){!function(e){t(e)}(e)})).catch((function(e){i(e)}))},cI=function(){function e(e,A){this.jSPlugin=e,this.videoWidth=e.width,this.switchFooter=A,this.sendLoadingStats=!1,this.toastCustom=new rI(e,!1),this.quickReplyList=["你好,请将快递放在门口","你好,稍等","你好,请将快递放入小区快递柜","你好,请将外卖放在门口"],this.initQuickReply()}var A=e.prototype;return A.initQuickReply=function(){document.getElementById("pc-quickReply-back")||this.renderQuickReply(),document.getElementById("pc-quickReply-back-item-0")||this.getQuickReplyList()},A.renderQuickReply=function(){var e=this,A=this.videoWidth/1024||1,t=document.createElement("div");t.style="width:100%;",t.innerHTML='
\n
\n
\n \n 返回\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n 返回\n
\n
\n \n \n
',document.getElementById(this.jSPlugin.id+"-audioControls-quickReply").appendChild(t),document.getElementById("pc-quickReply-back").onclick=function(){e.switchFooter("onBell")}},A.matchQuickReplyBtn=function(){var e=this,A=this.videoWidth/1024||1,t=document.getElementById("pc-quickReply-content");this.quickReplyList&&this.quickReplyList.length>0&&this.quickReplyList.forEach((function(i,n){var a=document.createElement("div");a.id="pc-quickReply-back-item-"+n,a.style="margin: "+8*A+"px 0 "+8*A+"px "+8*A+"px;cursor: pointer;\n padding: 0 "+20*A+"px;min-height: "+64*A+"px;width:calc(50% - "+16*A+"px);\n display: inline-block;background: rgba(0,0,0,0.70);border-radius: 8px;text-align: center;\n box-sizing: border-box;font-size:"+24*A+"px;color: rgba(255,255,255,0.90);",a.innerHTML='
\n '+i.voiceName+"\n
",a.onclick=function(){e.sendLoadingStats||e.sendQuickReply(i,n)},t.appendChild(a)}))},A.setBtnCheckLoading=function(e,A){var t=this.videoWidth/1024||1;if(A>-1){document.getElementById("pc-quickReply-back-item-"+A);var i=document.getElementById("pc-quickReply-back-item-box-"+A),n=document.getElementById("pc-quickReply-name-"+A);if(1==e){var a=document.getElementById("pc-quickReply-icon-loading-"+A);a&&n&&i.removeChild(a)}else if(n){var r=document.createElement("span");r.id="pc-quickReply-icon-loading-"+A,r.style="vertical-align: middle;margin-right:"+16*t+"px;",r.innerHTML='',i.insertBefore(r,n)}}},A.getQuickReplyList=function(){var e=this;this.madeLoadingDom(0);gI(this.jSPlugin,(function(A){if(A&&200==A.code){var t=A.data||[],i=[];A.data.forEach((function(e,A){i=e.voiceName.split("_"),t[A].voiceName=i[1]})),e.quickReplyList=t,setTimeout((function(){e.madeLoadingDom(2)}),500)}else e.madeLoadingDom(1)}),(function(A){e.madeLoadingDom(1)}))},A.madeLoadingDom=function(e){var A=this,t=this.videoWidth/1024||1;if(0==e){if(document.getElementById("pc-quickReply-content").style.display="none",document.getElementById("pc-quickReply-loaderror").style.display="none",document.getElementById("pc-quickReply-loading").style.display="block",!document.getElementById("pc-quickReply-loading-box")){var i=document.createElement("div");i.id="pc-quickReply-loading-box",i.style="width: 100%;display: flex;align-items: center;justify-content: center;flex-direction: column;",i.innerHTML='
\n \n
\n
加载中…
',document.getElementById("pc-quickReply-loading").appendChild(i)}}else if(1==e){if(document.getElementById("pc-quickReply-content").style.display="none",document.getElementById("pc-quickReply-loading").style.display="none",document.getElementById("pc-quickReply-loaderror").style.display="block",!document.getElementById("pc-quickReply-loaderror-box")){var n=document.createElement("div");n.id="pc-quickReply-loaderror-box",n.style="width: 100%;display: flex;align-items: center;justify-content: center;flex-direction: column;",n.innerHTML='
快速回复加载失败
\n
重新加载
',document.getElementById("pc-quickReply-loaderror").appendChild(n),document.getElementById("pc-quickReply-loaderror-reload").onclick=function(){A.getQuickReplyList()}}}else document.getElementById("pc-quickReply-loading").style.display="none",document.getElementById("pc-quickReply-loaderror").style.display="none",document.getElementById("pc-quickReply-content").style.display="block",this.matchQuickReplyBtn()},A.sendQuickReply=function(e,A){var t=this;this.sendLoadingStats=!0,this.setBtnCheckLoading(0,A);lI(this.jSPlugin,e.fileUrl,(function(e){t.sendLoadingStats=!1,t.setBtnCheckLoading(1,A),e&&200==e.code?t.toastCustom.initToastContent("快捷回复成功"):t.toastCustom.initToastContent("快捷回复失败,请重试"),t.switchFooter("onBell")}),(function(e){t.sendLoadingStats=!1,t.setBtnCheckLoading(1,A),t.toastCustom.initToastContent("快捷回复失败,请重试"),t.switchFooter("onBell")}))},e}(),dI=function(){function e(e,A){this.jSPlugin=e,this.videoWidth=e.width,this.switchFooter=A,this.toastCustom=new rI(e,!1),this.lockStatus=!1,this.initRemoteUnlock()}var A=e.prototype;return A.initRemoteUnlock=function(){document.getElementById("pc-remoteUnlock-back")?this.madeSlideEvent():this.renderRemoteUnlock()},A.renderRemoteUnlock=function(){var e=this,A=this.videoWidth/1024||1,t=document.createElement("div");t.style="width:100%;",t.id="pc-remoteUnlock-box",t.innerHTML='
\n
\n
\n \n 返回\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n 返回\n
\n
\n
',document.getElementById(this.jSPlugin.id+"-audioControls-remoteUnlock").appendChild(t),document.getElementById("pc-remoteUnlock-back").onclick=function(){e.goback()},this.renderRemoteUnlockSlide()},A.renderRemoteUnlockSlide=function(){var e=this.videoWidth/1024||1,A=document.getElementById("pc-remoteUnlock-content"),t=document.createElement("div");t.id="pc-remoteUnlock-content-slide",t.style="width: 100%;display: flex;justify-content: center;cursor: pointer;",t.innerHTML='
\n
\n
右滑开锁
\n
\n \n \n \n \n \n \n \n \n \n
\n
',A.appendChild(t),this.madeSlideEvent()},A.getOffsetLeft=function(e){var A=0;do{A+=e.offsetLeft,e=e.parentNode}while(e.parentNode);return A},A.madeSlideEvent=function(){var e=this.videoWidth/1024||1,A=document.getElementById(""+this.jSPlugin.id),t=this.getOffsetLeft(A),i=document.getElementById("pc-remoteUnlock-slide-box"),n=document.getElementById("pc-remoteUnlock-slide-bgColor"),a=document.getElementById("pc-remoteUnlock-slide-tips"),r=document.getElementById("pc-remoteUnlock-slide-ball"),o=this;r.onmousedown=function(A){var s=(A=A||window.event).offsetX;r.style.transition="",n.style.transition="",document.onmouseup=function(){o.lockStatus||(n.style.width="0px",r.style.left=8*e+"px",r.style.transition="left 0.6s linear",n.style.transition="width 0.6s linear"),document.onmouseup=null,document.onmousemove=null},document.onmousemove=function(A){var g=(A=A||window.event).pageX-i.offsetLeft-s-t,l=i.clientWidth-r.clientWidth-8*e;g<=0&&(g=0),g>=l&&(g=l),r.style.left=g+"px",g!=l||o.lockStatus||o.lockStatus||(o.lockStatus=!0,document.getElementById("slide-ball-start").style.display="none",document.getElementById("slide-ball-end").style.display="inline",n.style.width=i.clientWidth+"px",n.style.backgroundColor="#598FFF",i.style.border="0",r.style.backgroundColor="#ffffff",a.textContent="正在开锁",r.onmousedown=null,document.onmousemove=null,o.sendRemoteUnlockApi())}}},A.resetRemoteUnlockSlide=function(){var e=document.getElementById("pc-remoteUnlock-box"),A=document.getElementById(this.jSPlugin.id+"-audioControls-remoteUnlock");e&&A&&A.removeChild(e)},A.sendRemoteUnlockApi=function(){var e=this;sI(this.jSPlugin,(function(A){A&&200==A.code?e.toastCustom.initToastContent("开锁成功"):e.toastCustom.initToastContent("开锁失败,请重试"),e.goback()}),(function(A){e.toastCustom.initToastContent("开锁失败,请重试"),e.goback()}))},A.goback=function(){this.switchFooter("onCall"),this.resetRemoteUnlockSlide()},e}(),II={customConfig:{defaultMicro:0,defaultPlay:0,maxTalkTime:0,bellPoster:0,maxBellTime:0},header:{onBell:{color:"#2c2c2c",backgroundColor:"#00000000 linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.00) 100%)",activeColor:"#1890FF",autoFocus:0,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-0",iconId:"ringStatus",part:"left",defaultActive:0,isrender:1,color:"#ffffff",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-1",iconId:"deviceCategory",part:"left",defaultActive:0,isrender:1,color:"#ffffff",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"}]},onCall:{color:"#2c2c2c",backgroundColor:"#00000000",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-0",iconId:"callStatus",part:"left",defaultActive:0,isrender:1,color:"#ffffff",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-1",iconId:"deviceCategory",part:"left",defaultActive:0,isrender:1,color:"#ffffff",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"}]}},footer:{onBell:{color:"#ffffff",backgroundColor:"#00000000",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-0",iconId:"quickReply",part:"left",defaultActive:1,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-1",iconId:"rejection",part:"left",defaultActive:0,isrender:1,color:"#2C2C2C",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-2",iconId:"answer",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-3",iconId:"remoteUnlock",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"}]},onCall:{color:"#2c2c2c",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-0",iconId:"mute",part:"left",defaultActive:1,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-1",iconId:"hangUp",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-2",iconId:"remoteUnlock",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"}]}}},CI=ad,hI=function(){function e(A){return e.instant?e.instant:(CI=A||CI,e.instant=this)}var A=e.prototype;return A.setDomain=function(e){CI=e||CI},A.fetch=function(e,A){return e="string"==typeof e?/^http/.test(e)?e:CI+e:e,new Promise((function(t,i){fetch(e,A).then((function(e){try{return e.json()}catch(e){i({code:-1,msg:"data json parse error"})}})).then((function(e){200==+e.code||e.meta&&200===e.meta.code?t(e):i(e)})).catch((function(e){i(e)}))}))},e}();function uI(e){var A=new hI,t=new FormData;for(var i in e)t.append(i,e[i]);return A.fetch("/api/lapp/device/info",{method:"POST",body:t})}var BI=function(e){var A="";return Object.keys(e).map((function(t,i){A+=t+":"+e[t]+(i\n \n ',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(o)}if(1!=this.themeData.customConfig.bellPoster||i)document.getElementById("bellring-icon")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon"));else{var s=(this.videoHeight-180*n)/2,g=document.createElement("div");g.id="bellring-icon",g.style="position: absolute;pointer-events: none;background: none;width: 100%;\n position: absolute;top: "+s+"px;display: flex;align-items: center;justify-content: center;",g.innerHTML='
\n
\n \n icon/响铃\n \n \n \n \n \n
\n
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(g),t&&"onBell"==this.bellStatus&&this.jSPlugin.pause()}setTimeout((function(){var A=e.decoderState.state,t=A.isEditing,i=A.rejection;"onBell"!=e.bellStatus||i||(e.removeBellRing(),t||e.answerOvertime())}),this.maxBellTime)}},A.removeBellRing=function(){document.getElementById("bellring")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring")),document.getElementById("bellring-icon")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon"))},A.matchBtn=function(e,A){var t=this,i=this.themeData,n=i.header,a=i.footer,r=this.decoderState.state,o=r.mute,s=r.rejection,g={title:"",id:"",domString:"",color:"#FFFFFF",activeColor:"#FFFFFF",onclick:function(){},onmoveleft:function(){},onmoveright:function(){},onremove:function(){}};-1===n[this.bellStatus].btnList.findIndex((function(A){return A.iconId===e}))?(g.color=a[this.bellStatus].color,g.backgroundColor=a[this.bellStatus].backgroundColor,g.activeColor=a[this.bellStatus].activeColor):(g.color=n[this.bellStatus].color,g.backgroundColor=n[this.bellStatus].backgroundColor,g.activeColor=n[this.bellStatus].activeColor);var l=this.videoWidth/6;this.videoWidth;var c=this.videoWidth/1024||1;switch(e){case"ringStatus":return g.title=this.activeThemeStatus?"有人按门铃":this.activeThemeStatusTxt,g.id=e,g.domString=''+(this.activeThemeStatus?"有人按门铃":this.activeThemeStatusTxt)+"",g.onclick=function(){},g;case"deviceCategory":return g.title="设备名称",g.id=e,g.domString=''+(this.deviceInfoData&&this.deviceInfoData.deviceName||"设备名称")+"",g.onclick=function(){},g;case"callStatus":return g.title="通话中",g.id=e,g.domString='通话中',g.onclick=function(){},g;case"deviceCategory":return g.title="设备名称",g.id=e,g.domString=''+(this.deviceInfoData&&this.deviceInfoData.deviceName||"设备名称")+"",g.onclick=function(){},g;case"rejection":return g.title="拒绝",g.id=e,g.domString='
\n
\n \n 拒绝\n \n \n \n \n \n
\n
拒绝
\n
',g.onclick=function(){var e=t.decoderState.state,A=e.play,i=e.isEditing,n=e.rejection;if(i||n)return!1;A&&t.jSPlugin.stop(),t.removeBellRing(),t.setDecoderState({play:!1,rejection:!0}),t.rejectionStatusDispose(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("rejection")},g;case"quickReply":return g.title="快捷回复",g.id=e,g.domString='
\n
\n \n 快捷回复\n \n \n \n \n \n
\n
快捷回复
\n
',g.onclick=function(){if(t.decoderState.state.rejection)return!1;t.switchFooter("quickReply"),t.quickReplyEle=new cI(t.jSPlugin,t.switchFooter)},g;case"answer":return g.title="接听",g.id=e,g.domString='
\n
\n \n 接听\n \n \n \n \n \n
\n
接听
\n
',g.onclick=function(){var e=t,i=t.decoderState.state,r=i.play,o=i.isEditing,s=i.talk,g=i.sound,l=i.rejection;if(o||l)return!1;t.jSPlugin.pluginStatus.loadingClear(),r||(t.jSPlugin.pluginStatus.loadingStart(t.jSPlugin.id),t.jSPlugin.pluginStatus.loadingSetText({text:"视频加载中"}),t.jSPlugin.play(),t.setDecoderState({play:!r})),s||1!=t.themeData.customConfig.defaultMicro||(t.setDecoderState({talk:!0,mute:!1}),g&&t.jSPlugin.closeSound(),t.jSPlugin.Talk.startTalk()),t.setDecoderState({sound:!1}),t.bellStatus="onCall",t.switchFooter("onCall"),a[t.bellStatus].btnList.map((function(e,A){e.isrender&&t.renderFooter(e.iconId,e)})),n[t.bellStatus].btnList.map((function(e,A){e.isrender&&t.renderHeader(e.iconId,e)}));var c=document.getElementById(t.jSPlugin.id+"-header-onBell");c&&c.parentElement.removeChild(c),1==t.themeData.customConfig.bellPoster&&(document.getElementById("bellring-icon")&&document.getElementById(t.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon")),t.jSPlugin.setPoster("")),0==t.themeData.customConfig.defaultMicro&&(t.muteCommon(A),t.jSPlugin.openSound()),t.removeBellRing(),t.maxTalkTime=1e3*t.themeData.customConfig.maxTalkTime*60,setTimeout((function(){s&&(e.setDecoderState({talk:!1}),e.jSPlugin.Talk.stopTalk()),r&&(e.jSPlugin.stop(),e.setDecoderState({play:!r})),t.rejectionStatusDispose(),t.remoteUnlockEle&&t.remoteUnlockEle.goback(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("hangUp")}),t.maxTalkTime)},g;case"remoteUnlock":return g.title="远程开锁",g.id=e,g.domString='
\n
\n \n 开锁\n \n \n \n \n \n
\n
远程开锁
\n
',g.onclick=function(){var e=t.decoderState.state,A=e.isEditing,i=e.rejection;if(A||"onBell"==t.bellStatus||i)return!1;t.switchFooter("remoteUnlock"),t.remoteUnlockEle=new dI(t.jSPlugin,t.switchFooter)},g;case"mute":return g.title="静音",g.id=e,g.domString='
\n
\n \n 静音\n \n \n \n \n \n
\n
静音
\n
',g.onclick=function(){var e=t.decoderState.state,i=e.talk,n=e.sound;if(e.play,e.rejection)return!1;i?(t.setDecoderState({talk:!1,mute:!0},A.backgroundColor),t.jSPlugin.Talk.stopTalk(),t.jSPlugin.openSound()):(t.setDecoderState({talk:!0,mute:!1},A.backgroundColor),n&&(t.jSPlugin.closeSound(),t.setDecoderState({sound:!1})),t.jSPlugin.Talk.startTalk())},g;case"hangUp":return g.title="挂断",g.id=e,g.domString='
\n
\n \n 挂断\n \n \n \n \n \n
\n
挂断
\n
',g.onclick=function(){var e=t.decoderState.state,A=e.talk,i=e.play,n=e.sound;if(e.rejection)return!1;A&&(t.setDecoderState({talk:!1}),t.jSPlugin.Talk.stopTalk()),i&&(t.jSPlugin.stop(),t.setDecoderState({play:!i})),n&&(t.jSPlugin.closeSound(),t.setDecoderState({sound:!1})),(i||A)&&(t.removeBellRing(),t.rejectionStatusDispose(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("hangUp"))},g;default:return g}},A.answerOvertime=function(){this.toastCustom.initToastContent("应答超时"),this.decoderState.state.play&&this.jSPlugin.stop(),this.setDecoderState({play:!1,rejection:!0}),this.rejectionStatusDispose(),this.switchFooter("onBell"),"function"==typeof this.jSPlugin.hangUpCallback&&this.jSPlugin.hangUpCallback("rejection")},A.rejectionStatusDispose=function(){var e=this,A=this.themeData.footer,t=document.getElementById(this.jSPlugin.id+"-audioControls"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall"),n=document.getElementById("header-"+this.bellStatus+"-ringStatus");"onBell"==this.bellStatus?(t.innerHTML="",t.style.color="#ffffff"):(i.innerHTML="",i.style.color="#ffffff"),this.setDecoderState({rejection:!0}),A[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)})),n.innerText="通话已结束",this.jSPlugin.pluginStatus.loadingClear(),this.jSPlugin.pluginStatus.loadingSetTextWithBtn({text:"通话已结束",color:"white",isMobile:!1,type:2})},A.userNoDevice=function(){var e=this;this.removeBellRing(),this.setDecoderState({rejection:!0});var A=this.themeData.footer,t=document.getElementById(this.jSPlugin.id+"-audioControls"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall");"onBell"==this.bellStatus?(t.innerHTML="",t.style.color="#ffffff"):(i.innerHTML="",i.style.color="#ffffff"),this.setDecoderState({rejection:!0}),A[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)})),this.jSPlugin.pluginStatus.loadingClear(),this.jSPlugin.pluginStatus.loadingSetTextWithBtn({text:"该用户不拥有该设备",color:"white",isMobile:!1,type:2})},A.renderHeader=function(e,A){var t=this,i=this.videoWidth/1024||1,n=this.matchBtn(e,A);if(document.getElementById(this.jSPlugin.id+"-header-"+this.bellStatus+"-content")){var a=document.createElement("span");a.innerHTML=""+n.domString,document.getElementById(this.jSPlugin.id+"-header-"+this.bellStatus+"-content").appendChild(a)}else{var r=document.createElement("div");r.id=this.jSPlugin.id+"-header-"+this.bellStatus,r.style="max-width:50%;position:relative;",r.innerHTML='\n '+n.domString+"\n ",r.onclick=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onclick(e)},document.getElementById(this.jSPlugin.id+"-headControl").childNodes[0].appendChild(r)}},A.renderFooter=function(e,A){var t=this,i=this.decoderState.state.mute;if("remoteUnlock"==e&&this.jSPlugin.capacity&&(!this.jSPlugin.capacity.support_unlock||0==this.jSPlugin.capacity.support_unlock))return!1;var n=this.matchBtn(e,A),a=this.videoWidth/6,r=document.createElement("div");r.className="theme-icon-item",this.jSPlugin.isWebConsole?r.style="padding:0 "+.1*a+"px;":r.style="padding:0 "+.1*a+"px;cursor: pointer;",r.innerHTML='
'+n.domString+"
",r.onclick=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onclick(e)},n.onmouseenter&&(r.onmouseenter=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onmouseenter(e)}),n.onmouseleave&&(r.onmouseleave=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onmouseleave(e)});var o=this.videoWidth/597,s=document.createElement("span");s.className="icon-move left",s.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',s.onclick=function(){t.editIcon(n.id,"left","footer")},r.appendChild(s);var g=document.createElement("span");if(g.className="icon-move right",g.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',g.onclick=function(){t.editIcon(n.id,"right","footer")},r.appendChild(g),"answer"==e||"rejection"==e||"hangUp"==e);else{var l=document.createElement("span");l.className="icon-move close",l.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',l.onclick=function(){t.editIcon(n.id,"delete","footer")},r.appendChild(l)}"onCall"==this.bellStatus?document.getElementById(this.jSPlugin.id+"-audioControls-onCall").appendChild(r):document.getElementById(this.jSPlugin.id+"-audioControls").appendChild(r),this.decoderState.state.isEditing&&"mute"==e&&"onCall"==this.bellStatus&&(0!=this.themeData.customConfig.defaultMicro||i?this.setDecoderState({mute:!1},A.backgroundColor):this.setDecoderState({mute:!0},A.backgroundColor))},A.switchFooter=function(e){var A={};switch(this.themeData&&(A=this.themeData.footer),e){case"onBell":document.getElementById(this.jSPlugin.id+"-audioControls-quickReply")&&(document.getElementById(this.jSPlugin.id+"-audioControls-quickReply").style.display="none"),document.getElementById(this.jSPlugin.id+"-audioControls-onCall")?"none"==document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.display&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.display="flex"):document.getElementById(this.jSPlugin.id+"-audioControls").style.display="flex";break;case"onCall":document.getElementById(this.jSPlugin.id+"-audioControls-remoteUnlock").style.display="none",document.getElementById(this.jSPlugin.id+"-audioControls").style.display="none",document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.display="flex",this.themeData&&(document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.color=A[this.bellStatus].color);break;case"quickReply":document.getElementById(this.jSPlugin.id+"-audioControls-quickReply").style.display="flex",document.getElementById(this.jSPlugin.id+"-audioControls").style.display="none";break;case"remoteUnlock":document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.display="none",document.getElementById(this.jSPlugin.id+"-audioControls").style.display="none",document.getElementById(this.jSPlugin.id+"-audioControls-remoteUnlock").style.display="flex"}},A.initThemeData=function(){var e=this,A=this.decoderState.state.isEditing,t=this.themeData,i=t.header,n=t.footer,a=this.jSPlugin.id,r=this.videoWidth/1024;if(this.isNeedRenderHeader=Hc(i[this.bellStatus].btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderFooter=Hc(n[this.bellStatus].btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderHeader)if(document.getElementById(this.jSPlugin.id+"-headControl"))document.getElementById(this.jSPlugin.id+"-headControl").innerHTML="
";else{var s=document.createElement("div");s.setAttribute("id",this.jSPlugin.id+"-headControl"),s.setAttribute("class","header-controls"),s.innerHTML="
";var g=.2*this.jSPlugin.height+"px",l={height:g,display:"flex","justify-content":"space-between",top:0,"z-index":999,color:"#FFFFFF",width:"100%",position:"relative","margin-bottom":"-"+g,"align-items":"center",background:"transparent linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.00) 100%)"};s.style=BI(l),document.getElementById(a+"-wrap").insertBefore(s,document.getElementById(a));var c=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(c)}),50)}else document.getElementById(this.jSPlugin.id+"-headControl")&&document.getElementById(this.jSPlugin.id+"-headControl").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-headControl"));var d=.3*this.jSPlugin.height;if(this.isNeedRenderFooter)if(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"))document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop="-"+d+"px","onCall"==this.bellStatus?document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").innerHTML='\n \n \n \n \n ':document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").innerHTML='\n \n \n \n \n ');else{var I=document.createElement("div");I.setAttribute("id",this.jSPlugin.id+"-ez-iframe-footer-container"),I.setAttribute("class","ez-iframe-footer-container");var C={"min-height":d+"px","max-height":d+"px",position:"relative","margin-top":"-"+d+"px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,top:0,color:"#FFFFFF",width:"100%","align-items":"center","background-image":"linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.60) 100%)","font-size":24*r+"px"};I.style=BI(C),I.innerHTML='\n \n \n \n \n ',o(I,document.getElementById(a))}else document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"));if(this.isNeedRenderHeader&&document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-headControl").style.background=i[this.bellStatus].backgroundColor,document.getElementById(this.jSPlugin.id+"-headControl").style.color=i[this.bellStatus].color,i[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderHeader(A.iconId,A)}))),this.isNeedRenderFooter&&document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.background=n[this.bellStatus].backgroundColor,document.getElementById(this.jSPlugin.id+"-audioControls").style.color=n[this.bellStatus].color,n[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)}))),1==this.themeData.customConfig.bellPoster&&!A){this.jSPlugin.poster="https://resource.eziot.com/group1/M00/00/B8/CtwQEmPbGh2AVJB-ABDcYtyw5gk899.svg";var h=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(h),e.jSPlugin.setPoster(e.jSPlugin.poster))}),50)}this.activeThemeStatus&&(this.initBellRing(),window.addEventListener("click",this.autoPlayRing)),this.inited=!0,this.getCallDeviceInfo()},A.renderThemeData=function(){var e=this,A=this.decoderState.state.isEditing,t=this.themeData,i=t.header,n=t.footer;if(this.isNeedRenderHeader&&i&&(document.getElementById(this.jSPlugin.id+"-headControl").style.background=i[this.bellStatus].backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-headControl").style.color=i[this.bellStatus].color.replace("-diy",""),i[this.bellStatus].btnList.map((function(A,t){var i;A.isrender&&e.setDecoderState(((i={})[A.iconId]=e.decoderState.state[A.iconId],i))}))),this.isNeedRenderFooter&&n)document.getElementById(this.jSPlugin.id+"-audioControls").style.background=n[this.bellStatus].backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-audioControls").style.color=n[this.bellStatus].color.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.color=n[this.bellStatus].color.replace("-diy",""),n[this.bellStatus].btnList.map((function(t,i){var n;t.isrender&&e.setDecoderState(((n={})[t.iconId]=e.decoderState.state[t.iconId],n));if(0==i&&!e.themeInited&&e.activeThemeStatus)var a=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(a),1!=e.themeData.customConfig.bellPoster||A?e.jSPlugin.play():e.jSPlugin.pluginStatus.loadingClear(),e.themeInited=!0)}),50)})),-1!==this.jSPlugin.url.indexOf("hd.live")&&this.setDecoderState({hd:!0}),this.themeData.autoFocus>0&&(this.autoFocus=parseInt(this.themeData.autoFocus),this.startAutoFocus(),document.getElementById(this.jSPlugin.id+"-wrap").addEventListener("click",(function(){e.stopAutoFocus()}))),this.setDecoderState({cloudRec:"cloud.rec"===g(this.jSPlugin.url).type,rec:"rec"===g(this.jSPlugin.url).type,type:g(this.jSPlugin.url).type});else if(!this.themeInited&&this.activeThemeStatus)var a=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(a),e.themeData&&e.themeData.customConfig&&1==e.themeData.customConfig.bellPoster&&!A?e.jSPlugin.pluginStatus.loadingClear():e.jSPlugin.play(),e.themeInited=!0)}),50);var r=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(r),e.jSPlugin.reSize(e.jSPlugin.params.width,e.jSPlugin.params.height))}),50)},A.setThemeData=function(e,A){this.themeData=e,"onCall"==A&&(this.bellStatus="onCall")},A.startAutoFocus=function(){var e=this,A=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout((function(){document.getElementById(e.jSPlugin.id+"-audioControls")&&(document.getElementById(e.jSPlugin.id+"-audioControls").style.opacity=0,document.getElementById(e.jSPlugin.id+"-audioControls").style.pointerEvents="none")}),1e3*A)},A.stopAutoFocus=function(){document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.opacity=1,document.getElementById(this.jSPlugin.id+"-audioControls").style.pointerEvents="all"),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.startAutoFocus()},A.editIcon=function(e,A,t){var i=this.themeData,n=this.themeData[t][this.bellStatus].btnList,a=Hc(n,(function(A){return A.iconId===e})),r=n[a];switch(A){case"delete":n[a].isrender=0;break;case"right":for(var o=-1,s=a+1;s=0;l--)if(n[l].part===n[a].part&&1==n[l].isrender){g=l;break}-1!==g&&(n[a]=n[g],n[g]=r)}i[t][this.bellStatus].btnList=n,this.jSPlugin.Theme.changeTheme(i)},A.countTime=function(e,A){void 0===A&&(A=0);var t=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var i=document.createElement("div");i.id=this.jSPlugin.id+"time-area",i.className="time-area",i.innerHTML='00:00',document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").appendChild(i)}if(this.countTimer&&clearInterval(this.countTimer),"add"===e){var n=A;document.getElementById(t.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval((function(){++n,document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML=function(e){var A=parseInt(e),t=0,i=0,n="00",a="00",r="00";A>59&&(t=parseInt(A/60),A=parseInt(A%60),t>59&&(i=parseInt(t/60),t=parseInt(t%60)));return n=parseInt(A)>9?parseInt(A):"0"+parseInt(A),a=parseInt(t)>9?parseInt(t):"0"+parseInt(t),r=parseInt(i)>9?parseInt(i):"0"+parseInt(i),i>0?r+":"+a+":"+n:t>0?a+":"+n:"00:"+n}(n)}),1e3)}else"destroy"===e&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(t.jSPlugin.id+"time-area")&&(document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(t.jSPlugin.id+"time-area").style.display="none"))},A.editStart=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-audioControls-onCall");document.getElementById(this.jSPlugin.id+"-headControl"),A&&A.setAttribute("class","footer-controls themeEditing"),t&&t.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})},A.editEnd=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-headControl"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall");t&&t.setAttribute("class","header-controls"),A&&A.setAttribute("class","footer-controls"),i&&i.setAttribute("class","footer-controls")},A.fetchThemeData=function(e){var A=this;Gd(this.jSPlugin,e,(function(e){0==e.meta.code&&e.data?(A.activeThemeStatus=!0,A.themeData=e.data,e.data.header&&(A.themeData.header=e.data.header,A.themeData.header[A.bellStatus].btnList=A.themeData.header[A.bellStatus].btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),e.data.footer&&(A.themeData.footer=e.data.footer,A.themeData.footer[A.bellStatus].btnList=A.themeData.footer[A.bellStatus].btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),A.jSPlugin.capacity?(A.initThemeData(),A.renderThemeData()):setTimeout((function(){A.initThemeData(),A.renderThemeData()}),300)):(A.activeThemeStatus=!1,A.jSPlugin.pluginStatus.loadingClear(),A.setDecoderState({rejection:!0}),"111021"==e.meta.code?(A.jSPlugin.pluginStatus.loadingSetText({text:"无效的模板id",color:"#fff"}),A.activeThemeStatusTxt="无效的模板id"):"111023"==e.meta.code?(A.jSPlugin.pluginStatus.loadingSetText({text:"您的试用特权已到期,需前往轻应用控制台购买后使用。",color:"#fff"}),A.activeThemeStatusTxt="试用特权已到期"):(A.jSPlugin.pluginStatus.loadingSetText({text:"模板未激活,请先在开放平台轻应用控制台购买模板",color:"#fff"}),A.activeThemeStatusTxt="模板未激活"),A.themeData=II,A.initThemeData(),A.renderThemeData())}),(function(){A.renderThemeData()}))},A.getCallDeviceInfo=function(){var e=this;this.videoWidth,uI({accessToken:this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video,deviceSerial:g(this.jSPlugin.url).deviceSerial}).then((function(A){e.deviceInfoData=A.data,A.data.isEncrypt&&setTimeout((function(){e.jSPlugin.pluginStatus.loadingClear(),e.jSPlugin.pluginStatus.loadingSetText({text:"视频已加密",color:"#fff"})}),500),document.getElementById("header-"+e.bellStatus+"-deviceCategory")&&(document.getElementById("header-"+e.bellStatus+"-deviceCategory").innerText=""+A.data.deviceName)})).catch((function(A){20018!=A.code||e.jSPlugin.isWebConsole||e.userNoDevice()}))},A.setHeaderText=function(e){var A=this.videoWidth/1024||1;document.getElementById(this.jSPlugin.id+"-deviceCategory-content")&&(document.getElementById(this.jSPlugin.id+"-deviceCategory-content").innerHTML=''+e+''+(this.deviceInfoData&&this.deviceInfoData.deviceName||"")+"")},e}(),EI=function(){function e(A,t){this.jSPlugin=A,this.heightPop=t||366,e._instanceStyle(),this.initPopupCustom()}var A=e.prototype;return A.initPopupCustom=function(){document.getElementById(this.jSPlugin.id+"-wrap-popup-custom")?document.getElementById(this.jSPlugin.id+"-wrap-popup-custom").style.display="flex":this.randerPopup()},A.randerPopup=function(){var e=this,A=document.documentElement.clientWidth/375||1,t=document.getElementById(this.jSPlugin.id+"-wrap"),i=document.createElement("div");i.style="display:flex;",i.id=this.jSPlugin.id+"-wrap-popup-custom",i.innerHTML='
\n
\n
\n
\n
\n \n icon/close\n \n \n \n \n \n \n \n
\n \n
\n
\n
\n ',t.appendChild(i),document.getElementById(this.jSPlugin.id+"-wrap-popup-custom-mask").onclick=function(){e.closePopupCustom()},document.getElementById(this.jSPlugin.id+"-popup-board-close").onclick=function(){e.closePopupCustom()}},A.closePopupCustom=function(e){void 0===e&&(e=function(){}),e();var A=document.getElementById(this.jSPlugin.id+"-wrap"),t=document.getElementById(this.jSPlugin.id+"-wrap-popup-custom");A&&t&&A.removeChild(t)},A.initPopupContent=function(e,A){document.getElementById("popup-board-title-content").innerText=e||"",A&&document.getElementById(this.jSPlugin.id+"-popup-board-content").appendChild(A)},e._instanceStyle=function(){if(!e._STYLE){var A=document.documentElement.clientWidth/375||1;e._STYLE=document.createElement("style"),e._STYLE.innerHTML="@keyframes slideContentUp {0% {bottom: -"+366*A+"px;}\n 25% {bottom: -"+244*A+"px;}\n 50% {bottom: -"+122*A+"px;}\n 100% {bottom:0;}} .open-popup{animation:slideContentUp 0.3s 1 linear; -webkit-animation: slideContentUp 0.3s 1 linear;}",document.getElementsByTagName("head")[0].appendChild(e._STYLE)}},e}(),xI=function(){function e(e,A,t){this.jSPlugin=e,this.videoWidth=t,this.switchFooter=A,this.toastCustom=new rI(e,!0),this.sendLoadingStats=!1,this.quickReplyList=["你好,请将快递放在门口","你好,稍等","你好,请将快递放入小区快递柜","你好,请将外卖放在门口"],this.popupCustom=new EI(e,366),document.getElementById("mobile-quickReply-list")||(this.popupCustom.initPopupContent("快捷回复",this.renderQuickReply()),this.initQuickReply())}var A=e.prototype;return A.initQuickReply=function(){document.getElementById("mobile-quickReply-list-item-0")||this.getQuickReplyList()},A.renderQuickReply=function(){document.documentElement.clientWidth;var e=document.createElement("div");return e.style="width:100%;",e.id="mobile-quickReply-list",e.innerHTML='
\n \n ',e},A.matchQuickReplyBtn=function(){var e=this,A=this.videoWidth/375||1,t=document.getElementById("mobile-quickReply-content");this.quickReplyList&&this.quickReplyList.length>0&&this.quickReplyList.forEach((function(i,n){var a=document.createElement("div");a.id="mobile-quickReply-list-item-"+n,a.style="margin: "+14*A+"px 0;\n padding: "+12*A+"px "+15*A+"px;min-height: "+50*A+"px;width:100%;\n background: #ffffff;border-radius: "+25*A+"px;display: flex;align-items: center;\n box-sizing: border-box;font-size:"+16*A+"px;color: #2c2c2c;",a.innerHTML='\n \n icon/快捷回复播放\n \n \n \n \n \n '+i.voiceName+"",a.onclick=function(){e.sendLoadingStats||(e.setBtnCheckStatus(n),e.sendQuickReply(i))},t.appendChild(a)}))},A.setBtnCheckStatus=function(e){var A=this,t="";this.quickReplyList.forEach((function(i,n){t=document.getElementById("mobile-quickReply-list-item-"+n),n==e?(t.style.background="#F4F6FC",t.style.color="#648FFC",A.setBtnCheckLoding(0,n)):(t.style.background="#ffffff",t.style.color="#2c2c2c")}))},A.setBtnCheckLoding=function(e,A){var t=this.videoWidth/375||1;if(A>-1){var i=document.getElementById("mobile-quickReply-list-item-"+A),n=document.getElementById("mobile-quickReply-name-"+A),a=document.getElementById("mobile-quickReply-icon-"+A);if(1==e){if(document.getElementById("mobile-quickReply-icon-loading-"+A)&&n){var r=document.createElement("span");r.id="mobile-quickReply-icon-"+A,r.style="height:"+24*t+"px;",r.innerHTML='\n \n icon/快捷回复播放\n \n \n \n \n \n ',i.insertBefore(r,n)}}else if(a&&n){i.removeChild(a);var o=document.createElement("span");o.id="mobile-quickReply-icon-loading-"+A,o.style="height:"+20*t+"px;width: "+24*t+"px;",o.innerHTML='',i.insertBefore(o,n)}}},A.getQuickReplyList=function(){var e=this;this.madeLoadingDom(0);gI(this.jSPlugin,(function(A){if(A&&200==A.code){var t=A.data||[],i=[];A.data.forEach((function(e,A){i=e.voiceName.split("_"),t[A].voiceName=i[1]})),e.quickReplyList=t,setTimeout((function(){e.madeLoadingDom(2)}),500)}else e.madeLoadingDom(1)}),(function(A){e.madeLoadingDom(1)}))},A.madeLoadingDom=function(e){var A=this,t=this.videoWidth/375||1;if(0==e){if(document.getElementById("mobile-quickReply-content").style.display="none",document.getElementById("mobile-quickReply-loaderror").style.display="none",document.getElementById("mobile-quickReply-loading").style.display="block",!document.getElementById("mobile-quickReply-loading-box")){var i=document.createElement("div");i.id="mobile-quickReply-loading-box",i.style="width: 100%;display: flex;align-items: center;justify-content: center;flex-direction: row;",i.innerHTML='
\n \n
\n
正在加载,请稍候
',document.getElementById("mobile-quickReply-loading").appendChild(i)}}else if(1==e){if(document.getElementById("mobile-quickReply-content").style.display="none",document.getElementById("mobile-quickReply-loading").style.display="none",document.getElementById("mobile-quickReply-loaderror").style.display="block",!document.getElementById("mobile-quickReply-loaderror-box")){var n=document.createElement("div");n.id="mobile-quickReply-loaderror-box",n.style="width: 100%;display: flex;align-items: center;justify-content: center;flex-direction: column;",n.innerHTML='
\n \n
\n
\n 加载失败 \n 点击重试\n
',document.getElementById("mobile-quickReply-loaderror").appendChild(n),document.getElementById("mobile-quickReply-loaderror-reload").onclick=function(){A.getQuickReplyList()}}}else document.getElementById("mobile-quickReply-loading").style.display="none",document.getElementById("mobile-quickReply-loaderror").style.display="none",document.getElementById("mobile-quickReply-content").style.display="block",this.matchQuickReplyBtn()},A.sendQuickReply=function(e){var A=this;this.sendLoadingStats=!0;lI(this.jSPlugin,e.fileUrl,(function(e){A.sendLoadingStats=!1,e&&200==e.code?A.toastCustom.initToastContent("快捷回复成功"):A.toastCustom.initToastContent("快捷回复失败,请重试"),A.popupCustom.closePopupCustom()}),(function(e){A.sendLoadingStats=!1,A.toastCustom.initToastContent("快捷回复失败,请重试"),A.popupCustom.closePopupCustom()}))},A.closeQuickReplyEle=function(){this.popupCustom.closePopupCustom()},e}(),QI=function(){function e(e,A,t){this.jSPlugin=e,this.videoWidth=t,this.switchFooter=A,this.toastCustom=new rI(e,!0),this.lockStatus=!1,this.popupCustom=new EI(e,265),this.popupCustom.initPopupContent("远程开锁",this.renderRemoteUnlock()),this.renderRemoteUnlockSlide()}var A=e.prototype;return A.initRemoteUnlock=function(){document.getElementById("mobile-remoteUnlock-content")?this.madeSlideEvent():this.renderRemoteUnlock()},A.renderRemoteUnlock=function(){var e=this.videoWidth/1024||1,A=document.createElement("div");return A.style="width:100%;",A.id="mobile-remoteUnlock-box",A.innerHTML='
\n
\n
',A},A.renderRemoteUnlockSlide=function(){var e=this.videoWidth/375||1,A=document.getElementById("mobile-remoteUnlock-content"),t=document.createElement("div");t.id="mobile-remoteUnlock-content-slide",t.style="width: 100%;display: flex;justify-content: center;padding: 0 "+15*e+"px",t.innerHTML='
\n
\n
右滑开锁
\n
\n \n icon/箭头向右\n \n \n \n \n \n \n
\n
',A.appendChild(t),this.madeSlideEvent()},A.madeSlideEvent=function(){var e=this.videoWidth/375||1,A=document.getElementById("mobile-remoteUnlock-slide-box"),t=document.getElementById("mobile-remoteUnlock-slide-bgColor"),i=document.getElementById("mobile-remoteUnlock-slide-tips"),n=document.getElementById("mobile-remoteUnlock-slide-ball"),a=this;n.ontouchstart=function(r){var o=(r=r||window.event).touches[0].pageX;n.style.transition="",t.style.transition="",document.ontouchmove=function(r){var s=(r=r||window.event).touches[0].pageX-A.offsetLeft-o,g=A.clientWidth-n.clientWidth-8*e;s<=0&&(s=0),s>=g&&(s=g),n.style.left=s+"px",s!=g||a.lockStatus||(a.lockStatus=!0,document.getElementById("slide-ball-start").style.display="none",document.getElementById("slide-ball-end").style.display="inline",t.style.width=A.clientWidth+"px",t.style.backgroundColor="#598FFF",A.style.border="0",n.style.backgroundColor="#ffffff",i.textContent="正在开锁",i.style.color="#ffffff",n.ontouchstart=null,a.sendRemoteUnlockApi())},document.ontouchend=function(){a.lockStatus||(t.style.width="0px",n.style.left=8*e+"px",n.style.transition="left 0.6s linear",t.style.transition="width 0.6s linear"),document.ontouchend=null,document.ontouchmove=null}}},A.resetRemoteUnlockSlide=function(){var e=this.videoWidth/1024||1;this.lockStatus=!1;var A=document.getElementById("mobile-remoteUnlock-slide-box"),t=document.getElementById("mobile-remoteUnlock-slide-bgColor"),i=document.getElementById("mobile-remoteUnlock-slide-tips"),n=document.getElementById("mobile-remoteUnlock-slide-ball");t.style.width="0px",n.style.left=8*e+"px",i.textContent="右滑开锁",i.style.color="#666666",document.getElementById("slide-ball-start").style.display="inline",document.getElementById("slide-ball-end").style.display="none",t.style.backgroundColor="#FFFFFF",A.style.border="1px solid rgba(255,255,255,1)",n.style.backgroundColor="#598FFF"},A.sendRemoteUnlockApi=function(){var e=this;sI(this.jSPlugin,(function(A){A&&200==A.code?e.toastCustom.initToastContent("开锁成功"):e.toastCustom.initToastContent("开锁失败,请重试"),e.popupCustom.closePopupCustom()}),(function(A){e.toastCustom.initToastContent("开锁失败,请重试"),e.popupCustom.closePopupCustom()}))},A.closeRemoteUnlock=function(){this.popupCustom.closePopupCustom()},e}(),pI={customConfig:{defaultMicro:0,defaultPlay:0,maxTalkTime:0,bellPoster:0,maxBellTime:0},header:{onBell:{color:"#2c2c2c",backgroundColor:"#00000000 linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.00) 100%)",activeColor:"#1890FF",autoFocus:0,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-0",iconId:"ringStatus",part:"left",defaultActive:0,isrender:1,color:"#2c2c2c",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-1",iconId:"deviceCategory",part:"left",defaultActive:0,isrender:1,color:"#2c2c2c",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"}]},onCall:{color:"#2c2c2c",backgroundColor:"#00000000",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-0",iconId:"callStatus",part:"left",defaultActive:0,isrender:1,color:"#2c2c2c",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-header-1",iconId:"deviceCategory",part:"left",defaultActive:0,isrender:1,color:"#2c2c2c",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793"}]}},footer:{onBell:{color:"#2c2c2c",backgroundColor:"#00000000",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-0",iconId:"quickReply",part:"left",defaultActive:1,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-1",iconId:"rejection",part:"left",defaultActive:0,isrender:1,color:"#2C2C2C",themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-2",iconId:"answer",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-3",iconId:"remoteUnlock",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"}]},onCall:{color:"#2c2c2c",backgroundColor:"#00000080",activeColor:"#1890FF",autoFocus:5,btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-0",iconId:"mute",part:"left",defaultActive:1,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-1",iconId:"hangUp",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-4412dc7a9f7b471a9a3e9a8fb625c793-footer-2",iconId:"remoteUnlock",part:"left",defaultActive:0,isrender:1,themeId:"4412dc7a9f7b471a9a3e9a8fb625c793",backgroundColor:"#cccccc"}]}}},mI=function(e){var A="";return Object.keys(e).map((function(t,i){A+=t+":"+e[t]+(i\n \n ',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(s)}if(1!=this.themeData.customConfig.bellPoster||i)document.getElementById("bellring-icon")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon"));else{var g=1.8*n,l=6;document.getElementById(this.jSPlugin.id+"-headControl")&&(l=document.getElementById(this.jSPlugin.id+"-headControl").offsetHeight+.1*g+6);var c=l+(this.videoHeight-130*a)/2,d=document.createElement("div");d.id="bellring-icon",d.style="position: absolute;pointer-events: none;background: none;width: 100%;\n position: absolute;top: "+c+"px;display: flex;align-items: center;justify-content: center;",d.innerHTML='
\n
\n \n icon/响铃\n \n \n \n \n \n
\n
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(d),t&&"onBell"==this.bellStatus&&this.jSPlugin.pause()}setTimeout((function(){var A=e.decoderState.state,t=A.isEditing,i=A.rejection;"onBell"!=e.bellStatus||i||(e.removeBellRing(),t||e.answerOvertime())}),this.maxBellTime)}},A.removeBellRing=function(){document.getElementById("bellring")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring")),document.getElementById("bellring-icon")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon"))},A.getMiniCallTimeUrl=function(){if(-1!==this.jSPlugin.url.indexOf("hd.live")?this.recUrl=this.jSPlugin.url.replace("hd.live","rec"):this.recUrl=this.jSPlugin.url.replace("live","rec"),this.jSPlugin.callTime){var e=parseInt(this.jSPlugin.callTime),A=e+5e3,t=new Date(e-1e4).Format("yyyyMMddhhmmss"),i=new Date(A).Format("yyyyMMddhhmmss");this.recUrl=this.recUrl+"?begin="+t+"&end="+i}},A.initMiniRec=function(){var e=this,A=this,t=this.videoWidth,i=t/375,n=1.8*t,a=6;document.getElementById(this.jSPlugin.id+"-headControl")&&(a=document.getElementById(this.jSPlugin.id+"-headControl").offsetHeight+.1*n+6);var r=a+this.videoHeight+10*i;if(document.getElementById("miniRecbox"))document.getElementById("miniRecbox")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("miniRecbox")),document.getElementById("miniClose")&&document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("miniClose")),this.initMiniRec();else{var o=document.createElement("div");o.id="miniRecbox",o.style="-webkit-border-radius: 8px;border-radius: 8px;overflow: hidden;position: absolute;top: "+r+"px;right: "+9*i+"px;",o.innerHTML='
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(o),this.getMiniCallTimeUrl();var s={domain:ad};this.miniRecPlayer=new Ax({id:"miniRec",width:160*i,height:90*i,template:"miniRec",url:this.recUrl,token:this.jSPlugin.token,handleError:function(t){t&&6701==t.retcode?(e.miniRecNum=e.miniRecNum+1,e.miniRecNum<5?A.miniRecPlayer.changePlayUrl({type:"miniRec"}):A.miniRecCloseClick()):A.miniRecCloseClick()},env:this.jSPlugin.env||s});var g=document.createElement("div");g.id="miniClose",g.style="position: absolute;top: "+(r+8)+"px;right: "+16*i+"px;",g.innerHTML='
\n \n close\n \n \n \n \n \n \n \n
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(g),document.getElementById("miniClose-btn").onclick=function(){A.miniRecCloseClick()}}},A.initMiniImageRec=function(){var e=this.videoWidth/375,A=6;document.getElementById(this.jSPlugin.id+"-headControl")&&(A=document.getElementById(this.jSPlugin.id+"-headControl").offsetHeight+26);var t=A+this.videoHeight+10*e;if(document.getElementById("miniRecbox"))document.getElementById("miniRecbox").style.top=t+"px",document.getElementById("miniClose").style.top=t+8+"px";else{var i=document.createElement("div");i.id="miniRecbox",i.style="-webkit-border-radius: 8px;border-radius: 8px;overflow: hidden;position: absolute;\n top: "+t+"px;\n right: "+9*e+"px;\n user-select: none;\n ",i.innerHTML='
\n \n
示意小窗位置
\n
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(i);var n=document.createElement("div");n.id="miniClose",n.style="z-index: 4;position: absolute;top: "+(t+8)+"px;right: "+16*e+"px;",n.innerHTML='
\n \n close\n \n \n \n \n \n \n \n
',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(n),document.getElementById("miniClose-btn").onclick=function(){}}},A.miniRecCloseClick=function(){document.getElementById("miniRecbox")&&"rec"==this.miniRecStatus&&(this.miniRecPlayer&&this.miniRecPlayer.stop(),document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("miniClose")),document.getElementById(this.jSPlugin.id+"-wrap").removeChild(document.getElementById("miniRecbox")))},A.miniRecSwitchClick=function(){var e=this.decoderState.state.isEditing,A=this.videoWidth,t=A/375,i=1.8*A,n=6;document.getElementById(this.jSPlugin.id+"-headControl")&&(n=document.getElementById(this.jSPlugin.id+"-headControl").offsetHeight+.1*i+6);var a=n+this.videoHeight+10*t;if("rec"==this.miniRecStatus){this.miniRecStatus="live",e?(document.getElementById("miniRec-embed").style.width=this.jSPlugin.width+"px",document.getElementById("miniRec-embed").style.height=this.jSPlugin.height+"px",document.getElementById("miniRec").style.width=this.jSPlugin.width+"px",document.getElementById("miniRec").style.height=this.jSPlugin.height+"px"):this.miniRecPlayer.reSize(this.jSPlugin.width,this.jSPlugin.height),this.jSPlugin.reSize(160*t,90*t);var r=this.videoHeight+10*t,o=.2*i-90*t-10*t;document.getElementById(this.jSPlugin.id+"-wrap").style.width=this.videoWidth+"px",document.getElementById(""+this.jSPlugin.id).style.marginTop=r+"px",document.getElementById(""+this.jSPlugin.id).style.marginLeft=A-160*t-9+"px",document.getElementById(""+this.jSPlugin.id).style.overflow="hidden",document.getElementById(""+this.jSPlugin.id).style.borderRadius="8px",document.getElementById("miniRecbox").style.top=n+"px",document.getElementById("miniRecbox").style.left="0",document.getElementById("miniRecbox").style.right="0",document.getElementById("miniRecbox").style.borderRadius="0px",document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop=o+"px"}else this.miniRecStatus="rec",e?(document.getElementById("miniRec-embed").style.width=160*t+"px",document.getElementById("miniRec-embed").style.height=90*t+"px",document.getElementById("miniRec").style.width=160*t+"px",document.getElementById("miniRec").style.height=90*t+"px"):this.miniRecPlayer.reSize(160*t,90*t),this.jSPlugin.reSize(this.videoWidth,this.videoHeight),document.getElementById(this.jSPlugin.id+"-wrap").style.width=this.videoWidth+NaN,document.getElementById(""+this.jSPlugin.id).style.marginTop="0",document.getElementById(""+this.jSPlugin.id).style.marginLeft="0",document.getElementById(""+this.jSPlugin.id).style.overflow="hidden",document.getElementById(""+this.jSPlugin.id).style.borderRadius="0px",document.getElementById("miniRecbox").style.top=a+"px",document.getElementById("miniRecbox").style.right="9px",document.getElementById("miniRecbox").style.left="auto",document.getElementById("miniRecbox").style.borderRadius="8px",document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop=.2*i+"px"},A.matchBtn=function(e,A){var t=this,i=this.themeData,n=i.header,a=i.footer,r=this.decoderState.state,o=r.mute,s=r.rejection;document.documentElement.clientHeight;var g=this.videoWidth/375,l=this.videoWidth/375||1,c={title:"",id:"",domString:"",color:"#FFFFFF",activeColor:"#FFFFFF",onclick:function(){},onmoveleft:function(){},onmoveright:function(){},onremove:function(){}};-1===n[this.bellStatus].btnList.findIndex((function(A){return A.iconId===e}))?(c.color=a[this.bellStatus].color,c.backgroundColor=a[this.bellStatus].backgroundColor,c.activeColor=a[this.bellStatus].activeColor):(c.color=n[this.bellStatus].color,c.backgroundColor=n[this.bellStatus].backgroundColor,c.activeColor=n[this.bellStatus].activeColor);var d=this.videoWidth/4;switch(e){case"ringStatus":return c.title=this.activeThemeStatus?"有人按门铃":this.activeThemeStatusTxt,c.id=e,c.domString=''+(this.activeThemeStatus?"有人按门铃":this.activeThemeStatusTxt)+"",c.onclick=function(){},c;case"deviceCategory":return c.title="设备名称",c.id=e,c.domString=''+(this.deviceInfoData&&this.deviceInfoData.deviceName||"设备名称")+"",c.onclick=function(){},c;case"callStatus":return c.title="通话中",c.id=e,c.domString='通话中',c.onclick=function(){},c;case"deviceCategory":return c.title="设备名称",c.id=e,c.domString=''+(this.deviceInfoData&&this.deviceInfoData.deviceName||"设备名称")+"",c.onclick=function(){},c;case"rejection":return c.title="拒绝",c.id=e,c.domString='
\n
\n \n 拒绝\n \n \n \n \n \n
\n
拒绝
\n
',c.onclick=function(){var e=t,A=t.decoderState.state,i=A.play,n=A.isEditing,a=A.rejection;if(n||a)return!1;i&&t.jSPlugin.stop(),t.removeBellRing(),t.setDecoderState({play:!1,rejection:!0}),e.miniRecCloseClick(),t.rejectionStatusDispose(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("rejection")},c;case"quickReply":return c.title="快捷回复",c.id=e,c.domString='
\n
\n \n 快捷回复\n \n \n \n \n \n
\n
快捷回复
\n
',c.onclick=function(){var e=t.decoderState.state,A=e.isEditing,i=e.rejection;if(A||i)return!1;t.switchFooter("quickReply"),t.quickReplyEle=new xI(t.jSPlugin,t.switchFooter,t.videoWidth)},c;case"answer":return c.title="接听",c.id=e,c.domString='
\n
\n \n 接听\n \n \n \n \n \n
\n
接听
\n
',c.onclick=function(){var e=t,i=t.decoderState.state,r=i.play,o=i.isEditing,s=i.talk,g=i.sound,l=i.rejection;if(o||l)return!1;t.jSPlugin.pluginStatus.loadingClear(),t.bellStatus="onCall",t.switchFooter("onCall"),a[t.bellStatus].btnList.map((function(e,A){e.isrender&&t.renderFooter(e.iconId,e)})),n[t.bellStatus].btnList.map((function(e,A){e.isrender&&t.renderHeader(e.iconId,e)}));var c=document.getElementById(t.jSPlugin.id+"-header-onBell");c&&c.parentElement.removeChild(c),1==t.themeData.customConfig.bellPoster&&(document.getElementById("bellring-icon")&&document.getElementById(t.jSPlugin.id+"-wrap").removeChild(document.getElementById("bellring-icon")),t.jSPlugin.setPoster("")),t.removeBellRing(),t.miniRecCloseClick(),r||(t.jSPlugin.pluginStatus.loadingStart(t.jSPlugin.id),t.jSPlugin.pluginStatus.loadingSetText({text:"视频加载中"}),t.jSPlugin.play(),t.setDecoderState({play:!r})),s||1!=t.themeData.customConfig.defaultMicro||(t.setDecoderState({talk:!0,mute:!1}),g&&t.jSPlugin.closeSound(),t.jSPlugin.Talk.startTalk()),t.setDecoderState({sound:!1}),0==t.themeData.customConfig.defaultMicro&&(t.muteCommon(A),t.jSPlugin.openSound()),t.maxTalkTime=1e3*t.themeData.customConfig.maxTalkTime*60,setTimeout((function(){s&&(e.setDecoderState({talk:!1}),e.jSPlugin.Talk.stopTalk()),r&&(e.jSPlugin.stop(),e.setDecoderState({play:!r})),t.rejectionStatusDispose(),t.remoteUnlockEle&&t.remoteUnlockEle.closeRemoteUnlock(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("hangUp")}),t.maxTalkTime)},c;case"remoteUnlock":return c.title="远程开锁",c.id=e,c.domString='
\n
\n \n 开锁\n \n \n \n \n \n
\n
远程开锁
\n
',c.onclick=function(){var e=t.decoderState.state,A=e.isEditing;e.play;var i=e.rejection;if(A||"onBell"==t.bellStatus||i)return!1;t.switchFooter("remoteUnlock"),t.remoteUnlockEle=new QI(t.jSPlugin,t.switchFooter,t.videoWidth)},c;case"mute":return c.title="静音",c.id=e,c.domString='
\n
\n \n icon/静音\n \n \n \n \n \n
\n
静音
\n
',c.onclick=function(){var e=t.decoderState.state,i=e.talk,n=e.sound;if(e.play,e.rejection)return!1;i?(t.setDecoderState({talk:!1,mute:!0},A.backgroundColor),t.jSPlugin.Talk.stopTalk(),t.jSPlugin.openSound()):(t.setDecoderState({talk:!0,mute:!1},A.backgroundColor),n&&(t.jSPlugin.closeSound(),t.setDecoderState({sound:!1})),t.jSPlugin.Talk.startTalk())},c;case"hangUp":return c.title="挂断",c.id=e,c.domString='
\n
\n \n 挂断\n \n \n \n \n \n
\n
挂断
\n
',c.onclick=function(){var e=t,A=t.decoderState.state,i=A.talk,n=A.play;if(A.rejection)return!1;i&&(t.setDecoderState({talk:!1}),t.jSPlugin.Talk.stopTalk()),n&&(t.jSPlugin.stop(),t.setDecoderState({play:!n})),(n||i)&&(e.miniRecCloseClick(),t.rejectionStatusDispose(),"function"==typeof t.jSPlugin.hangUpCallback&&t.jSPlugin.hangUpCallback("hangUp"))},c;default:return c}},A.answerOvertime=function(){this.toastCustom.initToastContent("应答超时"),this.decoderState.state.play&&this.jSPlugin.stop(),this.setDecoderState({play:!1,rejection:!0}),this.miniRecCloseClick(),this.rejectionStatusDispose(),this.quickReplyEle&&this.quickReplyEle.closeQuickReplyEle(),"function"==typeof this.jSPlugin.hangUpCallback&&this.jSPlugin.hangUpCallback("rejection")},A.rejectionStatusDispose=function(){var e=this,A=this.themeData.footer,t=document.getElementById(this.jSPlugin.id+"-audioControls"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall"),n=document.getElementById(this.jSPlugin.id+"-audioControls-quickReplyBtn"),a=document.getElementById("header-"+this.bellStatus+"-ringStatus");"onBell"==this.bellStatus?(t.innerHTML="",n.innerHTML="",t.style.color="#2C2C2C"):(i.innerHTML="",i.style.color="#2C2C2C"),this.setDecoderState({rejection:!0}),A[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)})),a.innerText="通话已结束",this.jSPlugin.pluginStatus.loadingClear(),this.jSPlugin.pluginStatus.loadingSetTextWithBtn({text:"通话已结束",color:"white",isMobile:!0,type:2})},A.userNoDevice=function(){var e=this;this.removeBellRing(),this.setDecoderState({rejection:!0});var A=this.themeData.footer,t=document.getElementById(this.jSPlugin.id+"-audioControls"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall"),n=document.getElementById(this.jSPlugin.id+"-audioControls-quickReplyBtn");"onBell"==this.bellStatus?(t.innerHTML="",n.innerHTML="",t.style.color="#2C2C2C"):(i.innerHTML="",i.style.color="#2C2C2C"),this.setDecoderState({rejection:!0}),A[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)})),this.jSPlugin.pluginStatus.loadingClear(),this.jSPlugin.pluginStatus.loadingSetTextWithBtn({text:"该用户不拥有该设备",color:"white",isMobile:!0,type:2})},A.renderHeader=function(e,A){var t=this,i=this.matchBtn(e,A);if(document.getElementById(this.jSPlugin.id+"-header-"+this.bellStatus+"-content")){var n=document.createElement("span");n.innerHTML=""+i.domString,document.getElementById(this.jSPlugin.id+"-header-"+this.bellStatus+"-content").appendChild(n)}else{var a=document.createElement("div");a.id=this.jSPlugin.id+"-header-"+this.bellStatus,a.style="max-width:50%;position:relative;",a.innerHTML='\n '+i.domString+"\n ",a.onclick=function(e){if(t.decoderState.state.isEditing)return!1;i.onclick(e)},document.getElementById(this.jSPlugin.id+"-headControl").childNodes[0].appendChild(a)}},A.renderFooter=function(e,A){var t=this,i=this.decoderState.state.mute;if("remoteUnlock"==e&&this.jSPlugin.capacity&&(!this.jSPlugin.capacity.support_unlock||0==this.jSPlugin.capacity.support_unlock))return!1;var n=this.matchBtn(e,A),a=this.videoWidth/4,r=document.createElement("div");if(r.className="theme-icon-item","quickReply"!==n.id&&(r.style="width:"+.66*a+"px;padding:0 "+.12*a+"px;box-sizing: content-box;-webkit-tap-highlight-color:transparent;"),r.innerHTML='
'+n.domString+"
",r.onclick=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onclick(e)},n.onmouseenter&&(r.onmouseenter=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onmouseenter(e)}),n.onmouseleave&&(r.onmouseleave=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;n.onmouseleave(e)}),"quickReply"!=e){var o=document.createElement("span");o.className="icon-move left",o.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',o.onclick=function(){t.editIcon(n.id,"left","footer")},r.appendChild(o);var s=document.createElement("span");s.className="icon-move right",s.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',s.onclick=function(){t.editIcon(n.id,"right","footer")},r.appendChild(s)}if("answer"==e||"rejection"==e||"hangUp"==e);else{var g=document.createElement("span");g.className="icon-move close",g.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',g.onclick=function(){t.editIcon(n.id,"delete","footer")},r.appendChild(g)}"onCall"==this.bellStatus?document.getElementById(this.jSPlugin.id+"-audioControls-onCall").appendChild(r):(document.getElementById(this.jSPlugin.id+"-audioControls").appendChild(r),"quickReply"===n.id&&document.getElementById(this.jSPlugin.id+"-audioControls-quickReplyBtn").appendChild(r)),this.decoderState.state.isEditing&&"mute"==e&&"onCall"==this.bellStatus&&(0!=this.themeData.customConfig.defaultMicro||i?this.setDecoderState({mute:!1},A.backgroundColor):this.setDecoderState({mute:!0},A.backgroundColor))},A.switchFooter=function(e){var A=this.themeData.footer;switch(e){case"onBell":document.getElementById(this.jSPlugin.id+"-audioControls-onCall")?"none"==document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.display&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.display="flex",document.getElementById(this.jSPlugin.id+"-audioControls-quickReplyBtn").style.display="flex",document.getElementById(this.jSPlugin.id+"-btn-quickReply").style.display="flex"):(document.getElementById(this.jSPlugin.id+"-audioControls").style.display="flex",document.getElementById(this.jSPlugin.id+"-audioControls-quickReplyBtn").style.display="flex",document.getElementById(this.jSPlugin.id+"-btn-quickReply").style.display="flex");break;case"onCall":document.getElementById(this.jSPlugin.id+"-audioControls").style.display="none",document.getElementById(this.jSPlugin.id+"-btn-quickReply").style.display="none",document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.display="flex",this.themeData&&(document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.color=A[this.bellStatus].color)}},A.initThemeData=function(){var e=this,A=this.themeData,t=A.header,i=A.footer,n=this.decoderState.state.isEditing,a=this.videoWidth,r=a/375,s=1.8*a,g=this.jSPlugin.id;if(this.isNeedRenderHeader=Hc(t[this.bellStatus].btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderFooter=Hc(i[this.bellStatus].btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderHeader)if(document.getElementById(this.jSPlugin.id+"-headControl"))document.getElementById(this.jSPlugin.id+"-headControl").innerHTML="
";else{var l,c=document.createElement("div");c.setAttribute("id",this.jSPlugin.id+"-headControl"),c.setAttribute("class","header-controls"),c.innerHTML="
",this.jSPlugin.height;var d=((l={display:"flex","justify-content":"space-between",top:0,"z-index":999,color:"#FFFFFF",width:"100%",position:"relative","margin-bottom":.1*s+"px","align-items":"center","text-align":"center","font-size":"24ox"}).color="#2c2c2c",l["margin-top"]="6px",l);c.style=mI(d),document.getElementById(g+"-wrap").insertBefore(c,document.getElementById(g));var I=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(I)}),50)}else document.getElementById(this.jSPlugin.id+"-headControl")&&document.getElementById(this.jSPlugin.id+"-headControl").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-headControl"));if(this.jSPlugin.height,this.isNeedRenderFooter)if(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"))document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop=.2*s+"px","onCall"==this.bellStatus?document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").innerHTML='\n \n \n \n \n \n ':document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").innerHTML='\n \n \n \n \n \n ');else{var C=document.createElement("div");C.setAttribute("id",this.jSPlugin.id+"-ez-iframe-footer-container"),C.setAttribute("class","ez-iframe-footer-container");var h={position:"relative","margin-top":.2*s+"px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,top:0,color:"#FFFFFF",width:"100%","align-items":"center","font-size":"12px"};C.style=mI(h),C.innerHTML='\n \n \n \n \n \n ',o(C,document.getElementById(g))}else document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"));if(this.isNeedRenderHeader&&document.getElementById(this.jSPlugin.id+"-headControl")&&t[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderHeader(A.iconId,A)})),this.isNeedRenderFooter&&document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.background=i[this.bellStatus].backgroundColor,document.getElementById(this.jSPlugin.id+"-audioControls").style.color=i[this.bellStatus].color,i[this.bellStatus].btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)}))),1!=this.themeData.customConfig.bellPoster||n)this.jSPlugin.setPoster("");else{this.jSPlugin.poster="https://resource.eziot.com/group1/M00/00/B8/CtwQEmPbGh2AVJB-ABDcYtyw5gk899.svg";var u=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(u),e.jSPlugin.setPoster(e.jSPlugin.poster))}),50)}this.activeThemeStatus&&(this.initBellRing(),this.checkIsAppleDevice()||!1?window.addEventListener("touchstart",this.autoPlayRing):window.addEventListener("click",this.autoPlayRing));this.inited=!0,this.getCallDeviceInfo()},A.checkIsAppleDevice=function(){var e=navigator.userAgent,A=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),t=e.indexOf("iPad")>-1,i=e.indexOf("iPhone")>-1||e.indexOf("Mac")>-1;return!!(A||t||i)},A.renderThemeData=function(){var e=this,A=this.themeData,t=A.header,i=A.footer,n=this.decoderState.state.isEditing;if(this.isNeedRenderHeader&&t&&(document.getElementById(this.jSPlugin.id+"-headControl").style.color=t[this.bellStatus].color.replace("-diy",""),t[this.bellStatus].btnList.map((function(A,t){var i;A.isrender&&e.setDecoderState(((i={})[A.iconId]=e.decoderState.state[A.iconId],i))}))),this.isNeedRenderFooter&&i)document.getElementById(this.jSPlugin.id+"-audioControls").style.background=i[this.bellStatus].backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-audioControls").style.color=i[this.bellStatus].color.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-audioControls-onCall").style.color=i[this.bellStatus].color.replace("-diy",""),i[this.bellStatus].btnList.map((function(A,t){var i;A.isrender&&e.setDecoderState(((i={})[A.iconId]=e.decoderState.state[A.iconId],i));if(0==t&&!e.themeInited&&e.activeThemeStatus)var a=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(a),1!=e.themeData.customConfig.bellPoster||n?e.jSPlugin.play():e.jSPlugin.pluginStatus.loadingClear(),e.themeInited=!0)}),50)})),-1!==this.jSPlugin.url.indexOf("hd.live")&&this.setDecoderState({hd:!0}),this.themeData.autoFocus>0&&(this.autoFocus=parseInt(this.themeData.autoFocus),this.startAutoFocus(),document.getElementById(this.jSPlugin.id+"-wrap").addEventListener("click",(function(){e.stopAutoFocus()}))),this.setDecoderState({cloudRec:"cloud.rec"===g(this.jSPlugin.url).type,rec:"rec"===g(this.jSPlugin.url).type,type:g(this.jSPlugin.url).type});else if(!this.themeInited&&this.activeThemeStatus)var a=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(a),e.themeData&&e.themeData.customConfig&&1==e.themeData.customConfig.bellPoster&&!n?e.jSPlugin.pluginStatus.loadingClear():e.jSPlugin.play(),e.themeInited=!0)}),50);var r=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(r),e.jSPlugin.reSize(e.jSPlugin.params.width,e.jSPlugin.params.height))}),50);n||this.jSPlugin.isWebConsole?1==this.themeData.customConfig.miniWinRec?this.initMiniImageRec():this.miniRecCloseClick():setTimeout((function(){"onBell"==e.bellStatus&&e.jSPlugin.capacity&&1==e.jSPlugin.capacity.support_doorcall_playback&&1==e.themeData.customConfig.miniWinRec&&(!e.deviceInfoData||e.deviceInfoData&&!e.deviceInfoData.isEncrypt)&&(e.miniRecNum=0,e.initMiniRec())}),1e3)},A.setThemeData=function(e,A){this.themeData=e,"onCall"==A&&(this.bellStatus="onCall")},A.startAutoFocus=function(){var e=this,A=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout((function(){document.getElementById(e.jSPlugin.id+"-audioControls")&&(document.getElementById(e.jSPlugin.id+"-audioControls").style.opacity=0,document.getElementById(e.jSPlugin.id+"-audioControls").style.pointerEvents="none")}),1e3*A)},A.stopAutoFocus=function(){document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.opacity=1,document.getElementById(this.jSPlugin.id+"-audioControls").style.pointerEvents="all"),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.startAutoFocus()},A.editIcon=function(e,A,t){var i=this.themeData,n=this.themeData[t][this.bellStatus].btnList,a=Hc(n,(function(A){return A.iconId===e})),r=n[a];switch(A){case"delete":n[a].isrender=0;break;case"right":for(var o=-1,s=a+1;s=0;l--)if(n[l].part===n[a].part&&1==n[l].isrender){g=l;break}-1!==g&&(n[a]=n[g],n[g]=r)}i[t][this.bellStatus].btnList=n,this.jSPlugin.Theme.changeTheme(i)},A.countTime=function(e,A){void 0===A&&(A=0);var t=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var i=document.createElement("div");i.id=this.jSPlugin.id+"time-area",i.className="time-area",i.innerHTML='00:00',document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").appendChild(i)}if(this.countTimer&&clearInterval(this.countTimer),"add"===e){var n=A;document.getElementById(t.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval((function(){++n,document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML=function(e){var A=parseInt(e),t=0,i=0,n="00",a="00",r="00";A>59&&(t=parseInt(A/60),A=parseInt(A%60),t>59&&(i=parseInt(t/60),t=parseInt(t%60)));return n=parseInt(A)>9?parseInt(A):"0"+parseInt(A),a=parseInt(t)>9?parseInt(t):"0"+parseInt(t),r=parseInt(i)>9?parseInt(i):"0"+parseInt(i),i>0?r+":"+a+":"+n:t>0?a+":"+n:"00:"+n}(n)}),1e3)}else"destroy"===e&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(t.jSPlugin.id+"time-area")&&(document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(t.jSPlugin.id+"time-area").style.display="none"))},A.editStart=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-audioControls-onCall");document.getElementById(this.jSPlugin.id+"-headControl"),A&&A.setAttribute("class","footer-controls themeEditing"),t&&t.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})},A.editEnd=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-headControl"),i=document.getElementById(this.jSPlugin.id+"-audioControls-onCall");t&&t.setAttribute("class","header-controls"),A&&A.setAttribute("class","footer-controls"),i&&i.setAttribute("class","footer-controls")},A.fetchThemeData=function(e){var A=this;switch(this.jSPlugin.themeId){case"pcLive":case"pcRec":case"mobileLive":case"mobileRec":case"miniRec":break;default:Gd(this.jSPlugin,e,(function(e){0==e.meta.code&&e.data?(A.activeThemeStatus=!0,A.themeData=e.data,e.data.header&&(A.themeData.header=e.data.header,A.themeData.header[A.bellStatus].btnList=A.themeData.header[A.bellStatus].btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),e.data.footer&&(A.themeData.footer=e.data.footer,A.themeData.footer[A.bellStatus].btnList=A.themeData.footer[A.bellStatus].btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),A.jSPlugin.capacity?(A.initThemeData(),A.renderThemeData()):setTimeout((function(){A.initThemeData(),A.renderThemeData()}),300)):(A.activeThemeStatus=!1,A.jSPlugin.pluginStatus.loadingClear(),A.setDecoderState({rejection:!0}),"111021"==e.meta.code?(A.jSPlugin.pluginStatus.loadingSetText({text:"无效的模板id",color:"#fff",type:1}),A.activeThemeStatusTxt="无效的模板id"):"111023"==e.meta.code?(A.jSPlugin.pluginStatus.loadingSetText({text:"您的试用特权已到期,需前往轻应用控制台购买后使用。",color:"#fff",type:1}),A.activeThemeStatusTxt="试用特权已到期"):(A.jSPlugin.pluginStatus.loadingSetText({text:"模板未激活,请先在开放平台轻应用控制台购买模板",color:"#fff",type:1}),A.activeThemeStatusTxt="模板未激活"),A.themeData=pI,A.initThemeData(),A.renderThemeData())}),(function(){A.renderThemeData()}))}},A.getCallDeviceInfo=function(){var e=this;this.videoWidth,uI({accessToken:this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video,deviceSerial:g(this.jSPlugin.url).deviceSerial}).then((function(A){A.data&&(e.deviceInfoData=A.data,A.data.isEncrypt&&(e.miniRecCloseClick(),setTimeout((function(){e.jSPlugin.pluginStatus.loadingClear(),e.jSPlugin.pluginStatus.loadingSetText({text:"视频已加密",color:"#fff"})}),1e3)),document.getElementById("header-"+e.bellStatus+"-deviceCategory")&&(document.getElementById("header-"+e.bellStatus+"-deviceCategory").innerText=""+A.data.deviceName))})).catch((function(A){20018!=A.code||e.jSPlugin.isWebConsole||e.userNoDevice()}))},A.setHeaderText=function(e){var A=this.videoWidth/375||1;document.getElementById(this.jSPlugin.id+"-deviceCategory-content")&&(document.getElementById(this.jSPlugin.id+"-deviceCategory-content").innerHTML=''+e+''+(this.deviceInfoData&&this.deviceInfoData.category||"")+"")},e}();var _I=function(){function e(e){if(this.jSPlugin=e,this.videoWidth=e.width,this.autoFocus=0,this.autoFocusTimer=null,this.decoderState={state:{isEditing:!1,play:!1,sound:!1,recordvideo:!1,recordCount:"00:00",talk:!1,mute:!1,rejection:!1,cloudRec:"cloud.rec"===g(e.url).type,rec:"rec"===g(e.url).type,type:g(e.url).type}},this.isMobile=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i),void 0!==e.isMobile&&(this.isMobile=e.isMobile),this.themeData={},"themeData"==this.jSPlugin.themeId&&(this.themeData=this.jSPlugin.params.themeData),this.jSPlugin.themeId)if(this.isMobile?this.call=new yI(this.jSPlugin,this.themeData,this.setDecoderState,this.decoderState):this.call=new fI(this.jSPlugin,this.themeData,this.setDecoderState,this.decoderState),"themeData"===this.jSPlugin.themeId)this.themeData=this.jSPlugin.params.themeData,this.call.initThemeData(),this.call.renderThemeData();else this.call.fetchThemeData(this.jSPlugin.themeId);this.jSPlugin.Talk||(this.jSPlugin.Talk=new aI(this.jSPlugin)),n(this.jSPlugin.staticPath+"/speed/speed.css"),n(this.jSPlugin.staticPath+"/css/theme.css")}var A=e.prototype;return A.changeTheme=function(e,A,t){if(void 0===A&&(A=!0),void 0===t&&(t="onBell"),"string"==typeof e)switch(this.jSPlugin.themeId=e,this.jSPlugin.themeId){case"pcLive":case"mobileCall":case"webCall":this.call.initThemeData(),this.call.renderThemeData();break;default:this.call.fetchThemeData(e)}else"object"==(void 0===e?"undefined":(i=e)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)&&(this.themeData=e,this.call.setThemeData(e,t),this.call.initThemeData(),this.call.renderThemeData(),this.decoderState.state.isEditing&&A&&this.call.editStart());var i;this.jSPlugin&&this.jSPlugin.handleThemeChange&&this.jSPlugin.handleThemeChange(e)},A.setDecoderState=function(e,A){var t=this,i=this.themeData;i.header,i.footer,Object.keys(e).map((function(i){if("mute"===i)document.getElementById(t.jSPlugin.id+"-icon-mute")&&(e[i]?(document.getElementById(t.jSPlugin.id+"-icon-mute").style.background=A,document.getElementById(t.jSPlugin.id+"-icon-mute").style.border=" 1px solid "+A,document.getElementById("icon-mute-path").style.fill="#ffffff"):(document.getElementById(t.jSPlugin.id+"-icon-mute").style.background="#ffffff",document.getElementById(t.jSPlugin.id+"-icon-mute").style.border="1px solid "+A,document.getElementById("icon-mute-path").style.fill=A));t.decoderState.state=Object.assign(t.decoderState.state,e)}))},A.startAutoFocus=function(){var e=this,A=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout((function(){document.getElementById(e.jSPlugin.id+"-audioControls")&&(document.getElementById(e.jSPlugin.id+"-audioControls").style.opacity=0,document.getElementById(e.jSPlugin.id+"-audioControls").style.pointerEvents="none")}),1e3*A)},A.stopAutoFocus=function(){document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.opacity=1,document.getElementById(this.jSPlugin.id+"-audioControls").style.pointerEvents="all"),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.startAutoFocus()},A.toString=function(){return this.coreX+"-"+this.coreY},A.editIcon=function(e,A,t){var i=this.themeData,n=this.themeData[t].btnList,a=Hc(n,(function(A){return A.iconId===e})),r=n[a];switch(A){case"delete":if("rec"===e){if(-1===Hc(n,(function(e){return"cloudRec"===e.iconId&&1==e.isrender})))return this.jSPlugin.Message&&this.jSPlugin.Message.default("必须选中一种存储介质"),!1}else if("cloudRec"===e&&-1===Hc(n,(function(e){return"rec"===e.iconId&&1==e.isrender})))return this.jSPlugin.Message&&this.jSPlugin.Message.default("必须选中一种存储介质"),!1;n[a].isrender=0;break;case"right":for(var o=-1,s=a+1;s=0;l--)if(n[l].part===n[a].part&&1==n[l].isrender){g=l;break}-1!==g&&(n[a]=n[g],n[g]=r)}i[t].btnList=n,this.changeTheme(i)},A.countTime=function(e,A){void 0===A&&(A=0);var t=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var i=document.createElement("div");i.id=this.jSPlugin.id+"time-area",i.className="time-area",i.innerHTML='00:00',document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").appendChild(i)}if(this.countTimer&&clearInterval(this.countTimer),"add"===e){var n=A;document.getElementById(t.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval((function(){++n,document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML=function(e){var A=parseInt(e),t=0,i=0,n="00",a="00",r="00";A>59&&(t=parseInt(A/60),A=parseInt(A%60),t>59&&(i=parseInt(t/60),t=parseInt(t%60)));return n=parseInt(A)>9?parseInt(A):"0"+parseInt(A),a=parseInt(t)>9?parseInt(t):"0"+parseInt(t),r=parseInt(i)>9?parseInt(i):"0"+parseInt(i),i>0?r+":"+a+":"+n:t>0?a+":"+n:"00:"+n}(n)}),1e3)}else"destroy"===e&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(t.jSPlugin.id+"time-area")&&(document.getElementById(t.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(t.jSPlugin.id+"time-area").style.display="none"))},A.editStart=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-audioControls-onCall"),i=document.getElementById(this.jSPlugin.id+"-headControl");i&&i.setAttribute("class","header-controls themeEditing"),A&&A.setAttribute("class","footer-controls themeEditing"),t&&t.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})},A.editEnd=function(e){var A=document.getElementById(this.jSPlugin.id+"-audioControls"),t=document.getElementById(this.jSPlugin.id+"-headControl");t&&t.setAttribute("class","header-controls"),A&&A.setAttribute("class","footer-controls"),this.setDecoderState({isEditing:!1})},A.setDisabled=function(e){},A.getDeviceInfo=function(){var e=this,A=this.videoWidth/1024||1;uI({accessToken:this.jSPlugin.accessToken||this.jSPlugin.token.deviceToken.video,deviceSerial:g(this.jSPlugin.url).deviceSerial}).then((function(t){200==t.code&&t.data&&document.getElementById(e.jSPlugin.id+"-deviceCategory-content")&&(document.getElementById(e.jSPlugin.id+"-deviceCategory-content").style.maxWidth="100%",document.getElementById(e.jSPlugin.id+"-deviceCategory-content").style.overflow="hidden",document.getElementById(e.jSPlugin.id+"-deviceCategory-content").style.textOverflow="ellipsis",document.getElementById(e.jSPlugin.id+"-deviceCategory-content").style.whiteSpace="nowrap",document.getElementById(e.jSPlugin.id+"-deviceCategory-content").innerHTML='有人按门铃'+t.data.category+"")})).catch((function(e){}))},e}(),SI=function(){function e(e){this.jSPlugin=e;var A=window["EZUIKIT_TIMER_INTERVAL_"+e.id];A&&Object.keys(A).length>0&&this.resetTimer(),window["EZUIKIT_TIMER_INTERVAL_"+e.id]={}}var A=e.prototype;return A.createInterval=function(e,A,t){window["EZUIKIT_TIMER_INTERVAL_"+this.jSPlugin.id][e]=setInterval(A,t)},A.clearTimer=function(e){var A=window["EZUIKIT_TIMER_INTERVAL_"+this.jSPlugin.id];A[e]&&(clearInterval(A[e]),delete A[e])},A.resetTimer=function(){var e=window["EZUIKIT_TIMER_INTERVAL_"+this.jSPlugin.id];for(var A in e)clearInterval(e[A]),delete e[A]},e}(),vI=function(e){var A=this;this.initMap=function(){var e=A,t=A.videoWidth,i=A.videoHeight;if(document.getElementById(A.jSPlugin.id+"-miniRecbox"))document.getElementById(A.jSPlugin.id+"-wrap").removeChild(document.getElementById(A.jSPlugin.id+"-miniRecbox")),A.initMap();else{var n=document.createElement("div");n.id=A.jSPlugin.id+"-miniRecbox",n.style=";position: absolute; bottom:96px;right:"+A.jSPlugin.inspectVideoWidth+"px;",n.innerHTML='
',document.getElementById(A.jSPlugin.id+"-wrap").insertBefore(n,document.getElementById(A.jSPlugin.id+"-ez-iframe-footer-container")),e.map=e.loadMap(A.jSPlugin.id+"-mapbox")}return e.map},this.loadMap=function(e){var A=new BMapGL.Map(e);return A.centerAndZoom(new BMapGL.Point(116.297611,40.047363),15),A.enableScrollWheelZoom(!0),A},this.createCircle=function(e,t,i,n){var a=new BMapGL.Point(e,t),r=new BMapGL.Marker(a,{title:n});if(A.map.addOverlay(r),0!=i){var o=new BMapGL.Circle(new BMapGL.Point(e,t),i,{strokeColor:"#ff4d4f",strokeWeight:4,strokeOpacity:1,strokeStyle:"dashed",fillOpacity:0});A.map.addOverlay(o)}},this.createInspectPoints=function(e){e.map((function(e){A.createCircle(e.longitude,e.latitude,e.radius,e.inspectPointName)}))},this.createPolygon=function(e,t,i,n,a,r,o){void 0===t&&(t="#407AFF"),void 0===i&&(i="solid"),void 0===n&&(n=4),void 0===a&&(a=1),void 0===r&&(r="407AFF"),void 0===o&&(o=0);var s=[];e.split(";").map((function(e){var A=e.split(",");s.push(new BMapGL.Point(A[0],A[1]))})),A.inspectRange=new BMapGL.Polygon(s,{strokeColor:t,strokeWeight:n,strokeOpacity:a,strokeStyle:i,fillOpacity:o,fillColor:r}),A.map.addOverlay(A.inspectRange)},this.createTrack=function(e,t,i,n,a,r,o,s,g,l,c){void 0===t&&(t=!1),void 0===i&&(i="#18C796"),void 0===n&&(n="solid"),void 0===a&&(a=4),void 0===r&&(r=1),void 0===o&&(o=0),void 0===s&&(s=0),void 0===g&&(g=500),void 0===l&&(l=0),void 0===c&&(c=!1);var d=[];if(e.map((function(e){var t=!1;A.currentTrack.length>0&&A.currentTrack.map((function(A){A.longitude===e.longitude&&A.latitude===e.latitude&&A.reportTime===e.reportTime&&(t=!0)})),t||(0==d.length&&A.currentTrack.length>0&&d.push(new BMapGL.Point(A.currentTrack[A.currentTrack.length-1].longitude,A.currentTrack[A.currentTrack.length-1].latitude)),d.push(new BMapGL.Point(e.longitude,e.latitude)))})),0!=d.length){var I=new BMapGL.Polyline(d,{strokeColor:i,strokeWeight:a,strokeOpacity:r,strokeStyle:n,fillOpacity:o});if(t?(A.map.addOverlay(I),A.map.centerAndZoom(d[d.length-1],15)):(A.trackAni=new BMapGLLib.TrackAnimation(A.map,I,{overallView:c,tilt:s,duration:g,delay:l}),A.trackAni.start()),A.currentTrack=e,A.currentTrack.length>0&&A.currentTrack.length>0){var C=new BMapGL.Point(A.currentTrack[0].longitude,A.currentTrack[0].latitude);if(A.startPoint=new BMapGL.Marker(C,{icon:new BMapGL.Icon(A.jSPlugin.staticPath+"/imgs/start.png",new BMapGL.Size(32,47)),offset:new BMapGL.Size(0,-17)}),A.map.addOverlay(A.startPoint),1==A.currentTrack.length)return;var h=new BMapGL.Point(A.currentTrack[A.currentTrack.length-1].longitude,A.currentTrack[A.currentTrack.length-1].latitude);A.endPoint&&A.map.removeOverlay(A.endPoint),setTimeout((function(){A.endPoint=new BMapGL.Marker(h,{icon:new BMapGL.Icon(A.jSPlugin.staticPath+"/imgs/end.png",new BMapGL.Size(30,30))}),A.map.addOverlay(A.endPoint)}),t?0:g)}}},this.centerToTrack=function(e){void 0===e&&(e=15),A.currentTrack.length>0&&(1==A.currentTrack.length?A.map.centerAndZoom(new BMapGL.Point(A.currentTrack[0].longitude,A.currentTrack[0].latitude),e):A.map.centerAndZoom(new BMapGL.Point(A.currentTrack[A.currentTrack.length-1].longitude,A.currentTrack[A.currentTrack.length-1].latitude),e))},this.jSPlugin=e,this.videoWidth=e.width,this.videoHeight=e.height,this.toastCustom=new rI(e,!1),this.currentTrack=[],this.startPoint=null,this.endPoint=null,this.trackAni=null,this.inspectRange=null,this.map=this.initMap()},DI=function(e){var A=this;this.init=function(){var e=A;if(A.videoWidth,A.videoHeight,document.getElementById(A.jSPlugin.id+"-inspect-global-box"))document.getElementById(A.jSPlugin.id+"-inspect-global-box")&&document.getElementById(A.jSPlugin.id+"-wrap").removeChild(document.getElementById(A.jSPlugin.id+"-inspect-global-box")),e.init();else{var t=document.createElement("div");t.id=A.jSPlugin.id+"-inspect-global-box",t.style=";position: absolute; left:0; top: 0; width: 100%; height: 100%; z-index: 10000; background: #fff;",t.innerHTML='
\n
\n
\n
加载中…
\n
\n ',document.getElementById(A.jSPlugin.id+"-wrap").appendChild(t)}},this.deviceErrorInfo=function(e,t){var i=Object.assign({tips:"",refreshBtn:"",refreshShow:!1},e);if(document.getElementById(A.jSPlugin.id+"-no-inspect-box"))document.getElementById(A.jSPlugin.id+"-no-inspect-box")&&document.getElementById(A.jSPlugin.id+"-inspect-global-box").removeChild(document.getElementById(A.jSPlugin.id+"-no-inspect-box")),A.deviceErrorInfo(e,t);else{A.videoHeight;var n=document.createElement("div");n.id=A.jSPlugin.id+"-no-inspect-box",n.style="width:100%;height:100%; background: #ffffff; display: flex; justify-content: center; align-items: center",n.innerHTML='
\n
\n \n
\n
'+i.tips+'
\n \n
\n ",document.getElementById(A.jSPlugin.id+"-inspect-global-box").appendChild(n),document.getElementById(A.jSPlugin.id+"-inspect-device-status-refresh").addEventListener("click",(function(){t&&t()}))}},this.globalContainerToggle=function(e,A){document.getElementById(e)&&(document.getElementById(e).style.display=A?"flex":"none")},this.jSPlugin=e,this.videoWidth=e.width,this.videoHeight=e.height,this.toastCustom=new rI(e,!1),this.init()};function wI(){return wI=Object.assign||function(e){for(var A=1;A\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t'+("warning"===e?'':"")+"\n\t\t\t\t\t\t"+("info"===e?'':"")+"\n\t\t\t\t\t\t"+("error"===e?'':"")+"\n\t\t\t\t\t\t"+("success"===e?'':"")+"\n\t\t\t\t\t\n\t\t\t\t\t"+A+"\n\t\t\t\t
\n\t\t\t
\n\t\t\t",t.appendChild(i)},e}();function FI(){return FI=Object.assign||function(e){for(var A=1;A
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t';var a=document.createElement("img");a.setAttribute("class","ezuikit-image-preview-img"),a.setAttribute("alt",t),a.setAttribute("src",A),a.addEventListener("error",(function(){a.setAttribute("src",i)})),document.body.appendChild(n),n.querySelector(".ezuikit-image-preview-img-main").appendChild(a),document.getElementById(this.id+"-ezuikit-image-preview-operations").addEventListener("click",(function(){document.body.removeChild(n)}))},A.initImage=function(e){var A=this.params,t=A.src,i=A.alt,n=A.fallback,a=document.createElement("img");a.setAttribute("class","ezuikit-image-img"),a.setAttribute("alt",i),a.setAttribute("src",t),a.addEventListener("error",(function(){a.setAttribute("src",n)})),e.appendChild(a)},A.initPreview=function(e){var A=this,t=this.params.showIcon,i=document.createElement("div");i.setAttribute("class","ezuikit-image-mask"),t&&(i.innerHTML='\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t预览\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t'),e.appendChild(i),e.onclick=function(){A.previewImg()}},e}();function kI(){return kI=Object.assign||function(e){for(var A=1;A\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t'+(a?'
'+a+"
":"")+'\n\t\t\t\t\t\t
'+i+"
\n\t\t\t\t\t
\n\t\t\t\t",!document.getElementById(t+"-popover")){var s=document.body;this.params.parentNodeId&&(s=document.getElementById(this.params.parentNodeId)),s.appendChild(o),this.renderPopover(o,r,n)}document.body.addEventListener("click",(function(A){e.addEventListenerFn(A)}))}},A.addEventListenerFn=function(e){var A=this.params.id,t=document.getElementById(A),i=document.getElementById(A+"-popover");t&&e.target!==t&&!t.contains(e.target)&&i&&e.target!==i&&!i.contains(e.target)&&this.hidePopover()},A.hidePopover=function(){var e=this.params.id,A=document.getElementById(e+"-popover");A&&document.body.removeChild(A)},A.renderPopover=function(e,A,t,i,n){e.style.display="block";var a=A.getBoundingClientRect(),r=a.top,o=a.left,s=a.width,g=a.height,l=e.getBoundingClientRect(),c=l.width,d=l.height;i&&(c=i),n&&(d=n);var I=document.body;this.params.parentNodeId&&(I=document.getElementById(this.params.parentNodeId));var C=this.params.arrowPointAtCenter,h=0,u=0,B=e.getElementsByClassName("ezuikit-popover-arrow")[0],f=B.getBoundingClientRect(),E=f.width,x=f.height;if(C){var Q=0,p=0;switch(t){case"top":default:Q=c/2,p=d;break;case"bottom":Q=c/2,p=0;break;case"left":Q=c,p=d/2;break;case"right":Q=0,p=d/2;break;case"topLeft":Q=(s-E)/2,p=d;break;case"topRight":Q=c-(s+E)/2,p=d;break;case"bottomLeft":Q=(s-E)/2,p=0;break;case"bottomRight":Q=c-(s+E)/2,p=0;break;case"leftTop":Q=c,p=(g-x)/2;break;case"leftBottom":Q=c,p=d-(g+x)/2;break;case"rightTop":Q=0,p=(g-10)/2;break;case"rightBottom":Q=0,p=d-(g+x)/2}B.style.left=Q+"px",B.style.top=p+"px"}switch(t){case"top":h=-(d+x),u=(s-c)/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-top");break;case"bottom":h=g-x/2,u=(s-c)/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-bottom");break;case"left":h=(g-d)/2,u=-(c+E/2),e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-left");break;case"right":h=(g-d)/2,u=s-E/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-right");break;case"topLeft":h=-(d+x),u=0,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-topLeft");break;case"topRight":h=-(d+x),u=s-c,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-topRight");break;case"bottomLeft":h=g-x/2,u=0,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-bottomLeft");break;case"bottomRight":h=g-x/2,u=s-c,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-bottomRight");break;case"leftTop":h=0,u=-(c+E/2),e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-leftTop");break;case"leftBottom":h=g-d,u=-(c+E/2),e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-leftBottom");break;case"rightTop":h=0,u=s-E/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-rightTop");break;case"rightBottom":h=g-d,u=s-E/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-rightBottom");break;default:h=-d,u=(s-c)/2,e.setAttribute("class","ezuikit-popover ezuikit-popover-placement-top")}var m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft;e.style.top=r+m+h+"px",e.style.left=o+y+u+"px";var _=e.getBoundingClientRect(),S=I===document.body?{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}:I.getBoundingClientRect(),v=t;_.leftS.right&&(v=(v=v.replace("Left","Right")).replace("left","right")),_.topS.bottom&&(v=(v=v.replace("Bottom","Top")).replace("bottom","top")),v!==t&&this.renderPopover(e,A,v,c,d)},e}();function TI(){return TI=Object.assign||function(e){for(var A=1;A\n
\n\t\t\t\t\t\n \t\n \n\t\t\t\t\t\n
\n
\n \n ';var s=document.createElement("button");s.className="ezuikit-btn ezuikit-cancel-btn",s.innerText=i;var g=document.createElement("button");return g.className="ezuikit-btn ezuikit-ok-btn ezuikit-btn-primary",g.innerText=n,o.querySelector(".ezuikit-popover-buttons").appendChild(s),o.querySelector(".ezuikit-popover-buttons").appendChild(g),this.PopconfirmDom=new PI(TI({},this.params,{content:o.innerHTML})),document.getElementById(this.params.id+"-popover").querySelector(".ezuikit-cancel-btn")&&(document.getElementById(this.params.id+"-popover").querySelector(".ezuikit-cancel-btn").onclick=function(){a?a():e.hide()}),document.getElementById(this.params.id+"-popover").querySelector(".ezuikit-ok-btn")&&(document.getElementById(this.params.id+"-popover").querySelector(".ezuikit-ok-btn").onclick=function(){r?r():e.hide()}),this.PopconfirmDom},A.hide=function(){this.PopconfirmDom.hidePopover()},e}();function MI(){return MI=Object.assign||function(e){for(var A=1;A\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t',document.body.appendChild(A),document.getElementById(this.id+"-ezuikit-video-preview-operations").addEventListener("click",(function(){document.body.removeChild(A)}))},A.initVideo=function(e){var A=this.params,t=A.poster,i=A.fallback,n=document.createElement("img");n.setAttribute("class","ezuikit-video-img"),n.setAttribute("src",t),n.addEventListener("error",(function(){n.setAttribute("src",i)})),e.appendChild(n)},A.initPreview=function(e){var A=this,t=document.createElement("div");t.setAttribute("class","ezuikit-video-mask"),t.innerHTML='\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t',e.appendChild(t),e.onclick=function(){A.previewVideo()}},e}(),GI=function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,inspectRecordId:A,page:0},a=e.env.domain+"/api/service/devicekit/bodycamera/device/trace";oI(a,"GET",n,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})},YI=function(e,A,t,i){var n={accessToken:e.accessToken||e.token.deviceToken.video,deviceSerial:g(e.url).deviceSerial,validateCode:g(e.url).validCode,channelNo:g(e.url).channelNo,evidenceFileType:A},a=e.env.domain+"/api/service/devicekit/common/file/evidence";oI(a,"POST",n,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})},UI=function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,taskId:A},a=e.env.domain+"/api/service/devicekit/opencloud/task/info";oI(a,"GET",n,(function(e){t&&t(e)}),(function(e){}),{"Content-Type":"application/x-www-form-urlencoded"})};var JI=function(){function e(e,A,t,i,n){void 0===A&&(A={}),void 0===n&&(n=function(){}),this.jSPlugin=e,this.currentEventInfo=A,this.inspectInfo=e.Theme.inspect.inspectInfo,this.type=i,this.timer=t,this.startTime=1e3,this.videoRecordingStatus=!0,this.saveSuccessCallback=n,this.init()}var A=e.prototype;return A.init=function(){this.renderEventDetail(),this.eventDetailDomEvent()},A.show=function(){document.getElementById(this.jSPlugin.id+"-inspect-event-detail-wrap").setAttribute("class","inspect-event-detail-wrap show")},A.hide=function(){document.getElementById(this.jSPlugin.id+"-inspect-event-detail-wrap").setAttribute("class","inspect-event-detail-wrap"),document.getElementById(this.jSPlugin.id+"-inspect-event-detail-box").innerHTML=""},A.validationEventTag=function(){return 0==document.getElementById(this.jSPlugin.id+"-event-tag").value.length?(document.getElementById(this.jSPlugin.id+"-event-tag-error").style.display="block",document.getElementById(this.jSPlugin.id+"-event-tag-error").innerHTML="请输入事件标签",document.getElementById(this.jSPlugin.id+"-event-tag").setAttribute("class","ezuikit-input input-has-error"),!1):(document.getElementById(this.jSPlugin.id+"-event-tag-error").style.display="none",document.getElementById(this.jSPlugin.id+"-event-tag").setAttribute("class","ezuikit-input"),!0)},A.renderVideo=function(e,A,t){var i=this;if(document.getElementById(this.jSPlugin.id+"-inspectEventDetail-videoPreview").innerHTML="",1===e||2===e){if(document.getElementById(this.jSPlugin.id+"-inspectEventDetail-videoPreview").innerHTML='\n
\n
\n
\n
\n 视频正在存储中…\n
\n ',1!==this.type){var n=this.currentEventInfo.evidenceId;this.timer.clearTimer("videoRecordingStatusTimer"),this.timer.createInterval("videoRecordingStatusTimer",(function(){UI(i.jSPlugin,n,(function(e){if(e.meta&&200===e.meta.code){var A=e.data,t=A.taskStatus,n=A.fileUrl,a=A.videoCoverPic||i.jSPlugin.staticPath+"/imgs/bg.svg";i.renderVideo(t,a,n)}}))}),1e3)}}else 4===e||5===e||6===e||7===e?(document.getElementById(this.jSPlugin.id+"-inspectEventDetail-videoPreview").innerHTML='\n
\n
\n \n
\n 视频存储失败\n
\n ',this.timer.clearTimer("videoRecordingStatusTimer")):0!==e&&3!==e||(new LI({id:this.jSPlugin.id+"-inspectEventDetail-videoPreview",poster:A,fallback:this.jSPlugin.staticPath+"/imgs/bg.svg",src:t}),this.timer.clearTimer("videoRecordingStatusTimer"))},A.renderEventDetail=function(){var e=this,A=this.currentEventInfo,t=A.evidenceFileType,i=A.fileUrl,n=A.taskStatus,a=A.videoCoverPic,r=document.createElement("div");r.setAttribute("class","inspectEventDetail");var o="";if(o=1===t?a||this.jSPlugin.staticPath+"/imgs/bg.svg":i||this.jSPlugin.staticPath+"/imgs/bg.svg",r.innerHTML='\n
\n
\n \n
\n
'+(1===this.type?"编辑":"")+(0===t?"图片存证":"视频存证")+'
\n
\n
\n '+(0===t?'
\n

图片已取证,请填写存证信息:

\n
\n
':'
\n \n
\n \n
00:00:00
\n
\n \n
\n
\n

视频已取证:

\n
\n
\n
')+'\n \n \n \n ',document.getElementById(this.jSPlugin.id+"-inspect-event-detail-box").appendChild(r),1===this.type?document.getElementById(this.jSPlugin.id+"-inspectEventDetail-content-info-time").innerHTML=""+(1===t?this.currentEventInfo.eventBeginTime+" ~ "+this.currentEventInfo.eventEndTime:this.currentEventInfo.eventTime):(document.getElementById(this.jSPlugin.id+"-inspectEventDetail-content-info-time").innerHTML=(new Date).Format("yyyy-MM-dd hh:mm:ss")+(1===t?" ~ -":""),1===t&&document.getElementById(this.jSPlugin.id+"-video-recording-time")&&this.videoRecordingStatus&&(0===this.type&&document.getElementById(this.jSPlugin.id+"-event-ok").setAttribute("disabled","disabled"),this.timer.createInterval("videoRecordingTimer",(function(){var A,t,i,n;e.startTime&&(document.getElementById(e.jSPlugin.id+"-video-recording-time").innerHTML=(A=e.startTime,t=parseInt(A%864e5/36e5),i=parseInt(A%36e5/6e4),n=parseInt(A%6e4/1e3),(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(n<10?"0"+n:n))),e.startTime+=1e3,e.startTime>e.jSPlugin.inspectRecordingDuration&&(document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").click(),e.timer&&e.timer.clearTimer("videoRecordingTimer"))}),1e3))),1===t){var s=this.currentEventInfo&&this.currentEventInfo.fileUrl;this.renderVideo(n,o,s)}else new RI({id:this.jSPlugin.id+"-inspectEventDetail-picUrl",src:o,fallback:this.jSPlugin.staticPath+"/imgs/fallback.svg",showIcon:!1});this.show()},A.eventDetailDomEvent=function(){var e=this,A=this.currentEventInfo,t=A.evidenceFileType,i=A.evidenceId;document.getElementById(this.jSPlugin.id+"-event-cancel").addEventListener("click",(function(A){e.cancelPopover=new NI({id:e.jSPlugin.id+"-event-cancel",content:"确定要取消吗?"+(1===e.type?"取消后编辑的内容将不会保存。":"取消后对应存证也将删除。"),placement:"topRight",arrowPointAtCenter:!0,onCancel:function(){e.cancelPopover.hide()},onConfirm:function(){1===t&&(e.videoRecordingStatus&&0===e.type&&(e.timer&&e.timer.clearTimer("videoRecordingTimer"),e.startTime=1e3,document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").click()),e.timer.clearTimer("videoRecordingStatusTimer")),e.cancelPopover.hide(),e.hide()}})})),document.getElementById(this.jSPlugin.id+"-event-ok").addEventListener("click",(function(){if(e.validationEventTag()){var A=e.currentEventInfo,t=A.evidenceFileType,i=A.evidenceId,n=e.inspectInfo,a=n.inspectRecordId,r=n.inspectPerson,o=document.getElementById(e.jSPlugin.id+"-inspectEventDetail-content-info-time").innerHTML,s={inspectRecordId:a,depositaryOfficer:r,evidenceFileId:i,evidenceFileType:t,eventType:document.getElementById(e.jSPlugin.id+"-event-tag").value,eventRemark:document.getElementById(e.jSPlugin.id+"-event-remark").value};1===t&&(s.eventBeginTime=o.split("~")[0].trim(),s.eventEndTime=o.split("~")[1].trim(),e.timer.clearTimer("videoRecordingStatusTimer")),0===t&&(s.eventTime=o),1===e.type&&(s.inspectEventId=e.currentEventInfo.inspectEventId,delete s.depositaryOfficer,delete s.eventTime,delete s.eventBeginTime,delete s.eventEndTime,delete s.evidenceFileId,delete s.evidenceFileType,function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,inspectRecordId:"",inspectEventId:"",eventType:"",eventRemark:""},a=Object.assign(n,A),r=e.env.domain+"/api/service/devicekit/bodycamera/inspect/event/update";oI(r,"POST",a,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})}(e.jSPlugin,s,(function(A){A.meta&&200===A.meta.code?(e.hide(),e.saveSuccessCallback&&e.saveSuccessCallback({eventType:s.eventType,eventRemark:s.eventRemark})):new bI({type:"error",content:"保存失败,"+(A.meta&&A.meta.message||"请稍后重试!"),wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){new bI({type:"error",content:"保存失败,请稍后重试!",wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}))),0===e.type&&function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,inspectRecordId:"",eventType:"",evidenceFileId:"",eventTime:"",eventBeginTime:"",eventEndTime:"",depositaryOfficer:"",eventRemark:"",evidenceFileType:""},a=Object.assign(n,A),r=e.env.domain+"/api/service/devicekit/bodycamera/inspect/event";oI(r,"POST",a,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})}(e.jSPlugin,s,(function(A){A.meta&&200===A.meta.code?(e.hide(),e.saveSuccessCallback&&e.saveSuccessCallback()):new bI({type:"error",content:"保存失败,"+(A.meta&&A.meta.message||"请稍后重试!"),wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){new bI({type:"error",content:"保存失败,请稍后重试!",wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}))}})),document.getElementById(this.jSPlugin.id+"-inspectEventDetail-back").addEventListener("click",(function(){e.backPopover=new NI({id:e.jSPlugin.id+"-inspectEventDetail-back",content:"确定要返回吗?"+(1===e.type?"返回后编辑的内容将不会保存。":"返回后对应存证也将删除。"),placement:"bottomRight",arrowPointAtCenter:!0,onCancel:function(){e.backPopover.hide()},onConfirm:function(){1===t&&(e.videoRecordingStatus&&0===e.type&&(e.timer&&e.timer.clearTimer("videoRecordingTimer"),e.startTime=1e3,document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").click()),e.timer.clearTimer("videoRecordingStatusTimer")),e.backPopover.hide(),e.hide()}})})),document.getElementById(this.jSPlugin.id+"-video-recording-stop-btn")&&document.getElementById(this.jSPlugin.id+"-video-recording-stop-btn").addEventListener("click",(function(){document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").setAttribute("class","inspectEventDetail-stop-btn ezuikit-btn ezuikit-btn-loading"),document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").querySelector(".ezuikit-btn-loading-icon").style.display="inline-block",function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,taskId:A},a=e.env.domain+"/api/v3/open/cloud/video/frame/stop";oI(a,"POST",n,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})}(e.jSPlugin,i,(function(A){document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn")&&(document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").setAttribute("class","inspectEventDetail-stop-btn ezuikit-btn"),document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").querySelector(".ezuikit-btn-loading-icon").style.display="none"),A.meta&&200===A.meta.code?UI(e.jSPlugin,i,(function(A){if(A.meta&&200===A.meta.code){var t=A.data,i=t.taskStatus,n=t.fileUrl,a=t.videoCoverPic;e.timer&&e.timer.clearTimer("videoRecordingTimer");var r=a||e.jSPlugin.staticPath+"/imgs/bg.svg";e.renderVideo(i,r,n),document.getElementById(e.jSPlugin.id+"-inspectEventDetail-content-video-info").style.display="block",document.getElementById(e.jSPlugin.id+"-inspectEventDetail-content-video-timer").style.display="none";var o=document.getElementById(e.jSPlugin.id+"-inspectEventDetail-content-info-time").innerHTML;document.getElementById(e.jSPlugin.id+"-inspectEventDetail-content-info-time").innerHTML=o.split("~")[0]+" ~ "+(new Date).Format("yyyy-MM-dd hh:mm:ss"),e.videoRecordingStatus=!1,document.getElementById(e.jSPlugin.id+"-event-ok").removeAttribute("disabled")}})):new bI({type:"error",content:"停止录制失败,请稍后重试!",wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn")&&(document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").setAttribute("class","inspectEventDetail-stop-btn ezuikit-btn"),document.getElementById(e.jSPlugin.id+"-video-recording-stop-btn").querySelector(".ezuikit-btn-loading-icon").style.display="none"),new bI({type:"error",content:"停止录制失败,请稍后重试!",wrapNode:document.getElementById(e.jSPlugin.id+"-inspect-event-box"),top:40})}))})),document.getElementById(this.jSPlugin.id+"-event-tag").addEventListener("input",(function(){e.validationEventTag()})),document.getElementById(this.jSPlugin.id+"-event-remark").addEventListener("input",(function(e){var A=e.target.value;e.target.parentNode.setAttribute("data-count",A.length+" / 100")})),document.getElementById(this.jSPlugin.id+"-event-remark").addEventListener("focus",(function(e){e.target.parentNode.setAttribute("class","ezuikit-input-textarea ezuikit-input-textarea-show-count ezuikit-input-textarea-focus")})),document.getElementById(this.jSPlugin.id+"-event-remark").addEventListener("blur",(function(e){e.target.parentNode.setAttribute("class","ezuikit-input-textarea ezuikit-input-textarea-show-count")}))},e}(),HI=function(){function e(e,A,t){var i=this;this.hideDelEConfirm=function(){for(var e=0;e\n

巡检事件

\n
\n
\n \n \n 图片存证\n \n \n \n 视频存证\n
\n
\n \n \n \n
\n
\n \n
\n \n
\n \n

暂无事件

\n
\n \n \n
\n

巡检事件

\n
\n
\n ',document.getElementById(i.jSPlugin.id+"-wrap").appendChild(A),i.jSPlugin.Theme.decoderState.state.play?i.enableEvidenceBtn():i.disableEvidenceBtn(),document.getElementById(i.jSPlugin.id+"-inspect-event-img").onclick=function(){i.listLoading||i.startEvidence||(i.startEvidence=!0,i.hideDelEConfirm(),document.getElementById(i.jSPlugin.id+"-inspect-event-img").setAttribute("class","ezuikit-btn ezuikit-btn-primary ezuikit-btn-loading"),document.getElementById(i.jSPlugin.id+"-inspect-event-img").querySelector(".ezuikit-btn-loading-icon").style.display="inline-block",YI(i.jSPlugin,0,(function(e){i.startEvidence=!1,document.getElementById(i.jSPlugin.id+"-inspect-event-img").setAttribute("class","ezuikit-btn ezuikit-btn-primary"),document.getElementById(i.jSPlugin.id+"-inspect-event-img").querySelector(".ezuikit-btn-loading-icon").style.display="none",e.meta&&200===e.meta.code?new JI(i.jSPlugin,e.data,i.timer,0,(function(){i.initEvent(),new bI({type:"success",content:"保存成功",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})})):new bI({type:"error",content:"图片存证失败,"+(e.meta&&e.meta.message||"请稍后重试!"),wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){i.startEvidence=!1,document.getElementById(i.jSPlugin.id+"-inspect-event-img").setAttribute("class","ezuikit-btn ezuikit-btn-primary"),document.getElementById(i.jSPlugin.id+"-inspect-event-img").querySelector(".ezuikit-btn-loading-icon").style.display="none",new bI({type:"error",content:"图片存证失败,请稍后重试!",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})})))},document.getElementById(i.jSPlugin.id+"-inspect-event-video").onclick=function(){i.listLoading||i.startEvidence||(i.startEvidence=!0,i.hideDelEConfirm(),document.getElementById(i.jSPlugin.id+"-inspect-event-video").setAttribute("class","ezuikit-btn ezuikit-btn-primary ezuikit-btn-loading"),document.getElementById(i.jSPlugin.id+"-inspect-event-video").querySelector(".ezuikit-btn-loading-icon").style.display="inline-block",YI(i.jSPlugin,1,(function(e){i.startEvidence=!1,document.getElementById(i.jSPlugin.id+"-inspect-event-video").setAttribute("class","ezuikit-btn ezuikit-btn-primary"),document.getElementById(i.jSPlugin.id+"-inspect-event-video").querySelector(".ezuikit-btn-loading-icon").style.display="none",e.meta&&200===e.meta.code?new JI(i.jSPlugin,e.data,i.timer,0,(function(){i.initEvent(),new bI({type:"success",content:"保存成功",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})})):new bI({type:"error",content:"视频存证失败,"+(e.meta&&e.meta.message||"请稍后重试!"),wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){i.startEvidence=!1,document.getElementById(i.jSPlugin.id+"-inspect-event-video").setAttribute("class","ezuikit-btn ezuikit-btn-primary"),document.getElementById(i.jSPlugin.id+"-inspect-event-video").querySelector(".ezuikit-btn-loading-icon").style.display="none",new bI({type:"error",content:"视频存证失败,请稍后重试!",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})})))},document.getElementById(i.jSPlugin.id+"-inspect-event-list-refresh").onclick=function(){i.listLoading||i.startEvidence||(i.hideDelEConfirm(),document.getElementById(i.jSPlugin.id+"-inspect-loading").style.display="block",document.getElementById(i.jSPlugin.id+"-inspect-event-list-wrap").style.display="none",document.getElementById(i.jSPlugin.id+"-inspect-event-list-nodata-wrap").style.display="none",e.initEvent())}}},this.renderList=function(e){document.getElementById(i.jSPlugin.id+"-inspect-loading").style.display="none";var A=e.data||[];if(A.length>0){var t=function(t){var n=document.createElement("div");n.setAttribute("class","inspect-event-item");var a=A[t];n.setAttribute("id",i.jSPlugin.id+"-inspect-event-item-"+a.inspectEventId),n.innerHTML="",document.getElementById(i.jSPlugin.id+"-inspect-event-list-wrap-main").appendChild(n);var r=document.createElement("div");r.setAttribute("class","inspect-event-item-header-wrap");var o=void 0;1==a.evidenceFileType&&(o=a.eventBeginTime.split(" ")[1]+"~"+a.eventEndTime.split(" ")[1]),0==a.evidenceFileType&&(o=""+a.eventTime.split(" ")[1]);var s="";1===a.evidenceFileType&&(1===a.taskStatus||2===a.taskStatus?s="storage":4===a.taskStatus||5===a.taskStatus||6===a.taskStatus||7===a.taskStatus?s="storage-error":0!==a.taskStatus&&3!==a.taskStatus||(s="storage-success")),r.innerHTML='\n
\n
\n \n \n \n \n \n \n \n \n \n '+(o||"-")+'\n
\n
\n \n \n \n \n
\n
\n ',n.appendChild(r),r.onclick=function(e){"none"===r.querySelector(".inspect-event-item-header-toggle-up").style.display?(r.querySelector(".inspect-event-item-header-toggle-up").style.display="block",r.querySelector(".inspect-event-item-header-toggle-down").style.display="none",n.querySelector(".inspect-event-item-body").style.display="block"):(r.querySelector(".inspect-event-item-header-toggle-up").style.display="none",r.querySelector(".inspect-event-item-header-toggle-down").style.display="block",n.querySelector(".inspect-event-item-body").style.display="none")};var g=document.createElement("div");g.setAttribute("class","inspect-event-item-body"),g.style.display="none";var l=(1===a.evidenceFileType?a.videoCoverPic:a.fileUrl)||i.jSPlugin.staticPath+"/imgs/bg.svg";g.innerHTML='\n
\n
\n
\n '+a.eventType+"\n
\n
\n ",n.appendChild(g),1==a.evidenceFileType&&(1===a.taskStatus||2===a.taskStatus?document.getElementById(i.jSPlugin.id+"-inspect-view-"+a.inspectEventId).innerHTML='\n
\n
\n
\n
\n 视频正在存储中…\n
\n ':4===a.taskStatus?document.getElementById(i.jSPlugin.id+"-inspect-view-"+a.inspectEventId).innerHTML='\n
\n
\n \n
\n 视频存储失败\n
\n ':0!==a.taskStatus&&3!==a.taskStatus||new LI({id:i.jSPlugin.id+"-inspect-view-"+a.inspectEventId,src:a.fileUrl,poster:l,fallback:i.jSPlugin.staticPath+"/imgs/bg.svg"})),0==a.evidenceFileType&&new RI({id:i.jSPlugin.id+"-inspect-view-"+a.inspectEventId,src:l,fallback:i.jSPlugin.staticPath+"/imgs/bg.svg",showIcon:!1});var c=document.createElement("div");c.setAttribute("class","inspect-event-item-body-info-opr");var d=document.createElement("span");d.setAttribute("class","inspect-event-item-body-info-opr-icon"),d.innerHTML='\n \n ',c.appendChild(d);var I=document.createElement("span");I.setAttribute("class","inspect-event-item-body-info-opr-icon"),I.id=i.jSPlugin.id+"-inspect-event-del-"+a.inspectEventId,I.innerHTML=' \n \n ',c.appendChild(I),d.onclick=function(e){i.startEvidence||new JI(i.jSPlugin,a,i.timer,1,(function(e){new bI({type:"success",content:"保存成功",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40}),a=Object.assign(a,e),document.getElementById(i.jSPlugin.id+"-inspect-event-item-"+a.inspectEventId).querySelector(".inspect-event-item-body-info-tag-label").innerHTML=a.eventType,document.getElementById(i.jSPlugin.id+"-inspect-event-item-"+a.inspectEventId).querySelector(".inspect-event-item-body-info-tag-label").setAttribute("title",a.eventType)}))},I.onclick=function(e){i.startEvidence||(i.delE=new NI({id:i.jSPlugin.id+"-inspect-event-del-"+a.inspectEventId,content:"确定要删除该事件吗?",placement:"topRight",arrowPointAtCenter:!0,onCancel:function(){i.delE.hide()},onConfirm:function(){!function(e,A,t,i){var n={accessToken:e.accessToken||e.token.httpToken.url,inspectEventId:""},a=Object.assign(n,A),r=e.env.domain+"/api/service/devicekit/bodycamera/inspect/event/delete";oI(r,"POST",a,(function(e){t&&t(e)}),(function(e){i&&i(e)}),{"Content-Type":"application/x-www-form-urlencoded"})}(i.jSPlugin,{inspectEventId:a.inspectEventId},(function(e){e.meta&&200===e.meta.code?(i.delE.hide(),i.initEvent(),setTimeout((function(){new bI({type:"success",content:"删除成功",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})}),10)):new bI({type:"error",content:"删除失败,"+(e.meta&&e.meta.message||"请稍后重试!"),wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})}),(function(){new bI({type:"error",content:"删除失败,请稍后重试!",wrapNode:document.getElementById(i.jSPlugin.id+"-inspect-event-box"),top:40})}))}}),i.delEConfirmList.push(i.delE))},n.querySelector(".inspect-event-item-body-info").appendChild(c),document.getElementById(i.jSPlugin.id+"-inspect-event-list-wrap").onscroll=function(A){var t=A.target;i.hideDelEConfirm(),t.scrollTop+t.offsetHeight>=t.scrollHeight-48&&!i.listLoading&&(e.start+1)*e.size\n \n ',t.onclick=function(e){setTimeout((function(){A.inspectMapWin.centerToTrack(18)}),100)},e.getContainer().appendChild(t),t},new e},this.initSwithcBtn=function(){var e=document.createElement("div");e.id=a.jSPlugin.id+"-miniSwitch",e.style="cursor: pointer;position: absolute; bottom: 106px; right: "+(a.jSPlugin.inspectVideoWidth+10)+"px; z-index: 999;",e.innerHTML="
\n \n 大小窗切换\n \n \n \n \n \n
',document.getElementById(a.jSPlugin.id+"-wrap").appendChild(e),document.getElementById(a.jSPlugin.id+"-miniSwitch-btn").onclick=function(){!function(e,A,t){var i=!0,n=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return bg(t)&&(i="leading"in t?!!t.leading:i,n="trailing"in t?!!t.trailing:n),Uc(e,A,{leading:i,maxWait:A,trailing:n})}((function(){return a.miniRecSwitchClick()}),1e3)()}},this.initMiniWinToggleBtn=function(){var e=.3333*a.videoWidth,A=.3333*a.videoHeight,t=document.createElement("div");t.id=a.jSPlugin.id+"-miniToggle",t.style="cursor: pointer;position: absolute; bottom: "+(A/2+96-30)+"px; right: "+(a.jSPlugin.inspectVideoWidth+e)+"px; z-index: 999; height:60px; box-sizing: border-box; padding-top: 20px; text-align: center; width:20px; overflow: hidden; background: #000000; border-radius: 2px 0px 0px 2px; opacity: 0.7;",t.innerHTML="
\n \n \n \n \n
',document.getElementById(a.jSPlugin.id+"-wrap").appendChild(t),document.getElementById(a.jSPlugin.id+"-miniToggle").onclick=function(){a.miniWinToggleClick()}},this.init=function(){a.initSwithcBtn(),a.initMiniWinToggleBtn()},this.setStyleListByIds=function(e){e.map((function(e){var A=document.getElementById(e.id);A&&Object.keys(e.styleList).map((function(t){A.style[t]=e.styleList[t]}))}))},this.jSPlugin=e,this.inspectMode=A,this.inspectMapWin=t,this.changeInspectMode=i,this.videoWidth=e.width,this.videoHeight=e.height,this.minWinStatus="open",this.decoderState=n,this.ZoomControl=new BMapGL.ZoomControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT,offset:new BMapGL.Size(40,50)}),this.LocationControl=this.createLocationControl(),this.NavigationControl3D=new BMapGL.NavigationControl3D({anchor:BMAP_ANCHOR_BOTTOM_LEFT,offset:new BMapGL.Size(28,105)}),this.init()}var A=e.prototype;return A.miniWinToggleClick=function(){var e=.3333*this.jSPlugin.width;"open"===this.minWinStatus?(this.setStyleListByIds([{id:"video"===this.inspectMode?this.jSPlugin.id+"-mapbox":""+this.jSPlugin.id,styleList:{width:"0px"}},{id:this.jSPlugin.id+"-miniSwitch",styleList:{display:"none"}},{id:this.jSPlugin.id+"-miniToggle",styleList:{right:this.jSPlugin.inspectVideoWidth+"px"}},{id:this.jSPlugin.id+"-min-win-close-icon",styleList:{display:"none"}},{id:this.jSPlugin.id+"-min-win-open-icon",styleList:{display:"inline-block"}}]),this.minWinStatus="close"):(this.setStyleListByIds([{id:"video"===this.inspectMode?this.jSPlugin.id+"-mapbox":""+this.jSPlugin.id,styleList:{width:e+"px"}},{id:this.jSPlugin.id+"-miniSwitch",styleList:{display:"block"}},{id:this.jSPlugin.id+"-miniToggle",styleList:{right:this.jSPlugin.inspectVideoWidth+e+"px"}},{id:this.jSPlugin.id+"-min-win-close-icon",styleList:{display:"inline-block"}},{id:this.jSPlugin.id+"-min-win-open-icon",styleList:{display:"none"}}]),this.minWinStatus="open")},A.miniRecSwitchClick=function(){var e=this,A=.3333*this.jSPlugin.width,t=.3333*this.jSPlugin.height;"video"===this.inspectMode?(this.jSPlugin.Zoom&&this.jSPlugin.Zoom.stopZoom(),this.setStyleListByIds([{id:this.jSPlugin.id+"-mapbox",styleList:{width:this.jSPlugin.width+"px",height:this.jSPlugin.height+"px",marginBottom:"-40px"}},{id:this.jSPlugin.id+"-ez-iframe-footer-container",styleList:{top:this.jSPlugin.height+"px"}},{id:""+this.jSPlugin.id,styleList:{position:"absolute",zIndex:"100",bottom:"96px",right:this.jSPlugin.inspectVideoWidth+"px",overflow:"hidden"}}]),this.jSPlugin.Theme.inspect.reSizeVideo(A,t),this.inspectMode="map",this.changeInspectMode("map"),this.inspectMapWin.map.addControl(this.NavigationControl3D),this.inspectMapWin.map.addControl(this.LocationControl),this.inspectMapWin.map.addControl(this.ZoomControl),this.inspectMapWin.map.addOverlay(this.inspectMapWin.inspectRange),document.getElementById(this.jSPlugin.id+"-loading-item-btn-wrap")&&this.setStyleListByIds([{id:this.jSPlugin.id+"-loading-item-btn",styleList:{display:"none"}},{id:this.jSPlugin.id+"-loading-item-btn-svg",styleList:{display:"block"}},{id:this.jSPlugin.id+"-loading-item-btn-wrap",styleList:{border:"none",width:"32px",height:"14px"}}]),setTimeout((function(){e.inspectMapWin.centerToTrack(18)}),100)):(this.setStyleListByIds([{id:this.jSPlugin.id+"-mapbox",styleList:{width:A+"px",height:t+"px",marginBottom:"0"}},{id:this.jSPlugin.id+"-ez-iframe-footer-container",styleList:{top:"0px"}},{id:""+this.jSPlugin.id,styleList:{position:"relative",zIndex:"0",bottom:"0",right:"0"}}]),this.jSPlugin.Theme.inspect.reSizeVideo(this.jSPlugin.width,this.jSPlugin.height),this.inspectMode="video",this.changeInspectMode("video"),this.inspectMapWin.map.removeControl(this.ZoomControl),this.inspectMapWin.map.removeControl(this.NavigationControl3D),this.inspectMapWin.map.removeControl(this.LocationControl),this.inspectMapWin.map.removeOverlay(this.inspectMapWin.inspectRange),document.getElementById(this.jSPlugin.id+"-loading-item-btn-wrap")&&this.setStyleListByIds([{id:this.jSPlugin.id+"-loading-item-btn",styleList:{display:"block"}},{id:this.jSPlugin.id+"-loading-item-btn-svg",styleList:{display:"none"}},{id:this.jSPlugin.id+"-loading-item-btn-wrap",styleList:{border:"1px solid rgb(255, 255, 255)",width:"80px",height:"32px",color:"#fff","text-align":"center","line-height":"32px","font-size":"14px"}}]),setTimeout((function(){e.inspectMapWin.centerToTrack()}),100),this.jSPlugin.Zoom&&this.decoderState.state.play&&this.jSPlugin.Zoom.startZoom()),this.setStyleListByIds([{id:this.jSPlugin.id+"-wrap",styleList:{width:this.jSPlugin.width+this.jSPlugin.inspectVideoWidth+"px",height:this.jSPlugin.height+this.jSPlugin.inspectVideoHeight+"px"}}])},e}(),OI={customConfig:{defaultMicro:0,defaultPlay:0,maxTalkTime:0,bellPoster:0,maxBellTime:0,inspectInfo:{color:"#000000",backgroundColor:"#ffffff",activeColor:"#1890FF",btnList:[{btnKey:"inspectName",iconId:"inspectName",part:"left",defaultActive:0,isrender:1,color:"#262626"},{btnKey:"inspectBeginTime",iconId:"inspectBeginTime",part:"left",defaultActive:0,isrender:1,color:"#262626"},{btnKey:"inspectPerson",iconId:"inspectPerson",part:"right",defaultActive:0,isrender:1,color:"#262626"}]}},header:{color:"#2c2c2c",backgroundColor:"rgba(0,0,0,0.8)",activeColor:"#1890FF",btnList:[{btnKey:"deviceName",iconId:"deviceName",part:"left",defaultActive:0,isrender:1,color:"#ffffff"},{btnKey:"inspectTime",iconId:"inspectTime",part:"left",defaultActive:0,isrender:1,color:"#ffffff"},{btnKey:"signalType",iconId:"signalType",part:"right",defaultActive:0,isrender:1,color:"#ffffff"},{btnKey:"batteryStatus",iconId:"batteryStatus",part:"right",defaultActive:0,isrender:1,color:"#ffffff"}]},footer:{color:"#ffffff",backgroundColor:"#000000",activeColor:"blue",btnList:[{btnKey:"talk",iconId:"talk",part:"left",defaultActive:1,isrender:1,backgroundColor:"#cccccc"},{btnKey:"sound",iconId:"sound",part:"left",defaultActive:1,isrender:1,backgroundColor:"#cccccc"}]}};function VI(e,A,t){return A&&function(e,A){for(var t=0;t2.0X\n
\n \n \n '+this.jSPlugin.i18n.t("ZOOM_ADD")+'\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n \n \n '+this.jSPlugin.i18n.t("ZOOM_SUB")+'\n \n \n \n \n \n \n \n \n \n \n
\n \n ';t.innerHTML=r,document.getElementById(e.id+"-audioControls-left")&&(document.getElementById(e.id+"-audioControls-left").parentNode.appendChild(t),document.getElementById(e.id+"-addScale").onclick=function(){A.addScale()},document.getElementById(e.id+"-subScale").onclick=function(){A.subScale()}),this._event()}var A=e.prototype;return A._event=function(){var e=this,A=setInterval((function(){var t=document.getElementById(e.jSPlugin.id+"-container-0");clearInterval(A),e.jSPlugin.isMobile?t&&(t.addEventListener("touchstart",(function(A){return e.onTouchstart(A)})),t.addEventListener("touchend",(function(A){return e.onTouchend(A)}))):t&&(t.addEventListener("mousedown",(function(A){return e.onMouseDown(A)})),t.addEventListener("mouseup",(function(A){return e.onMouseUp(A)})))}),100)},A.onMouseDown=function(e){if(1===this.currentScale)return!1;this.moveX=e.clientX,this.moveY=e.clientY},A.onMouseUp=function(e){var A=this.currentPosition;if(1===this.currentScale)return!1;A.left=A.left-(e.clientX-this.moveX),A.top=A.top-(e.clientY-this.moveY),this.doScale()},A.onTouchstart=function(e){if(1===this.currentScale)return!1;if(this.jSPlugin.use3DZoom||1===this.currentScale)return!1;if(!this.jSPlugin.beforeMobileZoomVerify())return!1;if(!this.inited){var A=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=A.width,this.videoHeight=A.height,this.currentPosition.left=0,this.currentPosition.top=0,this.isMobileFullScreen?(this.currentPosition.right=A.height,this.currentPosition.bottom=A.width):(this.currentPosition.right=A.width,this.currentPosition.bottom=A.height),this.inited=!0}var t=e.touches[0];if(t){var i={clientX:0,clientY:0};i.clientX=t.clientX,i.clientY=t.clientY,this.point1=i}},A.onTouchend=function(e){var A=this,t=this.currentPosition;if(1===this.currentScale)return!1;var i=e.changedTouches[0];this.isMobileFullScreen?(t.left=t.left-(i.clientY-A.point1.clientY),t.top=t.top+(i.clientX-A.point1.clientX)):(t.left=t.left-(i.clientX-A.point1.clientX),t.top=t.top-(i.clientY-A.point1.clientY)),A.doScale()},A.renderDot=function(){var e=this.currentScale;document.getElementById(this.jSPlugin.id+"-scale-value")&&(document.getElementById(this.jSPlugin.id+"-scale-value").innerHTML=e+".0X"),document.getElementById(this.jSPlugin.id+"-line-dot")&&(document.getElementById(this.jSPlugin.id+"-line-dot").style.height=(e-1)/7*100+"%"),document.getElementById(this.jSPlugin.id+"-scale-body-line-dot")&&(document.getElementById(this.jSPlugin.id+"-scale-body-line-dot").style.bottom="calc("+(e-1)/7*100+"% - 3px)")},A.getTopMostElement=function(e,A,t){var i,n=e?e.getBoundingClientRect():null,a=A?A.getBoundingClientRect():null,r=t?t.getBoundingClientRect():null;if(!n&&!a&&!r)return null;if(!n)return a.top1?1.25:.75),A.right=A.right*n*(n>1?1.25:.75),this.info.width=i.width,this.videoWidth=i.width*(n>1.25?1:.75)*this.dpr}if(i.height!=this.info.height){var a=parseFloat(i.height/this.info.height);A.top=A.top*a*(a>1?1.25:.75),A.bottom=A.bottom*a*(a>1?1.25:.75),this.info.height=i.height,this.videoHeight=i.height*(a>1?1.25:.75)*this.dpr}A.left=A.left+.5*(A.right-A.left-this.videoWidth/t),A.left<=0?A.left=0:A.left>this.videoWidth-this.videoWidth/t&&(A.left=this.videoWidth-this.videoWidth/t),A.right=A.left+this.videoWidth/t,A.top=A.top+.5*(A.bottom-A.top-this.videoHeight/t),A.top<=0?A.top=0:A.top>this.videoHeight-this.videoHeight/t&&(A.top=this.videoHeight-this.videoHeight/t),A.bottom=A.top+this.videoHeight/t,A.left=parseInt(A.left,10),A.right=parseInt(A.right,10),A.top=parseInt(A.top,10),A.bottom=parseInt(A.bottom,10);try{A.left=8?(this.jSPlugin.Message&&this.jSPlugin.Message.default(this.jSPlugin.i18n.t("ZOOM_ADD_MAX"),document.getElementById(""+this.jSPlugin.id)),!1):(this.currentScale=this.currentScale+e,this.currentScale>8?(this.jSPlugin.Message&&this.jSPlugin.Message.default(this.jSPlugin.i18n.t("ZOOM_LIMIT_MAX"),document.getElementById(""+this.jSPlugin.id)),!1):void this.doScale())},A.subScale=function(e){return void 0===e&&(e=1),this.jSPlugin.eventEmitter&&this.jSPlugin.eventEmitter.emit("zoomSub",{eventType:"zoomSub",code:1,target:this,msg:"执行缩小"}),this.currentScale<=1?(this.jSPlugin.Message&&this.jSPlugin.Message.default(this.jSPlugin.i18n.t("ZOOM_SUB_MIN"),document.getElementById(""+this.jSPlugin.id)),!1):(this.currentScale=this.currentScale-e,this.currentScale<1?(this.jSPlugin.Message&&this.jSPlugin.Message.default(this.jSPlugin.i18n.t("ZOOM_LIMIT_MIN"),document.getElementById(""+this.jSPlugin.id)),!1):void this.doScale())},A._JSPlayM4_SetDisplayRegion=function(e,A,t,i,n){this.jSPlugin&&this.jSPlugin.jSPlugin&&this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(e,A,t,i,n,this.isMobileFullScreen)},VI(e,[{key:"isMobileFullScreen",get:function(){return!!(d()&&this.jSPlugin.Theme&&this.jSPlugin.Theme.decoderState&&this.jSPlugin.Theme.decoderState.state.expend)}}]),e}(),WI=function(e){var A="";return Object.keys(e).map((function(t,i){A+=t+":"+e[t]+(i\n \n ':""+e+"":null},A.renderBatteryStatus=function(e){return e&&0!=e?'\n
\n '+e+'%\n
\n
\n
\n \n \n \n
\n ':null},A.renderInspectTime=function(e){if(!e)return null;var A,t,i,n,a=e.split(" "),r=a[0].split("-"),o=a[1].split(":"),s=new Date(r[0],r[1]-1,r[2],o[0],o[1],o[2]),g=(new Date).getTime()-new Date(s).getTime();return'\n \n '+(A=g,t=parseInt(A%864e5/36e5),i=parseInt(A%36e5/6e4),n=parseInt(A%6e4/1e3),(t<10?"0"+t:t)+":"+(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+"\n ")},A.matchBtn=function(e,A){var t=this,i=this.themeData,n=i.customConfig,a=i.header,r=i.footer,o=n.inspectInfo,s={title:"",id:"",domString:"",color:"#FFFFFF",activeColor:"#FFFFFF",onclick:function(){},onmoveleft:function(){},onmoveright:function(){},onremove:function(){}},g=o.btnList.findIndex((function(A){return A.iconId===e}));switch(-1!==g?(s.color=o.color,s.backgroundColor=o.backgroundColor,s.activeColor=o.activeColor):-1!==(g=a.btnList.findIndex((function(A){return A.iconId===e})))?(s.color=a.color,s.backgroundColor=a.backgroundColor,s.activeColor=a.activeColor):(s.color=r.color,s.backgroundColor=r.backgroundColor,s.activeColor=r.activeColor),e){case"inspectName":return s.title="巡检名称",s.id=e,s.domString='巡检名称',s.onclick=function(){},s;case"inspectBeginTime":return s.title="巡检开始时间",s.id=e,s.domString='巡检开始时间:-',s.onclick=function(){},s;case"inspectPerson":return s.title="本地巡检员",s.id=e,s.domString='本地巡检员:-',s.onclick=function(){},s;case"deviceName":return s.title="设备名称",s.id=e,s.domString='设备名称',s.onclick=function(){},s;case"inspectTime":return s.title="巡检时长",s.id=e,s.domString='巡检时长:-',s.onclick=function(){},s;case"signalType":return s.title="信号类型",s.id=e,s.domString='',s.onclick=function(){},s;case"batteryStatus":return s.title="设备电量",s.id=e,s.domString='',s.onclick=function(){},s;case"talk":return s.title="对讲",s.id=e,s.domString='
对讲',s.onclick=function(){var e=t.decoderState.state,A=e.talk,i=e.sound;if(e.play)if(A){t.setDecoderState({talk:!1}),t.jSPlugin.Talk.stopTalk();var n=Hc(t.themeData.footer.btnList,(function(e){return"sound"===e.iconId&&1===e.isrender&&1===e.defaultActive}))>-1;t.themeData&&n&&t.jSPlugin.openSound()}else t.setDecoderState({talk:!0}),t.jSPlugin.Talk.startTalk((function(e){i&&!e&&(t.jSPlugin.closeSound(),t.setDecoderState({sound:!1}))}))},s;case"sound":return s.title="音量",s.id=e,s.domString='\n \n \n \n \n 音量',s.onclick=function(){var e=t.decoderState.state,A=e.play,i=e.sound,n=e.talk;A&&!n&&(i?(t.jSPlugin.closeSound(),t.setDecoderState({sound:!1})):t.jSPlugin.openSound())},s;default:return s}},A.renderInspectInfo=function(e,A){var t=this.matchBtn(e,A),i=document.createElement("sapn");i.innerHTML=""+t.domString,"left"===A.part?document.getElementById(this.jSPlugin.id+"-inspectInfoControl-left").appendChild(i):document.getElementById(this.jSPlugin.id+"-inspectInfoControl-right").appendChild(i)},A.renderHeader=function(e,A){var t=this.matchBtn(e,A),i=document.createElement("span");i.className=this.jSPlugin.id+"-header-content",i.style="display: flex; align-items: center; ",i.innerHTML="\n "+t.domString+"\n ","left"===A.part?document.getElementById(this.jSPlugin.id+"-headControl-left").appendChild(i):document.getElementById(this.jSPlugin.id+"-headControl-right").appendChild(i)},A.renderFooter=function(e,A){var t=this,i=this.matchBtn(e,A),n=this.videoWidth/6,a=document.createElement("div");a.className="theme-icon-item",this.jSPlugin.isWebConsole?a.style="padding:0 "+.1*n+"px;":a.style="padding:0 "+.1*n+"px;cursor: pointer;",a.innerHTML='
'+i.domString+"
",a.onclick=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;i.onclick(e)},i.onmouseenter&&(a.onmouseenter=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;i.onmouseenter(e)}),i.onmouseleave&&(a.onmouseleave=function(e){if(t.decoderState.state.isEditing||!t.activeThemeStatus)return!1;i.onmouseleave(e)}),document.getElementById(this.jSPlugin.id+"-audioControls").appendChild(a)},A.initThemeData=function(){var e=this,A=this.themeData,t=A.customConfig,i=A.header,n=A.footer,a=t.inspectInfo,r=this.jSPlugin.id;if(this.isNeedRenderInspectInfo=Hc(a.btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderHeader=Hc(i.btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderFooter=Hc(n.btnList,(function(e){return e.isrender>0}))>=0,this.isNeedRenderInspectInfo)if(document.getElementById(this.jSPlugin.id+"-inspectInfoControl"))document.getElementById(this.jSPlugin.id+"-inspectInfoControl").innerHTML="
";else{var s=document.createElement("div");s.setAttribute("id",this.jSPlugin.id+"-inspectInfoControl"),s.setAttribute("class","inspectInfo-controls"),s.innerHTML="
";var g={height:"58px",display:"flex","justify-content":"space-between",top:0,"z-index":999,color:"#000000",width:this.jSPlugin.width+290+"px",position:"relative","align-items":"center",background:"#ffffff","border-bottom":"1px solid #D9D9D9","box-sizing":"border-box"};s.style=WI(g),document.getElementById(r+"-wrap").insertBefore(s,document.getElementById(this.jSPlugin.id));var l=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(l)}),50)}else document.getElementById(this.jSPlugin.id+"-inspectInfoControl")&&document.getElementById(this.jSPlugin.id+"-inspectInfoControl").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-inspectInfoControl"));if(this.isNeedRenderHeader)if(document.getElementById(this.jSPlugin.id+"-headControl"))document.getElementById(this.jSPlugin.id+"-headControl").innerHTML="
";else{var c=document.createElement("div");c.setAttribute("id",this.jSPlugin.id+"-headControl"),c.setAttribute("class","header-controls"),c.innerHTML="
";var d={height:"56px",display:"flex","justify-content":"space-between",top:0,"z-index":999,color:"#FFFFFF",width:this.jSPlugin.width+"px",padding:"0 16px","box-sizing":"border-box",position:"relative","align-items":"center",background:"#000000"};c.style=WI(d),document.getElementById(r+"-wrap").insertBefore(c,document.getElementById(r));var I=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(I)}),50)}else document.getElementById(this.jSPlugin.id+"-headControl")&&document.getElementById(this.jSPlugin.id+"-headControl").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-headControl"));if(this.isNeedRenderFooter)if(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"))document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.marginTop="-56pxpx");else{var C=document.createElement("div");C.setAttribute("id",this.jSPlugin.id+"-ez-iframe-footer-container"),C.setAttribute("class","ez-iframe-footer-container");var h={position:"relative",display:"flex",height:"56px","flex-wrap":"wrap","justify-content":"center","z-index":999,top:0,color:"#FFFFFF",width:this.jSPlugin.width+"px","align-items":"center","background-color":"#000000","font-size":"14px"};C.style=WI(h),C.innerHTML='\n
\n
\n
\n ",o(C,document.getElementById(r))}else document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container")&&document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").parentElement.removeChild(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container"));this.isNeedRenderInspectInfo&&document.getElementById(this.jSPlugin.id+"-inspectInfoControl")&&(document.getElementById(this.jSPlugin.id+"-inspectInfoControl").style.background=a.backgroundColor,document.getElementById(this.jSPlugin.id+"-inspectInfoControl").style.color=a.color,a.btnList.map((function(A,t){A.isrender&&e.renderInspectInfo(A.iconId,A)}))),this.isNeedRenderHeader&&document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-headControl").style.background=i.backgroundColor,document.getElementById(this.jSPlugin.id+"-headControl").style.color=i.color,i.btnList.map((function(A,t){A.isrender&&e.renderHeader(A.iconId,A)}))),this.isNeedRenderFooter&&document.getElementById(this.jSPlugin.id+"-audioControls")&&(document.getElementById(this.jSPlugin.id+"-audioControls").style.background=n.backgroundColor,document.getElementById(this.jSPlugin.id+"-audioControls").style.color=n.color,n.btnList.map((function(A,t){A.isrender&&e.renderFooter(A.iconId,A)}))),this.inspectMapWin=new vI(this.jSPlugin),this.inspectSmallWin=new KI(this.jSPlugin,this.inspectMode,this.inspectMapWin,this.changeInspectMode,this.decoderState)},A.renderThemeData=function(){var e=this,A=this.decoderState.state.isEditing,t=this.themeData,i=t.inspectInfo,n=t.header,a=t.footer;if(this.isNeedRenderInspectInfo&&i&&(document.getElementById(this.jSPlugin.id+"-inspectInfoControl").style.background=i.backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-inspectInfoControl").style.color=i.color.replace("-diy",""),i.btnList.map((function(A,t){var i;A.isrender&&e.setDecoderState(((i={})[A.iconId]=e.decoderState.state[A.iconId],i))}))),this.isNeedRenderHeader&&n&&(document.getElementById(this.jSPlugin.id+"-headControl").style.background=n.backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-headControl").style.color=n.color.replace("-diy",""),n.btnList&&n.btnList.map((function(A,t){var i;A.isrender&&e.setDecoderState(((i={})[A.iconId]=e.decoderState.state[A.iconId],i))}))),this.isNeedRenderFooter&&a)document.getElementById(this.jSPlugin.id+"-audioControls").style.background=a.backgroundColor.replace("-diy",""),document.getElementById(this.jSPlugin.id+"-audioControls").style.color=a.color.replace("-diy",""),a.btnList.map((function(t,i){var n;t.isrender&&e.setDecoderState(((n={})[t.iconId]=e.decoderState.state[t.iconId],n));if(0==i&&!e.themeInited&&e.activeThemeStatus)var a=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(a),1!=e.themeData.customConfig.bellPoster||A?e.jSPlugin.play():e.jSPlugin.pluginStatus.loadingClear(),e.themeInited=!0)}),50)})),this.setDecoderState({cloudRec:"cloud.rec"===g(this.jSPlugin.url).type,rec:"rec"===g(this.jSPlugin.url).type,type:g(this.jSPlugin.url).type});else if(!this.themeInited&&this.activeThemeStatus)var r=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(r),e.themeData&&e.themeData.customConfig&&1==e.themeData.customConfig.bellPoster&&!A?e.jSPlugin.pluginStatus.loadingClear():e.jSPlugin.play(),e.themeInited=!0)}),50);var o=setInterval((function(){window.EZUIKit[e.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(o),e.reSizeVideo(e.videoWidth,e.videoHeight))}),50);this.jSPlugin.Zoom||(this.jSPlugin.Zoom=new jI(this.jSPlugin)),this.getInspectDevInfo(this.jSPlugin,!0,!1)},A.getInspectRecord=function(){var e=this;!function(e,A){var t={accessToken:e.accessToken||e.token.deviceToken.video,deviceSerial:g(e.url).deviceSerial},i=e.env.domain+"/api/service/devicekit/bodycamera/inspect/detail/latest";oI(i,"GET",t,(function(e){A&&A(e)}),(function(e){}),{"Content-Type":"application/x-www-form-urlencoded"})}(this.jSPlugin,(function(A){if(200==A.meta.code&&A.data){var t=A.data;t.inspectRange&&e.inspectMapWin.createPolygon(t.inspectRange,"#407AFF","dashed",4,1,"#407AFF",.08),t.inspectPoints&&t.inspectPoints.length>0&&e.inspectMapWin.createInspectPoints(t.inspectPoints),"video"===e.inspectMode&&e.inspectMapWin.map.removeOverlay(e.inspectMapWin.inspectRange),document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectName")&&t.inspectName&&(document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectName").innerText=""+t.inspectName),document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectBeginTime")&&t.beginTime&&(document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectBeginTime").innerText="巡检开始时间:"+t.beginTime),document.getElementById(e.jSPlugin.id+"-header-inspectTime")&&e.timer.createInterval("InspectTimer",(function(){document.getElementById(e.jSPlugin.id+"-header-inspectTime").innerHTML=e.renderInspectTime(t.beginTime)}),1e3),document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectPerson")&&t.inspectPerson&&(document.getElementById(e.jSPlugin.id+"-inspectInfo-inspectPerson").innerText="本地巡检员:"+t.inspectPerson),e.inspectInfo=t,t.inspectRecordId&&GI(e.jSPlugin,t.inspectRecordId,(function(A){200==A.meta.code&&A.data&&(e.inspectMapWin.createTrack(A.data,!0),e.timer.createInterval("TraceTimer",(function(){t.inspectRecordId&&GI(e.jSPlugin,t.inspectRecordId,(function(A){200==A.meta.code&&A.data&&e.inspectMapWin.createTrack(A.data,!1)}),(function(){}))}),5e3))}),(function(){})),e.InspectEvent=new HI(e.jSPlugin,t.inspectRecordId,e.timer)}else e.InspectEvent=new HI(e.jSPlugin,null,e.timer)}))},A.getInspectDevInfo=function(e,A,t){var i=this;void 0===A&&(A=!1),void 0===t&&(t=!1);!function(e,A,t){var i={accessToken:e.accessToken||e.token.deviceToken.video,deviceSerial:g(e.url).deviceSerial},n=e.env.domain+"/api/service/devicekit/bodycamera";oI(n,"GET",i,(function(e){A&&A(e)}),(function(e){t&&t(e)}),{"Content-Type":"application/x-www-form-urlencoded"})}(e,(function(n){n.meta&&200==n.meta.code&&n.data?1===n.data.status?(t&&!i.decoderState.state.play&&(i.jSPlugin.pluginStatus.loadingStart(i.jSPlugin.id),i.jSPlugin.pluginStatus.loadingSetText({text:"视频加载中"}),i.jSPlugin.play()),i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-inspect-global-box",!1),document.getElementById(i.jSPlugin.id+"-header-deviceName")&&(document.getElementById(i.jSPlugin.id+"-header-deviceName").innerText=n.data.deviceName+"("+n.data.deviceSerial+")",document.getElementById(i.jSPlugin.id+"-header-deviceName").setAttribute("title",n.data.deviceName+"("+n.data.deviceSerial+")")),document.getElementById(i.jSPlugin.id+"-header-signalType")&&(document.getElementById(i.jSPlugin.id+"-header-signalType").innerHTML=i.renderSignalType(n.data.signalType)),document.getElementById(i.jSPlugin.id+"-header-batteryStatus")&&(document.getElementById(i.jSPlugin.id+"-header-batteryStatus").innerHTML=i.renderBatteryStatus(n.data.batteryStatus)),i.timer.createInterval("InspectDevInfoTimer",(function(){i.getInspectDevInfo(e,!1,!1)}),3e5),A&&i.getInspectRecord()):(i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-inspect-loading-box",!1),i.jSPlugin.stop(),i.globalContainer.deviceErrorInfo({tips:"当前设备未在巡检中",refreshBtn:"刷新",refreshShow:!0},(function(){i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-no-inspect-box",!1),i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-inspect-loading-box",!0),i.getInspectDevInfo(e,!0,!0)}))):(i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-inspect-loading-box",!1),i.jSPlugin.stop(),i.globalContainer.deviceErrorInfo({tips:n.meta.message,refreshShow:!1}))}),(function(){i.globalContainer.globalContainerToggle(i.jSPlugin.id+"-inspect-global-box",!1)}))},A.fetchThemeData=function(e){var A=this;Gd(this.jSPlugin,e,(function(e){if(0!==e.meta.code||!e.data)return A.activeThemeStatus=!1,A.jSPlugin.pluginStatus.loadingClear(),"111021"==e.meta.code?(A.globalContainer.globalContainerToggle(A.jSPlugin.id+"-inspect-loading-box",!1),A.jSPlugin.stop(),A.globalContainer.deviceErrorInfo({tips:"无效的模板id",refreshBtn:"刷新",refreshShow:!1}),void(A.activeThemeStatusTxt="无效的模板id")):"111023"==e.meta.code?(A.globalContainer.globalContainerToggle(A.jSPlugin.id+"-inspect-loading-box",!1),A.jSPlugin.stop(),A.globalContainer.deviceErrorInfo({tips:"您的试用特权已到期,需前往轻应用控制台购买后使用。",refreshBtn:"刷新",refreshShow:!1}),void(A.activeThemeStatusTxt="试用特权已到期")):(A.globalContainer.globalContainerToggle(A.jSPlugin.id+"-inspect-loading-box",!1),A.jSPlugin.stop(),A.globalContainer.deviceErrorInfo({tips:"模板未激活,请先在开放平台轻应用控制台购买模板",refreshBtn:"刷新",refreshShow:!1}),void(A.activeThemeStatusTxt="模板未激活"));A.activeThemeStatus=!0,A.themeData=e.data,A.jSPlugin.capacity?(A.initThemeData(),A.renderThemeData()):setTimeout((function(){A.initThemeData(),A.renderThemeData()}),300)}),(function(){A.themeData=OI,A.themeData.header&&(A.themeData.header.btnList=A.themeData.header.btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),A.themeData.footer&&(A.themeData.footer.btnList=A.themeData.footer.btnList.sort((function(e,A){return e.btnKey.split("-")[3]-A.btnKey.split("-")[3]}))),A.initThemeData(),A.renderThemeData()}))},A.reSizeVideo=function(e,A){if(document.getElementById(""+this.jSPlugin.id).style.width=e+"px",document.getElementById(""+this.jSPlugin.id).style.height=A+"px",this.jSPlugin&&this.jSPlugin.bPlay)this.jSPlugin.JS_Resize(e,A);else{document.getElementById(this.jSPlugin.id+"-player")&&(document.getElementById(this.jSPlugin.id+"-player").width=e,document.getElementById(this.jSPlugin.id+"-player").height=A,document.getElementById(this.jSPlugin.id+"-player").style.width=e+"px",document.getElementById(this.jSPlugin.id+"-player").style.height=A+"px",document.getElementById(this.jSPlugin.id+"-container-0").style.height=A+"px");var t=1;if(document.getElementById(this.jSPlugin.id+"canvas0"))navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)&&(t=2),document.getElementById(this.jSPlugin.id+"canvas0").style.width=e*t+"px",document.getElementById(this.jSPlugin.id+"canvas0").style.height=A*t+"px",document.getElementById(this.jSPlugin.id+"canvas0").width=e*t,document.getElementById(this.jSPlugin.id+"canvas0").height=A*t,document.getElementById(this.jSPlugin.id+"canvas0").parentNode.style.width=e*t+"px",document.getElementById(this.jSPlugin.id+"canvas0").parentNode.style.height=A*t+"px",document.getElementById(this.jSPlugin.id+"canvas_draw0").height=A*t}},A.reSize=function(e,A){var t=.3333*e,i=.3333*A;document.getElementById(this.jSPlugin.id+"-inspectInfoControl")&&(document.getElementById(this.jSPlugin.id+"-inspectInfoControl").style.width=e+this.jSPlugin.inspectVideoWidth+"px"),document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-headControl").style.width=e+"px"),document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.width=e+"px"),"video"===this.jSPlugin.Theme.inspectMode?(this.reSizeVideo(e,A),document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.top=0),document.getElementById(this.jSPlugin.id+"-mapbox").style.width=t+"px",document.getElementById(this.jSPlugin.id+"-mapbox").style.height=i+"px"):(document.getElementById(this.jSPlugin.id+"-headControl")&&(document.getElementById(this.jSPlugin.id+"-ez-iframe-footer-container").style.top=A+"px"),this.reSizeVideo(t,i),document.getElementById(this.jSPlugin.id+"-mapbox").style.width=e+"px",document.getElementById(this.jSPlugin.id+"-mapbox").style.height=A+"px"),document.getElementById(this.jSPlugin.id+"-miniToggle").style.bottom=i/2+96-30+"px",document.getElementById(this.jSPlugin.id+"-miniToggle").style.right=this.jSPlugin.inspectVideoWidth+t+"px"},e}(),qI=function(){function e(e){var A=this;if(this.changeInspectMode=function(e){A.inspectMode=e},this.jSPlugin=e,this.videoWidth=e.width,this.videoHeight=e.height,this.inspectMode="video",this.autoFocus=0,this.decoderState={state:{isEditing:!1,play:!1,sound:!1,recordvideo:!1,recordCount:"00:00",talk:!1,mute:!1,cloudRec:"cloud.rec"===g(e.url).type,rec:"rec"===g(e.url).type,type:g(e.url).type}},this.isMobile=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i),void 0!==e.isMobile&&(this.isMobile=e.isMobile),this.themeData=OI,"themeData"==this.jSPlugin.themeId&&(this.themeData=this.jSPlugin.params.themeData),this.timer||(this.timer=new SI(e)),this.jSPlugin.themeId)if(this.isMobile||(this.inspect=new XI(this.jSPlugin,this.themeData,this.setDecoderState,this.decoderState,this.inspectMode,this.changeInspectMode,this.timer)),"themeData"===this.jSPlugin.themeId)this.themeData=this.jSPlugin.params.themeData,this.inspect.initThemeData(),this.inspect.renderThemeData();else this.inspect.fetchThemeData(this.jSPlugin.themeId);this.jSPlugin.Talk||(this.jSPlugin.Talk=new aI(this.jSPlugin)),n(this.jSPlugin.staticPath+"/css/theme.css"),n(this.jSPlugin.staticPath+"/css/component.css"),n(this.jSPlugin.staticPath+"/css/inspectTheme.css")}var A=e.prototype;return A.setDecoderState=function(e,A){var t=this,i="#FFFFFF",n="#1890FF";Object.keys(e).map((function(A){switch(A){case"talk":document.getElementById(t.jSPlugin.id+"-talk")&&(document.getElementById(t.jSPlugin.id+"-talk").className=e[A]?"active":"",document.getElementById(t.jSPlugin.id+"-talk-content").childNodes[1].style.fill=e[A]?n:i,document.getElementById(t.jSPlugin.id+"-talk-content").childNodes[2].style.color=e[A]?n:i);break;case"sound":document.getElementById(t.jSPlugin.id+"-sound")&&(e[A]?(document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[1].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[0].style="display:none",document.getElementById(t.jSPlugin.id+"-sound").className=e[A]?"active":"",document.getElementById(t.jSPlugin.id+"-sound-content").childNodes[0].children[1].style.fill=e[A]?n:i,document.getElementById(t.jSPlugin.id+"-sound-label").style.color=e[A]?n:i):(document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[0].style="display:inline-block",document.getElementById(t.jSPlugin.id+"-sound-content").children[0].children[1].style="display:none",document.getElementById(t.jSPlugin.id+"-sound").className=e[A]?"active":"",document.getElementById(t.jSPlugin.id+"-sound-label").style.color=e[A]?n:i))}t.decoderState.state=Object.assign(t.decoderState.state,e)}))},A.setDisabled=function(e){var A=this.decoderState.state,t=A.sound;A.hd,null!=document.getElementById(t?this.jSPlugin.id+"-sound-icon":this.jSPlugin.id+"-nosound-icon")&&document.getElementById(t?this.jSPlugin.id+"-sound-icon":this.jSPlugin.id+"-nosound-icon").setAttribute("style",e?"cursor: not-allowed;fill: gray":"cursor: default"),null!=document.getElementById(this.jSPlugin.id+"-sound-label")&&document.getElementById(this.jSPlugin.id+"-sound-label").setAttribute("style",e?"cursor: not-allowed; color: gray":"cursor: default"),null!=document.getElementById(this.jSPlugin.id+"-talk-icon")&&document.getElementById(this.jSPlugin.id+"-talk-icon").setAttribute("style",e?"cursor: not-allowed;fill: gray":"cursor: default"),null!=document.getElementById(this.jSPlugin.id+"-talk-label")&&document.getElementById(this.jSPlugin.id+"-talk-label").setAttribute("style",e?"cursor: not-allowed; color: gray":"cursor: default")},A.inspectEnding=function(){var e=document.createElement("div");e.id=this.jSPlugin.id+"-inspect-ending-box",e.style="width:100%; position: absolute; z-index: 10000; top:58px; bottom:0; left:0; background: #ffffff;",e.innerHTML='
\n
\n
\n \n
\n
巡检已结束
\n
\n
\n ',document.getElementById(this.jSPlugin.id+"-wrap").appendChild(e),this.jSPlugin.Zoom&&this.jSPlugin.Zoom.stopZoom()},e}(); +/* + * TalkControl v0.0.1 + * talk + * Copyright (c) 2025-07-29 Ezviz-OpenBiz + * Released under the MIT License. + */ +let zI=class{constructor(){this.events={}}on(e,A){e&&A&&(this.events[e]=this.events[e]||[],this.events[e].push(A))}emit(e,A){e&&this.events[e]&&this.events[e].forEach((e=>e(A)))}off(e,A){e&&A&&this.events[e]&&this.events[e].splice(this.events[e].indexOf(A),1)}once(e,A){const t=this;this.on(e,(function i(){const n=Array.prototype.slice.call(arguments);A.apply(null,n),t.off(e,i)}))}removeAllListener(){this.events={}}};function $I(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eC;eC||(eC=1,function e(A,t,i){function n(r,o){if(!t[r]){if(!A[r]){if(!o&&$I)return $I(r);if(a)return a(r,!0);var s=new Error("Cannot find module '"+r+"'");throw s.code="MODULE_NOT_FOUND",s}var g=t[r]={exports:{}};A[r][0].call(g.exports,(function(e){return n(A[r][1][e]||e)}),g,g.exports,e,A,t,i)}return t[r].exports}for(var a=$I,r=0;r0&&void 0!==arguments[0]?arguments[0]:{}).window,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},t=i.log,g=i.detectBrowser(e),l={browserDetails:g,commonShim:s,extractVersion:i.extractVersion,disableLog:i.disableLog,disableWarnings:i.disableWarnings};switch(g.browser){case"chrome":if(!n||!n.shimPeerConnection||!A.shimChrome)return t("Chrome shim is not included in this adapter release."),l;t("adapter.js shimming chrome."),l.browserShim=n,n.shimGetUserMedia(e),n.shimMediaStream(e),n.shimPeerConnection(e),n.shimOnTrack(e),n.shimAddTrackRemoveTrack(e),n.shimGetSendersWithDtmf(e),n.shimGetStats(e),n.shimSenderReceiverGetStats(e),n.fixNegotiationNeeded(e),s.shimRTCIceCandidate(e),s.shimConnectionState(e),s.shimMaxMessageSize(e),s.shimSendThrowTypeError(e),s.removeAllowExtmapMixed(e);break;case"firefox":if(!r||!r.shimPeerConnection||!A.shimFirefox)return t("Firefox shim is not included in this adapter release."),l;t("adapter.js shimming firefox."),l.browserShim=r,r.shimGetUserMedia(e),r.shimPeerConnection(e),r.shimOnTrack(e),r.shimRemoveStream(e),r.shimSenderGetStats(e),r.shimReceiverGetStats(e),r.shimRTCDataChannel(e),r.shimAddTransceiver(e),r.shimCreateOffer(e),r.shimCreateAnswer(e),s.shimRTCIceCandidate(e),s.shimConnectionState(e),s.shimMaxMessageSize(e),s.shimSendThrowTypeError(e);break;case"edge":if(!a||!a.shimPeerConnection||!A.shimEdge)return t("MS edge shim is not included in this adapter release."),l;t("adapter.js shimming edge."),l.browserShim=a,a.shimGetUserMedia(e),a.shimGetDisplayMedia(e),a.shimPeerConnection(e),a.shimReplaceTrack(e),s.shimMaxMessageSize(e),s.shimSendThrowTypeError(e);break;case"safari":if(!o||!A.shimSafari)return t("Safari shim is not included in this adapter release."),l;t("adapter.js shimming safari."),l.browserShim=o,o.shimRTCIceServerUrls(e),o.shimCreateOfferLegacy(e),o.shimCallbacksAPI(e),o.shimLocalStreamsAPI(e),o.shimRemoteStreamsAPI(e),o.shimTrackEventTransceiver(e),o.shimGetUserMedia(e),s.shimRTCIceCandidate(e),s.shimMaxMessageSize(e),s.shimSendThrowTypeError(e),s.removeAllowExtmapMixed(e);break;default:t("Unsupported browser!")}return l};var i=g(e("./utils")),n=g(e("./chrome/chrome_shim")),a=g(e("./edge/edge_shim")),r=g(e("./firefox/firefox_shim")),o=g(e("./safari/safari_shim")),s=g(e("./common_shim"));function g(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}},{"./chrome/chrome_shim":3,"./common_shim":6,"./edge/edge_shim":7,"./firefox/firefox_shim":11,"./safari/safari_shim":14,"./utils":15}],3:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=t.shimGetUserMedia=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=e("./getusermedia");Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return n.shimGetUserMedia}});var a=e("./getdisplaymedia");Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),t.shimMediaStream=function(e){e.MediaStream=e.MediaStream||e.webkitMediaStream},t.shimOnTrack=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var A=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var t=this;return this._ontrackpoly||(this._ontrackpoly=function(A){A.stream.addEventListener("addtrack",(function(i){var n;n=e.RTCPeerConnection.prototype.getReceivers?t.getReceivers().find((function(e){return e.track&&e.track.id===i.track.id})):{track:i.track};var a=new Event("track");a.track=i.track,a.receiver=n,a.transceiver={receiver:n},a.streams=[A.stream],t.dispatchEvent(a)})),A.stream.getTracks().forEach((function(i){var n;n=e.RTCPeerConnection.prototype.getReceivers?t.getReceivers().find((function(e){return e.track&&e.track.id===i.id})):{track:i};var a=new Event("track");a.track=i,a.receiver=n,a.transceiver={receiver:n},a.streams=[A.stream],t.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)),A.apply(this,arguments)}}else r.wrapPeerConnectionEvent(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))},t.shimGetSendersWithDtmf=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var A=function(e,A){return{track:A,get dtmf(){return void 0===this._dtmf&&("audio"===A.kind?this._dtmf=e.createDTMFSender(A):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){var n=t.apply(this,arguments);return n||(n=A(this,e),this._senders.push(n)),n};var n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);var A=this._senders.indexOf(e);-1!==A&&this._senders.splice(A,1)}}var a=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._senders=this._senders||[],a.apply(this,[e]),e.getTracks().forEach((function(e){t._senders.push(A(t,e))}))};var r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((function(e){var t=A._senders.find((function(A){return A.track===e}));t&&A._senders.splice(A._senders.indexOf(t),1)}))}}else if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var o=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,A=o.apply(this,[]);return A.forEach((function(A){return A._pc=e})),A},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}},t.shimGetStats=function(e){if(e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,t=Array.prototype.slice.call(arguments),i=t[0],n=t[1],a=t[2];if(arguments.length>0&&"function"==typeof i)return A.apply(this,arguments);if(0===A.length&&(0===arguments.length||"function"!=typeof i))return A.apply(this,[]);var r=function(e){var A={};return e.result().forEach((function(e){var t={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(A){t[A]=e.stat(A)})),A[t.id]=t})),A},o=function(e){return new Map(Object.keys(e).map((function(A){return[A,e[A]]})))};if(arguments.length>=2){return A.apply(this,[function(e){n(o(r(e)))},i])}return new Promise((function(t,i){A.apply(e,[function(e){t(o(r(e)))},i])})).then(n,a)}}},t.shimSenderReceiverGetStats=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var A=e.RTCPeerConnection.prototype.getSenders;A&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t});var t=e.RTCPeerConnection.prototype.addTrack;t&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=t.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(A){return r.filterStats(A,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,A=n.apply(this,[]);return A.forEach((function(A){return A._pc=e})),A}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(A){return r.filterStats(A,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var A=arguments[0],t=void 0,i=void 0,n=void 0;return this.getSenders().forEach((function(e){e.track===A&&(t?n=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===A&&(i?n=!0:i=e),e.track===A})),n||t&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return a.apply(this,arguments)}}}},t.shimAddTrackRemoveTrackWithNative=s,t.shimAddTrackRemoveTrack=function(e){if(e.RTCPeerConnection){var A=r.detectBrowser(e);if(e.RTCPeerConnection.prototype.addTrack&&A.version>=65)return s(e);var t=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,A=t.apply(this);return this._reverseStreams=this._reverseStreams||{},A.map((function(A){return e._reverseStreams[A.id]}))};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(A){var t=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},A.getTracks().forEach((function(e){if(t.getSenders().find((function(A){return A.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[A.id]){var n=new e.MediaStream(A.getTracks());this._streams[A.id]=n,this._reverseStreams[n.id]=A,A=n}i.apply(this,[A])};var n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(A,t){var i=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((function(e){return e===A})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((function(e){return e.track===A})))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var a=this._streams[t.id];if(a)a.addTrack(A),Promise.resolve().then((function(){i.dispatchEvent(new Event("negotiationneeded"))}));else{var r=new e.MediaStream([A]);this._streams[t.id]=r,this._reverseStreams[r.id]=t,this.addStream(r)}return this.getSenders().find((function(e){return e.track===A}))},["createOffer","createAnswer"].forEach((function(A){var t=e.RTCPeerConnection.prototype[A],i=o({},A,(function(){var e=this,A=arguments;return arguments.length&&"function"==typeof arguments[0]?t.apply(this,[function(t){var i=l(e,t);A[0].apply(null,[i])},function(e){A[1]&&A[1].apply(null,e)},arguments[2]]):t.apply(this,arguments).then((function(A){return l(e,A)}))}));e.RTCPeerConnection.prototype[A]=i[A]}));var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,A){var t=A.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(A){var i=e._reverseStreams[A],n=e._streams[i.id];t=t.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:A.type,sdp:t})}(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};var g=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=g.get.apply(this);return""===e.type?e:l(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var A=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};var t=void 0;Object.keys(this._streams).forEach((function(i){A._streams[i].getTracks().find((function(A){return e.track===A}))&&(t=A._streams[i])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function l(e,A){var t=A.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(A){var i=e._reverseStreams[A],n=e._streams[i.id];t=t.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:A.type,sdp:t})}},t.shimPeerConnection=function(e){var A=r.detectBrowser(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection){A.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(A){var t=e.RTCPeerConnection.prototype[A],i=o({},A,(function(){return arguments[0]=new("addIceCandidate"===A?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}));e.RTCPeerConnection.prototype[A]=i[A]}));var t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?A.version<78&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}},t.fixNegotiationNeeded=function(e){r.wrapPeerConnectionEvent(e,"negotiationneeded",(function(e){if("stable"===e.target.signalingState)return e}))};var r=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils.js"));function o(e,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function s(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(A){return e._shimmedLocalStreams[A][0]}))};var A=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,t){if(!t)return A.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var i=A.apply(this,arguments);return this._shimmedLocalStreams[t.id]?-1===this._shimmedLocalStreams[t.id].indexOf(i)&&this._shimmedLocalStreams[t.id].push(i):this._shimmedLocalStreams[t.id]=[t,i],i};var t=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var A=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(A.getSenders().find((function(A){return A.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var i=this.getSenders();t.apply(this,arguments);var n=this.getSenders().filter((function(e){return-1===i.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(n)};var i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],i.apply(this,arguments)};var n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var A=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(t){var i=A._shimmedLocalStreams[t].indexOf(e);-1!==i&&A._shimmedLocalStreams[t].splice(i,1),1===A._shimmedLocalStreams[t].length&&delete A._shimmedLocalStreams[t]})),n.apply(this,arguments)}}},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,A){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&"function"==typeof A&&(e.navigator.mediaDevices.getDisplayMedia=function(t){return A(t).then((function(A){var i=t.video&&t.video.width,n=t.video&&t.video.height,a=t.video&&t.video.frameRate;return t.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:A,maxFrameRate:a||3}},i&&(t.video.mandatory.maxWidth=i),n&&(t.video.mandatory.maxHeight=n),e.navigator.mediaDevices.getUserMedia(t)}))})}},{}],5:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.shimGetUserMedia=function(e){var A=e&&e.navigator;if(A.mediaDevices){var t=n.detectBrowser(e),r=function(e){if("object"!==(void 0===e?"undefined":i(e))||e.mandatory||e.optional)return e;var A={};return Object.keys(e).forEach((function(t){if("require"!==t&&"advanced"!==t&&"mediaSource"!==t){var n="object"===i(e[t])?e[t]:{ideal:e[t]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);var a=function(e,A){return e?e+A.charAt(0).toUpperCase()+A.slice(1):"deviceId"===A?"sourceId":A};if(void 0!==n.ideal){A.optional=A.optional||[];var r={};"number"==typeof n.ideal?(r[a("min",t)]=n.ideal,A.optional.push(r),(r={})[a("max",t)]=n.ideal,A.optional.push(r)):(r[a("",t)]=n.ideal,A.optional.push(r))}void 0!==n.exact&&"number"!=typeof n.exact?(A.mandatory=A.mandatory||{},A.mandatory[a("",t)]=n.exact):["min","max"].forEach((function(e){void 0!==n[e]&&(A.mandatory=A.mandatory||{},A.mandatory[a(e,t)]=n[e])}))}})),e.advanced&&(A.optional=(A.optional||[]).concat(e.advanced)),A},o=function(e,n){if(t.version>=61)return n(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===i(e.audio)){var o=function(e,A,t){A in e&&!(t in e)&&(e[t]=e[A],delete e[A])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===i(e.video)){var s=e.video.facingMode;s=s&&("object"===(void 0===s?"undefined":i(s))?s:{ideal:s});var g=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!A.mediaDevices.getSupportedConstraints||!A.mediaDevices.getSupportedConstraints().facingMode||g)){delete e.video.facingMode;var l=void 0;if("environment"===s.exact||"environment"===s.ideal?l=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(l=["front"]),l)return A.mediaDevices.enumerateDevices().then((function(A){var t=(A=A.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return l.some((function(A){return e.label.toLowerCase().includes(A)}))}));return!t&&A.length&&l.includes("back")&&(t=A[A.length-1]),t&&(e.video.deviceId=s.exact?{exact:t.deviceId}:{ideal:t.deviceId}),e.video=r(e.video),a("chrome: "+JSON.stringify(e)),n(e)}))}e.video=r(e.video)}return a("chrome: "+JSON.stringify(e)),n(e)},s=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(A.getUserMedia=function(e,t,i){o(e,(function(e){A.webkitGetUserMedia(e,t,(function(e){i&&i(s(e))}))}))}.bind(A),A.mediaDevices.getUserMedia){var g=A.mediaDevices.getUserMedia.bind(A.mediaDevices);A.mediaDevices.getUserMedia=function(e){return o(e,(function(e){return g(e).then((function(A){if(e.audio&&!A.getAudioTracks().length||e.video&&!A.getVideoTracks().length)throw A.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return A}),(function(e){return Promise.reject(s(e))}))}))}}}};var n=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils.js"));var a=n.log},{"../utils.js":15}],6:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.shimRTCIceCandidate=function(e){if(!(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var A=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var t=new A(e),a=n.default.parseCandidate(e.candidate),r=Object.assign(t,a);return r.toJSON=function(){return{candidate:r.candidate,sdpMid:r.sdpMid,sdpMLineIndex:r.sdpMLineIndex,usernameFragment:r.usernameFragment}},r}return new A(e)},e.RTCIceCandidate.prototype=A.prototype,a.wrapPeerConnectionEvent(e,"icecandidate",(function(A){return A.candidate&&Object.defineProperty(A,"candidate",{value:new e.RTCIceCandidate(A.candidate),writable:"false"}),A}))}},t.shimMaxMessageSize=function(e){if(e.RTCPeerConnection){var A=a.detectBrowser(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var t=function(e){if(!e||!e.sdp)return!1;var A=n.default.splitSections(e.sdp);return A.shift(),A.some((function(e){var A=n.default.parseMLine(e);return A&&"application"===A.kind&&-1!==A.protocol.indexOf("SCTP")}))},i=function(e,t){var i=65536;"firefox"===A.browser&&57===A.version&&(i=65535);var a=n.default.matchPrefix(e.sdp,"a=max-message-size:");return a.length>0?i=parseInt(a[0].substr(19),10):"firefox"===A.browser&&-1!==t&&(i=2147483637),i},r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===A.browser&&A.version>=76&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0}),t(arguments[0])){var e,n=function(e){var A=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===A||A.length<2)return-1;var t=parseInt(A[1],10);return t!=t?-1:t}(arguments[0]),a=function(e){var t=65536;return"firefox"===A.browser&&(t=A.version<57?-1===e?16384:2147483637:A.version<60?57===A.version?65535:65536:2147483637),t}(n),o=i(arguments[0],n);e=0===a&&0===o?Number.POSITIVE_INFINITY:0===a||0===o?Math.max(a,o):Math.min(a,o);var s={};Object.defineProperty(s,"maxMessageSize",{get:function(){return e}}),this._sctp=s}return r.apply(this,arguments)}}},t.shimSendThrowTypeError=function(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var A=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=A.apply(this,arguments);return t(e,this),e},a.wrapPeerConnectionEvent(e,"datachannel",(function(e){return t(e.channel,e.target),e}))}function t(e,A){var t=e.send;e.send=function(){var i=arguments[0],n=i.length||i.size||i.byteLength;if("open"===e.readyState&&A.sctp&&n>A.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+A.sctp.maxMessageSize+" bytes)");return t.apply(e,arguments)}}},t.shimConnectionState=function(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var A=e.RTCPeerConnection.prototype;Object.defineProperty(A,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(A,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var t=A[e];A[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var A=e.target;if(A._lastConnectionState!==A.connectionState){A._lastConnectionState=A.connectionState;var t=new Event("connectionstatechange",e);A.dispatchEvent(t)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),t.apply(this,arguments)}}))}},t.removeAllowExtmapMixed=function(e){if(e.RTCPeerConnection){var A=a.detectBrowser(e);if(!("chrome"===A.browser&&A.version>=71)){var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(e){return e&&e.sdp&&-1!==e.sdp.indexOf("\na=extmap-allow-mixed")&&(e.sdp=e.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n")),t.apply(this,arguments)}}}};var n=function(e){return e&&e.__esModule?e:{default:e}}(e("sdp")),a=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("./utils"))},{"./utils":15,sdp:17}],7:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=t.shimGetUserMedia=void 0;var i=e("./getusermedia");Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return i.shimGetUserMedia}});var n=e("./getdisplaymedia");Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return n.shimGetDisplayMedia}}),t.shimPeerConnection=function(e){var A=a.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),A.version<15025)){var t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){t.set.call(this,e);var A=new Event("enabled");A.enabled=e,this.dispatchEvent(A)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);var i=(0,o.default)(e,A.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=(0,r.filterIceServers)(e.iceServers,A.version),a.log("ICE servers after filtering:",e.iceServers)),new i(e)},e.RTCPeerConnection.prototype=i.prototype},t.shimReplaceTrack=function(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)};var a=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils")),r=e("./filtericeservers"),o=function(e){return e&&e.__esModule?e:{default:e}}(e("rtcpeerconnection-shim"))},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}],8:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.filterIceServers=function(e,A){var t=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var A=e.urls||e.url;e.url&&!e.urls&&i.deprecated("RTCIceServer.url","RTCIceServer.urls");var n="string"==typeof A;return n&&(A=[A]),A=A.filter((function(e){if(0===e.indexOf("stun:"))return!1;var A=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return A&&!t?(t=!0,!0):A&&!t})),delete e.url,e.urls=n?A[0]:A,!!A.length}}))};var i=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15}],9:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}},{}],10:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetUserMedia=function(e){var A=e&&e.navigator,t=A.mediaDevices.getUserMedia.bind(A.mediaDevices);A.mediaDevices.getUserMedia=function(e){return t(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}},{}],11:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=t.shimGetUserMedia=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=e("./getusermedia");Object.defineProperty(t,"shimGetUserMedia",{enumerable:!0,get:function(){return n.shimGetUserMedia}});var a=e("./getdisplaymedia");Object.defineProperty(t,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),t.shimOnTrack=function(e){"object"===(void 0===e?"undefined":i(e))&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},t.shimPeerConnection=function(e){var A=r.detectBrowser(e);if("object"===(void 0===e?"undefined":i(e))&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){if(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),A.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(A){var t=e.RTCPeerConnection.prototype[A],i=function(e,A,t){return A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}({},A,(function(){return arguments[0]=new("addIceCandidate"===A?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}));e.RTCPeerConnection.prototype[A]=i[A]})),A.version<68){var t=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&""===arguments[0].candidate?Promise.resolve():t.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=Array.prototype.slice.call(arguments),t=e[0],i=e[1],r=e[2];return a.apply(this,[t||null]).then((function(e){if(A.version<53&&!i)try{e.forEach((function(e){e.type=n[e.type]||e.type}))}catch(A){if("TypeError"!==A.name)throw A;e.forEach((function(A,t){e.set(t,Object.assign({},A,{type:n[A.type]||A.type}))}))}return e})).then(i,r)}}},t.shimSenderGetStats=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var A=e.RTCPeerConnection.prototype.getSenders;A&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t});var t=e.RTCPeerConnection.prototype.addTrack;t&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=t.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}},t.shimReceiverGetStats=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var A=e.RTCPeerConnection.prototype.getReceivers;A&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=A.apply(this,[]);return t.forEach((function(A){return A._pc=e})),t}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}},t.shimRemoveStream=function(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;r.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(t){t.track&&e.getTracks().includes(t.track)&&A.removeTrack(t)}))})},t.shimRTCDataChannel=function(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)},t.shimAddTransceiver=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.addTransceiver;A&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],t=e&&"sendEncodings"in e;t&&e.sendEncodings.forEach((function(e){if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var i=A.apply(this,arguments);if(t){var n=i.sender,a=n.getParameters();"encodings"in a||(a.encodings=e.sendEncodings,this.setParametersPromises.push(n.setParameters(a).catch((function(){}))))}return i})}},t.shimCreateOffer=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return A.apply(e,t)})).finally((function(){e.setParametersPromises=[]})):A.apply(this,arguments)}}},t.shimCreateAnswer=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return A.apply(e,t)})).finally((function(){e.setParametersPromises=[]})):A.apply(this,arguments)}}};var r=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0}),t.shimGetDisplayMedia=function(e,A){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(t){if(!t||!t.video){var i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return!0===t.video?t.video={mediaSource:A}:t.video.mediaSource=A,e.navigator.mediaDevices.getUserMedia(t)})}},{}],13:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.shimGetUserMedia=function(e){var A=n.detectBrowser(e),t=e&&e.navigator,a=e&&e.MediaStreamTrack;if(t.getUserMedia=function(e,A,i){n.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),t.mediaDevices.getUserMedia(e).then(A,i)},!(A.version>55&&"autoGainControl"in t.mediaDevices.getSupportedConstraints())){var r=function(e,A,t){A in e&&!(t in e)&&(e[t]=e[A],delete e[A])},o=t.mediaDevices.getUserMedia.bind(t.mediaDevices);if(t.mediaDevices.getUserMedia=function(e){return"object"===(void 0===e?"undefined":i(e))&&"object"===i(e.audio)&&(e=JSON.parse(JSON.stringify(e)),r(e.audio,"autoGainControl","mozAutoGainControl"),r(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},a&&a.prototype.getSettings){var s=a.prototype.getSettings;a.prototype.getSettings=function(){var e=s.apply(this,arguments);return r(e,"mozAutoGainControl","autoGainControl"),r(e,"mozNoiseSuppression","noiseSuppression"),e}}if(a&&a.prototype.applyConstraints){var g=a.prototype.applyConstraints;a.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===(void 0===e?"undefined":i(e))&&(e=JSON.parse(JSON.stringify(e)),r(e,"autoGainControl","mozAutoGainControl"),r(e,"noiseSuppression","mozNoiseSuppression")),g.apply(this,[e])}}}};var n=function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A}(e("../utils"))},{"../utils":15}],14:[function(e,A,t){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.shimLocalStreamsAPI=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var A=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(i){return A.call(t,i,e)})),e.getVideoTracks().forEach((function(i){return A.call(t,i,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){var t=arguments[1];return t&&(this._localStreams?this._localStreams.includes(t)||this._localStreams.push(t):this._localStreams=[t]),A.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var A=this;this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var i=e.getTracks();this.getSenders().forEach((function(e){i.includes(e.track)&&A.removeTrack(e)}))}})}},t.shimRemoteStreamsAPI=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var A=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(A._remoteStreams||(A._remoteStreams=[]),!A._remoteStreams.includes(e)){A._remoteStreams.push(e);var t=new Event("addstream");t.stream=e,A.dispatchEvent(t)}}))})}});var A=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(A){A.streams.forEach((function(A){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(A)>=0)){e._remoteStreams.push(A);var t=new Event("addstream");t.stream=A,e.dispatchEvent(t)}}))}),A.apply(e,arguments)}}},t.shimCallbacksAPI=function(e){if("object"===(void 0===e?"undefined":i(e))&&e.RTCPeerConnection){var A=e.RTCPeerConnection.prototype,t=A.createOffer,n=A.createAnswer,a=A.setLocalDescription,r=A.setRemoteDescription,o=A.addIceCandidate;A.createOffer=function(e,A){var i=arguments.length>=2?arguments[2]:arguments[0],n=t.apply(this,[i]);return A?(n.then(e,A),Promise.resolve()):n},A.createAnswer=function(e,A){var t=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[t]);return A?(i.then(e,A),Promise.resolve()):i};var s=function(e,A,t){var i=a.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i};A.setLocalDescription=s,s=function(e,A,t){var i=r.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i},A.setRemoteDescription=s,s=function(e,A,t){var i=o.apply(this,[e]);return t?(i.then(A,t),Promise.resolve()):i},A.addIceCandidate=s}},t.shimGetUserMedia=function(e){var A=e&&e.navigator;if(A.mediaDevices&&A.mediaDevices.getUserMedia){var t=A.mediaDevices,i=t.getUserMedia.bind(t);A.mediaDevices.getUserMedia=function(e){return i(a(e))}}!A.getUserMedia&&A.mediaDevices&&A.mediaDevices.getUserMedia&&(A.getUserMedia=function(e,t,i){A.mediaDevices.getUserMedia(e).then(t,i)}.bind(A))},t.shimConstraints=a,t.shimRTCIceServerUrls=function(e){var A=e.RTCPeerConnection;e.RTCPeerConnection=function(e,t){if(e&&e.iceServers){for(var i=[],a=0;a=t&&parseInt(i[t],10)}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,A,t){A&&!t.has(A.id)&&(t.set(A.id,A),Object.keys(A).forEach((function(i){i.endsWith("Id")?o(e,e.get(A[i]),t):i.endsWith("Ids")&&A[i].forEach((function(A){o(e,e.get(A),t)}))})))}},{}],16:[function(e,A,t){var i=e("sdp");function n(e,A,t,n,a){var r=i.writeRtpDescription(e.kind,A);if(r+=i.writeIceParameters(e.iceGatherer.getLocalParameters()),r+=i.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===t?"actpass":a||"active"),r+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?r+="a=sendrecv\r\n":e.rtpSender?r+="a=sendonly\r\n":e.rtpReceiver?r+="a=recvonly\r\n":r+="a=inactive\r\n",e.rtpSender){var o=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=o;var s="msid:"+(n?n.id:"-")+" "+o+"\r\n";r+="a="+s,r+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+s,e.sendEncodingParameters[0].rtx&&(r+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+s,r+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return r+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(r+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+"\r\n"),r}function a(e,A){var t={codecs:[],headerExtensions:[],fecMechanisms:[]},i=function(e,A){e=parseInt(e,10);for(var t=0;t=14393&&-1===e.indexOf("?transport=udp"):(t=!0,!0)})),delete e.url,e.urls=n?i[0]:i,!!i.length}}))}(t.iceServers||[],A),this._iceGatherers=[],t.iceCandidatePoolSize)for(var r=t.iceCandidatePoolSize;r>0;r--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:t.iceServers,gatherPolicy:t.iceTransportPolicy}));else t.iceCandidatePoolSize=0;this._config=t,this.transceivers=[],this._sdpSessionId=i.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(c.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(c.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),c.prototype.onicecandidate=null,c.prototype.onaddstream=null,c.prototype.ontrack=null,c.prototype.onremovestream=null,c.prototype.onsignalingstatechange=null,c.prototype.oniceconnectionstatechange=null,c.prototype.onconnectionstatechange=null,c.prototype.onicegatheringstatechange=null,c.prototype.onnegotiationneeded=null,c.prototype.ondatachannel=null,c.prototype._dispatchEvent=function(e,A){this._isClosed||(this.dispatchEvent(A),"function"==typeof this["on"+e]&&this["on"+e](A))},c.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},c.prototype.getConfiguration=function(){return this._config},c.prototype.getLocalStreams=function(){return this.localStreams},c.prototype.getRemoteStreams=function(){return this.remoteStreams},c.prototype._createTransceiver=function(e,A){var t=this.transceivers.length>0,i={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&t)i.iceTransport=this.transceivers[0].iceTransport,i.dtlsTransport=this.transceivers[0].dtlsTransport;else{var n=this._createIceAndDtlsTransports();i.iceTransport=n.iceTransport,i.dtlsTransport=n.dtlsTransport}return A||this.transceivers.push(i),i},c.prototype.addTrack=function(A,t){if(this._isClosed)throw s("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var i;if(this.transceivers.find((function(e){return e.track===A})))throw s("InvalidAccessError","Track already exists.");for(var n=0;n=15025)e.getTracks().forEach((function(A){t.addTrack(A,e)}));else{var i=e.clone();e.getTracks().forEach((function(e,A){var t=i.getTracks()[A];e.addEventListener("enabled",(function(e){t.enabled=e.enabled}))})),i.getTracks().forEach((function(e){t.addTrack(e,i)}))}},c.prototype.removeTrack=function(A){if(this._isClosed)throw s("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(A instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var t=this.transceivers.find((function(e){return e.rtpSender===A}));if(!t)throw s("InvalidAccessError","Sender was not created by this connection.");var i=t.stream;t.rtpSender.stop(),t.rtpSender=null,t.track=null,t.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(i)&&this.localStreams.indexOf(i)>-1&&this.localStreams.splice(this.localStreams.indexOf(i),1),this._maybeFireNegotiationNeeded()},c.prototype.removeStream=function(e){var A=this;e.getTracks().forEach((function(e){var t=A.getSenders().find((function(A){return A.track===e}));t&&A.removeTrack(t)}))},c.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},c.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},c.prototype._createIceGatherer=function(A,t){var i=this;if(t&&A>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var n=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(n,"state",{value:"new",writable:!0}),this.transceivers[A].bufferedCandidateEvents=[],this.transceivers[A].bufferCandidates=function(e){var t=!e.candidate||0===Object.keys(e.candidate).length;n.state=t?"completed":"gathering",null!==i.transceivers[A].bufferedCandidateEvents&&i.transceivers[A].bufferedCandidateEvents.push(e)},n.addEventListener("localcandidate",this.transceivers[A].bufferCandidates),n},c.prototype._gather=function(A,t){var n=this,a=this.transceivers[t].iceGatherer;if(!a.onlocalcandidate){var r=this.transceivers[t].bufferedCandidateEvents;this.transceivers[t].bufferedCandidateEvents=null,a.removeEventListener("localcandidate",this.transceivers[t].bufferCandidates),a.onlocalcandidate=function(e){if(!(n.usingBundle&&t>0)){var r=new Event("icecandidate");r.candidate={sdpMid:A,sdpMLineIndex:t};var o=e.candidate,s=!o||0===Object.keys(o).length;if(s)"new"!==a.state&&"gathering"!==a.state||(a.state="completed");else{"new"===a.state&&(a.state="gathering"),o.component=1,o.ufrag=a.getLocalParameters().usernameFragment;var g=i.writeCandidate(o);r.candidate=Object.assign(r.candidate,i.parseCandidate(g)),r.candidate.candidate=g,r.candidate.toJSON=function(){return{candidate:r.candidate.candidate,sdpMid:r.candidate.sdpMid,sdpMLineIndex:r.candidate.sdpMLineIndex,usernameFragment:r.candidate.usernameFragment}}}var l=i.getMediaSections(n._localDescription.sdp);l[r.candidate.sdpMLineIndex]+=s?"a=end-of-candidates\r\n":"a="+r.candidate.candidate+"\r\n",n._localDescription.sdp=i.getDescription(n._localDescription.sdp)+l.join("");var c=n.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==n.iceGatheringState&&(n.iceGatheringState="gathering",n._emitGatheringStateChange()),s||n._dispatchEvent("icecandidate",r),c&&(n._dispatchEvent("icecandidate",new Event("icecandidate")),n.iceGatheringState="complete",n._emitGatheringStateChange())}},e.setTimeout((function(){r.forEach((function(e){a.onlocalcandidate(e)}))}),0)}},c.prototype._createIceAndDtlsTransports=function(){var A=this,t=new e.RTCIceTransport(null);t.onicestatechange=function(){A._updateIceConnectionState(),A._updateConnectionState()};var i=new e.RTCDtlsTransport(t);return i.ondtlsstatechange=function(){A._updateConnectionState()},i.onerror=function(){Object.defineProperty(i,"state",{value:"failed",writable:!0}),A._updateConnectionState()},{iceTransport:t,dtlsTransport:i}},c.prototype._disposeIceAndDtlsTransports=function(e){var A=this.transceivers[e].iceGatherer;A&&(delete A.onlocalcandidate,delete this.transceivers[e].iceGatherer);var t=this.transceivers[e].iceTransport;t&&(delete t.onicestatechange,delete this.transceivers[e].iceTransport);var i=this.transceivers[e].dtlsTransport;i&&(delete i.ondtlsstatechange,delete i.onerror,delete this.transceivers[e].dtlsTransport)},c.prototype._transceive=function(e,t,n){var r=a(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(r.encodings=e.sendEncodingParameters,r.rtcp={cname:i.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(r.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(r)),n&&e.rtpReceiver&&r.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&A<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?r.encodings=e.recvEncodingParameters:r.encodings=[{}],r.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(r.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(r.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(r))},c.prototype.setLocalDescription=function(e){var A,t,n=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(s("TypeError",'Unsupported type "'+e.type+'"'));if(!r("setLocalDescription",e.type,n.signalingState)||n._isClosed)return Promise.reject(s("InvalidStateError","Can not set local "+e.type+" in state "+n.signalingState));if("offer"===e.type)A=i.splitSections(e.sdp),t=A.shift(),A.forEach((function(e,A){var t=i.parseRtpParameters(e);n.transceivers[A].localCapabilities=t})),n.transceivers.forEach((function(e,A){n._gather(e.mid,A)}));else if("answer"===e.type){A=i.splitSections(n._remoteDescription.sdp),t=A.shift();var o=i.matchPrefix(t,"a=ice-lite").length>0;A.forEach((function(e,A){var r=n.transceivers[A],s=r.iceGatherer,g=r.iceTransport,l=r.dtlsTransport,c=r.localCapabilities,d=r.remoteCapabilities;if(!(i.isRejected(e)&&0===i.matchPrefix(e,"a=bundle-only").length||r.rejected)){var I=i.getIceParameters(e,t),C=i.getDtlsParameters(e,t);o&&(C.role="server"),n.usingBundle&&0!==A||(n._gather(r.mid,A),"new"===g.state&&g.start(s,I,o?"controlling":"controlled"),"new"===l.state&&l.start(C));var h=a(c,d);n._transceive(r,h.codecs.length>0,!1)}}))}return n._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?n._updateSignalingState("have-local-offer"):n._updateSignalingState("stable"),Promise.resolve()},c.prototype.setRemoteDescription=function(n){var c=this;if(-1===["offer","answer"].indexOf(n.type))return Promise.reject(s("TypeError",'Unsupported type "'+n.type+'"'));if(!r("setRemoteDescription",n.type,c.signalingState)||c._isClosed)return Promise.reject(s("InvalidStateError","Can not set remote "+n.type+" in state "+c.signalingState));var d={};c.remoteStreams.forEach((function(e){d[e.id]=e}));var I=[],C=i.splitSections(n.sdp),h=C.shift(),u=i.matchPrefix(h,"a=ice-lite").length>0,B=i.matchPrefix(h,"a=group:BUNDLE ").length>0;c.usingBundle=B;var f=i.matchPrefix(h,"a=ice-options:")[0];return c.canTrickleIceCandidates=!!f&&f.substr(14).split(" ").indexOf("trickle")>=0,C.forEach((function(r,s){var l=i.splitLines(r),C=i.getKind(r),f=i.isRejected(r)&&0===i.matchPrefix(r,"a=bundle-only").length,E=l[0].substr(2).split(" ")[2],x=i.getDirection(r,h),Q=i.parseMsid(r),p=i.getMid(r)||i.generateIdentifier();if(f||"application"===C&&("DTLS/SCTP"===E||"UDP/DTLS/SCTP"===E))c.transceivers[s]={mid:p,kind:C,protocol:E,rejected:!0};else{var m,y,_,S,v,D,w,b,F;!f&&c.transceivers[s]&&c.transceivers[s].rejected&&(c.transceivers[s]=c._createTransceiver(C,!0));var R,k,P=i.parseRtpParameters(r);f||(R=i.getIceParameters(r,h),(k=i.getDtlsParameters(r,h)).role="client"),w=i.parseRtpEncodingParameters(r);var T=i.parseRtcpParameters(r),N=i.matchPrefix(r,"a=end-of-candidates",h).length>0,M=i.matchPrefix(r,"a=candidate:").map((function(e){return i.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===n.type||"answer"===n.type)&&!f&&B&&s>0&&c.transceivers[s]&&(c._disposeIceAndDtlsTransports(s),c.transceivers[s].iceGatherer=c.transceivers[0].iceGatherer,c.transceivers[s].iceTransport=c.transceivers[0].iceTransport,c.transceivers[s].dtlsTransport=c.transceivers[0].dtlsTransport,c.transceivers[s].rtpSender&&c.transceivers[s].rtpSender.setTransport(c.transceivers[0].dtlsTransport),c.transceivers[s].rtpReceiver&&c.transceivers[s].rtpReceiver.setTransport(c.transceivers[0].dtlsTransport)),"offer"!==n.type||f)"answer"!==n.type||f||(y=(m=c.transceivers[s]).iceGatherer,_=m.iceTransport,S=m.dtlsTransport,v=m.rtpReceiver,D=m.sendEncodingParameters,b=m.localCapabilities,c.transceivers[s].recvEncodingParameters=w,c.transceivers[s].remoteCapabilities=P,c.transceivers[s].rtcpParameters=T,M.length&&"new"===_.state&&(!u&&!N||B&&0!==s?M.forEach((function(e){o(m.iceTransport,e)})):_.setRemoteCandidates(M)),B&&0!==s||("new"===_.state&&_.start(y,R,"controlling"),"new"===S.state&&S.start(k)),!a(m.localCapabilities,m.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&m.sendEncodingParameters[0].rtx&&delete m.sendEncodingParameters[0].rtx,c._transceive(m,"sendrecv"===x||"recvonly"===x,"sendrecv"===x||"sendonly"===x),!v||"sendrecv"!==x&&"sendonly"!==x?delete m.rtpReceiver:(F=v.track,Q?(d[Q.stream]||(d[Q.stream]=new e.MediaStream),t(F,d[Q.stream]),I.push([F,v,d[Q.stream]])):(d.default||(d.default=new e.MediaStream),t(F,d.default),I.push([F,v,d.default]))));else{(m=c.transceivers[s]||c._createTransceiver(C)).mid=p,m.iceGatherer||(m.iceGatherer=c._createIceGatherer(s,B)),M.length&&"new"===m.iceTransport.state&&(!N||B&&0!==s?M.forEach((function(e){o(m.iceTransport,e)})):m.iceTransport.setRemoteCandidates(M)),b=e.RTCRtpReceiver.getCapabilities(C),A<15019&&(b.codecs=b.codecs.filter((function(e){return"rtx"!==e.name}))),D=m.sendEncodingParameters||[{ssrc:1001*(2*s+2)}];var L,G=!1;"sendrecv"===x||"sendonly"===x?(G=!m.rtpReceiver,v=m.rtpReceiver||new e.RTCRtpReceiver(m.dtlsTransport,C),G&&(F=v.track,Q&&"-"===Q.stream||(Q?(d[Q.stream]||(d[Q.stream]=new e.MediaStream,Object.defineProperty(d[Q.stream],"id",{get:function(){return Q.stream}})),Object.defineProperty(F,"id",{get:function(){return Q.track}}),L=d[Q.stream]):(d.default||(d.default=new e.MediaStream),L=d.default)),L&&(t(F,L),m.associatedRemoteMediaStreams.push(L)),I.push([F,v,L]))):m.rtpReceiver&&m.rtpReceiver.track&&(m.associatedRemoteMediaStreams.forEach((function(e){var A=e.getTracks().find((function(e){return e.id===m.rtpReceiver.track.id}));A&&g(A,e)})),m.associatedRemoteMediaStreams=[]),m.localCapabilities=b,m.remoteCapabilities=P,m.rtpReceiver=v,m.rtcpParameters=T,m.sendEncodingParameters=D,m.recvEncodingParameters=w,c._transceive(c.transceivers[s],!1,G)}}})),void 0===c._dtlsRole&&(c._dtlsRole="offer"===n.type?"active":"passive"),c._remoteDescription={type:n.type,sdp:n.sdp},"offer"===n.type?c._updateSignalingState("have-remote-offer"):c._updateSignalingState("stable"),Object.keys(d).forEach((function(A){var t=d[A];if(t.getTracks().length){if(-1===c.remoteStreams.indexOf(t)){c.remoteStreams.push(t);var i=new Event("addstream");i.stream=t,e.setTimeout((function(){c._dispatchEvent("addstream",i)}))}I.forEach((function(e){var A=e[0],i=e[1];t.id===e[2].id&&l(c,A,i,[t])}))}})),I.forEach((function(e){e[2]||l(c,e[0],e[1],[])})),e.setTimeout((function(){c&&c.transceivers&&c.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&e.iceTransport.addRemoteCandidate({})}))}),4e3),Promise.resolve()},c.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},c.prototype._updateSignalingState=function(e){this.signalingState=e;var A=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",A)},c.prototype._maybeFireNegotiationNeeded=function(){var A=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(A.needNegotiation){A.needNegotiation=!1;var e=new Event("negotiationneeded");A._dispatchEvent("negotiationneeded",e)}}),0))},c.prototype._updateIceConnectionState=function(){var e,A={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&A[e.iceTransport.state]++})),e="new",A.failed>0?e="failed":A.checking>0?e="checking":A.disconnected>0?e="disconnected":A.new>0?e="new":A.connected>0?e="connected":A.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var t=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",t)}},c.prototype._updateConnectionState=function(){var e,A={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(A[e.iceTransport.state]++,A[e.dtlsTransport.state]++)})),A.connected+=A.completed,e="new",A.failed>0?e="failed":A.connecting>0?e="connecting":A.disconnected>0?e="disconnected":A.new>0?e="new":A.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var t=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",t)}},c.prototype.createOffer=function(){var t=this;if(t._isClosed)return Promise.reject(s("InvalidStateError","Can not call createOffer after close"));var a=t.transceivers.filter((function(e){return"audio"===e.kind})).length,r=t.transceivers.filter((function(e){return"video"===e.kind})).length,o=arguments[0];if(o){if(o.mandatory||o.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==o.offerToReceiveAudio&&(a=!0===o.offerToReceiveAudio?1:!1===o.offerToReceiveAudio?0:o.offerToReceiveAudio),void 0!==o.offerToReceiveVideo&&(r=!0===o.offerToReceiveVideo?1:!1===o.offerToReceiveVideo?0:o.offerToReceiveVideo)}for(t.transceivers.forEach((function(e){"audio"===e.kind?--a<0&&(e.wantReceive=!1):"video"===e.kind&&--r<0&&(e.wantReceive=!1)}));a>0||r>0;)a>0&&(t._createTransceiver("audio"),a--),r>0&&(t._createTransceiver("video"),r--);var g=i.writeSessionBoilerplate(t._sdpSessionId,t._sdpSessionVersion++);t.transceivers.forEach((function(n,a){var r=n.track,o=n.kind,s=n.mid||i.generateIdentifier();n.mid=s,n.iceGatherer||(n.iceGatherer=t._createIceGatherer(a,t.usingBundle));var g=e.RTCRtpSender.getCapabilities(o);A<15019&&(g.codecs=g.codecs.filter((function(e){return"rtx"!==e.name}))),g.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),n.remoteCapabilities&&n.remoteCapabilities.codecs&&n.remoteCapabilities.codecs.forEach((function(A){e.name.toLowerCase()===A.name.toLowerCase()&&e.clockRate===A.clockRate&&(e.preferredPayloadType=A.payloadType)}))})),g.headerExtensions.forEach((function(e){(n.remoteCapabilities&&n.remoteCapabilities.headerExtensions||[]).forEach((function(A){e.uri===A.uri&&(e.id=A.id)}))}));var l=n.sendEncodingParameters||[{ssrc:1001*(2*a+1)}];r&&A>=15019&&"video"===o&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),n.wantReceive&&(n.rtpReceiver=new e.RTCRtpReceiver(n.dtlsTransport,o)),n.localCapabilities=g,n.sendEncodingParameters=l})),"max-compat"!==t._config.bundlePolicy&&(g+="a=group:BUNDLE "+t.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),g+="a=ice-options:trickle\r\n",t.transceivers.forEach((function(e,A){g+=n(e,e.localCapabilities,"offer",e.stream,t._dtlsRole),g+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===t.iceGatheringState||0!==A&&t.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,g+="a="+i.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(g+="a=end-of-candidates\r\n"))}));var l=new e.RTCSessionDescription({type:"offer",sdp:g});return Promise.resolve(l)},c.prototype.createAnswer=function(){var t=this;if(t._isClosed)return Promise.reject(s("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==t.signalingState&&"have-local-pranswer"!==t.signalingState)return Promise.reject(s("InvalidStateError","Can not call createAnswer in signalingState "+t.signalingState));var r=i.writeSessionBoilerplate(t._sdpSessionId,t._sdpSessionVersion++);t.usingBundle&&(r+="a=group:BUNDLE "+t.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),r+="a=ice-options:trickle\r\n";var o=i.getMediaSections(t._remoteDescription.sdp).length;t.transceivers.forEach((function(e,i){if(!(i+1>o)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?r+="m=application 0 DTLS/SCTP 5000\r\n":r+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?r+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(r+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(r+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var s;e.stream&&("audio"===e.kind?s=e.stream.getAudioTracks()[0]:"video"===e.kind&&(s=e.stream.getVideoTracks()[0]),s&&A>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var g=a(e.localCapabilities,e.remoteCapabilities);!g.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,r+=n(e,g,"answer",e.stream,t._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(r+="a=rtcp-rsize\r\n")}}));var g=new e.RTCSessionDescription({type:"answer",sdp:r});return Promise.resolve(g)},c.prototype.addIceCandidate=function(e){var A,t=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(n,a){if(!t._remoteDescription)return a(s("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var r=e.sdpMLineIndex;if(e.sdpMid)for(var g=0;g0?i.parseCandidate(e.candidate):{};if("tcp"===c.protocol&&(0===c.port||9===c.port))return n();if(c.component&&1!==c.component)return n();if((0===r||r>0&&l.iceTransport!==t.transceivers[0].iceTransport)&&!o(l.iceTransport,c))return a(s("OperationError","Can not add ICE candidate"));var d=e.candidate.trim();0===d.indexOf("a=")&&(d=d.substr(2)),(A=i.getMediaSections(t._remoteDescription.sdp))[r]+="a="+(c.type?d:"end-of-candidates")+"\r\n",t._remoteDescription.sdp=i.getDescription(t._remoteDescription.sdp)+A.join("")}else for(var I=0;I0?A[0].split("/")[1]:"sendrecv",uri:A[1]}},i.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},i.parseFmtp=function(e){for(var A,t={},i=e.substr(e.indexOf(" ")+1).split(";"),n=0;n-1?(t.attribute=e.substr(A+1,i-A-1),t.value=e.substr(i+1)):t.attribute=e.substr(A+1),t},i.parseSsrcGroup=function(e){var A=e.substr(13).split(" ");return{semantics:A.shift(),ssrcs:A.map((function(e){return parseInt(e,10)}))}},i.getMid=function(e){var A=i.matchPrefix(e,"a=mid:")[0];if(A)return A.substr(6)},i.parseFingerprint=function(e){var A=e.substr(14).split(" ");return{algorithm:A[0].toLowerCase(),value:A[1]}},i.getDtlsParameters=function(e,A){return{role:"auto",fingerprints:i.matchPrefix(e+A,"a=fingerprint:").map(i.parseFingerprint)}},i.writeDtlsParameters=function(e,A){var t="a=setup:"+A+"\r\n";return e.fingerprints.forEach((function(e){t+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),t},i.getIceParameters=function(e,A){var t=i.splitLines(e);return{usernameFragment:(t=t.concat(i.splitLines(A))).filter((function(e){return 0===e.indexOf("a=ice-ufrag:")}))[0].substr(12),password:t.filter((function(e){return 0===e.indexOf("a=ice-pwd:")}))[0].substr(10)}},i.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},i.parseRtpParameters=function(e){for(var A={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},t=i.splitLines(e)[0].split(" "),n=3;n0?"9":"0",t+=" UDP/TLS/RTP/SAVPF ",t+=A.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",t+="c=IN IP4 0.0.0.0\r\n",t+="a=rtcp:9 IN IP4 0.0.0.0\r\n",A.codecs.forEach((function(e){t+=i.writeRtpMap(e),t+=i.writeFmtp(e),t+=i.writeRtcpFb(e)}));var n=0;return A.codecs.forEach((function(e){e.maxptime>n&&(n=e.maxptime)})),n>0&&(t+="a=maxptime:"+n+"\r\n"),t+="a=rtcp-mux\r\n",A.headerExtensions&&A.headerExtensions.forEach((function(e){t+=i.writeExtmap(e)})),t},i.parseRtpEncodingParameters=function(e){var A,t=[],n=i.parseRtpParameters(e),a=-1!==n.fecMechanisms.indexOf("RED"),r=-1!==n.fecMechanisms.indexOf("ULPFEC"),o=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),s=o.length>0&&o[0].ssrc,g=i.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));g.length>0&&g[0].length>1&&g[0][0]===s&&(A=g[0][1]),n.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var i={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&A&&(i.rtx={ssrc:A}),t.push(i),a&&((i=JSON.parse(JSON.stringify(i))).fec={ssrc:s,mechanism:r?"red+ulpfec":"red"},t.push(i))}})),0===t.length&&s&&t.push({ssrc:s});var l=i.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,t.forEach((function(e){e.maxBitrate=l}))),t},i.parseRtcpParameters=function(e){var A={},t=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];t&&(A.cname=t.value,A.ssrc=t.ssrc);var n=i.matchPrefix(e,"a=rtcp-rsize");A.reducedSize=n.length>0,A.compound=0===n.length;var a=i.matchPrefix(e,"a=rtcp-mux");return A.mux=a.length>0,A},i.parseMsid=function(e){var A,t=i.matchPrefix(e,"a=msid:");if(1===t.length)return{stream:(A=t[0].substr(7).split(" "))[0],track:A[1]};var n=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return n.length>0?{stream:(A=n[0].value.split(" "))[0],track:A[1]}:void 0},i.parseSctpDescription=function(e){var A,t=i.parseMLine(e),n=i.matchPrefix(e,"a=max-message-size:");n.length>0&&(A=parseInt(n[0].substr(19),10)),isNaN(A)&&(A=65536);var a=i.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substr(12),10),protocol:t.fmt,maxMessageSize:A};if(i.matchPrefix(e,"a=sctpmap:").length>0){var r=i.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(r[0],10),protocol:r[1],maxMessageSize:A}}},i.writeSctpDescription=function(e,A){var t=[];return t="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+A.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+A.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+A.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+A.port+" "+A.protocol+" 65535\r\n"],void 0!==A.maxMessageSize&&t.push("a=max-message-size:"+A.maxMessageSize+"\r\n"),t.join("")},i.generateSessionId=function(){return Math.random().toString().substr(2,21)},i.writeSessionBoilerplate=function(e,A,t){var n=void 0!==A?A:2;return"v=0\r\no="+(t||"thisisadapterortc")+" "+(e||i.generateSessionId())+" "+n+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},i.writeMediaSection=function(e,A,t,n){var a=i.writeRtpDescription(e.kind,A);if(a+=i.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=i.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===t?"actpass":"active"),a+="a=mid:"+e.mid+"\r\n",e.direction?a+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var r="msid:"+n.id+" "+e.rtpSender.track.id+"\r\n";a+="a="+r,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+r,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+r,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+"\r\n"),a},i.getDirection=function(e,A){for(var t=i.splitLines(e),n=0;n=26&&e<=A||tC.extension.isInstalled()}return!0};var AC={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return null!==document.querySelector("#janus-extension-installed")},getScreen:function(e){var A=window.setTimeout((function(){var A=new Error("NavigatorUserMediaError");return A.name='The required Chrome extension is not installed: click here to install it. (NOTE: this will need you to refresh the page)',e(A)}),1e3);this.cache[A]=e,window.postMessage({type:"janusGetScreen",id:A},"*")},init:function(){var e={};this.cache=e,window.addEventListener("message",(function(A){if(A.origin==window.location.origin)if("janusGotScreen"==A.data.type&&e[A.data.id]){var t=e[A.data.id];if(delete e[A.data.id],""===A.data.sourceId){var i=new Error("NavigatorUserMediaError");i.name="You cancelled the request for permission, giving up...",t(i)}else t(null,A.data.sourceId)}else"janusGetScreenPending"==A.data.type&&window.clearTimeout(A.data.id)}))}};function tC(e,A){if(void 0===tC.initDone)return e.error("Library not initialized"),{};if(!tC.isWebrtcSupported())return e.error("WebRTC not supported by this browser"),{};if(tC.log("Library initialized: "+tC.initDone),(e=e||{}).success="function"==typeof e.success?e.success:tC.noop,e.error="function"==typeof e.error?e.error:tC.noop,e.destroyed="function"==typeof e.destroyed?e.destroyed:tC.noop,null===e.server||void 0===e.server)return e.error("Invalid server url"),{};var t=!1,i=null,n={},a=null,r=null,o=0,s=e.server;tC.isArray(s)?(tC.log("Multiple servers provided ("+s.length+"), will use the first that works"),s=null,r=e.server,tC.debug(r)):0===s.indexOf("ws")?(t=!0,tC.log("Using WebSockets to contact Janus: "+s)):(t=!1,tC.log("Using REST API to contact Janus: "+s));var g=e.iceServers;null==g&&(g=[{urls:"stun:stun.l.google.com:19302"}]);var l=e.iceTransportPolicy,c=e.bundlePolicy,d=e.ipv6;null==d&&(d=!1);var I=!1;void 0!==e.withCredentials&&null!==e.withCredentials&&(I=!0===e.withCredentials);var C=10;void 0!==e.max_poll_events&&null!==e.max_poll_events&&(C=e.max_poll_events),C<1&&(C=1);var h=null;void 0!==e.token&&null!==e.token&&(h=e.token);var u=null;void 0!==e.apisecret&&null!==e.apisecret&&(u=e.apisecret),this.destroyOnUnload=!0,void 0!==e.destroyOnUnload&&null!==e.destroyOnUnload&&(this.destroyOnUnload=!0===e.destroyOnUnload);var B=25e3;void 0!==e.keepAlivePeriod&&null!==e.keepAlivePeriod&&(B=e.keepAlivePeriod),isNaN(B)&&(B=25e3);var f=6e4;function E(e){var A={high:9e5,medium:3e5,low:1e5};return null!=e&&(e.high&&(A.high=e.high),e.medium&&(A.medium=e.medium),e.low&&(A.low=e.low)),A}void 0!==e.longPollTimeout&&null!==e.longPollTimeout&&(f=e.longPollTimeout),isNaN(f)&&(f=6e4);var x=!1,Q=null,p={},m=this,y=0,_={};function S(){if(null!=Q)if(tC.debug("Long poll..."),x){var A=s+"/"+Q+"?rid="+(new Date).getTime();null!=C&&(A=A+"&maxev="+C),null!=h&&(A=A+"&token="+encodeURIComponent(h)),null!=u&&(A=A+"&apisecret="+encodeURIComponent(u)),tC.httpAPICall(A,{verb:"GET",withCredentials:I,success:v,timeout:f,error:function(A,t){if(tC.error(A+":",t),++y>3)return x=!1,void e.error("Lost connection to the server (is it down?)");S()}})}else tC.warn("Is the server down? (connected=false)")}function v(e,A){if(y=0,t||null==Q||!0===A||S(),t||!tC.isArray(e))if("keepalive"!==e.rtcgw)if("ack"!==e.rtcgw)if("success"!==e.rtcgw)if("trickle"===e.rtcgw){if(null==(s=e.sender))return void tC.warn("Missing sender...");if(null==(l=p[s]))return void tC.debug("This handle is not attached to this session");var n=e.candidate;tC.debug("Got a trickled candidate on session "+Q),tC.debug(n);var a=l.webrtcStuff;a.pc&&a.remoteSdp?(tC.debug("Adding remote candidate:",n),n&&!0!==n.completed?a.pc.addIceCandidate(n):a.pc.addIceCandidate(tC.endOfCandidates)):(tC.debug("We didn't do setRemoteDescription (trickle got here before the offer?), caching candidate"),a.candidates||(a.candidates=[]),a.candidates.push(n),tC.debug(a.candidates))}else{if("webrtcup"===e.rtcgw)return tC.debug("Got a webrtcup event on session "+Q),tC.debug(e),null==(s=e.sender)?void tC.warn("Missing sender..."):null==(l=p[s])?void tC.debug("This handle is not attached to this session"):void l.webrtcState(!0);if("hangup"===e.rtcgw){if(tC.debug("Got a hangup event on session "+Q),tC.debug(e),null==(s=e.sender))return void tC.warn("Missing sender...");if(null==(l=p[s]))return void tC.debug("This handle is not attached to this session");l.webrtcState(!1,e.reason),l.hangup()}else if("detached"===e.rtcgw){if(tC.debug("Got a detached event on session "+Q),tC.debug(e),null==(s=e.sender))return void tC.warn("Missing sender...");if(null==(l=p[s]))return;l.detached=!0,l.ondetached(),l.detach()}else if("media"===e.rtcgw){if(tC.debug("Got a media event on session "+Q),tC.debug(e),null==(s=e.sender))return void tC.warn("Missing sender...");if(null==(l=p[s]))return void tC.debug("This handle is not attached to this session");l.mediaState(e.type,e.receiving)}else if("slowlink"===e.rtcgw){if(tC.debug("Got a slowlink event on session "+Q),tC.debug(e),null==(s=e.sender))return void tC.warn("Missing sender...");if(null==(l=p[s]))return void tC.debug("This handle is not attached to this session");l.slowLink(e.uplink,e.lost)}else{var r,o;if("error"===e.rtcgw)return tC.error("Ooops: "+e.error.code+" "+e.error.reason),tC.debug(e),void(null!=(r=e.transaction)&&(null!=(o=_[r])&&o(e),delete _[r]));if("event"===e.rtcgw){var s;if(tC.debug("Got a plugin event on session "+Q),tC.debug(e),null==(s=e.sender))return void tC.warn("Missing sender...");var g=e.plugindata;if(null==g)return void tC.warn("Missing plugindata...");tC.debug(" -- Event is coming from "+s+" ("+g.plugin+")");var l,c=g.data;if(tC.debug(c),null==(l=p[s]))return void tC.warn("This handle is not attached to this session");var d=e.jsep;null!=d&&(tC.debug("Handling SDP as well..."),tC.debug(d));var I=l.onmessage;null!=I?(tC.debug("Notifying application..."),I(c,d)):tC.debug("No provided notification callback")}else{if("timeout"===e.rtcgw)return tC.error("Timeout on session "+Q),tC.debug(e),void(t&&i.close(3504,"Gateway timeout"));tC.warn("Unknown message/event '"+e.rtcgw+"' on session "+Q),tC.debug(e)}}}else tC.debug("Got a success on session "+Q),null!=(r=e.transaction)&&(null!=(o=_[r])&&o(e),delete _[r]);else null!=(r=e.transaction)&&(null!=(o=_[r])&&o(e),delete _[r]);else tC.vdebug("Got a keepalive on session "+Q);else for(var C=0;C data channel: "+t),"open"===t){if(a.dataChannel[A].pending&&a.dataChannel[A].pending.length>0){for(var i in tC.log("Sending pending messages on <"+A+">:",a.dataChannel[A].pending.length),a.dataChannel[A].pending){var r=a.dataChannel[A].pending[i];tC.log("Sending string on data channel <"+A+">: "+r),a.dataChannel[A].send(r)}a.dataChannel[A].pending=[]}n.ondataopen(A)}};a.dataChannel[A]=t||a.pc.createDataChannel(A,{ordered:!1}),a.dataChannel[A].onmessage=function(e){tC.log("Received message on data channel:",e);var A=e.target.label;n.ondata(e.data,A)},a.dataChannel[A].onopen=r,a.dataChannel[A].onclose=r,a.dataChannel[A].onerror=function(e){tC.error("Got error on data channel:",e)},a.dataChannel[A].pending=[],i&&a.dataChannel[A].pending.push(i)}else tC.warn("Invalid handle")}function k(e,A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop,A.error="function"==typeof A.error?A.error:tC.noop;var t=p[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return tC.warn("Invalid handle"),void A.error("Invalid handle");var i=t.webrtcStuff,n=A.text;if(null==n)return tC.warn("Invalid text"),void A.error("Invalid text");var a=A.label?A.label:tC.dataChanDefaultLabel;return i.dataChannel[a]?"open"!==i.dataChannel[a].readyState?(i.dataChannel[a].pending.push(n),void A.success()):(tC.log("Sending string on data channel <"+a+">: "+n),i.dataChannel[a].send(n),void A.success()):(R(e,a,!1,n),void A.success())}function P(e,A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop,A.error="function"==typeof A.error?A.error:tC.noop;var t=p[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return tC.warn("Invalid handle"),void A.error("Invalid handle");var i=t.webrtcStuff;if(null===i.dtmfSender||void 0===i.dtmfSender){if(void 0!==i.pc&&null!==i.pc){var n=i.pc.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}));if(!n)return tC.warn("Invalid DTMF configuration (no audio track)"),void A.error("Invalid DTMF configuration (no audio track)");i.dtmfSender=n.dtmf,i.dtmfSender&&(tC.log("Created DTMF Sender"),i.dtmfSender.ontonechange=function(e){tC.debug("Sent DTMF tone: "+e.tone)})}if(null===i.dtmfSender||void 0===i.dtmfSender)return tC.warn("Invalid DTMF configuration"),void A.error("Invalid DTMF configuration")}var a=A.dtmf;if(null==a)return tC.warn("Invalid DTMF parameters"),void A.error("Invalid DTMF parameters");var r=a.tones;if(null==r)return tC.warn("Invalid DTMF string"),void A.error("Invalid DTMF string");var o=a.duration;null==o&&(o=500);var s=a.gap;null==s&&(s=50),tC.debug("Sending DTMF string "+r+" (duration "+o+"ms, gap "+s+"ms)"),i.dtmfSender.insertDTMF(r,o,s),A.success()}function T(e,A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop,A.error="function"==typeof A.error?A.error:tC.noop;var n=!0;void 0!==A.asyncRequest&&null!==A.asyncRequest&&(n=!0===A.asyncRequest);var a=!0;void 0!==A.noRequest&&null!==A.noRequest&&(a=!0===A.noRequest),tC.log("Destroying handle "+e+" (async="+n+")"),K(e);var r=p[e];if(null==r||r.detached)return delete p[e],void A.success();if(a)return delete p[e],void A.success();if(!x)return tC.warn("Is the server down? (connected=false)"),void A.error("Is the server down? (connected=false)");var o={rtcgw:"detach",transaction:tC.randomString(12)};if(null!==r.token&&void 0!==r.token&&(o.token=r.token),null!=u&&(o.apisecret=u),t)return o.session_id=Q,o.handle_id=e,i.send(JSON.stringify(o)),delete p[e],void A.success();tC.httpAPICall(s+"/"+Q+"/"+e,{verb:"POST",async:n,withCredentials:I,body:o,success:function(t){tC.log("Destroyed handle:"),tC.debug(t),"success"!==t.rtcgw&&tC.error("Ooops: "+t.error.code+" "+t.error.reason),delete p[e],A.success()},error:function(t,i){tC.error(t+":",i),delete p[e],A.success()}})}async function N(e,A,t,i,n){var a=p[e];if(null==a||null===a.webrtcStuff||void 0===a.webrtcStuff)return tC.warn("Invalid handle"),void i.error("Invalid handle");var r=a.webrtcStuff;tC.debug("streamsDone:",n),n&&(tC.debug(" -- Audio tracks:",n.getAudioTracks()),tC.debug(" -- Video tracks:",n.getVideoTracks()));var o=!1;if(r.myStream&&t.update&&!r.streamExternal){if((!t.update&&O(t)||t.update&&(t.addAudio||t.replaceAudio))&&n.getAudioTracks()&&n.getAudioTracks().length)if(r.myStream.addTrack(n.getAudioTracks()[0]),tC.unifiedPlan){tC.log((t.replaceAudio?"Replacing":"Adding")+" audio track:",n.getAudioTracks()[0]);var s=null;if((f=r.pc.getTransceivers())&&f.length>0)for(var I in f)if((Q=f[I]).sender&&Q.sender.track&&"audio"===Q.sender.track.kind||Q.receiver&&Q.receiver.track&&"audio"===Q.receiver.track.kind){s=Q;break}let A=null;try{A=await i.customizeStream(n)}catch(e){i.error(e)}var C,h,u,B;s&&s.sender?s.sender.replaceTrack((null===(C=A)||void 0===C||null===(h=C.getAudioTracks)||void 0===h||null===(h=h.call(C))||void 0===h?void 0:h[0])||n.getAudioTracks()[0]):r.pc.addTrack((null===(u=A)||void 0===u||null===(B=u.getAudioTracks)||void 0===B||null===(B=B.call(u))||void 0===B?void 0:B[0])||n.getAudioTracks()[0],A||n)}else tC.log((t.replaceAudio?"Replacing":"Adding")+" audio track:",n.getAudioTracks()[0]),r.pc.addTrack(n.getAudioTracks()[0],n);if((!t.update&&j(t)||t.update&&(t.addVideo||t.replaceVideo))&&n.getVideoTracks()&&n.getVideoTracks().length)if(r.myStream.addTrack(n.getVideoTracks()[0]),tC.unifiedPlan){tC.log((t.replaceVideo?"Replacing":"Adding")+" video track:",n.getVideoTracks()[0]);var f,x=null;if((f=r.pc.getTransceivers())&&f.length>0)for(var I in f){var Q;if((Q=f[I]).sender&&Q.sender.track&&"video"===Q.sender.track.kind||Q.receiver&&Q.receiver.track&&"video"===Q.receiver.track.kind){x=Q;break}}x&&x.sender?x.sender.replaceTrack(n.getVideoTracks()[0]):r.pc.addTrack(n.getVideoTracks()[0],n)}else tC.log((t.replaceVideo?"Replacing":"Adding")+" video track:",n.getVideoTracks()[0]),r.pc.addTrack(n.getVideoTracks()[0],n)}else r.myStream=n,o=!0;if(!r.pc){var m={iceServers:g,iceTransportPolicy:l,bundlePolicy:c};"chrome"===tC.webRTCAdapter.browserDetails.browser&&(m.sdpSemantics=tC.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan");var y={optional:[{DtlsSrtpKeyAgreement:!0}]};if(!0===d&&y.optional.push({googIPv6:!0}),i.rtcConstraints&&"object"==typeof i.rtcConstraints)for(var I in tC.debug("Adding custom PeerConnection constraints:",i.rtcConstraints),i.rtcConstraints)y.optional.push(i.rtcConstraints[I]);"edge"===tC.webRTCAdapter.browserDetails.browser&&(m.bundlePolicy="max-bundle"),tC.log("Creating PeerConnection"),tC.debug(y),r.pc=new RTCPeerConnection(m,y),tC.debug(r.pc),r.pc.getStats&&(r.volume={},r.bitrate.value="0 kbits/sec"),tC.log("Preparing local SDP and gathering candidates (trickle="+r.trickle+")"),r.pc.oniceconnectionstatechange=function(e){r.pc&&a.iceState(r.pc.iceConnectionState)},r.pc.onicecandidate=function(A){if(null==A.candidate||"edge"===tC.webRTCAdapter.browserDetails.browser&&A.candidate.candidate.indexOf("endOfCandidates")>0)tC.log("End of candidates."),r.iceDone=!0,!0===r.trickle?F(e,{completed:!0}):function(e,A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop,A.error="function"==typeof A.error?A.error:tC.noop;var t=p[e];if(null!=t&&null!==t.webrtcStuff&&void 0!==t.webrtcStuff){var i=t.webrtcStuff;tC.log("Sending offer/answer SDP..."),null!==i.mySdp&&void 0!==i.mySdp?(i.mySdp={type:i.pc.localDescription.type,sdp:i.pc.localDescription.sdp},!1===i.trickle&&(i.mySdp.trickle=!1),tC.debug(A),i.sdpSent=!0,A.success(i.mySdp)):tC.warn("Local SDP instance is invalid, not sending anything...")}else tC.warn("Invalid handle, not sending anything")}(e,i);else{var t={candidate:A.candidate.candidate,sdpMid:A.candidate.sdpMid,sdpMLineIndex:A.candidate.sdpMLineIndex};!0===r.trickle&&F(e,t)}},r.pc.ontrack=function(e){tC.log("Handling Remote Track"),tC.debug(e),e.streams&&(r.remoteStream=e.streams[0],a.onremotestream(r.remoteStream),e.track.onended||(tC.log("Adding onended callback to track:",e.track),e.track.onended=function(e){tC.log("Remote track muted/removed:",e),r.remoteStream&&(r.remoteStream.removeTrack(e.target),a.onremotestream(r.remoteStream))},e.track.onmute=e.track.onended,e.track.onunmute=function(e){try{r.remoteStream.addTrack(e.target),a.onremotestream(r.remoteStream)}catch(e){tC.error(e)}}))}}if(o&&null!=n){tC.log("Adding local stream");var _=!0===i.simulcast2,S=n.getTracks();for(let A=0;A0)for(var l in g){var c=g[l];c.sender&&c.sender.track&&"audio"===c.sender.track.kind||c.receiver&&c.receiver.track&&"audio"===c.receiver.track.kind?o||(o=c):(c.sender&&c.sender.track&&"video"===c.sender.track.kind||c.receiver&&c.receiver.track&&"video"===c.receiver.track.kind)&&(s||(s=c))}var d=O(A),I=V(A);d||I?d&&I?o&&(o.setDirection?o.setDirection("sendrecv"):o.direction="sendrecv",tC.log("Setting audio transceiver to sendrecv:",o)):d&&!I?o&&(o.setDirection?o.setDirection("sendonly"):o.direction="sendonly",tC.log("Setting audio transceiver to sendonly:",o)):!d&&I&&(o?(o.setDirection?o.setDirection("recvonly"):o.direction="recvonly",tC.log("Setting audio transceiver to recvonly:",o)):(o=n.pc.addTransceiver("audio",{direction:"recvonly"}),tC.log("Adding recvonly audio transceiver:",o))):A.removeAudio&&o&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive",tC.log("Setting audio transceiver to inactive:",o));var C=j(A),h=W(A);C||h?C&&h?s&&(s.setDirection?s.setDirection("sendrecv"):s.direction="sendrecv",tC.log("Setting video transceiver to sendrecv:",s)):C&&!h?s&&(s.setDirection?s.setDirection("sendonly"):s.direction="sendonly",tC.log("Setting video transceiver to sendonly:",s)):!C&&h&&(s?(s.setDirection?s.setDirection("recvonly"):s.direction="recvonly",tC.log("Setting video transceiver to recvonly:",s)):(s=n.pc.addTransceiver("video",{direction:"recvonly"}),tC.log("Adding recvonly video transceiver:",s))):A.removeVideo&&s&&(s.setDirection?s.setDirection("inactive"):s.direction="inactive",tC.log("Setting video transceiver to inactive:",s))}else r.offerToReceiveAudio=V(A),r.offerToReceiveVideo=W(A);!0===t.iceRestart&&(r.iceRestart=!0),tC.debug(r);var u=j(A);if(u&&a&&"firefox"===tC.webRTCAdapter.browserDetails.browser){var B=n.pc.getSenders().find((function(e){return"video"==e.track.kind}));if(B){var f=B.getParameters();f||(f={});const e=E(t.simulcastMaxBitrates);f.encodings=[{rid:"h",active:!0,maxBitrate:e.high},{rid:"m",active:!0,maxBitrate:e.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:e.low,scaleResolutionDownBy:4}],B.setParameters(f)}}n.pc.createOffer(r).then((function(e){var A={type:e.type,sdp:e.sdp};t.customizeSdp(A),e.sdp=A.sdp,tC.log("Setting local description"),u&&a&&("chrome"===tC.webRTCAdapter.browserDetails.browser||"safari"===tC.webRTCAdapter.browserDetails.browser?(tC.log("Enabling Simulcasting for Chrome (SDP munging)"),e.sdp=function(e){for(var A=e.split("\r\n"),t=!1,i=[-1],n=[-1],a=null,r=null,o=null,s=null,g=-1,l=0;l-1){g=l;break}}else if(t){var c=A[l].match(/a=ssrc-group:FID (\d+) (\d+)/);if(c)i[0]=c[1],n[0]=c[2],A.splice(l,1),l--;else{if(i[0]){if((C=A[l].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(r=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(o=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" label:(.+)"))&&(s=C[1]),0===A[l].indexOf("a=ssrc:"+n[0])){A.splice(l,1),l--;continue}if(0===A[l].indexOf("a=ssrc:"+i[0])){A.splice(l,1),l--;continue}}0!=A[l].length||(A.splice(l,1),l--)}}if(i[0]<0)for(g=-1,t=!1,l=0;l-1){g=l;break}}else if(t){if(i[0]<0){var I=A[l].match(/a=ssrc:(\d+)/);if(I){i[0]=I[1],A.splice(l,1),l--;continue}}else{var C;if((C=A[l].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(r=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(o=C[1]),(C=A[l].match("a=ssrc:"+i[0]+" label:(.+)"))&&(s=C[1]),0===A[l].indexOf("a=ssrc:"+n[0])){A.splice(l,1),l--;continue}if(0===A[l].indexOf("a=ssrc:"+i[0])){A.splice(l,1),l--;continue}}0!=A[l].length||(A.splice(l,1),l--)}}if(i[0]<0)return tC.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),e;for(g<0&&(g=A.length),i[1]=Math.floor(4294967295*Math.random()),i[2]=Math.floor(4294967295*Math.random()),n[1]=Math.floor(4294967295*Math.random()),n[2]=Math.floor(4294967295*Math.random()),l=0;l0){for(var n=0;n0)for(var l in g){var c=g[l];c.sender&&c.sender.track&&"audio"===c.sender.track.kind||c.receiver&&c.receiver.track&&"audio"===c.receiver.track.kind?o||(o=c):(c.sender&&c.sender.track&&"video"===c.sender.track.kind||c.receiver&&c.receiver.track&&"video"===c.receiver.track.kind)&&(s||(s=c))}var d=O(A),I=V(A);if(d||I){if(d&&I){if(o)try{o.setDirection?o.setDirection("sendrecv"):o.direction="sendrecv",tC.log("Setting audio transceiver to sendrecv:",o)}catch(e){tC.error(e)}}else if(d&&!I)try{o&&(o.setDirection?o.setDirection("sendonly"):o.direction="sendonly",tC.log("Setting audio transceiver to sendonly:",o))}catch(e){tC.error(e)}else if(!d&&I)if(o)try{o.setDirection?o.setDirection("recvonly"):o.direction="recvonly",tC.log("Setting audio transceiver to recvonly:",o)}catch(e){tC.error(e)}else o=n.pc.addTransceiver("audio",{direction:"recvonly"}),tC.log("Adding recvonly audio transceiver:",o)}else if(A.removeAudio&&o)try{o.setDirection?o.setDirection("inactive"):o.direction="inactive",tC.log("Setting audio transceiver to inactive:",o)}catch(e){tC.error(e)}var C=j(A),h=W(A);if(C||h){if(C&&h){if(s)try{s.setDirection?s.setDirection("sendrecv"):s.direction="sendrecv",tC.log("Setting video transceiver to sendrecv:",s)}catch(e){tC.error(e)}}else if(C&&!h){if(s)try{s.setDirection?s.setDirection("sendonly"):s.direction="sendonly",tC.log("Setting video transceiver to sendonly:",s)}catch(e){tC.error(e)}}else if(!C&&h)if(s)try{s.setDirection?s.setDirection("recvonly"):s.direction="recvonly",tC.log("Setting video transceiver to recvonly:",s)}catch(e){tC.error(e)}else s=n.pc.addTransceiver("video",{direction:"recvonly"}),tC.log("Adding recvonly video transceiver:",s)}else if(A.removeVideo&&s)try{s.setDirection?s.setDirection("inactive"):s.direction="inactive",tC.log("Setting video transceiver to inactive:",s)}catch(e){tC.error(e)}}else r="firefox"==tC.webRTCAdapter.browserDetails.browser||"edge"==tC.webRTCAdapter.browserDetails.browser?{offerToReceiveAudio:V(A),offerToReceiveVideo:W(A)}:{mandatory:{OfferToReceiveAudio:V(A),OfferToReceiveVideo:W(A)}};tC.debug(r);var u=j(A);if(u&&a&&"firefox"===tC.webRTCAdapter.browserDetails.browser){tC.log("Enabling Simulcasting for Firefox (RID)");var B=n.pc.getSenders()[1];tC.log(B);var f=B.getParameters();tC.log(f);const e=E(t.simulcastMaxBitrates);B.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:e.high},{rid:"medium",active:!0,priority:"medium",maxBitrate:e.medium},{rid:"low",active:!0,priority:"low",maxBitrate:e.low}]})}n.pc.createAnswer(r).then((function(e){tC.debug(e);var A={type:e.type,sdp:e.sdp};t.customizeSdp(A),e.sdp=A.sdp,tC.log("Setting local description"),u&&a&&("chrome"===tC.webRTCAdapter.browserDetails.browser?tC.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):"firefox"!==tC.webRTCAdapter.browserDetails.browser&&tC.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),n.mySdp=e.sdp,n.pc.setLocalDescription(e).catch(t.error),n.mediaConstraints=r,n.iceDone||n.trickle?t.success(e):tC.log("Waiting for all candidates...")}),t.error)}(e,t,i)}),i.error)}function M(e,A,t){(t=t||{}).success="function"==typeof t.success?t.success:tC.noop,t.error="function"==typeof t.error?t.error:H,t.customizeStream="function"==typeof t.customizeStream?t.customizeStream:tC.noop;var i=t.jsep;if(A&&i)return tC.error("Provided a JSEP to a createOffer"),void t.error("Provided a JSEP to a createOffer");if(!(A||i&&i.type&&i.sdp))return tC.error("A valid JSEP is required for createAnswer"),void t.error("A valid JSEP is required for createAnswer");t.media=t.media||{audio:!0,video:!0};var n=t.media,a=p[e];if(null==a||null===a.webrtcStuff||void 0===a.webrtcStuff)return tC.warn("Invalid handle"),void t.error("Invalid handle");var r,o=a.webrtcStuff;if(o.trickle=null==(r=t.trickle)||!0===r,void 0===o.pc||null===o.pc)n.update=!1,n.keepAudio=!1,n.keepVideo=!1;else if(void 0!==o.pc&&null!==o.pc){if(tC.log("Updating existing media session"),n.update=!0,null!==t.stream&&void 0!==t.stream)t.stream!==o.myStream&&tC.log("Renegotiation involves a new external stream");else{if(n.addAudio){if(n.keepAudio=!1,n.replaceAudio=!1,n.removeAudio=!1,n.audioSend=!0,o.myStream&&o.myStream.getAudioTracks()&&o.myStream.getAudioTracks().length)return tC.error("Can't add audio stream, there already is one"),void t.error("Can't add audio stream, there already is one")}else n.removeAudio?(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!1,n.audioSend=!1):n.replaceAudio&&(n.keepAudio=!1,n.addAudio=!1,n.removeAudio=!1,n.audioSend=!0);if(null===o.myStream||void 0===o.myStream?(n.replaceAudio&&(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!0,n.audioSend=!0),O(n)&&(n.keepAudio=!1,n.addAudio=!0)):null===o.myStream.getAudioTracks()||void 0===o.myStream.getAudioTracks()||0===o.myStream.getAudioTracks().length?(n.replaceAudio&&(n.keepAudio=!1,n.replaceAudio=!1,n.addAudio=!0,n.audioSend=!0),O(n)&&(n.keepVideo=!1,n.addAudio=!0)):!O(n)||n.removeAudio||n.replaceAudio||(n.keepAudio=!0),n.addVideo){if(n.keepVideo=!1,n.replaceVideo=!1,n.removeVideo=!1,n.videoSend=!0,o.myStream&&o.myStream.getVideoTracks()&&o.myStream.getVideoTracks().length)return tC.error("Can't add video stream, there already is one"),void t.error("Can't add video stream, there already is one")}else n.removeVideo?(n.keepVideo=!1,n.replaceVideo=!1,n.addVideo=!1,n.videoSend=!1):n.replaceVideo&&(n.keepVideo=!1,n.addVideo=!1,n.removeVideo=!1,n.videoSend=!0);null===o.myStream||void 0===o.myStream||null===o.myStream.getVideoTracks()||void 0===o.myStream.getVideoTracks()||0===o.myStream.getVideoTracks().length?(n.replaceVideo&&(n.keepVideo=!1,n.replaceVideo=!1,n.addVideo=!0,n.videoSend=!0),j(n)&&(n.keepVideo=!1,n.addVideo=!0)):!j(n)||n.removeVideo||n.replaceVideo||(n.keepVideo=!0),n.addData&&(n.data=!0)}if(O(n)&&n.keepAudio&&j(n)&&n.keepVideo)return a.consentDialog(!1),void N(e,i,n,t,o.myStream)}if(n.update&&!o.streamExternal){if(n.removeAudio||n.replaceAudio){if(o.myStream&&o.myStream.getAudioTracks()&&o.myStream.getAudioTracks().length){var s=o.myStream.getAudioTracks()[0];tC.log("Removing audio track:",s),o.myStream.removeTrack(s);try{s.stop()}catch(v){}}if(o.pc.getSenders()&&o.pc.getSenders().length){var g=!0;if(n.replaceAudio&&tC.unifiedPlan&&(g=!1),g)for(var l in o.pc.getSenders())(s=o.pc.getSenders()[l])&&s.track&&"audio"===s.track.kind&&(tC.log("Removing audio sender:",s),o.pc.removeTrack(s))}}if(n.removeVideo||n.replaceVideo){if(o.myStream&&o.myStream.getVideoTracks()&&o.myStream.getVideoTracks().length){s=o.myStream.getVideoTracks()[0],tC.log("Removing video track:",s),o.myStream.removeTrack(s);try{s.stop()}catch(D){}}if(o.pc.getSenders()&&o.pc.getSenders().length){var c=!0;if(n.replaceVideo&&tC.unifiedPlan&&(c=!1),c)for(var l in o.pc.getSenders())(s=o.pc.getSenders()[l])&&s.track&&"video"===s.track.kind&&(tC.log("Removing video sender:",s),o.pc.removeTrack(s))}}}if(null!==t.stream&&void 0!==t.stream){var d=t.stream;if(tC.log("MediaStream provided by the application"),tC.debug(d),n.update&&o.myStream&&o.myStream!==t.stream&&!o.streamExternal){try{var I=o.myStream.getTracks();for(var C in I){var h=I[C];tC.log(h),null!=h&&h.stop()}}catch(w){}o.myStream=null}return o.streamExternal=!0,a.consentDialog(!1),void N(e,i,n,t,d)}if(O(n)||j(n)){if(!tC.isGetUserMediaAvailable())return void t.error("getUserMedia not available");var u={mandatory:{},optional:[]};a.consentDialog(!0);var B=O(n);!0===B&&null!=n&&null!=n&&"object"==typeof n.audio&&(B=n.audio);var f=j(n);if(!0===f&&null!=n&&null!=n){var E=!0===t.simulcast,x=!0===t.simulcast2;if(!E&&!x||i||void 0!==n.video&&!1!==n.video||(n.video="hires"),n.video&&"screen"!=n.video&&"window"!=n.video)if("object"==typeof n.video)f=n.video;else{var Q=0,m=0;"lowres"===n.video?(m=240,Q=320):"lowres-16:9"===n.video?(m=180,Q=320):"hires"===n.video||"hires-16:9"===n.video||"hdres"===n.video?(m=720,Q=1280):"fhdres"===n.video?(m=1080,Q=1920):"4kres"===n.video?(m=2160,Q=3840):"stdres"===n.video?(m=480,Q=640):"stdres-16:9"===n.video?(m=360,Q=640):(tC.log("Default video setting is stdres 4:3"),m=480,Q=640),tC.log("Adding media constraint:",n.video),f={height:{ideal:m},width:{ideal:Q}},tC.log("Adding video constraint:",f)}else if("screen"===n.video||"window"===n.video){if(n.screenshareFrameRate||(n.screenshareFrameRate=3),navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(A){a.consentDialog(!1),O(n)&&!n.keepAudio?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(a){A.addTrack(a.getAudioTracks()[0]),N(e,i,n,t,A)})):N(e,i,n,t,A)}),(function(e){a.consentDialog(!1),t.error(e)}));function b(A,r){a.consentDialog(!1),A?t.error(A):N(e,i,n,t,r)}function F(e,A,t){tC.log("Adding media constraint (screen capture)"),tC.debug(e),navigator.mediaDevices.getUserMedia(e).then((function(e){t?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(t){e.addTrack(t.getAudioTracks()[0]),A(null,e)})):A(null,e)})).catch((function(e){a.consentDialog(!1),A(e)}))}if("chrome"===tC.webRTCAdapter.browserDetails.browser){var y=tC.webRTCAdapter.browserDetails.version,_=33;window.navigator.userAgent.match("Linux")&&(_=35),y>=26&&y<=_?F(u={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:n.screenshareFrameRate,maxFrameRate:n.screenshareFrameRate,chromeMediaSource:"screen"}},audio:O(n)&&!n.keepAudio},b):tC.extension.getScreen((function(e,A){if(e)return a.consentDialog(!1),t.error(e);(u={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:n.screenshareFrameRate,maxFrameRate:n.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}}).video.mandatory.chromeMediaSourceId=A,F(u,b,O(n)&&!n.keepAudio)}))}else if("firefox"===tC.webRTCAdapter.browserDetails.browser){if(!(tC.webRTCAdapter.browserDetails.version>=33)){var S=new Error("NavigatorUserMediaError");return S.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",a.consentDialog(!1),void t.error(S)}F(u={video:{mozMediaSource:n.video,mediaSource:n.video},audio:O(n)&&!n.keepAudio},(function(e,A){if(b(e,A),!e)var t=A.currentTime,i=window.setInterval((function(){A||window.clearInterval(i),A.currentTime==t&&(window.clearInterval(i),A.onended&&A.onended()),t=A.currentTime}),500)}))}return}}null!=n&&"screen"===n.video||navigator.mediaDevices.enumerateDevices().then((function(A){var r=A.some((function(e){return"audioinput"===e.kind})),o=function(e){if(null==e)return!1;if("object"!=typeof e.video||"object"!=typeof e.video.mandatory)return!1;var A=e.video.mandatory;return A.chromeMediaSource?"desktop"===A.chromeMediaSource||"screen"===A.chromeMediaSource:A.mozMediaSource?"window"===A.mozMediaSource||"screen"===A.mozMediaSource:!!A.mediaSource&&("window"===A.mediaSource||"screen"===A.mediaSource)}(n)||A.some((function(e){return"videoinput"===e.kind})),s=O(n),g=j(n),l=function(e){return null!=e&&!1!==e.audio&&!1!==e.audioSend&&void 0!==e.failIfNoAudio&&null!==e.failIfNoAudio&&!0===e.failIfNoAudio}(n),c=function(e){return null!=e&&!1!==e.video&&!1!==e.videoSend&&void 0!==e.failIfNoVideo&&null!==e.failIfNoVideo&&!0===e.failIfNoVideo}(n);if(s||g||l||c){var I=!!s&&r,C=!!g&&o;if(!I&&!C)return a.consentDialog(!1),t.error("No capture device found"),!1;if(!I&&l)return a.consentDialog(!1),t.error("Audio capture is required, but no capture device found"),!1;if(!C&&c)return a.consentDialog(!1),t.error("Video capture is required, but no capture device found"),!1}var h={audio:!(!r||n.keepAudio)&&B,video:!(!o||n.keepVideo)&&f};tC.debug("getUserMedia constraints",h),h.audio||h.video?navigator.mediaDevices.getUserMedia(h).then((function(A){a.consentDialog(!1),N(e,i,n,t,A)})).catch((function(e){a.consentDialog(!1),t.error({code:e.code,name:e.name,message:e.message})})):(a.consentDialog(!1),N(e,i,n,t,d))})).catch((function(e){a.consentDialog(!1),t.error("enumerateDevices error",e)}))}else N(e,i,n,t)}function L(e,A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop,A.error="function"==typeof A.error?A.error:H;var t=A.jsep,i=p[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return tC.warn("Invalid handle"),void A.error("Invalid handle");var n=i.webrtcStuff;if(null!=t){if(null===n.pc)return tC.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"),void A.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");n.pc.setRemoteDescription(t).then((function(){if(tC.log("Remote description accepted!"),n.remoteSdp=t.sdp,n.candidates&&n.candidates.length>0){for(var e=0;e-1)&&"inbound-rtp"===e.type&&e.id.indexOf("rtcp")<0?A=!0:"ssrc"!=e.type||!e.bytesReceived||"VP8"!==e.googCodecName&&""!==e.googCodecName||(A=!0),A)if(t.bitrate.bsnow=e.bytesReceived,t.bitrate.tsnow=e.timestamp,null===t.bitrate.bsbefore||null===t.bitrate.tsbefore)t.bitrate.bsbefore=t.bitrate.bsnow,t.bitrate.tsbefore=t.bitrate.tsnow;else{var i=t.bitrate.tsnow-t.bitrate.tsbefore;"safari"==tC.webRTCAdapter.browserDetails.browser&&(i/=1e3);var n=Math.round(8*(t.bitrate.bsnow-t.bitrate.bsbefore)/i);"safari"===tC.webRTCAdapter.browserDetails.browser&&(n=parseInt(n/1e3)),t.bitrate.value=n+" kbits/sec",t.bitrate.bsbefore=t.bitrate.bsnow,t.bitrate.tsbefore=t.bitrate.tsnow}}}))}))}),1e3),"0 kbits/sec"):t.bitrate.value:(tC.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function H(e){tC.error("WebRTC error:",e)}function K(e,A){tC.log("Cleaning WebRTC stuff");var n=p[e];if(null!=n){var a=n.webrtcStuff;if(null!=a){if(!0===A){var r={rtcgw:"hangup",transaction:tC.randomString(12)};null!==n.token&&void 0!==n.token&&(r.token=n.token),null!=u&&(r.apisecret=u),tC.debug("Sending hangup request (handle="+e+"):",r),t?(r.session_id=Q,r.handle_id=e,i.send(JSON.stringify(r))):tC.httpAPICall(s+"/"+Q+"/"+e,{verb:"POST",withCredentials:I,body:r})}a.remoteStream=null,a.volume&&(a.volume.local&&a.volume.local.timer&&clearInterval(a.volume.local.timer),a.volume.remote&&a.volume.remote.timer&&clearInterval(a.volume.remote.timer)),a.volume={},a.bitrate.timer&&clearInterval(a.bitrate.timer),a.bitrate.timer=null,a.bitrate.bsnow=null,a.bitrate.bsbefore=null,a.bitrate.tsnow=null,a.bitrate.tsbefore=null,a.bitrate.value=null;try{if(!a.streamExternal&&null!==a.myStream&&void 0!==a.myStream){tC.log("Stopping local stream tracks");var o=a.myStream.getTracks();for(var g in o){var l=o[g];tC.log(l),null!=l&&l.stop()}}}catch(e){}a.streamExternal=!1,a.myStream=null;try{a.pc.close()}catch(e){}a.pc=null,a.candidates=null,a.mySdp=null,a.remoteSdp=null,a.iceDone=!1,a.dataChannel={},a.dtmfSender=null}n.oncleanup()}}function O(e){return null==e||!1!==e.audio&&(void 0===e.audioSend||null===e.audioSend||!0===e.audioSend)}function V(e){return null==e||!1!==e.audio&&(void 0===e.audioRecv||null===e.audioRecv||!0===e.audioRecv)}function j(e){return null==e||!1!==e.video&&(void 0===e.videoSend||null===e.videoSend||!0===e.videoSend)}function W(e){return null==e||!1!==e.video&&(void 0===e.videoRecv||null===e.videoRecv||!0===e.videoRecv)}w(e),this.getServer=function(){return s},this.isConnected=function(){return x},this.reconnect=function(e){(e=e||{}).success="function"==typeof e.success?e.success:tC.noop,e.error="function"==typeof e.error?e.error:tC.noop,e.reconnect=!0,w(e)},this.getSessionId=function(){return Q},this.destroy=function(A){!function(A){(A=A||{}).success="function"==typeof A.success?A.success:tC.noop;var r=!0;void 0!==A.asyncRequest&&null!==A.asyncRequest&&(r=!0===A.asyncRequest);var o=!0;void 0!==A.notifyDestroyed&&null!==A.notifyDestroyed&&(o=!0===A.notifyDestroyed);var g=!1;if(void 0!==A.cleanupHandles&&null!==A.cleanupHandles&&(g=!0===A.cleanupHandles),tC.log("Destroying session "+Q+" (async="+r+")"),!x)return tC.warn("Is the server down? (connected=false)"),void A.success();if(null==Q)return tC.warn("No session to destroy"),A.success(),void(o&&e.destroyed());if(g)for(var l in p)T(l,{noRequest:!0});var c={rtcgw:"destroy",transaction:tC.randomString(12)};if(null!=h&&(c.token=h),null!=u&&(c.apisecret=u),t){c.session_id=Q;var d=function(){for(var e in n)i.removeEventListener(e,n[e]);i.removeEventListener("message",C),i.removeEventListener("error",B),a&&clearTimeout(a),i.close()},C=function(t){var i=JSON.parse(t.data);i.session_id==c.session_id&&i.transaction==c.transaction&&(d(),A.success(),o&&e.destroyed())},B=function(t){d(),A.error("Failed to destroy the server: Is the server down?"),o&&e.destroyed()};return i.addEventListener("message",C),i.addEventListener("error",B),void i.send(JSON.stringify(c))}tC.httpAPICall(s+"/"+Q,{verb:"POST",async:r,withCredentials:I,body:c,success:function(t){tC.log("Destroyed session:"),tC.debug(t),Q=null,x=!1,"success"!==t.rtcgw&&tC.error("Ooops: "+t.error.code+" "+t.error.reason),A.success(),o&&e.destroyed()},error:function(t,i){tC.error(t+":",i),Q=null,x=!1,A.success(),o&&e.destroyed()}})}(A)},this.attach=function(e){!function(e){if((e=e||{}).success="function"==typeof e.success?e.success:tC.noop,e.error="function"==typeof e.error?e.error:tC.noop,e.consentDialog="function"==typeof e.consentDialog?e.consentDialog:tC.noop,e.iceState="function"==typeof e.iceState?e.iceState:tC.noop,e.mediaState="function"==typeof e.mediaState?e.mediaState:tC.noop,e.webrtcState="function"==typeof e.webrtcState?e.webrtcState:tC.noop,e.slowLink="function"==typeof e.slowLink?e.slowLink:tC.noop,e.onmessage="function"==typeof e.onmessage?e.onmessage:tC.noop,e.onlocalstream="function"==typeof e.onlocalstream?e.onlocalstream:tC.noop,e.onremotestream="function"==typeof e.onremotestream?e.onremotestream:tC.noop,e.ondata="function"==typeof e.ondata?e.ondata:tC.noop,e.ondataopen="function"==typeof e.ondataopen?e.ondataopen:tC.noop,e.oncleanup="function"==typeof e.oncleanup?e.oncleanup:tC.noop,e.ondetached="function"==typeof e.ondetached?e.ondetached:tC.noop,!x)return tC.warn("Is the server down? (connected=false)"),void e.error("Is the server down? (connected=false)");var A=e.plugin;if(null==A)return tC.error("Invalid plugin"),void e.error("Invalid plugin");var n=e.opaqueId,a=e.token?e.token:h,r=tC.randomString(12),o={rtcgw:"attach",plugin:A,opaque_id:n,transaction:r};if(null!=a&&(o.token=a),null!=u&&(o.apisecret=u),t)return _[r]=function(t){if("success"!==t.rtcgw)return tC.error("Ooops: "+t.error.code+" "+t.error.reason),void e.error("Ooops: "+t.error.code+" "+t.error.reason);var i=t.data.id;tC.log("Created handle: "+i);var n={session:m,plugin:A,id:i,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return i},getPlugin:function(){return A},getVolume:function(){return G(i,!0)},getRemoteVolume:function(){return G(i,!0)},getLocalVolume:function(){return G(i,!1)},isAudioMuted:function(){return Y(i,!1)},muteAudio:function(){return U(i,!1,!0)},unmuteAudio:function(){return U(i,!1,!1)},isVideoMuted:function(){return Y(i,!0)},muteVideo:function(){return U(i,!0,!0)},unmuteVideo:function(){return U(i,!0,!1)},getBitrate:function(){return J(i)},send:function(e){b(i,e)},data:function(e){k(i,e)},dtmf:function(e){P(i,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){M(i,!0,e)},createAnswer:function(e){M(i,!1,e)},handleRemoteJsep:function(e){L(i,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){K(i,!0===e)},detach:function(e){T(i,e)}};p[i]=n,e.success(n)},o.session_id=Q,void i.send(JSON.stringify(o));tC.httpAPICall(s+"/"+Q,{verb:"POST",withCredentials:I,body:o,success:function(t){if(tC.debug(t),"success"!==t.rtcgw)return tC.error("Ooops: "+t.error.code+" "+t.error.reason),void e.error("Ooops: "+t.error.code+" "+t.error.reason);var i=t.data.id;tC.log("Created handle: "+i);var n={session:m,plugin:A,id:i,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return i},getPlugin:function(){return A},getVolume:function(){return G(i,!0)},getRemoteVolume:function(){return G(i,!0)},getLocalVolume:function(){return G(i,!1)},isAudioMuted:function(){return Y(i,!1)},muteAudio:function(){return U(i,!1,!0)},unmuteAudio:function(){return U(i,!1,!1)},isVideoMuted:function(){return Y(i,!0)},muteVideo:function(){return U(i,!0,!0)},unmuteVideo:function(){return U(i,!0,!1)},getBitrate:function(){return J(i)},send:function(e){b(i,e)},data:function(e){k(i,e)},dtmf:function(e){P(i,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){M(i,!0,e)},createAnswer:function(e){M(i,!1,e)},handleRemoteJsep:function(e){L(i,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){K(i,!0===e)},detach:function(e){T(i,e)}};p[i]=n,e.success(n)},error:function(e,A){tC.error(e+":",A)}})}(e)}}tC.useDefaultDependencies=function(e){var A=e&&e.fetch||fetch,t=e&&e.Promise||Promise,i=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,A){return new i(e,A)},extension:e&&e.extension||AC,isArray:function(e){return Array.isArray(e)},webRTCAdapter:e&&e.adapter||window.adapter,httpAPICall:function(e,i){var n={method:i.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};"POST"===i.verb&&(n.headers["Content-Type"]="application/json"),void 0!==i.withCredentials&&(n.credentials=!0===i.withCredentials?"include":i.withCredentials?i.withCredentials:"omit"),void 0!==i.body&&(n.body=JSON.stringify(i.body));var a=A(e,n).catch((function(e){return t.reject({message:"Probably a network error, is the server down?",error:e})}));if(void 0!==i.timeout){var r=new t((function(e,A){var t=setTimeout((function(){return clearTimeout(t),A({message:"Request timed out",timeout:i.timeout})}),i.timeout)}));a=t.race([a,r])}return a.then((function(e){return e.ok?typeof i.success==typeof tC.noop?e.json().then((function(e){i.success(e)})).catch((function(A){return t.reject({message:"Failed to parse response body",error:A,response:e})})):void 0:t.reject({message:"API call failed",response:e})})).catch((function(e){typeof i.error==typeof tC.noop&&i.error(e.message||"<< internal error >>",e)})),a}}},tC.useOldDependencies=function(e){var A=e&&e.jQuery||jQuery,t=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,A){return new t(e,A)},isArray:function(e){return A.isArray(e)},extension:e&&e.extension||AC,webRTCAdapter:e&&e.adapter||adapter,httpAPICall:function(e,t){var i=void 0!==t.body?{contentType:"application/json",data:JSON.stringify(t.body)}:{},n=void 0!==t.withCredentials?{xhrFields:{withCredentials:t.withCredentials}}:{};return A.ajax(A.extend(i,n,{url:e,type:t.verb,cache:!1,dataType:"json",async:t.async,timeout:t.timeout,success:function(e){typeof t.success==typeof tC.noop&&t.success(e)},error:function(e,A,i){typeof t.error==typeof tC.noop&&t.error(A,i)}}))}}},tC.noop=function(){},tC.dataChanDefaultLabel="JanusDataChannel",tC.endOfCandidates=null,tC.init=function(e){if((e=e||{}).callback="function"==typeof e.callback?e.callback:tC.noop,!0===tC.initDone)e.callback();else{if("undefined"!=typeof console&&void 0!==console.log||(console={log:function(){}}),tC.trace=tC.noop,tC.debug=tC.noop,tC.vdebug=tC.noop,tC.log=tC.noop,tC.warn=tC.noop,tC.error=tC.noop,!0===e.debug||"all"===e.debug)tC.trace=console.trace.bind(console)||tC.noop,tC.debug=console.debug.bind(console)||tC.noop,tC.vdebug=console.debug.bind(console)||tC.noop,tC.log=console.log.bind(console)||tC.noop,tC.warn=console.warn.bind(console)||tC.noop,tC.error=console.error.bind(console)||tC.noop;else if(Array.isArray(e.debug))for(var A in e.debug)switch(e.debug[A]){case"trace":tC.trace=console.trace.bind(console)||tC.noop;break;case"debug":tC.debug=console.debug.bind(console)||tC.noop;break;case"vdebug":tC.vdebug=console.debug.bind(console)||tC.noop;break;case"log":tC.log=console.log.bind(console)||tC.noop;break;case"warn":tC.warn=console.warn.bind(console)||tC.noop;break;case"error":tC.error=console.error.bind(console)||tC.noop}var t=e.dependencies||tC.useDefaultDependencies();tC.isArray=t.isArray,tC.webRTCAdapter=t.webRTCAdapter,tC.httpAPICall=t.httpAPICall,tC.newWebSocket=t.newWebSocket,tC.extension=t.extension,tC.extension.init(),tC.listDevices=function(e,A){e="function"==typeof e?e:tC.noop,null==A&&(A={audio:!0,video:!0}),tC.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(A).then((function(A){navigator.mediaDevices.enumerateDevices().then((function(t){tC.debug(t),e(t);try{var i=A.getTracks();for(var n in i){var a=i[n];null!=a&&a.stop()}}catch(e){}}))})).catch((function(A){tC.error(A),e([])})):(tC.warn("navigator.mediaDevices unavailable"),e([]))},tC.attachMediaStream=function(e,A){"chrome"===tC.webRTCAdapter.browserDetails.browser?tC.webRTCAdapter.browserDetails.version>=52?e.srcObject=A:tC.error("Error attaching stream to element"):e.srcObject=A},tC.reattachMediaStream=function(e,A){"chrome"===tC.webRTCAdapter.browserDetails.browser?tC.webRTCAdapter.browserDetails.version>=52?e.srcObject=A.srcObject:void 0!==e.src?e.src=A.src:tC.error("Error reattaching stream to element"):e.srcObject=A.srcObject};var i=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0?"pagehide":"beforeunload",n=window["on"+i];if(window.addEventListener(i,(function(e){for(var A in tC.log("Closing window"),tC.sessions)null!==tC.sessions[A]&&void 0!==tC.sessions[A]&&tC.sessions[A].destroyOnUnload&&(tC.log("Destroying session "+A),tC.sessions[A].destroy({asyncRequest:!1,notifyDestroyed:!1}));n&&"function"==typeof n&&n()})),tC.safariVp8=!1,"safari"===tC.webRTCAdapter.browserDetails.browser&&tC.webRTCAdapter.browserDetails.version>=605)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){for(var A in RTCRtpSender.getCapabilities("video").codecs){var a=RTCRtpSender.getCapabilities("video").codecs[A];if(a&&a.mimeType&&"video/vp8"===a.mimeType.toLowerCase()){tC.safariVp8=!0;break}}tC.safariVp8?tC.log("This version of Safari supports VP8"):tC.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var r=new RTCPeerConnection({},{});r.createOffer({offerToReceiveVideo:!0}).then((function(e){tC.safariVp8=-1!==e.sdp.indexOf("VP8"),tC.safariVp8?tC.log("This version of Safari supports VP8"):tC.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),r.close(),r=null}))}if(tC.unifiedPlan=!1,"firefox"===tC.webRTCAdapter.browserDetails.browser&&tC.webRTCAdapter.browserDetails.version>=59)tC.unifiedPlan=!0;else if("chrome"===tC.webRTCAdapter.browserDetails.browser&&tC.webRTCAdapter.browserDetails.version<72)tC.unifiedPlan=!1;else if("undefined"==typeof RTCRtpTransceiver||"currentDirection"in RTCRtpTransceiver.prototype){const A=new RTCPeerConnection;try{A.addTransceiver("audio"),tC.unifiedPlan=!0}catch(e){}A.close()}else tC.unifiedPlan=!1;tC.initDone=!0,e.callback()}},tC.isWebrtcSupported=function(){return void 0!==window.RTCPeerConnection&&null!==window.RTCPeerConnection},tC.isGetUserMediaAvailable=function(){return void 0!==navigator.mediaDevices&&null!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia&&null!==navigator.mediaDevices.getUserMedia},tC.randomString=function(e){for(var A="",t=0;t{const t=this;if("function"==typeof A&&!A())return void t.eventEmitter.emit("handleTalkError",{code:-1,msg:"startTalk terminate"});const{customizeStream:i,audio:n}=e;tC.isWebrtcSupported()&&(this.janus=new tC({server:e.rtcUrl,success:function(){t.janus&&t.janus.attach({plugin:"rtcgw.plugin.tts",opaqueId:t.opaqueId,success:function(A){t.tts=window.tts=A;let a={request:"start",url:e.talkLink,codec:"opus",dir:"sendrecv",audio_debug:1,url_version:"1"};"gb28181"===e.talkType&&(a.devProto="gb28181"),t.tts.createOffer({media:{audio:n||!0,video:!1,data:!1},simulcast:!1,simulcast2:!1,customizeStream:i,success:function(e){t.tts.send({message:a,jsep:e}),t.eventEmitter.emit("handleTalkSuccess",{message:a,jsep:e})},error:function(e){t.eventEmitter.emit("handleTalkError",e),t.tts.detach()}})},error:function(e){t.eventEmitter.emit("handleTalkError",e)},consentDialog:function(e){},iceState:function(e){},mediaState:function(e,A){},webrtcState:function(e){},slowLink:function(e,A){},onmessage:function(e,A){null!=A&&t.tts.handleRemoteJsep({jsep:A});let i=e.result;if(null!=i){if("done"===i)return null!==t.spinner&&void 0!==t.spinner&&t.spinner.stop(),void(t.spinner=null);"msg"===i&&t.eventEmitter.emit("handleTalkMessage",e),i.status}},onlocalstream:function(e){const A=document.getElementById("myaudio");A&&tC.attachMediaStream(A,e),"completed"!==t.tts.webrtcStuff.pc.iceConnectionState&&"connected"!==t.tts.webrtcStuff.pc.iceConnectionState&&(null==t.spinner?document.getElementById("audioright"):t.spinner.spin()),e.getAudioTracks()},onremotestream:function(e){const A=document.getElementById("peeraudio");A&&tC.attachMediaStream(A,e);let t=e.getAudioTracks();if(null==t||0===t.length);else{const e=document.getElementById("peeraudio");e&&e.play()}},ondataopen:function(e){},ondata:function(e){},oncleanup:function(){null!==t.spinner&&void 0!==t.spinner&&t.spinner.stop(),t.spinner=null}})},error:function(e){t.eventEmitter.emit("handleTalkError",e)}},{stream:e.stream,deviceSerial:e.deviceSerial,channel:e.channelNo}))},this.stopTalk=e=>{if("function"!=typeof e||e())if(this.janus){try{this.janus.destroy({success:()=>{this.eventEmitter.emit("handleStopTalkSuccess",this.janus)},error:e=>{this.eventEmitter.emit("handleStopTalkError",e)}})}catch(e){this.eventEmitter.emit("handleStopTalkError",e)}this.janus=void 0,this.tts=null}else this.eventEmitter.emit("handleStopTalkError",{code:-1,msg:"stopTalk terminate"});else this.eventEmitter.emit("handleStopTalkError",{code:-1,msg:"stopTalk terminate"})},this.destroy=()=>{},this.tts=null,this.opaqueId="tts-"+tC.randomString(12),this.spinner=null,this.options=Object.assign({},iC,e||{}),this.eventEmitter=e.eventEmitter,tC.init({debug:"all"})}};const aC="stopTalk",rC="volumeChange",oC={deviceSerial:"",channelNo:"0",accessToken:"",env:{domain:"https://open.ys7.com"},capacity:{support_talk:null,support_switch_talkmode:null}};let sC=class{constructor(e){this.destroy=()=>{this.stopTalk(),document.body.removeChild(this.audioLeft),document.body.removeChild(this.audioRight)},this.startTalk=e=>{this.eventEmitter.emit("beforeTalk",{});const A=this;new Promise(((e,A)=>{this.options.capacity&&this.options.capacity.support_switch_talkmode&&"1"==this.options.capacity.support_switch_talkmode?fetch(this.options.env.domain+"/api/service/device/talkMode"+`?deviceSerial=${this.options.deviceSerial}`,{method:"GET",headers:{accessToken:this.options.accessToken}}).then((e=>e.json())).then((A=>{A.meta&&200==A.meta.code?A.data&&A.data.valueInfo&&0==A.data.valueInfo.mode?fetch(this.options.env.domain+"/api/v3/device/talkMode"+`?deviceSerial=${this.options.deviceSerial}&channelNo=${this.options.channelNo}&mode=1`,{method:"PUT",headers:{accessToken:this.options.accessToken}}).then((e=>e.json())).then((A=>{A.meta&&200==A.meta.code?e({}):e({code:-1,msg:"对讲模式切换失败",res:A})})).catch((A=>{e({code:-1,msg:"对讲模式切换失败",res:A})})):e({}):e({code:-1,msg:"获取当前对讲模式失败",res:A})})).catch((A=>{e({code:-1,msg:"获取当前对讲模式失败",res:A})})):e({code:-1,msg:"当前设备不支持对讲模式切换"})})).then((t=>{if(this.options.capacity&&this.options.capacity.support_talk&&(!this.options.capacity||"3"!==this.options.capacity.support_talk&&"1"!==this.options.capacity.support_talk))return!1;let i=new FormData;i.append("accessToken",this.options.accessToken),i.append("deviceSerial",this.options.deviceSerial),i.append("channelNo",this.options.channelNo),fetch(this.options.env.domain+"/api/lapp/live/talk/url",{method:"POST",body:i}).then((e=>e.json())).then((t=>{if(200==t.code){let i=t.data;if(i){let t=i.rtcUrl;-1===t.indexOf("ws")&&(t=t.replace("https","wss").replace("rtcgw","rtcgw-ws")),this.talkOptions.rtcUrl=t,this.talkOptions.ttsUrl="tts://"+i.ttsUrl,this.talkOptions.deviceSerial=this.options.deviceSerial,this.talkOptions.channelNo=this.options.channelNo,this.talkOptions.talkLink=this.talkOptions.ttsUrl.split("?")[0]+"/talk?dev="+this.talkOptions.deviceSerial+"&chann="+this.talkOptions.channelNo+"&encodetype=2",i.ttsUrl.indexOf("gb28181")>-1&&(this.talkOptions.talkType="gb28181"),e&&e(i.ttsUrl.indexOf("gb28181")>-1||-1!==this.talkOptions.deviceSerial.indexOf(":")),this.talkOptions.stream=i.stream?i.stream:this.options.accessToken,this.ttsTalk.startTalk(Object.assign(Object.assign({},this.talkOptions),{customizeStream:A._customizeStream.bind(A),audio:!this.microphoneId||{deviceId:this.microphoneId}})),this.isTalking=!0,this.observeVolumeChange({interval:100}),this.eventEmitter&&this.eventEmitter.emit("startTalk",{eventType:"startTalk",code:0,target:this,msg:"开启对讲"})}}else this.eventEmitter&&this.eventEmitter.emit("startTalk",{eventType:"startTalk",code:-1,target:this,msg:t.msg})})).catch((e=>{}))})).catch((e=>{}))},this.stopTalk=()=>{var e,A;try{this.ttsTalk.stopTalk(),this.isTalking=!1}catch(A){null===(e=this.eventEmitter)||void 0===e||e.emit(aC,{eventType:aC,code:-1,msg:"结束对讲"})}this.gainNode=null,this.volumeChangeInterval&&(clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=null),this.eventEmitter&&setTimeout((()=>{var e;null===(e=this.eventEmitter)||void 0===e||e.emit(rC,{eventType:rC,code:0,target:this,data:0,msg:"音量变化"})}),200);const t=document.getElementById("myaudio").srcObject;t&&t.getTracks()[0].stop(),null===(A=this.eventEmitter)||void 0===A||A.emit(aC,{eventType:aC,code:0,target:this,msg:"结束对讲"})},this.changeTalkChannelNo=e=>{this.talkOptions.channelNo=e},this._customizeStream=e=>new Promise(((A,t)=>{var i;const n=new window.AudioContext;this.gainNode=n.createGain();const a=n.createMediaStreamSource(e);this.gainNode.gain.value=null!==(i=this.volumeGain)&&void 0!==i?i:1;const r=n.createMediaStreamDestination();a.connect(this.gainNode),this.gainNode.connect(r),A(r.stream)})),this.setVolumeGain=e=>{const A=e;return"number"==typeof A&&A>=0?(this.volumeGain=Math.min(A,10),this.gainNode&&(this.gainNode.gain.value=this.volumeGain),{code:0,msg:"成功",res:null}):{code:-1,msg:"参数格式有误",res:null}},this.observeVolumeChange=e=>{const{interval:A}=e;this.volumeChangeInterval&&(clearInterval(this.volumeChangeInterval),this.volumeChangeInterval=null),this.volumeChangeInterval=setInterval((()=>{var e,A,t,i,n;null===(n=null===(i=null===(t=null===(A=null===(e=window.tts)||void 0===e?void 0:e.webrtcStuff)||void 0===A?void 0:A.pc)||void 0===t?void 0:t.getStats)||void 0===i?void 0:i.call(t))||void 0===n||n.then((e=>{e.forEach((e=>{var A;"media-source"===e.type&&(null===(A=this.eventEmitter)||void 0===A||A.emit("volumeChange",{eventType:"volumeChange",code:0,target:this,data:e.audioLevel,msg:"音量变化"}))}))}))}),A)},this.getMicrophonePermission=()=>new Promise(((e,A)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then((A=>{A.getTracks().forEach((e=>{e.stop()})),e({code:0,msg:"成功",res:null})})).catch((A=>{e({code:-1,msg:"获取麦克风权限失败",res:A})}))})),this.getMicrophonesList=()=>new Promise(((e,A)=>{navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then((A=>{let t=[];A.map((e=>{"audioinput"==e.kind&&t.push(e)})),e({code:0,msg:"成功",res:t})})):e({code:-1,msg:"未查询到相关设备",res:null})})),this.setProfile=e=>{const{microphoneId:A}=e;A!==this.microphoneId&&(this.microphoneId=A,this.isTalking&&(this.stopTalk(),setTimeout((()=>{this.ttsTalk.startTalk(Object.assign(Object.assign({},this.talkOptions),{customizeStream:this._customizeStream.bind(this),audio:!this.microphoneId||{deviceId:this.microphoneId}})),this.isTalking=!0}),300)))},this.options=Object.assign({},oC,e||{}),this.gainNode=null,this.volumeGain=null,this.volumeChangeInterval=null,this.microphoneId=null,this.eventEmitter=new zI,this.ttsTalk=new nC({eventEmitter:this.eventEmitter}),this.isTalking=!1;const A=document.createElement("div");A.id="audioleft";const t=document.createElement("audio");t.id="myaudio",t.muted=!0,t.setAttribute("autoplay","true"),t.setAttribute("controls","true"),A.appendChild(t),A.style.display="none";const i=document.createElement("div");i.id="audioright",i.style.display="none";const n=document.createElement("audio");n.id="peeraudio",n.setAttribute("autoplay","true"),n.setAttribute("controls","true"),i.appendChild(n),this.talkOptions={rtcUrl:"",talkLink:"",ttsUrl:"",stream:"",deviceSerial:this.options.deviceSerial,channelNo:this.options.channelNo},this.audioLeft=A,this.audioRight=i,document.body.appendChild(A),document.body.appendChild(i)}};var gC=function(){function e(){this.events={}}var A=e.prototype;return A.on=function(e,A){e&&A&&(this.events[e]=this.events[e]||[],this.events[e].push(A))},A.emit=function(e,A){e&&this.events[e]&&this.events[e].forEach((function(e){return e(A)}))},A.off=function(e,A){e&&A&&this.events[e]&&this.events[e].splice(this.events[e].indexOf(A),1)},A.once=function(e,A){var t=this;this.on(e,(function i(){var n=Array.prototype.slice.call(arguments);A.apply(null,n),t.off(e,i)}))},A.removeAllListener=function(){this.events={}},e}(),lC=function(e,A){if(void 0===e)return A.themeData?{templateType:"themeData",templateId:"themeData"}:{templateType:"local",templateId:""};if("string"==typeof e){if(32===e.length)return{templateType:"remote",templateId:e};if(-1!==["theme","standard"].indexOf(e))return"simple"===e&&void 0===A.header&&void 0===A.footer?{templateType:"local",templateId:""}:{templateType:"iframe",templateId:e};if(-1!==["pcLive","pcRec","mobileLive","mobileRec","noData","security","voice","simple","mobileCall","miniRec"].indexOf(e))return-1!=A.url.indexOf("rec")&&"simple"!=A.template&&"miniRec"!=A.id?{templateType:"local",templateId:d()?"mobileRec":"pcRec"}:{templateType:"local",templateId:e};if(A&&A.isCall)return{templateType:"invalid",templateId:e}}},cC=function(){var e=window.navigator.userAgent.toLowerCase(),A=(/version.*safari/.test(e),/chrome/.test(e));/gecko/.test(e)&&/webkit/.test(e);if(d())return!1;if(A){return function(){for(var e=window.navigator.userAgent.split(" "),A="",t=0;t91&&!!window.SharedArrayBuffer}return!1},dC=function(e){return e&&e.retcode?String(e.retcode):e&&e.code?"1"+String(e.code).padStart(5,"0"):e&&e.errorCode?"39"+String(e.errorCode).padStart(4,"0"):"400001"};function IC(){var e,A={},t=navigator.userAgent.toLowerCase();if((e=t.match(/rv:([\d.]+)\) like gecko/))||(e=t.match(/msie ([\d\.]+)/))?A.ie=e[1]:(e=t.match(/edge\/([\d\.]+)/))?A.edge=e[1]:(e=t.match(/firefox\/([\d\.]+)/))?A.firefox=e[1]:(e=t.match(/(?:opera|opr).([\d\.]+)/))?A.opera=e[1]:(e=t.match(/chrome\/([\d\.]+)/))?A.chrome=e[1]:(e=t.match(/version\/([\d\.]+).*safari/))&&(A.safari=e[1]),A.chrome){var i=A.chrome,n=i.indexOf(".");return Number(i.substring(0,n))}return-1}function CC(e){return IC()>=94}function hC(e){if(IC()>=107){window.VideoDecoder&&VideoDecoder.isConfigSupported({codec:"hvc1.1.6.L123.00",hardwareAcceleration:"prefer-hardware"}).then((function(e){e.supported}))}}function uC(){return uC=Object.assign||function(e){for(var A=1;A=A.startTime?t.endTime=A.endTime:e.push(A),e}),[])}function fC(e,A,t,i,n,a,r){try{var o=e[a](r),s=o.value}catch(e){return void t(e)}o.done?A(s):Promise.resolve(s).then(i,n)}function EC(e){return function(){var A=this,t=arguments;return new Promise((function(i,n){var a=e.apply(A,t);function r(e){fC(a,i,n,r,o,"next",e)}function o(e){fC(a,i,n,r,o,"throw",e)}r(void 0)}))}}function xC(){return xC=Object.assign||function(e){for(var A=1;A0&&n[n.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]A.domain?1:-1})),i=[].concat(A).sort((function(e,A){return e.domain>A.domain?1:-1})),n=0;n-1||t.data.indexOf("cloud")>-1?"live":"rec"];if(t.ext&&t.ext.token)r+=t.data,o=A._options.accessToken?t.ext.token:s;else if(t.data){var g;if("string"==typeof t.data&&s)r+=t.data,o=s;else r+=(null==(g=t.data)?void 0:g.url)||"",o=A._options.accessToken?t.data.token:s}if(r="live"===(-1!==e.indexOf("live")?"live":"playback")?r+"&ssn="+(o||"")+"&auth=1&biz=4&cln=100":r+"&ssn="+(o||"")+"&auth=1&cln=100",A._options.wsParams&&"[object Object]"===Object.prototype.toString.call(A._options.wsParams))for(var l in A._options.wsParams)r+="&"+l+"="+A._options.wsParams[l]||"";return r.replace(/&&/gi,"&")}return t})).catch((function(){return""}))]}))}))()},A.getCloudRecordTimes=function(e){var A=this;return EC((function(){var t,i;return QC(this,(function(n){return t={startTime:e.begin?Xc.formate(e.begin,"YYYY-MM-DD hh:mm:ss"):void 0,endTime:e.end?Xc.formate(e.end,"YYYY-MM-DD hh:mm:ss"):void 0,spaceId:e.spaceId},i=Object.keys(t).reduce((function(e,A){return null==t[A]?e:e+="&"+A+"="+encodeURIComponent(t[A])}),"").replace("&",""),[2,A.get(RC+"?"+i).then((function(e){return e.json()})).then((function(e){var A;return 200==+(null==e||null==(A=e.meta)?void 0:A.code)?BC((e.data||[]).map((function(e){return e.endTime=parseInt(Xc.strToDate(e.stopTime).getTime()/1e3+"",10),e.startTime=parseInt(Xc.strToDate(e.startTime).getTime()/1e3+"",10),e.busType=7,e.iStorageVersion=e.istorageVersion,e}))):[]})).catch((function(){return[]}))]}))}))()},A.getCloudTimes=function(e){var A=this;return EC((function(){var t,i,n,a,r;return QC(this,(function(o){switch(o.label){case 0:return(n=new FormData).append("recType",e.url&&-1===e.url.indexOf(".cloud")?"2":"1"),n.append("version","2.0"),n.append("deviceSerial",A._options.deviceSerial),n.append("channelNo",A._options.channelNo+""),n.append("accessToken",A._options.accessToken||(null==(i=A._options.token)||null==(t=i.deviceToken)?void 0:t.video)||""),e.begin&&n.append("startTime",Xc.strToDate(e.begin+"").getTime()+""),e.end&&n.append("endTime",Xc.strToDate(e.end+"").getTime()+""),a=[],r=EC((function(e){return QC(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,A.post(""+kC,{headers:null,body:e}).then((function(e){return e.json()})).then(EC((function(A){var t,i,n,o,s,g,l;return QC(this,(function(c){switch(c.label){case 0:return 200==+A.code&&A.data?(g=[],Array.isArray(A.data)?g=A.data:(null==(t=A.data)?void 0:t.files)&&(null==(n=A.data)||null==(i=n.files)?void 0:i.length)>0&&(g=(null==(l=A.data)?void 0:l.files)||[]),a=a.concat(g),(null==(o=A.data)?void 0:o.isAll)||!(null==(s=A.data)?void 0:s.nextFileTime)?[3,2]:(e.append("startTime",A.data.nextFileTime),[4,r(e)])):[3,2];case 1:return[2,c.sent()];case 2:return[2]}}))})))];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))})),[4,r(n)];case 1:return o.sent(),[2,BC(a=a.map((function(e){return xC({},e,{endTime:parseInt(e.endTime/1e3+"",10),startTime:parseInt(e.startTime/1e3+"",10)})})),A._options.timeZone||0)]}}))}))()},A.getLocalRecTimes=function(e){var A=this;return EC((function(){var t,i,n,a,r,o,s,g;return QC(this,(function(l){switch(l.label){case 0:return"custom"!==A._options.sdkType?[3,2]:((n=new FormData).append("recType","2"),n.append("version","2.0"),n.append("deviceSerial",A._options.deviceSerial),n.append("channelNo",A._options.channelNo+""),n.append("accessToken",A._options.accessToken||(null==(i=A._options.token)||null==(t=i.deviceToken)?void 0:t.video)||""),e.begin&&n.append("startTime",Xc.strToDate(e.begin+"").getTime()+""),e.end&&n.append("endTime",Xc.strToDate(e.end+"").getTime()+""),a=[],r=EC((function(e){return QC(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,A.post(""+kC,{body:e}).then((function(e){return e.json()})).then(EC((function(A){var t,i,n,o,s,g,l;return QC(this,(function(c){switch(c.label){case 0:return 200==+A.code&&A.data?(g=[],Array.isArray(A.data)?g=A.data:(null==(t=A.data)?void 0:t.files)&&(null==(n=A.data)||null==(i=n.files)?void 0:i.length)>0&&(g=(null==(l=A.data)?void 0:l.files)||[]),a=a.concat(g),(null==(o=A.data)?void 0:o.isAll)||!(null==(s=A.data)?void 0:s.nextFileTime)?[3,2]:(e.append("startTime",A.data.nextFileTime),[4,r(e)])):[3,2];case 1:return[2,c.sent()];case 2:return[2]}}))})))];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))})),[4,r(n)]);case 1:return l.sent(),[2,BC(a=a.map((function(e){return xC({},e,{endTime:parseInt(e.endTime/1e3+"",10),startTime:parseInt(e.startTime/1e3+"",10)})})),A._options.timeZone||0)];case 2:return o=parseInt(Xc.strToDate(e.begin+"").getTime()/1e3+"",10),s=parseInt(Xc.strToDate(e.end+"").getTime()/1e3+"",10),g=EC((function(e){var t,i,n,a,r,o,s,l,c,d;return QC(this,(function(I){switch(I.label){case 0:t=[],I.label=1;case 1:return I.trys.push([1,5,,6]),[4,A.get(PC+"?startTime="+e.startTime+"&endTime="+e.endTime+"&pageSize="+(e.pageSize||200),{headers:{accessToken:A._options.accessToken||(null==(n=A._options.token)||null==(i=n.deviceToken)?void 0:i.video),deviceSerial:A._options.deviceSerial}}).then((function(e){return e.json()}))];case 2:return 200!=+(null==(l=I.sent())||null==(a=l.meta)?void 0:a.code)?[2,t]:((null==l||null==(o=l.data)||null==(r=o.records)?void 0:r.length)&&(t=t.concat(l.data.records||[])),(null==l||null==(s=l.data)?void 0:s.hasMore)?(d=t.concat,[4,g(xC({},e,{startTime:null==l||null==(c=l.data)?void 0:c.nextFileTime}))]):[3,4]);case 3:t=d.apply(t,[I.sent()]),I.label=4;case 4:return[3,6];case 5:return I.sent(),[3,6];case 6:return[2,t]}}))})),[4,g({startTime:o,endTime:s})];case 3:return[2,BC(l.sent()||[]||[],A._options.timeZone||0)];case 4:return[2]}}))}))()},A.postDevicePtzMirror=function(e){var A=this;return EC((function(){var t,i,n;return QC(this,(function(a){return(n=new FormData).append("command",e+""),n.append("accessToken",A._options.accessToken||(null==(i=A._options.token)||null==(t=i.deviceToken)?void 0:t.video)||""),n.append("deviceSerial",A._options.deviceSerial),n.append("channelNo",A._options.channelNo+""),A.post(TC,{body:n}),[2]}))}))()},e}(),LC=(pC="undefined"!=typeof self?self:window,mC={navigator:void 0!==pC.navigator?pC.navigator:{userAgent:""},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},yC={getMatchMap:function(e){return{Trident:e.indexOf("Trident")>-1||e.indexOf("NET CLR")>-1,Presto:e.indexOf("Presto")>-1,WebKit:e.indexOf("AppleWebKit")>-1,Gecko:e.indexOf("Gecko/")>-1,Safari:e.indexOf("Safari")>-1,Chrome:e.indexOf("Chrome")>-1||e.indexOf("CriOS")>-1,IE:e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1,Edge:e.indexOf("Edge")>-1,Firefox:e.indexOf("Firefox")>-1||e.indexOf("FxiOS")>-1,"Firefox Focus":e.indexOf("Focus")>-1,Chromium:e.indexOf("Chromium")>-1,Opera:e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,Vivaldi:e.indexOf("Vivaldi")>-1,Yandex:e.indexOf("YaBrowser")>-1,Arora:e.indexOf("Arora")>-1,Lunascape:e.indexOf("Lunascape")>-1,QupZilla:e.indexOf("QupZilla")>-1,"Coc Coc":e.indexOf("coc_coc_browser")>-1,Kindle:e.indexOf("Kindle")>-1||e.indexOf("Silk/")>-1,Iceweasel:e.indexOf("Iceweasel")>-1,Konqueror:e.indexOf("Konqueror")>-1,Iceape:e.indexOf("Iceape")>-1,SeaMonkey:e.indexOf("SeaMonkey")>-1,Epiphany:e.indexOf("Epiphany")>-1,360:e.indexOf("QihooBrowser")>-1||e.indexOf("QHBrowser")>-1,"360EE":e.indexOf("360EE")>-1,"360SE":e.indexOf("360SE")>-1,UC:e.indexOf("UC")>-1||e.indexOf(" UBrowser")>-1,QQBrowser:e.indexOf("QQBrowser")>-1,QQ:e.indexOf("QQ/")>-1,Baidu:e.indexOf("Baidu")>-1||e.indexOf("BIDUBrowser")>-1,Maxthon:e.indexOf("Maxthon")>-1,Sogou:e.indexOf("MetaSr")>-1||e.indexOf("Sogou")>-1,LBBROWSER:e.indexOf("LBBROWSER")>-1,"2345Explorer":e.indexOf("2345Explorer")>-1,TheWorld:e.indexOf("TheWorld")>-1,XiaoMi:e.indexOf("MiuiBrowser")>-1,Quark:e.indexOf("Quark")>-1,Qiyu:e.indexOf("Qiyu")>-1,Wechat:e.indexOf("MicroMessenger")>-1,Taobao:e.indexOf("AliApp(TB")>-1,Alipay:e.indexOf("AliApp(AP")>-1,Weibo:e.indexOf("Weibo")>-1,Douban:e.indexOf("com.douban.frodo")>-1,Suning:e.indexOf("SNEBUY-APP")>-1,iQiYi:e.indexOf("IqiyiApp")>-1,Windows:e.indexOf("Windows")>-1,Linux:e.indexOf("Linux")>-1||e.indexOf("X11")>-1,"Mac OS":e.indexOf("Macintosh")>-1,Android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,Ubuntu:e.indexOf("Ubuntu")>-1,FreeBSD:e.indexOf("FreeBSD")>-1,Debian:e.indexOf("Debian")>-1,"Windows Phone":e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,BlackBerry:e.indexOf("BlackBerry")>-1||e.indexOf("RIM")>-1,MeeGo:e.indexOf("MeeGo")>-1,Symbian:e.indexOf("Symbian")>-1,iOS:e.indexOf("like Mac OS X")>-1,"Chrome OS":e.indexOf("CrOS")>-1,WebOS:e.indexOf("hpwOS")>-1,Mobile:e.indexOf("Mobi")>-1||e.indexOf("iPh")>-1||e.indexOf("480")>-1,Tablet:e.indexOf("Tablet")>-1||e.indexOf("Nexus 7")>-1,iPad:e.indexOf("iPad")>-1}},matchInfoMap:function(e){var A,t=(null==(A=mC.navigator)?void 0:A.userAgent)||"",i=yC.getMatchMap(t);for(var n in mC.infoMap)for(var a=0;a36&&pC.showModalDialog?n=!0:+a>45&&(n=t("type","application/vnd.chromium.remoting-viewer"))}if(i.Baidu&&i.Opera&&(i.Baidu=!1),i.Mobile&&(i.Mobile=!A.includes("iPad")),n&&(t("type","application/gameplugin")||mC.navigator&&void 0===mC.navigator.connection.saveData?i["360SE"]=!0:i["360EE"]=!0),i.IE||i.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 105:break;case 102:i["360EE"]=!0;break;case 104:i["360SE"]=!0}var r={Safari:function(){return A.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return A.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return A.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return A.replace(/^.*Edge\/([\d.]+).*$/,"$1")},Firefox:function(){return A.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return A.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return A.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return A.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return A.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return A.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return A.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return A.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return A.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return A.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return A.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return A.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return A.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return A.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return A.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return A.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return A.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[+A.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[+A.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return A.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return A.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return A.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return A.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return A.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return A.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){return{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[+navigator.userAgent.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"2345Explorer":function(){return A.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return A.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return A.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return A.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return A.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return A.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},Taobao:function(){return A.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return A.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return A.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return A.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return A.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return A.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return e.browserVersion="",r[e.browser]&&(e.browserVersion=r[e.browser](),e.browserVersion==A&&(e.browserVersion="")),"Edge"==e.browser&&(e.engine="EdgeHTML"),"Chrome"==e.browser&&parseInt(e.browserVersion)>27&&(e.engine="Blink"),"Opera"==e.browser&&parseInt(e.browserVersion)>12&&(e.engine="Blink"),"Yandex"==e.browser&&(e.engine="Blink"),e.browser+" (version: "+e.browserVersion+"; kernel: "+e.engine+")"}},_C={DeviceInfoObj:function(e){var A,t=function(A){var t;null==(t=e.info)||t.forEach((function(e){e.toLowerCase()===A.toLowerCase()&&(n[A]=i[A])}))};e=e||{domain:""};var i={deviceType:yC.getDeviceType(),OS:yC.getOS(),OSVersion:yC.getOSVersion(),sh:pC.screen.height,sw:pC.screen.width,lang:yC.getLanguage(),netWork:yC.getNetwork(),orientation:yC.getOrientationStatu(),browserInfo:yC.getBrowserInfo(),fingerprint:yC.createFingerprint(e.domain),userAgent:null==(A=mC.navigator)?void 0:A.userAgent};if(!e.info||0===e.info.length)return i;var n={};for(var a in i)t(a);return n}},{getDeviceInfo:function(e){return _C.DeviceInfoObj(e)}}),GC=function(){function e(){}return e.add=function(A,t){e.queues.push({url:A,data:t})},e.fire=function(){if(e.queues&&0!==e.queues.length){e.isStop=!1;var A=e.queues[0];A.url&&e.api.report(A.data),e.queues.splice(0,1),e.fire()}else e.isStop=!0},e}();function YC(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}GC.isStop=!0,GC.queues=[];var UC=function(){function e(e){this.url=e}var A=e.prototype;return A.report=function(e){this.checkUrl(this.url)&&this.sendInfo(e)},A.sendInfo=function(e){navigator.sendBeacon?this.sendBeacon(this.url,e):this.sendImage(this.url,e)},A.sendImage=function(e,A){var t=this.changeJSON2Query(A),i=new Image;i.onload=i.onerror=function(){i=null},i.src=e+"?"+t+"&random="+Math.random()},A.sendBeacon=function(e,A){try{navigator.sendBeacon(e,this.formatParamsByURLSearchParams(A))}catch(e){}},A.formatParamsByURLSearchParams=function(e){var A=new URLSearchParams;for(var t in e)"object"===YC(e[t])&&(e[t]=JSON.stringify(e[t])),A.append(t,e[t]);return A},A.changeJSON2Query=function(e){var A="";for(var t in e){""!=A&&(A+="&");var i=e[t];A+=t+"="+encodeURIComponent("object"===(void 0===i?"undefined":YC(i))?JSON.stringify(i):i)}return A},A.checkUrl=function(e){return!!e&&/^[hH][tT][tT][pP]([sS]?):\/\//.test(e)},e}();function JC(){return JC=Object.assign||function(e){for(var A=1;A-1?OC[A].logHost:""},A.report=function(e,A){var t;this.monitorReport&&(null==(t=this.collect)||t.send(KC({action:e,appKey:this.appKey},A,{logInfo:KC({pluginVersion:this.pluginVersion},A.logInfo||{})})))},A.updateParams=function(e){var A;null==(A=this.collect)||A.updateExtendsInfo(e)},A.updateAppKey=function(e){this.appKey=e},A.setForbidden=function(e){var A;null==(A=this.collect)||A.setForbidden(e)},e}();function jC(e){document.getElementById(e+"-player")&&document.getElementById(e+"-container-0").removeChild(document.getElementById(e+"-player"))}function WC(){return WC=Object.assign||function(e){for(var A=1;A=a&&e.endTime<=r||(e.startTimea||(e.startTimer||void 0))}))).length>0&&(e[0].startTime=a,e[e.length-1].endTime=r),e.reduce((function(e,A,t){return 0===t?(e.push(n(A)),e):(e[e.length-1].downloadPath===A.downloadPath?e[e.length-1].endTime=A.endTime:e.push(n(A)),e)}),[])}function XC(e,A,t,i,n,a,r){try{var o=e[a](r),s=o.value}catch(e){return void t(e)}o.done?A(s):Promise.resolve(s).then(i,n)}function qC(){return qC=Object.assign||function(e){for(var A=1;A0&&n[n.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=24||t<=-24||isNaN(t))&&(t=0),7==+i?{begin:e,end:A,timeZone:t,originBegin:n,originEnd:a}:{begin:e=Xc.formate(Xc.strToDate(e).getTime()+60*t*60*1e3,"YYYYMMDDhhmmss"),end:A=Xc.formate(Xc.strToDate(A).getTime()+60*t*60*1e3,"YYYYMMDDhhmmss"),timeZone:t,originBegin:n,originEnd:a}}(e.urlInfo.searchParams.begin,e.urlInfo.searchParams.end,null==(i=e.urlInfo.searchParams)?void 0:i.timeZone,e.urlInfo.searchParams.busType),e.timeZone=A.timeZone,t="&begin="+Xc.formate(A.originBegin,"YYYYMMDDThhmmssZ")+"&end="+Xc.formate(A.originEnd,"YYYYMMDDThhmmssZ")+"&timeZone="+A.timeZone),e._isCloudRecord&&-1!==e.url.indexOf(".cloud")&&"7"===e.urlInfo.searchParams.busType?[4,e._services.getCloudRecordTimes({begin:A.begin,end:A.end,spaceId:e.urlInfo.searchParams.spaceId}).then((function(i){var n,a,r;if(e.cloudRecordRecList=i||[],null==(n=e.eventEmitter)||n.emit(dd.http.getCloudRecordTimes,i||[]),null==(a=e.eventEmitter)||a.emit(dd.setAllDayRecTimes,{type:"cloudRecordTimes",list:i||[]}),i.length){var o,s=ZC(i,["downloadPath","ownerId","iStorageVersion","spaceId","startTime","endTime","videoType","busType"],A.originBegin,A.originEnd);if(null==(o=e.eventEmitter)||o.emit(dd.setRecTimes,i),0===s.length)return"";var g=JSON.stringify(s).replace("\\","");return t+"&recSlice="+g.replace("\\","")+"&r="+Math.random()}return null==(r=e.eventEmitter)||r.emit(dd.setRecTimes,[]),""}))]:[3,2];case 1:return[2,n.sent()];case 2:return-1!==e.url.indexOf(".cloud")&&"7"!==e.urlInfo.searchParams.busType||"base"!==e.sdkType?[4,e._services.getCloudTimes({begin:A.begin,end:A.end,url:e.url}).then((function(i){var n,a,r;if(e.cloudRecList=i||[],null==(n=e.eventEmitter)||n.emit(dd.http.getCloudRecTimes,i||[]),null==(a=e.eventEmitter)||a.emit(dd.setAllDayRecTimes,{type:"cloudRecTimes",list:i||[]}),i.length){var o,s=ZC(i,["downloadPath","ownerId","iStorageVersion","startTime","endTime","videoType"],A.originBegin,A.originEnd);if(null==(o=e.eventEmitter)||o.emit(dd.setRecTimes,s),0===s.length)return"";var g=JSON.stringify(s.map((function(A){var t,i;return qC({},A,{startTime:A.startTime+3600*((null==(t=e.urlInfo.searchParams)?void 0:t.timeZone)||0)*1e3,endTime:A.endTime+3600*((null==(i=e.urlInfo.searchParams)?void 0:i.timeZone)||0)*1e3})}))).replace("\\","");return t+"&recSlice="+g.replace("\\","")+"&r="+Math.random()}return null==(r=e.eventEmitter)||r.emit(dd.setRecTimes,[]),""}))]:[3,4];case 3:return[2,n.sent()];case 4:if(-1!==e.url.indexOf(".rec"))return e._services.getLocalRecTimes({begin:A.begin,end:A.end}).then((function(A){var t,i,n;e.localRecList=A,null==(t=e.eventEmitter)||t.emit(dd.http.getLocalRecTimes,A||[]),null==(i=e.eventEmitter)||i.emit(dd.setAllDayRecTimes,{type:"localTimes",list:A||[]}),null==(n=e.eventEmitter)||n.emit(dd.setRecTimes,[])})),[2,t];n.label=5;case 5:return[2]}}))})),$C.apply(this,arguments)}function eh(e){var A,t;return e.url.indexOf(".live")>-1?(null==(t=e.logger)||null==(A=t.log)||A.call(t,"[https request] _getDeviceSupportQualityServicesAndGetDeviceListServices()"),new Promise((function(A){var t=e.params.videoLevelList?Promise.resolve(e.params.videoLevelList):function(e){var A,t;return null==(t=e.logger)||null==(A=t.log)||A.call(t,"[https request] getDeviceSupportQuality()"),e._services.getDeviceSupportQuality().then((function(A){var t;return e.videoLevelList=A,null==(t=e.eventEmitter)||t.emit(dd.http.getDeviceSupportQuality,A),A}))}(e);Promise.all([t,e._services.getDeviceList()]).then((function(t){var i,n,a,r,o,s,g,l;null==(n=e.logger)||null==(i=n.log)||i.call(n,"[https request] getDeviceList()"),null==(r=e.eventEmitter)||null==(a=r.emit)||a.call(r,dd.http.getDeviceList,t[1]||[]);var c=t[1].find((function(A){return A.channelNo===+e.urlInfo.channelNo}));c||A([[],[]]),e.videoLevelList=t[0],null==(s=e.eventEmitter)||null==(o=s.emit)||o.call(s,dd.setVideoLevelList,t[0]||[]);var d={};(d="compatible"===(null==(g=e.videoLevelList[0])?void 0:g.type)?e.url.indexOf(".hd.live")>0?e.videoLevelList[1]:e.videoLevelList[0]:e.videoLevelList.find((function(e){return e.level==(null==c?void 0:c.videoLevel)}))||{})?(e.videoLevel=d.level,e.streamTypeIn=d.streamTypeIn):e.logger.warn("the current video quality("+(null==c?void 0:c.videoLevel)+") is not in the list!"),null==(l=e.eventEmitter)||l.emit(dd.currentVideoLevel,d),A(t)}))}))):Promise.resolve([[],[]])}function Ah(e){var A;return null==(A=e.logger)||A.log("[https request] getStreamAddressList()"),e._services.getStreamAddressList().then((function(A){var t;e.maxReloadTime=A[0],null==(t=e.eventEmitter)||t.emit(dd.http.getStreamAddressList,A[1])}))}function th(){return th=Object.assign||function(e){for(var A=1;Ae.length)&&(A=e.length);for(var t=0,i=new Array(A);t=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gh(e,A){var t,i,n,a=-1;if(A===e.speed)return null==(t=e.logger)||t.warn("the speed value has not changed!"),0;A&&(gd.includes(A)?(e.jSPlugin.JS_Speed(A),a=1,e.speed=A,e.Theme?(e.Theme.changeRecSpeed(A),e.Theme.nextRate=A):null==(i=e.eventEmitter)||i.emit(dd.speedChange,e.speed)):null==(n=e.logger)||n.warn("current speed is not supported!"));return a}function lh(e,A,t,i,n,a,r){try{var o=e[a](r),s=o.value}catch(e){return void t(e)}o.done?A(s):Promise.resolve(s).then(i,n)}function ch(e){return function(){var A=this,t=arguments;return new Promise((function(i,n){var a=e.apply(A,t);function r(e){lh(a,i,n,r,o,"next",e)}function o(e){lh(a,i,n,r,o,"throw",e)}r(void 0)}))}}function dh(e,A){var t,i,n,a,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(n=r.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=0?i=i.replace(".hd.live",".live"):i.indexOf(".live")>=0&&(i=i.replace(".live",".hd.live")),[3,4]);case 1:return d.trys.push([1,3,,4]),null==(r=e.logger)||null==(n=r.log)||n.call(r,"[https request] setVideoLevel()","videoLevel",JSON.stringify(A)),[4,null==(o=e._services)?void 0:o.setVideoLevel(e.videoLevel)];case 2:return l=d.sent(),null==e||null==(g=e.eventEmitter)||null==(s=g.emit)||s.call(g,dd.http.setVideoLevel,l),[3,4];case 3:return d.sent(),[3,4];case 4:return document.getElementById(e.id+"-videoLevel-icon")&&(c=e.videoLevelList.find((function(A){return A.level===e.videoLevel})),document.getElementById(e.id+"-videoLevel-icon").innerHTML=function(e,A){return Object.values(cd).includes(A.name)?e.i18n.t(cd[A.level]):A.name}(e,c),document.getElementById(e.id+"-videoLevel-icon").dataset.type=e.videoLevel),e.changePlayUrl({url:e.url},(function(){}),!1).then((function(i){var n;null==(n=e.eventEmitter)||n.emit(dd.changeVideoLevel,{eventType:dd.changeVideoLevel,code:0,data:A,msg:e.i18n.t("CHANGE_VIDEO_LEVEL")}),t({code:0,data:A,msg:e.i18n.t("CHANGE_VIDEO_LEVEL")})})).catch((function(){var i;null==(i=e.eventEmitter)||i.emit(dd.changeVideoLevel,{eventType:dd.changeVideoLevel,code:-1,data:A,msg:e.i18n.t("CHANGE_VIDEO_LEVEL_FAIL")}),t({code:-1,data:A,msg:e.i18n.t("CHANGE_VIDEO_LEVEL_FAIL")})})),[2]}}))})))):(null==(i=e.eventEmitter)||i.emit(dd.changeVideoLevel,{eventType:dd.changeVideoLevel,code:-2,data:A,msg:e.i18n.t("VIDEO_LEVEL_NOT_SUPPORT")+":"+JSON.stringify(A)}),null==(n=e.logger)||n.warn("video level does not exist!"),Promise.resolve({code:-2,data:A}))}function Ch(){return Ch=Object.assign||function(e){for(var A=1;At&&ai?0:-1:n>t&&a>i?1:n-1)try{var a=function(e,A,t,i){void 0===i&&(i=5);if(!(e&&A&&t&&t.startPos&&t.endPos))return-1;var n=t.startPos[0],a=t.startPos[1],r=t.endPos[0],o=t.endPos[1],s=Math.abs(r-n),g=Math.abs(o-a),l=parseInt((n+r)/2+""),c=parseInt((a+o)/2+""),d=Math.round(e*A/(s*g));return{startPointX:parseInt(n/e*256+""),startPointY:parseInt(a/A*256+""),endPointX:parseInt(r/e*256+""),endPointY:parseInt(o/A*256+""),zoomRate:d>i?i:d,targetCenterX:l,targetCenterY:c,targetWidth:s,targetHeight:g}}(t,i,A,e.capacity&&e.capacity.support_zoomOut_maxTime?e.capacity.support_zoomOut_maxTime:5);if(-1===a)return;var r=e.env.domain+"/api/v3/das/device/3d/zoom?accessToken="+(e.accessToken||e.token.deviceToken.video)+"&deviceSerial="+e.urlInfo.deviceSerial+"&channelNo="+e.urlInfo.channelNo+"&command="+(0==n?9:8)+"&zoomTimes="+a.zoomRate+"&startPointX="+a.startPointX+"&startPointY="+a.startPointY+"&endPointX="+a.endPointX+"&endPointY="+a.endPointY+"&length="+parseInt(i)+"&width="+parseInt(t)+"&midPointX="+a.targetCenterX+"&midPointY="+a.targetCenterY+"&lengthX="+a.targetWidth+"&lengthY="+a.targetHeight;fetch(r,{method:"POST"}).then((function(e){return e.json()})).then((function(A){var t;200!=A.code&&(null==(t=e.pluginStatus)||t.loadingSetText({text:A.msg,color:"red",delayClear:2e3}))})).catch((function(A){var t;null==(t=e.pluginStatus)||t.loadingSetText({text:e.i18n.t("3D_ZOOM_FAILED"),color:"red",delayClear:2e3})}))}catch(A){var o;e.pluginStatus.loadingSetText({text:null==(o=e.i18n)?void 0:o.t("3D_ZOOM_FAILED"),color:"red",delayClear:2e3})}}));return null==(g=e.eventEmitter)||g.emit(dd.enable3DZoom,{eventType:dd.enable3DZoom,code:l,msg:null==(s=e.i18n)?void 0:s.t("START_3D_ZOOM")}),0===l?Promise.resolve({code:-1}):Promise.resolve({code:0})}return e.is3DZooming=!1,a&&(a.title=null==(n=e.i18n)?void 0:n.t("ZOOM")),new Promise((function(A){e.eventEmitter&&e.eventEmitter.emit(dd.enable3DZoom,{eventType:dd.enable3DZoom,code:-1,msg:e.i18n.t("DEVICE_NOT_SUPPORT_3D_ZOOM")}),A({code:-1,msg:e.i18n.t("DEVICE_NOT_SUPPORT_3D_ZOOM")})}))}function fh(e,A){var t,i,n,a,r,o,s,g,l;return!e._FECCorrectType||((null==(t=e.jSPlugin)?void 0:t.isHardH264)||(null==(i=e.jSPlugin)?void 0:i.isHardH265))&&(null==(n=e.jSPlugin)?void 0:n.useHardDev)?(e.eventEmitter.emit(dd.getFEC3DViewParam,{eventType:dd.getFEC3DViewParam,code:-1,msg:e.i18n.t("FEC.GET_FEC_PARAMS_SUPPORT_VERSION")}),Promise.resolve({code:-1,msg:e.i18n.t("FEC.GET_FEC_PARAMS_SUPPORT_VERSION")})):(null==(a=e.jSPlugin)?void 0:a.FEC_Set3DViewParam)&&e._FECCorrectType&&(3===(null==(r=e._FECCorrectType)?void 0:r.place)&&1536===(null==(o=e._FECCorrectType)?void 0:o.correctType)||1===(null==(s=e._FECCorrectType)?void 0:s.place)&&2304===(null==(g=e._FECCorrectType)?void 0:g.correctType))?null==(l=e.jSPlugin)?void 0:l.FEC_Get3DViewParam(A).then((function(A){return e.eventEmitter.emit(dd.getFEC3DViewParam,{eventType:dd.getFEC3DViewParam,code:0,data:A,msg:e.i18n.t("FEC.SET_FEC_PARAMS")}),{code:0,data:A}})).catch((function(){return e.eventEmitter.emit(dd.getFEC3DViewParam,{eventType:dd.getFEC3DViewParam,code:-1}),{code:-1}})):(e.eventEmitter.emit(dd.getFEC3DViewParam,{eventType:dd.getFEC3DViewParam,code:-1,msg:e.i18n.t("FEC.SET_FEC_PARAMS_FAILED")}),Promise.resolve({code:-1,msg:e.i18n.t("FEC.SET_FEC_PARAMS_FAILED")}))}function Eh(e,A,t,i,n,a,r){try{var o=e[a](r),s=o.value}catch(e){return void t(e)}o.done?A(s):Promise.resolve(s).then(i,n)}function xh(e,A){var t,i,n,a,r={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(n=r.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&A-1 in e)}function y(e,A){return e.nodeName&&e.nodeName.toLowerCase()===A.toLowerCase()}p.fn=p.prototype={jquery:x,constructor:p,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var A=p.merge(this.constructor(),e);return A.prevObject=this,A},each:function(e){return p.each(this,e)},map:function(e){return this.pushStack(p.map(this,(function(A,t){return e.call(A,t,A)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(p.grep(this,(function(e,A){return(A+1)%2})))},odd:function(){return this.pushStack(p.grep(this,(function(e,A){return A%2})))},eq:function(e){var A=this.length,t=+e+(e<0?A:0);return this.pushStack(t>=0&&t+~]|"+D+")"+D+"*"),U=new RegExp(D+"|>"),J=new RegExp(M),H=new RegExp("^"+T+"$"),K={ID:new RegExp("^#("+T+")"),CLASS:new RegExp("^\\.("+T+")"),TAG:new RegExp("^("+T+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},O=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,j=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,W=/[+~]/,Z=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),X=function(e,A){var t="0x"+e.slice(1)-65536;return A||(t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320))},q=function(){se()},z=de((function(e){return!0===e.disabled&&y(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{u.apply(t=n.call(R.childNodes),R.childNodes),t[R.childNodes.length].nodeType}catch(e){u={apply:function(e,A){k.apply(e,n.call(A))},call:function(e){k.apply(e,n.call(arguments,1))}}}function $(e,A,t,i){var n,a,r,o,s,l,c,h=A&&A.ownerDocument,f=A?A.nodeType:9;if(t=t||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return t;if(!i&&(se(A),A=A||g,d)){if(11!==f&&(s=j.exec(e)))if(n=s[1]){if(9===f){if(!(r=A.getElementById(n)))return t;if(r.id===n)return u.call(t,r),t}else if(h&&(r=h.getElementById(n))&&$.contains(A,r)&&r.id===n)return u.call(t,r),t}else{if(s[2])return u.apply(t,A.getElementsByTagName(e)),t;if((n=s[3])&&A.getElementsByClassName)return u.apply(t,A.getElementsByClassName(n)),t}if(!(b[e+" "]||C&&C.test(e))){if(c=e,h=A,1===f&&(U.test(e)||Y.test(e))){for((h=W.test(e)&&oe(A.parentNode)||A)==A&&I.scope||((o=A.getAttribute("id"))?o=p.escapeSelector(o):A.setAttribute("id",o=B)),a=(l=le(e)).length;a--;)l[a]=(o?"#"+o:":scope")+" "+ce(l[a]);c=l.join(",")}try{return u.apply(t,h.querySelectorAll(c)),t}catch(A){b(e,!0)}finally{o===B&&A.removeAttribute("id")}}}return fe(e.replace(w,"$1"),A,t,i)}function ee(){var e=[];return function A(t,n){return e.push(t+" ")>i.cacheLength&&delete A[e.shift()],A[t+" "]=n}}function Ae(e){return e[B]=!0,e}function te(e){var A=g.createElement("fieldset");try{return!!e(A)}catch(e){return!1}finally{A.parentNode&&A.parentNode.removeChild(A),A=null}}function ie(e){return function(A){return y(A,"input")&&A.type===e}}function ne(e){return function(A){return(y(A,"input")||y(A,"button"))&&A.type===e}}function ae(e){return function(A){return"form"in A?A.parentNode&&!1===A.disabled?"label"in A?"label"in A.parentNode?A.parentNode.disabled===e:A.disabled===e:A.isDisabled===e||A.isDisabled!==!e&&z(A)===e:A.disabled===e:"label"in A&&A.disabled===e}}function re(e){return Ae((function(A){return A=+A,Ae((function(t,i){for(var n,a=e([],t.length,A),r=a.length;r--;)t[n=a[r]]&&(t[n]=!(i[n]=t[n]))}))}))}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function se(e){var A,t=e?e.ownerDocument||e:R;return t!=g&&9===t.nodeType&&t.documentElement?(c=(g=t).documentElement,d=!p.isXMLDoc(g),h=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=g&&(A=g.defaultView)&&A.top!==A&&A.addEventListener("unload",q),I.getById=te((function(e){return c.appendChild(e).id=p.expando,!g.getElementsByName||!g.getElementsByName(p.expando).length})),I.disconnectedMatch=te((function(e){return h.call(e,"*")})),I.scope=te((function(){return g.querySelectorAll(":scope")})),I.cssHas=te((function(){try{return g.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),I.getById?(i.filter.ID=function(e){var A=e.replace(Z,X);return function(e){return e.getAttribute("id")===A}},i.find.ID=function(e,A){if(void 0!==A.getElementById&&d){var t=A.getElementById(e);return t?[t]:[]}}):(i.filter.ID=function(e){var A=e.replace(Z,X);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===A}},i.find.ID=function(e,A){if(void 0!==A.getElementById&&d){var t,i,n,a=A.getElementById(e);if(a){if((t=a.getAttributeNode("id"))&&t.value===e)return[a];for(n=A.getElementsByName(e),i=0;a=n[i++];)if((t=a.getAttributeNode("id"))&&t.value===e)return[a]}return[]}}),i.find.TAG=function(e,A){return void 0!==A.getElementsByTagName?A.getElementsByTagName(e):A.querySelectorAll(e)},i.find.CLASS=function(e,A){if(void 0!==A.getElementsByClassName&&d)return A.getElementsByClassName(e)},C=[],te((function(e){var A;c.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||C.push("\\["+D+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+B+"-]").length||C.push("~="),e.querySelectorAll("a#"+B+"+*").length||C.push(".#.+[+~]"),e.querySelectorAll(":checked").length||C.push(":checked"),(A=g.createElement("input")).setAttribute("type","hidden"),e.appendChild(A).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&C.push(":enabled",":disabled"),(A=g.createElement("input")).setAttribute("name",""),e.appendChild(A),e.querySelectorAll("[name='']").length||C.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),I.cssHas||C.push(":has"),C=C.length&&new RegExp(C.join("|")),F=function(e,A){if(e===A)return s=!0,0;var t=!e.compareDocumentPosition-!A.compareDocumentPosition;return t||(1&(t=(e.ownerDocument||e)==(A.ownerDocument||A)?e.compareDocumentPosition(A):1)||!I.sortDetached&&A.compareDocumentPosition(e)===t?e===g||e.ownerDocument==R&&$.contains(R,e)?-1:A===g||A.ownerDocument==R&&$.contains(R,A)?1:r?o.call(r,e)-o.call(r,A):0:4&t?-1:1)},g):g}for(A in $.matches=function(e,A){return $(e,null,null,A)},$.matchesSelector=function(e,A){if(se(e),d&&!b[A+" "]&&(!C||!C.test(A)))try{var t=h.call(e,A);if(t||I.disconnectedMatch||e.document&&11!==e.document.nodeType)return t}catch(e){b(A,!0)}return $(A,g,null,[e]).length>0},$.contains=function(e,A){return(e.ownerDocument||e)!=g&&se(e),p.contains(e,A)},$.attr=function(e,A){(e.ownerDocument||e)!=g&&se(e);var t=i.attrHandle[A.toLowerCase()],n=t&&l.call(i.attrHandle,A.toLowerCase())?t(e,A,!d):void 0;return void 0!==n?n:e.getAttribute(A)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},p.uniqueSort=function(e){var A,t=[],i=0,a=0;if(s=!I.sortStable,r=!I.sortStable&&n.call(e,0),S.call(e,F),s){for(;A=e[a++];)A===e[a]&&(i=t.push(a));for(;i--;)v.call(e,t[i],1)}return r=null,e},p.fn.uniqueSort=function(){return this.pushStack(p.uniqueSort(n.apply(this)))},i=p.expr={cacheLength:50,createPseudo:Ae,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,X),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,X),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var A,t=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&J.test(t)&&(A=le(t,!0))&&(A=t.indexOf(")",t.length-A)-t.length)&&(e[0]=e[0].slice(0,A),e[2]=t.slice(0,A)),e.slice(0,3))}},filter:{TAG:function(e){var A=e.replace(Z,X).toLowerCase();return"*"===e?function(){return!0}:function(e){return y(e,A)}},CLASS:function(e){var A=x[e+" "];return A||(A=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&x(e,(function(e){return A.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,A,t){return function(i){var n=$.attr(i,e);return null==n?"!="===A:!A||(n+="","="===A?n===t:"!="===A?n!==t:"^="===A?t&&0===n.indexOf(t):"*="===A?t&&n.indexOf(t)>-1:"$="===A?t&&n.slice(-t.length)===t:"~="===A?(" "+n.replace(L," ")+" ").indexOf(t)>-1:"|="===A&&(n===t||n.slice(0,t.length+1)===t+"-"))}},CHILD:function(e,A,t,i,n){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===A;return 1===i&&0===n?function(e){return!!e.parentNode}:function(A,t,s){var g,l,c,d,I,C=a!==r?"nextSibling":"previousSibling",h=A.parentNode,u=o&&A.nodeName.toLowerCase(),E=!s&&!o,x=!1;if(h){if(a){for(;C;){for(c=A;c=c[C];)if(o?y(c,u):1===c.nodeType)return!1;I=C="only"===e&&!I&&"nextSibling"}return!0}if(I=[r?h.firstChild:h.lastChild],r&&E){for(x=(d=(g=(l=h[B]||(h[B]={}))[e]||[])[0]===f&&g[1])&&g[2],c=d&&h.childNodes[d];c=++d&&c&&c[C]||(x=d=0)||I.pop();)if(1===c.nodeType&&++x&&c===A){l[e]=[f,d,x];break}}else if(E&&(x=d=(g=(l=A[B]||(A[B]={}))[e]||[])[0]===f&&g[1]),!1===x)for(;(c=++d&&c&&c[C]||(x=d=0)||I.pop())&&(!(o?y(c,u):1===c.nodeType)||!++x||(E&&((l=c[B]||(c[B]={}))[e]=[f,x]),c!==A)););return(x-=n)===i||x%i==0&&x/i>=0}}},PSEUDO:function(e,A){var t,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return n[B]?n(A):n.length>1?(t=[e,e,"",A],i.setFilters.hasOwnProperty(e.toLowerCase())?Ae((function(e,t){for(var i,a=n(e,A),r=a.length;r--;)e[i=o.call(e,a[r])]=!(t[i]=a[r])})):function(e){return n(e,0,t)}):n}},pseudos:{not:Ae((function(e){var A=[],t=[],i=Be(e.replace(w,"$1"));return i[B]?Ae((function(e,A,t,n){for(var a,r=i(e,null,n,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(A[o]=a))})):function(e,n,a){return A[0]=e,i(A,null,a,t),A[0]=null,!t.pop()}})),has:Ae((function(e){return function(A){return $(e,A).length>0}})),contains:Ae((function(e){return e=e.replace(Z,X),function(A){return(A.textContent||p.text(A)).indexOf(e)>-1}})),lang:Ae((function(e){return H.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(Z,X).toLowerCase(),function(A){var t;do{if(t=d?A.lang:A.getAttribute("xml:lang")||A.getAttribute("lang"))return(t=t.toLowerCase())===e||0===t.indexOf(e+"-")}while((A=A.parentNode)&&1===A.nodeType);return!1}})),target:function(A){var t=e.location&&e.location.hash;return t&&t.slice(1)===A.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return g.activeElement}catch(e){}}()&&g.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return y(e,"input")&&!!e.checked||y(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return O.test(e.nodeName)},button:function(e){return y(e,"input")&&"button"===e.type||y(e,"button")},text:function(e){var A;return y(e,"input")&&"text"===e.type&&(null==(A=e.getAttribute("type"))||"text"===A.toLowerCase())},first:re((function(){return[0]})),last:re((function(e,A){return[A-1]})),eq:re((function(e,A,t){return[t<0?t+A:t]})),even:re((function(e,A){for(var t=0;tA?A:t;--i>=0;)e.push(i);return e})),gt:re((function(e,A,t){for(var i=t<0?t+A:t;++i1?function(A,t,i){for(var n=e.length;n--;)if(!e[n](A,t,i))return!1;return!0}:e[0]}function Ce(e,A,t,i,n){for(var a,r=[],o=0,s=e.length,g=null!=A;o-1&&(a[l]=!(r[l]=d))}}else I=Ce(I===r?I.splice(B,I.length):I),n?n(null,r,I,g):u.apply(r,I)}))}function ue(e){for(var A,t,n,r=e.length,s=i.relative[e[0].type],g=s||i.relative[" "],l=s?1:0,c=de((function(e){return e===A}),g,!0),d=de((function(e){return o.call(A,e)>-1}),g,!0),I=[function(e,t,i){var n=!s&&(i||t!=a)||((A=t).nodeType?c(e,t,i):d(e,t,i));return A=null,n}];l1&&Ie(I),l>1&&ce(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(w,"$1"),t,l0,n=e.length>0,r=function(r,o,s,l,c){var I,C,h,B=0,E="0",x=r&&[],Q=[],m=a,y=r||n&&i.find.TAG("*",c),S=f+=null==m?1:Math.random()||.1,v=y.length;for(c&&(a=o==g||o||c);E!==v&&null!=(I=y[E]);E++){if(n&&I){for(C=0,o||I.ownerDocument==g||(se(I),s=!d);h=e[C++];)if(h(I,o||g,s)){u.call(l,I);break}c&&(f=S)}t&&((I=!h&&I)&&B--,r&&x.push(I))}if(B+=E,t&&E!==B){for(C=0;h=A[C++];)h(x,Q,o,s);if(r){if(B>0)for(;E--;)x[E]||Q[E]||(Q[E]=_.call(l));Q=Ce(Q)}u.apply(l,Q),c&&!r&&Q.length>0&&B+A.length>1&&p.uniqueSort(l)}return c&&(f=S,a=m),x};return t?Ae(r):r}(r,n)),o.selector=e}return o}function fe(e,A,t,n){var a,r,o,s,g,l="function"==typeof e&&e,c=!n&&le(e=l.selector||e);if(t=t||[],1===c.length){if((r=c[0]=c[0].slice(0)).length>2&&"ID"===(o=r[0]).type&&9===A.nodeType&&d&&i.relative[r[1].type]){if(!(A=(i.find.ID(o.matches[0].replace(Z,X),A)||[])[0]))return t;l&&(A=A.parentNode),e=e.slice(r.shift().value.length)}for(a=K.needsContext.test(e)?0:r.length;a--&&(o=r[a],!i.relative[s=o.type]);)if((g=i.find[s])&&(n=g(o.matches[0].replace(Z,X),W.test(r[0].type)&&oe(A.parentNode)||A))){if(r.splice(a,1),!(e=n.length&&ce(r)))return u.apply(t,n),t;break}}return(l||Be(e,c))(n,A,!d,t,!A||W.test(e)&&oe(A.parentNode)||A),t}ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,I.sortStable=B.split("").sort(F).join("")===B,se(),I.sortDetached=te((function(e){return 1&e.compareDocumentPosition(g.createElement("fieldset"))})),p.find=$,p.expr[":"]=p.expr.pseudos,p.unique=p.uniqueSort,$.compile=Be,$.select=fe,$.setDocument=se,$.tokenize=le,$.escape=p.escapeSelector,$.getText=p.text,$.isXML=p.isXMLDoc,$.selectors=p.expr,$.support=p.support,$.uniqueSort=p.uniqueSort}();var P=function(e,A,t){for(var i=[],n=void 0!==t;(e=e[A])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&p(e).is(t))break;i.push(e)}return i},T=function(e,A){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==A&&t.push(e);return t},N=p.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,A,t){return C(A)?p.grep(e,(function(e,i){return!!A.call(e,i,e)!==t})):A.nodeType?p.grep(e,(function(e){return e===A!==t})):"string"!=typeof A?p.grep(e,(function(e){return o.call(A,e)>-1!==t})):p.filter(A,e,t)}p.filter=function(e,A,t){var i=A[0];return t&&(e=":not("+e+")"),1===A.length&&1===i.nodeType?p.find.matchesSelector(i,e)?[i]:[]:p.find.matches(e,p.grep(A,(function(e){return 1===e.nodeType})))},p.fn.extend({find:function(e){var A,t,i=this.length,n=this;if("string"!=typeof e)return this.pushStack(p(e).filter((function(){for(A=0;A1?p.uniqueSort(t):t},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&N.test(e)?p(e):e||[],!1).length}});var G,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,U=p.fn.init=function(e,A,t){var i,n;if(!e)return this;if(t=t||G,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Y.exec(e))||!i[1]&&A)return!A||A.jquery?(A||t).find(e):this.constructor(A).find(e);if(i[1]){if(A=A instanceof p?A[0]:A,p.merge(this,p.parseHTML(i[1],A&&A.nodeType?A.ownerDocument||A:u,!0)),M.test(i[1])&&p.isPlainObject(A))for(i in A)C(this[i])?this[i](A[i]):this.attr(i,A[i]);return this}return(n=u.getElementById(i[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):C(e)?void 0!==t.ready?t.ready(e):e(p):p.makeArray(e,this)};U.prototype=p.fn,G=p(u);var J=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function K(e,A){for(;(e=e[A])&&1!==e.nodeType;);return e}p.fn.extend({has:function(e){var A=p(e,this),t=A.length;return this.filter((function(){for(var e=0;e-1:1===t.nodeType&&p.find.matchesSelector(t,e))){a.push(t);break}return this.pushStack(a.length>1?p.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?o.call(p(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,A){return this.pushStack(p.uniqueSort(p.merge(this.get(),p(e,A))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var A=e.parentNode;return A&&11!==A.nodeType?A:null},parents:function(e){return P(e,"parentNode")},parentsUntil:function(e,A,t){return P(e,"parentNode",t)},next:function(e){return K(e,"nextSibling")},prev:function(e){return K(e,"previousSibling")},nextAll:function(e){return P(e,"nextSibling")},prevAll:function(e){return P(e,"previousSibling")},nextUntil:function(e,A,t){return P(e,"nextSibling",t)},prevUntil:function(e,A,t){return P(e,"previousSibling",t)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(y(e,"template")&&(e=e.content||e),p.merge([],e.childNodes))}},(function(e,A){p.fn[e]=function(t,i){var n=p.map(this,A,t);return"Until"!==e.slice(-5)&&(i=t),i&&"string"==typeof i&&(n=p.filter(i,n)),this.length>1&&(H[e]||p.uniqueSort(n),J.test(e)&&n.reverse()),this.pushStack(n)}}));var O=/[^\x20\t\r\n\f]+/g;function V(e){return e}function j(e){throw e}function W(e,A,t,i){var n;try{e&&C(n=e.promise)?n.call(e).done(A).fail(t):e&&C(n=e.then)?n.call(e,A,t):A.apply(void 0,[e].slice(i))}catch(e){t.apply(void 0,[e])}}p.Callbacks=function(e){e="string"==typeof e?function(e){var A={};return p.each(e.match(O)||[],(function(e,t){A[t]=!0})),A}(e):p.extend({},e);var A,t,i,n,a=[],r=[],o=-1,s=function(){for(n=n||e.once,i=A=!0;r.length;o=-1)for(t=r.shift();++o-1;)a.splice(t,1),t<=o&&o--})),this},has:function(e){return e?p.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return n=r=[],a=t="",this},disabled:function(){return!a},lock:function(){return n=r=[],t||A||(a=t=""),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],r.push(t),A||s()),this},fire:function(){return g.fireWith(this,arguments),this},fired:function(){return!!i}};return g},p.extend({Deferred:function(A){var t=[["notify","progress",p.Callbacks("memory"),p.Callbacks("memory"),2],["resolve","done",p.Callbacks("once memory"),p.Callbacks("once memory"),0,"resolved"],["reject","fail",p.Callbacks("once memory"),p.Callbacks("once memory"),1,"rejected"]],i="pending",n={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return p.Deferred((function(A){p.each(t,(function(t,i){var n=C(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=n&&n.apply(this,arguments);e&&C(e.promise)?e.promise().progress(A.notify).done(A.resolve).fail(A.reject):A[i[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(A,i,n){var a=0;function r(A,t,i,n){return function(){var o=this,s=arguments,g=function(){var e,g;if(!(A=a&&(i!==j&&(o=void 0,s=[e]),t.rejectWith(o,s))}};A?l():(p.Deferred.getErrorHook?l.error=p.Deferred.getErrorHook():p.Deferred.getStackHook&&(l.error=p.Deferred.getStackHook()),e.setTimeout(l))}}return p.Deferred((function(e){t[0][3].add(r(0,e,C(n)?n:V,e.notifyWith)),t[1][3].add(r(0,e,C(A)?A:V)),t[2][3].add(r(0,e,C(i)?i:j))})).promise()},promise:function(e){return null!=e?p.extend(e,n):n}},a={};return p.each(t,(function(e,A){var r=A[2],o=A[5];n[A[1]]=r.add,o&&r.add((function(){i=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(A[3].fire),a[A[0]]=function(){return a[A[0]+"With"](this===a?void 0:this,arguments),this},a[A[0]+"With"]=r.fireWith})),n.promise(a),A&&A.call(a,a),a},when:function(e){var A=arguments.length,t=A,i=Array(t),a=n.call(arguments),r=p.Deferred(),o=function(e){return function(t){i[e]=this,a[e]=arguments.length>1?n.call(arguments):t,--A||r.resolveWith(i,a)}};if(A<=1&&(W(e,r.done(o(t)).resolve,r.reject,!A),"pending"===r.state()||C(a[t]&&a[t].then)))return r.then();for(;t--;)W(a[t],o(t),r.reject);return r.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;p.Deferred.exceptionHook=function(A,t){e.console&&e.console.warn&&A&&Z.test(A.name)&&e.console.warn("jQuery.Deferred exception: "+A.message,A.stack,t)},p.readyException=function(A){e.setTimeout((function(){throw A}))};var X=p.Deferred();function q(){u.removeEventListener("DOMContentLoaded",q),e.removeEventListener("load",q),p.ready()}p.fn.ready=function(e){return X.then(e).catch((function(e){p.readyException(e)})),this},p.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--p.readyWait:p.isReady)||(p.isReady=!0,!0!==e&&--p.readyWait>0||X.resolveWith(u,[p]))}}),p.ready.then=X.then,"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?e.setTimeout(p.ready):(u.addEventListener("DOMContentLoaded",q),e.addEventListener("load",q));var z=function(e,A,t,i,n,a,r){var o=0,s=e.length,g=null==t;if("object"===E(t))for(o in n=!0,t)z(e,A,o,t[o],!0,a,r);else if(void 0!==i&&(n=!0,C(i)||(r=!0),g&&(r?(A.call(e,i),A=null):(g=A,A=function(e,A,t){return g.call(p(e),t)})),A))for(;o1,null,!0)},removeData:function(e){return this.each((function(){re.remove(this,e)}))}}),p.extend({queue:function(e,A,t){var i;if(e)return A=(A||"fx")+"queue",i=ae.get(e,A),t&&(!i||Array.isArray(t)?i=ae.access(e,A,p.makeArray(t)):i.push(t)),i||[]},dequeue:function(e,A){A=A||"fx";var t=p.queue(e,A),i=t.length,n=t.shift(),a=p._queueHooks(e,A);"inprogress"===n&&(n=t.shift(),i--),n&&("fx"===A&&t.unshift("inprogress"),delete a.stop,n.call(e,(function(){p.dequeue(e,A)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,A){var t=A+"queueHooks";return ae.get(e,t)||ae.access(e,t,{empty:p.Callbacks("once memory").add((function(){ae.remove(e,[A+"queue",t])}))})}}),p.fn.extend({queue:function(e,A){var t=2;return"string"!=typeof e&&(A=e,e="fx",t--),arguments.length\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;Qe=u.createDocumentFragment().appendChild(u.createElement("div")),(pe=u.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),Qe.appendChild(pe),I.checkClone=Qe.cloneNode(!0).cloneNode(!0).lastChild.checked,Qe.innerHTML="",I.noCloneChecked=!!Qe.cloneNode(!0).lastChild.defaultValue,Qe.innerHTML="",I.option=!!Qe.lastChild;var Se={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,A){var t;return t=void 0!==e.getElementsByTagName?e.getElementsByTagName(A||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(A||"*"):[],void 0===A||A&&y(e,A)?p.merge([e],t):t}function De(e,A){for(var t=0,i=e.length;t",""]);var we=/<|&#?\w+;/;function be(e,A,t,i,n){for(var a,r,o,s,g,l,c=A.createDocumentFragment(),d=[],I=0,C=e.length;I-1)n&&n.push(a);else if(g=Ce(a),r=ve(c.appendChild(a),"script"),g&&De(r),t)for(l=0;a=r[l++];)_e.test(a.type||"")&&t.push(a);return c}var Fe=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function ke(){return!1}function Pe(e,A,t,i,n,a){var r,o;if("object"==typeof A){for(o in"string"!=typeof t&&(i=i||t,t=void 0),A)Pe(e,o,t,i,A[o],a);return e}if(null==i&&null==n?(n=t,i=t=void 0):null==n&&("string"==typeof t?(n=i,i=void 0):(n=i,i=t,t=void 0)),!1===n)n=ke;else if(!n)return e;return 1===a&&(r=n,n=function(e){return p().off(e),r.apply(this,arguments)},n.guid=r.guid||(r.guid=p.guid++)),e.each((function(){p.event.add(this,A,n,i,t)}))}function Te(e,A,t){t?(ae.set(e,A,!1),p.event.add(e,A,{namespace:!1,handler:function(e){var t,i=ae.get(this,A);if(1&e.isTrigger&&this[A]){if(i)(p.event.special[A]||{}).delegateType&&e.stopPropagation();else if(i=n.call(arguments),ae.set(this,A,i),this[A](),t=ae.get(this,A),ae.set(this,A,!1),i!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else i&&(ae.set(this,A,p.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Re)}})):void 0===ae.get(e,A)&&p.event.add(e,A,Re)}p.event={global:{},add:function(e,A,t,i,n){var a,r,o,s,g,l,c,d,I,C,h,u=ae.get(e);if(ie(e))for(t.handler&&(t=(a=t).handler,n=a.selector),n&&p.find.matchesSelector(Ie,n),t.guid||(t.guid=p.guid++),(s=u.events)||(s=u.events=Object.create(null)),(r=u.handle)||(r=u.handle=function(A){return void 0!==p&&p.event.triggered!==A.type?p.event.dispatch.apply(e,arguments):void 0}),g=(A=(A||"").match(O)||[""]).length;g--;)I=h=(o=Fe.exec(A[g])||[])[1],C=(o[2]||"").split(".").sort(),I&&(c=p.event.special[I]||{},I=(n?c.delegateType:c.bindType)||I,c=p.event.special[I]||{},l=p.extend({type:I,origType:h,data:i,handler:t,guid:t.guid,selector:n,needsContext:n&&p.expr.match.needsContext.test(n),namespace:C.join(".")},a),(d=s[I])||((d=s[I]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,C,r)||e.addEventListener&&e.addEventListener(I,r)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=t.guid)),n?d.splice(d.delegateCount++,0,l):d.push(l),p.event.global[I]=!0)},remove:function(e,A,t,i,n){var a,r,o,s,g,l,c,d,I,C,h,u=ae.hasData(e)&&ae.get(e);if(u&&(s=u.events)){for(g=(A=(A||"").match(O)||[""]).length;g--;)if(I=h=(o=Fe.exec(A[g])||[])[1],C=(o[2]||"").split(".").sort(),I){for(c=p.event.special[I]||{},d=s[I=(i?c.delegateType:c.bindType)||I]||[],o=o[2]&&new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=d.length;a--;)l=d[a],!n&&h!==l.origType||t&&t.guid!==l.guid||o&&!o.test(l.namespace)||i&&i!==l.selector&&("**"!==i||!l.selector)||(d.splice(a,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(e,l));r&&!d.length&&(c.teardown&&!1!==c.teardown.call(e,C,u.handle)||p.removeEvent(e,I,u.handle),delete s[I])}else for(I in s)p.event.remove(e,I+A[g],t,i,!0);p.isEmptyObject(s)&&ae.remove(e,"handle events")}},dispatch:function(e){var A,t,i,n,a,r,o=new Array(arguments.length),s=p.event.fix(e),g=(ae.get(this,"events")||Object.create(null))[s.type]||[],l=p.event.special[s.type]||{};for(o[0]=s,A=1;A=1))for(;g!==this;g=g.parentNode||this)if(1===g.nodeType&&("click"!==e.type||!0!==g.disabled)){for(a=[],r={},t=0;t-1:p.find(n,this,null,[g]).length),r[n]&&a.push(i);a.length&&o.push({elem:g,handlers:a})}return g=this,s\s*$/g;function Ge(e,A){return y(e,"table")&&y(11!==A.nodeType?A:A.firstChild,"tr")&&p(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Je(e,A){var t,i,n,a,r,o;if(1===A.nodeType){if(ae.hasData(e)&&(o=ae.get(e).events))for(n in ae.remove(A,"handle events"),o)for(t=0,i=o[n].length;t1&&"string"==typeof u&&!I.checkClone&&Me.test(u))return e.each((function(n){var a=e.eq(n);B&&(A[0]=u.call(this,n,a.html())),Ke(a,A,t,i)}));if(d&&(r=(n=be(A,e[0].ownerDocument,!1,e,i)).firstChild,1===n.childNodes.length&&(n=r),r||i)){for(s=(o=p.map(ve(n,"script"),Ye)).length;c0&&De(r,!s&&ve(e,"script")),o},cleanData:function(e){for(var A,t,i,n=p.event.special,a=0;void 0!==(t=e[a]);a++)if(ie(t)){if(A=t[ae.expando]){if(A.events)for(i in A.events)n[i]?p.event.remove(t,i):p.removeEvent(t,i,A.handle);t[ae.expando]=void 0}t[re.expando]&&(t[re.expando]=void 0)}}}),p.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return z(this,(function(e){return void 0===e?p.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ke(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ge(this,e).appendChild(e)}))},prepend:function(){return Ke(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var A=Ge(this,e);A.insertBefore(e,A.firstChild)}}))},before:function(){return Ke(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ke(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,A=0;null!=(e=this[A]);A++)1===e.nodeType&&(p.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,A){return e=null!=e&&e,A=null==A?e:A,this.map((function(){return p.clone(this,e,A)}))},html:function(e){return z(this,(function(e){var A=this[0]||{},t=0,i=this.length;if(void 0===e&&1===A.nodeType)return A.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!Se[(ye.exec(e)||["",""])[1].toLowerCase()]){e=p.htmlPrefilter(e);try{for(;t=0&&(s+=Math.max(0,Math.ceil(e["offset"+A[0].toUpperCase()+A.slice(1)]-a-s-o-.5))||0),s+g}function sA(e,A,t){var i=We(e),n=(!I.boxSizingReliable()||t)&&"border-box"===p.css(e,"boxSizing",!1,i),a=n,r=qe(e,A,i),o="offset"+A[0].toUpperCase()+A.slice(1);if(Ve.test(r)){if(!t)return r;r="auto"}return(!I.boxSizingReliable()&&n||!I.reliableTrDimensions()&&y(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===p.css(e,"display",!1,i))&&e.getClientRects().length&&(n="border-box"===p.css(e,"boxSizing",!1,i),(a=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+oA(e,A,t||(n?"border":"content"),a,i,r)+"px"}function gA(e,A,t,i,n){return new gA.prototype.init(e,A,t,i,n)}p.extend({cssHooks:{opacity:{get:function(e,A){if(A){var t=qe(e,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,A,t,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,a,r,o=te(A),s=je.test(A),g=e.style;if(s||(A=tA(o)),r=p.cssHooks[A]||p.cssHooks[o],void 0===t)return r&&"get"in r&&void 0!==(n=r.get(e,!1,i))?n:g[A];"string"==(a=typeof t)&&(n=ce.exec(t))&&n[1]&&(t=Be(e,A,n),a="number"),null!=t&&t==t&&("number"!==a||s||(t+=n&&n[3]||(p.cssNumber[o]?"":"px")),I.clearCloneStyle||""!==t||0!==A.indexOf("background")||(g[A]="inherit"),r&&"set"in r&&void 0===(t=r.set(e,t,i))||(s?g.setProperty(A,t):g[A]=t))}},css:function(e,A,t,i){var n,a,r,o=te(A);return je.test(A)||(A=tA(o)),(r=p.cssHooks[A]||p.cssHooks[o])&&"get"in r&&(n=r.get(e,!0,t)),void 0===n&&(n=qe(e,A,i)),"normal"===n&&A in aA&&(n=aA[A]),""===t||t?(a=parseFloat(n),!0===t||isFinite(a)?a||0:n):n}}),p.each(["height","width"],(function(e,A){p.cssHooks[A]={get:function(e,t,i){if(t)return!iA.test(p.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?sA(e,A,i):Ze(e,nA,(function(){return sA(e,A,i)}))},set:function(e,t,i){var n,a=We(e),r=!I.scrollboxSize()&&"absolute"===a.position,o=(r||i)&&"border-box"===p.css(e,"boxSizing",!1,a),s=i?oA(e,A,i,o,a):0;return o&&r&&(s-=Math.ceil(e["offset"+A[0].toUpperCase()+A.slice(1)]-parseFloat(a[A])-oA(e,A,"border",!1,a)-.5)),s&&(n=ce.exec(t))&&"px"!==(n[3]||"px")&&(e.style[A]=t,t=p.css(e,A)),rA(0,t,s)}}})),p.cssHooks.marginLeft=ze(I.reliableMarginLeft,(function(e,A){if(A)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),p.each({margin:"",padding:"",border:"Width"},(function(e,A){p.cssHooks[e+A]={expand:function(t){for(var i=0,n={},a="string"==typeof t?t.split(" "):[t];i<4;i++)n[e+de[i]+A]=a[i]||a[i-2]||a[0];return n}},"margin"!==e&&(p.cssHooks[e+A].set=rA)})),p.fn.extend({css:function(e,A){return z(this,(function(e,A,t){var i,n,a={},r=0;if(Array.isArray(A)){for(i=We(e),n=A.length;r1)}}),p.Tween=gA,gA.prototype={constructor:gA,init:function(e,A,t,i,n,a){this.elem=e,this.prop=t,this.easing=n||p.easing._default,this.options=A,this.start=this.now=this.cur(),this.end=i,this.unit=a||(p.cssNumber[t]?"":"px")},cur:function(){var e=gA.propHooks[this.prop];return e&&e.get?e.get(this):gA.propHooks._default.get(this)},run:function(e){var A,t=gA.propHooks[this.prop];return this.options.duration?this.pos=A=p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=A=e,this.now=(this.end-this.start)*A+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):gA.propHooks._default.set(this),this}},gA.prototype.init.prototype=gA.prototype,gA.propHooks={_default:{get:function(e){var A;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(A=p.css(e.elem,e.prop,""))&&"auto"!==A?A:0},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):1!==e.elem.nodeType||!p.cssHooks[e.prop]&&null==e.elem.style[tA(e.prop)]?e.elem[e.prop]=e.now:p.style(e.elem,e.prop,e.now+e.unit)}}},gA.propHooks.scrollTop=gA.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},p.fx=gA.prototype.init,p.fx.step={};var lA,cA,dA=/^(?:toggle|show|hide)$/,IA=/queueHooks$/;function CA(){cA&&(!1===u.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(CA):e.setTimeout(CA,p.fx.interval),p.fx.tick())}function hA(){return e.setTimeout((function(){lA=void 0})),lA=Date.now()}function uA(e,A){var t,i=0,n={height:e};for(A=A?1:0;i<4;i+=2-A)n["margin"+(t=de[i])]=n["padding"+t]=e;return A&&(n.opacity=n.width=e),n}function BA(e,A,t){for(var i,n=(fA.tweeners[A]||[]).concat(fA.tweeners["*"]),a=0,r=n.length;a1)},removeAttr:function(e){return this.each((function(){p.removeAttr(this,e)}))}}),p.extend({attr:function(e,A,t){var i,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?p.prop(e,A,t):(1===a&&p.isXMLDoc(e)||(n=p.attrHooks[A.toLowerCase()]||(p.expr.match.bool.test(A)?EA:void 0)),void 0!==t?null===t?void p.removeAttr(e,A):n&&"set"in n&&void 0!==(i=n.set(e,t,A))?i:(e.setAttribute(A,t+""),t):n&&"get"in n&&null!==(i=n.get(e,A))?i:null==(i=p.find.attr(e,A))?void 0:i)},attrHooks:{type:{set:function(e,A){if(!I.radioValue&&"radio"===A&&y(e,"input")){var t=e.value;return e.setAttribute("type",A),t&&(e.value=t),A}}}},removeAttr:function(e,A){var t,i=0,n=A&&A.match(O);if(n&&1===e.nodeType)for(;t=n[i++];)e.removeAttribute(t)}}),EA={set:function(e,A,t){return!1===A?p.removeAttr(e,t):e.setAttribute(t,t),t}},p.each(p.expr.match.bool.source.match(/\w+/g),(function(e,A){var t=xA[A]||p.find.attr;xA[A]=function(e,A,i){var n,a,r=A.toLowerCase();return i||(a=xA[r],xA[r]=n,n=null!=t(e,A,i)?r:null,xA[r]=a),n}}));var QA=/^(?:input|select|textarea|button)$/i,pA=/^(?:a|area)$/i;function mA(e){return(e.match(O)||[]).join(" ")}function yA(e){return e.getAttribute&&e.getAttribute("class")||""}function _A(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(O)||[]}p.fn.extend({prop:function(e,A){return z(this,p.prop,e,A,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[p.propFix[e]||e]}))}}),p.extend({prop:function(e,A,t){var i,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&p.isXMLDoc(e)||(A=p.propFix[A]||A,n=p.propHooks[A]),void 0!==t?n&&"set"in n&&void 0!==(i=n.set(e,t,A))?i:e[A]=t:n&&"get"in n&&null!==(i=n.get(e,A))?i:e[A]},propHooks:{tabIndex:{get:function(e){var A=p.find.attr(e,"tabindex");return A?parseInt(A,10):QA.test(e.nodeName)||pA.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(p.propHooks.selected={get:function(e){var A=e.parentNode;return A&&A.parentNode&&A.parentNode.selectedIndex,null},set:function(e){var A=e.parentNode;A&&(A.selectedIndex,A.parentNode&&A.parentNode.selectedIndex)}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){p.propFix[this.toLowerCase()]=this})),p.fn.extend({addClass:function(e){var A,t,i,n,a,r;return C(e)?this.each((function(A){p(this).addClass(e.call(this,A,yA(this)))})):(A=_A(e)).length?this.each((function(){if(i=yA(this),t=1===this.nodeType&&" "+mA(i)+" "){for(a=0;a-1;)t=t.replace(" "+n+" "," ");r=mA(t),i!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(e,A){var t,i,n,a,r=typeof e,o="string"===r||Array.isArray(e);return C(e)?this.each((function(t){p(this).toggleClass(e.call(this,t,yA(this),A),A)})):"boolean"==typeof A&&o?A?this.addClass(e):this.removeClass(e):(t=_A(e),this.each((function(){if(o)for(a=p(this),n=0;n-1)return!0;return!1}});var SA=/\r/g;p.fn.extend({val:function(e){var A,t,i,n=this[0];return arguments.length?(i=C(e),this.each((function(t){var n;1===this.nodeType&&(null==(n=i?e.call(this,t,p(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=p.map(n,(function(e){return null==e?"":e+""}))),(A=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in A&&void 0!==A.set(this,n,"value")||(this.value=n))}))):n?(A=p.valHooks[n.type]||p.valHooks[n.nodeName.toLowerCase()])&&"get"in A&&void 0!==(t=A.get(n,"value"))?t:"string"==typeof(t=n.value)?t.replace(SA,""):null==t?"":t:void 0}}),p.extend({valHooks:{option:{get:function(e){var A=p.find.attr(e,"value");return null!=A?A:mA(p.text(e))}},select:{get:function(e){var A,t,i,n=e.options,a=e.selectedIndex,r="select-one"===e.type,o=r?null:[],s=r?a+1:n.length;for(i=a<0?s:r?a:0;i-1)&&(t=!0);return t||(e.selectedIndex=-1),a}}}}),p.each(["radio","checkbox"],(function(){p.valHooks[this]={set:function(e,A){if(Array.isArray(A))return e.checked=p.inArray(p(e).val(),A)>-1}},I.checkOn||(p.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var vA=e.location,DA={guid:Date.now()},wA=/\?/;p.parseXML=function(A){var t,i;if(!A||"string"!=typeof A)return null;try{t=(new e.DOMParser).parseFromString(A,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||p.error("Invalid XML: "+(i?p.map(i.childNodes,(function(e){return e.textContent})).join("\n"):A)),t};var bA=/^(?:focusinfocus|focusoutblur)$/,FA=function(e){e.stopPropagation()};p.extend(p.event,{trigger:function(A,t,i,n){var a,r,o,s,g,c,d,I,B=[i||u],f=l.call(A,"type")?A.type:A,E=l.call(A,"namespace")?A.namespace.split("."):[];if(r=I=o=i=i||u,3!==i.nodeType&&8!==i.nodeType&&!bA.test(f+p.event.triggered)&&(f.indexOf(".")>-1&&(E=f.split("."),f=E.shift(),E.sort()),g=f.indexOf(":")<0&&"on"+f,(A=A[p.expando]?A:new p.Event(f,"object"==typeof A&&A)).isTrigger=n?2:3,A.namespace=E.join("."),A.rnamespace=A.namespace?new RegExp("(^|\\.)"+E.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,A.result=void 0,A.target||(A.target=i),t=null==t?[A]:p.makeArray(t,[A]),d=p.event.special[f]||{},n||!d.trigger||!1!==d.trigger.apply(i,t))){if(!n&&!d.noBubble&&!h(i)){for(s=d.delegateType||f,bA.test(s+f)||(r=r.parentNode);r;r=r.parentNode)B.push(r),o=r;o===(i.ownerDocument||u)&&B.push(o.defaultView||o.parentWindow||e)}for(a=0;(r=B[a++])&&!A.isPropagationStopped();)I=r,A.type=a>1?s:d.bindType||f,(c=(ae.get(r,"events")||Object.create(null))[A.type]&&ae.get(r,"handle"))&&c.apply(r,t),(c=g&&r[g])&&c.apply&&ie(r)&&(A.result=c.apply(r,t),!1===A.result&&A.preventDefault());return A.type=f,n||A.isDefaultPrevented()||d._default&&!1!==d._default.apply(B.pop(),t)||!ie(i)||g&&C(i[f])&&!h(i)&&((o=i[g])&&(i[g]=null),p.event.triggered=f,A.isPropagationStopped()&&I.addEventListener(f,FA),i[f](),A.isPropagationStopped()&&I.removeEventListener(f,FA),p.event.triggered=void 0,o&&(i[g]=o)),A.result}},simulate:function(e,A,t){var i=p.extend(new p.Event,t,{type:e,isSimulated:!0});p.event.trigger(i,null,A)}}),p.fn.extend({trigger:function(e,A){return this.each((function(){p.event.trigger(e,A,this)}))},triggerHandler:function(e,A){var t=this[0];if(t)return p.event.trigger(e,A,t,!0)}});var RA=/\[\]$/,kA=/\r?\n/g,PA=/^(?:submit|button|image|reset|file)$/i,TA=/^(?:input|select|textarea|keygen)/i;function NA(e,A,t,i){var n;if(Array.isArray(A))p.each(A,(function(A,n){t||RA.test(e)?i(e,n):NA(e+"["+("object"==typeof n&&null!=n?A:"")+"]",n,t,i)}));else if(t||"object"!==E(A))i(e,A);else for(n in A)NA(e+"["+n+"]",A[n],t,i)}p.param=function(e,A){var t,i=[],n=function(e,A){var t=C(A)?A():A;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,(function(){n(this.name,this.value)}));else for(t in e)NA(t,e[t],A,n);return i.join("&")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&TA.test(this.nodeName)&&!PA.test(e)&&(this.checked||!me.test(e))})).map((function(e,A){var t=p(this).val();return null==t?null:Array.isArray(t)?p.map(t,(function(e){return{name:A.name,value:e.replace(kA,"\r\n")}})):{name:A.name,value:t.replace(kA,"\r\n")}})).get()}});var MA=/%20/g,LA=/#.*$/,GA=/([?&])_=[^&]*/,YA=/^(.*?):[ \t]*([^\r\n]*)$/gm,UA=/^(?:GET|HEAD)$/,JA=/^\/\//,HA={},KA={},OA="*/".concat("*"),VA=u.createElement("a");function jA(e){return function(A,t){"string"!=typeof A&&(t=A,A="*");var i,n=0,a=A.toLowerCase().match(O)||[];if(C(t))for(;i=a[n++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(t)):(e[i]=e[i]||[]).push(t)}}function WA(e,A,t,i){var n={},a=e===KA;function r(o){var s;return n[o]=!0,p.each(e[o]||[],(function(e,o){var g=o(A,t,i);return"string"!=typeof g||a||n[g]?a?!(s=g):void 0:(A.dataTypes.unshift(g),r(g),!1)})),s}return r(A.dataTypes[0])||!n["*"]&&r("*")}function ZA(e,A){var t,i,n=p.ajaxSettings.flatOptions||{};for(t in A)void 0!==A[t]&&((n[t]?e:i||(i={}))[t]=A[t]);return i&&p.extend(!0,e,i),e}VA.href=vA.href,p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vA.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(vA.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":OA,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,A){return A?ZA(ZA(e,p.ajaxSettings),A):ZA(p.ajaxSettings,e)},ajaxPrefilter:jA(HA),ajaxTransport:jA(KA),ajax:function(A,t){"object"==typeof A&&(t=A,A=void 0),t=t||{};var i,n,a,r,o,s,g,l,c,d,I=p.ajaxSetup({},t),C=I.context||I,h=I.context&&(C.nodeType||C.jquery)?p(C):p.event,B=p.Deferred(),f=p.Callbacks("once memory"),E=I.statusCode||{},x={},Q={},m="canceled",y={readyState:0,getResponseHeader:function(e){var A;if(g){if(!r)for(r={};A=YA.exec(a);)r[A[1].toLowerCase()+" "]=(r[A[1].toLowerCase()+" "]||[]).concat(A[2]);A=r[e.toLowerCase()+" "]}return null==A?null:A.join(", ")},getAllResponseHeaders:function(){return g?a:null},setRequestHeader:function(e,A){return null==g&&(e=Q[e.toLowerCase()]=Q[e.toLowerCase()]||e,x[e]=A),this},overrideMimeType:function(e){return null==g&&(I.mimeType=e),this},statusCode:function(e){var A;if(e)if(g)y.always(e[y.status]);else for(A in e)E[A]=[E[A],e[A]];return this},abort:function(e){var A=e||m;return i&&i.abort(A),_(0,A),this}};if(B.promise(y),I.url=((A||I.url||vA.href)+"").replace(JA,vA.protocol+"//"),I.type=t.method||t.type||I.method||I.type,I.dataTypes=(I.dataType||"*").toLowerCase().match(O)||[""],null==I.crossDomain){s=u.createElement("a");try{s.href=I.url,s.href=s.href,I.crossDomain=VA.protocol+"//"+VA.host!=s.protocol+"//"+s.host}catch(e){I.crossDomain=!0}}if(I.data&&I.processData&&"string"!=typeof I.data&&(I.data=p.param(I.data,I.traditional)),WA(HA,I,t,y),g)return y;for(c in(l=p.event&&I.global)&&0==p.active++&&p.event.trigger("ajaxStart"),I.type=I.type.toUpperCase(),I.hasContent=!UA.test(I.type),n=I.url.replace(LA,""),I.hasContent?I.data&&I.processData&&0===(I.contentType||"").indexOf("application/x-www-form-urlencoded")&&(I.data=I.data.replace(MA,"+")):(d=I.url.slice(n.length),I.data&&(I.processData||"string"==typeof I.data)&&(n+=(wA.test(n)?"&":"?")+I.data,delete I.data),!1===I.cache&&(n=n.replace(GA,"$1"),d=(wA.test(n)?"&":"?")+"_="+DA.guid+++d),I.url=n+d),I.ifModified&&(p.lastModified[n]&&y.setRequestHeader("If-Modified-Since",p.lastModified[n]),p.etag[n]&&y.setRequestHeader("If-None-Match",p.etag[n])),(I.data&&I.hasContent&&!1!==I.contentType||t.contentType)&&y.setRequestHeader("Content-Type",I.contentType),y.setRequestHeader("Accept",I.dataTypes[0]&&I.accepts[I.dataTypes[0]]?I.accepts[I.dataTypes[0]]+("*"!==I.dataTypes[0]?", "+OA+"; q=0.01":""):I.accepts["*"]),I.headers)y.setRequestHeader(c,I.headers[c]);if(I.beforeSend&&(!1===I.beforeSend.call(C,y,I)||g))return y.abort();if(m="abort",f.add(I.complete),y.done(I.success),y.fail(I.error),i=WA(KA,I,t,y)){if(y.readyState=1,l&&h.trigger("ajaxSend",[y,I]),g)return y;I.async&&I.timeout>0&&(o=e.setTimeout((function(){y.abort("timeout")}),I.timeout));try{g=!1,i.send(x,_)}catch(e){if(g)throw e;_(-1,e)}}else _(-1,"No Transport");function _(A,t,r,s){var c,d,u,x,Q,m=t;g||(g=!0,o&&e.clearTimeout(o),i=void 0,a=s||"",y.readyState=A>0?4:0,c=A>=200&&A<300||304===A,r&&(x=function(e,A,t){for(var i,n,a,r,o=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===i&&(i=e.mimeType||A.getResponseHeader("Content-Type"));if(i)for(n in o)if(o[n]&&o[n].test(i)){s.unshift(n);break}if(s[0]in t)a=s[0];else{for(n in t){if(!s[0]||e.converters[n+" "+s[0]]){a=n;break}r||(r=n)}a=a||r}if(a)return a!==s[0]&&s.unshift(a),t[a]}(I,y,r)),!c&&p.inArray("script",I.dataTypes)>-1&&p.inArray("json",I.dataTypes)<0&&(I.converters["text script"]=function(){}),x=function(e,A,t,i){var n,a,r,o,s,g={},l=e.dataTypes.slice();if(l[1])for(r in e.converters)g[r.toLowerCase()]=e.converters[r];for(a=l.shift();a;)if(e.responseFields[a]&&(t[e.responseFields[a]]=A),!s&&i&&e.dataFilter&&(A=e.dataFilter(A,e.dataType)),s=a,a=l.shift())if("*"===a)a=s;else if("*"!==s&&s!==a){if(!(r=g[s+" "+a]||g["* "+a]))for(n in g)if((o=n.split(" "))[1]===a&&(r=g[s+" "+o[0]]||g["* "+o[0]])){!0===r?r=g[n]:!0!==g[n]&&(a=o[0],l.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)A=r(A);else try{A=r(A)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+s+" to "+a}}}return{state:"success",data:A}}(I,x,y,c),c?(I.ifModified&&((Q=y.getResponseHeader("Last-Modified"))&&(p.lastModified[n]=Q),(Q=y.getResponseHeader("etag"))&&(p.etag[n]=Q)),204===A||"HEAD"===I.type?m="nocontent":304===A?m="notmodified":(m=x.state,d=x.data,c=!(u=x.error))):(u=m,!A&&m||(m="error",A<0&&(A=0))),y.status=A,y.statusText=(t||m)+"",c?B.resolveWith(C,[d,m,y]):B.rejectWith(C,[y,m,u]),y.statusCode(E),E=void 0,l&&h.trigger(c?"ajaxSuccess":"ajaxError",[y,I,c?d:u]),f.fireWith(C,[y,m]),l&&(h.trigger("ajaxComplete",[y,I]),--p.active||p.event.trigger("ajaxStop")))}return y},getJSON:function(e,A,t){return p.get(e,A,t,"json")},getScript:function(e,A){return p.get(e,void 0,A,"script")}}),p.each(["get","post"],(function(e,A){p[A]=function(e,t,i,n){return C(t)&&(n=n||i,i=t,t=void 0),p.ajax(p.extend({url:e,type:A,dataType:n,data:t,success:i},p.isPlainObject(e)&&e))}})),p.ajaxPrefilter((function(e){var A;for(A in e.headers)"content-type"===A.toLowerCase()&&(e.contentType=e.headers[A]||"")})),p._evalUrl=function(e,A,t){return p.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){p.globalEval(e,A,t)}})},p.fn.extend({wrapAll:function(e){var A;return this[0]&&(C(e)&&(e=e.call(this[0])),A=p(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&A.insertBefore(this[0]),A.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return C(e)?this.each((function(A){p(this).wrapInner(e.call(this,A))})):this.each((function(){var A=p(this),t=A.contents();t.length?t.wrapAll(e):A.append(e)}))},wrap:function(e){var A=C(e);return this.each((function(t){p(this).wrapAll(A?e.call(this,t):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){p(this).replaceWith(this.childNodes)})),this}}),p.expr.pseudos.hidden=function(e){return!p.expr.pseudos.visible(e)},p.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},p.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var XA={0:200,1223:204},qA=p.ajaxSettings.xhr();I.cors=!!qA&&"withCredentials"in qA,I.ajax=qA=!!qA,p.ajaxTransport((function(A){var t,i;if(I.cors||qA&&!A.crossDomain)return{send:function(n,a){var r,o=A.xhr();if(o.open(A.type,A.url,A.async,A.username,A.password),A.xhrFields)for(r in A.xhrFields)o[r]=A.xhrFields[r];for(r in A.mimeType&&o.overrideMimeType&&o.overrideMimeType(A.mimeType),A.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(r,n[r]);t=function(e){return function(){t&&(t=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(XA[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){t&&i()}))},t=t("abort");try{o.send(A.hasContent&&A.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),p.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),p.ajaxTransport("script",(function(e){var A,t;if(e.crossDomain||e.scriptAttrs)return{send:function(i,n){A=p(" + + + + +
+

视频模式使用示例:

+
+
+ + + + + + + + + + + + +
+

+ 播放多个视频,可初始化多个实例,参考:/demos/base-demo/multi-demo +

+
+ + +