@das-fed/upf-ui 6.4.0-dev.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm-map.json +431 -0
- package/index.d.ts +7 -0
- package/index.js +21 -0
- package/package.json +94 -0
- package/packages/business-components/ai-panel/i18n/index.d.ts +244 -0
- package/packages/business-components/ai-panel/index-B3RtWorD.js +180 -0
- package/packages/business-components/ai-panel/index-B3RtWorD.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C_F-B4pD.js +5841 -0
- package/packages/business-components/ai-panel/index-C_F-B4pD.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DL3Tpf5P.js +60 -0
- package/packages/business-components/ai-panel/index-DL3Tpf5P.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +9 -0
- package/packages/business-components/ai-panel/src/dasAI/apis.d.ts +16 -0
- package/packages/business-components/ai-panel/src/dasAI/components/addNew/index.vue.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.d.ts +7 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.vue.d.ts +12 -0
- package/packages/business-components/ai-panel/src/dasAI/components/folderDialog/index.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/sender/components/senderOpt.vue.d.ts +2 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +8 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/knowbase.d.ts +4 -0
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +14 -0
- package/packages/business-components/ai-panel/src/dasAI/store/index.d.ts +21 -0
- package/packages/business-components/ai-panel/src/index.vue.d.ts +30 -0
- package/packages/business-components/ai-panel/src/type.d.ts +10 -0
- package/packages/business-components/ai-panel/style.css +1 -0
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/app-container/index.d.ts +9 -0
- package/packages/business-components/app-container/index.js +227 -0
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +12 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +13 -0
- package/packages/business-components/app-container/src/type.d.ts +10 -0
- package/packages/business-components/app-container/style.css +1 -0
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +8 -0
- package/packages/business-components/area-phone-select/i18n/index.d.ts +7 -0
- package/packages/business-components/area-phone-select/index.d.ts +1368 -0
- package/packages/business-components/area-phone-select/index.js +269 -0
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/src/Index.vue.d.ts +15 -0
- package/packages/business-components/area-phone-select/src/apis.d.ts +2 -0
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +179 -0
- package/packages/business-components/area-phone-select/src/area-popover/type.d.ts +37 -0
- package/packages/business-components/area-phone-select/src/type.d.ts +26 -0
- package/packages/business-components/area-phone-select/src/utils.d.ts +12 -0
- package/packages/business-components/area-phone-select/style.css +1 -0
- package/packages/business-components/area-phone-select/style.css.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +18 -0
- package/packages/business-components/change-enterprises/index.d.ts +66 -0
- package/packages/business-components/change-enterprises/index.js +190 -0
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/src/apis.d.ts +2 -0
- package/packages/business-components/change-enterprises/src/index.vue.d.ts +14 -0
- package/packages/business-components/change-enterprises/src/type.d.ts +20 -0
- package/packages/business-components/change-enterprises/style.css +1 -0
- package/packages/business-components/change-enterprises/style.css.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +93 -0
- package/packages/business-components/change-pwd/index.d.ts +61 -0
- package/packages/business-components/change-pwd/index.js +268 -0
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/src/apis.d.ts +8 -0
- package/packages/business-components/change-pwd/src/hooks/use-changePwd.d.ts +232 -0
- package/packages/business-components/change-pwd/src/index.vue.d.ts +13 -0
- package/packages/business-components/change-pwd/src/type.d.ts +13 -0
- package/packages/business-components/change-pwd/style.css +1 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +23 -0
- package/packages/business-components/currency-page/index.d.ts +2 -0
- package/packages/business-components/currency-page/index.js +91 -0
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/currency-page/src/index.vue.d.ts +3 -0
- package/packages/business-components/currency-page/src/type.d.ts +7 -0
- package/packages/business-components/currency-page/style.css +1 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +1215 -0
- package/packages/business-components/device-panel/index.d.ts +29 -0
- package/packages/business-components/device-panel/index.js +62965 -0
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +82 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/listItem.vue.d.ts +23 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +10 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +17 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logEcharts.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logList.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/repairDetail.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/index.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +17 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/deviceDetail/index.vue.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/deviceOperateLog/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-alarm-log.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-data-Trends.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-device-detail.d.ts +9 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-device-operate-log.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-inspection-record.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-maintenance-record.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-operating-data.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-operation-plan.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-repair-record.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-video-monitoring.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +43 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/components/use-check-item/CheckItem.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/components/use-check-item/check-item.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/components/use-task-info/TaskInfo.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/components/use-task-info/task-info.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/inspectionRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/linkDialog.vue.d.ts +21 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/components/use-check-item/CheckItem.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/components/use-check-item/check-item.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/components/use-task-info/TaskInfo.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/components/use-task-info/task-info.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/maintenanceRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +3 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/operationPlan/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/Index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/apis.d.ts +3 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-consumables-record/Consumables.vue.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-consumables-record/consumables.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-feedback-record/Feedback.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-feedback-record/feedback.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/Info.vue.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-info/info.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-schedule-track/Track.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/components/use-schedule-track/track.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/repairRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/type.d.ts +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/videoMonitoring/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/listItem.vue.d.ts +23 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +10 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +17 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logEcharts.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logList.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/repairDetail.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/index.vue.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +9 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +17 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/deviceDetail/index.vue.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/deviceOperateLog/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-alarm-log.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-data-Trends.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-device-detail.d.ts +9 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-device-operate-log.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-inspection-record.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-maintenance-record.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-operating-data.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-operation-plan.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-repair-record.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-video-monitoring.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +25 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/components/use-check-item/CheckItem.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/components/use-check-item/check-item.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/components/use-task-info/TaskInfo.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/components/use-task-info/task-info.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/inspectionRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/linkDialog.vue.d.ts +21 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/components/use-check-item/CheckItem.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/components/use-check-item/check-item.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/components/use-task-info/TaskInfo.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/components/use-task-info/task-info.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/maintenanceRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/operatingData/index.vue.d.ts +9 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/operationPlan/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +37 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/Index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/apis.d.ts +3 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-consumables-record/Consumables.vue.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-consumables-record/consumables.d.ts +15 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-feedback-record/Feedback.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-feedback-record/feedback.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/Info.vue.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-info/info.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-schedule-track/Track.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/components/use-schedule-track/track.d.ts +14 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/hooks/common.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/repairRecord/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/type.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/videoMonitoring/index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +58 -0
- package/packages/business-components/device-panel/src/components/drag-resize/type.d.ts +83 -0
- package/packages/business-components/device-panel/src/components/panelHeaders/index.vue.d.ts +22 -0
- package/packages/business-components/device-panel/src/components/videoDialog/api.d.ts +32 -0
- package/packages/business-components/device-panel/src/components/videoDialog/component/GridLayout/GridItem.vue.d.ts +35 -0
- package/packages/business-components/device-panel/src/components/videoDialog/component/GridLayout/GridLayout.vue.d.ts +38 -0
- package/packages/business-components/device-panel/src/components/videoDialog/component/Player/DirectionControl.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/videoDialog/component/Player/index.vue.d.ts +26 -0
- package/packages/business-components/device-panel/src/components/videoDialog/hooks/use-video/PlayerProvider.d.ts +22 -0
- package/packages/business-components/device-panel/src/components/videoDialog/hooks/use-video/index.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/videoDialog/type.d.ts +19 -0
- package/packages/business-components/device-panel/src/hooks/common.d.ts +7 -0
- package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
- package/packages/business-components/device-panel/src/index.vue.d.ts +7 -0
- package/packages/business-components/device-panel/src/render-panel.d.ts +29 -0
- package/packages/business-components/device-panel/src/store/index.d.ts +13 -0
- package/packages/business-components/device-panel/style.css +1 -0
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.d.ts +153 -0
- package/packages/business-components/echarts/index.js +44676 -0
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/echarts/src/Index.vue.d.ts +31 -0
- package/packages/business-components/echarts/src/hooks/basic-data.d.ts +2 -0
- package/packages/business-components/echarts/src/type.d.ts +51 -0
- package/packages/business-components/echarts/style.css +1 -0
- package/packages/business-components/export-button/hooks/file.d.ts +31 -0
- package/packages/business-components/export-button/hooks/useExport.d.ts +8 -0
- package/packages/business-components/export-button/i18n/index.d.ts +58 -0
- package/packages/business-components/export-button/index.d.ts +63 -0
- package/packages/business-components/export-button/index.js +253 -0
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/export-button/src/App.vue.d.ts +61 -0
- package/packages/business-components/export-button/src/type.d.ts +29 -0
- package/packages/business-components/export-button/style.css +1 -0
- package/packages/business-components/import-button/hooks/file.d.ts +39 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +20 -0
- package/packages/business-components/import-button/i18n/index.d.ts +153 -0
- package/packages/business-components/import-button/index.d.ts +88 -0
- package/packages/business-components/import-button/index.js +586 -0
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/App.vue.d.ts +91 -0
- package/packages/business-components/import-button/src/type.d.ts +45 -0
- package/packages/business-components/import-button/style.css +1 -0
- package/packages/business-components/index.d.ts +22 -0
- package/packages/business-components/index.js +22 -0
- package/packages/business-components/layout-breadcrumb/index.d.ts +43 -0
- package/packages/business-components/layout-breadcrumb/index.js +110 -0
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/src/hooks/use-breadcrumb.d.ts +6 -0
- package/packages/business-components/layout-breadcrumb/src/index.vue.d.ts +9 -0
- package/packages/business-components/layout-breadcrumb/src/type.d.ts +19 -0
- package/packages/business-components/layout-breadcrumb/style.css +1 -0
- package/packages/business-components/layout-breadcrumb/theme/base.d.ts +5 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +33 -0
- package/packages/business-components/model-table-dialog/index.d.ts +1276 -0
- package/packages/business-components/model-table-dialog/index.js +1125 -0
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +388 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +6468 -0
- package/packages/business-components/model-table-dialog/src/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/model-table-dialog/src/hooks/use-tools.d.ts +4 -0
- package/packages/business-components/model-table-dialog/src/type.d.ts +73 -0
- package/packages/business-components/model-table-dialog/style.css +1 -0
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +56 -0
- package/packages/business-components/payment/index.js +387 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +44 -0
- package/packages/business-components/process-configuration/api/processApi.d.ts +7 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +153 -0
- package/packages/business-components/process-configuration/index.d.ts +19 -0
- package/packages/business-components/process-configuration/index.js +559 -0
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/hooks/type.d.ts +26 -0
- package/packages/business-components/process-configuration/src/hooks/useCopyDialog.d.ts +65 -0
- package/packages/business-components/process-configuration/src/hooks/useDeleteDialog.d.ts +18 -0
- package/packages/business-components/process-configuration/src/index.vue.d.ts +19 -0
- package/packages/business-components/process-configuration/src/type.d.ts +35 -0
- package/packages/business-components/process-configuration/style.css +1 -0
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-form/App.vue.d.ts +20 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +79 -0
- package/packages/business-components/process-form/apis.d.ts +23 -0
- package/packages/business-components/process-form/i18n/index.d.ts +423 -0
- package/packages/business-components/process-form/index.d.ts +20 -0
- package/packages/business-components/process-form/index.js +2601 -0
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +193 -0
- package/packages/business-components/process-form/src/hooks/useSelector.d.ts +27 -0
- package/packages/business-components/process-form/src/hooks/useSpaceTree.d.ts +10 -0
- package/packages/business-components/process-form/src/type.d.ts +70 -0
- package/packages/business-components/process-form/src/utils/common-methods.d.ts +3 -0
- package/packages/business-components/process-form/src/utils/encryption/index.d.ts +7 -0
- package/packages/business-components/process-form/src/utils/processRules.d.ts +40 -0
- package/packages/business-components/process-form/src/widgets/base/attachment.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/autocomplete.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/checkbox.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/date.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/dropdown.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/imageViewer.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/input.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/number.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/radio.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/select.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/selector.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/soundRecording.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/switch.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/text.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/textarea.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/base/time.vue.d.ts +18 -0
- package/packages/business-components/process-form/src/widgets/index.d.ts +2 -0
- package/packages/business-components/process-form/src/widgets/layout/accordion/accordion.d.ts +36 -0
- package/packages/business-components/process-form/src/widgets/layout/accordion/accordion.vue.d.ts +13 -0
- package/packages/business-components/process-form/src/widgets/layout/accordion/type.d.ts +25 -0
- package/packages/business-components/process-form/src/widgets/layout/grid/grid.d.ts +36 -0
- package/packages/business-components/process-form/src/widgets/layout/grid/gridLayout.vue.d.ts +13 -0
- package/packages/business-components/process-form/src/widgets/readFile.d.ts +6 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +19 -0
- package/packages/business-components/process-form/style.css +1 -0
- package/packages/business-components/process-form/type.d.ts +24 -0
- package/packages/business-components/process-log/Index.vue.d.ts +7 -0
- package/packages/business-components/process-log/ProcessLogItem.vue.d.ts +6 -0
- package/packages/business-components/process-log/i18n/index.d.ts +48 -0
- package/packages/business-components/process-log/index.d.ts +11 -0
- package/packages/business-components/process-log/index.js +768 -0
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/src/utils/prefix-mothed.d.ts +1 -0
- package/packages/business-components/process-log/src/widgets/base/avatorInfo.vue.d.ts +13 -0
- package/packages/business-components/process-log/src/widgets/base/fileInfo.vue.d.ts +10 -0
- package/packages/business-components/process-log/src/widgets/base/rateInfo.vue.d.ts +10 -0
- package/packages/business-components/process-log/src/widgets/base/remarkInfo.vue.d.ts +8 -0
- package/packages/business-components/process-log/src/widgets/base/signInfo.vue.d.ts +8 -0
- package/packages/business-components/process-log/src/widgets/base/titleInfo.vue.d.ts +8 -0
- package/packages/business-components/process-log/src/widgets/base/userInfo.vue.d.ts +8 -0
- package/packages/business-components/process-log/src/widgets/base/viewInfo.vue.d.ts +8 -0
- package/packages/business-components/process-log/style.css +1 -0
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-log/theme/index.d.ts +11 -0
- package/packages/business-components/process-log/type.d.ts +105 -0
- package/packages/business-components/process-search-form/api.d.ts +4 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +8 -0
- package/packages/business-components/process-search-form/hooks/useService.d.ts +10 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +48 -0
- package/packages/business-components/process-search-form/index.d.ts +13 -0
- package/packages/business-components/process-search-form/index.js +848 -0
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/src/App.vue.d.ts +13 -0
- package/packages/business-components/process-search-form/src/type.d.ts +41 -0
- package/packages/business-components/process-table/api.d.ts +4 -0
- package/packages/business-components/process-table/hooks/useApi.d.ts +5 -0
- package/packages/business-components/process-table/hooks/useProcessTable.d.ts +39 -0
- package/packages/business-components/process-table/hooks/useTableShow.d.ts +21 -0
- package/packages/business-components/process-table/hooks/useValueFormatter.d.ts +11 -0
- package/packages/business-components/process-table/i18n/index.d.ts +43 -0
- package/packages/business-components/process-table/index.d.ts +333 -0
- package/packages/business-components/process-table/index.js +1063 -0
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +109 -0
- package/packages/business-components/process-table/src/type.d.ts +157 -0
- package/packages/business-components/process-table/style.css +1 -0
- package/packages/business-components/process-table/util/encryption/index.d.ts +7 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +8 -0
- package/packages/business-components/upload-file/index.d.ts +89 -0
- package/packages/business-components/upload-file/index.js +119 -0
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/src/App.vue.d.ts +18 -0
- package/packages/business-components/upload-file/src/hooks/use-upload.d.ts +7 -0
- package/packages/business-components/upload-file/src/type.d.ts +57 -0
- package/packages/business-components/upload-file/style.css +1 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +523 -0
- package/packages/business-components/urgent-panel/index.d.ts +18 -0
- package/packages/business-components/urgent-panel/index.js +3028 -0
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +58 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/type.d.ts +83 -0
- package/packages/business-components/urgent-panel/src/components/panelHeaders/index.vue.d.ts +22 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/apis.d.ts +11 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/EventInfo.vue.d.ts +10 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/EventList.vue.d.ts +6 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/FileRecord.vue.d.ts +5 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/PlanInfo.vue.d.ts +5 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-feedback-record/Feedback.vue.d.ts +6 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-feedback-record/feedback.d.ts +14 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/LocationSelect.vue.d.ts +8 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/apis.d.ts +2 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/index.d.ts +1 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/location-select.d.ts +7 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/type.d.ts +3 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-release-urgent/ReleaseUrgent.vue.d.ts +17 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-release-urgent/release-urgent.d.ts +13 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/Track.vue.d.ts +6 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/track.d.ts +14 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/apis.d.ts +1 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectList.vue.d.ts +8 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectOrganizationAndUser.vue.d.ts +9 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectOrganizationAndUserData.d.ts +1 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectUser.vue.d.ts +8 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-list.d.ts +7 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-org-user.d.ts +8 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/use-select-user.d.ts +7 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/hooks/index.d.ts +15 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/hooks/use-i18n.d.ts +1 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/index.vue.d.ts +12 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/type.d.ts +0 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/urgentMonitorPanel.vue.d.ts +17 -0
- package/packages/business-components/urgent-panel/src/index.vue.d.ts +7 -0
- package/packages/business-components/urgent-panel/src/render-panel.d.ts +27 -0
- package/packages/business-components/urgent-panel/src/store/index.d.ts +7 -0
- package/packages/business-components/urgent-panel/style.css +1 -0
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +93 -0
- package/packages/business-components/user-org-dialog/index.d.ts +99 -0
- package/packages/business-components/user-org-dialog/index.js +743 -0
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/src/Index.vue.d.ts +21 -0
- package/packages/business-components/user-org-dialog/src/apis.d.ts +3 -0
- package/packages/business-components/user-org-dialog/src/components/selectList.vue.d.ts +14 -0
- package/packages/business-components/user-org-dialog/src/components/selectOrg.vue.d.ts +15 -0
- package/packages/business-components/user-org-dialog/src/components/selectUser.vue.d.ts +18 -0
- package/packages/business-components/user-org-dialog/src/hooks/index.d.ts +1 -0
- package/packages/business-components/user-org-dialog/src/hooks/use-select-list.d.ts +7 -0
- package/packages/business-components/user-org-dialog/src/hooks/use-select-org.d.ts +7 -0
- package/packages/business-components/user-org-dialog/src/hooks/use-select-user.d.ts +7 -0
- package/packages/business-components/user-org-dialog/src/type.d.ts +37 -0
- package/packages/business-components/user-org-dialog/style.css +1 -0
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +103 -0
- package/packages/business-components/video-dialog/index.d.ts +54 -0
- package/packages/business-components/video-dialog/index.js +837 -0
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/api.d.ts +21 -0
- package/packages/business-components/video-dialog/src/common.d.ts +2 -0
- package/packages/business-components/video-dialog/src/component/GridLayout/GridItem.vue.d.ts +35 -0
- package/packages/business-components/video-dialog/src/component/GridLayout/GridLayout.vue.d.ts +38 -0
- package/packages/business-components/video-dialog/src/component/Player/DirectionControl.vue.d.ts +6 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +25 -0
- package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +20 -0
- package/packages/business-components/video-dialog/src/hooks/use-video/index.d.ts +5 -0
- package/packages/business-components/video-dialog/src/index.vue.d.ts +11 -0
- package/packages/business-components/video-dialog/src/type.d.ts +21 -0
- package/packages/business-components/video-dialog/style.css +1 -0
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/alert/index.d.ts +165 -0
- package/packages/components/alert/index.js +112 -0
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/alert/src/index.vue.d.ts +21 -0
- package/packages/components/alert/src/type.d.ts +17 -0
- package/packages/components/alert/style.css +1 -0
- package/packages/components/alert/style.css.gz +0 -0
- package/packages/components/alert/theme/index.d.ts +12 -0
- package/packages/components/audio-video/index.d.ts +163 -0
- package/packages/components/audio-video/index.js +288 -0
- package/packages/components/audio-video/index.js.gz +0 -0
- package/packages/components/audio-video/src/Index.vue.d.ts +15 -0
- package/packages/components/audio-video/src/player/index.vue.d.ts +21 -0
- package/packages/components/audio-video/src/player/type.d.ts +22 -0
- package/packages/components/audio-video/src/type.d.ts +35 -0
- package/packages/components/audio-video/src/use-micro-app-audio-video/index.d.ts +12 -0
- package/packages/components/audio-video/style.css +1 -0
- package/packages/components/autocomplete/index.d.ts +323 -0
- package/packages/components/autocomplete/index.js +1029 -0
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +120 -0
- package/packages/components/autocomplete/src/type.d.ts +71 -0
- package/packages/components/autocomplete/style.css +1 -0
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/index.d.ts +63 -0
- package/packages/components/breadcrumb/index.js +126 -0
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +43 -0
- package/packages/components/breadcrumb/src/BreadCrumbItem.vue.d.ts +28 -0
- package/packages/components/breadcrumb/src/type.d.ts +21 -0
- package/packages/components/breadcrumb/style.css +1 -0
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/breadcrumb/theme/index.d.ts +7 -0
- package/packages/components/button/index.d.ts +79 -0
- package/packages/components/button/index.js +452 -0
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/src/Index.vue.d.ts +36 -0
- package/packages/components/button/src/type.d.ts +76 -0
- package/packages/components/button/style.css +1 -0
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/button/theme/index.d.ts +21 -0
- package/packages/components/calendar/hooks/calendar.d.ts +12 -0
- package/packages/components/calendar/i18n/index.d.ts +233 -0
- package/packages/components/calendar/index.d.ts +132 -0
- package/packages/components/calendar/index.js +561 -0
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/calendar/src/Index.vue.d.ts +89 -0
- package/packages/components/calendar/src/calendar-table.vue.d.ts +37 -0
- package/packages/components/calendar/src/old-Index.vue.d.ts +26 -0
- package/packages/components/calendar/src/type.d.ts +64 -0
- package/packages/components/calendar/style.css +1 -0
- package/packages/components/calendar/style.css.gz +0 -0
- package/packages/components/calendar/theme/base.d.ts +11 -0
- package/packages/components/cascader/i18n/index.d.ts +8 -0
- package/packages/components/cascader/index.d.ts +298 -0
- package/packages/components/cascader/index.js +301 -0
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +36 -0
- package/packages/components/cascader/src/type.d.ts +61 -0
- package/packages/components/cascader/style.css +1 -0
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/cascader/theme/base.d.ts +19 -0
- package/packages/components/checkbox/index.d.ts +335 -0
- package/packages/components/checkbox/index.js +429 -0
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/Index.vue.d.ts +106 -0
- package/packages/components/checkbox/src/type.d.ts +67 -0
- package/packages/components/checkbox/style.css +1 -0
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/checkbox/theme/index.d.ts +14 -0
- package/packages/components/collapse-panel/index.d.ts +143 -0
- package/packages/components/collapse-panel/index.js +59 -0
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/src/Index.vue.d.ts +35 -0
- package/packages/components/collapse-panel/style.css +1 -0
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/collapse-panel/theme/index.d.ts +7 -0
- package/packages/components/collapse-transition/index.d.ts +19 -0
- package/packages/components/collapse-transition/index.js +46 -0
- package/packages/components/collapse-transition/index.js.gz +0 -0
- package/packages/components/collapse-transition/src/Index.vue.d.ts +25 -0
- package/packages/components/collapse-transition/style.css +1 -0
- package/packages/components/collaspe/index.d.ts +149 -0
- package/packages/components/collaspe/index.js +54 -0
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/collaspe/src/Index.vue.d.ts +33 -0
- package/packages/components/collaspe/src/type.d.ts +20 -0
- package/packages/components/collaspe/style.css +1 -0
- package/packages/components/color-picker/i18n/index.d.ts +8 -0
- package/packages/components/color-picker/index.d.ts +91 -0
- package/packages/components/color-picker/index.js +200 -0
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/Index.vue.d.ts +20 -0
- package/packages/components/color-picker/src/hooks/use-color-picker.d.ts +8 -0
- package/packages/components/color-picker/src/type.d.ts +33 -0
- package/packages/components/color-picker/style.css +1 -0
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/color-picker/theme/index.d.ts +8 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +8 -0
- package/packages/components/custom-search-item/index.d.ts +200 -0
- package/packages/components/custom-search-item/index.js +87 -0
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/custom-search-item/src/Index.vue.d.ts +50 -0
- package/packages/components/custom-search-item/src/type.d.ts +57 -0
- package/packages/components/custom-search-item/style.css +1 -0
- package/packages/components/custom-search-item/theme/index.d.ts +7 -0
- package/packages/components/date-picker/i18n/index.d.ts +33 -0
- package/packages/components/date-picker/index.d.ts +488 -0
- package/packages/components/date-picker/index.js +1292 -0
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +50 -0
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +31 -0
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +52 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +44 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +44 -0
- package/packages/components/date-picker/src/type.d.ts +284 -0
- package/packages/components/date-picker/style.css +1 -0
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/date-picker/theme/base.d.ts +16 -0
- package/packages/components/dialog/i18n/index.d.ts +33 -0
- package/packages/components/dialog/index.d.ts +94 -0
- package/packages/components/dialog/index.js +384 -0
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +42 -0
- package/packages/components/dialog/src/type.d.ts +53 -0
- package/packages/components/dialog/src/use-micro-app-dialog/index.d.ts +12 -0
- package/packages/components/dialog/src/use-micro-app-dialog/micro-frontend.d.ts +10 -0
- package/packages/components/dialog/style.css +1 -0
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dialog/theme/base.d.ts +17 -0
- package/packages/components/dimple-layout/editor/editor.vue.d.ts +31 -0
- package/packages/components/dimple-layout/editor/index.d.ts +117 -0
- package/packages/components/dimple-layout/editor/plugins/$background/index.d.ts +3 -0
- package/packages/components/dimple-layout/editor/plugins/$background/type.d.ts +65 -0
- package/packages/components/dimple-layout/editor/plugins/$image/index.d.ts +3 -0
- package/packages/components/dimple-layout/editor/plugins/$route/get-obstacles.d.ts +4 -0
- package/packages/components/dimple-layout/editor/plugins/$route/get-routes.d.ts +4 -0
- package/packages/components/dimple-layout/editor/plugins/$route/type.d.ts +102 -0
- package/packages/components/dimple-layout/editor/plugins/$svg/index.d.ts +3 -0
- package/packages/components/dimple-layout/editor/plugins/$svg/type.d.ts +15 -0
- package/packages/components/dimple-layout/editor/plugins/$text/index.d.ts +3 -0
- package/packages/components/dimple-layout/editor/plugins/$text/type.d.ts +53 -0
- package/packages/components/dimple-layout/editor/plugins/index.d.ts +1 -0
- package/packages/components/dimple-layout/editor/rule.vue.d.ts +23 -0
- package/packages/components/dimple-layout/editor/tools/background-image/component.vue.d.ts +6 -0
- package/packages/components/dimple-layout/editor/tools/import/component.vue.d.ts +6 -0
- package/packages/components/dimple-layout/editor/type.d.ts +76 -0
- package/packages/components/dimple-layout/editor/use-editor/index.d.ts +10 -0
- package/packages/components/dimple-layout/helper/index.d.ts +5 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +53 -0
- package/packages/components/dimple-layout/index.d.ts +3 -0
- package/packages/components/dimple-layout/index.js +24849 -0
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/render/index.d.ts +20 -0
- package/packages/components/dimple-layout/render/render.vue.d.ts +21 -0
- package/packages/components/dimple-layout/render/use-render.d.ts +9 -0
- package/packages/components/dimple-layout/style.css +1 -0
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/dimple-layout/type.d.ts +1 -0
- package/packages/components/drawer/index.d.ts +36 -0
- package/packages/components/drawer/index.js +86 -0
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/drawer/src/Index.vue.d.ts +34 -0
- package/packages/components/drawer/style.css +1 -0
- package/packages/components/drawer/theme/base.d.ts +11 -0
- package/packages/components/dropdown/i18n/index.d.ts +8 -0
- package/packages/components/dropdown/index.d.ts +85 -0
- package/packages/components/dropdown/index.js +145 -0
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/dropdown/src/dropdownItem.vue.d.ts +25 -0
- package/packages/components/dropdown/src/dropdownMenu.vue.d.ts +18 -0
- package/packages/components/dropdown/src/index.vue.d.ts +37 -0
- package/packages/components/dropdown/src/type.d.ts +10 -0
- package/packages/components/dropdown/style.css +1 -0
- package/packages/components/dropdown/style.css.gz +0 -0
- package/packages/components/dropdown/theme/index.d.ts +7 -0
- package/packages/components/edit-table/index.d.ts +543 -0
- package/packages/components/edit-table/index.js +2693 -0
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/components/index.d.ts +1 -0
- package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
- package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +23 -0
- package/packages/components/edit-table/src/index.vue.d.ts +4207 -0
- package/packages/components/edit-table/src/type.d.ts +242 -0
- package/packages/components/edit-table/src/utils.d.ts +19 -0
- package/packages/components/edit-table/style.css +1 -0
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +8 -0
- package/packages/components/empty/index.d.ts +46 -0
- package/packages/components/empty/index.js +101 -0
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/empty/src/Index.vue.d.ts +42 -0
- package/packages/components/empty/src/hooks/use-empty.d.ts +4 -0
- package/packages/components/empty/src/type.d.ts +34 -0
- package/packages/components/empty/style.css +1 -0
- package/packages/components/empty/theme/index.d.ts +9 -0
- package/packages/components/error-overlay-model/index.d.ts +6 -0
- package/packages/components/error-overlay-model/index.js +87 -0
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/error-overlay-model/src/index.vue.d.ts +7 -0
- package/packages/components/error-overlay-model/src/type.d.ts +13 -0
- package/packages/components/form/index.d.ts +252 -0
- package/packages/components/form/index.js +99 -0
- package/packages/components/form/index.js.gz +0 -0
- package/packages/components/form/src/Index.vue.d.ts +48 -0
- package/packages/components/form/src/type.d.ts +40 -0
- package/packages/components/form/style.css +1 -0
- package/packages/components/form-item/index.js +1829 -0
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/hooks/use-error.d.ts +17 -0
- package/packages/components/form-item/src/hooks/use-form.d.ts +19 -0
- package/packages/components/form-item/src/hooks/use-showComponent.d.ts +4 -0
- package/packages/components/form-item/src/hooks/useFormLabelWidth.d.ts +6 -0
- package/packages/components/form-item/src/hooks/useFormRules.d.ts +1 -0
- package/packages/components/form-item/src/type.d.ts +183 -0
- package/packages/components/form-item/style.css +1 -0
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/form-item/theme/index.d.ts +12 -0
- package/packages/components/icon/index.d.ts +9 -0
- package/packages/components/icon/index.js +421 -0
- package/packages/components/icon/index.js.gz +0 -0
- package/packages/components/icon/src/App.vue.d.ts +7 -0
- package/packages/components/icon/src/base-icon.vue.d.ts +29 -0
- package/packages/components/icon/src/type.d.ts +10 -0
- package/packages/components/icon/style.css +1 -0
- package/packages/components/image-preview/index.d.ts +1 -0
- package/packages/components/image-preview/index.js +52 -0
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-preview/src/index.d.ts +19 -0
- package/packages/components/image-upload/i18n/index.d.ts +38 -0
- package/packages/components/image-upload/index.d.ts +17 -0
- package/packages/components/image-upload/index.js +226 -0
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/Index.vue.d.ts +17 -0
- package/packages/components/image-upload/src/hooks/use-calculateSize.d.ts +6 -0
- package/packages/components/image-upload/src/hooks/use-imageUpload.d.ts +8 -0
- package/packages/components/image-upload/src/type.d.ts +43 -0
- package/packages/components/image-upload/style.css +1 -0
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-upload/theme/index.d.ts +18 -0
- package/packages/components/image-viewer/index.d.ts +44 -0
- package/packages/components/image-viewer/index.js +732 -0
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +43 -0
- package/packages/components/image-viewer/src/hooks/minioUpload.d.ts +4 -0
- package/packages/components/image-viewer/src/hooks/use-calculateSize.d.ts +6 -0
- package/packages/components/image-viewer/src/hooks/use-download-file.d.ts +1 -0
- package/packages/components/image-viewer/src/hooks/use-handler-image-src.d.ts +5 -0
- package/packages/components/image-viewer/src/hooks/use-handler-url-name.d.ts +3 -0
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +22 -0
- package/packages/components/image-viewer/src/hooks/useDownloadImg.d.ts +1 -0
- package/packages/components/image-viewer/src/type.d.ts +130 -0
- package/packages/components/image-viewer/src/use-micro-app-image-viewer/index.d.ts +10 -0
- package/packages/components/image-viewer/style.css +1 -0
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/image-viewer/theme/index.d.ts +12 -0
- package/packages/components/index.d.ts +72 -0
- package/packages/components/index.js +72 -0
- package/packages/components/input/i18n/index.d.ts +18 -0
- package/packages/components/input/index.d.ts +124 -0
- package/packages/components/input/index.js +301 -0
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +49 -0
- package/packages/components/input/src/type.d.ts +71 -0
- package/packages/components/input/style.css +1 -0
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input/theme/base.d.ts +19 -0
- package/packages/components/input/utils/unit.d.ts +12 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +13 -0
- package/packages/components/input-dialog-select/index.d.ts +30 -0
- package/packages/components/input-dialog-select/index.js +239 -0
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +30 -0
- package/packages/components/input-dialog-select/src/type.d.ts +69 -0
- package/packages/components/input-dialog-select/style.css +1 -0
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-dialog-select/theme/index.d.ts +17 -0
- package/packages/components/input-number/index.d.ts +131 -0
- package/packages/components/input-number/index.js +260 -0
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +30 -0
- package/packages/components/input-number/src/type.d.ts +53 -0
- package/packages/components/input-number/style.css +1 -0
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/input-number/theme/index.d.ts +12 -0
- package/packages/components/live-player/i18n/index.d.ts +13 -0
- package/packages/components/live-player/index.d.ts +174 -0
- package/packages/components/live-player/index.js +4461 -0
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/src/das-live-player.vue.d.ts +44 -0
- package/packages/components/live-player/src/type.d.ts +36 -0
- package/packages/components/live-player/style.css +1 -0
- package/packages/components/loading/i18n/index.d.ts +8 -0
- package/packages/components/loading/index.d.ts +9 -0
- package/packages/components/loading/index.js +331 -0
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/loading/src/components/ComponentLoad.vue.d.ts +2 -0
- package/packages/components/loading/src/components/ContainerLoad.vue.d.ts +2 -0
- package/packages/components/loading/src/components/PageLoad.vue.d.ts +2 -0
- package/packages/components/loading/src/directive.d.ts +14 -0
- package/packages/components/loading/src/hooks/index.d.ts +3 -0
- package/packages/components/loading/src/hooks/use-global-config.d.ts +25 -0
- package/packages/components/loading/src/hooks/use-namespace.d.ts +23 -0
- package/packages/components/loading/src/hooks/use-z-index.d.ts +9 -0
- package/packages/components/loading/src/loading.d.ts +26 -0
- package/packages/components/loading/src/service.d.ts +3 -0
- package/packages/components/loading/src/type.d.ts +42 -0
- package/packages/components/loading/src/utils/dom/index.d.ts +1 -0
- package/packages/components/loading/src/utils/dom/style.d.ts +9 -0
- package/packages/components/loading/src/utils/error.d.ts +3 -0
- package/packages/components/loading/src/utils/index.d.ts +3 -0
- package/packages/components/loading/src/utils/tool.d.ts +12 -0
- package/packages/components/loading/src/utils/types.d.ts +10 -0
- package/packages/components/loading/style.css +1 -0
- package/packages/components/loading/style.css.gz +0 -0
- package/packages/components/loading/theme/index.d.ts +9 -0
- package/packages/components/map/i18n/index.d.ts +33 -0
- package/packages/components/map/index.d.ts +165 -0
- package/packages/components/map/index.js +1894 -0
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/src/apis.d.ts +4 -0
- package/packages/components/map/src/baiduMap.vue.d.ts +11 -0
- package/packages/components/map/src/constant.d.ts +3 -0
- package/packages/components/map/src/gaodeMap.vue.d.ts +12 -0
- package/packages/components/map/src/get-sdk-config.d.ts +1 -0
- package/packages/components/map/src/hooks/use-baidu.d.ts +14 -0
- package/packages/components/map/src/hooks/use-gaode.d.ts +14 -0
- package/packages/components/map/src/hooks/use-google.d.ts +16 -0
- package/packages/components/map/src/hooks/use-map.d.ts +15 -0
- package/packages/components/map/src/mixMap.vue.d.ts +11 -0
- package/packages/components/map/src/plugins/index.d.ts +1 -0
- package/packages/components/map/src/plugins/use-plugins.d.ts +4 -0
- package/packages/components/map/src/type.d.ts +75 -0
- package/packages/components/map/src/utils.d.ts +6 -0
- package/packages/components/map/style.css +1 -0
- package/packages/components/menu-aside/i18n/index.d.ts +8 -0
- package/packages/components/menu-aside/index.d.ts +73 -0
- package/packages/components/menu-aside/index.js +1659 -0
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/Index.vue.d.ts +33 -0
- package/packages/components/menu-aside/src/menu-icon.vue.d.ts +9 -0
- package/packages/components/menu-aside/src/style-theme.d.ts +98 -0
- package/packages/components/menu-aside/src/sub-menu/sub-menu.vue.d.ts +26 -0
- package/packages/components/menu-aside/src/sub-menu/type.d.ts +27 -0
- package/packages/components/menu-aside/src/sub-menu/use-sub-menu.d.ts +5 -0
- package/packages/components/menu-aside/src/type.d.ts +46 -0
- package/packages/components/menu-aside/src/use-aside-menu.d.ts +10 -0
- package/packages/components/menu-aside/src/utils.d.ts +14 -0
- package/packages/components/menu-aside/style.css +1 -0
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-aside/theme/base.d.ts +27 -0
- package/packages/components/menu-header/index.d.ts +51 -0
- package/packages/components/menu-header/index.js +159 -0
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/Index.vue.d.ts +22 -0
- package/packages/components/menu-header/src/style-theme.d.ts +48 -0
- package/packages/components/menu-header/src/type.d.ts +9 -0
- package/packages/components/menu-header/src/use-layout-header.d.ts +4 -0
- package/packages/components/menu-header/style.css +1 -0
- package/packages/components/menu-header/style.css.gz +0 -0
- package/packages/components/menu-header/theme/base.d.ts +12 -0
- package/packages/components/message/i18n/index.d.ts +8 -0
- package/packages/components/message/index.d.ts +6 -0
- package/packages/components/message/index.js +108 -0
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/message/src/message.d.ts +5 -0
- package/packages/components/message/src/type.d.ts +6 -0
- package/packages/components/message/style.css +1 -0
- package/packages/components/message/style.css.gz +0 -0
- package/packages/components/message/theme/index.d.ts +24 -0
- package/packages/components/notification/i18n/index.d.ts +8 -0
- package/packages/components/notification/index.d.ts +6 -0
- package/packages/components/notification/index.js +66 -0
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/notification/src/notification.d.ts +64 -0
- package/packages/components/notification/src/type.d.ts +6 -0
- package/packages/components/notification/style.css +1 -0
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/notification/theme/index.d.ts +10 -0
- package/packages/components/overlay/index.d.ts +4 -0
- package/packages/components/overlay/index.js +671 -0
- package/packages/components/overlay/index.js.gz +0 -0
- package/packages/components/overlay/src/index.d.ts +15 -0
- package/packages/components/pagination/i18n/index.d.ts +23 -0
- package/packages/components/pagination/index.d.ts +305 -0
- package/packages/components/pagination/index.js +342 -0
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/src/Pagination.vue.d.ts +118 -0
- package/packages/components/pagination/src/components/index.d.ts +83 -0
- package/packages/components/pagination/src/components/sizes.vue.d.ts +21 -0
- package/packages/components/pagination/src/components/totalPage.vue.d.ts +8 -0
- package/packages/components/pagination/src/type.d.ts +57 -0
- package/packages/components/pagination/style.css +1 -0
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/pagination/theme/index.d.ts +9 -0
- package/packages/components/popover/i18n/index.d.ts +13 -0
- package/packages/components/popover/index.d.ts +217 -0
- package/packages/components/popover/index.js +110 -0
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popover/src/Index.vue.d.ts +61 -0
- package/packages/components/popover/src/type.d.ts +50 -0
- package/packages/components/popover/style.css +1 -0
- package/packages/components/popover/style.css.gz +0 -0
- package/packages/components/popup-mask/index.d.ts +232 -0
- package/packages/components/popup-mask/index.js +111 -0
- package/packages/components/popup-mask/index.js.gz +0 -0
- package/packages/components/popup-mask/src/Index.vue.d.ts +66 -0
- package/packages/components/popup-mask/src/type.d.ts +28 -0
- package/packages/components/popup-mask/style.css +1 -0
- package/packages/components/preview/i18n/index.d.ts +8 -0
- package/packages/components/preview/index.d.ts +34 -0
- package/packages/components/preview/index.js +63 -0
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/preview/src/Index.vue.d.ts +30 -0
- package/packages/components/preview/src/hooks/use-preview.d.ts +4 -0
- package/packages/components/preview/src/type.d.ts +19 -0
- package/packages/components/preview/style.css +1 -0
- package/packages/components/progress/index.d.ts +63 -0
- package/packages/components/progress/index.js +304 -0
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/src/Index.vue.d.ts +75 -0
- package/packages/components/progress/src/type.d.ts +43 -0
- package/packages/components/progress/style.css +1 -0
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/progress/theme/index.d.ts +10 -0
- package/packages/components/radio/index.d.ts +259 -0
- package/packages/components/radio/index.js +390 -0
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/src/Index.vue.d.ts +91 -0
- package/packages/components/radio/src/type.d.ts +43 -0
- package/packages/components/radio/style.css +1 -0
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/radio/theme/index.d.ts +15 -0
- package/packages/components/radio-tabs/index.d.ts +115 -0
- package/packages/components/radio-tabs/index.js +171 -0
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/src/Index.vue.d.ts +31 -0
- package/packages/components/radio-tabs/src/type.d.ts +18 -0
- package/packages/components/radio-tabs/style.css +1 -0
- package/packages/components/radio-tabs/style.css.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +23 -0
- package/packages/components/rich-editor/index.d.ts +111 -0
- package/packages/components/rich-editor/index.js +28585 -0
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/Index.vue.d.ts +28 -0
- package/packages/components/rich-editor/src/hooks/use-custom-menu.d.ts +9 -0
- package/packages/components/rich-editor/src/hooks/use-rich-editor.d.ts +22 -0
- package/packages/components/rich-editor/src/type.d.ts +93 -0
- package/packages/components/rich-editor/src/utils/htmlTool.d.ts +34 -0
- package/packages/components/rich-editor/src/utils/unit.d.ts +12 -0
- package/packages/components/rich-editor/style.css +1 -0
- package/packages/components/rich-editor/style.css.gz +0 -0
- package/packages/components/rich-editor/theme/base.d.ts +4 -0
- package/packages/components/scrollbar/index.d.ts +29 -0
- package/packages/components/scrollbar/index.js +1429 -0
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/src/hooks/use-observer.d.ts +4 -0
- package/packages/components/scrollbar/src/index.d.ts +5 -0
- package/packages/components/scrollbar/src/scrollbar.vue.d.ts +33 -0
- package/packages/components/scrollbar/src/type.d.ts +4 -0
- package/packages/components/scrollbar/style.css +9 -0
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +22 -0
- package/packages/components/search/index.js +168 -0
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +23 -0
- package/packages/components/search/src/type.d.ts +42 -0
- package/packages/components/search/style.css +1 -0
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search/theme/index.d.ts +11 -0
- package/packages/components/search-form/i18n/index.d.ts +38 -0
- package/packages/components/search-form/index.js +1625 -0
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +149 -0
- package/packages/components/search-form/src/InputSelect.vue.d.ts +35 -0
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +29 -0
- package/packages/components/search-form/src/hooks/common.d.ts +2 -0
- package/packages/components/search-form/src/hooks/searchFormItem.d.ts +72 -0
- package/packages/components/search-form/src/hooks/use-select-daterange.d.ts +8 -0
- package/packages/components/search-form/src/hooks/useInputSelect.d.ts +5 -0
- package/packages/components/search-form/src/type.d.ts +114 -0
- package/packages/components/search-form/style.css +1 -0
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/search-form/theme/index.d.ts +13 -0
- package/packages/components/select/i18n/index.d.ts +23 -0
- package/packages/components/select/index.d.ts +185 -0
- package/packages/components/select/index.js +743 -0
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +80 -0
- package/packages/components/select/src/SelectOption.vue.d.ts +2 -0
- package/packages/components/select/src/type.d.ts +83 -0
- package/packages/components/select/style.css +1 -0
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select/theme/base.d.ts +27 -0
- package/packages/components/select-input/index.d.ts +26 -0
- package/packages/components/select-input/index.js +138 -0
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +25 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +15 -0
- package/packages/components/select-input/src/type.d.ts +59 -0
- package/packages/components/select-input/style.css +1 -0
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/select-input/theme/index.d.ts +9 -0
- package/packages/components/select-list/i18n/index.d.ts +23 -0
- package/packages/components/select-list/index.d.ts +116 -0
- package/packages/components/select-list/index.js +2370 -0
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/src/Index.vue.d.ts +119 -0
- package/packages/components/select-list/src/hooks/use-drag.d.ts +5 -0
- package/packages/components/select-list/src/hooks/use-select-list.d.ts +14 -0
- package/packages/components/select-list/src/type.d.ts +104 -0
- package/packages/components/select-list/style.css +1 -0
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/select-list/theme/index.d.ts +11 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +23 -0
- package/packages/components/special-range-picker-month/index.d.ts +23 -0
- package/packages/components/special-range-picker-month/index.js +413 -0
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/src/Index.vue.d.ts +22 -0
- package/packages/components/special-range-picker-month/src/hooks/use-date-popover.d.ts +21 -0
- package/packages/components/special-range-picker-month/src/hooks/use-date.d.ts +4 -0
- package/packages/components/special-range-picker-month/src/hooks/use-error.d.ts +18 -0
- package/packages/components/special-range-picker-month/src/type.d.ts +49 -0
- package/packages/components/special-range-picker-month/style.css +1 -0
- package/packages/components/special-range-picker-month/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/theme/index.d.ts +48 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +18 -0
- package/packages/components/special-range-picker-year/index.d.ts +23 -0
- package/packages/components/special-range-picker-year/index.js +534 -0
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/src/Index.vue.d.ts +23 -0
- package/packages/components/special-range-picker-year/src/hooks/use-date-popover.d.ts +21 -0
- package/packages/components/special-range-picker-year/src/hooks/use-date.d.ts +4 -0
- package/packages/components/special-range-picker-year/src/hooks/use-error.d.ts +18 -0
- package/packages/components/special-range-picker-year/src/type.d.ts +53 -0
- package/packages/components/special-range-picker-year/style.css +1 -0
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/theme/index.d.ts +48 -0
- package/packages/components/spin/i18n/index.d.ts +8 -0
- package/packages/components/spin/index.d.ts +41 -0
- package/packages/components/spin/index.js +102 -0
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/spin/src/components/ComponentLoad/index.vue.d.ts +2 -0
- package/packages/components/spin/src/components/ContainerLoad/index.vue.d.ts +2 -0
- package/packages/components/spin/src/components/PageLoad/index.vue.d.ts +2 -0
- package/packages/components/spin/src/index.vue.d.ts +33 -0
- package/packages/components/spin/src/type.d.ts +17 -0
- package/packages/components/spin/style.css +1 -0
- package/packages/components/spin/style.css.gz +0 -0
- package/packages/components/spin/theme/index.d.ts +9 -0
- package/packages/components/split-panel/index.d.ts +292 -0
- package/packages/components/split-panel/index.js +471 -0
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/split-panel/src/Index.vue.d.ts +37 -0
- package/packages/components/split-panel/src/type.d.ts +16 -0
- package/packages/components/split-panel/style.css +1 -0
- package/packages/components/split-panel/style.css.gz +0 -0
- package/packages/components/split-panel/theme/base.d.ts +6 -0
- package/packages/components/step/index.js +54 -0
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/step/src/stepItem.vue.d.ts +36 -0
- package/packages/components/step/src/type.d.ts +53 -0
- package/packages/components/step/style.css +1 -0
- package/packages/components/step/theme/base.d.ts +9 -0
- package/packages/components/steps/index.d.ts +19 -0
- package/packages/components/steps/index.js +37 -0
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/steps/src/steps.vue.d.ts +18 -0
- package/packages/components/steps/style.css +1 -0
- package/packages/components/steps/style.css.gz +0 -0
- package/packages/components/steps/theme/base.d.ts +9 -0
- package/packages/components/switch/index.d.ts +14 -0
- package/packages/components/switch/index.js +49 -0
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/switch/src/Index.vue.d.ts +14 -0
- package/packages/components/switch/src/type.d.ts +50 -0
- package/packages/components/switch/style.css +1 -0
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/switch/theme/base.d.ts +7 -0
- package/packages/components/table/i18n/index.d.ts +103 -0
- package/packages/components/table/index.d.ts +7208 -0
- package/packages/components/table/index.js +7545 -0
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +2126 -0
- package/packages/components/table/src/filter-pane/filterPane.vue.d.ts +26 -0
- package/packages/components/table/src/filter-pane/type.d.ts +41 -0
- package/packages/components/table/src/hooks/use-high-performance.d.ts +6 -0
- package/packages/components/table/src/hooks/use-operation.d.ts +78 -0
- package/packages/components/table/src/hooks/use-setStyle.d.ts +7 -0
- package/packages/components/table/src/hooks/use-tree-check.d.ts +10 -0
- package/packages/components/table/src/hooks/useDrag.d.ts +10 -0
- package/packages/components/table/src/key.d.ts +1 -0
- package/packages/components/table/src/table-column/index.vue.d.ts +457 -0
- package/packages/components/table/src/table-column/type.d.ts +84 -0
- package/packages/components/table/src/type.d.ts +321 -0
- package/packages/components/table/src/v-loadmore.d.ts +2 -0
- package/packages/components/table/style.css +1 -0
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/table/theme/index.d.ts +21 -0
- package/packages/components/tabs/i18n/index.d.ts +18 -0
- package/packages/components/tabs/index.d.ts +84 -0
- package/packages/components/tabs/index.js +386 -0
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/src/Tabs.vue.d.ts +106 -0
- package/packages/components/tabs/src/hooks/use-tabs.d.ts +12 -0
- package/packages/components/tabs/src/style-theme.d.ts +13 -0
- package/packages/components/tabs/src/type.d.ts +102 -0
- package/packages/components/tabs/src/utils.d.ts +12 -0
- package/packages/components/tabs/style.css +1 -0
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tabs/theme/base.d.ts +13 -0
- package/packages/components/tag/index.d.ts +49 -0
- package/packages/components/tag/index.js +146 -0
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/tag/src/Index.vue.d.ts +22 -0
- package/packages/components/tag/src/type.d.ts +27 -0
- package/packages/components/tag/style.css +1 -0
- package/packages/components/tag/style.css.gz +0 -0
- package/packages/components/tag/theme/base.d.ts +29 -0
- package/packages/components/text-tooltip/index.d.ts +3 -0
- package/packages/components/text-tooltip/index.js +1478 -0
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/tooltip.d.ts +4 -0
- package/packages/components/text-tooltip/src/type.d.ts +4 -0
- package/packages/components/text-tooltip/style.css +9 -0
- package/packages/components/text-tooltip/style.css.gz +0 -0
- package/packages/components/text-tooltip/theme/index.d.ts +10 -0
- package/packages/components/time-line/index.js +137 -0
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/time-line/src/Index.vue.d.ts +28 -0
- package/packages/components/time-line/src/TimelineItem.vue.d.ts +46 -0
- package/packages/components/time-line/src/type.d.ts +21 -0
- package/packages/components/time-line/style.css +1 -0
- package/packages/components/time-line/style.css.gz +0 -0
- package/packages/components/time-line/theme/index.d.ts +7 -0
- package/packages/components/tooltip/i18n/index.d.ts +8 -0
- package/packages/components/tooltip/index.d.ts +270 -0
- package/packages/components/tooltip/index.js +145 -0
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/src/index.vue.d.ts +75 -0
- package/packages/components/tooltip/src/type.d.ts +53 -0
- package/packages/components/tooltip/style.css +1 -0
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tooltip/theme/index.d.ts +6 -0
- package/packages/components/tree/i18n/index.d.ts +48 -0
- package/packages/components/tree/index.js +2601 -0
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +1576 -0
- package/packages/components/tree/src/empty.vue.d.ts +17 -0
- package/packages/components/tree/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +16 -0
- package/packages/components/tree/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree/src/type.d.ts +290 -0
- package/packages/components/tree/src/utils.d.ts +18 -0
- package/packages/components/tree/style.css +1 -0
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree/theme/base.d.ts +16 -0
- package/packages/components/tree-select/index.js +588 -0
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +6773 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +6751 -0
- package/packages/components/tree-select/src/type.d.ts +106 -0
- package/packages/components/tree-select/src/utils.d.ts +12 -0
- package/packages/components/tree-select/style.css +1 -0
- package/packages/components/tree-select/style.css.gz +0 -0
- package/packages/components/tree-select/theme/base.d.ts +5 -0
- package/packages/components/tree-table/index.d.ts +460 -0
- package/packages/components/tree-table/index.js +532 -0
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/App.vue.d.ts +79 -0
- package/packages/components/tree-table/src/hooks/use-first.d.ts +4 -0
- package/packages/components/tree-table/src/hooks/use-three.d.ts +4 -0
- package/packages/components/tree-table/src/hooks/use-two.d.ts +4 -0
- package/packages/components/tree-table/src/type.d.ts +129 -0
- package/packages/components/tree-table/style.css +1 -0
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/tree-table/theme/base.d.ts +7 -0
- package/packages/components/tree-v2/i18n/index.d.ts +36 -0
- package/packages/components/tree-v2/index.d.ts +554 -0
- package/packages/components/tree-v2/index.js +4684 -0
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +88 -0
- package/packages/components/tree-v2/src/empty.vue.d.ts +17 -0
- package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree-v2/src/hooks/use-drag.d.ts +3 -0
- package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree-v2/src/type.d.ts +286 -0
- package/packages/components/tree-v2/src/utils.d.ts +18 -0
- package/packages/components/tree-v2/style.css +1 -0
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +16 -0
- package/packages/components/upload/i18n/index.d.ts +33 -0
- package/packages/components/upload/index.d.ts +74 -0
- package/packages/components/upload/index.js +304 -0
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/src/Index.vue.d.ts +81 -0
- package/packages/components/upload/src/hook/use-calculateSize.d.ts +1 -0
- package/packages/components/upload/src/hook/use-upload.d.ts +12 -0
- package/packages/components/upload/src/type.d.ts +72 -0
- package/packages/components/upload/style.css +1 -0
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/upload/theme/index.d.ts +13 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +8 -0
- package/packages/components/virtual-tree/index.js +194 -0
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +3973 -0
- package/packages/components/virtual-tree/src/type.d.ts +43 -0
- package/packages/components/virtual-tree/style.css +1 -0
- package/packages/components/virtual-tree/style.css.gz +0 -0
- package/packages/components/watermark/index.d.ts +22 -0
- package/packages/components/watermark/index.js +32 -0
- package/packages/components/watermark/src/index.vue.d.ts +18 -0
- package/packages/components/watermark/style.css +1 -0
- package/packages/global/style/index.js +5 -0
- package/packages/global/style/style.css +1 -0
- package/packages/global/theme/index.js +42 -0
- package/packages/global/theme/index.js.gz +0 -0
- package/packages/icons/1-grids/index.d.ts +1 -0
- package/packages/icons/1-grids/index.js +17 -0
- package/packages/icons/1-grids/index.js.gz +0 -0
- package/packages/icons/1-grids/index.vue.d.ts +19 -0
- package/packages/icons/4-grids/index.d.ts +1 -0
- package/packages/icons/4-grids/index.js +17 -0
- package/packages/icons/4-grids/index.js.gz +0 -0
- package/packages/icons/4-grids/index.vue.d.ts +19 -0
- package/packages/icons/9-grids/index.d.ts +1 -0
- package/packages/icons/9-grids/index.js +17 -0
- package/packages/icons/9-grids/index.js.gz +0 -0
- package/packages/icons/9-grids/index.vue.d.ts +19 -0
- package/packages/icons/add/index.d.ts +1 -0
- package/packages/icons/add/index.js +17 -0
- package/packages/icons/add/index.js.gz +0 -0
- package/packages/icons/add/index.vue.d.ts +19 -0
- package/packages/icons/add-2/index.d.ts +1 -0
- package/packages/icons/add-2/index.js +17 -0
- package/packages/icons/add-2/index.vue.d.ts +19 -0
- package/packages/icons/add-item/index.d.ts +1 -0
- package/packages/icons/add-item/index.js +17 -0
- package/packages/icons/add-item/index.js.gz +0 -0
- package/packages/icons/add-item/index.vue.d.ts +19 -0
- package/packages/icons/addto/index.d.ts +1 -0
- package/packages/icons/addto/index.js +17 -0
- package/packages/icons/addto/index.js.gz +0 -0
- package/packages/icons/addto/index.vue.d.ts +19 -0
- package/packages/icons/alarm/index.d.ts +1 -0
- package/packages/icons/alarm/index.js +17 -0
- package/packages/icons/alarm/index.js.gz +0 -0
- package/packages/icons/alarm/index.vue.d.ts +19 -0
- package/packages/icons/arrow-first/index.d.ts +1 -0
- package/packages/icons/arrow-first/index.js +17 -0
- package/packages/icons/arrow-first/index.js.gz +0 -0
- package/packages/icons/arrow-first/index.vue.d.ts +19 -0
- package/packages/icons/arrow-last/index.d.ts +1 -0
- package/packages/icons/arrow-last/index.js +17 -0
- package/packages/icons/arrow-last/index.js.gz +0 -0
- package/packages/icons/arrow-last/index.vue.d.ts +19 -0
- package/packages/icons/audioing/index.d.ts +1 -0
- package/packages/icons/audioing/index.js +17 -0
- package/packages/icons/audioing/index.js.gz +0 -0
- package/packages/icons/audioing/index.vue.d.ts +19 -0
- package/packages/icons/back/index.d.ts +1 -0
- package/packages/icons/back/index.js +17 -0
- package/packages/icons/back/index.js.gz +0 -0
- package/packages/icons/back/index.vue.d.ts +19 -0
- package/packages/icons/bianjigongzuotai/index.d.ts +1 -0
- package/packages/icons/bianjigongzuotai/index.js +17 -0
- package/packages/icons/bianjigongzuotai/index.js.gz +0 -0
- package/packages/icons/bianjigongzuotai/index.vue.d.ts +19 -0
- package/packages/icons/biaochi/index.d.ts +1 -0
- package/packages/icons/biaochi/index.js +17 -0
- package/packages/icons/biaochi/index.js.gz +0 -0
- package/packages/icons/biaochi/index.vue.d.ts +19 -0
- package/packages/icons/bim/index.d.ts +1 -0
- package/packages/icons/bim/index.js +17 -0
- package/packages/icons/bim/index.js.gz +0 -0
- package/packages/icons/bim/index.vue.d.ts +19 -0
- package/packages/icons/bobaoguanbi/index.d.ts +1 -0
- package/packages/icons/bobaoguanbi/index.js +17 -0
- package/packages/icons/bobaoguanbi/index.js.gz +0 -0
- package/packages/icons/bobaoguanbi/index.vue.d.ts +19 -0
- package/packages/icons/bobaokaiqi/index.d.ts +1 -0
- package/packages/icons/bobaokaiqi/index.js +17 -0
- package/packages/icons/bobaokaiqi/index.js.gz +0 -0
- package/packages/icons/bobaokaiqi/index.vue.d.ts +19 -0
- package/packages/icons/bold/index.d.ts +1 -0
- package/packages/icons/bold/index.js +17 -0
- package/packages/icons/bold/index.js.gz +0 -0
- package/packages/icons/bold/index.vue.d.ts +19 -0
- package/packages/icons/camera/index.d.ts +1 -0
- package/packages/icons/camera/index.js +17 -0
- package/packages/icons/camera/index.js.gz +0 -0
- package/packages/icons/camera/index.vue.d.ts +19 -0
- package/packages/icons/camera-2/index.d.ts +1 -0
- package/packages/icons/camera-2/index.js +17 -0
- package/packages/icons/camera-2/index.js.gz +0 -0
- package/packages/icons/camera-2/index.vue.d.ts +19 -0
- package/packages/icons/camera-3/index.d.ts +1 -0
- package/packages/icons/camera-3/index.js +17 -0
- package/packages/icons/camera-3/index.js.gz +0 -0
- package/packages/icons/camera-3/index.vue.d.ts +19 -0
- package/packages/icons/cancel-full-screen/index.d.ts +1 -0
- package/packages/icons/cancel-full-screen/index.js +17 -0
- package/packages/icons/cancel-full-screen/index.js.gz +0 -0
- package/packages/icons/cancel-full-screen/index.vue.d.ts +19 -0
- package/packages/icons/cankaoneirong/index.d.ts +1 -0
- package/packages/icons/cankaoneirong/index.js +22 -0
- package/packages/icons/cankaoneirong/index.js.gz +0 -0
- package/packages/icons/cankaoneirong/index.vue.d.ts +19 -0
- package/packages/icons/card/index.d.ts +1 -0
- package/packages/icons/card/index.js +17 -0
- package/packages/icons/card/index.js.gz +0 -0
- package/packages/icons/card/index.vue.d.ts +19 -0
- package/packages/icons/card-view/index.d.ts +1 -0
- package/packages/icons/card-view/index.js +17 -0
- package/packages/icons/card-view/index.js.gz +0 -0
- package/packages/icons/card-view/index.vue.d.ts +19 -0
- package/packages/icons/caret-bottom/index.d.ts +1 -0
- package/packages/icons/caret-bottom/index.js +30 -0
- package/packages/icons/caret-bottom/index.js.gz +0 -0
- package/packages/icons/caret-bottom/index.vue.d.ts +19 -0
- package/packages/icons/caret-right/index.d.ts +1 -0
- package/packages/icons/caret-right/index.js +17 -0
- package/packages/icons/caret-right/index.js.gz +0 -0
- package/packages/icons/caret-right/index.vue.d.ts +19 -0
- package/packages/icons/chakancelve/index.d.ts +1 -0
- package/packages/icons/chakancelve/index.js +17 -0
- package/packages/icons/chakancelve/index.js.gz +0 -0
- package/packages/icons/chakancelve/index.vue.d.ts +19 -0
- package/packages/icons/change/index.d.ts +1 -0
- package/packages/icons/change/index.js +29 -0
- package/packages/icons/change/index.js.gz +0 -0
- package/packages/icons/change/index.vue.d.ts +19 -0
- package/packages/icons/change-2/index.d.ts +1 -0
- package/packages/icons/change-2/index.js +17 -0
- package/packages/icons/change-2/index.js.gz +0 -0
- package/packages/icons/change-2/index.vue.d.ts +19 -0
- package/packages/icons/change-3/index.d.ts +1 -0
- package/packages/icons/change-3/index.js +17 -0
- package/packages/icons/change-3/index.js.gz +0 -0
- package/packages/icons/change-3/index.vue.d.ts +19 -0
- package/packages/icons/changetenant/index.d.ts +1 -0
- package/packages/icons/changetenant/index.js +17 -0
- package/packages/icons/changetenant/index.js.gz +0 -0
- package/packages/icons/changetenant/index.vue.d.ts +19 -0
- package/packages/icons/chart/index.d.ts +1 -0
- package/packages/icons/chart/index.js +17 -0
- package/packages/icons/chart/index.js.gz +0 -0
- package/packages/icons/chart/index.vue.d.ts +19 -0
- package/packages/icons/chaxunxiangqing/index.d.ts +1 -0
- package/packages/icons/chaxunxiangqing/index.js +17 -0
- package/packages/icons/chaxunxiangqing/index.js.gz +0 -0
- package/packages/icons/chaxunxiangqing/index.vue.d.ts +19 -0
- package/packages/icons/check/index.d.ts +1 -0
- package/packages/icons/check/index.js +25 -0
- package/packages/icons/check/index.js.gz +0 -0
- package/packages/icons/check/index.vue.d.ts +19 -0
- package/packages/icons/chuanglianjiang/index.d.ts +1 -0
- package/packages/icons/chuanglianjiang/index.js +26 -0
- package/packages/icons/chuanglianjiang/index.js.gz +0 -0
- package/packages/icons/chuanglianjiang/index.vue.d.ts +19 -0
- package/packages/icons/chuangliansheng/index.d.ts +1 -0
- package/packages/icons/chuangliansheng/index.js +27 -0
- package/packages/icons/chuangliansheng/index.js.gz +0 -0
- package/packages/icons/chuangliansheng/index.vue.d.ts +19 -0
- package/packages/icons/chuanglianting/index.d.ts +1 -0
- package/packages/icons/chuanglianting/index.js +27 -0
- package/packages/icons/chuanglianting/index.js.gz +0 -0
- package/packages/icons/chuanglianting/index.vue.d.ts +19 -0
- package/packages/icons/chuizhiduiqi/index.d.ts +1 -0
- package/packages/icons/chuizhiduiqi/index.js +17 -0
- package/packages/icons/chuizhiduiqi/index.js.gz +0 -0
- package/packages/icons/chuizhiduiqi/index.vue.d.ts +19 -0
- package/packages/icons/chuizhijunfen/index.d.ts +1 -0
- package/packages/icons/chuizhijunfen/index.js +17 -0
- package/packages/icons/chuizhijunfen/index.js.gz +0 -0
- package/packages/icons/chuizhijunfen/index.vue.d.ts +19 -0
- package/packages/icons/close/index.d.ts +1 -0
- package/packages/icons/close/index.js +28 -0
- package/packages/icons/close/index.js.gz +0 -0
- package/packages/icons/close/index.vue.d.ts +19 -0
- package/packages/icons/close-2/index.d.ts +1 -0
- package/packages/icons/close-2/index.js +17 -0
- package/packages/icons/close-2/index.js.gz +0 -0
- package/packages/icons/close-2/index.vue.d.ts +19 -0
- package/packages/icons/closeaudio/index.d.ts +1 -0
- package/packages/icons/closeaudio/index.js +17 -0
- package/packages/icons/closeaudio/index.js.gz +0 -0
- package/packages/icons/closeaudio/index.vue.d.ts +19 -0
- package/packages/icons/color/index.d.ts +1 -0
- package/packages/icons/color/index.js +17 -0
- package/packages/icons/color/index.js.gz +0 -0
- package/packages/icons/color/index.vue.d.ts +19 -0
- package/packages/icons/copy/index.d.ts +1 -0
- package/packages/icons/copy/index.js +17 -0
- package/packages/icons/copy/index.js.gz +0 -0
- package/packages/icons/copy/index.vue.d.ts +19 -0
- package/packages/icons/custom/index.d.ts +1 -0
- package/packages/icons/custom/index.js +23 -0
- package/packages/icons/custom/index.js.gz +0 -0
- package/packages/icons/custom/index.vue.d.ts +19 -0
- package/packages/icons/daochu/index.d.ts +1 -0
- package/packages/icons/daochu/index.js +17 -0
- package/packages/icons/daochu/index.js.gz +0 -0
- package/packages/icons/daochu/index.vue.d.ts +19 -0
- package/packages/icons/date/index.d.ts +1 -0
- package/packages/icons/date/index.js +23 -0
- package/packages/icons/date/index.js.gz +0 -0
- package/packages/icons/date/index.vue.d.ts +19 -0
- package/packages/icons/decline/index.d.ts +1 -0
- package/packages/icons/decline/index.js +17 -0
- package/packages/icons/decline/index.js.gz +0 -0
- package/packages/icons/decline/index.vue.d.ts +19 -0
- package/packages/icons/default-btn/index.d.ts +1 -0
- package/packages/icons/default-btn/index.js +17 -0
- package/packages/icons/default-btn/index.js.gz +0 -0
- package/packages/icons/default-btn/index.vue.d.ts +19 -0
- package/packages/icons/default-point/index.d.ts +1 -0
- package/packages/icons/default-point/index.js +17 -0
- package/packages/icons/default-point/index.js.gz +0 -0
- package/packages/icons/default-point/index.vue.d.ts +19 -0
- package/packages/icons/delete/index.d.ts +1 -0
- package/packages/icons/delete/index.js +17 -0
- package/packages/icons/delete/index.js.gz +0 -0
- package/packages/icons/delete/index.vue.d.ts +19 -0
- package/packages/icons/delete-2/index.d.ts +1 -0
- package/packages/icons/delete-2/index.js +17 -0
- package/packages/icons/delete-2/index.js.gz +0 -0
- package/packages/icons/delete-2/index.vue.d.ts +19 -0
- package/packages/icons/dengbijiesuo/index.d.ts +1 -0
- package/packages/icons/dengbijiesuo/index.js +17 -0
- package/packages/icons/dengbijiesuo/index.vue.d.ts +19 -0
- package/packages/icons/dengbisuoding/index.d.ts +1 -0
- package/packages/icons/dengbisuoding/index.js +17 -0
- package/packages/icons/dengbisuoding/index.vue.d.ts +19 -0
- package/packages/icons/dengdai/index.d.ts +1 -0
- package/packages/icons/dengdai/index.js +17 -0
- package/packages/icons/dengdai/index.js.gz +0 -0
- package/packages/icons/dengdai/index.vue.d.ts +19 -0
- package/packages/icons/dianzan/index.d.ts +1 -0
- package/packages/icons/dianzan/index.js +23 -0
- package/packages/icons/dianzan/index.js.gz +0 -0
- package/packages/icons/dianzan/index.vue.d.ts +19 -0
- package/packages/icons/dianzan-2/index.d.ts +1 -0
- package/packages/icons/dianzan-2/index.js +23 -0
- package/packages/icons/dianzan-2/index.js.gz +0 -0
- package/packages/icons/dianzan-2/index.vue.d.ts +19 -0
- package/packages/icons/direction-control/index.d.ts +1 -0
- package/packages/icons/direction-control/index.js +27 -0
- package/packages/icons/direction-control/index.js.gz +0 -0
- package/packages/icons/direction-control/index.vue.d.ts +19 -0
- package/packages/icons/ditu/index.d.ts +1 -0
- package/packages/icons/ditu/index.js +17 -0
- package/packages/icons/ditu/index.js.gz +0 -0
- package/packages/icons/ditu/index.vue.d.ts +19 -0
- package/packages/icons/dizhixuanze/index.d.ts +1 -0
- package/packages/icons/dizhixuanze/index.js +17 -0
- package/packages/icons/dizhixuanze/index.js.gz +0 -0
- package/packages/icons/dizhixuanze/index.vue.d.ts +19 -0
- package/packages/icons/double-arrow-left/index.d.ts +1 -0
- package/packages/icons/double-arrow-left/index.js +17 -0
- package/packages/icons/double-arrow-left/index.js.gz +0 -0
- package/packages/icons/double-arrow-left/index.vue.d.ts +19 -0
- package/packages/icons/double-arrow-right/index.d.ts +1 -0
- package/packages/icons/double-arrow-right/index.js +17 -0
- package/packages/icons/double-arrow-right/index.js.gz +0 -0
- package/packages/icons/double-arrow-right/index.vue.d.ts +19 -0
- package/packages/icons/down/index.d.ts +1 -0
- package/packages/icons/down/index.js +25 -0
- package/packages/icons/down/index.js.gz +0 -0
- package/packages/icons/down/index.vue.d.ts +19 -0
- package/packages/icons/down-2/index.d.ts +1 -0
- package/packages/icons/down-2/index.js +17 -0
- package/packages/icons/down-2/index.vue.d.ts +19 -0
- package/packages/icons/down-3/index.d.ts +1 -0
- package/packages/icons/down-3/index.js +24 -0
- package/packages/icons/down-3/index.vue.d.ts +19 -0
- package/packages/icons/download/index.d.ts +1 -0
- package/packages/icons/download/index.js +25 -0
- package/packages/icons/download/index.js.gz +0 -0
- package/packages/icons/download/index.vue.d.ts +19 -0
- package/packages/icons/drag/index.d.ts +1 -0
- package/packages/icons/drag/index.js +25 -0
- package/packages/icons/drag/index.js.gz +0 -0
- package/packages/icons/drag/index.vue.d.ts +19 -0
- package/packages/icons/drawing/index.d.ts +1 -0
- package/packages/icons/drawing/index.js +17 -0
- package/packages/icons/drawing/index.js.gz +0 -0
- package/packages/icons/drawing/index.vue.d.ts +19 -0
- package/packages/icons/edit/index.d.ts +1 -0
- package/packages/icons/edit/index.js +17 -0
- package/packages/icons/edit/index.js.gz +0 -0
- package/packages/icons/edit/index.vue.d.ts +19 -0
- package/packages/icons/edit-1/index.d.ts +1 -0
- package/packages/icons/edit-1/index.js +17 -0
- package/packages/icons/edit-1/index.js.gz +0 -0
- package/packages/icons/edit-1/index.vue.d.ts +19 -0
- package/packages/icons/edit-3/index.d.ts +1 -0
- package/packages/icons/edit-3/index.js +17 -0
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/edit-3/index.vue.d.ts +19 -0
- package/packages/icons/empty/index.d.ts +1 -0
- package/packages/icons/empty/index.js +17 -0
- package/packages/icons/empty/index.js.gz +0 -0
- package/packages/icons/empty/index.vue.d.ts +19 -0
- package/packages/icons/enlarge/index.d.ts +1 -0
- package/packages/icons/enlarge/index.js +34 -0
- package/packages/icons/enlarge/index.js.gz +0 -0
- package/packages/icons/enlarge/index.vue.d.ts +19 -0
- package/packages/icons/entry/index.d.ts +1 -0
- package/packages/icons/entry/index.js +25 -0
- package/packages/icons/entry/index.js.gz +0 -0
- package/packages/icons/entry/index.vue.d.ts +19 -0
- package/packages/icons/exit/index.d.ts +1 -0
- package/packages/icons/exit/index.js +17 -0
- package/packages/icons/exit/index.js.gz +0 -0
- package/packages/icons/exit/index.vue.d.ts +19 -0
- package/packages/icons/fabu/index.d.ts +1 -0
- package/packages/icons/fabu/index.js +17 -0
- package/packages/icons/fabu/index.js.gz +0 -0
- package/packages/icons/fabu/index.vue.d.ts +19 -0
- package/packages/icons/fanhui/index.d.ts +1 -0
- package/packages/icons/fanhui/index.js +17 -0
- package/packages/icons/fanhui/index.js.gz +0 -0
- package/packages/icons/fanhui/index.vue.d.ts +19 -0
- package/packages/icons/fasong/index.d.ts +1 -0
- package/packages/icons/fasong/index.js +22 -0
- package/packages/icons/fasong/index.js.gz +0 -0
- package/packages/icons/fasong/index.vue.d.ts +19 -0
- package/packages/icons/filter-3/index.d.ts +1 -0
- package/packages/icons/filter-3/index.js +17 -0
- package/packages/icons/filter-3/index.js.gz +0 -0
- package/packages/icons/filter-3/index.vue.d.ts +19 -0
- package/packages/icons/finish/index.d.ts +1 -0
- package/packages/icons/finish/index.js +25 -0
- package/packages/icons/finish/index.js.gz +0 -0
- package/packages/icons/finish/index.vue.d.ts +19 -0
- package/packages/icons/fold/index.d.ts +1 -0
- package/packages/icons/fold/index.js +17 -0
- package/packages/icons/fold/index.js.gz +0 -0
- package/packages/icons/fold/index.vue.d.ts +19 -0
- package/packages/icons/folder-quest/index.d.ts +1 -0
- package/packages/icons/folder-quest/index.js +17 -0
- package/packages/icons/folder-quest/index.js.gz +0 -0
- package/packages/icons/folder-quest/index.vue.d.ts +19 -0
- package/packages/icons/form-tips/index.d.ts +1 -0
- package/packages/icons/form-tips/index.js +17 -0
- package/packages/icons/form-tips/index.js.gz +0 -0
- package/packages/icons/form-tips/index.vue.d.ts +19 -0
- package/packages/icons/fresh/index.d.ts +1 -0
- package/packages/icons/fresh/index.js +22 -0
- package/packages/icons/fresh/index.js.gz +0 -0
- package/packages/icons/fresh/index.vue.d.ts +19 -0
- package/packages/icons/full/index.d.ts +1 -0
- package/packages/icons/full/index.js +17 -0
- package/packages/icons/full/index.js.gz +0 -0
- package/packages/icons/full/index.vue.d.ts +19 -0
- package/packages/icons/full-screen/index.d.ts +1 -0
- package/packages/icons/full-screen/index.js +30 -0
- package/packages/icons/full-screen/index.js.gz +0 -0
- package/packages/icons/full-screen/index.vue.d.ts +19 -0
- package/packages/icons/fullscreen-2/index.d.ts +1 -0
- package/packages/icons/fullscreen-2/index.js +17 -0
- package/packages/icons/fullscreen-2/index.js.gz +0 -0
- package/packages/icons/fullscreen-2/index.vue.d.ts +19 -0
- package/packages/icons/fuzhi/index.d.ts +1 -0
- package/packages/icons/fuzhi/index.js +17 -0
- package/packages/icons/fuzhi/index.js.gz +0 -0
- package/packages/icons/fuzhi/index.vue.d.ts +19 -0
- package/packages/icons/fuzhineirong/index.d.ts +1 -0
- package/packages/icons/fuzhineirong/index.js +22 -0
- package/packages/icons/fuzhineirong/index.js.gz +0 -0
- package/packages/icons/fuzhineirong/index.vue.d.ts +19 -0
- package/packages/icons/gaojin/index.d.ts +1 -0
- package/packages/icons/gaojin/index.js +17 -0
- package/packages/icons/gaojin/index.js.gz +0 -0
- package/packages/icons/gaojin/index.vue.d.ts +19 -0
- package/packages/icons/gengduocaozuo/index.d.ts +1 -0
- package/packages/icons/gengduocaozuo/index.js +17 -0
- package/packages/icons/gengduocaozuo/index.vue.d.ts +19 -0
- package/packages/icons/global/index.d.ts +1 -0
- package/packages/icons/global/index.js +17 -0
- package/packages/icons/global/index.js.gz +0 -0
- package/packages/icons/global/index.vue.d.ts +19 -0
- package/packages/icons/gongzuotaiguanli/index.d.ts +1 -0
- package/packages/icons/gongzuotaiguanli/index.js +17 -0
- package/packages/icons/gongzuotaiguanli/index.js.gz +0 -0
- package/packages/icons/gongzuotaiguanli/index.vue.d.ts +19 -0
- package/packages/icons/header-seach/index.d.ts +1 -0
- package/packages/icons/header-seach/index.js +28 -0
- package/packages/icons/header-seach/index.js.gz +0 -0
- package/packages/icons/header-seach/index.vue.d.ts +19 -0
- package/packages/icons/header-setting/index.d.ts +1 -0
- package/packages/icons/header-setting/index.js +28 -0
- package/packages/icons/header-setting/index.js.gz +0 -0
- package/packages/icons/header-setting/index.vue.d.ts +19 -0
- package/packages/icons/headersettings/index.d.ts +1 -0
- package/packages/icons/headersettings/index.js +17 -0
- package/packages/icons/headersettings/index.js.gz +0 -0
- package/packages/icons/headersettings/index.vue.d.ts +19 -0
- package/packages/icons/hide/index.d.ts +1 -0
- package/packages/icons/hide/index.js +25 -0
- package/packages/icons/hide/index.js.gz +0 -0
- package/packages/icons/hide/index.vue.d.ts +19 -0
- package/packages/icons/huabufuwei/index.d.ts +1 -0
- package/packages/icons/huabufuwei/index.js +17 -0
- package/packages/icons/huabufuwei/index.js.gz +0 -0
- package/packages/icons/huabufuwei/index.vue.d.ts +19 -0
- package/packages/icons/huaxian/index.d.ts +1 -0
- package/packages/icons/huaxian/index.js +17 -0
- package/packages/icons/huaxian/index.js.gz +0 -0
- package/packages/icons/huaxian/index.vue.d.ts +19 -0
- package/packages/icons/huida/index.d.ts +1 -0
- package/packages/icons/huida/index.js +22 -0
- package/packages/icons/huida/index.js.gz +0 -0
- package/packages/icons/huida/index.vue.d.ts +19 -0
- package/packages/icons/huidaodibu/index.d.ts +1 -0
- package/packages/icons/huidaodibu/index.js +22 -0
- package/packages/icons/huidaodibu/index.js.gz +0 -0
- package/packages/icons/huidaodibu/index.vue.d.ts +19 -0
- package/packages/icons/huifuchuchangshezhi/index.d.ts +1 -0
- package/packages/icons/huifuchuchangshezhi/index.js +17 -0
- package/packages/icons/huifuchuchangshezhi/index.js.gz +0 -0
- package/packages/icons/huifuchuchangshezhi/index.vue.d.ts +19 -0
- package/packages/icons/hyperlinks/index.d.ts +1 -0
- package/packages/icons/hyperlinks/index.js +17 -0
- package/packages/icons/hyperlinks/index.js.gz +0 -0
- package/packages/icons/hyperlinks/index.vue.d.ts +19 -0
- package/packages/icons/img/index.d.ts +1 -0
- package/packages/icons/img/index.js +17 -0
- package/packages/icons/img/index.js.gz +0 -0
- package/packages/icons/img/index.vue.d.ts +19 -0
- package/packages/icons/index.d.ts +248 -0
- package/packages/icons/index.js +248 -0
- package/packages/icons/input-close/index.d.ts +1 -0
- package/packages/icons/input-close/index.js +17 -0
- package/packages/icons/input-close/index.js.gz +0 -0
- package/packages/icons/input-close/index.vue.d.ts +19 -0
- package/packages/icons/input-select/index.d.ts +1 -0
- package/packages/icons/input-select/index.js +17 -0
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/input-select/index.vue.d.ts +19 -0
- package/packages/icons/intnet/index.d.ts +1 -0
- package/packages/icons/intnet/index.js +17 -0
- package/packages/icons/intnet/index.js.gz +0 -0
- package/packages/icons/intnet/index.vue.d.ts +19 -0
- package/packages/icons/italic/index.d.ts +1 -0
- package/packages/icons/italic/index.js +17 -0
- package/packages/icons/italic/index.js.gz +0 -0
- package/packages/icons/italic/index.vue.d.ts +19 -0
- package/packages/icons/jia-1/index.d.ts +1 -0
- package/packages/icons/jia-1/index.js +17 -0
- package/packages/icons/jia-1/index.js.gz +0 -0
- package/packages/icons/jia-1/index.vue.d.ts +19 -0
- package/packages/icons/jian-1/index.d.ts +1 -0
- package/packages/icons/jian-1/index.js +17 -0
- package/packages/icons/jian-1/index.vue.d.ts +19 -0
- package/packages/icons/jianshao-1/index.d.ts +1 -0
- package/packages/icons/jianshao-1/index.js +17 -0
- package/packages/icons/jianshao-1/index.vue.d.ts +19 -0
- package/packages/icons/jinggao/index.d.ts +1 -0
- package/packages/icons/jinggao/index.js +17 -0
- package/packages/icons/jinggao/index.js.gz +0 -0
- package/packages/icons/jinggao/index.vue.d.ts +19 -0
- package/packages/icons/jushangduiqi/index.d.ts +1 -0
- package/packages/icons/jushangduiqi/index.js +17 -0
- package/packages/icons/jushangduiqi/index.js.gz +0 -0
- package/packages/icons/jushangduiqi/index.vue.d.ts +19 -0
- package/packages/icons/juxiaduiqi/index.d.ts +1 -0
- package/packages/icons/juxiaduiqi/index.js +17 -0
- package/packages/icons/juxiaduiqi/index.js.gz +0 -0
- package/packages/icons/juxiaduiqi/index.vue.d.ts +19 -0
- package/packages/icons/juxinghuizhi/index.d.ts +1 -0
- package/packages/icons/juxinghuizhi/index.js +17 -0
- package/packages/icons/juxinghuizhi/index.js.gz +0 -0
- package/packages/icons/juxinghuizhi/index.vue.d.ts +19 -0
- package/packages/icons/juyouduiqi/index.d.ts +1 -0
- package/packages/icons/juyouduiqi/index.js +17 -0
- package/packages/icons/juyouduiqi/index.js.gz +0 -0
- package/packages/icons/juyouduiqi/index.vue.d.ts +19 -0
- package/packages/icons/juzuoduiqi/index.d.ts +1 -0
- package/packages/icons/juzuoduiqi/index.js +17 -0
- package/packages/icons/juzuoduiqi/index.js.gz +0 -0
- package/packages/icons/juzuoduiqi/index.vue.d.ts +19 -0
- package/packages/icons/kaiguan/index.d.ts +1 -0
- package/packages/icons/kaiguan/index.js +24 -0
- package/packages/icons/kaiguan/index.js.gz +0 -0
- package/packages/icons/kaiguan/index.vue.d.ts +19 -0
- package/packages/icons/kaimen/index.d.ts +1 -0
- package/packages/icons/kaimen/index.js +24 -0
- package/packages/icons/kaimen/index.js.gz +0 -0
- package/packages/icons/kaimen/index.vue.d.ts +19 -0
- package/packages/icons/know/index.d.ts +1 -0
- package/packages/icons/know/index.js +17 -0
- package/packages/icons/know/index.js.gz +0 -0
- package/packages/icons/know/index.vue.d.ts +19 -0
- package/packages/icons/knowed/index.d.ts +1 -0
- package/packages/icons/knowed/index.js +17 -0
- package/packages/icons/knowed/index.js.gz +0 -0
- package/packages/icons/knowed/index.vue.d.ts +19 -0
- package/packages/icons/knowopen/index.d.ts +1 -0
- package/packages/icons/knowopen/index.js +17 -0
- package/packages/icons/knowopen/index.js.gz +0 -0
- package/packages/icons/knowopen/index.vue.d.ts +19 -0
- package/packages/icons/layout-refresh/index.d.ts +1 -0
- package/packages/icons/layout-refresh/index.js +17 -0
- package/packages/icons/layout-refresh/index.js.gz +0 -0
- package/packages/icons/layout-refresh/index.vue.d.ts +19 -0
- package/packages/icons/left/index.d.ts +1 -0
- package/packages/icons/left/index.js +17 -0
- package/packages/icons/left/index.vue.d.ts +19 -0
- package/packages/icons/lianjie/index.d.ts +1 -0
- package/packages/icons/lianjie/index.js +22 -0
- package/packages/icons/lianjie/index.js.gz +0 -0
- package/packages/icons/lianjie/index.vue.d.ts +19 -0
- package/packages/icons/link/index.d.ts +1 -0
- package/packages/icons/link/index.js +17 -0
- package/packages/icons/link/index.js.gz +0 -0
- package/packages/icons/link/index.vue.d.ts +19 -0
- package/packages/icons/lishihuihua/index.d.ts +1 -0
- package/packages/icons/lishihuihua/index.js +22 -0
- package/packages/icons/lishihuihua/index.js.gz +0 -0
- package/packages/icons/lishihuihua/index.vue.d.ts +19 -0
- package/packages/icons/list/index.d.ts +1 -0
- package/packages/icons/list/index.js +17 -0
- package/packages/icons/list/index.js.gz +0 -0
- package/packages/icons/list/index.vue.d.ts +19 -0
- package/packages/icons/list-view/index.d.ts +1 -0
- package/packages/icons/list-view/index.js +17 -0
- package/packages/icons/list-view/index.js.gz +0 -0
- package/packages/icons/list-view/index.vue.d.ts +19 -0
- package/packages/icons/load/index.d.ts +1 -0
- package/packages/icons/load/index.js +17 -0
- package/packages/icons/load/index.js.gz +0 -0
- package/packages/icons/load/index.vue.d.ts +19 -0
- package/packages/icons/lock/index.d.ts +1 -0
- package/packages/icons/lock/index.js +30 -0
- package/packages/icons/lock/index.js.gz +0 -0
- package/packages/icons/lock/index.vue.d.ts +19 -0
- package/packages/icons/marsh/index.d.ts +1 -0
- package/packages/icons/marsh/index.js +17 -0
- package/packages/icons/marsh/index.vue.d.ts +19 -0
- package/packages/icons/me/index.d.ts +1 -0
- package/packages/icons/me/index.js +25 -0
- package/packages/icons/me/index.js.gz +0 -0
- package/packages/icons/me/index.vue.d.ts +19 -0
- package/packages/icons/more/index.d.ts +1 -0
- package/packages/icons/more/index.js +28 -0
- package/packages/icons/more/index.js.gz +0 -0
- package/packages/icons/more/index.vue.d.ts +19 -0
- package/packages/icons/more-2/index.d.ts +1 -0
- package/packages/icons/more-2/index.js +17 -0
- package/packages/icons/more-2/index.vue.d.ts +19 -0
- package/packages/icons/more-btn/index.d.ts +1 -0
- package/packages/icons/more-btn/index.js +17 -0
- package/packages/icons/more-btn/index.js.gz +0 -0
- package/packages/icons/more-btn/index.vue.d.ts +19 -0
- package/packages/icons/muted/index.d.ts +1 -0
- package/packages/icons/muted/index.js +17 -0
- package/packages/icons/muted/index.js.gz +0 -0
- package/packages/icons/muted/index.vue.d.ts +19 -0
- package/packages/icons/notification-face/index.d.ts +1 -0
- package/packages/icons/notification-face/index.js +17 -0
- package/packages/icons/notification-face/index.js.gz +0 -0
- package/packages/icons/notification-face/index.vue.d.ts +19 -0
- package/packages/icons/paiban/index.d.ts +1 -0
- package/packages/icons/paiban/index.js +17 -0
- package/packages/icons/paiban/index.js.gz +0 -0
- package/packages/icons/paiban/index.vue.d.ts +19 -0
- package/packages/icons/password-lock/index.d.ts +1 -0
- package/packages/icons/password-lock/index.js +25 -0
- package/packages/icons/password-lock/index.js.gz +0 -0
- package/packages/icons/password-lock/index.vue.d.ts +19 -0
- package/packages/icons/password-lock2/index.d.ts +1 -0
- package/packages/icons/password-lock2/index.js +17 -0
- package/packages/icons/password-lock2/index.js.gz +0 -0
- package/packages/icons/password-lock2/index.vue.d.ts +19 -0
- package/packages/icons/pause/index.d.ts +1 -0
- package/packages/icons/pause/index.js +17 -0
- package/packages/icons/pause/index.js.gz +0 -0
- package/packages/icons/pause/index.vue.d.ts +19 -0
- package/packages/icons/phone/index.d.ts +1 -0
- package/packages/icons/phone/index.js +17 -0
- package/packages/icons/phone/index.js.gz +0 -0
- package/packages/icons/phone/index.vue.d.ts +19 -0
- package/packages/icons/pinglun/index.d.ts +1 -0
- package/packages/icons/pinglun/index.js +17 -0
- package/packages/icons/pinglun/index.js.gz +0 -0
- package/packages/icons/pinglun/index.vue.d.ts +19 -0
- package/packages/icons/plan/index.d.ts +1 -0
- package/packages/icons/plan/index.js +17 -0
- package/packages/icons/plan/index.js.gz +0 -0
- package/packages/icons/plan/index.vue.d.ts +19 -0
- package/packages/icons/play/index.d.ts +1 -0
- package/packages/icons/play/index.js +17 -0
- package/packages/icons/play/index.js.gz +0 -0
- package/packages/icons/play/index.vue.d.ts +19 -0
- package/packages/icons/preview/index.d.ts +1 -0
- package/packages/icons/preview/index.js +17 -0
- package/packages/icons/preview/index.js.gz +0 -0
- package/packages/icons/preview/index.vue.d.ts +19 -0
- package/packages/icons/preview-eye/index.d.ts +1 -0
- package/packages/icons/preview-eye/index.js +17 -0
- package/packages/icons/preview-eye/index.js.gz +0 -0
- package/packages/icons/preview-eye/index.vue.d.ts +19 -0
- package/packages/icons/project-list/index.d.ts +1 -0
- package/packages/icons/project-list/index.js +28 -0
- package/packages/icons/project-list/index.js.gz +0 -0
- package/packages/icons/project-list/index.vue.d.ts +19 -0
- package/packages/icons/project-tree/index.d.ts +1 -0
- package/packages/icons/project-tree/index.js +34 -0
- package/packages/icons/project-tree/index.js.gz +0 -0
- package/packages/icons/project-tree/index.vue.d.ts +19 -0
- package/packages/icons/promptinformation-l/index.d.ts +1 -0
- package/packages/icons/promptinformation-l/index.js +25 -0
- package/packages/icons/promptinformation-l/index.js.gz +0 -0
- package/packages/icons/promptinformation-l/index.vue.d.ts +19 -0
- package/packages/icons/qiehuangongzuotai/index.d.ts +1 -0
- package/packages/icons/qiehuangongzuotai/index.js +17 -0
- package/packages/icons/qiehuangongzuotai/index.js.gz +0 -0
- package/packages/icons/qiehuangongzuotai/index.vue.d.ts +19 -0
- package/packages/icons/qingkong/index.d.ts +1 -0
- package/packages/icons/qingkong/index.js +22 -0
- package/packages/icons/qingkong/index.js.gz +0 -0
- package/packages/icons/qingkong/index.vue.d.ts +19 -0
- package/packages/icons/quanping/index.d.ts +1 -0
- package/packages/icons/quanping/index.js +17 -0
- package/packages/icons/quanping/index.js.gz +0 -0
- package/packages/icons/quanping/index.vue.d.ts +19 -0
- package/packages/icons/rate-all/index.d.ts +1 -0
- package/packages/icons/rate-all/index.js +31 -0
- package/packages/icons/rate-all/index.js.gz +0 -0
- package/packages/icons/rate-all/index.vue.d.ts +19 -0
- package/packages/icons/rate-half/index.d.ts +1 -0
- package/packages/icons/rate-half/index.js +40 -0
- package/packages/icons/rate-half/index.js.gz +0 -0
- package/packages/icons/rate-half/index.vue.d.ts +19 -0
- package/packages/icons/rate-none/index.d.ts +1 -0
- package/packages/icons/rate-none/index.js +31 -0
- package/packages/icons/rate-none/index.js.gz +0 -0
- package/packages/icons/rate-none/index.vue.d.ts +19 -0
- package/packages/icons/recover/index.d.ts +1 -0
- package/packages/icons/recover/index.js +17 -0
- package/packages/icons/recover/index.js.gz +0 -0
- package/packages/icons/recover/index.vue.d.ts +19 -0
- package/packages/icons/refresh/index.d.ts +1 -0
- package/packages/icons/refresh/index.js +17 -0
- package/packages/icons/refresh/index.js.gz +0 -0
- package/packages/icons/refresh/index.vue.d.ts +19 -0
- package/packages/icons/reload/index.d.ts +1 -0
- package/packages/icons/reload/index.js +17 -0
- package/packages/icons/reload/index.js.gz +0 -0
- package/packages/icons/reload/index.vue.d.ts +19 -0
- package/packages/icons/reset/index.d.ts +1 -0
- package/packages/icons/reset/index.js +17 -0
- package/packages/icons/reset/index.js.gz +0 -0
- package/packages/icons/reset/index.vue.d.ts +19 -0
- package/packages/icons/right/index.d.ts +1 -0
- package/packages/icons/right/index.js +17 -0
- package/packages/icons/right/index.vue.d.ts +19 -0
- package/packages/icons/right-3/index.d.ts +1 -0
- package/packages/icons/right-3/index.js +17 -0
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/right-3/index.vue.d.ts +19 -0
- package/packages/icons/riqixuanze/index.d.ts +1 -0
- package/packages/icons/riqixuanze/index.js +17 -0
- package/packages/icons/riqixuanze/index.js.gz +0 -0
- package/packages/icons/riqixuanze/index.vue.d.ts +19 -0
- package/packages/icons/rise/index.d.ts +1 -0
- package/packages/icons/rise/index.js +17 -0
- package/packages/icons/rise/index.js.gz +0 -0
- package/packages/icons/rise/index.vue.d.ts +19 -0
- package/packages/icons/save/index.d.ts +1 -0
- package/packages/icons/save/index.js +17 -0
- package/packages/icons/save/index.js.gz +0 -0
- package/packages/icons/save/index.vue.d.ts +19 -0
- package/packages/icons/screenshot/index.d.ts +1 -0
- package/packages/icons/screenshot/index.js +34 -0
- package/packages/icons/screenshot/index.js.gz +0 -0
- package/packages/icons/screenshot/index.vue.d.ts +19 -0
- package/packages/icons/search/index.d.ts +1 -0
- package/packages/icons/search/index.js +17 -0
- package/packages/icons/search/index.js.gz +0 -0
- package/packages/icons/search/index.vue.d.ts +19 -0
- package/packages/icons/select/index.d.ts +1 -0
- package/packages/icons/select/index.js +17 -0
- package/packages/icons/select/index.vue.d.ts +19 -0
- package/packages/icons/select-confirm/index.d.ts +1 -0
- package/packages/icons/select-confirm/index.js +17 -0
- package/packages/icons/select-confirm/index.js.gz +0 -0
- package/packages/icons/select-confirm/index.vue.d.ts +19 -0
- package/packages/icons/select2/index.d.ts +1 -0
- package/packages/icons/select2/index.js +17 -0
- package/packages/icons/select2/index.vue.d.ts +19 -0
- package/packages/icons/set-up/index.d.ts +1 -0
- package/packages/icons/set-up/index.js +17 -0
- package/packages/icons/set-up/index.js.gz +0 -0
- package/packages/icons/set-up/index.vue.d.ts +19 -0
- package/packages/icons/setting/index.d.ts +1 -0
- package/packages/icons/setting/index.js +17 -0
- package/packages/icons/setting/index.js.gz +0 -0
- package/packages/icons/setting/index.vue.d.ts +19 -0
- package/packages/icons/shangchuan/index.d.ts +1 -0
- package/packages/icons/shangchuan/index.js +17 -0
- package/packages/icons/shangchuan/index.js.gz +0 -0
- package/packages/icons/shangchuan/index.vue.d.ts +19 -0
- package/packages/icons/shebei/index.d.ts +1 -0
- package/packages/icons/shebei/index.js +17 -0
- package/packages/icons/shebei/index.js.gz +0 -0
- package/packages/icons/shebei/index.vue.d.ts +19 -0
- package/packages/icons/shebeiqunzu/index.d.ts +1 -0
- package/packages/icons/shebeiqunzu/index.js +17 -0
- package/packages/icons/shebeiqunzu/index.js.gz +0 -0
- package/packages/icons/shebeiqunzu/index.vue.d.ts +19 -0
- package/packages/icons/shendusikao/index.d.ts +1 -0
- package/packages/icons/shendusikao/index.js +22 -0
- package/packages/icons/shendusikao/index.js.gz +0 -0
- package/packages/icons/shendusikao/index.vue.d.ts +19 -0
- package/packages/icons/sheweimoren/index.d.ts +1 -0
- package/packages/icons/sheweimoren/index.js +17 -0
- package/packages/icons/sheweimoren/index.js.gz +0 -0
- package/packages/icons/sheweimoren/index.vue.d.ts +19 -0
- package/packages/icons/shisuan/index.d.ts +1 -0
- package/packages/icons/shisuan/index.js +17 -0
- package/packages/icons/shisuan/index.js.gz +0 -0
- package/packages/icons/shisuan/index.vue.d.ts +19 -0
- package/packages/icons/shitu-kapian/index.d.ts +1 -0
- package/packages/icons/shitu-kapian/index.js +17 -0
- package/packages/icons/shitu-kapian/index.js.gz +0 -0
- package/packages/icons/shitu-kapian/index.vue.d.ts +19 -0
- package/packages/icons/shitu-liebiao/index.d.ts +1 -0
- package/packages/icons/shitu-liebiao/index.js +17 -0
- package/packages/icons/shitu-liebiao/index.vue.d.ts +19 -0
- package/packages/icons/shitu-map/index.d.ts +1 -0
- package/packages/icons/shitu-map/index.js +19 -0
- package/packages/icons/shitu-map/index.js.gz +0 -0
- package/packages/icons/shitu-map/index.vue.d.ts +19 -0
- package/packages/icons/shortcut-keys/index.d.ts +1 -0
- package/packages/icons/shortcut-keys/index.js +17 -0
- package/packages/icons/shortcut-keys/index.js.gz +0 -0
- package/packages/icons/shortcut-keys/index.vue.d.ts +19 -0
- package/packages/icons/shoudongzhihang/index.d.ts +1 -0
- package/packages/icons/shoudongzhihang/index.js +17 -0
- package/packages/icons/shoudongzhihang/index.js.gz +0 -0
- package/packages/icons/shoudongzhihang/index.vue.d.ts +19 -0
- package/packages/icons/shouqiliangcemianban/index.d.ts +1 -0
- package/packages/icons/shouqiliangcemianban/index.js +17 -0
- package/packages/icons/shouqiliangcemianban/index.vue.d.ts +19 -0
- package/packages/icons/shouqiyoucemianban/index.d.ts +1 -0
- package/packages/icons/shouqiyoucemianban/index.js +17 -0
- package/packages/icons/shouqiyoucemianban/index.js.gz +0 -0
- package/packages/icons/shouqiyoucemianban/index.vue.d.ts +19 -0
- package/packages/icons/shouqiyoucemianban-1/index.d.ts +1 -0
- package/packages/icons/shouqiyoucemianban-1/index.js +17 -0
- package/packages/icons/shouqiyoucemianban-1/index.js.gz +0 -0
- package/packages/icons/shouqiyoucemianban-1/index.vue.d.ts +19 -0
- package/packages/icons/shouqizuocemianban/index.d.ts +1 -0
- package/packages/icons/shouqizuocemianban/index.js +17 -0
- package/packages/icons/shouqizuocemianban/index.js.gz +0 -0
- package/packages/icons/shouqizuocemianban/index.vue.d.ts +19 -0
- package/packages/icons/shouqizuocemianban-1/index.d.ts +1 -0
- package/packages/icons/shouqizuocemianban-1/index.js +17 -0
- package/packages/icons/shouqizuocemianban-1/index.js.gz +0 -0
- package/packages/icons/shouqizuocemianban-1/index.vue.d.ts +19 -0
- package/packages/icons/shouquan/index.d.ts +1 -0
- package/packages/icons/shouquan/index.js +17 -0
- package/packages/icons/shouquan/index.js.gz +0 -0
- package/packages/icons/shouquan/index.vue.d.ts +19 -0
- package/packages/icons/show/index.d.ts +1 -0
- package/packages/icons/show/index.js +25 -0
- package/packages/icons/show/index.js.gz +0 -0
- package/packages/icons/show/index.vue.d.ts +19 -0
- package/packages/icons/shrink/index.d.ts +1 -0
- package/packages/icons/shrink/index.js +34 -0
- package/packages/icons/shrink/index.js.gz +0 -0
- package/packages/icons/shrink/index.vue.d.ts +19 -0
- package/packages/icons/shuaxin/index.d.ts +1 -0
- package/packages/icons/shuaxin/index.js +17 -0
- package/packages/icons/shuaxin/index.js.gz +0 -0
- package/packages/icons/shuaxin/index.vue.d.ts +19 -0
- package/packages/icons/shuipingduiqi/index.d.ts +1 -0
- package/packages/icons/shuipingduiqi/index.js +17 -0
- package/packages/icons/shuipingduiqi/index.js.gz +0 -0
- package/packages/icons/shuipingduiqi/index.vue.d.ts +19 -0
- package/packages/icons/shuipingjunfen/index.d.ts +1 -0
- package/packages/icons/shuipingjunfen/index.js +17 -0
- package/packages/icons/shuipingjunfen/index.js.gz +0 -0
- package/packages/icons/shuipingjunfen/index.vue.d.ts +19 -0
- package/packages/icons/shuyoufanye/index.d.ts +1 -0
- package/packages/icons/shuyoufanye/index.js +17 -0
- package/packages/icons/shuyoufanye/index.js.gz +0 -0
- package/packages/icons/shuyoufanye/index.vue.d.ts +19 -0
- package/packages/icons/shuzuofanye/index.d.ts +1 -0
- package/packages/icons/shuzuofanye/index.js +17 -0
- package/packages/icons/shuzuofanye/index.js.gz +0 -0
- package/packages/icons/shuzuofanye/index.vue.d.ts +19 -0
- package/packages/icons/solid-filter/index.d.ts +1 -0
- package/packages/icons/solid-filter/index.js +17 -0
- package/packages/icons/solid-filter/index.js.gz +0 -0
- package/packages/icons/solid-filter/index.vue.d.ts +19 -0
- package/packages/icons/start/index.d.ts +1 -0
- package/packages/icons/start/index.js +17 -0
- package/packages/icons/start/index.js.gz +0 -0
- package/packages/icons/start/index.vue.d.ts +19 -0
- package/packages/icons/stop/index.d.ts +1 -0
- package/packages/icons/stop/index.js +17 -0
- package/packages/icons/stop/index.js.gz +0 -0
- package/packages/icons/stop/index.vue.d.ts +19 -0
- package/packages/icons/structural-diagram/index.d.ts +1 -0
- package/packages/icons/structural-diagram/index.js +17 -0
- package/packages/icons/structural-diagram/index.js.gz +0 -0
- package/packages/icons/structural-diagram/index.vue.d.ts +19 -0
- package/packages/icons/success/index.d.ts +1 -0
- package/packages/icons/success/index.js +17 -0
- package/packages/icons/success/index.vue.d.ts +19 -0
- package/packages/icons/system/index.d.ts +1 -0
- package/packages/icons/system/index.js +17 -0
- package/packages/icons/system/index.js.gz +0 -0
- package/packages/icons/system/index.vue.d.ts +19 -0
- package/packages/icons/table-header-search/index.d.ts +1 -0
- package/packages/icons/table-header-search/index.js +17 -0
- package/packages/icons/table-header-search/index.js.gz +0 -0
- package/packages/icons/table-header-search/index.vue.d.ts +19 -0
- package/packages/icons/text/index.d.ts +1 -0
- package/packages/icons/text/index.js +17 -0
- package/packages/icons/text/index.js.gz +0 -0
- package/packages/icons/text/index.vue.d.ts +19 -0
- package/packages/icons/tianjiaxinhuati/index.d.ts +1 -0
- package/packages/icons/tianjiaxinhuati/index.js +22 -0
- package/packages/icons/tianjiaxinhuati/index.js.gz +0 -0
- package/packages/icons/tianjiaxinhuati/index.vue.d.ts +19 -0
- package/packages/icons/tick/index.d.ts +1 -0
- package/packages/icons/tick/index.js +25 -0
- package/packages/icons/tick/index.js.gz +0 -0
- package/packages/icons/tick/index.vue.d.ts +19 -0
- package/packages/icons/tishixinxi/index.d.ts +1 -0
- package/packages/icons/tishixinxi/index.js +17 -0
- package/packages/icons/tishixinxi/index.js.gz +0 -0
- package/packages/icons/tishixinxi/index.vue.d.ts +19 -0
- package/packages/icons/tongguo/index.d.ts +1 -0
- package/packages/icons/tongguo/index.js +17 -0
- package/packages/icons/tongguo/index.js.gz +0 -0
- package/packages/icons/tongguo/index.vue.d.ts +19 -0
- package/packages/icons/tongzhi/index.d.ts +1 -0
- package/packages/icons/tongzhi/index.js +17 -0
- package/packages/icons/tongzhi/index.js.gz +0 -0
- package/packages/icons/tongzhi/index.vue.d.ts +19 -0
- package/packages/icons/tubiaoku/index.d.ts +1 -0
- package/packages/icons/tubiaoku/index.js +17 -0
- package/packages/icons/tubiaoku/index.js.gz +0 -0
- package/packages/icons/tubiaoku/index.vue.d.ts +19 -0
- package/packages/icons/tuichuquanping/index.d.ts +1 -0
- package/packages/icons/tuichuquanping/index.js +17 -0
- package/packages/icons/tuichuquanping/index.js.gz +0 -0
- package/packages/icons/tuichuquanping/index.vue.d.ts +19 -0
- package/packages/icons/tuozhuai/index.d.ts +1 -0
- package/packages/icons/tuozhuai/index.js +17 -0
- package/packages/icons/tuozhuai/index.js.gz +0 -0
- package/packages/icons/tuozhuai/index.vue.d.ts +19 -0
- package/packages/icons/underline/index.d.ts +1 -0
- package/packages/icons/underline/index.js +17 -0
- package/packages/icons/underline/index.js.gz +0 -0
- package/packages/icons/underline/index.vue.d.ts +19 -0
- package/packages/icons/unflod/index.d.ts +1 -0
- package/packages/icons/unflod/index.js +17 -0
- package/packages/icons/unflod/index.js.gz +0 -0
- package/packages/icons/unflod/index.vue.d.ts +19 -0
- package/packages/icons/unlock/index.d.ts +1 -0
- package/packages/icons/unlock/index.js +34 -0
- package/packages/icons/unlock/index.js.gz +0 -0
- package/packages/icons/unlock/index.vue.d.ts +19 -0
- package/packages/icons/up/index.d.ts +1 -0
- package/packages/icons/up/index.js +25 -0
- package/packages/icons/up/index.js.gz +0 -0
- package/packages/icons/up/index.vue.d.ts +19 -0
- package/packages/icons/up-2/index.d.ts +1 -0
- package/packages/icons/up-2/index.js +17 -0
- package/packages/icons/up-2/index.js.gz +0 -0
- package/packages/icons/up-2/index.vue.d.ts +19 -0
- package/packages/icons/vauth/index.d.ts +1 -0
- package/packages/icons/vauth/index.js +17 -0
- package/packages/icons/vauth/index.js.gz +0 -0
- package/packages/icons/vauth/index.vue.d.ts +19 -0
- package/packages/icons/view/index.d.ts +1 -0
- package/packages/icons/view/index.js +17 -0
- package/packages/icons/view/index.js.gz +0 -0
- package/packages/icons/view/index.vue.d.ts +19 -0
- package/packages/icons/view-2/index.d.ts +1 -0
- package/packages/icons/view-2/index.js +17 -0
- package/packages/icons/view-2/index.js.gz +0 -0
- package/packages/icons/view-2/index.vue.d.ts +19 -0
- package/packages/icons/volume/index.d.ts +1 -0
- package/packages/icons/volume/index.js +38 -0
- package/packages/icons/volume/index.js.gz +0 -0
- package/packages/icons/volume/index.vue.d.ts +19 -0
- package/packages/icons/wangge/index.d.ts +1 -0
- package/packages/icons/wangge/index.js +17 -0
- package/packages/icons/wangge/index.js.gz +0 -0
- package/packages/icons/wangge/index.vue.d.ts +19 -0
- package/packages/icons/wangge-1/index.d.ts +1 -0
- package/packages/icons/wangge-1/index.js +17 -0
- package/packages/icons/wangge-1/index.js.gz +0 -0
- package/packages/icons/wangge-1/index.vue.d.ts +19 -0
- package/packages/icons/warning/index.d.ts +1 -0
- package/packages/icons/warning/index.js +17 -0
- package/packages/icons/warning/index.js.gz +0 -0
- package/packages/icons/warning/index.vue.d.ts +19 -0
- package/packages/icons/warning-face/index.d.ts +1 -0
- package/packages/icons/warning-face/index.js +17 -0
- package/packages/icons/warning-face/index.js.gz +0 -0
- package/packages/icons/warning-face/index.vue.d.ts +19 -0
- package/packages/icons/wendujiang/index.d.ts +1 -0
- package/packages/icons/wendujiang/index.js +24 -0
- package/packages/icons/wendujiang/index.js.gz +0 -0
- package/packages/icons/wendujiang/index.vue.d.ts +19 -0
- package/packages/icons/wendusheng/index.d.ts +1 -0
- package/packages/icons/wendusheng/index.js +27 -0
- package/packages/icons/wendusheng/index.js.gz +0 -0
- package/packages/icons/wendusheng/index.vue.d.ts +19 -0
- package/packages/icons/withdraw/index.d.ts +1 -0
- package/packages/icons/withdraw/index.js +17 -0
- package/packages/icons/withdraw/index.js.gz +0 -0
- package/packages/icons/withdraw/index.vue.d.ts +19 -0
- package/packages/icons/xiala/index.d.ts +1 -0
- package/packages/icons/xiala/index.js +17 -0
- package/packages/icons/xiala/index.vue.d.ts +19 -0
- package/packages/icons/xiazai/index.d.ts +1 -0
- package/packages/icons/xiazai/index.js +17 -0
- package/packages/icons/xiazai/index.js.gz +0 -0
- package/packages/icons/xiazai/index.vue.d.ts +19 -0
- package/packages/icons/xinzengtongji/index.d.ts +1 -0
- package/packages/icons/xinzengtongji/index.js +17 -0
- package/packages/icons/xinzengtongji/index.js.gz +0 -0
- package/packages/icons/xinzengtongji/index.vue.d.ts +19 -0
- package/packages/icons/xuanzhuanjiaodu/index.d.ts +1 -0
- package/packages/icons/xuanzhuanjiaodu/index.js +17 -0
- package/packages/icons/xuanzhuanjiaodu/index.js.gz +0 -0
- package/packages/icons/xuanzhuanjiaodu/index.vue.d.ts +19 -0
- package/packages/icons/yidongduan/index.d.ts +1 -0
- package/packages/icons/yidongduan/index.js +17 -0
- package/packages/icons/yidongduan/index.js.gz +0 -0
- package/packages/icons/yidongduan/index.vue.d.ts +19 -0
- package/packages/icons/yincang/index.d.ts +1 -0
- package/packages/icons/yincang/index.js +17 -0
- package/packages/icons/yincang/index.js.gz +0 -0
- package/packages/icons/yincang/index.vue.d.ts +19 -0
- package/packages/icons/yingpian/index.d.ts +1 -0
- package/packages/icons/yingpian/index.js +17 -0
- package/packages/icons/yingpian/index.js.gz +0 -0
- package/packages/icons/yingpian/index.vue.d.ts +19 -0
- package/packages/icons/yingyong/index.d.ts +1 -0
- package/packages/icons/yingyong/index.js +17 -0
- package/packages/icons/yingyong/index.js.gz +0 -0
- package/packages/icons/yingyong/index.vue.d.ts +19 -0
- package/packages/icons/yitushoutu/index.d.ts +1 -0
- package/packages/icons/yitushoutu/index.js +17 -0
- package/packages/icons/yitushoutu/index.js.gz +0 -0
- package/packages/icons/yitushoutu/index.vue.d.ts +19 -0
- package/packages/icons/yuanxinghuizhi/index.d.ts +1 -0
- package/packages/icons/yuanxinghuizhi/index.js +17 -0
- package/packages/icons/yuanxinghuizhi/index.js.gz +0 -0
- package/packages/icons/yuanxinghuizhi/index.vue.d.ts +19 -0
- package/packages/icons/yulan-2/index.d.ts +1 -0
- package/packages/icons/yulan-2/index.js +17 -0
- package/packages/icons/yulan-2/index.js.gz +0 -0
- package/packages/icons/yulan-2/index.vue.d.ts +19 -0
- package/packages/icons/yuyin/index.d.ts +1 -0
- package/packages/icons/yuyin/index.js +17 -0
- package/packages/icons/yuyin/index.js.gz +0 -0
- package/packages/icons/yuyin/index.vue.d.ts +19 -0
- package/packages/icons/zhangaiwu/index.d.ts +1 -0
- package/packages/icons/zhangaiwu/index.js +17 -0
- package/packages/icons/zhangaiwu/index.js.gz +0 -0
- package/packages/icons/zhangaiwu/index.vue.d.ts +19 -0
- package/packages/icons/zhizhen/index.d.ts +1 -0
- package/packages/icons/zhizhen/index.js +17 -0
- package/packages/icons/zhizhen/index.js.gz +0 -0
- package/packages/icons/zhizhen/index.vue.d.ts +19 -0
- package/packages/icons/zhongxinshengcheng/index.d.ts +1 -0
- package/packages/icons/zhongxinshengcheng/index.js +22 -0
- package/packages/icons/zhongxinshengcheng/index.js.gz +0 -0
- package/packages/icons/zhongxinshengcheng/index.vue.d.ts +19 -0
- package/packages/icons/zhuomianduan/index.d.ts +1 -0
- package/packages/icons/zhuomianduan/index.js +17 -0
- package/packages/icons/zhuomianduan/index.js.gz +0 -0
- package/packages/icons/zhuomianduan/index.vue.d.ts +19 -0
- package/packages/icons/zidingyihuizhi/index.d.ts +1 -0
- package/packages/icons/zidingyihuizhi/index.js +17 -0
- package/packages/icons/zidingyihuizhi/index.js.gz +0 -0
- package/packages/icons/zidingyihuizhi/index.vue.d.ts +19 -0
- package/packages/icons/zuobiao/index.d.ts +1 -0
- package/packages/icons/zuobiao/index.js +17 -0
- package/packages/icons/zuobiao/index.js.gz +0 -0
- package/packages/icons/zuobiao/index.vue.d.ts +19 -0
|
@@ -0,0 +1,4461 @@
|
|
|
1
|
+
import '@das-fed/upf-ui/packages/components/live-player/style.css';
|
|
2
|
+
import { defineComponent as Yt, useCssVars as Jt, ref as Xe, toRefs as Zt, computed as ot, onMounted as $t, onBeforeUnmount as Qt, withDirectives as ei, createElementBlock as dt, openBlock as ut, unref as We, normalizeStyle as ti, renderSlot as ii, createTextVNode as ri, toDisplayString as ai } from "vue";
|
|
3
|
+
import { withInstall as ni } from "@das-fed/upf-utils/with-install/index";
|
|
4
|
+
import { ElLoadingDirective as si } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/loading/style/css";
|
|
7
|
+
import { t as At, setI18nRule as oi } from "@das-fed/upf-web/packages/i18n/index";
|
|
8
|
+
function di(Ie) {
|
|
9
|
+
return Ie && Ie.__esModule && Object.prototype.hasOwnProperty.call(Ie, "default") ? Ie.default : Ie;
|
|
10
|
+
}
|
|
11
|
+
var Tt = { exports: {} };
|
|
12
|
+
(function(Ie, Ye) {
|
|
13
|
+
(function(fe, Z) {
|
|
14
|
+
Ie.exports = Z();
|
|
15
|
+
})(window, function() {
|
|
16
|
+
return function(fe) {
|
|
17
|
+
var Z = {};
|
|
18
|
+
function O(U) {
|
|
19
|
+
if (Z[U]) return Z[U].exports;
|
|
20
|
+
var B = Z[U] = { i: U, l: !1, exports: {} };
|
|
21
|
+
return fe[U].call(B.exports, B, B.exports, O), B.l = !0, B.exports;
|
|
22
|
+
}
|
|
23
|
+
return O.m = fe, O.c = Z, O.d = function(U, B, m) {
|
|
24
|
+
O.o(U, B) || Object.defineProperty(U, B, { enumerable: !0, get: m });
|
|
25
|
+
}, O.r = function(U) {
|
|
26
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(U, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(U, "__esModule", { value: !0 });
|
|
27
|
+
}, O.t = function(U, B) {
|
|
28
|
+
if (1 & B && (U = O(U)), 8 & B || 4 & B && typeof U == "object" && U && U.__esModule) return U;
|
|
29
|
+
var m = /* @__PURE__ */ Object.create(null);
|
|
30
|
+
if (O.r(m), Object.defineProperty(m, "default", { enumerable: !0, value: U }), 2 & B && typeof U != "string") for (var b in U) O.d(m, b, (function(v) {
|
|
31
|
+
return U[v];
|
|
32
|
+
}).bind(null, b));
|
|
33
|
+
return m;
|
|
34
|
+
}, O.n = function(U) {
|
|
35
|
+
var B = U && U.__esModule ? function() {
|
|
36
|
+
return U.default;
|
|
37
|
+
} : function() {
|
|
38
|
+
return U;
|
|
39
|
+
};
|
|
40
|
+
return O.d(B, "a", B), B;
|
|
41
|
+
}, O.o = function(U, B) {
|
|
42
|
+
return Object.prototype.hasOwnProperty.call(U, B);
|
|
43
|
+
}, O.p = "", O(O.s = 14);
|
|
44
|
+
}([function(fe, Z, O) {
|
|
45
|
+
var U = O(6), B = O.n(U), m = function() {
|
|
46
|
+
function b() {
|
|
47
|
+
}
|
|
48
|
+
return b.e = function(v, f) {
|
|
49
|
+
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
50
|
+
var L = "[" + v + "] > " + f;
|
|
51
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "error", L), b.ENABLE_ERROR;
|
|
52
|
+
}, b.i = function(v, f) {
|
|
53
|
+
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
54
|
+
var L = "[" + v + "] > " + f;
|
|
55
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "info", L), b.ENABLE_INFO;
|
|
56
|
+
}, b.w = function(v, f) {
|
|
57
|
+
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
58
|
+
var L = "[" + v + "] > " + f;
|
|
59
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "warn", L), b.ENABLE_WARN;
|
|
60
|
+
}, b.d = function(v, f) {
|
|
61
|
+
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
62
|
+
var L = "[" + v + "] > " + f;
|
|
63
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "debug", L), b.ENABLE_DEBUG;
|
|
64
|
+
}, b.v = function(v, f) {
|
|
65
|
+
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
66
|
+
var L = "[" + v + "] > " + f;
|
|
67
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose", L), b.ENABLE_VERBOSE;
|
|
68
|
+
}, b;
|
|
69
|
+
}();
|
|
70
|
+
m.GLOBAL_TAG = "mpegts.js", m.FORCE_GLOBAL_TAG = !1, m.ENABLE_ERROR = !0, m.ENABLE_INFO = !0, m.ENABLE_WARN = !0, m.ENABLE_DEBUG = !0, m.ENABLE_VERBOSE = !0, m.ENABLE_CALLBACK = !1, m.emitter = new B.a(), Z.a = m;
|
|
71
|
+
}, function(fe, Z, O) {
|
|
72
|
+
Z.a = { 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" };
|
|
73
|
+
}, function(fe, Z, O) {
|
|
74
|
+
O.d(Z, "c", function() {
|
|
75
|
+
return B;
|
|
76
|
+
}), O.d(Z, "b", function() {
|
|
77
|
+
return m;
|
|
78
|
+
}), O.d(Z, "a", function() {
|
|
79
|
+
return b;
|
|
80
|
+
});
|
|
81
|
+
var U = O(3), B = { kIdle: 0, kConnecting: 1, kBuffering: 2, kError: 3, kComplete: 4 }, m = { OK: "OK", EXCEPTION: "Exception", HTTP_STATUS_CODE_INVALID: "HttpStatusCodeInvalid", CONNECTING_TIMEOUT: "ConnectingTimeout", EARLY_EOF: "EarlyEof", UNRECOVERABLE_EARLY_EOF: "UnrecoverableEarlyEof" }, b = function() {
|
|
82
|
+
function v(f) {
|
|
83
|
+
this._type = f || "undefined", this._status = B.kIdle, this._needStash = !1, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
|
|
84
|
+
}
|
|
85
|
+
return v.prototype.destroy = function() {
|
|
86
|
+
this._status = B.kIdle, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
|
|
87
|
+
}, v.prototype.isWorking = function() {
|
|
88
|
+
return this._status === B.kConnecting || this._status === B.kBuffering;
|
|
89
|
+
}, Object.defineProperty(v.prototype, "type", { get: function() {
|
|
90
|
+
return this._type;
|
|
91
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "status", { get: function() {
|
|
92
|
+
return this._status;
|
|
93
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "needStashBuffer", { get: function() {
|
|
94
|
+
return this._needStash;
|
|
95
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "onContentLengthKnown", { get: function() {
|
|
96
|
+
return this._onContentLengthKnown;
|
|
97
|
+
}, set: function(f) {
|
|
98
|
+
this._onContentLengthKnown = f;
|
|
99
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "onURLRedirect", { get: function() {
|
|
100
|
+
return this._onURLRedirect;
|
|
101
|
+
}, set: function(f) {
|
|
102
|
+
this._onURLRedirect = f;
|
|
103
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "onDataArrival", { get: function() {
|
|
104
|
+
return this._onDataArrival;
|
|
105
|
+
}, set: function(f) {
|
|
106
|
+
this._onDataArrival = f;
|
|
107
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "onError", { get: function() {
|
|
108
|
+
return this._onError;
|
|
109
|
+
}, set: function(f) {
|
|
110
|
+
this._onError = f;
|
|
111
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "onComplete", { get: function() {
|
|
112
|
+
return this._onComplete;
|
|
113
|
+
}, set: function(f) {
|
|
114
|
+
this._onComplete = f;
|
|
115
|
+
}, enumerable: !1, configurable: !0 }), v.prototype.open = function(f, L) {
|
|
116
|
+
throw new U.c("Unimplemented abstract function!");
|
|
117
|
+
}, v.prototype.abort = function() {
|
|
118
|
+
throw new U.c("Unimplemented abstract function!");
|
|
119
|
+
}, v;
|
|
120
|
+
}();
|
|
121
|
+
}, function(fe, Z, O) {
|
|
122
|
+
O.d(Z, "d", function() {
|
|
123
|
+
return m;
|
|
124
|
+
}), O.d(Z, "a", function() {
|
|
125
|
+
return b;
|
|
126
|
+
}), O.d(Z, "b", function() {
|
|
127
|
+
return v;
|
|
128
|
+
}), O.d(Z, "c", function() {
|
|
129
|
+
return f;
|
|
130
|
+
});
|
|
131
|
+
var U, B = (U = function(L, x) {
|
|
132
|
+
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, V) {
|
|
133
|
+
C.__proto__ = V;
|
|
134
|
+
} || function(C, V) {
|
|
135
|
+
for (var H in V) V.hasOwnProperty(H) && (C[H] = V[H]);
|
|
136
|
+
})(L, x);
|
|
137
|
+
}, function(L, x) {
|
|
138
|
+
function C() {
|
|
139
|
+
this.constructor = L;
|
|
140
|
+
}
|
|
141
|
+
U(L, x), L.prototype = x === null ? Object.create(x) : (C.prototype = x.prototype, new C());
|
|
142
|
+
}), m = function() {
|
|
143
|
+
function L(x) {
|
|
144
|
+
this._message = x;
|
|
145
|
+
}
|
|
146
|
+
return Object.defineProperty(L.prototype, "name", { get: function() {
|
|
147
|
+
return "RuntimeException";
|
|
148
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "message", { get: function() {
|
|
149
|
+
return this._message;
|
|
150
|
+
}, enumerable: !1, configurable: !0 }), L.prototype.toString = function() {
|
|
151
|
+
return this.name + ": " + this.message;
|
|
152
|
+
}, L;
|
|
153
|
+
}(), b = function(L) {
|
|
154
|
+
function x(C) {
|
|
155
|
+
return L.call(this, C) || this;
|
|
156
|
+
}
|
|
157
|
+
return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
|
|
158
|
+
return "IllegalStateException";
|
|
159
|
+
}, enumerable: !1, configurable: !0 }), x;
|
|
160
|
+
}(m), v = function(L) {
|
|
161
|
+
function x(C) {
|
|
162
|
+
return L.call(this, C) || this;
|
|
163
|
+
}
|
|
164
|
+
return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
|
|
165
|
+
return "InvalidArgumentException";
|
|
166
|
+
}, enumerable: !1, configurable: !0 }), x;
|
|
167
|
+
}(m), f = function(L) {
|
|
168
|
+
function x(C) {
|
|
169
|
+
return L.call(this, C) || this;
|
|
170
|
+
}
|
|
171
|
+
return B(x, L), Object.defineProperty(x.prototype, "name", { get: function() {
|
|
172
|
+
return "NotImplementedException";
|
|
173
|
+
}, enumerable: !1, configurable: !0 }), x;
|
|
174
|
+
}(m);
|
|
175
|
+
}, function(fe, Z, O) {
|
|
176
|
+
var U = {};
|
|
177
|
+
(function() {
|
|
178
|
+
var B = self.navigator.userAgent.toLowerCase(), m = /(edge)\/([\w.]+)/.exec(B) || /(opr)[\/]([\w.]+)/.exec(B) || /(chrome)[ \/]([\w.]+)/.exec(B) || /(iemobile)[\/]([\w.]+)/.exec(B) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+)/.exec(B) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(B) || /(msie) ([\w.]+)/.exec(B) || B.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(B) || B.indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(B) || [], b = /(ipad)/.exec(B) || /(ipod)/.exec(B) || /(windows phone)/.exec(B) || /(iphone)/.exec(B) || /(kindle)/.exec(B) || /(android)/.exec(B) || /(windows)/.exec(B) || /(mac)/.exec(B) || /(linux)/.exec(B) || /(cros)/.exec(B) || [], v = { browser: m[5] || m[3] || m[1] || "", version: m[2] || m[4] || "0", majorVersion: m[4] || m[2] || "0", platform: b[0] || "" }, f = {};
|
|
179
|
+
if (v.browser) {
|
|
180
|
+
f[v.browser] = !0;
|
|
181
|
+
var L = v.majorVersion.split(".");
|
|
182
|
+
f.version = { major: parseInt(v.majorVersion, 10), string: v.version }, L.length > 1 && (f.version.minor = parseInt(L[1], 10)), L.length > 2 && (f.version.build = parseInt(L[2], 10));
|
|
183
|
+
}
|
|
184
|
+
v.platform && (f[v.platform] = !0), (f.chrome || f.opr || f.safari) && (f.webkit = !0), (f.rv || f.iemobile) && (f.rv && delete f.rv, v.browser = "msie", f.msie = !0), f.edge && (delete f.edge, v.browser = "msedge", f.msedge = !0), f.opr && (v.browser = "opera", f.opera = !0), f.safari && f.android && (v.browser = "android", f.android = !0);
|
|
185
|
+
for (var x in f.name = v.browser, f.platform = v.platform, U) U.hasOwnProperty(x) && delete U[x];
|
|
186
|
+
Object.assign(U, f);
|
|
187
|
+
})(), Z.a = U;
|
|
188
|
+
}, function(fe, Z, O) {
|
|
189
|
+
Z.a = { OK: "OK", FORMAT_ERROR: "FormatError", FORMAT_UNSUPPORTED: "FormatUnsupported", CODEC_UNSUPPORTED: "CodecUnsupported" };
|
|
190
|
+
}, function(fe, Z, O) {
|
|
191
|
+
var U, B = typeof Reflect == "object" ? Reflect : null, m = B && typeof B.apply == "function" ? B.apply : function(y, G, T) {
|
|
192
|
+
return Function.prototype.apply.call(y, G, T);
|
|
193
|
+
};
|
|
194
|
+
U = B && typeof B.ownKeys == "function" ? B.ownKeys : Object.getOwnPropertySymbols ? function(y) {
|
|
195
|
+
return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y));
|
|
196
|
+
} : function(y) {
|
|
197
|
+
return Object.getOwnPropertyNames(y);
|
|
198
|
+
};
|
|
199
|
+
var b = Number.isNaN || function(y) {
|
|
200
|
+
return y != y;
|
|
201
|
+
};
|
|
202
|
+
function v() {
|
|
203
|
+
v.init.call(this);
|
|
204
|
+
}
|
|
205
|
+
fe.exports = v, fe.exports.once = function(y, G) {
|
|
206
|
+
return new Promise(function(T, l) {
|
|
207
|
+
function u(c) {
|
|
208
|
+
y.removeListener(G, _), l(c);
|
|
209
|
+
}
|
|
210
|
+
function _() {
|
|
211
|
+
typeof y.removeListener == "function" && y.removeListener("error", u), T([].slice.call(arguments));
|
|
212
|
+
}
|
|
213
|
+
ae(y, G, _, { once: !0 }), G !== "error" && function(c, P, D) {
|
|
214
|
+
typeof c.on == "function" && ae(c, "error", P, D);
|
|
215
|
+
}(y, u, { once: !0 });
|
|
216
|
+
});
|
|
217
|
+
}, v.EventEmitter = v, v.prototype._events = void 0, v.prototype._eventsCount = 0, v.prototype._maxListeners = void 0;
|
|
218
|
+
var f = 10;
|
|
219
|
+
function L(y) {
|
|
220
|
+
if (typeof y != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof y);
|
|
221
|
+
}
|
|
222
|
+
function x(y) {
|
|
223
|
+
return y._maxListeners === void 0 ? v.defaultMaxListeners : y._maxListeners;
|
|
224
|
+
}
|
|
225
|
+
function C(y, G, T, l) {
|
|
226
|
+
var u, _, c, P;
|
|
227
|
+
if (L(T), (_ = y._events) === void 0 ? (_ = y._events = /* @__PURE__ */ Object.create(null), y._eventsCount = 0) : (_.newListener !== void 0 && (y.emit("newListener", G, T.listener ? T.listener : T), _ = y._events), c = _[G]), c === void 0) c = _[G] = T, ++y._eventsCount;
|
|
228
|
+
else if (typeof c == "function" ? c = _[G] = l ? [T, c] : [c, T] : l ? c.unshift(T) : c.push(T), (u = x(y)) > 0 && c.length > u && !c.warned) {
|
|
229
|
+
c.warned = !0;
|
|
230
|
+
var D = new Error("Possible EventEmitter memory leak detected. " + c.length + " " + String(G) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
231
|
+
D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count = c.length, P = D;
|
|
232
|
+
}
|
|
233
|
+
return y;
|
|
234
|
+
}
|
|
235
|
+
function V() {
|
|
236
|
+
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
237
|
+
}
|
|
238
|
+
function H(y, G, T) {
|
|
239
|
+
var l = { fired: !1, wrapFn: void 0, target: y, type: G, listener: T }, u = V.bind(l);
|
|
240
|
+
return u.listener = T, l.wrapFn = u, u;
|
|
241
|
+
}
|
|
242
|
+
function ue(y, G, T) {
|
|
243
|
+
var l = y._events;
|
|
244
|
+
if (l === void 0) return [];
|
|
245
|
+
var u = l[G];
|
|
246
|
+
return u === void 0 ? [] : typeof u == "function" ? T ? [u.listener || u] : [u] : T ? function(_) {
|
|
247
|
+
for (var c = new Array(_.length), P = 0; P < c.length; ++P) c[P] = _[P].listener || _[P];
|
|
248
|
+
return c;
|
|
249
|
+
}(u) : Y(u, u.length);
|
|
250
|
+
}
|
|
251
|
+
function se(y) {
|
|
252
|
+
var G = this._events;
|
|
253
|
+
if (G !== void 0) {
|
|
254
|
+
var T = G[y];
|
|
255
|
+
if (typeof T == "function") return 1;
|
|
256
|
+
if (T !== void 0) return T.length;
|
|
257
|
+
}
|
|
258
|
+
return 0;
|
|
259
|
+
}
|
|
260
|
+
function Y(y, G) {
|
|
261
|
+
for (var T = new Array(G), l = 0; l < G; ++l) T[l] = y[l];
|
|
262
|
+
return T;
|
|
263
|
+
}
|
|
264
|
+
function ae(y, G, T, l) {
|
|
265
|
+
if (typeof y.on == "function") l.once ? y.once(G, T) : y.on(G, T);
|
|
266
|
+
else {
|
|
267
|
+
if (typeof y.addEventListener != "function") throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof y);
|
|
268
|
+
y.addEventListener(G, function u(_) {
|
|
269
|
+
l.once && y.removeEventListener(G, u), T(_);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
Object.defineProperty(v, "defaultMaxListeners", { enumerable: !0, get: function() {
|
|
274
|
+
return f;
|
|
275
|
+
}, set: function(y) {
|
|
276
|
+
if (typeof y != "number" || y < 0 || b(y)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + y + ".");
|
|
277
|
+
f = y;
|
|
278
|
+
} }), v.init = function() {
|
|
279
|
+
this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
280
|
+
}, v.prototype.setMaxListeners = function(y) {
|
|
281
|
+
if (typeof y != "number" || y < 0 || b(y)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + y + ".");
|
|
282
|
+
return this._maxListeners = y, this;
|
|
283
|
+
}, v.prototype.getMaxListeners = function() {
|
|
284
|
+
return x(this);
|
|
285
|
+
}, v.prototype.emit = function(y) {
|
|
286
|
+
for (var G = [], T = 1; T < arguments.length; T++) G.push(arguments[T]);
|
|
287
|
+
var l = y === "error", u = this._events;
|
|
288
|
+
if (u !== void 0) l = l && u.error === void 0;
|
|
289
|
+
else if (!l) return !1;
|
|
290
|
+
if (l) {
|
|
291
|
+
var _;
|
|
292
|
+
if (G.length > 0 && (_ = G[0]), _ instanceof Error) throw _;
|
|
293
|
+
var c = new Error("Unhandled error." + (_ ? " (" + _.message + ")" : ""));
|
|
294
|
+
throw c.context = _, c;
|
|
295
|
+
}
|
|
296
|
+
var P = u[y];
|
|
297
|
+
if (P === void 0) return !1;
|
|
298
|
+
if (typeof P == "function") m(P, this, G);
|
|
299
|
+
else {
|
|
300
|
+
var D = P.length, F = Y(P, D);
|
|
301
|
+
for (T = 0; T < D; ++T) m(F[T], this, G);
|
|
302
|
+
}
|
|
303
|
+
return !0;
|
|
304
|
+
}, v.prototype.addListener = function(y, G) {
|
|
305
|
+
return C(this, y, G, !1);
|
|
306
|
+
}, v.prototype.on = v.prototype.addListener, v.prototype.prependListener = function(y, G) {
|
|
307
|
+
return C(this, y, G, !0);
|
|
308
|
+
}, v.prototype.once = function(y, G) {
|
|
309
|
+
return L(G), this.on(y, H(this, y, G)), this;
|
|
310
|
+
}, v.prototype.prependOnceListener = function(y, G) {
|
|
311
|
+
return L(G), this.prependListener(y, H(this, y, G)), this;
|
|
312
|
+
}, v.prototype.removeListener = function(y, G) {
|
|
313
|
+
var T, l, u, _, c;
|
|
314
|
+
if (L(G), (l = this._events) === void 0) return this;
|
|
315
|
+
if ((T = l[y]) === void 0) return this;
|
|
316
|
+
if (T === G || T.listener === G) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[y], l.removeListener && this.emit("removeListener", y, T.listener || G));
|
|
317
|
+
else if (typeof T != "function") {
|
|
318
|
+
for (u = -1, _ = T.length - 1; _ >= 0; _--) if (T[_] === G || T[_].listener === G) {
|
|
319
|
+
c = T[_].listener, u = _;
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
if (u < 0) return this;
|
|
323
|
+
u === 0 ? T.shift() : function(P, D) {
|
|
324
|
+
for (; D + 1 < P.length; D++) P[D] = P[D + 1];
|
|
325
|
+
P.pop();
|
|
326
|
+
}(T, u), T.length === 1 && (l[y] = T[0]), l.removeListener !== void 0 && this.emit("removeListener", y, c || G);
|
|
327
|
+
}
|
|
328
|
+
return this;
|
|
329
|
+
}, v.prototype.off = v.prototype.removeListener, v.prototype.removeAllListeners = function(y) {
|
|
330
|
+
var G, T, l;
|
|
331
|
+
if ((T = this._events) === void 0) return this;
|
|
332
|
+
if (T.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : T[y] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete T[y]), this;
|
|
333
|
+
if (arguments.length === 0) {
|
|
334
|
+
var u, _ = Object.keys(T);
|
|
335
|
+
for (l = 0; l < _.length; ++l) (u = _[l]) !== "removeListener" && this.removeAllListeners(u);
|
|
336
|
+
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
337
|
+
}
|
|
338
|
+
if (typeof (G = T[y]) == "function") this.removeListener(y, G);
|
|
339
|
+
else if (G !== void 0) for (l = G.length - 1; l >= 0; l--) this.removeListener(y, G[l]);
|
|
340
|
+
return this;
|
|
341
|
+
}, v.prototype.listeners = function(y) {
|
|
342
|
+
return ue(this, y, !0);
|
|
343
|
+
}, v.prototype.rawListeners = function(y) {
|
|
344
|
+
return ue(this, y, !1);
|
|
345
|
+
}, v.listenerCount = function(y, G) {
|
|
346
|
+
return typeof y.listenerCount == "function" ? y.listenerCount(G) : se.call(y, G);
|
|
347
|
+
}, v.prototype.listenerCount = se, v.prototype.eventNames = function() {
|
|
348
|
+
return this._eventsCount > 0 ? U(this._events) : [];
|
|
349
|
+
};
|
|
350
|
+
}, function(fe, Z, O) {
|
|
351
|
+
O.d(Z, "d", function() {
|
|
352
|
+
return U;
|
|
353
|
+
}), O.d(Z, "b", function() {
|
|
354
|
+
return B;
|
|
355
|
+
}), O.d(Z, "a", function() {
|
|
356
|
+
return m;
|
|
357
|
+
}), O.d(Z, "c", function() {
|
|
358
|
+
return b;
|
|
359
|
+
});
|
|
360
|
+
var U = function(v, f, L, x, C) {
|
|
361
|
+
this.dts = v, this.pts = f, this.duration = L, this.originalDts = x, this.isSyncPoint = C, this.fileposition = null;
|
|
362
|
+
}, B = function() {
|
|
363
|
+
function v() {
|
|
364
|
+
this.beginDts = 0, this.endDts = 0, this.beginPts = 0, this.endPts = 0, this.originalBeginDts = 0, this.originalEndDts = 0, this.syncPoints = [], this.firstSample = null, this.lastSample = null;
|
|
365
|
+
}
|
|
366
|
+
return v.prototype.appendSyncPoint = function(f) {
|
|
367
|
+
f.isSyncPoint = !0, this.syncPoints.push(f);
|
|
368
|
+
}, v;
|
|
369
|
+
}(), m = function() {
|
|
370
|
+
function v() {
|
|
371
|
+
this._list = [];
|
|
372
|
+
}
|
|
373
|
+
return v.prototype.clear = function() {
|
|
374
|
+
this._list = [];
|
|
375
|
+
}, v.prototype.appendArray = function(f) {
|
|
376
|
+
var L = this._list;
|
|
377
|
+
f.length !== 0 && (L.length > 0 && f[0].originalDts < L[L.length - 1].originalDts && this.clear(), Array.prototype.push.apply(L, f));
|
|
378
|
+
}, v.prototype.getLastSyncPointBeforeDts = function(f) {
|
|
379
|
+
if (this._list.length == 0) return null;
|
|
380
|
+
var L = this._list, x = 0, C = L.length - 1, V = 0, H = 0, ue = C;
|
|
381
|
+
for (f < L[0].dts && (x = 0, H = ue + 1); H <= ue; ) {
|
|
382
|
+
if ((V = H + Math.floor((ue - H) / 2)) === C || f >= L[V].dts && f < L[V + 1].dts) {
|
|
383
|
+
x = V;
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
L[V].dts < f ? H = V + 1 : ue = V - 1;
|
|
387
|
+
}
|
|
388
|
+
return this._list[x];
|
|
389
|
+
}, v;
|
|
390
|
+
}(), b = function() {
|
|
391
|
+
function v(f) {
|
|
392
|
+
this._type = f, this._list = [], this._lastAppendLocation = -1;
|
|
393
|
+
}
|
|
394
|
+
return Object.defineProperty(v.prototype, "type", { get: function() {
|
|
395
|
+
return this._type;
|
|
396
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v.prototype, "length", { get: function() {
|
|
397
|
+
return this._list.length;
|
|
398
|
+
}, enumerable: !1, configurable: !0 }), v.prototype.isEmpty = function() {
|
|
399
|
+
return this._list.length === 0;
|
|
400
|
+
}, v.prototype.clear = function() {
|
|
401
|
+
this._list = [], this._lastAppendLocation = -1;
|
|
402
|
+
}, v.prototype._searchNearestSegmentBefore = function(f) {
|
|
403
|
+
var L = this._list;
|
|
404
|
+
if (L.length === 0) return -2;
|
|
405
|
+
var x = L.length - 1, C = 0, V = 0, H = x, ue = 0;
|
|
406
|
+
if (f < L[0].originalBeginDts) return ue = -1;
|
|
407
|
+
for (; V <= H; ) {
|
|
408
|
+
if ((C = V + Math.floor((H - V) / 2)) === x || f > L[C].lastSample.originalDts && f < L[C + 1].originalBeginDts) {
|
|
409
|
+
ue = C;
|
|
410
|
+
break;
|
|
411
|
+
}
|
|
412
|
+
L[C].originalBeginDts < f ? V = C + 1 : H = C - 1;
|
|
413
|
+
}
|
|
414
|
+
return ue;
|
|
415
|
+
}, v.prototype._searchNearestSegmentAfter = function(f) {
|
|
416
|
+
return this._searchNearestSegmentBefore(f) + 1;
|
|
417
|
+
}, v.prototype.append = function(f) {
|
|
418
|
+
var L = this._list, x = f, C = this._lastAppendLocation, V = 0;
|
|
419
|
+
C !== -1 && C < L.length && x.originalBeginDts >= L[C].lastSample.originalDts && (C === L.length - 1 || C < L.length - 1 && x.originalBeginDts < L[C + 1].originalBeginDts) ? V = C + 1 : L.length > 0 && (V = this._searchNearestSegmentBefore(x.originalBeginDts) + 1), this._lastAppendLocation = V, this._list.splice(V, 0, x);
|
|
420
|
+
}, v.prototype.getLastSegmentBefore = function(f) {
|
|
421
|
+
var L = this._searchNearestSegmentBefore(f);
|
|
422
|
+
return L >= 0 ? this._list[L] : null;
|
|
423
|
+
}, v.prototype.getLastSampleBefore = function(f) {
|
|
424
|
+
var L = this.getLastSegmentBefore(f);
|
|
425
|
+
return L != null ? L.lastSample : null;
|
|
426
|
+
}, v.prototype.getLastSyncPointBefore = function(f) {
|
|
427
|
+
for (var L = this._searchNearestSegmentBefore(f), x = this._list[L].syncPoints; x.length === 0 && L > 0; ) L--, x = this._list[L].syncPoints;
|
|
428
|
+
return x.length > 0 ? x[x.length - 1] : null;
|
|
429
|
+
}, v;
|
|
430
|
+
}();
|
|
431
|
+
}, function(fe, Z, O) {
|
|
432
|
+
var U = function() {
|
|
433
|
+
function B() {
|
|
434
|
+
this.mimeType = null, this.duration = null, this.hasAudio = null, this.hasVideo = null, this.audioCodec = null, this.videoCodec = null, this.audioDataRate = null, this.videoDataRate = null, this.audioSampleRate = null, this.audioChannelCount = null, this.width = null, this.height = null, this.fps = null, this.profile = null, this.level = null, this.refFrames = null, this.chromaFormat = null, this.sarNum = null, this.sarDen = null, this.metadata = null, this.segments = null, this.segmentCount = null, this.hasKeyframesIndex = null, this.keyframesIndex = null;
|
|
435
|
+
}
|
|
436
|
+
return B.prototype.isComplete = function() {
|
|
437
|
+
var m = this.hasAudio === !1 || this.hasAudio === !0 && this.audioCodec != null && this.audioSampleRate != null && this.audioChannelCount != null, b = this.hasVideo === !1 || this.hasVideo === !0 && this.videoCodec != null && this.width != null && this.height != null && this.fps != null && this.profile != null && this.level != null && this.refFrames != null && this.chromaFormat != null && this.sarNum != null && this.sarDen != null;
|
|
438
|
+
return this.mimeType != null && m && b;
|
|
439
|
+
}, B.prototype.isSeekable = function() {
|
|
440
|
+
return this.hasKeyframesIndex === !0;
|
|
441
|
+
}, B.prototype.getNearestKeyframe = function(m) {
|
|
442
|
+
if (this.keyframesIndex == null) return null;
|
|
443
|
+
var b = this.keyframesIndex, v = this._search(b.times, m);
|
|
444
|
+
return { index: v, milliseconds: b.times[v], fileposition: b.filepositions[v] };
|
|
445
|
+
}, B.prototype._search = function(m, b) {
|
|
446
|
+
var v = 0, f = m.length - 1, L = 0, x = 0, C = f;
|
|
447
|
+
for (b < m[0] && (v = 0, x = C + 1); x <= C; ) {
|
|
448
|
+
if ((L = x + Math.floor((C - x) / 2)) === f || b >= m[L] && b < m[L + 1]) {
|
|
449
|
+
v = L;
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
m[L] < b ? x = L + 1 : C = L - 1;
|
|
453
|
+
}
|
|
454
|
+
return v;
|
|
455
|
+
}, B;
|
|
456
|
+
}();
|
|
457
|
+
Z.a = U;
|
|
458
|
+
}, function(fe, Z, O) {
|
|
459
|
+
var U = O(6), B = O.n(U), m = O(0), b = function() {
|
|
460
|
+
function v() {
|
|
461
|
+
}
|
|
462
|
+
return Object.defineProperty(v, "forceGlobalTag", { get: function() {
|
|
463
|
+
return m.a.FORCE_GLOBAL_TAG;
|
|
464
|
+
}, set: function(f) {
|
|
465
|
+
m.a.FORCE_GLOBAL_TAG = f, v._notifyChange();
|
|
466
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "globalTag", { get: function() {
|
|
467
|
+
return m.a.GLOBAL_TAG;
|
|
468
|
+
}, set: function(f) {
|
|
469
|
+
m.a.GLOBAL_TAG = f, v._notifyChange();
|
|
470
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableAll", { get: function() {
|
|
471
|
+
return m.a.ENABLE_VERBOSE && m.a.ENABLE_DEBUG && m.a.ENABLE_INFO && m.a.ENABLE_WARN && m.a.ENABLE_ERROR;
|
|
472
|
+
}, set: function(f) {
|
|
473
|
+
m.a.ENABLE_VERBOSE = f, m.a.ENABLE_DEBUG = f, m.a.ENABLE_INFO = f, m.a.ENABLE_WARN = f, m.a.ENABLE_ERROR = f, v._notifyChange();
|
|
474
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableDebug", { get: function() {
|
|
475
|
+
return m.a.ENABLE_DEBUG;
|
|
476
|
+
}, set: function(f) {
|
|
477
|
+
m.a.ENABLE_DEBUG = f, v._notifyChange();
|
|
478
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableVerbose", { get: function() {
|
|
479
|
+
return m.a.ENABLE_VERBOSE;
|
|
480
|
+
}, set: function(f) {
|
|
481
|
+
m.a.ENABLE_VERBOSE = f, v._notifyChange();
|
|
482
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableInfo", { get: function() {
|
|
483
|
+
return m.a.ENABLE_INFO;
|
|
484
|
+
}, set: function(f) {
|
|
485
|
+
m.a.ENABLE_INFO = f, v._notifyChange();
|
|
486
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableWarn", { get: function() {
|
|
487
|
+
return m.a.ENABLE_WARN;
|
|
488
|
+
}, set: function(f) {
|
|
489
|
+
m.a.ENABLE_WARN = f, v._notifyChange();
|
|
490
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(v, "enableError", { get: function() {
|
|
491
|
+
return m.a.ENABLE_ERROR;
|
|
492
|
+
}, set: function(f) {
|
|
493
|
+
m.a.ENABLE_ERROR = f, v._notifyChange();
|
|
494
|
+
}, enumerable: !1, configurable: !0 }), v.getConfig = function() {
|
|
495
|
+
return { globalTag: m.a.GLOBAL_TAG, forceGlobalTag: m.a.FORCE_GLOBAL_TAG, enableVerbose: m.a.ENABLE_VERBOSE, enableDebug: m.a.ENABLE_DEBUG, enableInfo: m.a.ENABLE_INFO, enableWarn: m.a.ENABLE_WARN, enableError: m.a.ENABLE_ERROR, enableCallback: m.a.ENABLE_CALLBACK };
|
|
496
|
+
}, v.applyConfig = function(f) {
|
|
497
|
+
m.a.GLOBAL_TAG = f.globalTag, m.a.FORCE_GLOBAL_TAG = f.forceGlobalTag, m.a.ENABLE_VERBOSE = f.enableVerbose, m.a.ENABLE_DEBUG = f.enableDebug, m.a.ENABLE_INFO = f.enableInfo, m.a.ENABLE_WARN = f.enableWarn, m.a.ENABLE_ERROR = f.enableError, m.a.ENABLE_CALLBACK = f.enableCallback;
|
|
498
|
+
}, v._notifyChange = function() {
|
|
499
|
+
var f = v.emitter;
|
|
500
|
+
if (f.listenerCount("change") > 0) {
|
|
501
|
+
var L = v.getConfig();
|
|
502
|
+
f.emit("change", L);
|
|
503
|
+
}
|
|
504
|
+
}, v.registerListener = function(f) {
|
|
505
|
+
v.emitter.addListener("change", f);
|
|
506
|
+
}, v.removeListener = function(f) {
|
|
507
|
+
v.emitter.removeListener("change", f);
|
|
508
|
+
}, v.addLogListener = function(f) {
|
|
509
|
+
m.a.emitter.addListener("log", f), m.a.emitter.listenerCount("log") > 0 && (m.a.ENABLE_CALLBACK = !0, v._notifyChange());
|
|
510
|
+
}, v.removeLogListener = function(f) {
|
|
511
|
+
m.a.emitter.removeListener("log", f), m.a.emitter.listenerCount("log") === 0 && (m.a.ENABLE_CALLBACK = !1, v._notifyChange());
|
|
512
|
+
}, v;
|
|
513
|
+
}();
|
|
514
|
+
b.emitter = new B.a(), Z.a = b;
|
|
515
|
+
}, function(fe, Z, O) {
|
|
516
|
+
var U = O(6), B = O.n(U), m = O(0), b = O(4), v = O(8);
|
|
517
|
+
function f(r, t, i) {
|
|
518
|
+
var e = r;
|
|
519
|
+
if (t + i < e.length) {
|
|
520
|
+
for (; i--; ) if ((192 & e[++t]) != 128) return !1;
|
|
521
|
+
return !0;
|
|
522
|
+
}
|
|
523
|
+
return !1;
|
|
524
|
+
}
|
|
525
|
+
var L, x = function(r) {
|
|
526
|
+
for (var t = [], i = r, e = 0, a = r.length; e < a; ) if (i[e] < 128) t.push(String.fromCharCode(i[e])), ++e;
|
|
527
|
+
else {
|
|
528
|
+
if (!(i[e] < 192)) {
|
|
529
|
+
if (i[e] < 224) {
|
|
530
|
+
if (f(i, e, 1) && (s = (31 & i[e]) << 6 | 63 & i[e + 1]) >= 128) {
|
|
531
|
+
t.push(String.fromCharCode(65535 & s)), e += 2;
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
} else if (i[e] < 240) {
|
|
535
|
+
if (f(i, e, 2) && (s = (15 & i[e]) << 12 | (63 & i[e + 1]) << 6 | 63 & i[e + 2]) >= 2048 && (63488 & s) != 55296) {
|
|
536
|
+
t.push(String.fromCharCode(65535 & s)), e += 3;
|
|
537
|
+
continue;
|
|
538
|
+
}
|
|
539
|
+
} else if (i[e] < 248) {
|
|
540
|
+
var s;
|
|
541
|
+
if (f(i, e, 3) && (s = (7 & i[e]) << 18 | (63 & i[e + 1]) << 12 | (63 & i[e + 2]) << 6 | 63 & i[e + 3]) > 65536 && s < 1114112) {
|
|
542
|
+
s -= 65536, t.push(String.fromCharCode(s >>> 10 | 55296)), t.push(String.fromCharCode(1023 & s | 56320)), e += 4;
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
t.push("�"), ++e;
|
|
548
|
+
}
|
|
549
|
+
return t.join("");
|
|
550
|
+
}, C = O(3), V = (L = new ArrayBuffer(2), new DataView(L).setInt16(0, 256, !0), new Int16Array(L)[0] === 256), H = function() {
|
|
551
|
+
function r() {
|
|
552
|
+
}
|
|
553
|
+
return r.parseScriptData = function(t, i, e) {
|
|
554
|
+
var a = {};
|
|
555
|
+
try {
|
|
556
|
+
var s = r.parseValue(t, i, e), n = r.parseValue(t, i + s.size, e - s.size);
|
|
557
|
+
a[s.data] = n.data;
|
|
558
|
+
} catch (o) {
|
|
559
|
+
m.a.e("AMF", o.toString());
|
|
560
|
+
}
|
|
561
|
+
return a;
|
|
562
|
+
}, r.parseObject = function(t, i, e) {
|
|
563
|
+
if (e < 3) throw new C.a("Data not enough when parse ScriptDataObject");
|
|
564
|
+
var a = r.parseString(t, i, e), s = r.parseValue(t, i + a.size, e - a.size), n = s.objectEnd;
|
|
565
|
+
return { data: { name: a.data, value: s.data }, size: a.size + s.size, objectEnd: n };
|
|
566
|
+
}, r.parseVariable = function(t, i, e) {
|
|
567
|
+
return r.parseObject(t, i, e);
|
|
568
|
+
}, r.parseString = function(t, i, e) {
|
|
569
|
+
if (e < 2) throw new C.a("Data not enough when parse String");
|
|
570
|
+
var a = new DataView(t, i, e).getUint16(0, !V);
|
|
571
|
+
return { data: a > 0 ? x(new Uint8Array(t, i + 2, a)) : "", size: 2 + a };
|
|
572
|
+
}, r.parseLongString = function(t, i, e) {
|
|
573
|
+
if (e < 4) throw new C.a("Data not enough when parse LongString");
|
|
574
|
+
var a = new DataView(t, i, e).getUint32(0, !V);
|
|
575
|
+
return { data: a > 0 ? x(new Uint8Array(t, i + 4, a)) : "", size: 4 + a };
|
|
576
|
+
}, r.parseDate = function(t, i, e) {
|
|
577
|
+
if (e < 10) throw new C.a("Data size invalid when parse Date");
|
|
578
|
+
var a = new DataView(t, i, e), s = a.getFloat64(0, !V), n = a.getInt16(8, !V);
|
|
579
|
+
return { data: new Date(s += 60 * n * 1e3), size: 10 };
|
|
580
|
+
}, r.parseValue = function(t, i, e) {
|
|
581
|
+
if (e < 1) throw new C.a("Data not enough when parse Value");
|
|
582
|
+
var a, s = new DataView(t, i, e), n = 1, o = s.getUint8(0), p = !1;
|
|
583
|
+
try {
|
|
584
|
+
switch (o) {
|
|
585
|
+
case 0:
|
|
586
|
+
a = s.getFloat64(1, !V), n += 8;
|
|
587
|
+
break;
|
|
588
|
+
case 1:
|
|
589
|
+
a = !!s.getUint8(1), n += 1;
|
|
590
|
+
break;
|
|
591
|
+
case 2:
|
|
592
|
+
var g = r.parseString(t, i + 1, e - 1);
|
|
593
|
+
a = g.data, n += g.size;
|
|
594
|
+
break;
|
|
595
|
+
case 3:
|
|
596
|
+
a = {};
|
|
597
|
+
var E = 0;
|
|
598
|
+
for ((16777215 & s.getUint32(e - 4, !V)) == 9 && (E = 3); n < e - 4; ) {
|
|
599
|
+
var A = r.parseObject(t, i + n, e - n - E);
|
|
600
|
+
if (A.objectEnd) break;
|
|
601
|
+
a[A.data.name] = A.data.value, n += A.size;
|
|
602
|
+
}
|
|
603
|
+
n <= e - 3 && (16777215 & s.getUint32(n - 1, !V)) === 9 && (n += 3);
|
|
604
|
+
break;
|
|
605
|
+
case 8:
|
|
606
|
+
for (a = {}, n += 4, E = 0, (16777215 & s.getUint32(e - 4, !V)) == 9 && (E = 3); n < e - 8; ) {
|
|
607
|
+
var S = r.parseVariable(t, i + n, e - n - E);
|
|
608
|
+
if (S.objectEnd) break;
|
|
609
|
+
a[S.data.name] = S.data.value, n += S.size;
|
|
610
|
+
}
|
|
611
|
+
n <= e - 3 && (16777215 & s.getUint32(n - 1, !V)) === 9 && (n += 3);
|
|
612
|
+
break;
|
|
613
|
+
case 9:
|
|
614
|
+
a = void 0, n = 1, p = !0;
|
|
615
|
+
break;
|
|
616
|
+
case 10:
|
|
617
|
+
a = [];
|
|
618
|
+
var w = s.getUint32(1, !V);
|
|
619
|
+
n += 4;
|
|
620
|
+
for (var I = 0; I < w; I++) {
|
|
621
|
+
var z = r.parseValue(t, i + n, e - n);
|
|
622
|
+
a.push(z.data), n += z.size;
|
|
623
|
+
}
|
|
624
|
+
break;
|
|
625
|
+
case 11:
|
|
626
|
+
var N = r.parseDate(t, i + 1, e - 1);
|
|
627
|
+
a = N.data, n += N.size;
|
|
628
|
+
break;
|
|
629
|
+
case 12:
|
|
630
|
+
var J = r.parseString(t, i + 1, e - 1);
|
|
631
|
+
a = J.data, n += J.size;
|
|
632
|
+
break;
|
|
633
|
+
default:
|
|
634
|
+
n = e, m.a.w("AMF", "Unsupported AMF value type " + o);
|
|
635
|
+
}
|
|
636
|
+
} catch (W) {
|
|
637
|
+
m.a.e("AMF", W.toString());
|
|
638
|
+
}
|
|
639
|
+
return { data: a, size: n, objectEnd: p };
|
|
640
|
+
}, r;
|
|
641
|
+
}(), ue = function() {
|
|
642
|
+
function r(t) {
|
|
643
|
+
this.TAG = "ExpGolomb", this._buffer = t, this._buffer_index = 0, this._total_bytes = t.byteLength, this._total_bits = 8 * t.byteLength, this._current_word = 0, this._current_word_bits_left = 0;
|
|
644
|
+
}
|
|
645
|
+
return r.prototype.destroy = function() {
|
|
646
|
+
this._buffer = null;
|
|
647
|
+
}, r.prototype._fillCurrentWord = function() {
|
|
648
|
+
var t = this._total_bytes - this._buffer_index;
|
|
649
|
+
if (t <= 0) throw new C.a("ExpGolomb: _fillCurrentWord() but no bytes available");
|
|
650
|
+
var i = Math.min(4, t), e = new Uint8Array(4);
|
|
651
|
+
e.set(this._buffer.subarray(this._buffer_index, this._buffer_index + i)), this._current_word = new DataView(e.buffer).getUint32(0, !1), this._buffer_index += i, this._current_word_bits_left = 8 * i;
|
|
652
|
+
}, r.prototype.readBits = function(t) {
|
|
653
|
+
if (t > 32) throw new C.b("ExpGolomb: readBits() bits exceeded max 32bits!");
|
|
654
|
+
if (t <= this._current_word_bits_left) {
|
|
655
|
+
var i = this._current_word >>> 32 - t;
|
|
656
|
+
return this._current_word <<= t, this._current_word_bits_left -= t, i;
|
|
657
|
+
}
|
|
658
|
+
var e = this._current_word_bits_left ? this._current_word : 0;
|
|
659
|
+
e >>>= 32 - this._current_word_bits_left;
|
|
660
|
+
var a = t - this._current_word_bits_left;
|
|
661
|
+
this._fillCurrentWord();
|
|
662
|
+
var s = Math.min(a, this._current_word_bits_left), n = this._current_word >>> 32 - s;
|
|
663
|
+
return this._current_word <<= s, this._current_word_bits_left -= s, e = e << s | n;
|
|
664
|
+
}, r.prototype.readBool = function() {
|
|
665
|
+
return this.readBits(1) === 1;
|
|
666
|
+
}, r.prototype.readByte = function() {
|
|
667
|
+
return this.readBits(8);
|
|
668
|
+
}, r.prototype._skipLeadingZero = function() {
|
|
669
|
+
var t;
|
|
670
|
+
for (t = 0; t < this._current_word_bits_left; t++) if (this._current_word & 2147483648 >>> t) return this._current_word <<= t, this._current_word_bits_left -= t, t;
|
|
671
|
+
return this._fillCurrentWord(), t + this._skipLeadingZero();
|
|
672
|
+
}, r.prototype.readUEG = function() {
|
|
673
|
+
var t = this._skipLeadingZero();
|
|
674
|
+
return this.readBits(t + 1) - 1;
|
|
675
|
+
}, r.prototype.readSEG = function() {
|
|
676
|
+
var t = this.readUEG();
|
|
677
|
+
return 1 & t ? t + 1 >>> 1 : -1 * (t >>> 1);
|
|
678
|
+
}, r;
|
|
679
|
+
}(), se = function() {
|
|
680
|
+
function r() {
|
|
681
|
+
}
|
|
682
|
+
return r._ebsp2rbsp = function(t) {
|
|
683
|
+
for (var i = t, e = i.byteLength, a = new Uint8Array(e), s = 0, n = 0; n < e; n++) n >= 2 && i[n] === 3 && i[n - 1] === 0 && i[n - 2] === 0 || (a[s] = i[n], s++);
|
|
684
|
+
return new Uint8Array(a.buffer, 0, s);
|
|
685
|
+
}, r.parseSPS = function(t) {
|
|
686
|
+
for (var i = t.subarray(1, 4), e = "avc1.", a = 0; a < 3; a++) {
|
|
687
|
+
var s = i[a].toString(16);
|
|
688
|
+
s.length < 2 && (s = "0" + s), e += s;
|
|
689
|
+
}
|
|
690
|
+
var n = r._ebsp2rbsp(t), o = new ue(n);
|
|
691
|
+
o.readByte();
|
|
692
|
+
var p = o.readByte();
|
|
693
|
+
o.readByte();
|
|
694
|
+
var g = o.readByte();
|
|
695
|
+
o.readUEG();
|
|
696
|
+
var E = r.getProfileString(p), A = r.getLevelString(g), S = 1, w = 420, I = 8, z = 8;
|
|
697
|
+
if ((p === 100 || p === 110 || p === 122 || p === 244 || p === 44 || p === 83 || p === 86 || p === 118 || p === 128 || p === 138 || p === 144) && ((S = o.readUEG()) === 3 && o.readBits(1), S <= 3 && (w = [0, 420, 422, 444][S]), I = o.readUEG() + 8, z = o.readUEG() + 8, o.readBits(1), o.readBool())) for (var N = S !== 3 ? 8 : 12, J = 0; J < N; J++) o.readBool() && (J < 6 ? r._skipScalingList(o, 16) : r._skipScalingList(o, 64));
|
|
698
|
+
o.readUEG();
|
|
699
|
+
var W = o.readUEG();
|
|
700
|
+
if (W === 0) o.readUEG();
|
|
701
|
+
else if (W === 1) {
|
|
702
|
+
o.readBits(1), o.readSEG(), o.readSEG();
|
|
703
|
+
var q = o.readUEG();
|
|
704
|
+
for (J = 0; J < q; J++) o.readSEG();
|
|
705
|
+
}
|
|
706
|
+
var de = o.readUEG();
|
|
707
|
+
o.readBits(1);
|
|
708
|
+
var he = o.readUEG(), K = o.readUEG(), Q = o.readBits(1);
|
|
709
|
+
Q === 0 && o.readBits(1), o.readBits(1);
|
|
710
|
+
var _e = 0, te = 0, ne = 0, be = 0;
|
|
711
|
+
o.readBool() && (_e = o.readUEG(), te = o.readUEG(), ne = o.readUEG(), be = o.readUEG());
|
|
712
|
+
var Ae = 1, le = 1, ye = 0, Re = !0, ke = 0, Ne = 0;
|
|
713
|
+
if (o.readBool()) {
|
|
714
|
+
if (o.readBool()) {
|
|
715
|
+
var Pe = o.readByte();
|
|
716
|
+
Pe > 0 && Pe < 16 ? (Ae = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Pe - 1], le = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Pe - 1]) : Pe === 255 && (Ae = o.readByte() << 8 | o.readByte(), le = o.readByte() << 8 | o.readByte());
|
|
717
|
+
}
|
|
718
|
+
if (o.readBool() && o.readBool(), o.readBool() && (o.readBits(4), o.readBool() && o.readBits(24)), o.readBool() && (o.readUEG(), o.readUEG()), o.readBool()) {
|
|
719
|
+
var Ge = o.readBits(32), je = o.readBits(32);
|
|
720
|
+
Re = o.readBool(), ye = (ke = je) / (Ne = 2 * Ge);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
var Fe = 1;
|
|
724
|
+
Ae === 1 && le === 1 || (Fe = Ae / le);
|
|
725
|
+
var Ce = 0, ge = 0;
|
|
726
|
+
S === 0 ? (Ce = 1, ge = 2 - Q) : (Ce = S === 3 ? 1 : 2, ge = (S === 1 ? 2 : 1) * (2 - Q));
|
|
727
|
+
var xe = 16 * (he + 1), Ue = 16 * (K + 1) * (2 - Q);
|
|
728
|
+
xe -= (_e + te) * Ce, Ue -= (ne + be) * ge;
|
|
729
|
+
var Je = Math.ceil(xe * Fe);
|
|
730
|
+
return o.destroy(), o = null, { codec_mimetype: e, profile_idc: p, level_idc: g, profile_string: E, level_string: A, chroma_format_idc: S, bit_depth: I, bit_depth_luma: I, bit_depth_chroma: z, ref_frames: de, chroma_format: w, chroma_format_string: r.getChromaFormatString(w), frame_rate: { fixed: Re, fps: ye, fps_den: Ne, fps_num: ke }, sar_ratio: { width: Ae, height: le }, codec_size: { width: xe, height: Ue }, present_size: { width: Je, height: Ue } };
|
|
731
|
+
}, r._skipScalingList = function(t, i) {
|
|
732
|
+
for (var e = 8, a = 8, s = 0; s < i; s++) a !== 0 && (a = (e + t.readSEG() + 256) % 256), e = a === 0 ? e : a;
|
|
733
|
+
}, r.getProfileString = function(t) {
|
|
734
|
+
switch (t) {
|
|
735
|
+
case 66:
|
|
736
|
+
return "Baseline";
|
|
737
|
+
case 77:
|
|
738
|
+
return "Main";
|
|
739
|
+
case 88:
|
|
740
|
+
return "Extended";
|
|
741
|
+
case 100:
|
|
742
|
+
return "High";
|
|
743
|
+
case 110:
|
|
744
|
+
return "High10";
|
|
745
|
+
case 122:
|
|
746
|
+
return "High422";
|
|
747
|
+
case 244:
|
|
748
|
+
return "High444";
|
|
749
|
+
default:
|
|
750
|
+
return "Unknown";
|
|
751
|
+
}
|
|
752
|
+
}, r.getLevelString = function(t) {
|
|
753
|
+
return (t / 10).toFixed(1);
|
|
754
|
+
}, r.getChromaFormatString = function(t) {
|
|
755
|
+
switch (t) {
|
|
756
|
+
case 420:
|
|
757
|
+
return "4:2:0";
|
|
758
|
+
case 422:
|
|
759
|
+
return "4:2:2";
|
|
760
|
+
case 444:
|
|
761
|
+
return "4:4:4";
|
|
762
|
+
default:
|
|
763
|
+
return "Unknown";
|
|
764
|
+
}
|
|
765
|
+
}, r;
|
|
766
|
+
}(), Y = O(5), ae = function() {
|
|
767
|
+
function r() {
|
|
768
|
+
}
|
|
769
|
+
return r._ebsp2rbsp = function(t) {
|
|
770
|
+
for (var i = t, e = i.byteLength, a = new Uint8Array(e), s = 0, n = 0; n < e; n++) n >= 2 && i[n] === 3 && i[n - 1] === 0 && i[n - 2] === 0 || (a[s] = i[n], s++);
|
|
771
|
+
return new Uint8Array(a.buffer, 0, s);
|
|
772
|
+
}, r.parseVPS = function(t) {
|
|
773
|
+
var i = r._ebsp2rbsp(t), e = new ue(i);
|
|
774
|
+
return e.readByte(), e.readByte(), e.readBits(4), e.readBits(2), e.readBits(6), { num_temporal_layers: e.readBits(3) + 1, temporal_id_nested: e.readBool() };
|
|
775
|
+
}, r.parseSPS = function(t) {
|
|
776
|
+
var i = r._ebsp2rbsp(t), e = new ue(i);
|
|
777
|
+
e.readByte(), e.readByte();
|
|
778
|
+
for (var a = 0, s = 0, n = 0, o = 0, p = (e.readBits(4), e.readBits(3)), g = (e.readBool(), e.readBits(2)), E = e.readBool(), A = e.readBits(5), S = e.readByte(), w = e.readByte(), I = e.readByte(), z = e.readByte(), N = e.readByte(), J = e.readByte(), W = e.readByte(), q = e.readByte(), de = e.readByte(), he = e.readByte(), K = e.readByte(), Q = [], _e = [], te = 0; te < p; te++) Q.push(e.readBool()), _e.push(e.readBool());
|
|
779
|
+
if (p > 0) for (te = p; te < 8; te++) e.readBits(2);
|
|
780
|
+
for (te = 0; te < p; te++) Q[te] && (e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte()), _e[te] && e.readByte();
|
|
781
|
+
e.readUEG();
|
|
782
|
+
var ne = e.readUEG();
|
|
783
|
+
ne == 3 && e.readBits(1);
|
|
784
|
+
var be = e.readUEG(), Ae = e.readUEG();
|
|
785
|
+
e.readBool() && (a += e.readUEG(), s += e.readUEG(), n += e.readUEG(), o += e.readUEG());
|
|
786
|
+
var le = e.readUEG(), ye = e.readUEG(), Re = e.readUEG();
|
|
787
|
+
for (te = e.readBool() ? 0 : p; te <= p; te++) e.readUEG(), e.readUEG(), e.readUEG();
|
|
788
|
+
if (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readBool() && e.readBool()) for (var ke = 0; ke < 4; ke++) for (var Ne = 0; Ne < (ke === 3 ? 2 : 6); Ne++)
|
|
789
|
+
if (e.readBool()) {
|
|
790
|
+
var Pe = Math.min(64, 1 << 4 + (ke << 1));
|
|
791
|
+
for (ke > 1 && e.readSEG(), te = 0; te < Pe; te++) e.readSEG();
|
|
792
|
+
} else e.readUEG();
|
|
793
|
+
e.readBool(), e.readBool(), e.readBool() && (e.readByte(), e.readUEG(), e.readUEG(), e.readBool());
|
|
794
|
+
var Ge = e.readUEG(), je = 0;
|
|
795
|
+
for (te = 0; te < Ge; te++) {
|
|
796
|
+
var Fe = !1;
|
|
797
|
+
if (te !== 0 && (Fe = e.readBool()), Fe) {
|
|
798
|
+
te === Ge && e.readUEG(), e.readBool(), e.readUEG();
|
|
799
|
+
for (var Ce = 0, ge = 0; ge <= je; ge++) {
|
|
800
|
+
var xe = e.readBool(), Ue = !1;
|
|
801
|
+
xe || (Ue = e.readBool()), (xe || Ue) && Ce++;
|
|
802
|
+
}
|
|
803
|
+
je = Ce;
|
|
804
|
+
} else {
|
|
805
|
+
var Je = e.readUEG(), ft = e.readUEG();
|
|
806
|
+
for (je = Je + ft, ge = 0; ge < Je; ge++) e.readUEG(), e.readBool();
|
|
807
|
+
for (ge = 0; ge < ft; ge++) e.readUEG(), e.readBool();
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
if (e.readBool()) {
|
|
811
|
+
var Wt = e.readUEG();
|
|
812
|
+
for (te = 0; te < Wt; te++) {
|
|
813
|
+
for (ge = 0; ge < Re + 4; ge++) e.readBits(1);
|
|
814
|
+
e.readBits(1);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
var pt = 0, He = 1, qe = 1, mt = !1, it = 1, rt = 1;
|
|
818
|
+
if (e.readBool(), e.readBool(), e.readBool()) {
|
|
819
|
+
if (e.readBool()) {
|
|
820
|
+
var Ke = e.readByte();
|
|
821
|
+
Ke > 0 && Ke <= 16 ? (He = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Ke - 1], qe = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Ke - 1]) : Ke === 255 && (He = e.readBits(16), qe = e.readBits(16));
|
|
822
|
+
}
|
|
823
|
+
if (e.readBool() && e.readBool(), e.readBool() && (e.readBits(3), e.readBool(), e.readBool() && (e.readByte(), e.readByte(), e.readByte())), e.readBool() && (e.readUEG(), e.readUEG()), e.readBool(), e.readBool(), e.readBool(), e.readBool() && (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG()), e.readBool() && (it = e.readBits(32), rt = e.readBits(32), e.readBool() && (e.readUEG(), e.readBool()))) {
|
|
824
|
+
var at = !1, nt = !1, Ze = !1;
|
|
825
|
+
for (at = e.readBool(), nt = e.readBool(), (at || nt) && ((Ze = e.readBool()) && (e.readByte(), e.readBits(5), e.readBool(), e.readBits(5)), e.readBits(4), e.readBits(4), Ze && e.readBits(4), e.readBits(5), e.readBits(5), e.readBits(5)), te = 0; te <= p; te++) {
|
|
826
|
+
var gt = e.readBool();
|
|
827
|
+
mt = gt;
|
|
828
|
+
var vt = !1, st = 1;
|
|
829
|
+
gt || (vt = e.readBool());
|
|
830
|
+
var yt = !1;
|
|
831
|
+
if (vt ? e.readSEG() : yt = e.readBool(), yt || (st = e.readUEG() + 1), at) for (ge = 0; ge < st; ge++) e.readUEG(), e.readUEG(), Ze && (e.readUEG(), e.readUEG());
|
|
832
|
+
if (nt) for (ge = 0; ge < st; ge++) e.readUEG(), e.readUEG(), Ze && (e.readUEG(), e.readUEG());
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
e.readBool() && (e.readBool(), e.readBool(), e.readBool(), pt = e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG());
|
|
836
|
+
}
|
|
837
|
+
e.readBool();
|
|
838
|
+
var Xt = "hvc1." + A + ".1.L" + K + ".B0", bt = be - (a + s) * (ne === 1 || ne === 2 ? 2 : 1), St = Ae - (n + o) * (ne === 1 ? 2 : 1), Et = 1;
|
|
839
|
+
return He !== 1 && qe !== 1 && (Et = He / qe), e.destroy(), e = null, { codec_mimetype: Xt, level_string: r.getLevelString(K), profile_idc: A, bit_depth: le + 8, ref_frames: 1, chroma_format: ne, chroma_format_string: r.getChromaFormatString(ne), general_level_idc: K, general_profile_space: g, general_tier_flag: E, general_profile_idc: A, general_profile_compatibility_flags_1: S, general_profile_compatibility_flags_2: w, general_profile_compatibility_flags_3: I, general_profile_compatibility_flags_4: z, general_constraint_indicator_flags_1: N, general_constraint_indicator_flags_2: J, general_constraint_indicator_flags_3: W, general_constraint_indicator_flags_4: q, general_constraint_indicator_flags_5: de, general_constraint_indicator_flags_6: he, min_spatial_segmentation_idc: pt, constant_frame_rate: 0, chroma_format_idc: ne, bit_depth_luma_minus8: le, bit_depth_chroma_minus8: ye, frame_rate: { fixed: mt, fps: rt / it, fps_den: it, fps_num: rt }, sar_ratio: { width: He, height: qe }, codec_size: { width: bt, height: St }, present_size: { width: bt * Et, height: St } };
|
|
840
|
+
}, r.parsePPS = function(t) {
|
|
841
|
+
var i = r._ebsp2rbsp(t), e = new ue(i);
|
|
842
|
+
e.readByte(), e.readByte(), e.readUEG(), e.readUEG(), e.readBool(), e.readBool(), e.readBits(3), e.readBool(), e.readBool(), e.readUEG(), e.readUEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool() && e.readUEG(), e.readSEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool(), e.readBool();
|
|
843
|
+
var a = e.readBool(), s = e.readBool(), n = 1;
|
|
844
|
+
return s && a ? n = 0 : s ? n = 3 : a && (n = 2), { parallelismType: n };
|
|
845
|
+
}, r.getChromaFormatString = function(t) {
|
|
846
|
+
switch (t) {
|
|
847
|
+
case 0:
|
|
848
|
+
return "4:0:0";
|
|
849
|
+
case 1:
|
|
850
|
+
return "4:2:0";
|
|
851
|
+
case 2:
|
|
852
|
+
return "4:2:2";
|
|
853
|
+
case 3:
|
|
854
|
+
return "4:4:4";
|
|
855
|
+
default:
|
|
856
|
+
return "Unknown";
|
|
857
|
+
}
|
|
858
|
+
}, r.getProfileString = function(t) {
|
|
859
|
+
switch (t) {
|
|
860
|
+
case 1:
|
|
861
|
+
return "Main";
|
|
862
|
+
case 2:
|
|
863
|
+
return "Main10";
|
|
864
|
+
case 3:
|
|
865
|
+
return "MainSP";
|
|
866
|
+
case 4:
|
|
867
|
+
return "Rext";
|
|
868
|
+
case 9:
|
|
869
|
+
return "SCC";
|
|
870
|
+
default:
|
|
871
|
+
return "Unknown";
|
|
872
|
+
}
|
|
873
|
+
}, r.getLevelString = function(t) {
|
|
874
|
+
return (t / 30).toFixed(1);
|
|
875
|
+
}, r;
|
|
876
|
+
}();
|
|
877
|
+
function y(r) {
|
|
878
|
+
return r.byteOffset % 2 == 0 && r.byteLength % 2 == 0;
|
|
879
|
+
}
|
|
880
|
+
function G(r) {
|
|
881
|
+
return r.byteOffset % 4 == 0 && r.byteLength % 4 == 0;
|
|
882
|
+
}
|
|
883
|
+
function T(r, t) {
|
|
884
|
+
for (var i = 0; i < r.length; i++) if (r[i] !== t[i]) return !1;
|
|
885
|
+
return !0;
|
|
886
|
+
}
|
|
887
|
+
var l = function(r, t) {
|
|
888
|
+
return r.byteLength === t.byteLength && (G(r) && G(t) ? function(i, e) {
|
|
889
|
+
return T(new Uint32Array(i.buffer, i.byteOffset, i.byteLength / 4), new Uint32Array(e.buffer, e.byteOffset, e.byteLength / 4));
|
|
890
|
+
}(r, t) : y(r) && y(t) ? function(i, e) {
|
|
891
|
+
return T(new Uint16Array(i.buffer, i.byteOffset, i.byteLength / 2), new Uint16Array(e.buffer, e.byteOffset, e.byteLength / 2));
|
|
892
|
+
}(r, t) : function(i, e) {
|
|
893
|
+
return T(i, e);
|
|
894
|
+
}(r, t));
|
|
895
|
+
}, u, _ = function() {
|
|
896
|
+
function r(t, i) {
|
|
897
|
+
this.TAG = "FLVDemuxer", this._config = i, this._onError = null, this._onMediaInfo = null, this._onMetaDataArrived = null, this._onScriptDataArrived = null, this._onTrackMetadata = null, this._onDataAvailable = null, this._dataOffset = t.dataOffset, this._firstParse = !0, this._dispatch = !1, this._hasAudio = t.hasAudioTrack, this._hasVideo = t.hasVideoTrack, this._hasAudioFlagOverrided = !1, this._hasVideoFlagOverrided = !1, this._audioInitialMetadataDispatched = !1, this._videoInitialMetadataDispatched = !1, this._mediaInfo = new v.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 = function() {
|
|
898
|
+
var e = new ArrayBuffer(2);
|
|
899
|
+
return new DataView(e).setInt16(0, 256, !0), new Int16Array(e)[0] === 256;
|
|
900
|
+
}();
|
|
901
|
+
}
|
|
902
|
+
return r.prototype.destroy = function() {
|
|
903
|
+
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;
|
|
904
|
+
}, r.probe = function(t) {
|
|
905
|
+
var i = new Uint8Array(t);
|
|
906
|
+
if (i.byteLength < 9) return { needMoreData: !0 };
|
|
907
|
+
var e = { match: !1 };
|
|
908
|
+
if (i[0] !== 70 || i[1] !== 76 || i[2] !== 86 || i[3] !== 1) return e;
|
|
909
|
+
var a, s, n = (4 & i[4]) >>> 2 != 0, o = (1 & i[4]) != 0, p = (a = i)[s = 5] << 24 | a[s + 1] << 16 | a[s + 2] << 8 | a[s + 3];
|
|
910
|
+
return p < 9 ? e : { match: !0, consumed: p, dataOffset: p, hasAudioTrack: n, hasVideoTrack: o };
|
|
911
|
+
}, r.prototype.bindDataSource = function(t) {
|
|
912
|
+
return t.onDataArrival = this.parseChunks.bind(this), this;
|
|
913
|
+
}, Object.defineProperty(r.prototype, "onTrackMetadata", { get: function() {
|
|
914
|
+
return this._onTrackMetadata;
|
|
915
|
+
}, set: function(t) {
|
|
916
|
+
this._onTrackMetadata = t;
|
|
917
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onMediaInfo", { get: function() {
|
|
918
|
+
return this._onMediaInfo;
|
|
919
|
+
}, set: function(t) {
|
|
920
|
+
this._onMediaInfo = t;
|
|
921
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onMetaDataArrived", { get: function() {
|
|
922
|
+
return this._onMetaDataArrived;
|
|
923
|
+
}, set: function(t) {
|
|
924
|
+
this._onMetaDataArrived = t;
|
|
925
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onScriptDataArrived", { get: function() {
|
|
926
|
+
return this._onScriptDataArrived;
|
|
927
|
+
}, set: function(t) {
|
|
928
|
+
this._onScriptDataArrived = t;
|
|
929
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onError", { get: function() {
|
|
930
|
+
return this._onError;
|
|
931
|
+
}, set: function(t) {
|
|
932
|
+
this._onError = t;
|
|
933
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onDataAvailable", { get: function() {
|
|
934
|
+
return this._onDataAvailable;
|
|
935
|
+
}, set: function(t) {
|
|
936
|
+
this._onDataAvailable = t;
|
|
937
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "timestampBase", { get: function() {
|
|
938
|
+
return this._timestampBase;
|
|
939
|
+
}, set: function(t) {
|
|
940
|
+
this._timestampBase = t;
|
|
941
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "overridedDuration", { get: function() {
|
|
942
|
+
return this._duration;
|
|
943
|
+
}, set: function(t) {
|
|
944
|
+
this._durationOverrided = !0, this._duration = t, this._mediaInfo.duration = t;
|
|
945
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "overridedHasAudio", { set: function(t) {
|
|
946
|
+
this._hasAudioFlagOverrided = !0, this._hasAudio = t, this._mediaInfo.hasAudio = t;
|
|
947
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "overridedHasVideo", { set: function(t) {
|
|
948
|
+
this._hasVideoFlagOverrided = !0, this._hasVideo = t, this._mediaInfo.hasVideo = t;
|
|
949
|
+
}, enumerable: !1, configurable: !0 }), r.prototype.resetMediaInfo = function() {
|
|
950
|
+
this._mediaInfo = new v.a();
|
|
951
|
+
}, r.prototype._isInitialMetadataDispatched = function() {
|
|
952
|
+
return this._hasAudio && this._hasVideo ? this._audioInitialMetadataDispatched && this._videoInitialMetadataDispatched : this._hasAudio && !this._hasVideo ? this._audioInitialMetadataDispatched : !(this._hasAudio || !this._hasVideo) && this._videoInitialMetadataDispatched;
|
|
953
|
+
}, r.prototype.parseChunks = function(t, i) {
|
|
954
|
+
if (!(this._onError && this._onMediaInfo && this._onTrackMetadata && this._onDataAvailable)) throw new C.a("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");
|
|
955
|
+
var e = 0, a = this._littleEndian;
|
|
956
|
+
if (i === 0) {
|
|
957
|
+
if (!(t.byteLength > 13)) return 0;
|
|
958
|
+
e = r.probe(t).dataOffset;
|
|
959
|
+
}
|
|
960
|
+
for (this._firstParse && (this._firstParse = !1, i + e !== this._dataOffset && m.a.w(this.TAG, "First time parsing but chunk byteStart invalid!"), (s = new DataView(t, e)).getUint32(0, !a) !== 0 && m.a.w(this.TAG, "PrevTagSize0 !== 0 !!!"), e += 4); e < t.byteLength; ) {
|
|
961
|
+
this._dispatch = !0;
|
|
962
|
+
var s = new DataView(t, e);
|
|
963
|
+
if (e + 11 + 4 > t.byteLength) break;
|
|
964
|
+
var n = s.getUint8(0), o = 16777215 & s.getUint32(0, !a);
|
|
965
|
+
if (e + 11 + o + 4 > t.byteLength) break;
|
|
966
|
+
if (n === 8 || n === 9 || n === 18) {
|
|
967
|
+
var p = s.getUint8(4), g = s.getUint8(5), E = s.getUint8(6) | g << 8 | p << 16 | s.getUint8(7) << 24;
|
|
968
|
+
16777215 & s.getUint32(7, !a) && m.a.w(this.TAG, "Meet tag which has StreamID != 0!");
|
|
969
|
+
var A = e + 11;
|
|
970
|
+
switch (n) {
|
|
971
|
+
case 8:
|
|
972
|
+
this._parseAudioData(t, A, o, E);
|
|
973
|
+
break;
|
|
974
|
+
case 9:
|
|
975
|
+
this._parseVideoData(t, A, o, E, i + e);
|
|
976
|
+
break;
|
|
977
|
+
case 18:
|
|
978
|
+
this._parseScriptData(t, A, o);
|
|
979
|
+
}
|
|
980
|
+
var S = s.getUint32(11 + o, !a);
|
|
981
|
+
S !== 11 + o && m.a.w(this.TAG, "Invalid PrevTagSize " + S), e += 11 + o + 4;
|
|
982
|
+
} else m.a.w(this.TAG, "Unsupported tag type " + n + ", skipped"), e += 11 + o + 4;
|
|
983
|
+
}
|
|
984
|
+
return this._isInitialMetadataDispatched() && this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack), e;
|
|
985
|
+
}, r.prototype._parseScriptData = function(t, i, e) {
|
|
986
|
+
var a = H.parseScriptData(t, i, e);
|
|
987
|
+
if (a.hasOwnProperty("onMetaData")) {
|
|
988
|
+
if (a.onMetaData == null || typeof a.onMetaData != "object") return void m.a.w(this.TAG, "Invalid onMetaData structure!");
|
|
989
|
+
this._metadata && m.a.w(this.TAG, "Found another onMetaData tag!"), this._metadata = a;
|
|
990
|
+
var s = this._metadata.onMetaData;
|
|
991
|
+
if (this._onMetaDataArrived && this._onMetaDataArrived(Object.assign({}, s)), typeof s.hasAudio == "boolean" && this._hasAudioFlagOverrided === !1 && (this._hasAudio = s.hasAudio, this._mediaInfo.hasAudio = this._hasAudio), typeof s.hasVideo == "boolean" && this._hasVideoFlagOverrided === !1 && (this._hasVideo = s.hasVideo, this._mediaInfo.hasVideo = this._hasVideo), typeof s.audiodatarate == "number" && (this._mediaInfo.audioDataRate = s.audiodatarate), typeof s.videodatarate == "number" && (this._mediaInfo.videoDataRate = s.videodatarate), typeof s.width == "number" && (this._mediaInfo.width = s.width), typeof s.height == "number" && (this._mediaInfo.height = s.height), typeof s.duration == "number") {
|
|
992
|
+
if (!this._durationOverrided) {
|
|
993
|
+
var n = Math.floor(s.duration * this._timescale);
|
|
994
|
+
this._duration = n, this._mediaInfo.duration = n;
|
|
995
|
+
}
|
|
996
|
+
} else this._mediaInfo.duration = 0;
|
|
997
|
+
if (typeof s.framerate == "number") {
|
|
998
|
+
var o = Math.floor(1e3 * s.framerate);
|
|
999
|
+
if (o > 0) {
|
|
1000
|
+
var p = o / 1e3;
|
|
1001
|
+
this._referenceFrameRate.fixed = !0, this._referenceFrameRate.fps = p, this._referenceFrameRate.fps_num = o, this._referenceFrameRate.fps_den = 1e3, this._mediaInfo.fps = p;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
if (typeof s.keyframes == "object") {
|
|
1005
|
+
this._mediaInfo.hasKeyframesIndex = !0;
|
|
1006
|
+
var g = s.keyframes;
|
|
1007
|
+
this._mediaInfo.keyframesIndex = this._parseKeyframesIndex(g), s.keyframes = null;
|
|
1008
|
+
} else this._mediaInfo.hasKeyframesIndex = !1;
|
|
1009
|
+
this._dispatch = !1, this._mediaInfo.metadata = s, m.a.v(this.TAG, "Parsed onMetaData"), this._mediaInfo.isComplete() && this._onMediaInfo(this._mediaInfo);
|
|
1010
|
+
}
|
|
1011
|
+
Object.keys(a).length > 0 && this._onScriptDataArrived && this._onScriptDataArrived(Object.assign({}, a));
|
|
1012
|
+
}, r.prototype._parseKeyframesIndex = function(t) {
|
|
1013
|
+
for (var i = [], e = [], a = 1; a < t.times.length; a++) {
|
|
1014
|
+
var s = this._timestampBase + Math.floor(1e3 * t.times[a]);
|
|
1015
|
+
i.push(s), e.push(t.filepositions[a]);
|
|
1016
|
+
}
|
|
1017
|
+
return { times: i, filepositions: e };
|
|
1018
|
+
}, r.prototype._parseAudioData = function(t, i, e, a) {
|
|
1019
|
+
if (e <= 1) m.a.w(this.TAG, "Flv: Invalid audio packet, missing SoundData payload!");
|
|
1020
|
+
else if (this._hasAudioFlagOverrided !== !0 || this._hasAudio !== !1) {
|
|
1021
|
+
this._littleEndian;
|
|
1022
|
+
var s = new DataView(t, i, e).getUint8(0), n = s >>> 4;
|
|
1023
|
+
if (n === 2 || n === 10) {
|
|
1024
|
+
var o = 0, p = (12 & s) >>> 2;
|
|
1025
|
+
if (p >= 0 && p <= 4) {
|
|
1026
|
+
o = this._flvSoundRateTable[p];
|
|
1027
|
+
var g = 1 & s, E = this._audioMetadata, A = this._audioTrack;
|
|
1028
|
+
if (E || (this._hasAudio === !1 && this._hasAudioFlagOverrided === !1 && (this._hasAudio = !0, this._mediaInfo.hasAudio = !0), (E = this._audioMetadata = {}).type = "audio", E.id = A.id, E.timescale = this._timescale, E.duration = this._duration, E.audioSampleRate = o, E.channelCount = g === 0 ? 1 : 2), n === 10) {
|
|
1029
|
+
var S = this._parseAACAudioData(t, i + 1, e - 1);
|
|
1030
|
+
if (S == null) return;
|
|
1031
|
+
if (S.packetType === 0) {
|
|
1032
|
+
if (E.config) {
|
|
1033
|
+
if (l(S.data.config, E.config)) return;
|
|
1034
|
+
m.a.w(this.TAG, "AudioSpecificConfig has been changed, re-generate initialization segment");
|
|
1035
|
+
}
|
|
1036
|
+
var w = S.data;
|
|
1037
|
+
E.audioSampleRate = w.samplingRate, E.channelCount = w.channelCount, E.codec = w.codec, E.originalCodec = w.originalCodec, E.config = w.config, E.refSampleDuration = 1024 / E.audioSampleRate * E.timescale, m.a.v(this.TAG, "Parsed AudioSpecificConfig"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._audioInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("audio", E), (N = this._mediaInfo).audioCodec = E.originalCodec, N.audioSampleRate = E.audioSampleRate, N.audioChannelCount = E.channelCount, N.hasVideo ? N.videoCodec != null && (N.mimeType = 'video/x-flv; codecs="' + N.videoCodec + "," + N.audioCodec + '"') : N.mimeType = 'video/x-flv; codecs="' + N.audioCodec + '"', N.isComplete() && this._onMediaInfo(N);
|
|
1038
|
+
} else if (S.packetType === 1) {
|
|
1039
|
+
var I = this._timestampBase + a, z = { unit: S.data, length: S.data.byteLength, dts: I, pts: I };
|
|
1040
|
+
A.samples.push(z), A.length += S.data.length;
|
|
1041
|
+
} else m.a.e(this.TAG, "Flv: Unsupported AAC data type " + S.packetType);
|
|
1042
|
+
} else if (n === 2) {
|
|
1043
|
+
if (!E.codec) {
|
|
1044
|
+
var N;
|
|
1045
|
+
if ((w = this._parseMP3AudioData(t, i + 1, e - 1, !0)) == null) return;
|
|
1046
|
+
E.audioSampleRate = w.samplingRate, E.channelCount = w.channelCount, E.codec = w.codec, E.originalCodec = w.originalCodec, E.refSampleDuration = 1152 / E.audioSampleRate * E.timescale, m.a.v(this.TAG, "Parsed MPEG Audio Frame Header"), this._audioInitialMetadataDispatched = !0, this._onTrackMetadata("audio", E), (N = this._mediaInfo).audioCodec = E.codec, N.audioSampleRate = E.audioSampleRate, N.audioChannelCount = E.channelCount, N.audioDataRate = w.bitRate, N.hasVideo ? N.videoCodec != null && (N.mimeType = 'video/x-flv; codecs="' + N.videoCodec + "," + N.audioCodec + '"') : N.mimeType = 'video/x-flv; codecs="' + N.audioCodec + '"', N.isComplete() && this._onMediaInfo(N);
|
|
1047
|
+
}
|
|
1048
|
+
var J = this._parseMP3AudioData(t, i + 1, e - 1, !1);
|
|
1049
|
+
if (J == null) return;
|
|
1050
|
+
I = this._timestampBase + a;
|
|
1051
|
+
var W = { unit: J, length: J.byteLength, dts: I, pts: I };
|
|
1052
|
+
A.samples.push(W), A.length += J.length;
|
|
1053
|
+
}
|
|
1054
|
+
} else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid audio sample rate idx: " + p);
|
|
1055
|
+
} else this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported audio codec idx: " + n);
|
|
1056
|
+
}
|
|
1057
|
+
}, r.prototype._parseAACAudioData = function(t, i, e) {
|
|
1058
|
+
if (!(e <= 1)) {
|
|
1059
|
+
var a = {}, s = new Uint8Array(t, i, e);
|
|
1060
|
+
return a.packetType = s[0], s[0] === 0 ? a.data = this._parseAACAudioSpecificConfig(t, i + 1, e - 1) : a.data = s.subarray(1), a;
|
|
1061
|
+
}
|
|
1062
|
+
m.a.w(this.TAG, "Flv: Invalid AAC packet, missing AACPacketType or/and Data!");
|
|
1063
|
+
}, r.prototype._parseAACAudioSpecificConfig = function(t, i, e) {
|
|
1064
|
+
var a, s, n = new Uint8Array(t, i, e), o = null, p = 0, g = null;
|
|
1065
|
+
if (p = a = n[0] >>> 3, (s = (7 & n[0]) << 1 | n[1] >>> 7) < 0 || s >= this._mpegSamplingRates.length) this._onError(Y.a.FORMAT_ERROR, "Flv: AAC invalid sampling frequency index!");
|
|
1066
|
+
else {
|
|
1067
|
+
var E = this._mpegSamplingRates[s], A = (120 & n[1]) >>> 3;
|
|
1068
|
+
if (!(A < 0 || A >= 8)) {
|
|
1069
|
+
p === 5 && (g = (7 & n[1]) << 1 | n[2] >>> 7, (124 & n[2]) >>> 2);
|
|
1070
|
+
var S = self.navigator.userAgent.toLowerCase();
|
|
1071
|
+
return S.indexOf("firefox") !== -1 ? s >= 6 ? (p = 5, o = new Array(4), g = s - 3) : (p = 2, o = new Array(2), g = s) : S.indexOf("android") !== -1 ? (p = 2, o = new Array(2), g = s) : (p = 5, g = s, o = new Array(4), s >= 6 ? g = s - 3 : A === 1 && (p = 2, o = new Array(2), g = s)), o[0] = p << 3, o[0] |= (15 & s) >>> 1, o[1] = (15 & s) << 7, o[1] |= (15 & A) << 3, p === 5 && (o[1] |= (15 & g) >>> 1, o[2] = (1 & g) << 7, o[2] |= 8, o[3] = 0), { config: o, samplingRate: E, channelCount: A, codec: "mp4a.40." + p, originalCodec: "mp4a.40." + a };
|
|
1072
|
+
}
|
|
1073
|
+
this._onError(Y.a.FORMAT_ERROR, "Flv: AAC invalid channel configuration");
|
|
1074
|
+
}
|
|
1075
|
+
}, r.prototype._parseMP3AudioData = function(t, i, e, a) {
|
|
1076
|
+
if (!(e < 4)) {
|
|
1077
|
+
this._littleEndian;
|
|
1078
|
+
var s = new Uint8Array(t, i, e), n = null;
|
|
1079
|
+
if (a) {
|
|
1080
|
+
if (s[0] !== 255) return;
|
|
1081
|
+
var o = s[1] >>> 3 & 3, p = (6 & s[1]) >> 1, g = (240 & s[2]) >>> 4, E = (12 & s[2]) >>> 2, A = (s[3] >>> 6 & 3) !== 3 ? 2 : 1, S = 0, w = 0;
|
|
1082
|
+
switch (o) {
|
|
1083
|
+
case 0:
|
|
1084
|
+
S = this._mpegAudioV25SampleRateTable[E];
|
|
1085
|
+
break;
|
|
1086
|
+
case 2:
|
|
1087
|
+
S = this._mpegAudioV20SampleRateTable[E];
|
|
1088
|
+
break;
|
|
1089
|
+
case 3:
|
|
1090
|
+
S = this._mpegAudioV10SampleRateTable[E];
|
|
1091
|
+
}
|
|
1092
|
+
switch (p) {
|
|
1093
|
+
case 1:
|
|
1094
|
+
g < this._mpegAudioL3BitRateTable.length && (w = this._mpegAudioL3BitRateTable[g]);
|
|
1095
|
+
break;
|
|
1096
|
+
case 2:
|
|
1097
|
+
g < this._mpegAudioL2BitRateTable.length && (w = this._mpegAudioL2BitRateTable[g]);
|
|
1098
|
+
break;
|
|
1099
|
+
case 3:
|
|
1100
|
+
g < this._mpegAudioL1BitRateTable.length && (w = this._mpegAudioL1BitRateTable[g]);
|
|
1101
|
+
}
|
|
1102
|
+
n = { bitRate: w, samplingRate: S, channelCount: A, codec: "mp3", originalCodec: "mp3" };
|
|
1103
|
+
} else n = s;
|
|
1104
|
+
return n;
|
|
1105
|
+
}
|
|
1106
|
+
m.a.w(this.TAG, "Flv: Invalid MP3 packet, header missing!");
|
|
1107
|
+
}, r.prototype._parseVideoData = function(t, i, e, a, s) {
|
|
1108
|
+
if (e <= 1) m.a.w(this.TAG, "Flv: Invalid video packet, missing VideoData payload!");
|
|
1109
|
+
else if (this._hasVideoFlagOverrided !== !0 || this._hasVideo !== !1) {
|
|
1110
|
+
var n = new Uint8Array(t, i, e)[0], o = (112 & n) >>> 4;
|
|
1111
|
+
if (128 & n) {
|
|
1112
|
+
var p = 15 & n, g = String.fromCharCode.apply(String, new Uint8Array(t, i, e).slice(1, 5));
|
|
1113
|
+
if (g !== "hvc1") return void this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + g);
|
|
1114
|
+
this._parseEnhancedHEVCVideoPacket(t, i + 5, e - 5, a, s, o, p);
|
|
1115
|
+
} else {
|
|
1116
|
+
var E = 15 & n;
|
|
1117
|
+
if (E === 7) this._parseAVCVideoPacket(t, i + 1, e - 1, a, s, o);
|
|
1118
|
+
else {
|
|
1119
|
+
if (E !== 12) return void this._onError(Y.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + E);
|
|
1120
|
+
this._parseHEVCVideoPacket(t, i + 1, e - 1, a, s, o);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}, r.prototype._parseAVCVideoPacket = function(t, i, e, a, s, n) {
|
|
1125
|
+
if (e < 4) m.a.w(this.TAG, "Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");
|
|
1126
|
+
else {
|
|
1127
|
+
var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
|
|
1128
|
+
if (g === 0) this._parseAVCDecoderConfigurationRecord(t, i + 4, e - 4);
|
|
1129
|
+
else if (g === 1) this._parseAVCVideoData(t, i + 4, e - 4, a, s, n, E);
|
|
1130
|
+
else if (g !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
|
|
1131
|
+
}
|
|
1132
|
+
}, r.prototype._parseHEVCVideoPacket = function(t, i, e, a, s, n) {
|
|
1133
|
+
if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
|
|
1134
|
+
else {
|
|
1135
|
+
var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
|
|
1136
|
+
if (g === 0) this._parseHEVCDecoderConfigurationRecord(t, i + 4, e - 4);
|
|
1137
|
+
else if (g === 1) this._parseHEVCVideoData(t, i + 4, e - 4, a, s, n, E);
|
|
1138
|
+
else if (g !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
|
|
1139
|
+
}
|
|
1140
|
+
}, r.prototype._parseEnhancedHEVCVideoPacket = function(t, i, e, a, s, n, o) {
|
|
1141
|
+
if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
|
|
1142
|
+
else {
|
|
1143
|
+
var p = this._littleEndian, g = new DataView(t, i, e);
|
|
1144
|
+
if (o === 0) this._parseHEVCDecoderConfigurationRecord(t, i, e);
|
|
1145
|
+
else if (o === 1) {
|
|
1146
|
+
var E = (4294967040 & g.getUint32(0, !p)) >> 8;
|
|
1147
|
+
this._parseHEVCVideoData(t, i + 3, e - 3, a, s, n, E);
|
|
1148
|
+
} else if (o === 3) this._parseHEVCVideoData(t, i, e, a, s, n, 0);
|
|
1149
|
+
else if (o !== 2) return void this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid video packet type " + o);
|
|
1150
|
+
}
|
|
1151
|
+
}, r.prototype._parseAVCDecoderConfigurationRecord = function(t, i, e) {
|
|
1152
|
+
if (e < 7) m.a.w(this.TAG, "Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");
|
|
1153
|
+
else {
|
|
1154
|
+
var a = this._videoMetadata, s = this._videoTrack, n = this._littleEndian, o = new DataView(t, i, e);
|
|
1155
|
+
if (a) {
|
|
1156
|
+
if (a.avcc !== void 0) {
|
|
1157
|
+
var p = new Uint8Array(t, i, e);
|
|
1158
|
+
if (l(p, a.avcc)) return;
|
|
1159
|
+
m.a.w(this.TAG, "AVCDecoderConfigurationRecord has been changed, re-generate initialization segment");
|
|
1160
|
+
}
|
|
1161
|
+
} else this._hasVideo === !1 && this._hasVideoFlagOverrided === !1 && (this._hasVideo = !0, this._mediaInfo.hasVideo = !0), (a = this._videoMetadata = {}).type = "video", a.id = s.id, a.timescale = this._timescale, a.duration = this._duration;
|
|
1162
|
+
var g = o.getUint8(0), E = o.getUint8(1);
|
|
1163
|
+
if (o.getUint8(2), o.getUint8(3), g === 1 && E !== 0) if (this._naluLengthSize = 1 + (3 & o.getUint8(4)), this._naluLengthSize === 3 || this._naluLengthSize === 4) {
|
|
1164
|
+
var A = 31 & o.getUint8(5);
|
|
1165
|
+
if (A !== 0) {
|
|
1166
|
+
A > 1 && m.a.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: SPS Count = " + A);
|
|
1167
|
+
for (var S = 6, w = 0; w < A; w++) {
|
|
1168
|
+
var I = o.getUint16(S, !n);
|
|
1169
|
+
if (S += 2, I !== 0) {
|
|
1170
|
+
var z = new Uint8Array(t, i + S, I);
|
|
1171
|
+
S += I;
|
|
1172
|
+
var N = se.parseSPS(z);
|
|
1173
|
+
if (w === 0) {
|
|
1174
|
+
a.codecWidth = N.codec_size.width, a.codecHeight = N.codec_size.height, a.presentWidth = N.present_size.width, a.presentHeight = N.present_size.height, a.profile = N.profile_string, a.level = N.level_string, a.bitDepth = N.bit_depth, a.chromaFormat = N.chroma_format, a.sarRatio = N.sar_ratio, a.frameRate = N.frame_rate, N.frame_rate.fixed !== !1 && N.frame_rate.fps_num !== 0 && N.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
|
|
1175
|
+
var J = a.frameRate.fps_den, W = a.frameRate.fps_num;
|
|
1176
|
+
a.refSampleDuration = a.timescale * (J / W);
|
|
1177
|
+
for (var q = z.subarray(1, 4), de = "avc1.", he = 0; he < 3; he++) {
|
|
1178
|
+
var K = q[he].toString(16);
|
|
1179
|
+
K.length < 2 && (K = "0" + K), de += K;
|
|
1180
|
+
}
|
|
1181
|
+
a.codec = de;
|
|
1182
|
+
var Q = this._mediaInfo;
|
|
1183
|
+
Q.width = a.codecWidth, Q.height = a.codecHeight, Q.fps = a.frameRate.fps, Q.profile = a.profile, Q.level = a.level, Q.refFrames = N.ref_frames, Q.chromaFormat = N.chroma_format_string, Q.sarNum = a.sarRatio.width, Q.sarDen = a.sarRatio.height, Q.videoCodec = de, Q.hasAudio ? Q.audioCodec != null && (Q.mimeType = 'video/x-flv; codecs="' + Q.videoCodec + "," + Q.audioCodec + '"') : Q.mimeType = 'video/x-flv; codecs="' + Q.videoCodec + '"', Q.isComplete() && this._onMediaInfo(Q);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
var _e = o.getUint8(S);
|
|
1188
|
+
if (_e !== 0) {
|
|
1189
|
+
for (_e > 1 && m.a.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: PPS Count = " + _e), S++, w = 0; w < _e; w++)
|
|
1190
|
+
I = o.getUint16(S, !n), S += 2, I !== 0 && (S += I);
|
|
1191
|
+
a.avcc = new Uint8Array(e), a.avcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed AVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
|
|
1192
|
+
} else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No PPS");
|
|
1193
|
+
} else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No SPS");
|
|
1194
|
+
} else this._onError(Y.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
|
|
1195
|
+
else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord");
|
|
1196
|
+
}
|
|
1197
|
+
}, r.prototype._parseHEVCDecoderConfigurationRecord = function(t, i, e) {
|
|
1198
|
+
if (e < 22) m.a.w(this.TAG, "Flv: Invalid HEVCDecoderConfigurationRecord, lack of data!");
|
|
1199
|
+
else {
|
|
1200
|
+
var a = this._videoMetadata, s = this._videoTrack, n = this._littleEndian, o = new DataView(t, i, e);
|
|
1201
|
+
if (a) {
|
|
1202
|
+
if (a.hvcc !== void 0) {
|
|
1203
|
+
var p = new Uint8Array(t, i, e);
|
|
1204
|
+
if (l(p, a.hvcc)) return;
|
|
1205
|
+
m.a.w(this.TAG, "HEVCDecoderConfigurationRecord has been changed, re-generate initialization segment");
|
|
1206
|
+
}
|
|
1207
|
+
} else this._hasVideo === !1 && this._hasVideoFlagOverrided === !1 && (this._hasVideo = !0, this._mediaInfo.hasVideo = !0), (a = this._videoMetadata = {}).type = "video", a.id = s.id, a.timescale = this._timescale, a.duration = this._duration;
|
|
1208
|
+
var g = o.getUint8(0), E = 31 & o.getUint8(1);
|
|
1209
|
+
if (g === 1 && E !== 0) if (this._naluLengthSize = 1 + (3 & o.getUint8(21)), this._naluLengthSize === 3 || this._naluLengthSize === 4) {
|
|
1210
|
+
for (var A = o.getUint8(22), S = 0, w = 23; S < A; S++) {
|
|
1211
|
+
var I = 63 & o.getUint8(w + 0), z = o.getUint16(w + 1, !n);
|
|
1212
|
+
w += 3;
|
|
1213
|
+
for (var N = 0; N < z; N++) {
|
|
1214
|
+
var J = o.getUint16(w + 0, !n);
|
|
1215
|
+
if (N === 0) if (I === 33) {
|
|
1216
|
+
w += 2;
|
|
1217
|
+
var W = new Uint8Array(t, i + w, J), q = ae.parseSPS(W);
|
|
1218
|
+
a.codecWidth = q.codec_size.width, a.codecHeight = q.codec_size.height, a.presentWidth = q.present_size.width, a.presentHeight = q.present_size.height, a.profile = q.profile_string, a.level = q.level_string, a.bitDepth = q.bit_depth, a.chromaFormat = q.chroma_format, a.sarRatio = q.sar_ratio, a.frameRate = q.frame_rate, q.frame_rate.fixed !== !1 && q.frame_rate.fps_num !== 0 && q.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
|
|
1219
|
+
var de = a.frameRate.fps_den, he = a.frameRate.fps_num;
|
|
1220
|
+
a.refSampleDuration = a.timescale * (de / he), a.codec = q.codec_mimetype;
|
|
1221
|
+
var K = this._mediaInfo;
|
|
1222
|
+
K.width = a.codecWidth, K.height = a.codecHeight, K.fps = a.frameRate.fps, K.profile = a.profile, K.level = a.level, K.refFrames = q.ref_frames, K.chromaFormat = q.chroma_format_string, K.sarNum = a.sarRatio.width, K.sarDen = a.sarRatio.height, K.videoCodec = q.codec_mimetype, K.hasAudio ? K.audioCodec != null && (K.mimeType = 'video/x-flv; codecs="' + K.videoCodec + "," + K.audioCodec + '"') : K.mimeType = 'video/x-flv; codecs="' + K.videoCodec + '"', K.isComplete() && this._onMediaInfo(K), w += J;
|
|
1223
|
+
} else w += 2 + J;
|
|
1224
|
+
else w += 2 + J;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
a.hvcc = new Uint8Array(e), a.hvcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed HEVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
|
|
1228
|
+
} else this._onError(Y.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
|
|
1229
|
+
else this._onError(Y.a.FORMAT_ERROR, "Flv: Invalid HEVCDecoderConfigurationRecord");
|
|
1230
|
+
}
|
|
1231
|
+
}, r.prototype._parseAVCVideoData = function(t, i, e, a, s, n, o) {
|
|
1232
|
+
for (var p = this._littleEndian, g = new DataView(t, i, e), E = [], A = 0, S = 0, w = this._naluLengthSize, I = this._timestampBase + a, z = n === 1; S < e; ) {
|
|
1233
|
+
if (S + 4 >= e) {
|
|
1234
|
+
m.a.w(this.TAG, "Malformed Nalu near timestamp " + I + ", offset = " + S + ", dataSize = " + e);
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
var N = g.getUint32(S, !p);
|
|
1238
|
+
if (w === 3 && (N >>>= 8), N > e - w) return void m.a.w(this.TAG, "Malformed Nalus near timestamp " + I + ", NaluSize > DataSize!");
|
|
1239
|
+
var J = 31 & g.getUint8(S + w);
|
|
1240
|
+
J === 5 && (z = !0);
|
|
1241
|
+
var W = new Uint8Array(t, i + S, w + N), q = { type: J, data: W };
|
|
1242
|
+
E.push(q), A += W.byteLength, S += w + N;
|
|
1243
|
+
}
|
|
1244
|
+
if (E.length) {
|
|
1245
|
+
var de = this._videoTrack, he = { units: E, length: A, isKeyframe: z, dts: I, cts: o, pts: I + o };
|
|
1246
|
+
z && (he.fileposition = s), de.samples.push(he), de.length += A;
|
|
1247
|
+
}
|
|
1248
|
+
}, r.prototype._parseHEVCVideoData = function(t, i, e, a, s, n, o) {
|
|
1249
|
+
for (var p = this._littleEndian, g = new DataView(t, i, e), E = [], A = 0, S = 0, w = this._naluLengthSize, I = this._timestampBase + a, z = n === 1; S < e; ) {
|
|
1250
|
+
if (S + 4 >= e) {
|
|
1251
|
+
m.a.w(this.TAG, "Malformed Nalu near timestamp " + I + ", offset = " + S + ", dataSize = " + e);
|
|
1252
|
+
break;
|
|
1253
|
+
}
|
|
1254
|
+
var N = g.getUint32(S, !p);
|
|
1255
|
+
if (w === 3 && (N >>>= 8), N > e - w) return void m.a.w(this.TAG, "Malformed Nalus near timestamp " + I + ", NaluSize > DataSize!");
|
|
1256
|
+
var J = 31 & g.getUint8(S + w);
|
|
1257
|
+
J !== 19 && J !== 20 || (z = !0);
|
|
1258
|
+
var W = new Uint8Array(t, i + S, w + N), q = { type: J, data: W };
|
|
1259
|
+
E.push(q), A += W.byteLength, S += w + N;
|
|
1260
|
+
}
|
|
1261
|
+
if (E.length) {
|
|
1262
|
+
var de = this._videoTrack, he = { units: E, length: A, isKeyframe: z, dts: I, cts: o, pts: I + o };
|
|
1263
|
+
z && (he.fileposition = s), de.samples.push(he), de.length += A;
|
|
1264
|
+
}
|
|
1265
|
+
}, r;
|
|
1266
|
+
}(), c = function() {
|
|
1267
|
+
function r() {
|
|
1268
|
+
}
|
|
1269
|
+
return r.prototype.destroy = function() {
|
|
1270
|
+
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;
|
|
1271
|
+
}, r;
|
|
1272
|
+
}(), P = function() {
|
|
1273
|
+
this.program_pmt_pid = {};
|
|
1274
|
+
};
|
|
1275
|
+
(function(r) {
|
|
1276
|
+
r[r.kMPEG1Audio = 3] = "kMPEG1Audio", r[r.kMPEG2Audio = 4] = "kMPEG2Audio", r[r.kPESPrivateData = 6] = "kPESPrivateData", r[r.kADTSAAC = 15] = "kADTSAAC", r[r.kLOASAAC = 17] = "kLOASAAC", r[r.kAC3 = 129] = "kAC3", r[r.kID3 = 21] = "kID3", r[r.kSCTE35 = 134] = "kSCTE35", r[r.kH264 = 27] = "kH264", r[r.kH265 = 36] = "kH265";
|
|
1277
|
+
})(u || (u = {}));
|
|
1278
|
+
var D, F = function() {
|
|
1279
|
+
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, mp3: void 0 }, this.pes_private_data_pids = {}, this.timed_id3_pids = {}, this.scte_35_pids = {}, this.smpte2038_pids = {};
|
|
1280
|
+
}, ee = function() {
|
|
1281
|
+
}, pe = function() {
|
|
1282
|
+
}, ve = function() {
|
|
1283
|
+
this.slices = [], this.total_length = 0, this.expected_length = 0, this.file_position = 0;
|
|
1284
|
+
};
|
|
1285
|
+
(function(r) {
|
|
1286
|
+
r[r.kUnspecified = 0] = "kUnspecified", r[r.kSliceNonIDR = 1] = "kSliceNonIDR", r[r.kSliceDPA = 2] = "kSliceDPA", r[r.kSliceDPB = 3] = "kSliceDPB", r[r.kSliceDPC = 4] = "kSliceDPC", r[r.kSliceIDR = 5] = "kSliceIDR", r[r.kSliceSEI = 6] = "kSliceSEI", r[r.kSliceSPS = 7] = "kSliceSPS", r[r.kSlicePPS = 8] = "kSlicePPS", r[r.kSliceAUD = 9] = "kSliceAUD", r[r.kEndOfSequence = 10] = "kEndOfSequence", r[r.kEndOfStream = 11] = "kEndOfStream", r[r.kFiller = 12] = "kFiller", r[r.kSPSExt = 13] = "kSPSExt", r[r.kReserved0 = 14] = "kReserved0";
|
|
1287
|
+
})(D || (D = {}));
|
|
1288
|
+
var k, d, h = function() {
|
|
1289
|
+
}, R = function(r) {
|
|
1290
|
+
var t = r.data.byteLength;
|
|
1291
|
+
this.type = r.type, this.data = new Uint8Array(4 + t), new DataView(this.data.buffer).setUint32(0, t), this.data.set(r.data, 4);
|
|
1292
|
+
}, X = function() {
|
|
1293
|
+
function r(t) {
|
|
1294
|
+
this.TAG = "H264AnnexBParser", this.current_startcode_offset_ = 0, this.eof_flag_ = !1, this.data_ = t, this.current_startcode_offset_ = this.findNextStartCodeOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not find H264 startcode until payload end!");
|
|
1295
|
+
}
|
|
1296
|
+
return r.prototype.findNextStartCodeOffset = function(t) {
|
|
1297
|
+
for (var i = t, e = this.data_; ; ) {
|
|
1298
|
+
if (i + 3 >= e.byteLength) return this.eof_flag_ = !0, e.byteLength;
|
|
1299
|
+
var a = e[i + 0] << 24 | e[i + 1] << 16 | e[i + 2] << 8 | e[i + 3], s = e[i + 0] << 16 | e[i + 1] << 8 | e[i + 2];
|
|
1300
|
+
if (a === 1 || s === 1) return i;
|
|
1301
|
+
i++;
|
|
1302
|
+
}
|
|
1303
|
+
}, r.prototype.readNextNaluPayload = function() {
|
|
1304
|
+
for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
|
|
1305
|
+
var e = this.current_startcode_offset_, a = 31 & t[e += (t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]) === 1 ? 4 : 3], s = (128 & t[e]) >>> 7, n = this.findNextStartCodeOffset(e);
|
|
1306
|
+
if (this.current_startcode_offset_ = n, !(a >= D.kReserved0) && s === 0) {
|
|
1307
|
+
var o = t.subarray(e, n);
|
|
1308
|
+
(i = new h()).type = a, i.data = o;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
return i;
|
|
1312
|
+
}, r;
|
|
1313
|
+
}(), oe = function() {
|
|
1314
|
+
function r(t, i, e) {
|
|
1315
|
+
var a = 8 + t.byteLength + 1 + 2 + i.byteLength, s = !1;
|
|
1316
|
+
t[3] !== 66 && t[3] !== 77 && t[3] !== 88 && (s = !0, a += 4);
|
|
1317
|
+
var n = this.data = new Uint8Array(a);
|
|
1318
|
+
n[0] = 1, n[1] = t[1], n[2] = t[2], n[3] = t[3], n[4] = 255, n[5] = 225;
|
|
1319
|
+
var o = t.byteLength;
|
|
1320
|
+
n[6] = o >>> 8, n[7] = 255 & o;
|
|
1321
|
+
var p = 8;
|
|
1322
|
+
n.set(t, 8), n[p += o] = 1;
|
|
1323
|
+
var g = i.byteLength;
|
|
1324
|
+
n[p + 1] = g >>> 8, n[p + 2] = 255 & g, n.set(i, p + 3), p += 3 + g, s && (n[p] = 252 | e.chroma_format_idc, n[p + 1] = 248 | e.bit_depth_luma - 8, n[p + 2] = 248 | e.bit_depth_chroma - 8, n[p + 3] = 0, p += 4);
|
|
1325
|
+
}
|
|
1326
|
+
return r.prototype.getData = function() {
|
|
1327
|
+
return this.data;
|
|
1328
|
+
}, r;
|
|
1329
|
+
}();
|
|
1330
|
+
(function(r) {
|
|
1331
|
+
r[r.kNull = 0] = "kNull", r[r.kAACMain = 1] = "kAACMain", r[r.kAAC_LC = 2] = "kAAC_LC", r[r.kAAC_SSR = 3] = "kAAC_SSR", r[r.kAAC_LTP = 4] = "kAAC_LTP", r[r.kAAC_SBR = 5] = "kAAC_SBR", r[r.kAAC_Scalable = 6] = "kAAC_Scalable", r[r.kLayer1 = 32] = "kLayer1", r[r.kLayer2 = 33] = "kLayer2", r[r.kLayer3 = 34] = "kLayer3";
|
|
1332
|
+
})(k || (k = {})), function(r) {
|
|
1333
|
+
r[r.k96000Hz = 0] = "k96000Hz", r[r.k88200Hz = 1] = "k88200Hz", r[r.k64000Hz = 2] = "k64000Hz", r[r.k48000Hz = 3] = "k48000Hz", r[r.k44100Hz = 4] = "k44100Hz", r[r.k32000Hz = 5] = "k32000Hz", r[r.k24000Hz = 6] = "k24000Hz", r[r.k22050Hz = 7] = "k22050Hz", r[r.k16000Hz = 8] = "k16000Hz", r[r.k12000Hz = 9] = "k12000Hz", r[r.k11025Hz = 10] = "k11025Hz", r[r.k8000Hz = 11] = "k8000Hz", r[r.k7350Hz = 12] = "k7350Hz";
|
|
1334
|
+
}(d || (d = {}));
|
|
1335
|
+
var me, Se, De = [96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350], Te = (me = function(r, t) {
|
|
1336
|
+
return (me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, e) {
|
|
1337
|
+
i.__proto__ = e;
|
|
1338
|
+
} || function(i, e) {
|
|
1339
|
+
for (var a in e) e.hasOwnProperty(a) && (i[a] = e[a]);
|
|
1340
|
+
})(r, t);
|
|
1341
|
+
}, function(r, t) {
|
|
1342
|
+
function i() {
|
|
1343
|
+
this.constructor = r;
|
|
1344
|
+
}
|
|
1345
|
+
me(r, t), r.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
1346
|
+
}), M = function() {
|
|
1347
|
+
}, j = function(r) {
|
|
1348
|
+
function t() {
|
|
1349
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
1350
|
+
}
|
|
1351
|
+
return Te(t, r), t;
|
|
1352
|
+
}(M), $ = function() {
|
|
1353
|
+
function r(t) {
|
|
1354
|
+
this.TAG = "AACADTSParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found ADTS syncword until payload end");
|
|
1355
|
+
}
|
|
1356
|
+
return r.prototype.findNextSyncwordOffset = function(t) {
|
|
1357
|
+
for (var i = t, e = this.data_; ; ) {
|
|
1358
|
+
if (i + 7 >= e.byteLength) return this.eof_flag_ = !0, e.byteLength;
|
|
1359
|
+
if ((e[i + 0] << 8 | e[i + 1]) >>> 4 === 4095) return i;
|
|
1360
|
+
i++;
|
|
1361
|
+
}
|
|
1362
|
+
}, r.prototype.readNextAACFrame = function() {
|
|
1363
|
+
for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
|
|
1364
|
+
var e = this.current_syncword_offset_, a = (8 & t[e + 1]) >>> 3, s = (6 & t[e + 1]) >>> 1, n = 1 & t[e + 1], o = (192 & t[e + 2]) >>> 6, p = (60 & t[e + 2]) >>> 2, g = (1 & t[e + 2]) << 2 | (192 & t[e + 3]) >>> 6, E = (3 & t[e + 3]) << 11 | t[e + 4] << 3 | (224 & t[e + 5]) >>> 5;
|
|
1365
|
+
if (t[e + 6], e + E > this.data_.byteLength) {
|
|
1366
|
+
this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
var A = n === 1 ? 7 : 9, S = E - A;
|
|
1370
|
+
e += A;
|
|
1371
|
+
var w = this.findNextSyncwordOffset(e + S);
|
|
1372
|
+
if (this.current_syncword_offset_ = w, (a === 0 || a === 1) && s === 0) {
|
|
1373
|
+
var I = t.subarray(e, e + S);
|
|
1374
|
+
(i = new M()).audio_object_type = o + 1, i.sampling_freq_index = p, i.sampling_frequency = De[p], i.channel_config = g, i.data = I;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
return i;
|
|
1378
|
+
}, r.prototype.hasIncompleteData = function() {
|
|
1379
|
+
return this.has_last_incomplete_data;
|
|
1380
|
+
}, r.prototype.getIncompleteData = function() {
|
|
1381
|
+
return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
|
|
1382
|
+
}, r;
|
|
1383
|
+
}(), ie = function() {
|
|
1384
|
+
function r(t) {
|
|
1385
|
+
this.TAG = "AACLOASParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found LOAS syncword until payload end");
|
|
1386
|
+
}
|
|
1387
|
+
return r.prototype.findNextSyncwordOffset = function(t) {
|
|
1388
|
+
for (var i = t, e = this.data_; ; ) {
|
|
1389
|
+
if (i + 1 >= e.byteLength) return this.eof_flag_ = !0, e.byteLength;
|
|
1390
|
+
if ((e[i + 0] << 3 | e[i + 1] >>> 5) === 695) return i;
|
|
1391
|
+
i++;
|
|
1392
|
+
}
|
|
1393
|
+
}, r.prototype.getLATMValue = function(t) {
|
|
1394
|
+
for (var i = t.readBits(2), e = 0, a = 0; a <= i; a++) e <<= 8, e |= t.readByte();
|
|
1395
|
+
return e;
|
|
1396
|
+
}, r.prototype.readNextAACFrame = function(t) {
|
|
1397
|
+
for (var i = this.data_, e = null; e == null && !this.eof_flag_; ) {
|
|
1398
|
+
var a = this.current_syncword_offset_, s = (31 & i[a + 1]) << 8 | i[a + 2];
|
|
1399
|
+
if (a + 3 + s >= this.data_.byteLength) {
|
|
1400
|
+
this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
var n = new ue(i.subarray(a + 3, a + 3 + s)), o = null;
|
|
1404
|
+
if (n.readBool()) {
|
|
1405
|
+
if (t == null) {
|
|
1406
|
+
m.a.w(this.TAG, "StreamMuxConfig Missing"), this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s), n.destroy();
|
|
1407
|
+
continue;
|
|
1408
|
+
}
|
|
1409
|
+
o = t;
|
|
1410
|
+
} else {
|
|
1411
|
+
var p = n.readBool();
|
|
1412
|
+
if (p && n.readBool()) {
|
|
1413
|
+
m.a.e(this.TAG, "audioMuxVersionA is Not Supported"), n.destroy();
|
|
1414
|
+
break;
|
|
1415
|
+
}
|
|
1416
|
+
if (p && this.getLATMValue(n), !n.readBool()) {
|
|
1417
|
+
m.a.e(this.TAG, "allStreamsSameTimeFraming zero is Not Supported"), n.destroy();
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
if (n.readBits(6) !== 0) {
|
|
1421
|
+
m.a.e(this.TAG, "more than 2 numSubFrames Not Supported"), n.destroy();
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
if (n.readBits(4) !== 0) {
|
|
1425
|
+
m.a.e(this.TAG, "more than 2 numProgram Not Supported"), n.destroy();
|
|
1426
|
+
break;
|
|
1427
|
+
}
|
|
1428
|
+
if (n.readBits(3) !== 0) {
|
|
1429
|
+
m.a.e(this.TAG, "more than 2 numLayer Not Supported"), n.destroy();
|
|
1430
|
+
break;
|
|
1431
|
+
}
|
|
1432
|
+
var g = p ? this.getLATMValue(n) : 0, E = n.readBits(5);
|
|
1433
|
+
g -= 5;
|
|
1434
|
+
var A = n.readBits(4);
|
|
1435
|
+
g -= 4;
|
|
1436
|
+
var S = n.readBits(4);
|
|
1437
|
+
g -= 4, n.readBits(3), (g -= 3) > 0 && n.readBits(g);
|
|
1438
|
+
var w = n.readBits(3);
|
|
1439
|
+
if (w !== 0) {
|
|
1440
|
+
m.a.e(this.TAG, "frameLengthType = " + w + ". Only frameLengthType = 0 Supported"), n.destroy();
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
n.readByte();
|
|
1444
|
+
var I = n.readBool();
|
|
1445
|
+
if (I) if (p) this.getLATMValue(n);
|
|
1446
|
+
else
|
|
1447
|
+
for (var z = 0; ; ) {
|
|
1448
|
+
z <<= 8;
|
|
1449
|
+
var N = n.readBool();
|
|
1450
|
+
if (z += n.readByte(), !N) break;
|
|
1451
|
+
}
|
|
1452
|
+
n.readBool() && n.readByte(), (o = new j()).audio_object_type = E, o.sampling_freq_index = A, o.sampling_frequency = De[o.sampling_freq_index], o.channel_config = S, o.other_data_present = I;
|
|
1453
|
+
}
|
|
1454
|
+
for (var J = 0; ; ) {
|
|
1455
|
+
var W = n.readByte();
|
|
1456
|
+
if (J += W, W !== 255) break;
|
|
1457
|
+
}
|
|
1458
|
+
for (var q = new Uint8Array(J), de = 0; de < J; de++) q[de] = n.readByte();
|
|
1459
|
+
(e = new j()).audio_object_type = o.audio_object_type, e.sampling_freq_index = o.sampling_freq_index, e.sampling_frequency = De[o.sampling_freq_index], e.channel_config = o.channel_config, e.other_data_present = o.other_data_present, e.data = q, this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s);
|
|
1460
|
+
}
|
|
1461
|
+
return e;
|
|
1462
|
+
}, r.prototype.hasIncompleteData = function() {
|
|
1463
|
+
return this.has_last_incomplete_data;
|
|
1464
|
+
}, r.prototype.getIncompleteData = function() {
|
|
1465
|
+
return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
|
|
1466
|
+
}, r;
|
|
1467
|
+
}(), re = function(r) {
|
|
1468
|
+
var t = null, i = r.audio_object_type, e = r.audio_object_type, a = r.sampling_freq_index, s = r.channel_config, n = 0, o = navigator.userAgent.toLowerCase();
|
|
1469
|
+
o.indexOf("firefox") !== -1 ? a >= 6 ? (e = 5, t = new Array(4), n = a - 3) : (e = 2, t = new Array(2), n = a) : o.indexOf("android") !== -1 ? (e = 2, t = new Array(2), n = a) : (e = 5, n = a, t = new Array(4), a >= 6 ? n = a - 3 : s === 1 && (e = 2, t = new Array(2), n = a)), t[0] = e << 3, t[0] |= (15 & a) >>> 1, t[1] = (15 & a) << 7, t[1] |= (15 & s) << 3, e === 5 && (t[1] |= (15 & n) >>> 1, t[2] = (1 & n) << 7, t[2] |= 8, t[3] = 0), this.config = t, this.sampling_rate = De[a], this.channel_count = s, this.codec_mimetype = "mp4a.40." + e, this.original_codec_mimetype = "mp4a.40." + i;
|
|
1470
|
+
}, ce = function() {
|
|
1471
|
+
}, we = function() {
|
|
1472
|
+
};
|
|
1473
|
+
(function(r) {
|
|
1474
|
+
r[r.kSpliceNull = 0] = "kSpliceNull", r[r.kSpliceSchedule = 4] = "kSpliceSchedule", r[r.kSpliceInsert = 5] = "kSpliceInsert", r[r.kTimeSignal = 6] = "kTimeSignal", r[r.kBandwidthReservation = 7] = "kBandwidthReservation", r[r.kPrivateCommand = 255] = "kPrivateCommand";
|
|
1475
|
+
})(Se || (Se = {}));
|
|
1476
|
+
var Ee, Oe = function(r) {
|
|
1477
|
+
var t = r.readBool();
|
|
1478
|
+
return t ? (r.readBits(6), { time_specified_flag: t, pts_time: 4 * r.readBits(31) + r.readBits(2) }) : (r.readBits(7), { time_specified_flag: t });
|
|
1479
|
+
}, Be = function(r) {
|
|
1480
|
+
var t = r.readBool();
|
|
1481
|
+
return r.readBits(6), { auto_return: t, duration: 4 * r.readBits(31) + r.readBits(2) };
|
|
1482
|
+
}, $e = function(r, t) {
|
|
1483
|
+
var i = t.readBits(8);
|
|
1484
|
+
return r ? { component_tag: i } : { component_tag: i, splice_time: Oe(t) };
|
|
1485
|
+
}, Qe = function(r) {
|
|
1486
|
+
return { component_tag: r.readBits(8), utc_splice_time: r.readBits(32) };
|
|
1487
|
+
}, et = function(r) {
|
|
1488
|
+
var t = r.readBits(32), i = r.readBool();
|
|
1489
|
+
r.readBits(7);
|
|
1490
|
+
var e = { splice_event_id: t, splice_event_cancel_indicator: i };
|
|
1491
|
+
if (i) return e;
|
|
1492
|
+
if (e.out_of_network_indicator = r.readBool(), e.program_splice_flag = r.readBool(), e.duration_flag = r.readBool(), r.readBits(5), e.program_splice_flag) e.utc_splice_time = r.readBits(32);
|
|
1493
|
+
else {
|
|
1494
|
+
e.component_count = r.readBits(8), e.components = [];
|
|
1495
|
+
for (var a = 0; a < e.component_count; a++) e.components.push(Qe(r));
|
|
1496
|
+
}
|
|
1497
|
+
return e.duration_flag && (e.break_duration = Be(r)), e.unique_program_id = r.readBits(16), e.avail_num = r.readBits(8), e.avails_expected = r.readBits(8), e;
|
|
1498
|
+
}, tt = function(r, t, i, e) {
|
|
1499
|
+
return { descriptor_tag: r, descriptor_length: t, identifier: i, provider_avail_id: e.readBits(32) };
|
|
1500
|
+
}, wt = function(r, t, i, e) {
|
|
1501
|
+
var a = e.readBits(8), s = e.readBits(3);
|
|
1502
|
+
e.readBits(5);
|
|
1503
|
+
for (var n = "", o = 0; o < s; o++) n += String.fromCharCode(e.readBits(8));
|
|
1504
|
+
return { descriptor_tag: r, descriptor_length: t, identifier: i, preroll: a, dtmf_count: s, DTMF_char: n };
|
|
1505
|
+
}, kt = function(r) {
|
|
1506
|
+
var t = r.readBits(8);
|
|
1507
|
+
return r.readBits(7), { component_tag: t, pts_offset: 4 * r.readBits(31) + r.readBits(2) };
|
|
1508
|
+
}, Lt = function(r, t, i, e) {
|
|
1509
|
+
var a = e.readBits(32), s = e.readBool();
|
|
1510
|
+
e.readBits(7);
|
|
1511
|
+
var n = { descriptor_tag: r, descriptor_length: t, identifier: i, segmentation_event_id: a, segmentation_event_cancel_indicator: s };
|
|
1512
|
+
if (s) return n;
|
|
1513
|
+
if (n.program_segmentation_flag = e.readBool(), n.segmentation_duration_flag = e.readBool(), n.delivery_not_restricted_flag = e.readBool(), n.delivery_not_restricted_flag ? e.readBits(5) : (n.web_delivery_allowed_flag = e.readBool(), n.no_regional_blackout_flag = e.readBool(), n.archive_allowed_flag = e.readBool(), n.device_restrictions = e.readBits(2)), !n.program_segmentation_flag) {
|
|
1514
|
+
n.component_count = e.readBits(8), n.components = [];
|
|
1515
|
+
for (var o = 0; o < n.component_count; o++) n.components.push(kt(e));
|
|
1516
|
+
}
|
|
1517
|
+
n.segmentation_duration_flag && (n.segmentation_duration = e.readBits(40)), n.segmentation_upid_type = e.readBits(8), n.segmentation_upid_length = e.readBits(8);
|
|
1518
|
+
var p = new Uint8Array(n.segmentation_upid_length);
|
|
1519
|
+
for (o = 0; o < n.segmentation_upid_length; o++) p[o] = e.readBits(8);
|
|
1520
|
+
return n.segmentation_upid = p.buffer, n.segmentation_type_id = e.readBits(8), n.segment_num = e.readBits(8), n.segments_expected = e.readBits(8), n.segmentation_type_id !== 52 && n.segmentation_type_id !== 54 && n.segmentation_type_id !== 56 && n.segmentation_type_id !== 58 || (n.sub_segment_num = e.readBits(8), n.sub_segments_expected = e.readBits(8)), n;
|
|
1521
|
+
}, Dt = function(r, t, i, e) {
|
|
1522
|
+
return { descriptor_tag: r, descriptor_length: t, identifier: i, TAI_seconds: e.readBits(48), TAI_ns: e.readBits(32), UTC_offset: e.readBits(16) };
|
|
1523
|
+
}, Ct = function(r) {
|
|
1524
|
+
return { component_tag: r.readBits(8), ISO_code: String.fromCharCode(r.readBits(8), r.readBits(8), r.readBits(8)), Bit_Stream_Mode: r.readBits(3), Num_Channels: r.readBits(4), Full_Srvc_Audio: r.readBool() };
|
|
1525
|
+
}, Bt = function(r, t, i, e) {
|
|
1526
|
+
for (var a = e.readBits(4), s = [], n = 0; n < a; n++) s.push(Ct(e));
|
|
1527
|
+
return { descriptor_tag: r, descriptor_length: t, identifier: i, audio_count: a, components: s };
|
|
1528
|
+
}, It = function(r) {
|
|
1529
|
+
var t = new ue(r), i = t.readBits(8), e = t.readBool(), a = t.readBool();
|
|
1530
|
+
t.readBits(2);
|
|
1531
|
+
var s = t.readBits(12), n = t.readBits(8), o = t.readBool(), p = t.readBits(6), g = 4 * t.readBits(31) + t.readBits(2), E = t.readBits(8), A = t.readBits(12), S = t.readBits(12), w = t.readBits(8), I = null;
|
|
1532
|
+
w === Se.kSpliceNull ? I = {} : w === Se.kSpliceSchedule ? I = function(ne) {
|
|
1533
|
+
for (var be = ne.readBits(8), Ae = [], le = 0; le < be; le++) Ae.push(et(ne));
|
|
1534
|
+
return { splice_count: be, events: Ae };
|
|
1535
|
+
}(t) : w === Se.kSpliceInsert ? I = function(ne) {
|
|
1536
|
+
var be = ne.readBits(32), Ae = ne.readBool();
|
|
1537
|
+
ne.readBits(7);
|
|
1538
|
+
var le = { splice_event_id: be, splice_event_cancel_indicator: Ae };
|
|
1539
|
+
if (Ae) return le;
|
|
1540
|
+
if (le.out_of_network_indicator = ne.readBool(), le.program_splice_flag = ne.readBool(), le.duration_flag = ne.readBool(), le.splice_immediate_flag = ne.readBool(), ne.readBits(4), le.program_splice_flag && !le.splice_immediate_flag && (le.splice_time = Oe(ne)), !le.program_splice_flag) {
|
|
1541
|
+
le.component_count = ne.readBits(8), le.components = [];
|
|
1542
|
+
for (var ye = 0; ye < le.component_count; ye++) le.components.push($e(le.splice_immediate_flag, ne));
|
|
1543
|
+
}
|
|
1544
|
+
return le.duration_flag && (le.break_duration = Be(ne)), le.unique_program_id = ne.readBits(16), le.avail_num = ne.readBits(8), le.avails_expected = ne.readBits(8), le;
|
|
1545
|
+
}(t) : w === Se.kTimeSignal ? I = function(ne) {
|
|
1546
|
+
return { splice_time: Oe(ne) };
|
|
1547
|
+
}(t) : w === Se.kBandwidthReservation ? I = {} : w === Se.kPrivateCommand ? I = function(ne, be) {
|
|
1548
|
+
for (var Ae = String.fromCharCode(be.readBits(8), be.readBits(8), be.readBits(8), be.readBits(8)), le = new Uint8Array(ne - 4), ye = 0; ye < ne - 4; ye++) le[ye] = be.readBits(8);
|
|
1549
|
+
return { identifier: Ae, private_data: le.buffer };
|
|
1550
|
+
}(S, t) : t.readBits(8 * S);
|
|
1551
|
+
for (var z = [], N = t.readBits(16), J = 0; J < N; ) {
|
|
1552
|
+
var W = t.readBits(8), q = t.readBits(8), de = String.fromCharCode(t.readBits(8), t.readBits(8), t.readBits(8), t.readBits(8));
|
|
1553
|
+
W === 0 ? z.push(tt(W, q, de, t)) : W === 1 ? z.push(wt(W, q, de, t)) : W === 2 ? z.push(Lt(W, q, de, t)) : W === 3 ? z.push(Dt(W, q, de, t)) : W === 4 ? z.push(Bt(W, q, de, t)) : t.readBits(8 * (q - 4)), J += 2 + q;
|
|
1554
|
+
}
|
|
1555
|
+
var he = { table_id: i, section_syntax_indicator: e, private_indicator: a, section_length: s, protocol_version: n, encrypted_packet: o, encryption_algorithm: p, pts_adjustment: g, cw_index: E, tier: A, splice_command_length: S, splice_command_type: w, splice_command: I, descriptor_loop_length: N, splice_descriptors: z, E_CRC32: o ? t.readBits(32) : void 0, CRC32: t.readBits(32) };
|
|
1556
|
+
if (w === Se.kSpliceInsert) {
|
|
1557
|
+
var K = I;
|
|
1558
|
+
if (K.splice_event_cancel_indicator) return { splice_command_type: w, detail: he, data: r };
|
|
1559
|
+
if (K.program_splice_flag && !K.splice_immediate_flag) {
|
|
1560
|
+
var Q = K.duration_flag ? K.break_duration.auto_return : void 0, _e = K.duration_flag ? K.break_duration.duration / 90 : void 0;
|
|
1561
|
+
return K.splice_time.time_specified_flag ? { splice_command_type: w, pts: (g + K.splice_time.pts_time) % Math.pow(2, 33), auto_return: Q, duraiton: _e, detail: he, data: r } : { splice_command_type: w, auto_return: Q, duraiton: _e, detail: he, data: r };
|
|
1562
|
+
}
|
|
1563
|
+
return { splice_command_type: w, auto_return: Q = K.duration_flag ? K.break_duration.auto_return : void 0, duraiton: _e = K.duration_flag ? K.break_duration.duration / 90 : void 0, detail: he, data: r };
|
|
1564
|
+
}
|
|
1565
|
+
if (w === Se.kTimeSignal) {
|
|
1566
|
+
var te = I;
|
|
1567
|
+
return te.splice_time.time_specified_flag ? { splice_command_type: w, pts: (g + te.splice_time.pts_time) % Math.pow(2, 33), detail: he, data: r } : { splice_command_type: w, detail: he, data: r };
|
|
1568
|
+
}
|
|
1569
|
+
return { splice_command_type: w, detail: he, data: r };
|
|
1570
|
+
};
|
|
1571
|
+
(function(r) {
|
|
1572
|
+
r[r.kSliceIDR_W_RADL = 19] = "kSliceIDR_W_RADL", r[r.kSliceIDR_N_LP = 20] = "kSliceIDR_N_LP", r[r.kSliceCRA_NUT = 21] = "kSliceCRA_NUT", r[r.kSliceVPS = 32] = "kSliceVPS", r[r.kSliceSPS = 33] = "kSliceSPS", r[r.kSlicePPS = 34] = "kSlicePPS", r[r.kSliceAUD = 35] = "kSliceAUD";
|
|
1573
|
+
})(Ee || (Ee = {}));
|
|
1574
|
+
var Ot = function() {
|
|
1575
|
+
}, Pt = function(r) {
|
|
1576
|
+
var t = r.data.byteLength;
|
|
1577
|
+
this.type = r.type, this.data = new Uint8Array(4 + t), new DataView(this.data.buffer).setUint32(0, t), this.data.set(r.data, 4);
|
|
1578
|
+
}, Mt = function() {
|
|
1579
|
+
function r(t) {
|
|
1580
|
+
this.TAG = "H265AnnexBParser", this.current_startcode_offset_ = 0, this.eof_flag_ = !1, this.data_ = t, this.current_startcode_offset_ = this.findNextStartCodeOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not find H265 startcode until payload end!");
|
|
1581
|
+
}
|
|
1582
|
+
return r.prototype.findNextStartCodeOffset = function(t) {
|
|
1583
|
+
for (var i = t, e = this.data_; ; ) {
|
|
1584
|
+
if (i + 3 >= e.byteLength) return this.eof_flag_ = !0, e.byteLength;
|
|
1585
|
+
var a = e[i + 0] << 24 | e[i + 1] << 16 | e[i + 2] << 8 | e[i + 3], s = e[i + 0] << 16 | e[i + 1] << 8 | e[i + 2];
|
|
1586
|
+
if (a === 1 || s === 1) return i;
|
|
1587
|
+
i++;
|
|
1588
|
+
}
|
|
1589
|
+
}, r.prototype.readNextNaluPayload = function() {
|
|
1590
|
+
for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
|
|
1591
|
+
var e = this.current_startcode_offset_, a = t[e += (t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]) === 1 ? 4 : 3] >> 1 & 63, s = (128 & t[e]) >>> 7, n = this.findNextStartCodeOffset(e);
|
|
1592
|
+
if (this.current_startcode_offset_ = n, s === 0) {
|
|
1593
|
+
var o = t.subarray(e, n);
|
|
1594
|
+
(i = new Ot()).type = a, i.data = o;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
return i;
|
|
1598
|
+
}, r;
|
|
1599
|
+
}(), xt = function() {
|
|
1600
|
+
function r(t, i, e, a) {
|
|
1601
|
+
var s = 23 + (5 + t.byteLength) + (5 + i.byteLength) + (5 + e.byteLength), n = this.data = new Uint8Array(s);
|
|
1602
|
+
n[0] = 1, n[1] = (3 & a.general_profile_space) << 6 | (a.general_tier_flag ? 1 : 0) << 5 | 31 & a.general_profile_idc, n[2] = a.general_profile_compatibility_flags_1, n[3] = a.general_profile_compatibility_flags_2, n[4] = a.general_profile_compatibility_flags_3, n[5] = a.general_profile_compatibility_flags_4, n[6] = a.general_constraint_indicator_flags_1, n[7] = a.general_constraint_indicator_flags_2, n[8] = a.general_constraint_indicator_flags_3, n[9] = a.general_constraint_indicator_flags_4, n[10] = a.general_constraint_indicator_flags_5, n[11] = a.general_constraint_indicator_flags_6, n[12] = a.general_level_idc, n[13] = 240 | (3840 & a.min_spatial_segmentation_idc) >> 8, n[14] = 255 & a.min_spatial_segmentation_idc, n[15] = 252 | 3 & a.parallelismType, n[16] = 252 | 3 & a.chroma_format_idc, n[17] = 248 | 7 & a.bit_depth_luma_minus8, n[18] = 248 | 7 & a.bit_depth_chroma_minus8, n[19] = 0, n[20] = 0, n[21] = (3 & a.constant_frame_rate) << 6 | (7 & a.num_temporal_layers) << 3 | (a.temporal_id_nested ? 1 : 0) << 2 | 3, n[22] = 3, n[23] = 128 | Ee.kSliceVPS, n[24] = 0, n[25] = 1, n[26] = (65280 & t.byteLength) >> 8, n[27] = (255 & t.byteLength) >> 0, n.set(t, 28), n[23 + (5 + t.byteLength) + 0] = 128 | Ee.kSliceSPS, n[23 + (5 + t.byteLength) + 1] = 0, n[23 + (5 + t.byteLength) + 2] = 1, n[23 + (5 + t.byteLength) + 3] = (65280 & i.byteLength) >> 8, n[23 + (5 + t.byteLength) + 4] = (255 & i.byteLength) >> 0, n.set(i, 23 + (5 + t.byteLength) + 5), n[23 + (5 + t.byteLength + 5 + i.byteLength) + 0] = 128 | Ee.kSlicePPS, n[23 + (5 + t.byteLength + 5 + i.byteLength) + 1] = 0, n[23 + (5 + t.byteLength + 5 + i.byteLength) + 2] = 1, n[23 + (5 + t.byteLength + 5 + i.byteLength) + 3] = (65280 & e.byteLength) >> 8, n[23 + (5 + t.byteLength + 5 + i.byteLength) + 4] = (255 & e.byteLength) >> 0, n.set(e, 23 + (5 + t.byteLength + 5 + i.byteLength) + 5);
|
|
1603
|
+
}
|
|
1604
|
+
return r.prototype.getData = function() {
|
|
1605
|
+
return this.data;
|
|
1606
|
+
}, r;
|
|
1607
|
+
}(), Ut = function() {
|
|
1608
|
+
}, Nt = function() {
|
|
1609
|
+
}, Gt = function() {
|
|
1610
|
+
}, Ft = [[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]], Vt = function() {
|
|
1611
|
+
function r(t) {
|
|
1612
|
+
this.TAG = "AC3Parser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found AC3 syncword until payload end");
|
|
1613
|
+
}
|
|
1614
|
+
return r.prototype.findNextSyncwordOffset = function(t) {
|
|
1615
|
+
for (var i = t, e = this.data_; ; ) {
|
|
1616
|
+
if (i + 7 >= e.byteLength) return this.eof_flag_ = !0, e.byteLength;
|
|
1617
|
+
if ((e[i + 0] << 8 | e[i + 1] << 0) === 2935) return i;
|
|
1618
|
+
i++;
|
|
1619
|
+
}
|
|
1620
|
+
}, r.prototype.readNextAC3Frame = function() {
|
|
1621
|
+
for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
|
|
1622
|
+
var e = this.current_syncword_offset_, a = t[e + 4] >> 6, s = [48e3, 44200, 33e3][a], n = 63 & t[e + 4], o = 2 * Ft[a][n];
|
|
1623
|
+
if (e + o > this.data_.byteLength) {
|
|
1624
|
+
this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
var p = this.findNextSyncwordOffset(e + o);
|
|
1628
|
+
this.current_syncword_offset_ = p;
|
|
1629
|
+
var g = t[e + 5] >> 3, E = 7 & t[e + 5], A = t[e + 6] >> 5, S = 0;
|
|
1630
|
+
1 & A && A !== 1 && (S += 2), 4 & A && (S += 2), A === 2 && (S += 2);
|
|
1631
|
+
var w = (t[e + 6] << 8 | t[e + 7] << 0) >> 12 - S & 1, I = [2, 1, 2, 3, 3, 4, 4, 5][A] + w;
|
|
1632
|
+
(i = new Gt()).sampling_frequency = s, i.channel_count = I, i.channel_mode = A, i.bit_stream_identification = g, i.low_frequency_effects_channel_on = w, i.bit_stream_mode = E, i.frame_size_code = n, i.data = t.subarray(e, e + o);
|
|
1633
|
+
}
|
|
1634
|
+
return i;
|
|
1635
|
+
}, r.prototype.hasIncompleteData = function() {
|
|
1636
|
+
return this.has_last_incomplete_data;
|
|
1637
|
+
}, r.prototype.getIncompleteData = function() {
|
|
1638
|
+
return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
|
|
1639
|
+
}, r;
|
|
1640
|
+
}(), jt = function(r) {
|
|
1641
|
+
var t;
|
|
1642
|
+
t = [r.sampling_rate_code << 6 | r.bit_stream_identification << 1 | r.bit_stream_mode >> 2, (3 & r.bit_stream_mode) << 6 | r.channel_mode << 3 | r.low_frequency_effects_channel_on << 2 | r.frame_size_code >> 4, r.frame_size_code << 4 & 224], this.config = t, this.sampling_rate = r.sampling_frequency, this.bit_stream_identification = r.bit_stream_identification, this.bit_stream_mode = r.bit_stream_mode, this.low_frequency_effects_channel_on = r.low_frequency_effects_channel_on, this.channel_count = r.channel_count, this.channel_mode = r.channel_mode, this.codec_mimetype = "ac-3", this.original_codec_mimetype = "ac-3";
|
|
1643
|
+
}, zt = /* @__PURE__ */ function() {
|
|
1644
|
+
var r = function(t, i) {
|
|
1645
|
+
return (r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, a) {
|
|
1646
|
+
e.__proto__ = a;
|
|
1647
|
+
} || function(e, a) {
|
|
1648
|
+
for (var s in a) a.hasOwnProperty(s) && (e[s] = a[s]);
|
|
1649
|
+
})(t, i);
|
|
1650
|
+
};
|
|
1651
|
+
return function(t, i) {
|
|
1652
|
+
function e() {
|
|
1653
|
+
this.constructor = t;
|
|
1654
|
+
}
|
|
1655
|
+
r(t, i), t.prototype = i === null ? Object.create(i) : (e.prototype = i.prototype, new e());
|
|
1656
|
+
};
|
|
1657
|
+
}(), Ve = function() {
|
|
1658
|
+
return (Ve = Object.assign || function(r) {
|
|
1659
|
+
for (var t, i = 1, e = arguments.length; i < e; i++) for (var a in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
|
|
1660
|
+
return r;
|
|
1661
|
+
}).apply(this, arguments);
|
|
1662
|
+
}, lt = function(r) {
|
|
1663
|
+
function t(i, e) {
|
|
1664
|
+
var a = r.call(this) || this;
|
|
1665
|
+
return a.TAG = "TSDemuxer", a.first_parse_ = !0, a.media_info_ = new v.a(), a.timescale_ = 90, a.duration_ = 0, a.current_pmt_pid_ = -1, a.program_pmt_map_ = {}, a.pes_slice_queues_ = {}, a.section_slice_queues_ = {}, a.video_metadata_ = { vps: void 0, sps: void 0, pps: void 0, details: void 0 }, a.audio_metadata_ = { codec: void 0, audio_object_type: void 0, sampling_freq_index: void 0, sampling_frequency: void 0, channel_config: void 0 }, a.aac_last_sample_pts_ = void 0, a.aac_last_incomplete_data_ = null, a.has_video_ = !1, a.has_audio_ = !1, a.video_init_segment_dispatched_ = !1, a.audio_init_segment_dispatched_ = !1, a.video_metadata_changed_ = !1, a.audio_metadata_changed_ = !1, a.loas_previous_frame = null, a.video_track_ = { type: "video", id: 1, sequenceNumber: 0, samples: [], length: 0 }, a.audio_track_ = { type: "audio", id: 2, sequenceNumber: 0, samples: [], length: 0 }, a.ts_packet_size_ = i.ts_packet_size, a.sync_offset_ = i.sync_offset, a.config_ = e, a;
|
|
1666
|
+
}
|
|
1667
|
+
return zt(t, r), t.prototype.destroy = function() {
|
|
1668
|
+
this.media_info_ = null, this.pes_slice_queues_ = null, this.section_slice_queues_ = null, this.video_metadata_ = null, this.audio_metadata_ = null, this.aac_last_incomplete_data_ = null, this.video_track_ = null, this.audio_track_ = null, r.prototype.destroy.call(this);
|
|
1669
|
+
}, t.probe = function(i) {
|
|
1670
|
+
var e = new Uint8Array(i), a = -1, s = 188;
|
|
1671
|
+
if (e.byteLength <= 3 * s) return { needMoreData: !0 };
|
|
1672
|
+
for (; a === -1; ) {
|
|
1673
|
+
for (var n = Math.min(1e3, e.byteLength - 3 * s), o = 0; o < n; ) {
|
|
1674
|
+
if (e[o] === 71 && e[o + s] === 71 && e[o + 2 * s] === 71) {
|
|
1675
|
+
a = o;
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
o++;
|
|
1679
|
+
}
|
|
1680
|
+
if (a === -1) if (s === 188) s = 192;
|
|
1681
|
+
else {
|
|
1682
|
+
if (s !== 192) break;
|
|
1683
|
+
s = 204;
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return a === -1 ? { match: !1 } : (s === 192 && a >= 4 ? (m.a.v("TSDemuxer", "ts_packet_size = 192, m2ts mode"), a -= 4) : s === 204 && m.a.v("TSDemuxer", "ts_packet_size = 204, RS encoded MPEG2-TS stream"), { match: !0, consumed: 0, ts_packet_size: s, sync_offset: a });
|
|
1687
|
+
}, t.prototype.bindDataSource = function(i) {
|
|
1688
|
+
return i.onDataArrival = this.parseChunks.bind(this), this;
|
|
1689
|
+
}, t.prototype.resetMediaInfo = function() {
|
|
1690
|
+
this.media_info_ = new v.a();
|
|
1691
|
+
}, t.prototype.parseChunks = function(i, e) {
|
|
1692
|
+
if (!(this.onError && this.onMediaInfo && this.onTrackMetadata && this.onDataAvailable)) throw new C.a("onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");
|
|
1693
|
+
var a = 0;
|
|
1694
|
+
for (this.first_parse_ && (this.first_parse_ = !1, a = this.sync_offset_); a + this.ts_packet_size_ <= i.byteLength; ) {
|
|
1695
|
+
var s = e + a;
|
|
1696
|
+
this.ts_packet_size_ === 192 && (a += 4);
|
|
1697
|
+
var n = new Uint8Array(i, a, 188), o = n[0];
|
|
1698
|
+
if (o !== 71) {
|
|
1699
|
+
m.a.e(this.TAG, "sync_byte = " + o + ", not 0x47");
|
|
1700
|
+
break;
|
|
1701
|
+
}
|
|
1702
|
+
var p = (64 & n[1]) >>> 6, g = (n[1], (31 & n[1]) << 8 | n[2]), E = (48 & n[3]) >>> 4, A = 15 & n[3], S = {}, w = 4;
|
|
1703
|
+
if (E == 2 || E == 3) {
|
|
1704
|
+
var I = n[4];
|
|
1705
|
+
if (5 + I === 188) {
|
|
1706
|
+
a += 188, this.ts_packet_size_ === 204 && (a += 16);
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
I > 0 && (S = this.parseAdaptationField(i, a + 4, 1 + I)), w = 5 + I;
|
|
1710
|
+
}
|
|
1711
|
+
if (E == 1 || E == 3) {
|
|
1712
|
+
if (g === 0 || g === this.current_pmt_pid_ || this.pmt_ != null && this.pmt_.pid_stream_type[g] === u.kSCTE35) {
|
|
1713
|
+
var z = 188 - w;
|
|
1714
|
+
this.handleSectionSlice(i, a + w, z, { pid: g, file_position: s, payload_unit_start_indicator: p, continuity_conunter: A, random_access_indicator: S.random_access_indicator });
|
|
1715
|
+
} else if (this.pmt_ != null && this.pmt_.pid_stream_type[g] != null) {
|
|
1716
|
+
z = 188 - w;
|
|
1717
|
+
var N = this.pmt_.pid_stream_type[g];
|
|
1718
|
+
g !== this.pmt_.common_pids.h264 && g !== this.pmt_.common_pids.h265 && g !== this.pmt_.common_pids.adts_aac && g !== this.pmt_.common_pids.loas_aac && g !== this.pmt_.common_pids.ac3 && g !== this.pmt_.common_pids.opus && g !== this.pmt_.common_pids.mp3 && this.pmt_.pes_private_data_pids[g] !== !0 && this.pmt_.timed_id3_pids[g] !== !0 || this.handlePESSlice(i, a + w, z, { pid: g, stream_type: N, file_position: s, payload_unit_start_indicator: p, continuity_conunter: A, random_access_indicator: S.random_access_indicator });
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
a += 188, this.ts_packet_size_ === 204 && (a += 16);
|
|
1722
|
+
}
|
|
1723
|
+
return this.dispatchAudioVideoMediaSegment(), a;
|
|
1724
|
+
}, t.prototype.parseAdaptationField = function(i, e, a) {
|
|
1725
|
+
var s = new Uint8Array(i, e, a), n = s[0];
|
|
1726
|
+
return n > 0 ? n > 183 ? (m.a.w(this.TAG, "Illegal adaptation_field_length: " + n), {}) : { discontinuity_indicator: (128 & s[1]) >>> 7, random_access_indicator: (64 & s[1]) >>> 6, elementary_stream_priority_indicator: (32 & s[1]) >>> 5 } : {};
|
|
1727
|
+
}, t.prototype.handleSectionSlice = function(i, e, a, s) {
|
|
1728
|
+
var n = new Uint8Array(i, e, a), o = this.section_slice_queues_[s.pid];
|
|
1729
|
+
if (s.payload_unit_start_indicator) {
|
|
1730
|
+
var p = n[0];
|
|
1731
|
+
if (o != null && o.total_length !== 0) {
|
|
1732
|
+
var g = new Uint8Array(i, e + 1, Math.min(a, p));
|
|
1733
|
+
o.slices.push(g), o.total_length += g.byteLength, o.total_length === o.expected_length ? this.emitSectionSlices(o, s) : this.clearSlices(o, s);
|
|
1734
|
+
}
|
|
1735
|
+
for (var E = 1 + p; E < n.byteLength && n[E + 0] !== 255; ) {
|
|
1736
|
+
var A = (15 & n[E + 1]) << 8 | n[E + 2];
|
|
1737
|
+
this.section_slice_queues_[s.pid] = new ve(), (o = this.section_slice_queues_[s.pid]).expected_length = A + 3, o.file_position = s.file_position, o.random_access_indicator = s.random_access_indicator, g = new Uint8Array(i, e + E, Math.min(a - E, o.expected_length - o.total_length)), o.slices.push(g), o.total_length += g.byteLength, o.total_length === o.expected_length ? this.emitSectionSlices(o, s) : o.total_length >= o.expected_length && this.clearSlices(o, s), E += g.byteLength;
|
|
1738
|
+
}
|
|
1739
|
+
} else o != null && o.total_length !== 0 && (g = new Uint8Array(i, e, Math.min(a, o.expected_length - o.total_length)), o.slices.push(g), o.total_length += g.byteLength, o.total_length === o.expected_length ? this.emitSectionSlices(o, s) : o.total_length >= o.expected_length && this.clearSlices(o, s));
|
|
1740
|
+
}, t.prototype.handlePESSlice = function(i, e, a, s) {
|
|
1741
|
+
var n = new Uint8Array(i, e, a), o = n[0] << 16 | n[1] << 8 | n[2], p = (n[3], n[4] << 8 | n[5]);
|
|
1742
|
+
if (s.payload_unit_start_indicator) {
|
|
1743
|
+
if (o !== 1) return void m.a.e(this.TAG, "handlePESSlice: packet_start_code_prefix should be 1 but with value " + o);
|
|
1744
|
+
var g = this.pes_slice_queues_[s.pid];
|
|
1745
|
+
g && (g.expected_length === 0 || g.expected_length === g.total_length ? this.emitPESSlices(g, s) : this.clearSlices(g, s)), this.pes_slice_queues_[s.pid] = new ve(), this.pes_slice_queues_[s.pid].file_position = s.file_position, this.pes_slice_queues_[s.pid].random_access_indicator = s.random_access_indicator;
|
|
1746
|
+
}
|
|
1747
|
+
if (this.pes_slice_queues_[s.pid] != null) {
|
|
1748
|
+
var E = this.pes_slice_queues_[s.pid];
|
|
1749
|
+
E.slices.push(n), s.payload_unit_start_indicator && (E.expected_length = p === 0 ? 0 : p + 6), E.total_length += n.byteLength, E.expected_length > 0 && E.expected_length === E.total_length ? this.emitPESSlices(E, s) : E.expected_length > 0 && E.expected_length < E.total_length && this.clearSlices(E, s);
|
|
1750
|
+
}
|
|
1751
|
+
}, t.prototype.emitSectionSlices = function(i, e) {
|
|
1752
|
+
for (var a = new Uint8Array(i.total_length), s = 0, n = 0; s < i.slices.length; s++) {
|
|
1753
|
+
var o = i.slices[s];
|
|
1754
|
+
a.set(o, n), n += o.byteLength;
|
|
1755
|
+
}
|
|
1756
|
+
i.slices = [], i.expected_length = -1, i.total_length = 0;
|
|
1757
|
+
var p = new pe();
|
|
1758
|
+
p.pid = e.pid, p.data = a, p.file_position = i.file_position, p.random_access_indicator = i.random_access_indicator, this.parseSection(p);
|
|
1759
|
+
}, t.prototype.emitPESSlices = function(i, e) {
|
|
1760
|
+
for (var a = new Uint8Array(i.total_length), s = 0, n = 0; s < i.slices.length; s++) {
|
|
1761
|
+
var o = i.slices[s];
|
|
1762
|
+
a.set(o, n), n += o.byteLength;
|
|
1763
|
+
}
|
|
1764
|
+
i.slices = [], i.expected_length = -1, i.total_length = 0;
|
|
1765
|
+
var p = new ee();
|
|
1766
|
+
p.pid = e.pid, p.data = a, p.stream_type = e.stream_type, p.file_position = i.file_position, p.random_access_indicator = i.random_access_indicator, this.parsePES(p);
|
|
1767
|
+
}, t.prototype.clearSlices = function(i, e) {
|
|
1768
|
+
i.slices = [], i.expected_length = -1, i.total_length = 0;
|
|
1769
|
+
}, t.prototype.parseSection = function(i) {
|
|
1770
|
+
var e = i.data, a = i.pid;
|
|
1771
|
+
a === 0 ? this.parsePAT(e) : a === this.current_pmt_pid_ ? this.parsePMT(e) : this.pmt_ != null && this.pmt_.scte_35_pids[a] && this.parseSCTE35(e);
|
|
1772
|
+
}, t.prototype.parsePES = function(i) {
|
|
1773
|
+
var e = i.data, a = e[0] << 16 | e[1] << 8 | e[2], s = e[3], n = e[4] << 8 | e[5];
|
|
1774
|
+
if (a === 1)
|
|
1775
|
+
if (s !== 188 && s !== 190 && s !== 191 && s !== 240 && s !== 241 && s !== 255 && s !== 242 && s !== 248) {
|
|
1776
|
+
e[6];
|
|
1777
|
+
var o = (192 & e[7]) >>> 6, p = e[8], g = void 0, E = void 0;
|
|
1778
|
+
o !== 2 && o !== 3 || (g = 536870912 * (14 & e[9]) + 4194304 * (255 & e[10]) + 16384 * (254 & e[11]) + 128 * (255 & e[12]) + (254 & e[13]) / 2, E = o === 3 ? 536870912 * (14 & e[14]) + 4194304 * (255 & e[15]) + 16384 * (254 & e[16]) + 128 * (255 & e[17]) + (254 & e[18]) / 2 : g);
|
|
1779
|
+
var A = 9 + p, S = void 0;
|
|
1780
|
+
if (n !== 0) {
|
|
1781
|
+
if (n < 3 + p) return void m.a.v(this.TAG, "Malformed PES: PES_packet_length < 3 + PES_header_data_length");
|
|
1782
|
+
S = n - 3 - p;
|
|
1783
|
+
} else S = e.byteLength - A;
|
|
1784
|
+
var w = e.subarray(A, A + S);
|
|
1785
|
+
switch (i.stream_type) {
|
|
1786
|
+
case u.kMPEG1Audio:
|
|
1787
|
+
case u.kMPEG2Audio:
|
|
1788
|
+
this.parseMP3Payload(w, g);
|
|
1789
|
+
break;
|
|
1790
|
+
case u.kPESPrivateData:
|
|
1791
|
+
this.pmt_.common_pids.opus === i.pid ? this.parseOpusPayload(w, g) : this.pmt_.common_pids.ac3 === i.pid ? this.parseAC3Payload(w, g) : this.pmt_.smpte2038_pids[i.pid] ? this.parseSMPTE2038MetadataPayload(w, g, E, i.pid, s) : this.parsePESPrivateDataPayload(w, g, E, i.pid, s);
|
|
1792
|
+
break;
|
|
1793
|
+
case u.kADTSAAC:
|
|
1794
|
+
this.parseADTSAACPayload(w, g);
|
|
1795
|
+
break;
|
|
1796
|
+
case u.kLOASAAC:
|
|
1797
|
+
this.parseLOASAACPayload(w, g);
|
|
1798
|
+
break;
|
|
1799
|
+
case u.kAC3:
|
|
1800
|
+
this.parseAC3Payload(w, g);
|
|
1801
|
+
break;
|
|
1802
|
+
case u.kID3:
|
|
1803
|
+
this.parseTimedID3MetadataPayload(w, g, E, i.pid, s);
|
|
1804
|
+
break;
|
|
1805
|
+
case u.kH264:
|
|
1806
|
+
this.parseH264Payload(w, g, E, i.file_position, i.random_access_indicator);
|
|
1807
|
+
break;
|
|
1808
|
+
case u.kH265:
|
|
1809
|
+
this.parseH265Payload(w, g, E, i.file_position, i.random_access_indicator);
|
|
1810
|
+
}
|
|
1811
|
+
} else (s === 188 || s === 191 || s === 240 || s === 241 || s === 255 || s === 242 || s === 248) && i.stream_type === u.kPESPrivateData && (A = 6, S = void 0, S = n !== 0 ? n : e.byteLength - A, w = e.subarray(A, A + S), this.parsePESPrivateDataPayload(w, void 0, void 0, i.pid, s));
|
|
1812
|
+
else m.a.e(this.TAG, "parsePES: packet_start_code_prefix should be 1 but with value " + a);
|
|
1813
|
+
}, t.prototype.parsePAT = function(i) {
|
|
1814
|
+
var e = i[0];
|
|
1815
|
+
if (e === 0) {
|
|
1816
|
+
var a = (15 & i[1]) << 8 | i[2], s = (i[3], i[4], (62 & i[5]) >>> 1), n = 1 & i[5], o = i[6], p = (i[7], null);
|
|
1817
|
+
if (n === 1 && o === 0) (p = new P()).version_number = s;
|
|
1818
|
+
else if ((p = this.pat_) == null) return;
|
|
1819
|
+
for (var g = a - 5 - 4, E = -1, A = -1, S = 8; S < 8 + g; S += 4) {
|
|
1820
|
+
var w = i[S] << 8 | i[S + 1], I = (31 & i[S + 2]) << 8 | i[S + 3];
|
|
1821
|
+
w === 0 ? p.network_pid = I : (p.program_pmt_pid[w] = I, E === -1 && (E = w), A === -1 && (A = I));
|
|
1822
|
+
}
|
|
1823
|
+
n === 1 && o === 0 && (this.pat_ == null && m.a.v(this.TAG, "Parsed first PAT: " + JSON.stringify(p)), this.pat_ = p, this.current_program_ = E, this.current_pmt_pid_ = A);
|
|
1824
|
+
} else m.a.e(this.TAG, "parsePAT: table_id " + e + " is not corresponded to PAT!");
|
|
1825
|
+
}, t.prototype.parsePMT = function(i) {
|
|
1826
|
+
var e = i[0];
|
|
1827
|
+
if (e === 2) {
|
|
1828
|
+
var a = (15 & i[1]) << 8 | i[2], s = i[3] << 8 | i[4], n = (62 & i[5]) >>> 1, o = 1 & i[5], p = i[6], g = (i[7], null);
|
|
1829
|
+
if (o === 1 && p === 0) (g = new F()).program_number = s, g.version_number = n, this.program_pmt_map_[s] = g;
|
|
1830
|
+
else if ((g = this.program_pmt_map_[s]) == null) return;
|
|
1831
|
+
i[8], i[9];
|
|
1832
|
+
for (var E = (15 & i[10]) << 8 | i[11], A = 12 + E, S = a - 9 - E - 4, w = A; w < A + S; ) {
|
|
1833
|
+
var I = i[w], z = (31 & i[w + 1]) << 8 | i[w + 2], N = (15 & i[w + 3]) << 8 | i[w + 4];
|
|
1834
|
+
g.pid_stream_type[z] = I;
|
|
1835
|
+
var J = g.common_pids.h264 || g.common_pids.h265, W = g.common_pids.adts_aac || g.common_pids.loas_aac || g.common_pids.ac3 || g.common_pids.opus || g.common_pids.mp3;
|
|
1836
|
+
if (I !== u.kH264 || J) if (I !== u.kH265 || J) if (I !== u.kADTSAAC || W) if (I !== u.kLOASAAC || W) if (I !== u.kAC3 || W) if (I !== u.kMPEG1Audio && I !== u.kMPEG2Audio || W) if (I === u.kPESPrivateData) {
|
|
1837
|
+
if (g.pes_private_data_pids[z] = !0, N > 0) {
|
|
1838
|
+
for (var q = w + 5; q < w + 5 + N; ) {
|
|
1839
|
+
var de = i[q + 0], he = i[q + 1];
|
|
1840
|
+
if (de === 5) {
|
|
1841
|
+
var K = String.fromCharCode.apply(String, Array.from(i.subarray(q + 2, q + 2 + he)));
|
|
1842
|
+
K === "VANC" ? g.smpte2038_pids[z] = !0 : K === "Opus" && (g.common_pids.opus = z);
|
|
1843
|
+
} else if (de === 127 && z === g.common_pids.opus) {
|
|
1844
|
+
var Q = null;
|
|
1845
|
+
if (i[q + 2] === 128 && (Q = i[q + 3]), Q == null) {
|
|
1846
|
+
m.a.e(this.TAG, "Not Supported Opus channel count.");
|
|
1847
|
+
continue;
|
|
1848
|
+
}
|
|
1849
|
+
var _e = { codec: "opus", channel_count: 15 & Q ? 15 & Q : 2, channel_config_code: Q, sample_rate: 48e3 }, te = { codec: "opus", meta: _e };
|
|
1850
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = _e, this.dispatchAudioInitSegment(te)) : this.detectAudioMetadataChange(te) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(te));
|
|
1851
|
+
}
|
|
1852
|
+
q += 2 + he;
|
|
1853
|
+
}
|
|
1854
|
+
var ne = i.subarray(w + 5, w + 5 + N);
|
|
1855
|
+
this.dispatchPESPrivateDataDescriptor(z, I, ne);
|
|
1856
|
+
}
|
|
1857
|
+
} else I === u.kID3 ? g.timed_id3_pids[z] = !0 : I === u.kSCTE35 && (g.scte_35_pids[z] = !0);
|
|
1858
|
+
else g.common_pids.mp3 = z;
|
|
1859
|
+
else g.common_pids.ac3 = z;
|
|
1860
|
+
else g.common_pids.loas_aac = z;
|
|
1861
|
+
else g.common_pids.adts_aac = z;
|
|
1862
|
+
else g.common_pids.h265 = z;
|
|
1863
|
+
else g.common_pids.h264 = z;
|
|
1864
|
+
w += 5 + N;
|
|
1865
|
+
}
|
|
1866
|
+
s === this.current_program_ && (this.pmt_ == null && m.a.v(this.TAG, "Parsed first PMT: " + JSON.stringify(g)), this.pmt_ = g, (g.common_pids.h264 || g.common_pids.h265) && (this.has_video_ = !0), (g.common_pids.adts_aac || g.common_pids.loas_aac || g.common_pids.ac3 || g.common_pids.opus || g.common_pids.mp3) && (this.has_audio_ = !0));
|
|
1867
|
+
} else m.a.e(this.TAG, "parsePMT: table_id " + e + " is not corresponded to PMT!");
|
|
1868
|
+
}, t.prototype.parseSCTE35 = function(i) {
|
|
1869
|
+
var e = It(i);
|
|
1870
|
+
if (e.pts != null) {
|
|
1871
|
+
var a = Math.floor(e.pts / this.timescale_);
|
|
1872
|
+
e.pts = a;
|
|
1873
|
+
} else e.nearest_pts = this.aac_last_sample_pts_;
|
|
1874
|
+
this.onSCTE35Metadata && this.onSCTE35Metadata(e);
|
|
1875
|
+
}, t.prototype.parseH264Payload = function(i, e, a, s, n) {
|
|
1876
|
+
for (var o = new X(i), p = null, g = [], E = 0, A = !1; (p = o.readNextNaluPayload()) != null; ) {
|
|
1877
|
+
var S = new R(p);
|
|
1878
|
+
if (S.type === D.kSliceSPS) {
|
|
1879
|
+
var w = se.parseSPS(p.data);
|
|
1880
|
+
this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H264: Critical h264 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = w);
|
|
1881
|
+
} else S.type === D.kSlicePPS ? this.video_init_segment_dispatched_ && !this.video_metadata_changed_ || (this.video_metadata_.pps = S, this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : (S.type === D.kSliceIDR || S.type === D.kSliceNonIDR && n === 1) && (A = !0);
|
|
1882
|
+
this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
|
|
1883
|
+
}
|
|
1884
|
+
var I = Math.floor(e / this.timescale_), z = Math.floor(a / this.timescale_);
|
|
1885
|
+
if (g.length) {
|
|
1886
|
+
var N = this.video_track_, J = { units: g, length: E, isKeyframe: A, dts: z, pts: I, cts: I - z, file_position: s };
|
|
1887
|
+
N.samples.push(J), N.length += E;
|
|
1888
|
+
}
|
|
1889
|
+
}, t.prototype.parseH265Payload = function(i, e, a, s, n) {
|
|
1890
|
+
for (var o = new Mt(i), p = null, g = [], E = 0, A = !1; (p = o.readNextNaluPayload()) != null; ) {
|
|
1891
|
+
var S = new Pt(p);
|
|
1892
|
+
if (S.type === Ee.kSliceVPS) {
|
|
1893
|
+
if (!this.video_init_segment_dispatched_) {
|
|
1894
|
+
var w = ae.parseVPS(p.data);
|
|
1895
|
+
this.video_metadata_.vps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w);
|
|
1896
|
+
}
|
|
1897
|
+
} else S.type === Ee.kSliceSPS ? (w = ae.parseSPS(p.data), this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H265: Critical h265 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w))) : S.type === Ee.kSlicePPS ? (!this.video_init_segment_dispatched_ || this.video_metadata_changed_) && (w = ae.parsePPS(p.data), this.video_metadata_.pps = S, this.video_metadata_.details = Ve(Ve({}, this.video_metadata_.details), w), this.video_metadata_.vps && this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : S.type !== Ee.kSliceIDR_W_RADL && S.type !== Ee.kSliceIDR_N_LP && S.type !== Ee.kSliceCRA_NUT || (A = !0);
|
|
1898
|
+
this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
|
|
1899
|
+
}
|
|
1900
|
+
var I = Math.floor(e / this.timescale_), z = Math.floor(a / this.timescale_);
|
|
1901
|
+
if (g.length) {
|
|
1902
|
+
var N = this.video_track_, J = { units: g, length: E, isKeyframe: A, dts: z, pts: I, cts: I - z, file_position: s };
|
|
1903
|
+
N.samples.push(J), N.length += E;
|
|
1904
|
+
}
|
|
1905
|
+
}, t.prototype.detectVideoMetadataChange = function(i, e) {
|
|
1906
|
+
if (e.codec_mimetype !== this.video_metadata_.details.codec_mimetype) return m.a.v(this.TAG, "Video: Codec mimeType changed from " + this.video_metadata_.details.codec_mimetype + " to " + e.codec_mimetype), !0;
|
|
1907
|
+
if (e.codec_size.width !== this.video_metadata_.details.codec_size.width || e.codec_size.height !== this.video_metadata_.details.codec_size.height) {
|
|
1908
|
+
var a = this.video_metadata_.details.codec_size, s = e.codec_size;
|
|
1909
|
+
return m.a.v(this.TAG, "Video: Coded Resolution changed from " + a.width + "x" + a.height + " to " + s.width + "x" + s.height), !0;
|
|
1910
|
+
}
|
|
1911
|
+
return e.present_size.width !== this.video_metadata_.details.present_size.width && (m.a.v(this.TAG, "Video: Present resolution width changed from " + this.video_metadata_.details.present_size.width + " to " + e.present_size.width), !0);
|
|
1912
|
+
}, t.prototype.isInitSegmentDispatched = function() {
|
|
1913
|
+
return this.has_video_ && this.has_audio_ ? this.video_init_segment_dispatched_ && this.audio_init_segment_dispatched_ : this.has_video_ && !this.has_audio_ ? this.video_init_segment_dispatched_ : !(this.has_video_ || !this.has_audio_) && this.audio_init_segment_dispatched_;
|
|
1914
|
+
}, t.prototype.dispatchVideoInitSegment = function() {
|
|
1915
|
+
var i = this.video_metadata_.details, e = { type: "video" };
|
|
1916
|
+
e.id = this.video_track_.id, e.timescale = 1e3, e.duration = this.duration_, e.codecWidth = i.codec_size.width, e.codecHeight = i.codec_size.height, e.presentWidth = i.present_size.width, e.presentHeight = i.present_size.height, e.profile = i.profile_string, e.level = i.level_string, e.bitDepth = i.bit_depth, e.chromaFormat = i.chroma_format, e.sarRatio = i.sar_ratio, e.frameRate = i.frame_rate;
|
|
1917
|
+
var a = e.frameRate.fps_den, s = e.frameRate.fps_num;
|
|
1918
|
+
if (e.refSampleDuration = a / s * 1e3, e.codec = i.codec_mimetype, this.video_metadata_.vps) {
|
|
1919
|
+
var n = this.video_metadata_.vps.data.subarray(4), o = this.video_metadata_.sps.data.subarray(4), p = this.video_metadata_.pps.data.subarray(4), g = new xt(n, o, p, i);
|
|
1920
|
+
e.hvcc = g.getData(), this.video_init_segment_dispatched_ == 0 && m.a.v(this.TAG, "Generated first HEVCDecoderConfigurationRecord for mimeType: " + e.codec);
|
|
1921
|
+
} else {
|
|
1922
|
+
o = this.video_metadata_.sps.data.subarray(4), p = this.video_metadata_.pps.data.subarray(4);
|
|
1923
|
+
var E = new oe(o, p, i);
|
|
1924
|
+
e.avcc = E.getData(), this.video_init_segment_dispatched_ == 0 && m.a.v(this.TAG, "Generated first AVCDecoderConfigurationRecord for mimeType: " + e.codec);
|
|
1925
|
+
}
|
|
1926
|
+
this.onTrackMetadata("video", e), this.video_init_segment_dispatched_ = !0, this.video_metadata_changed_ = !1;
|
|
1927
|
+
var A = this.media_info_;
|
|
1928
|
+
A.hasVideo = !0, A.width = e.codecWidth, A.height = e.codecHeight, A.fps = e.frameRate.fps, A.profile = e.profile, A.level = e.level, A.refFrames = i.ref_frames, A.chromaFormat = i.chroma_format_string, A.sarNum = e.sarRatio.width, A.sarDen = e.sarRatio.height, A.videoCodec = e.codec, A.hasAudio && A.audioCodec ? A.mimeType = 'video/mp2t; codecs="' + A.videoCodec + "," + A.audioCodec + '"' : A.mimeType = 'video/mp2t; codecs="' + A.videoCodec + '"', A.isComplete() && this.onMediaInfo(A);
|
|
1929
|
+
}, t.prototype.dispatchVideoMediaSegment = function() {
|
|
1930
|
+
this.isInitSegmentDispatched() && this.video_track_.length && this.onDataAvailable(null, this.video_track_);
|
|
1931
|
+
}, t.prototype.dispatchAudioMediaSegment = function() {
|
|
1932
|
+
this.isInitSegmentDispatched() && this.audio_track_.length && this.onDataAvailable(this.audio_track_, null);
|
|
1933
|
+
}, t.prototype.dispatchAudioVideoMediaSegment = function() {
|
|
1934
|
+
this.isInitSegmentDispatched() && (this.audio_track_.length || this.video_track_.length) && this.onDataAvailable(this.audio_track_, this.video_track_);
|
|
1935
|
+
}, t.prototype.parseADTSAACPayload = function(i, e) {
|
|
1936
|
+
if (!this.has_video_ || this.video_init_segment_dispatched_) {
|
|
1937
|
+
if (this.aac_last_incomplete_data_) {
|
|
1938
|
+
var a = new Uint8Array(i.byteLength + this.aac_last_incomplete_data_.byteLength);
|
|
1939
|
+
a.set(this.aac_last_incomplete_data_, 0), a.set(i, this.aac_last_incomplete_data_.byteLength), i = a;
|
|
1940
|
+
}
|
|
1941
|
+
var s, n;
|
|
1942
|
+
if (e != null && (n = e / this.timescale_), this.audio_metadata_.codec === "aac") {
|
|
1943
|
+
if (e == null && this.aac_last_sample_pts_ != null) s = 1024 / this.audio_metadata_.sampling_frequency * 1e3, n = this.aac_last_sample_pts_ + s;
|
|
1944
|
+
else if (e == null) return void m.a.w(this.TAG, "AAC: Unknown pts");
|
|
1945
|
+
if (this.aac_last_incomplete_data_ && this.aac_last_sample_pts_) {
|
|
1946
|
+
s = 1024 / this.audio_metadata_.sampling_frequency * 1e3;
|
|
1947
|
+
var o = this.aac_last_sample_pts_ + s;
|
|
1948
|
+
Math.abs(o - n) > 1 && (m.a.w(this.TAG, "AAC: Detected pts overlapped, expected: " + o + "ms, PES pts: " + n + "ms"), n = o);
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
for (var p, g = new $(i), E = null, A = n; (E = g.readNextAACFrame()) != null; ) {
|
|
1952
|
+
s = 1024 / E.sampling_frequency * 1e3;
|
|
1953
|
+
var S = { codec: "aac", data: E };
|
|
1954
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "aac", audio_object_type: E.audio_object_type, sampling_freq_index: E.sampling_freq_index, sampling_frequency: E.sampling_frequency, channel_config: E.channel_config }, this.dispatchAudioInitSegment(S)) : this.detectAudioMetadataChange(S) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(S)), p = A;
|
|
1955
|
+
var w = Math.floor(A), I = { unit: E.data, length: E.data.byteLength, pts: w, dts: w };
|
|
1956
|
+
this.audio_track_.samples.push(I), this.audio_track_.length += E.data.byteLength, A += s;
|
|
1957
|
+
}
|
|
1958
|
+
g.hasIncompleteData() && (this.aac_last_incomplete_data_ = g.getIncompleteData()), p && (this.aac_last_sample_pts_ = p);
|
|
1959
|
+
}
|
|
1960
|
+
}, t.prototype.parseLOASAACPayload = function(i, e) {
|
|
1961
|
+
var a;
|
|
1962
|
+
if (!this.has_video_ || this.video_init_segment_dispatched_) {
|
|
1963
|
+
if (this.aac_last_incomplete_data_) {
|
|
1964
|
+
var s = new Uint8Array(i.byteLength + this.aac_last_incomplete_data_.byteLength);
|
|
1965
|
+
s.set(this.aac_last_incomplete_data_, 0), s.set(i, this.aac_last_incomplete_data_.byteLength), i = s;
|
|
1966
|
+
}
|
|
1967
|
+
var n, o;
|
|
1968
|
+
if (e != null && (o = e / this.timescale_), this.audio_metadata_.codec === "aac") {
|
|
1969
|
+
if (e == null && this.aac_last_sample_pts_ != null) n = 1024 / this.audio_metadata_.sampling_frequency * 1e3, o = this.aac_last_sample_pts_ + n;
|
|
1970
|
+
else if (e == null) return void m.a.w(this.TAG, "AAC: Unknown pts");
|
|
1971
|
+
if (this.aac_last_incomplete_data_ && this.aac_last_sample_pts_) {
|
|
1972
|
+
n = 1024 / this.audio_metadata_.sampling_frequency * 1e3;
|
|
1973
|
+
var p = this.aac_last_sample_pts_ + n;
|
|
1974
|
+
Math.abs(p - o) > 1 && (m.a.w(this.TAG, "AAC: Detected pts overlapped, expected: " + p + "ms, PES pts: " + o + "ms"), o = p);
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
for (var g, E = new ie(i), A = null, S = o; (A = E.readNextAACFrame((a = this.loas_previous_frame) !== null && a !== void 0 ? a : void 0)) != null; ) {
|
|
1978
|
+
this.loas_previous_frame = A, n = 1024 / A.sampling_frequency * 1e3;
|
|
1979
|
+
var w = { codec: "aac", data: A };
|
|
1980
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "aac", audio_object_type: A.audio_object_type, sampling_freq_index: A.sampling_freq_index, sampling_frequency: A.sampling_frequency, channel_config: A.channel_config }, this.dispatchAudioInitSegment(w)) : this.detectAudioMetadataChange(w) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(w)), g = S;
|
|
1981
|
+
var I = Math.floor(S), z = { unit: A.data, length: A.data.byteLength, pts: I, dts: I };
|
|
1982
|
+
this.audio_track_.samples.push(z), this.audio_track_.length += A.data.byteLength, S += n;
|
|
1983
|
+
}
|
|
1984
|
+
E.hasIncompleteData() && (this.aac_last_incomplete_data_ = E.getIncompleteData()), g && (this.aac_last_sample_pts_ = g);
|
|
1985
|
+
}
|
|
1986
|
+
}, t.prototype.parseAC3Payload = function(i, e) {
|
|
1987
|
+
if (!this.has_video_ || this.video_init_segment_dispatched_) {
|
|
1988
|
+
var a, s;
|
|
1989
|
+
if (e != null && (s = e / this.timescale_), this.audio_metadata_.codec === "ac-3") {
|
|
1990
|
+
if (e == null && this.aac_last_sample_pts_ != null) a = 1536 / this.audio_metadata_.sampling_frequency * 1e3, s = this.aac_last_sample_pts_ + a;
|
|
1991
|
+
else if (e == null) return void m.a.w(this.TAG, "Opus: Unknown pts");
|
|
1992
|
+
}
|
|
1993
|
+
for (var n, o = new Vt(i), p = null, g = s; (p = o.readNextAC3Frame()) != null; ) {
|
|
1994
|
+
a = 1536 / p.sampling_frequency * 1e3;
|
|
1995
|
+
var E = { codec: "ac-3", data: p };
|
|
1996
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "ac-3", sampling_frequency: p.sampling_frequency, bit_stream_identification: p.bit_stream_identification, bit_stream_mode: p.bit_stream_mode, low_frequency_effects_channel_on: p.low_frequency_effects_channel_on, channel_mode: p.channel_mode }, this.dispatchAudioInitSegment(E)) : this.detectAudioMetadataChange(E) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(E)), n = g;
|
|
1997
|
+
var A = Math.floor(g), S = { unit: p.data, length: p.data.byteLength, pts: A, dts: A };
|
|
1998
|
+
this.audio_track_.samples.push(S), this.audio_track_.length += p.data.byteLength, g += a;
|
|
1999
|
+
}
|
|
2000
|
+
n && (this.aac_last_sample_pts_ = n);
|
|
2001
|
+
}
|
|
2002
|
+
}, t.prototype.parseOpusPayload = function(i, e) {
|
|
2003
|
+
if (!this.has_video_ || this.video_init_segment_dispatched_) {
|
|
2004
|
+
var a, s;
|
|
2005
|
+
if (e != null && (s = e / this.timescale_), this.audio_metadata_.codec === "opus") {
|
|
2006
|
+
if (e == null && this.aac_last_sample_pts_ != null) a = 20, s = this.aac_last_sample_pts_ + a;
|
|
2007
|
+
else if (e == null) return void m.a.w(this.TAG, "Opus: Unknown pts");
|
|
2008
|
+
}
|
|
2009
|
+
for (var n, o = s, p = 0; p < i.length; ) {
|
|
2010
|
+
a = 20;
|
|
2011
|
+
for (var g = (16 & i[p + 1]) != 0, E = (8 & i[p + 1]) != 0, A = p + 2, S = 0; i[A] === 255; ) S += 255, A += 1;
|
|
2012
|
+
S += i[A], A += 1, A += g ? 2 : 0, A += E ? 2 : 0, n = o;
|
|
2013
|
+
var w = Math.floor(o), I = i.slice(A, A + S), z = { unit: I, length: I.byteLength, pts: w, dts: w };
|
|
2014
|
+
this.audio_track_.samples.push(z), this.audio_track_.length += I.byteLength, o += a, p = A + S;
|
|
2015
|
+
}
|
|
2016
|
+
n && (this.aac_last_sample_pts_ = n);
|
|
2017
|
+
}
|
|
2018
|
+
}, t.prototype.parseMP3Payload = function(i, e) {
|
|
2019
|
+
if (!this.has_video_ || this.video_init_segment_dispatched_) {
|
|
2020
|
+
var a = [0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1], s = [0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, -1], n = [0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1], o = i[1] >>> 3 & 3, p = (6 & i[1]) >> 1, g = (240 & i[2]) >>> 4, E = (12 & i[2]) >>> 2, A = (i[3] >>> 6 & 3) !== 3 ? 2 : 1, S = 0, w = 34;
|
|
2021
|
+
switch (o) {
|
|
2022
|
+
case 0:
|
|
2023
|
+
S = [11025, 12e3, 8e3, 0][E];
|
|
2024
|
+
break;
|
|
2025
|
+
case 2:
|
|
2026
|
+
S = [22050, 24e3, 16e3, 0][E];
|
|
2027
|
+
break;
|
|
2028
|
+
case 3:
|
|
2029
|
+
S = [44100, 48e3, 32e3, 0][E];
|
|
2030
|
+
}
|
|
2031
|
+
switch (p) {
|
|
2032
|
+
case 1:
|
|
2033
|
+
w = 34, g < n.length && n[g];
|
|
2034
|
+
break;
|
|
2035
|
+
case 2:
|
|
2036
|
+
w = 33, g < s.length && s[g];
|
|
2037
|
+
break;
|
|
2038
|
+
case 3:
|
|
2039
|
+
w = 32, g < a.length && a[g];
|
|
2040
|
+
}
|
|
2041
|
+
var I = new Nt();
|
|
2042
|
+
I.object_type = w, I.sample_rate = S, I.channel_count = A, I.data = i;
|
|
2043
|
+
var z = { codec: "mp3", data: I };
|
|
2044
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "mp3", object_type: w, sample_rate: S, channel_count: A }, this.dispatchAudioInitSegment(z)) : this.detectAudioMetadataChange(z) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(z));
|
|
2045
|
+
var N = { unit: i, length: i.byteLength, pts: e / this.timescale_, dts: e / this.timescale_ };
|
|
2046
|
+
this.audio_track_.samples.push(N), this.audio_track_.length += i.byteLength;
|
|
2047
|
+
}
|
|
2048
|
+
}, t.prototype.detectAudioMetadataChange = function(i) {
|
|
2049
|
+
if (i.codec !== this.audio_metadata_.codec) return m.a.v(this.TAG, "Audio: Audio Codecs changed from " + this.audio_metadata_.codec + " to " + i.codec), !0;
|
|
2050
|
+
if (i.codec === "aac" && this.audio_metadata_.codec === "aac") {
|
|
2051
|
+
if ((e = i.data).audio_object_type !== this.audio_metadata_.audio_object_type) return m.a.v(this.TAG, "AAC: AudioObjectType changed from " + this.audio_metadata_.audio_object_type + " to " + e.audio_object_type), !0;
|
|
2052
|
+
if (e.sampling_freq_index !== this.audio_metadata_.sampling_freq_index) return m.a.v(this.TAG, "AAC: SamplingFrequencyIndex changed from " + this.audio_metadata_.sampling_freq_index + " to " + e.sampling_freq_index), !0;
|
|
2053
|
+
if (e.channel_config !== this.audio_metadata_.channel_config) return m.a.v(this.TAG, "AAC: Channel configuration changed from " + this.audio_metadata_.channel_config + " to " + e.channel_config), !0;
|
|
2054
|
+
} else if (i.codec === "ac-3" && this.audio_metadata_.codec === "ac-3") {
|
|
2055
|
+
var e;
|
|
2056
|
+
if ((e = i.data).sampling_frequency !== this.audio_metadata_.sampling_frequency) return m.a.v(this.TAG, "AC3: Sampling Frequency changed from " + this.audio_metadata_.sampling_frequency + " to " + e.sampling_frequency), !0;
|
|
2057
|
+
if (e.bit_stream_identification !== this.audio_metadata_.bit_stream_identification) return m.a.v(this.TAG, "AC3: Bit Stream Identification changed from " + this.audio_metadata_.bit_stream_identification + " to " + e.bit_stream_identification), !0;
|
|
2058
|
+
if (e.bit_stream_mode !== this.audio_metadata_.bit_stream_mode) return m.a.v(this.TAG, "AC3: BitStream Mode changed from " + this.audio_metadata_.bit_stream_mode + " to " + e.bit_stream_mode), !0;
|
|
2059
|
+
if (e.channel_mode !== this.audio_metadata_.channel_mode) return m.a.v(this.TAG, "AC3: Channel Mode changed from " + this.audio_metadata_.channel_mode + " to " + e.channel_mode), !0;
|
|
2060
|
+
if (e.low_frequency_effects_channel_on !== this.audio_metadata_.low_frequency_effects_channel_on) return m.a.v(this.TAG, "AC3: Low Frequency Effects Channel On changed from " + this.audio_metadata_.low_frequency_effects_channel_on + " to " + e.low_frequency_effects_channel_on), !0;
|
|
2061
|
+
} else if (i.codec === "opus" && this.audio_metadata_.codec === "opus") {
|
|
2062
|
+
if ((a = i.meta).sample_rate !== this.audio_metadata_.sample_rate) return m.a.v(this.TAG, "Opus: SamplingFrequencyIndex changed from " + this.audio_metadata_.sample_rate + " to " + a.sample_rate), !0;
|
|
2063
|
+
if (a.channel_count !== this.audio_metadata_.channel_count) return m.a.v(this.TAG, "Opus: Channel count changed from " + this.audio_metadata_.channel_count + " to " + a.channel_count), !0;
|
|
2064
|
+
} else if (i.codec === "mp3" && this.audio_metadata_.codec === "mp3") {
|
|
2065
|
+
var a;
|
|
2066
|
+
if ((a = i.data).object_type !== this.audio_metadata_.object_type) return m.a.v(this.TAG, "MP3: AudioObjectType changed from " + this.audio_metadata_.object_type + " to " + a.object_type), !0;
|
|
2067
|
+
if (a.sample_rate !== this.audio_metadata_.sample_rate) return m.a.v(this.TAG, "MP3: SamplingFrequencyIndex changed from " + this.audio_metadata_.sample_rate + " to " + a.sample_rate), !0;
|
|
2068
|
+
if (a.channel_count !== this.audio_metadata_.channel_count) return m.a.v(this.TAG, "MP3: Channel count changed from " + this.audio_metadata_.channel_count + " to " + a.channel_count), !0;
|
|
2069
|
+
}
|
|
2070
|
+
return !1;
|
|
2071
|
+
}, t.prototype.dispatchAudioInitSegment = function(i) {
|
|
2072
|
+
var e = { type: "audio" };
|
|
2073
|
+
if (e.id = this.audio_track_.id, e.timescale = 1e3, e.duration = this.duration_, this.audio_metadata_.codec === "aac") {
|
|
2074
|
+
var a = i.codec === "aac" ? i.data : null, s = new re(a);
|
|
2075
|
+
e.audioSampleRate = s.sampling_rate, e.channelCount = s.channel_count, e.codec = s.codec_mimetype, e.originalCodec = s.original_codec_mimetype, e.config = s.config, e.refSampleDuration = 1024 / e.audioSampleRate * e.timescale;
|
|
2076
|
+
} else if (this.audio_metadata_.codec === "ac-3") {
|
|
2077
|
+
var n = i.codec === "ac-3" ? i.data : null, o = new jt(n);
|
|
2078
|
+
e.audioSampleRate = o.sampling_rate, e.channelCount = o.channel_count, e.codec = o.codec_mimetype, e.originalCodec = o.original_codec_mimetype, e.config = o.config, e.refSampleDuration = 1536 / e.audioSampleRate * e.timescale;
|
|
2079
|
+
} else this.audio_metadata_.codec === "opus" ? (e.audioSampleRate = this.audio_metadata_.sample_rate, e.channelCount = this.audio_metadata_.channel_count, e.channelConfigCode = this.audio_metadata_.channel_config_code, e.codec = "opus", e.originalCodec = "opus", e.config = void 0, e.refSampleDuration = 20) : this.audio_metadata_.codec === "mp3" && (e.audioSampleRate = this.audio_metadata_.sample_rate, e.channelCount = this.audio_metadata_.channel_count, e.codec = "mp3", e.originalCodec = "mp3", e.config = void 0);
|
|
2080
|
+
this.audio_init_segment_dispatched_ == 0 && m.a.v(this.TAG, "Generated first AudioSpecificConfig for mimeType: " + e.codec), this.onTrackMetadata("audio", e), this.audio_init_segment_dispatched_ = !0, this.video_metadata_changed_ = !1;
|
|
2081
|
+
var p = this.media_info_;
|
|
2082
|
+
p.hasAudio = !0, p.audioCodec = e.originalCodec, p.audioSampleRate = e.audioSampleRate, p.audioChannelCount = e.channelCount, p.hasVideo && p.videoCodec ? p.mimeType = 'video/mp2t; codecs="' + p.videoCodec + "," + p.audioCodec + '"' : p.mimeType = 'video/mp2t; codecs="' + p.audioCodec + '"', p.isComplete() && this.onMediaInfo(p);
|
|
2083
|
+
}, t.prototype.dispatchPESPrivateDataDescriptor = function(i, e, a) {
|
|
2084
|
+
var s = new we();
|
|
2085
|
+
s.pid = i, s.stream_type = e, s.descriptor = a, this.onPESPrivateDataDescriptor && this.onPESPrivateDataDescriptor(s);
|
|
2086
|
+
}, t.prototype.parsePESPrivateDataPayload = function(i, e, a, s, n) {
|
|
2087
|
+
var o = new ce();
|
|
2088
|
+
if (o.pid = s, o.stream_id = n, o.len = i.byteLength, o.data = i, e != null) {
|
|
2089
|
+
var p = Math.floor(e / this.timescale_);
|
|
2090
|
+
o.pts = p;
|
|
2091
|
+
} else o.nearest_pts = this.aac_last_sample_pts_;
|
|
2092
|
+
if (a != null) {
|
|
2093
|
+
var g = Math.floor(a / this.timescale_);
|
|
2094
|
+
o.dts = g;
|
|
2095
|
+
}
|
|
2096
|
+
this.onPESPrivateData && this.onPESPrivateData(o);
|
|
2097
|
+
}, t.prototype.parseTimedID3MetadataPayload = function(i, e, a, s, n) {
|
|
2098
|
+
var o = new ce();
|
|
2099
|
+
if (o.pid = s, o.stream_id = n, o.len = i.byteLength, o.data = i, e != null) {
|
|
2100
|
+
var p = Math.floor(e / this.timescale_);
|
|
2101
|
+
o.pts = p;
|
|
2102
|
+
}
|
|
2103
|
+
if (a != null) {
|
|
2104
|
+
var g = Math.floor(a / this.timescale_);
|
|
2105
|
+
o.dts = g;
|
|
2106
|
+
}
|
|
2107
|
+
this.onTimedID3Metadata && this.onTimedID3Metadata(o);
|
|
2108
|
+
}, t.prototype.parseSMPTE2038MetadataPayload = function(i, e, a, s, n) {
|
|
2109
|
+
var o = new Ut();
|
|
2110
|
+
if (o.pid = s, o.stream_id = n, o.len = i.byteLength, o.data = i, e != null) {
|
|
2111
|
+
var p = Math.floor(e / this.timescale_);
|
|
2112
|
+
o.pts = p;
|
|
2113
|
+
}
|
|
2114
|
+
if (o.nearest_pts = this.aac_last_sample_pts_, a != null) {
|
|
2115
|
+
var g = Math.floor(a / this.timescale_);
|
|
2116
|
+
o.dts = g;
|
|
2117
|
+
}
|
|
2118
|
+
o.ancillaries = function(E) {
|
|
2119
|
+
for (var A = new ue(E), S = 0, w = []; S += 6, A.readBits(6) === 0; ) {
|
|
2120
|
+
var I = A.readBool();
|
|
2121
|
+
S += 1;
|
|
2122
|
+
var z = A.readBits(11);
|
|
2123
|
+
S += 11;
|
|
2124
|
+
var N = A.readBits(12);
|
|
2125
|
+
S += 12;
|
|
2126
|
+
var J = 255 & A.readBits(10);
|
|
2127
|
+
S += 10;
|
|
2128
|
+
var W = 255 & A.readBits(10);
|
|
2129
|
+
S += 10;
|
|
2130
|
+
var q = 255 & A.readBits(10);
|
|
2131
|
+
S += 10;
|
|
2132
|
+
for (var de = new Uint8Array(q), he = 0; he < q; he++) {
|
|
2133
|
+
var K = 255 & A.readBits(10);
|
|
2134
|
+
S += 10, de[he] = K;
|
|
2135
|
+
}
|
|
2136
|
+
A.readBits(10), S += 10;
|
|
2137
|
+
var Q = "User Defined";
|
|
2138
|
+
J === 65 ? W === 7 && (Q = "SCTE-104") : J === 95 ? W === 220 ? Q = "ARIB STD-B37 (1SEG)" : W === 221 ? Q = "ARIB STD-B37 (ANALOG)" : W === 222 ? Q = "ARIB STD-B37 (SD)" : W === 223 && (Q = "ARIB STD-B37 (HD)") : J === 97 && (W === 1 ? Q = "EIA-708" : W === 2 && (Q = "EIA-608")), w.push({ yc_indicator: I, line_number: z, horizontal_offset: N, did: J, sdid: W, user_data: de, description: Q, information: {} }), A.readBits(8 - (S - Math.floor(S / 8)) % 8), S += (8 - (S - Math.floor(S / 8))) % 8;
|
|
2139
|
+
}
|
|
2140
|
+
return A.destroy(), A = null, w;
|
|
2141
|
+
}(i), this.onSMPTE2038Metadata && this.onSMPTE2038Metadata(o);
|
|
2142
|
+
}, t;
|
|
2143
|
+
}(c), Ht = function() {
|
|
2144
|
+
for (var r = 0, t = 0, i = arguments.length; t < i; t++) r += arguments[t].length;
|
|
2145
|
+
var e = Array(r), a = 0;
|
|
2146
|
+
for (t = 0; t < i; t++) for (var s = arguments[t], n = 0, o = s.length; n < o; n++, a++) e[a] = s[n];
|
|
2147
|
+
return e;
|
|
2148
|
+
}, _t = function() {
|
|
2149
|
+
function r() {
|
|
2150
|
+
}
|
|
2151
|
+
return r.init = function() {
|
|
2152
|
+
for (var t in r.types = { avc1: [], avcC: [], btrt: [], dinf: [], dref: [], esds: [], ftyp: [], hdlr: [], hvc1: [], hvcC: [], mdat: [], mdhd: [], mdia: [], mfhd: [], minf: [], moof: [], moov: [], mp4a: [], mvex: [], mvhd: [], sdtp: [], stbl: [], stco: [], stsc: [], stsd: [], stsz: [], stts: [], tfdt: [], tfhd: [], traf: [], trak: [], trun: [], trex: [], tkhd: [], vmhd: [], smhd: [], ".mp3": [], Opus: [], dOps: [], "ac-3": [], dac3: [] }, r.types) r.types.hasOwnProperty(t) && (r.types[t] = [t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2), t.charCodeAt(3)]);
|
|
2153
|
+
var i = r.constants = {};
|
|
2154
|
+
i.FTYP = new Uint8Array([105, 115, 111, 109, 0, 0, 0, 1, 105, 115, 111, 109, 97, 118, 99, 49]), i.STSD_PREFIX = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1]), i.STTS = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]), i.STSC = i.STCO = i.STTS, i.STSZ = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), i.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]), i.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]), i.DREF = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 12, 117, 114, 108, 32, 0, 0, 0, 1]), i.SMHD = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]), i.VMHD = new Uint8Array([0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
2155
|
+
}, r.box = function(t) {
|
|
2156
|
+
for (var i = 8, e = null, a = Array.prototype.slice.call(arguments, 1), s = a.length, n = 0; n < s; n++) i += a[n].byteLength;
|
|
2157
|
+
(e = new Uint8Array(i))[0] = i >>> 24 & 255, e[1] = i >>> 16 & 255, e[2] = i >>> 8 & 255, e[3] = 255 & i, e.set(t, 4);
|
|
2158
|
+
var o = 8;
|
|
2159
|
+
for (n = 0; n < s; n++) e.set(a[n], o), o += a[n].byteLength;
|
|
2160
|
+
return e;
|
|
2161
|
+
}, r.generateInitSegment = function(t) {
|
|
2162
|
+
var i = r.box(r.types.ftyp, r.constants.FTYP), e = r.moov(t), a = new Uint8Array(i.byteLength + e.byteLength);
|
|
2163
|
+
return a.set(i, 0), a.set(e, i.byteLength), a;
|
|
2164
|
+
}, r.moov = function(t) {
|
|
2165
|
+
var i = r.mvhd(t.timescale, t.duration), e = r.trak(t), a = r.mvex(t);
|
|
2166
|
+
return r.box(r.types.moov, i, e, a);
|
|
2167
|
+
}, r.mvhd = function(t, i) {
|
|
2168
|
+
return r.box(r.types.mvhd, 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, 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]));
|
|
2169
|
+
}, r.trak = function(t) {
|
|
2170
|
+
return r.box(r.types.trak, r.tkhd(t), r.mdia(t));
|
|
2171
|
+
}, r.tkhd = function(t) {
|
|
2172
|
+
var i = t.id, e = t.duration, a = t.presentWidth, s = t.presentHeight;
|
|
2173
|
+
return r.box(r.types.tkhd, new Uint8Array([0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i, 0, 0, 0, 0, e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e, 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, a >>> 8 & 255, 255 & a, 0, 0, s >>> 8 & 255, 255 & s, 0, 0]));
|
|
2174
|
+
}, r.mdia = function(t) {
|
|
2175
|
+
return r.box(r.types.mdia, r.mdhd(t), r.hdlr(t), r.minf(t));
|
|
2176
|
+
}, r.mdhd = function(t) {
|
|
2177
|
+
var i = t.timescale, e = t.duration;
|
|
2178
|
+
return r.box(r.types.mdhd, new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i, e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e, 85, 196, 0, 0]));
|
|
2179
|
+
}, r.hdlr = function(t) {
|
|
2180
|
+
var i = null;
|
|
2181
|
+
return i = t.type === "audio" ? r.constants.HDLR_AUDIO : r.constants.HDLR_VIDEO, r.box(r.types.hdlr, i);
|
|
2182
|
+
}, r.minf = function(t) {
|
|
2183
|
+
var i = null;
|
|
2184
|
+
return i = t.type === "audio" ? r.box(r.types.smhd, r.constants.SMHD) : r.box(r.types.vmhd, r.constants.VMHD), r.box(r.types.minf, i, r.dinf(), r.stbl(t));
|
|
2185
|
+
}, r.dinf = function() {
|
|
2186
|
+
return r.box(r.types.dinf, r.box(r.types.dref, r.constants.DREF));
|
|
2187
|
+
}, r.stbl = function(t) {
|
|
2188
|
+
return r.box(r.types.stbl, r.stsd(t), r.box(r.types.stts, r.constants.STTS), r.box(r.types.stsc, r.constants.STSC), r.box(r.types.stsz, r.constants.STSZ), r.box(r.types.stco, r.constants.STCO));
|
|
2189
|
+
}, r.stsd = function(t) {
|
|
2190
|
+
return t.type === "audio" ? t.codec === "mp3" ? r.box(r.types.stsd, r.constants.STSD_PREFIX, r.mp3(t)) : t.codec === "ac-3" ? r.box(r.types.stsd, r.constants.STSD_PREFIX, r.ac3(t)) : t.codec === "opus" ? r.box(r.types.stsd, r.constants.STSD_PREFIX, r.Opus(t)) : r.box(r.types.stsd, r.constants.STSD_PREFIX, r.mp4a(t)) : t.type === "video" && t.codec.startsWith("hvc1") ? r.box(r.types.stsd, r.constants.STSD_PREFIX, r.hvc1(t)) : r.box(r.types.stsd, r.constants.STSD_PREFIX, r.avc1(t));
|
|
2191
|
+
}, r.mp3 = function(t) {
|
|
2192
|
+
var i = t.channelCount, e = t.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, e >>> 8 & 255, 255 & e, 0, 0]);
|
|
2193
|
+
return r.box(r.types[".mp3"], a);
|
|
2194
|
+
}, r.mp4a = function(t) {
|
|
2195
|
+
var i = t.channelCount, e = t.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, e >>> 8 & 255, 255 & e, 0, 0]);
|
|
2196
|
+
return r.box(r.types.mp4a, a, r.esds(t));
|
|
2197
|
+
}, r.ac3 = function(t) {
|
|
2198
|
+
var i = t.channelCount, e = t.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, e >>> 8 & 255, 255 & e, 0, 0]);
|
|
2199
|
+
return r.box(r.types["ac-3"], a, r.box(r.types.dac3, new Uint8Array(t.config)));
|
|
2200
|
+
}, r.esds = function(t) {
|
|
2201
|
+
var i = t.config || [], e = i.length, a = new Uint8Array([0, 0, 0, 0, 3, 23 + e, 0, 1, 0, 4, 15 + e, 64, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5].concat([e]).concat(i).concat([6, 1, 2]));
|
|
2202
|
+
return r.box(r.types.esds, a);
|
|
2203
|
+
}, r.Opus = function(t) {
|
|
2204
|
+
var i = t.channelCount, e = t.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, e >>> 8 & 255, 255 & e, 0, 0]);
|
|
2205
|
+
return r.box(r.types.Opus, a, r.dOps(t));
|
|
2206
|
+
}, r.dOps = function(t) {
|
|
2207
|
+
var i = t.channelCount, e = t.channelConfigCode, a = t.audioSampleRate;
|
|
2208
|
+
if (t.config) return r.box(r.types.dOps, n);
|
|
2209
|
+
var s = [];
|
|
2210
|
+
switch (e) {
|
|
2211
|
+
case 1:
|
|
2212
|
+
case 2:
|
|
2213
|
+
s = [0];
|
|
2214
|
+
break;
|
|
2215
|
+
case 0:
|
|
2216
|
+
s = [255, 1, 1, 0, 1];
|
|
2217
|
+
break;
|
|
2218
|
+
case 128:
|
|
2219
|
+
s = [255, 2, 0, 0, 1];
|
|
2220
|
+
break;
|
|
2221
|
+
case 3:
|
|
2222
|
+
s = [1, 2, 1, 0, 2, 1];
|
|
2223
|
+
break;
|
|
2224
|
+
case 4:
|
|
2225
|
+
s = [1, 2, 2, 0, 1, 2, 3];
|
|
2226
|
+
break;
|
|
2227
|
+
case 5:
|
|
2228
|
+
s = [1, 3, 2, 0, 4, 1, 2, 3];
|
|
2229
|
+
break;
|
|
2230
|
+
case 6:
|
|
2231
|
+
s = [1, 4, 2, 0, 4, 1, 2, 3, 5];
|
|
2232
|
+
break;
|
|
2233
|
+
case 7:
|
|
2234
|
+
s = [1, 4, 2, 0, 4, 1, 2, 3, 5, 6];
|
|
2235
|
+
break;
|
|
2236
|
+
case 8:
|
|
2237
|
+
s = [1, 5, 3, 0, 6, 1, 2, 3, 4, 5, 7];
|
|
2238
|
+
break;
|
|
2239
|
+
case 130:
|
|
2240
|
+
s = [1, 1, 2, 0, 1];
|
|
2241
|
+
break;
|
|
2242
|
+
case 131:
|
|
2243
|
+
s = [1, 1, 3, 0, 1, 2];
|
|
2244
|
+
break;
|
|
2245
|
+
case 132:
|
|
2246
|
+
s = [1, 1, 4, 0, 1, 2, 3];
|
|
2247
|
+
break;
|
|
2248
|
+
case 133:
|
|
2249
|
+
s = [1, 1, 5, 0, 1, 2, 3, 4];
|
|
2250
|
+
break;
|
|
2251
|
+
case 134:
|
|
2252
|
+
s = [1, 1, 6, 0, 1, 2, 3, 4, 5];
|
|
2253
|
+
break;
|
|
2254
|
+
case 135:
|
|
2255
|
+
s = [1, 1, 7, 0, 1, 2, 3, 4, 5, 6];
|
|
2256
|
+
break;
|
|
2257
|
+
case 136:
|
|
2258
|
+
s = [1, 1, 8, 0, 1, 2, 3, 4, 5, 6, 7];
|
|
2259
|
+
}
|
|
2260
|
+
var n = new Uint8Array(Ht([0, i, 0, 0, a >>> 24 & 255, a >>> 17 & 255, a >>> 8 & 255, a >>> 0 & 255, 0, 0], s));
|
|
2261
|
+
return r.box(r.types.dOps, n);
|
|
2262
|
+
}, r.avc1 = function(t) {
|
|
2263
|
+
var i = t.avcc, e = t.codecWidth, a = t.codecHeight, s = 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, e >>> 8 & 255, 255 & e, a >>> 8 & 255, 255 & a, 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]);
|
|
2264
|
+
return r.box(r.types.avc1, s, r.box(r.types.avcC, i));
|
|
2265
|
+
}, r.hvc1 = function(t) {
|
|
2266
|
+
var i = t.hvcc, e = t.codecWidth, a = t.codecHeight, s = 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, e >>> 8 & 255, 255 & e, a >>> 8 & 255, 255 & a, 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]);
|
|
2267
|
+
return r.box(r.types.hvc1, s, r.box(r.types.hvcC, i));
|
|
2268
|
+
}, r.mvex = function(t) {
|
|
2269
|
+
return r.box(r.types.mvex, r.trex(t));
|
|
2270
|
+
}, r.trex = function(t) {
|
|
2271
|
+
var i = t.id, e = new Uint8Array([0, 0, 0, 0, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1]);
|
|
2272
|
+
return r.box(r.types.trex, e);
|
|
2273
|
+
}, r.moof = function(t, i) {
|
|
2274
|
+
return r.box(r.types.moof, r.mfhd(t.sequenceNumber), r.traf(t, i));
|
|
2275
|
+
}, r.mfhd = function(t) {
|
|
2276
|
+
var i = new Uint8Array([0, 0, 0, 0, t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 & t]);
|
|
2277
|
+
return r.box(r.types.mfhd, i);
|
|
2278
|
+
}, r.traf = function(t, i) {
|
|
2279
|
+
var e = t.id, a = r.box(r.types.tfhd, new Uint8Array([0, 0, 0, 0, e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e])), s = r.box(r.types.tfdt, new Uint8Array([0, 0, 0, 0, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i])), n = r.sdtp(t), o = r.trun(t, n.byteLength + 16 + 16 + 8 + 16 + 8 + 8);
|
|
2280
|
+
return r.box(r.types.traf, a, s, o, n);
|
|
2281
|
+
}, r.sdtp = function(t) {
|
|
2282
|
+
for (var i = t.samples || [], e = i.length, a = new Uint8Array(4 + e), s = 0; s < e; s++) {
|
|
2283
|
+
var n = i[s].flags;
|
|
2284
|
+
a[s + 4] = n.isLeading << 6 | n.dependsOn << 4 | n.isDependedOn << 2 | n.hasRedundancy;
|
|
2285
|
+
}
|
|
2286
|
+
return r.box(r.types.sdtp, a);
|
|
2287
|
+
}, r.trun = function(t, i) {
|
|
2288
|
+
var e = t.samples || [], a = e.length, s = 12 + 16 * a, n = new Uint8Array(s);
|
|
2289
|
+
i += 8 + s, n.set([0, 0, 15, 1, a >>> 24 & 255, a >>> 16 & 255, a >>> 8 & 255, 255 & a, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i], 0);
|
|
2290
|
+
for (var o = 0; o < a; o++) {
|
|
2291
|
+
var p = e[o].duration, g = e[o].size, E = e[o].flags, A = e[o].cts;
|
|
2292
|
+
n.set([p >>> 24 & 255, p >>> 16 & 255, p >>> 8 & 255, 255 & p, g >>> 24 & 255, g >>> 16 & 255, g >>> 8 & 255, 255 & g, E.isLeading << 2 | E.dependsOn, E.isDependedOn << 6 | E.hasRedundancy << 4 | E.isNonSync, 0, 0, A >>> 24 & 255, A >>> 16 & 255, A >>> 8 & 255, 255 & A], 12 + 16 * o);
|
|
2293
|
+
}
|
|
2294
|
+
return r.box(r.types.trun, n);
|
|
2295
|
+
}, r.mdat = function(t) {
|
|
2296
|
+
return r.box(r.types.mdat, t);
|
|
2297
|
+
}, r;
|
|
2298
|
+
}();
|
|
2299
|
+
_t.init();
|
|
2300
|
+
var ze = _t, ht = function() {
|
|
2301
|
+
function r() {
|
|
2302
|
+
}
|
|
2303
|
+
return r.getSilentFrame = function(t, i) {
|
|
2304
|
+
if (t === "mp4a.40.2") {
|
|
2305
|
+
if (i === 1) return new Uint8Array([0, 200, 0, 128, 35, 128]);
|
|
2306
|
+
if (i === 2) return new Uint8Array([33, 0, 73, 144, 2, 25, 0, 35, 128]);
|
|
2307
|
+
if (i === 3) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8, 100, 0, 142]);
|
|
2308
|
+
if (i === 4) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8, 100, 0, 128, 44, 128, 8, 2, 56]);
|
|
2309
|
+
if (i === 5) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8, 100, 0, 130, 48, 4, 153, 0, 33, 144, 2, 56]);
|
|
2310
|
+
if (i === 6) 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]);
|
|
2311
|
+
} else {
|
|
2312
|
+
if (i === 1) 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]);
|
|
2313
|
+
if (i === 2) 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]);
|
|
2314
|
+
if (i === 3) 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]);
|
|
2315
|
+
}
|
|
2316
|
+
return null;
|
|
2317
|
+
}, r;
|
|
2318
|
+
}(), Me = O(7), ct = function() {
|
|
2319
|
+
function r(t) {
|
|
2320
|
+
this.TAG = "MP4Remuxer", this._config = t, this._isLive = t.isLive === !0, 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 Me.c("audio"), this._videoSegmentInfoList = new Me.c("video"), this._onInitSegment = null, this._onMediaSegment = null, this._forceFirstIDR = !(!b.a.chrome || !(b.a.version.major < 50 || b.a.version.major === 50 && b.a.version.build < 2661)), this._fillSilentAfterSeek = b.a.msedge || b.a.msie, this._mp3UseMpegAudio = !b.a.firefox, this._fillAudioTimestampGap = this._config.fixAudioTimestampGap;
|
|
2321
|
+
}
|
|
2322
|
+
return r.prototype.destroy = function() {
|
|
2323
|
+
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;
|
|
2324
|
+
}, r.prototype.bindDataSource = function(t) {
|
|
2325
|
+
return t.onDataAvailable = this.remux.bind(this), t.onTrackMetadata = this._onTrackMetadataReceived.bind(this), this;
|
|
2326
|
+
}, Object.defineProperty(r.prototype, "onInitSegment", { get: function() {
|
|
2327
|
+
return this._onInitSegment;
|
|
2328
|
+
}, set: function(t) {
|
|
2329
|
+
this._onInitSegment = t;
|
|
2330
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(r.prototype, "onMediaSegment", { get: function() {
|
|
2331
|
+
return this._onMediaSegment;
|
|
2332
|
+
}, set: function(t) {
|
|
2333
|
+
this._onMediaSegment = t;
|
|
2334
|
+
}, enumerable: !1, configurable: !0 }), r.prototype.insertDiscontinuity = function() {
|
|
2335
|
+
this._audioNextDts = this._videoNextDts = void 0;
|
|
2336
|
+
}, r.prototype.seek = function(t) {
|
|
2337
|
+
this._audioStashedLastSample = null, this._videoStashedLastSample = null, this._videoSegmentInfoList.clear(), this._audioSegmentInfoList.clear();
|
|
2338
|
+
}, r.prototype.remux = function(t, i) {
|
|
2339
|
+
if (!this._onMediaSegment) throw new C.a("MP4Remuxer: onMediaSegment callback must be specificed!");
|
|
2340
|
+
this._dtsBaseInited || this._calculateDtsBase(t, i), i && this._remuxVideo(i), t && this._remuxAudio(t);
|
|
2341
|
+
}, r.prototype._onTrackMetadataReceived = function(t, i) {
|
|
2342
|
+
var e = null, a = "mp4", s = i.codec;
|
|
2343
|
+
if (t === "audio") this._audioMeta = i, i.codec === "mp3" && this._mp3UseMpegAudio ? (a = "mpeg", s = "", e = new Uint8Array()) : e = ze.generateInitSegment(i);
|
|
2344
|
+
else {
|
|
2345
|
+
if (t !== "video") return;
|
|
2346
|
+
this._videoMeta = i, e = ze.generateInitSegment(i);
|
|
2347
|
+
}
|
|
2348
|
+
if (!this._onInitSegment) throw new C.a("MP4Remuxer: onInitSegment callback must be specified!");
|
|
2349
|
+
this._onInitSegment(t, { type: t, data: e.buffer, codec: s, container: t + "/" + a, mediaDuration: i.duration });
|
|
2350
|
+
}, r.prototype._calculateDtsBase = function(t, i) {
|
|
2351
|
+
this._dtsBaseInited || (t && t.samples && t.samples.length && (this._audioDtsBase = t.samples[0].dts), i && i.samples && i.samples.length && (this._videoDtsBase = i.samples[0].dts), this._dtsBase = Math.min(this._audioDtsBase, this._videoDtsBase), this._dtsBaseInited = !0);
|
|
2352
|
+
}, r.prototype.getTimestampBase = function() {
|
|
2353
|
+
if (this._dtsBaseInited) return this._dtsBase;
|
|
2354
|
+
}, r.prototype.flushStashedSamples = function() {
|
|
2355
|
+
var t = this._videoStashedLastSample, i = this._audioStashedLastSample, e = { type: "video", id: 1, sequenceNumber: 0, samples: [], length: 0 };
|
|
2356
|
+
t != null && (e.samples.push(t), e.length = t.length);
|
|
2357
|
+
var a = { type: "audio", id: 2, sequenceNumber: 0, samples: [], length: 0 };
|
|
2358
|
+
i != null && (a.samples.push(i), a.length = i.length), this._videoStashedLastSample = null, this._audioStashedLastSample = null, this._remuxVideo(e, !0), this._remuxAudio(a, !0);
|
|
2359
|
+
}, r.prototype._remuxAudio = function(t, i) {
|
|
2360
|
+
if (this._audioMeta != null) {
|
|
2361
|
+
var e, a = t, s = a.samples, n = void 0, o = -1, p = this._audioMeta.refSampleDuration, g = this._audioMeta.codec === "mp3" && this._mp3UseMpegAudio, E = this._dtsBaseInited && this._audioNextDts === void 0, A = !1;
|
|
2362
|
+
if (s && s.length !== 0 && (s.length !== 1 || i)) {
|
|
2363
|
+
var S = 0, w = null, I = 0;
|
|
2364
|
+
g ? (S = 0, I = a.length) : (S = 8, I = 8 + a.length);
|
|
2365
|
+
var z = null;
|
|
2366
|
+
if (s.length > 1 && (I -= (z = s.pop()).length), this._audioStashedLastSample != null) {
|
|
2367
|
+
var N = this._audioStashedLastSample;
|
|
2368
|
+
this._audioStashedLastSample = null, s.unshift(N), I += N.length;
|
|
2369
|
+
}
|
|
2370
|
+
z != null && (this._audioStashedLastSample = z);
|
|
2371
|
+
var J = s[0].dts - this._dtsBase;
|
|
2372
|
+
if (this._audioNextDts) n = J - this._audioNextDts;
|
|
2373
|
+
else if (this._audioSegmentInfoList.isEmpty()) n = 0, this._fillSilentAfterSeek && !this._videoSegmentInfoList.isEmpty() && this._audioMeta.originalCodec !== "mp3" && (A = !0);
|
|
2374
|
+
else {
|
|
2375
|
+
var W = this._audioSegmentInfoList.getLastSampleBefore(J);
|
|
2376
|
+
if (W != null) {
|
|
2377
|
+
var q = J - (W.originalDts + W.duration);
|
|
2378
|
+
q <= 3 && (q = 0), n = J - (W.dts + W.duration + q);
|
|
2379
|
+
} else n = 0;
|
|
2380
|
+
}
|
|
2381
|
+
if (A) {
|
|
2382
|
+
var de = J - n, he = this._videoSegmentInfoList.getLastSegmentBefore(J);
|
|
2383
|
+
if (he != null && he.beginDts < de) {
|
|
2384
|
+
if (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) {
|
|
2385
|
+
var K = he.beginDts, Q = de - he.beginDts;
|
|
2386
|
+
m.a.v(this.TAG, "InsertPrefixSilentAudio: dts: " + K + ", duration: " + Q), s.unshift({ unit: ke, dts: K, pts: K }), I += ke.byteLength;
|
|
2387
|
+
}
|
|
2388
|
+
} else A = !1;
|
|
2389
|
+
}
|
|
2390
|
+
for (var _e = [], te = 0; te < s.length; te++) {
|
|
2391
|
+
var ne = (N = s[te]).unit, be = N.dts - this._dtsBase, Ae = (K = be, !1), le = null, ye = 0;
|
|
2392
|
+
if (!(be < -1e-3)) {
|
|
2393
|
+
if (this._audioMeta.codec !== "mp3") {
|
|
2394
|
+
var Re = be;
|
|
2395
|
+
if (this._audioNextDts && (Re = this._audioNextDts), (n = be - Re) <= -3 * p) {
|
|
2396
|
+
m.a.w(this.TAG, "Dropping 1 audio frame (originalDts: " + be + " ms ,curRefDts: " + Re + " ms) due to dtsCorrection: " + n + " ms overlap.");
|
|
2397
|
+
continue;
|
|
2398
|
+
}
|
|
2399
|
+
if (n >= 3 * p && this._fillAudioTimestampGap && !b.a.safari) {
|
|
2400
|
+
Ae = !0;
|
|
2401
|
+
var ke, Ne = Math.floor(n / p);
|
|
2402
|
+
m.a.w(this.TAG, `Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
2403
|
+
originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.round(n) + " ms, generate: " + Ne + " frames"), K = Math.floor(Re), ye = Math.floor(Re + p) - K, (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) == null && (m.a.w(this.TAG, "Unable to generate silent frame for " + this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame"), ke = ne), le = [];
|
|
2404
|
+
for (var Pe = 0; Pe < Ne; Pe++) {
|
|
2405
|
+
Re += p;
|
|
2406
|
+
var Ge = Math.floor(Re), je = Math.floor(Re + p) - Ge, Fe = { dts: Ge, pts: Ge, cts: 0, unit: ke, size: ke.byteLength, duration: je, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } };
|
|
2407
|
+
le.push(Fe), I += Fe.size;
|
|
2408
|
+
}
|
|
2409
|
+
this._audioNextDts = Re + p;
|
|
2410
|
+
} else K = Math.floor(Re), ye = Math.floor(Re + p) - K, this._audioNextDts = Re + p;
|
|
2411
|
+
} else
|
|
2412
|
+
K = be - n, te !== s.length - 1 ? ye = s[te + 1].dts - this._dtsBase - n - K : z != null ? ye = z.dts - this._dtsBase - n - K : ye = _e.length >= 1 ? _e[_e.length - 1].duration : Math.floor(p), this._audioNextDts = K + ye;
|
|
2413
|
+
o === -1 && (o = K), _e.push({ dts: K, pts: K, cts: 0, unit: N.unit, size: N.unit.byteLength, duration: ye, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }), Ae && _e.push.apply(_e, le);
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
if (_e.length === 0) return a.samples = [], void (a.length = 0);
|
|
2417
|
+
for (g ? w = new Uint8Array(I) : ((w = new Uint8Array(I))[0] = I >>> 24 & 255, w[1] = I >>> 16 & 255, w[2] = I >>> 8 & 255, w[3] = 255 & I, w.set(ze.types.mdat, 4)), te = 0; te < _e.length; te++)
|
|
2418
|
+
ne = _e[te].unit, w.set(ne, S), S += ne.byteLength;
|
|
2419
|
+
var Ce = _e[_e.length - 1];
|
|
2420
|
+
e = Ce.dts + Ce.duration;
|
|
2421
|
+
var ge = new Me.b();
|
|
2422
|
+
ge.beginDts = o, ge.endDts = e, ge.beginPts = o, ge.endPts = e, ge.originalBeginDts = _e[0].originalDts, ge.originalEndDts = Ce.originalDts + Ce.duration, ge.firstSample = new Me.d(_e[0].dts, _e[0].pts, _e[0].duration, _e[0].originalDts, !1), ge.lastSample = new Me.d(Ce.dts, Ce.pts, Ce.duration, Ce.originalDts, !1), this._isLive || this._audioSegmentInfoList.append(ge), a.samples = _e, a.sequenceNumber++;
|
|
2423
|
+
var xe = null;
|
|
2424
|
+
xe = g ? new Uint8Array() : ze.moof(a, o), a.samples = [], a.length = 0;
|
|
2425
|
+
var Ue = { type: "audio", data: this._mergeBoxes(xe, w).buffer, sampleCount: _e.length, info: ge };
|
|
2426
|
+
g && E && (Ue.timestampOffset = o), this._onMediaSegment("audio", Ue);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
}, r.prototype._remuxVideo = function(t, i) {
|
|
2430
|
+
if (this._videoMeta != null) {
|
|
2431
|
+
var e, a, s = t, n = s.samples, o = void 0, p = -1, g = -1;
|
|
2432
|
+
if (n && n.length !== 0 && (n.length !== 1 || i)) {
|
|
2433
|
+
var E = 8, A = null, S = 8 + t.length, w = null;
|
|
2434
|
+
if (n.length > 1 && (S -= (w = n.pop()).length), this._videoStashedLastSample != null) {
|
|
2435
|
+
var I = this._videoStashedLastSample;
|
|
2436
|
+
this._videoStashedLastSample = null, n.unshift(I), S += I.length;
|
|
2437
|
+
}
|
|
2438
|
+
w != null && (this._videoStashedLastSample = w);
|
|
2439
|
+
var z = n[0].dts - this._dtsBase;
|
|
2440
|
+
if (this._videoNextDts) o = z - this._videoNextDts;
|
|
2441
|
+
else if (this._videoSegmentInfoList.isEmpty()) o = 0;
|
|
2442
|
+
else {
|
|
2443
|
+
var N = this._videoSegmentInfoList.getLastSampleBefore(z);
|
|
2444
|
+
if (N != null) {
|
|
2445
|
+
var J = z - (N.originalDts + N.duration);
|
|
2446
|
+
J <= 3 && (J = 0), o = z - (N.dts + N.duration + J);
|
|
2447
|
+
} else o = 0;
|
|
2448
|
+
}
|
|
2449
|
+
for (var W = new Me.b(), q = [], de = 0; de < n.length; de++) {
|
|
2450
|
+
var he = (I = n[de]).dts - this._dtsBase, K = I.isKeyframe, Q = he - o, _e = I.cts, te = Q + _e;
|
|
2451
|
+
p === -1 && (p = Q, g = te);
|
|
2452
|
+
var ne = 0;
|
|
2453
|
+
if (de !== n.length - 1 ? ne = n[de + 1].dts - this._dtsBase - o - Q : w != null ? ne = w.dts - this._dtsBase - o - Q : ne = q.length >= 1 ? q[q.length - 1].duration : Math.floor(this._videoMeta.refSampleDuration), K) {
|
|
2454
|
+
var be = new Me.d(Q, te, ne, I.dts, !0);
|
|
2455
|
+
be.fileposition = I.fileposition, W.appendSyncPoint(be);
|
|
2456
|
+
}
|
|
2457
|
+
q.push({ dts: Q, pts: te, cts: _e, units: I.units, size: I.length, isKeyframe: K, duration: ne, originalDts: he, flags: { isLeading: 0, dependsOn: K ? 2 : 1, isDependedOn: K ? 1 : 0, hasRedundancy: 0, isNonSync: K ? 0 : 1 } });
|
|
2458
|
+
}
|
|
2459
|
+
for ((A = new Uint8Array(S))[0] = S >>> 24 & 255, A[1] = S >>> 16 & 255, A[2] = S >>> 8 & 255, A[3] = 255 & S, A.set(ze.types.mdat, 4), de = 0; de < q.length; de++) for (var Ae = q[de].units; Ae.length; ) {
|
|
2460
|
+
var le = Ae.shift().data;
|
|
2461
|
+
A.set(le, E), E += le.byteLength;
|
|
2462
|
+
}
|
|
2463
|
+
var ye = q[q.length - 1];
|
|
2464
|
+
if (e = ye.dts + ye.duration, a = ye.pts + ye.duration, this._videoNextDts = e, W.beginDts = p, W.endDts = e, W.beginPts = g, W.endPts = a, W.originalBeginDts = q[0].originalDts, W.originalEndDts = ye.originalDts + ye.duration, W.firstSample = new Me.d(q[0].dts, q[0].pts, q[0].duration, q[0].originalDts, q[0].isKeyframe), W.lastSample = new Me.d(ye.dts, ye.pts, ye.duration, ye.originalDts, ye.isKeyframe), this._isLive || this._videoSegmentInfoList.append(W), s.samples = q, s.sequenceNumber++, this._forceFirstIDR) {
|
|
2465
|
+
var Re = q[0].flags;
|
|
2466
|
+
Re.dependsOn = 2, Re.isNonSync = 0;
|
|
2467
|
+
}
|
|
2468
|
+
var ke = ze.moof(s, p);
|
|
2469
|
+
s.samples = [], s.length = 0, this._onMediaSegment("video", { type: "video", data: this._mergeBoxes(ke, A).buffer, sampleCount: q.length, info: W });
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
}, r.prototype._mergeBoxes = function(t, i) {
|
|
2473
|
+
var e = new Uint8Array(t.byteLength + i.byteLength);
|
|
2474
|
+
return e.set(t, 0), e.set(i, t.byteLength), e;
|
|
2475
|
+
}, r;
|
|
2476
|
+
}(), qt = O(11), Le = O(1), Kt = function() {
|
|
2477
|
+
function r(t, i) {
|
|
2478
|
+
this.TAG = "TransmuxingController", this._emitter = new B.a(), this._config = i, t.segments || (t.segments = [{ duration: t.duration, filesize: t.filesize, url: t.url }]), typeof t.cors != "boolean" && (t.cors = !0), typeof t.withCredentials != "boolean" && (t.withCredentials = !1), this._mediaDataSource = t, this._currentSegmentIndex = 0;
|
|
2479
|
+
var e = 0;
|
|
2480
|
+
this._mediaDataSource.segments.forEach(function(a) {
|
|
2481
|
+
a.timestampBase = e, e += a.duration, a.cors = t.cors, a.withCredentials = t.withCredentials, i.referrerPolicy && (a.referrerPolicy = i.referrerPolicy);
|
|
2482
|
+
}), isNaN(e) || this._mediaDataSource.duration === e || (this._mediaDataSource.duration = e), this._mediaInfo = null, this._demuxer = null, this._remuxer = null, this._ioctl = null, this._pendingSeekTime = null, this._pendingResolveSeekPoint = null, this._statisticsReporter = null;
|
|
2483
|
+
}
|
|
2484
|
+
return r.prototype.destroy = function() {
|
|
2485
|
+
this._mediaInfo = null, this._mediaDataSource = null, this._statisticsReporter && this._disableStatisticsReporter(), this._ioctl && (this._ioctl.destroy(), this._ioctl = null), this._demuxer && (this._demuxer.destroy(), this._demuxer = null), this._remuxer && (this._remuxer.destroy(), this._remuxer = null), this._emitter.removeAllListeners(), this._emitter = null;
|
|
2486
|
+
}, r.prototype.on = function(t, i) {
|
|
2487
|
+
this._emitter.addListener(t, i);
|
|
2488
|
+
}, r.prototype.off = function(t, i) {
|
|
2489
|
+
this._emitter.removeListener(t, i);
|
|
2490
|
+
}, r.prototype.start = function() {
|
|
2491
|
+
this._loadSegment(0), this._enableStatisticsReporter();
|
|
2492
|
+
}, r.prototype._loadSegment = function(t, i) {
|
|
2493
|
+
this._currentSegmentIndex = t;
|
|
2494
|
+
var e = this._mediaDataSource.segments[t], a = this._ioctl = new qt.a(e, this._config, t);
|
|
2495
|
+
a.onError = this._onIOException.bind(this), a.onSeeked = this._onIOSeeked.bind(this), a.onComplete = this._onIOComplete.bind(this), a.onRedirect = this._onIORedirect.bind(this), a.onRecoveredEarlyEof = this._onIORecoveredEarlyEof.bind(this), i ? this._demuxer.bindDataSource(this._ioctl) : a.onDataArrival = this._onInitChunkArrival.bind(this), a.open(i);
|
|
2496
|
+
}, r.prototype.stop = function() {
|
|
2497
|
+
this._internalAbort(), this._disableStatisticsReporter();
|
|
2498
|
+
}, r.prototype._internalAbort = function() {
|
|
2499
|
+
this._ioctl && (this._ioctl.destroy(), this._ioctl = null);
|
|
2500
|
+
}, r.prototype.pause = function() {
|
|
2501
|
+
this._ioctl && this._ioctl.isWorking() && (this._ioctl.pause(), this._disableStatisticsReporter());
|
|
2502
|
+
}, r.prototype.resume = function() {
|
|
2503
|
+
this._ioctl && this._ioctl.isPaused() && (this._ioctl.resume(), this._enableStatisticsReporter());
|
|
2504
|
+
}, r.prototype.seek = function(t) {
|
|
2505
|
+
if (this._mediaInfo != null && this._mediaInfo.isSeekable()) {
|
|
2506
|
+
var i = this._searchSegmentIndexContains(t);
|
|
2507
|
+
if (i === this._currentSegmentIndex) {
|
|
2508
|
+
var e = this._mediaInfo.segments[i];
|
|
2509
|
+
if (e == null) this._pendingSeekTime = t;
|
|
2510
|
+
else {
|
|
2511
|
+
var a = e.getNearestKeyframe(t);
|
|
2512
|
+
this._remuxer.seek(a.milliseconds), this._ioctl.seek(a.fileposition), this._pendingResolveSeekPoint = a.milliseconds;
|
|
2513
|
+
}
|
|
2514
|
+
} else {
|
|
2515
|
+
var s = this._mediaInfo.segments[i];
|
|
2516
|
+
s == null ? (this._pendingSeekTime = t, this._internalAbort(), this._remuxer.seek(), this._remuxer.insertDiscontinuity(), this._loadSegment(i)) : (a = s.getNearestKeyframe(t), this._internalAbort(), this._remuxer.seek(t), this._remuxer.insertDiscontinuity(), this._demuxer.resetMediaInfo(), this._demuxer.timestampBase = this._mediaDataSource.segments[i].timestampBase, this._loadSegment(i, a.fileposition), this._pendingResolveSeekPoint = a.milliseconds, this._reportSegmentMediaInfo(i));
|
|
2517
|
+
}
|
|
2518
|
+
this._enableStatisticsReporter();
|
|
2519
|
+
}
|
|
2520
|
+
}, r.prototype._searchSegmentIndexContains = function(t) {
|
|
2521
|
+
for (var i = this._mediaDataSource.segments, e = i.length - 1, a = 0; a < i.length; a++) if (t < i[a].timestampBase) {
|
|
2522
|
+
e = a - 1;
|
|
2523
|
+
break;
|
|
2524
|
+
}
|
|
2525
|
+
return e;
|
|
2526
|
+
}, r.prototype._onInitChunkArrival = function(t, i) {
|
|
2527
|
+
var e = this, a = 0;
|
|
2528
|
+
if (i > 0) this._demuxer.bindDataSource(this._ioctl), this._demuxer.timestampBase = this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase, a = this._demuxer.parseChunks(t, i);
|
|
2529
|
+
else {
|
|
2530
|
+
var s = null;
|
|
2531
|
+
(s = _.probe(t)).match && (this._setupFLVDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = lt.probe(t)).match && (this._setupTSDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = null, m.a.e(this.TAG, "Non MPEG-TS/FLV, Unsupported media type!"), Promise.resolve().then(function() {
|
|
2532
|
+
e._internalAbort();
|
|
2533
|
+
}), this._emitter.emit(Le.a.DEMUX_ERROR, Y.a.FORMAT_UNSUPPORTED, "Non MPEG-TS/FLV, Unsupported media type!"));
|
|
2534
|
+
}
|
|
2535
|
+
return a;
|
|
2536
|
+
}, r.prototype._setupFLVDemuxerRemuxer = function(t) {
|
|
2537
|
+
this._demuxer = new _(t, this._config), this._remuxer || (this._remuxer = new ct(this._config));
|
|
2538
|
+
var i = this._mediaDataSource;
|
|
2539
|
+
i.duration == null || isNaN(i.duration) || (this._demuxer.overridedDuration = i.duration), typeof i.hasAudio == "boolean" && (this._demuxer.overridedHasAudio = i.hasAudio), typeof i.hasVideo == "boolean" && (this._demuxer.overridedHasVideo = i.hasVideo), this._demuxer.timestampBase = i.segments[this._currentSegmentIndex].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);
|
|
2540
|
+
}, r.prototype._setupTSDemuxerRemuxer = function(t) {
|
|
2541
|
+
var i = this._demuxer = new lt(t, this._config);
|
|
2542
|
+
this._remuxer || (this._remuxer = new ct(this._config)), i.onError = this._onDemuxException.bind(this), i.onMediaInfo = this._onMediaInfo.bind(this), i.onMetaDataArrived = this._onMetaDataArrived.bind(this), i.onTimedID3Metadata = this._onTimedID3Metadata.bind(this), i.onSMPTE2038Metadata = this._onSMPTE2038Metadata.bind(this), i.onSCTE35Metadata = this._onSCTE35Metadata.bind(this), i.onPESPrivateDataDescriptor = this._onPESPrivateDataDescriptor.bind(this), i.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);
|
|
2543
|
+
}, r.prototype._onMediaInfo = function(t) {
|
|
2544
|
+
var i = this;
|
|
2545
|
+
this._mediaInfo == null && (this._mediaInfo = Object.assign({}, t), this._mediaInfo.keyframesIndex = null, this._mediaInfo.segments = [], this._mediaInfo.segmentCount = this._mediaDataSource.segments.length, Object.setPrototypeOf(this._mediaInfo, v.a.prototype));
|
|
2546
|
+
var e = Object.assign({}, t);
|
|
2547
|
+
Object.setPrototypeOf(e, v.a.prototype), this._mediaInfo.segments[this._currentSegmentIndex] = e, this._reportSegmentMediaInfo(this._currentSegmentIndex), this._pendingSeekTime != null && Promise.resolve().then(function() {
|
|
2548
|
+
var a = i._pendingSeekTime;
|
|
2549
|
+
i._pendingSeekTime = null, i.seek(a);
|
|
2550
|
+
});
|
|
2551
|
+
}, r.prototype._onMetaDataArrived = function(t) {
|
|
2552
|
+
this._emitter.emit(Le.a.METADATA_ARRIVED, t);
|
|
2553
|
+
}, r.prototype._onScriptDataArrived = function(t) {
|
|
2554
|
+
this._emitter.emit(Le.a.SCRIPTDATA_ARRIVED, t);
|
|
2555
|
+
}, r.prototype._onTimedID3Metadata = function(t) {
|
|
2556
|
+
var i = this._remuxer.getTimestampBase();
|
|
2557
|
+
i != null && (t.pts != null && (t.pts -= i), t.dts != null && (t.dts -= i), this._emitter.emit(Le.a.TIMED_ID3_METADATA_ARRIVED, t));
|
|
2558
|
+
}, r.prototype._onSMPTE2038Metadata = function(t) {
|
|
2559
|
+
var i = this._remuxer.getTimestampBase();
|
|
2560
|
+
i != null && (t.pts != null && (t.pts -= i), t.dts != null && (t.dts -= i), t.nearest_pts != null && (t.nearest_pts -= i), this._emitter.emit(Le.a.SMPTE2038_METADATA_ARRIVED, t));
|
|
2561
|
+
}, r.prototype._onSCTE35Metadata = function(t) {
|
|
2562
|
+
var i = this._remuxer.getTimestampBase();
|
|
2563
|
+
i != null && (t.pts != null && (t.pts -= i), t.nearest_pts != null && (t.nearest_pts -= i), this._emitter.emit(Le.a.SCTE35_METADATA_ARRIVED, t));
|
|
2564
|
+
}, r.prototype._onPESPrivateDataDescriptor = function(t) {
|
|
2565
|
+
this._emitter.emit(Le.a.PES_PRIVATE_DATA_DESCRIPTOR, t);
|
|
2566
|
+
}, r.prototype._onPESPrivateData = function(t) {
|
|
2567
|
+
var i = this._remuxer.getTimestampBase();
|
|
2568
|
+
i != null && (t.pts != null && (t.pts -= i), t.nearest_pts != null && (t.nearest_pts -= i), t.dts != null && (t.dts -= i), this._emitter.emit(Le.a.PES_PRIVATE_DATA_ARRIVED, t));
|
|
2569
|
+
}, r.prototype._onIOSeeked = function() {
|
|
2570
|
+
this._remuxer.insertDiscontinuity();
|
|
2571
|
+
}, r.prototype._onIOComplete = function(t) {
|
|
2572
|
+
var i = t + 1;
|
|
2573
|
+
i < this._mediaDataSource.segments.length ? (this._internalAbort(), this._remuxer && this._remuxer.flushStashedSamples(), this._loadSegment(i)) : (this._remuxer && this._remuxer.flushStashedSamples(), this._emitter.emit(Le.a.LOADING_COMPLETE), this._disableStatisticsReporter());
|
|
2574
|
+
}, r.prototype._onIORedirect = function(t) {
|
|
2575
|
+
var i = this._ioctl.extraData;
|
|
2576
|
+
this._mediaDataSource.segments[i].redirectedURL = t;
|
|
2577
|
+
}, r.prototype._onIORecoveredEarlyEof = function() {
|
|
2578
|
+
this._emitter.emit(Le.a.RECOVERED_EARLY_EOF);
|
|
2579
|
+
}, r.prototype._onIOException = function(t, i) {
|
|
2580
|
+
m.a.e(this.TAG, "IOException: type = " + t + ", code = " + i.code + ", msg = " + i.msg), this._emitter.emit(Le.a.IO_ERROR, t, i), this._disableStatisticsReporter();
|
|
2581
|
+
}, r.prototype._onDemuxException = function(t, i) {
|
|
2582
|
+
m.a.e(this.TAG, "DemuxException: type = " + t + ", info = " + i), this._emitter.emit(Le.a.DEMUX_ERROR, t, i);
|
|
2583
|
+
}, r.prototype._onRemuxerInitSegmentArrival = function(t, i) {
|
|
2584
|
+
this._emitter.emit(Le.a.INIT_SEGMENT, t, i);
|
|
2585
|
+
}, r.prototype._onRemuxerMediaSegmentArrival = function(t, i) {
|
|
2586
|
+
if (this._pendingSeekTime == null && (this._emitter.emit(Le.a.MEDIA_SEGMENT, t, i), this._pendingResolveSeekPoint != null && t === "video")) {
|
|
2587
|
+
var e = i.info.syncPoints, a = this._pendingResolveSeekPoint;
|
|
2588
|
+
this._pendingResolveSeekPoint = null, b.a.safari && e.length > 0 && e[0].originalDts === a && (a = e[0].pts), this._emitter.emit(Le.a.RECOMMEND_SEEKPOINT, a);
|
|
2589
|
+
}
|
|
2590
|
+
}, r.prototype._enableStatisticsReporter = function() {
|
|
2591
|
+
this._statisticsReporter == null && (this._statisticsReporter = self.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval));
|
|
2592
|
+
}, r.prototype._disableStatisticsReporter = function() {
|
|
2593
|
+
this._statisticsReporter && (self.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
2594
|
+
}, r.prototype._reportSegmentMediaInfo = function(t) {
|
|
2595
|
+
var i = this._mediaInfo.segments[t], e = Object.assign({}, i);
|
|
2596
|
+
e.duration = this._mediaInfo.duration, e.segmentCount = this._mediaInfo.segmentCount, delete e.segments, delete e.keyframesIndex, this._emitter.emit(Le.a.MEDIA_INFO, e);
|
|
2597
|
+
}, r.prototype._reportStatisticsInfo = function() {
|
|
2598
|
+
var t = {};
|
|
2599
|
+
t.url = this._ioctl.currentURL, t.hasRedirect = this._ioctl.hasRedirect, t.hasRedirect && (t.redirectedURL = this._ioctl.currentRedirectedURL), t.speed = this._ioctl.currentSpeed, t.loaderType = this._ioctl.loaderType, t.currentSegmentIndex = this._currentSegmentIndex, t.totalSegmentCount = this._mediaDataSource.segments.length, this._emitter.emit(Le.a.STATISTICS_INFO, t);
|
|
2600
|
+
}, r;
|
|
2601
|
+
}();
|
|
2602
|
+
Z.a = Kt;
|
|
2603
|
+
}, function(fe, Z, O) {
|
|
2604
|
+
var U, B = O(0), m = function() {
|
|
2605
|
+
function T() {
|
|
2606
|
+
this._firstCheckpoint = 0, this._lastCheckpoint = 0, this._intervalBytes = 0, this._totalBytes = 0, this._lastSecondBytes = 0, self.performance && self.performance.now ? this._now = self.performance.now.bind(self.performance) : this._now = Date.now;
|
|
2607
|
+
}
|
|
2608
|
+
return T.prototype.reset = function() {
|
|
2609
|
+
this._firstCheckpoint = this._lastCheckpoint = 0, this._totalBytes = this._intervalBytes = 0, this._lastSecondBytes = 0;
|
|
2610
|
+
}, T.prototype.addBytes = function(l) {
|
|
2611
|
+
this._firstCheckpoint === 0 ? (this._firstCheckpoint = this._now(), this._lastCheckpoint = this._firstCheckpoint, this._intervalBytes += l, this._totalBytes += l) : this._now() - this._lastCheckpoint < 1e3 ? (this._intervalBytes += l, this._totalBytes += l) : (this._lastSecondBytes = this._intervalBytes, this._intervalBytes = l, this._totalBytes += l, this._lastCheckpoint = this._now());
|
|
2612
|
+
}, Object.defineProperty(T.prototype, "currentKBps", { get: function() {
|
|
2613
|
+
this.addBytes(0);
|
|
2614
|
+
var l = (this._now() - this._lastCheckpoint) / 1e3;
|
|
2615
|
+
return l == 0 && (l = 1), this._intervalBytes / l / 1024;
|
|
2616
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "lastSecondKBps", { get: function() {
|
|
2617
|
+
return this.addBytes(0), this._lastSecondBytes !== 0 ? this._lastSecondBytes / 1024 : this._now() - this._lastCheckpoint >= 500 ? this.currentKBps : 0;
|
|
2618
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "averageKBps", { get: function() {
|
|
2619
|
+
var l = (this._now() - this._firstCheckpoint) / 1e3;
|
|
2620
|
+
return this._totalBytes / l / 1024;
|
|
2621
|
+
}, enumerable: !1, configurable: !0 }), T;
|
|
2622
|
+
}(), b = O(2), v = O(4), f = O(3), L = (U = function(T, l) {
|
|
2623
|
+
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, _) {
|
|
2624
|
+
u.__proto__ = _;
|
|
2625
|
+
} || function(u, _) {
|
|
2626
|
+
for (var c in _) _.hasOwnProperty(c) && (u[c] = _[c]);
|
|
2627
|
+
})(T, l);
|
|
2628
|
+
}, function(T, l) {
|
|
2629
|
+
function u() {
|
|
2630
|
+
this.constructor = T;
|
|
2631
|
+
}
|
|
2632
|
+
U(T, l), T.prototype = l === null ? Object.create(l) : (u.prototype = l.prototype, new u());
|
|
2633
|
+
}), x = function(T) {
|
|
2634
|
+
function l(u, _) {
|
|
2635
|
+
var c = T.call(this, "fetch-stream-loader") || this;
|
|
2636
|
+
return c.TAG = "FetchStreamLoader", c._seekHandler = u, c._config = _, c._needStash = !0, c._requestAbort = !1, c._abortController = null, c._contentLength = null, c._receivedLength = 0, c;
|
|
2637
|
+
}
|
|
2638
|
+
return L(l, T), l.isSupported = function() {
|
|
2639
|
+
try {
|
|
2640
|
+
var u = v.a.msedge && v.a.version.minor >= 15048, _ = !v.a.msedge || u;
|
|
2641
|
+
return self.fetch && self.ReadableStream && _;
|
|
2642
|
+
} catch {
|
|
2643
|
+
return !1;
|
|
2644
|
+
}
|
|
2645
|
+
}, l.prototype.destroy = function() {
|
|
2646
|
+
this.isWorking() && this.abort(), T.prototype.destroy.call(this);
|
|
2647
|
+
}, l.prototype.open = function(u, _) {
|
|
2648
|
+
var c = this;
|
|
2649
|
+
this._dataSource = u, this._range = _;
|
|
2650
|
+
var P = u.url;
|
|
2651
|
+
this._config.reuseRedirectedURL && u.redirectedURL != null && (P = u.redirectedURL);
|
|
2652
|
+
var D = this._seekHandler.getConfig(P, _), F = new self.Headers();
|
|
2653
|
+
if (typeof D.headers == "object") {
|
|
2654
|
+
var ee = D.headers;
|
|
2655
|
+
for (var pe in ee) ee.hasOwnProperty(pe) && F.append(pe, ee[pe]);
|
|
2656
|
+
}
|
|
2657
|
+
var ve = { method: "GET", headers: F, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
|
|
2658
|
+
if (typeof this._config.headers == "object") for (var pe in this._config.headers) F.append(pe, this._config.headers[pe]);
|
|
2659
|
+
u.cors === !1 && (ve.mode = "same-origin"), u.withCredentials && (ve.credentials = "include"), u.referrerPolicy && (ve.referrerPolicy = u.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), ve.signal = this._abortController.signal), this._status = b.c.kConnecting, self.fetch(D.url, ve).then(function(k) {
|
|
2660
|
+
if (c._requestAbort) return c._status = b.c.kIdle, void k.body.cancel();
|
|
2661
|
+
if (k.ok && k.status >= 200 && k.status <= 299) {
|
|
2662
|
+
if (k.url !== D.url && c._onURLRedirect) {
|
|
2663
|
+
var d = c._seekHandler.removeURLParameters(k.url);
|
|
2664
|
+
c._onURLRedirect(d);
|
|
2665
|
+
}
|
|
2666
|
+
var h = k.headers.get("Content-Length");
|
|
2667
|
+
return h != null && (c._contentLength = parseInt(h), c._contentLength !== 0 && c._onContentLengthKnown && c._onContentLengthKnown(c._contentLength)), c._pump.call(c, k.body.getReader());
|
|
2668
|
+
}
|
|
2669
|
+
if (c._status = b.c.kError, !c._onError) throw new f.d("FetchStreamLoader: Http code invalid, " + k.status + " " + k.statusText);
|
|
2670
|
+
c._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: k.status, msg: k.statusText });
|
|
2671
|
+
}).catch(function(k) {
|
|
2672
|
+
if (!c._abortController || !c._abortController.signal.aborted) {
|
|
2673
|
+
if (c._status = b.c.kError, !c._onError) throw k;
|
|
2674
|
+
c._onError(b.b.EXCEPTION, { code: -1, msg: k.message });
|
|
2675
|
+
}
|
|
2676
|
+
});
|
|
2677
|
+
}, l.prototype.abort = function() {
|
|
2678
|
+
if (this._requestAbort = !0, (this._status !== b.c.kBuffering || !v.a.chrome) && this._abortController) try {
|
|
2679
|
+
this._abortController.abort();
|
|
2680
|
+
} catch {
|
|
2681
|
+
}
|
|
2682
|
+
}, l.prototype._pump = function(u) {
|
|
2683
|
+
var _ = this;
|
|
2684
|
+
return u.read().then(function(c) {
|
|
2685
|
+
if (c.done) if (_._contentLength !== null && _._receivedLength < _._contentLength) {
|
|
2686
|
+
_._status = b.c.kError;
|
|
2687
|
+
var P = b.b.EARLY_EOF, D = { code: -1, msg: "Fetch stream meet Early-EOF" };
|
|
2688
|
+
if (!_._onError) throw new f.d(D.msg);
|
|
2689
|
+
_._onError(P, D);
|
|
2690
|
+
} else _._status = b.c.kComplete, _._onComplete && _._onComplete(_._range.from, _._range.from + _._receivedLength - 1);
|
|
2691
|
+
else {
|
|
2692
|
+
if (_._abortController && _._abortController.signal.aborted) return void (_._status = b.c.kComplete);
|
|
2693
|
+
if (_._requestAbort === !0) return _._status = b.c.kComplete, u.cancel();
|
|
2694
|
+
_._status = b.c.kBuffering;
|
|
2695
|
+
var F = c.value.buffer, ee = _._range.from + _._receivedLength;
|
|
2696
|
+
_._receivedLength += F.byteLength, _._onDataArrival && _._onDataArrival(F, ee, _._receivedLength), _._pump(u);
|
|
2697
|
+
}
|
|
2698
|
+
}).catch(function(c) {
|
|
2699
|
+
if (_._abortController && _._abortController.signal.aborted) _._status = b.c.kComplete;
|
|
2700
|
+
else if (c.code !== 11 || !v.a.msedge) {
|
|
2701
|
+
_._status = b.c.kError;
|
|
2702
|
+
var P = 0, D = null;
|
|
2703
|
+
if (c.code !== 19 && c.message !== "network error" || !(_._contentLength === null || _._contentLength !== null && _._receivedLength < _._contentLength) ? (P = b.b.EXCEPTION, D = { code: c.code, msg: c.message }) : (P = b.b.EARLY_EOF, D = { code: c.code, msg: "Fetch stream meet Early-EOF" }), !_._onError) throw new f.d(D.msg);
|
|
2704
|
+
_._onError(P, D);
|
|
2705
|
+
}
|
|
2706
|
+
});
|
|
2707
|
+
}, l;
|
|
2708
|
+
}(b.a), C = /* @__PURE__ */ function() {
|
|
2709
|
+
var T = function(l, u) {
|
|
2710
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
|
|
2711
|
+
_.__proto__ = c;
|
|
2712
|
+
} || function(_, c) {
|
|
2713
|
+
for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
|
|
2714
|
+
})(l, u);
|
|
2715
|
+
};
|
|
2716
|
+
return function(l, u) {
|
|
2717
|
+
function _() {
|
|
2718
|
+
this.constructor = l;
|
|
2719
|
+
}
|
|
2720
|
+
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2721
|
+
};
|
|
2722
|
+
}(), V = function(T) {
|
|
2723
|
+
function l(u, _) {
|
|
2724
|
+
var c = T.call(this, "xhr-moz-chunked-loader") || this;
|
|
2725
|
+
return c.TAG = "MozChunkedLoader", c._seekHandler = u, c._config = _, c._needStash = !0, c._xhr = null, c._requestAbort = !1, c._contentLength = null, c._receivedLength = 0, c;
|
|
2726
|
+
}
|
|
2727
|
+
return C(l, T), l.isSupported = function() {
|
|
2728
|
+
try {
|
|
2729
|
+
var u = new XMLHttpRequest();
|
|
2730
|
+
return u.open("GET", "https://example.com", !0), u.responseType = "moz-chunked-arraybuffer", u.responseType === "moz-chunked-arraybuffer";
|
|
2731
|
+
} catch (_) {
|
|
2732
|
+
return B.a.w("MozChunkedLoader", _.message), !1;
|
|
2733
|
+
}
|
|
2734
|
+
}, l.prototype.destroy = function() {
|
|
2735
|
+
this.isWorking() && this.abort(), this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress = null, this._xhr.onloadend = null, this._xhr.onerror = null, this._xhr = null), T.prototype.destroy.call(this);
|
|
2736
|
+
}, l.prototype.open = function(u, _) {
|
|
2737
|
+
this._dataSource = u, this._range = _;
|
|
2738
|
+
var c = u.url;
|
|
2739
|
+
this._config.reuseRedirectedURL && u.redirectedURL != null && (c = u.redirectedURL);
|
|
2740
|
+
var P = this._seekHandler.getConfig(c, _);
|
|
2741
|
+
this._requestURL = P.url;
|
|
2742
|
+
var D = this._xhr = new XMLHttpRequest();
|
|
2743
|
+
if (D.open("GET", P.url, !0), D.responseType = "moz-chunked-arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onloadend = this._onLoadEnd.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
|
|
2744
|
+
var F = P.headers;
|
|
2745
|
+
for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
|
|
2746
|
+
}
|
|
2747
|
+
if (typeof this._config.headers == "object") {
|
|
2748
|
+
F = this._config.headers;
|
|
2749
|
+
for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
|
|
2750
|
+
}
|
|
2751
|
+
this._status = b.c.kConnecting, D.send();
|
|
2752
|
+
}, l.prototype.abort = function() {
|
|
2753
|
+
this._requestAbort = !0, this._xhr && this._xhr.abort(), this._status = b.c.kComplete;
|
|
2754
|
+
}, l.prototype._onReadyStateChange = function(u) {
|
|
2755
|
+
var _ = u.target;
|
|
2756
|
+
if (_.readyState === 2) {
|
|
2757
|
+
if (_.responseURL != null && _.responseURL !== this._requestURL && this._onURLRedirect) {
|
|
2758
|
+
var c = this._seekHandler.removeURLParameters(_.responseURL);
|
|
2759
|
+
this._onURLRedirect(c);
|
|
2760
|
+
}
|
|
2761
|
+
if (_.status !== 0 && (_.status < 200 || _.status > 299)) {
|
|
2762
|
+
if (this._status = b.c.kError, !this._onError) throw new f.d("MozChunkedLoader: Http code invalid, " + _.status + " " + _.statusText);
|
|
2763
|
+
this._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: _.status, msg: _.statusText });
|
|
2764
|
+
} else this._status = b.c.kBuffering;
|
|
2765
|
+
}
|
|
2766
|
+
}, l.prototype._onProgress = function(u) {
|
|
2767
|
+
if (this._status !== b.c.kError) {
|
|
2768
|
+
this._contentLength === null && u.total !== null && u.total !== 0 && (this._contentLength = u.total, this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength));
|
|
2769
|
+
var _ = u.target.response, c = this._range.from + this._receivedLength;
|
|
2770
|
+
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, c, this._receivedLength);
|
|
2771
|
+
}
|
|
2772
|
+
}, l.prototype._onLoadEnd = function(u) {
|
|
2773
|
+
this._requestAbort !== !0 ? this._status !== b.c.kError && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1)) : this._requestAbort = !1;
|
|
2774
|
+
}, l.prototype._onXhrError = function(u) {
|
|
2775
|
+
this._status = b.c.kError;
|
|
2776
|
+
var _ = 0, c = null;
|
|
2777
|
+
if (this._contentLength && u.loaded < this._contentLength ? (_ = b.b.EARLY_EOF, c = { code: -1, msg: "Moz-Chunked stream meet Early-Eof" }) : (_ = b.b.EXCEPTION, c = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(c.msg);
|
|
2778
|
+
this._onError(_, c);
|
|
2779
|
+
}, l;
|
|
2780
|
+
}(b.a), H = /* @__PURE__ */ function() {
|
|
2781
|
+
var T = function(l, u) {
|
|
2782
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
|
|
2783
|
+
_.__proto__ = c;
|
|
2784
|
+
} || function(_, c) {
|
|
2785
|
+
for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
|
|
2786
|
+
})(l, u);
|
|
2787
|
+
};
|
|
2788
|
+
return function(l, u) {
|
|
2789
|
+
function _() {
|
|
2790
|
+
this.constructor = l;
|
|
2791
|
+
}
|
|
2792
|
+
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2793
|
+
};
|
|
2794
|
+
}(), ue = function(T) {
|
|
2795
|
+
function l(u, _) {
|
|
2796
|
+
var c = T.call(this, "xhr-range-loader") || this;
|
|
2797
|
+
return c.TAG = "RangeLoader", c._seekHandler = u, c._config = _, c._needStash = !1, c._chunkSizeKBList = [128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192], c._currentChunkSizeKB = 384, c._currentSpeedNormalized = 0, c._zeroSpeedChunkCount = 0, c._xhr = null, c._speedSampler = new m(), c._requestAbort = !1, c._waitForTotalLength = !1, c._totalLengthReceived = !1, c._currentRequestURL = null, c._currentRedirectedURL = null, c._currentRequestRange = null, c._totalLength = null, c._contentLength = null, c._receivedLength = 0, c._lastTimeLoaded = 0, c;
|
|
2798
|
+
}
|
|
2799
|
+
return H(l, T), l.isSupported = function() {
|
|
2800
|
+
try {
|
|
2801
|
+
var u = new XMLHttpRequest();
|
|
2802
|
+
return u.open("GET", "https://example.com", !0), u.responseType = "arraybuffer", u.responseType === "arraybuffer";
|
|
2803
|
+
} catch (_) {
|
|
2804
|
+
return B.a.w("RangeLoader", _.message), !1;
|
|
2805
|
+
}
|
|
2806
|
+
}, l.prototype.destroy = function() {
|
|
2807
|
+
this.isWorking() && this.abort(), this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress = null, this._xhr.onload = null, this._xhr.onerror = null, this._xhr = null), T.prototype.destroy.call(this);
|
|
2808
|
+
}, Object.defineProperty(l.prototype, "currentSpeed", { get: function() {
|
|
2809
|
+
return this._speedSampler.lastSecondKBps;
|
|
2810
|
+
}, enumerable: !1, configurable: !0 }), l.prototype.open = function(u, _) {
|
|
2811
|
+
this._dataSource = u, this._range = _, this._status = b.c.kConnecting;
|
|
2812
|
+
var c = !1;
|
|
2813
|
+
this._dataSource.filesize != null && this._dataSource.filesize !== 0 && (c = !0, this._totalLength = this._dataSource.filesize), this._totalLengthReceived || c ? this._openSubRange() : (this._waitForTotalLength = !0, this._internalOpen(this._dataSource, { from: 0, to: -1 }));
|
|
2814
|
+
}, l.prototype._openSubRange = function() {
|
|
2815
|
+
var u = 1024 * this._currentChunkSizeKB, _ = this._range.from + this._receivedLength, c = _ + u;
|
|
2816
|
+
this._contentLength != null && c - this._range.from >= this._contentLength && (c = this._range.from + this._contentLength - 1), this._currentRequestRange = { from: _, to: c }, this._internalOpen(this._dataSource, this._currentRequestRange);
|
|
2817
|
+
}, l.prototype._internalOpen = function(u, _) {
|
|
2818
|
+
this._lastTimeLoaded = 0;
|
|
2819
|
+
var c = u.url;
|
|
2820
|
+
this._config.reuseRedirectedURL && (this._currentRedirectedURL != null ? c = this._currentRedirectedURL : u.redirectedURL != null && (c = u.redirectedURL));
|
|
2821
|
+
var P = this._seekHandler.getConfig(c, _);
|
|
2822
|
+
this._currentRequestURL = P.url;
|
|
2823
|
+
var D = this._xhr = new XMLHttpRequest();
|
|
2824
|
+
if (D.open("GET", P.url, !0), D.responseType = "arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onload = this._onLoad.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
|
|
2825
|
+
var F = P.headers;
|
|
2826
|
+
for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
|
|
2827
|
+
}
|
|
2828
|
+
if (typeof this._config.headers == "object") {
|
|
2829
|
+
F = this._config.headers;
|
|
2830
|
+
for (var ee in F) F.hasOwnProperty(ee) && D.setRequestHeader(ee, F[ee]);
|
|
2831
|
+
}
|
|
2832
|
+
D.send();
|
|
2833
|
+
}, l.prototype.abort = function() {
|
|
2834
|
+
this._requestAbort = !0, this._internalAbort(), this._status = b.c.kComplete;
|
|
2835
|
+
}, l.prototype._internalAbort = function() {
|
|
2836
|
+
this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress = null, this._xhr.onload = null, this._xhr.onerror = null, this._xhr.abort(), this._xhr = null);
|
|
2837
|
+
}, l.prototype._onReadyStateChange = function(u) {
|
|
2838
|
+
var _ = u.target;
|
|
2839
|
+
if (_.readyState === 2) {
|
|
2840
|
+
if (_.responseURL != null) {
|
|
2841
|
+
var c = this._seekHandler.removeURLParameters(_.responseURL);
|
|
2842
|
+
_.responseURL !== this._currentRequestURL && c !== this._currentRedirectedURL && (this._currentRedirectedURL = c, this._onURLRedirect && this._onURLRedirect(c));
|
|
2843
|
+
}
|
|
2844
|
+
if (_.status >= 200 && _.status <= 299) {
|
|
2845
|
+
if (this._waitForTotalLength) return;
|
|
2846
|
+
this._status = b.c.kBuffering;
|
|
2847
|
+
} else {
|
|
2848
|
+
if (this._status = b.c.kError, !this._onError) throw new f.d("RangeLoader: Http code invalid, " + _.status + " " + _.statusText);
|
|
2849
|
+
this._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: _.status, msg: _.statusText });
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
}, l.prototype._onProgress = function(u) {
|
|
2853
|
+
if (this._status !== b.c.kError) {
|
|
2854
|
+
if (this._contentLength === null) {
|
|
2855
|
+
var _ = !1;
|
|
2856
|
+
if (this._waitForTotalLength) {
|
|
2857
|
+
this._waitForTotalLength = !1, this._totalLengthReceived = !0, _ = !0;
|
|
2858
|
+
var c = u.total;
|
|
2859
|
+
this._internalAbort(), c != null & c !== 0 && (this._totalLength = c);
|
|
2860
|
+
}
|
|
2861
|
+
if (this._range.to === -1 ? this._contentLength = this._totalLength - this._range.from : this._contentLength = this._range.to - this._range.from + 1, _) return void this._openSubRange();
|
|
2862
|
+
this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength);
|
|
2863
|
+
}
|
|
2864
|
+
var P = u.loaded - this._lastTimeLoaded;
|
|
2865
|
+
this._lastTimeLoaded = u.loaded, this._speedSampler.addBytes(P);
|
|
2866
|
+
}
|
|
2867
|
+
}, l.prototype._normalizeSpeed = function(u) {
|
|
2868
|
+
var _ = this._chunkSizeKBList, c = _.length - 1, P = 0, D = 0, F = c;
|
|
2869
|
+
if (u < _[0]) return _[0];
|
|
2870
|
+
for (; D <= F; ) {
|
|
2871
|
+
if ((P = D + Math.floor((F - D) / 2)) === c || u >= _[P] && u < _[P + 1]) return _[P];
|
|
2872
|
+
_[P] < u ? D = P + 1 : F = P - 1;
|
|
2873
|
+
}
|
|
2874
|
+
}, l.prototype._onLoad = function(u) {
|
|
2875
|
+
if (this._status !== b.c.kError) if (this._waitForTotalLength) this._waitForTotalLength = !1;
|
|
2876
|
+
else {
|
|
2877
|
+
this._lastTimeLoaded = 0;
|
|
2878
|
+
var _ = this._speedSampler.lastSecondKBps;
|
|
2879
|
+
if (_ === 0 && (this._zeroSpeedChunkCount++, this._zeroSpeedChunkCount >= 3 && (_ = this._speedSampler.currentKBps)), _ !== 0) {
|
|
2880
|
+
var c = this._normalizeSpeed(_);
|
|
2881
|
+
this._currentSpeedNormalized !== c && (this._currentSpeedNormalized = c, this._currentChunkSizeKB = c);
|
|
2882
|
+
}
|
|
2883
|
+
var P = u.target.response, D = this._range.from + this._receivedLength;
|
|
2884
|
+
this._receivedLength += P.byteLength;
|
|
2885
|
+
var F = !1;
|
|
2886
|
+
this._contentLength != null && this._receivedLength < this._contentLength ? this._openSubRange() : F = !0, this._onDataArrival && this._onDataArrival(P, D, this._receivedLength), F && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1));
|
|
2887
|
+
}
|
|
2888
|
+
}, l.prototype._onXhrError = function(u) {
|
|
2889
|
+
this._status = b.c.kError;
|
|
2890
|
+
var _ = 0, c = null;
|
|
2891
|
+
if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength ? (_ = b.b.EARLY_EOF, c = { code: -1, msg: "RangeLoader meet Early-Eof" }) : (_ = b.b.EXCEPTION, c = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(c.msg);
|
|
2892
|
+
this._onError(_, c);
|
|
2893
|
+
}, l;
|
|
2894
|
+
}(b.a), se = /* @__PURE__ */ function() {
|
|
2895
|
+
var T = function(l, u) {
|
|
2896
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, c) {
|
|
2897
|
+
_.__proto__ = c;
|
|
2898
|
+
} || function(_, c) {
|
|
2899
|
+
for (var P in c) c.hasOwnProperty(P) && (_[P] = c[P]);
|
|
2900
|
+
})(l, u);
|
|
2901
|
+
};
|
|
2902
|
+
return function(l, u) {
|
|
2903
|
+
function _() {
|
|
2904
|
+
this.constructor = l;
|
|
2905
|
+
}
|
|
2906
|
+
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2907
|
+
};
|
|
2908
|
+
}(), Y = function(T) {
|
|
2909
|
+
function l() {
|
|
2910
|
+
var u = T.call(this, "websocket-loader") || this;
|
|
2911
|
+
return u.TAG = "WebSocketLoader", u._needStash = !0, u._ws = null, u._requestAbort = !1, u._receivedLength = 0, u;
|
|
2912
|
+
}
|
|
2913
|
+
return se(l, T), l.isSupported = function() {
|
|
2914
|
+
try {
|
|
2915
|
+
return self.WebSocket !== void 0;
|
|
2916
|
+
} catch {
|
|
2917
|
+
return !1;
|
|
2918
|
+
}
|
|
2919
|
+
}, l.prototype.destroy = function() {
|
|
2920
|
+
this._ws && this.abort(), T.prototype.destroy.call(this);
|
|
2921
|
+
}, l.prototype.open = function(u) {
|
|
2922
|
+
try {
|
|
2923
|
+
var _ = this._ws = new self.WebSocket(u.url);
|
|
2924
|
+
_.binaryType = "arraybuffer", _.onopen = this._onWebSocketOpen.bind(this), _.onclose = this._onWebSocketClose.bind(this), _.onmessage = this._onWebSocketMessage.bind(this), _.onerror = this._onWebSocketError.bind(this), this._status = b.c.kConnecting;
|
|
2925
|
+
} catch (P) {
|
|
2926
|
+
this._status = b.c.kError;
|
|
2927
|
+
var c = { code: P.code, msg: P.message };
|
|
2928
|
+
if (!this._onError) throw new f.d(c.msg);
|
|
2929
|
+
this._onError(b.b.EXCEPTION, c);
|
|
2930
|
+
}
|
|
2931
|
+
}, l.prototype.abort = function() {
|
|
2932
|
+
var u = this._ws;
|
|
2933
|
+
!u || u.readyState !== 0 && u.readyState !== 1 || (this._requestAbort = !0, u.close()), this._ws = null, this._status = b.c.kComplete;
|
|
2934
|
+
}, l.prototype._onWebSocketOpen = function(u) {
|
|
2935
|
+
this._status = b.c.kBuffering;
|
|
2936
|
+
}, l.prototype._onWebSocketClose = function(u) {
|
|
2937
|
+
this._requestAbort !== !0 ? (this._status = b.c.kComplete, this._onComplete && this._onComplete(0, this._receivedLength - 1)) : this._requestAbort = !1;
|
|
2938
|
+
}, l.prototype._onWebSocketMessage = function(u) {
|
|
2939
|
+
var _ = this;
|
|
2940
|
+
if (u.data instanceof ArrayBuffer) this._dispatchArrayBuffer(u.data);
|
|
2941
|
+
else if (u.data instanceof Blob) {
|
|
2942
|
+
var c = new FileReader();
|
|
2943
|
+
c.onload = function() {
|
|
2944
|
+
_._dispatchArrayBuffer(c.result);
|
|
2945
|
+
}, c.readAsArrayBuffer(u.data);
|
|
2946
|
+
} else {
|
|
2947
|
+
this._status = b.c.kError;
|
|
2948
|
+
var P = { code: -1, msg: "Unsupported WebSocket message type: " + u.data.constructor.name };
|
|
2949
|
+
if (!this._onError) throw new f.d(P.msg);
|
|
2950
|
+
this._onError(b.b.EXCEPTION, P);
|
|
2951
|
+
}
|
|
2952
|
+
}, l.prototype._dispatchArrayBuffer = function(u) {
|
|
2953
|
+
var _ = u, c = this._receivedLength;
|
|
2954
|
+
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, c, this._receivedLength);
|
|
2955
|
+
}, l.prototype._onWebSocketError = function(u) {
|
|
2956
|
+
this._status = b.c.kError;
|
|
2957
|
+
var _ = { code: u.code, msg: u.message };
|
|
2958
|
+
if (!this._onError) throw new f.d(_.msg);
|
|
2959
|
+
this._onError(b.b.EXCEPTION, _);
|
|
2960
|
+
}, l;
|
|
2961
|
+
}(b.a), ae = function() {
|
|
2962
|
+
function T(l) {
|
|
2963
|
+
this._zeroStart = l || !1;
|
|
2964
|
+
}
|
|
2965
|
+
return T.prototype.getConfig = function(l, u) {
|
|
2966
|
+
var _ = {};
|
|
2967
|
+
if (u.from !== 0 || u.to !== -1) {
|
|
2968
|
+
var c = void 0;
|
|
2969
|
+
c = u.to !== -1 ? "bytes=" + u.from.toString() + "-" + u.to.toString() : "bytes=" + u.from.toString() + "-", _.Range = c;
|
|
2970
|
+
} else this._zeroStart && (_.Range = "bytes=0-");
|
|
2971
|
+
return { url: l, headers: _ };
|
|
2972
|
+
}, T.prototype.removeURLParameters = function(l) {
|
|
2973
|
+
return l;
|
|
2974
|
+
}, T;
|
|
2975
|
+
}(), y = function() {
|
|
2976
|
+
function T(l, u) {
|
|
2977
|
+
this._startName = l, this._endName = u;
|
|
2978
|
+
}
|
|
2979
|
+
return T.prototype.getConfig = function(l, u) {
|
|
2980
|
+
var _ = l;
|
|
2981
|
+
if (u.from !== 0 || u.to !== -1) {
|
|
2982
|
+
var c = !0;
|
|
2983
|
+
_.indexOf("?") === -1 && (_ += "?", c = !1), c && (_ += "&"), _ += this._startName + "=" + u.from.toString(), u.to !== -1 && (_ += "&" + this._endName + "=" + u.to.toString());
|
|
2984
|
+
}
|
|
2985
|
+
return { url: _, headers: {} };
|
|
2986
|
+
}, T.prototype.removeURLParameters = function(l) {
|
|
2987
|
+
var u = l.split("?")[0], _ = void 0, c = l.indexOf("?");
|
|
2988
|
+
c !== -1 && (_ = l.substring(c + 1));
|
|
2989
|
+
var P = "";
|
|
2990
|
+
if (_ != null && _.length > 0) for (var D = _.split("&"), F = 0; F < D.length; F++) {
|
|
2991
|
+
var ee = D[F].split("="), pe = F > 0;
|
|
2992
|
+
ee[0] !== this._startName && ee[0] !== this._endName && (pe && (P += "&"), P += D[F]);
|
|
2993
|
+
}
|
|
2994
|
+
return P.length === 0 ? u : u + "?" + P;
|
|
2995
|
+
}, T;
|
|
2996
|
+
}(), G = function() {
|
|
2997
|
+
function T(l, u, _) {
|
|
2998
|
+
this.TAG = "IOController", this._config = u, this._extraData = _, this._stashInitialSize = 65536, u.stashInitialSize != null && u.stashInitialSize > 0 && (this._stashInitialSize = u.stashInitialSize), this._stashUsed = 0, this._stashSize = this._stashInitialSize, this._bufferSize = 3145728, this._stashBuffer = new ArrayBuffer(this._bufferSize), this._stashByteStart = 0, this._enableStash = !0, u.enableStashBuffer === !1 && (this._enableStash = !1), this._loader = null, this._loaderClass = null, this._seekHandler = null, this._dataSource = l, this._isWebSocketURL = /wss?:\/\/(.+?)/.test(l.url), this._refTotalLength = l.filesize ? l.filesize : null, this._totalLength = this._refTotalLength, this._fullRequestFlag = !1, this._currentRange = null, this._redirectedURL = null, this._speedNormalized = 0, this._speedSampler = new m(), 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();
|
|
2999
|
+
}
|
|
3000
|
+
return T.prototype.destroy = function() {
|
|
3001
|
+
this._loader.isWorking() && this._loader.abort(), this._loader.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;
|
|
3002
|
+
}, T.prototype.isWorking = function() {
|
|
3003
|
+
return this._loader && this._loader.isWorking() && !this._paused;
|
|
3004
|
+
}, T.prototype.isPaused = function() {
|
|
3005
|
+
return this._paused;
|
|
3006
|
+
}, Object.defineProperty(T.prototype, "status", { get: function() {
|
|
3007
|
+
return this._loader.status;
|
|
3008
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "extraData", { get: function() {
|
|
3009
|
+
return this._extraData;
|
|
3010
|
+
}, set: function(l) {
|
|
3011
|
+
this._extraData = l;
|
|
3012
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onDataArrival", { get: function() {
|
|
3013
|
+
return this._onDataArrival;
|
|
3014
|
+
}, set: function(l) {
|
|
3015
|
+
this._onDataArrival = l;
|
|
3016
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onSeeked", { get: function() {
|
|
3017
|
+
return this._onSeeked;
|
|
3018
|
+
}, set: function(l) {
|
|
3019
|
+
this._onSeeked = l;
|
|
3020
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onError", { get: function() {
|
|
3021
|
+
return this._onError;
|
|
3022
|
+
}, set: function(l) {
|
|
3023
|
+
this._onError = l;
|
|
3024
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onComplete", { get: function() {
|
|
3025
|
+
return this._onComplete;
|
|
3026
|
+
}, set: function(l) {
|
|
3027
|
+
this._onComplete = l;
|
|
3028
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onRedirect", { get: function() {
|
|
3029
|
+
return this._onRedirect;
|
|
3030
|
+
}, set: function(l) {
|
|
3031
|
+
this._onRedirect = l;
|
|
3032
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "onRecoveredEarlyEof", { get: function() {
|
|
3033
|
+
return this._onRecoveredEarlyEof;
|
|
3034
|
+
}, set: function(l) {
|
|
3035
|
+
this._onRecoveredEarlyEof = l;
|
|
3036
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentURL", { get: function() {
|
|
3037
|
+
return this._dataSource.url;
|
|
3038
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "hasRedirect", { get: function() {
|
|
3039
|
+
return this._redirectedURL != null || this._dataSource.redirectedURL != null;
|
|
3040
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentRedirectedURL", { get: function() {
|
|
3041
|
+
return this._redirectedURL || this._dataSource.redirectedURL;
|
|
3042
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentSpeed", { get: function() {
|
|
3043
|
+
return this._loaderClass === ue ? this._loader.currentSpeed : this._speedSampler.lastSecondKBps;
|
|
3044
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "loaderType", { get: function() {
|
|
3045
|
+
return this._loader.type;
|
|
3046
|
+
}, enumerable: !1, configurable: !0 }), T.prototype._selectSeekHandler = function() {
|
|
3047
|
+
var l = this._config;
|
|
3048
|
+
if (l.seekType === "range") this._seekHandler = new ae(this._config.rangeLoadZeroStart);
|
|
3049
|
+
else if (l.seekType === "param") {
|
|
3050
|
+
var u = l.seekParamStart || "bstart", _ = l.seekParamEnd || "bend";
|
|
3051
|
+
this._seekHandler = new y(u, _);
|
|
3052
|
+
} else {
|
|
3053
|
+
if (l.seekType !== "custom") throw new f.b("Invalid seekType in config: " + l.seekType);
|
|
3054
|
+
if (typeof l.customSeekHandler != "function") throw new f.b("Custom seekType specified in config but invalid customSeekHandler!");
|
|
3055
|
+
this._seekHandler = new l.customSeekHandler();
|
|
3056
|
+
}
|
|
3057
|
+
}, T.prototype._selectLoader = function() {
|
|
3058
|
+
if (this._config.customLoader != null) this._loaderClass = this._config.customLoader;
|
|
3059
|
+
else if (this._isWebSocketURL) this._loaderClass = Y;
|
|
3060
|
+
else if (x.isSupported()) this._loaderClass = x;
|
|
3061
|
+
else if (V.isSupported()) this._loaderClass = V;
|
|
3062
|
+
else {
|
|
3063
|
+
if (!ue.isSupported()) throw new f.d("Your browser doesn't support xhr with arraybuffer responseType!");
|
|
3064
|
+
this._loaderClass = ue;
|
|
3065
|
+
}
|
|
3066
|
+
}, T.prototype._createLoader = function() {
|
|
3067
|
+
this._loader = new this._loaderClass(this._seekHandler, this._config), this._loader.needStashBuffer === !1 && (this._enableStash = !1), 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);
|
|
3068
|
+
}, T.prototype.open = function(l) {
|
|
3069
|
+
this._currentRange = { from: 0, to: -1 }, l && (this._currentRange.from = l), this._speedSampler.reset(), l || (this._fullRequestFlag = !0), this._loader.open(this._dataSource, Object.assign({}, this._currentRange));
|
|
3070
|
+
}, T.prototype.abort = function() {
|
|
3071
|
+
this._loader.abort(), this._paused && (this._paused = !1, this._resumeFrom = 0);
|
|
3072
|
+
}, T.prototype.pause = function() {
|
|
3073
|
+
this.isWorking() && (this._loader.abort(), this._stashUsed !== 0 ? (this._resumeFrom = this._stashByteStart, this._currentRange.to = this._stashByteStart - 1) : this._resumeFrom = this._currentRange.to + 1, this._stashUsed = 0, this._stashByteStart = 0, this._paused = !0);
|
|
3074
|
+
}, T.prototype.resume = function() {
|
|
3075
|
+
if (this._paused) {
|
|
3076
|
+
this._paused = !1;
|
|
3077
|
+
var l = this._resumeFrom;
|
|
3078
|
+
this._resumeFrom = 0, this._internalSeek(l, !0);
|
|
3079
|
+
}
|
|
3080
|
+
}, T.prototype.seek = function(l) {
|
|
3081
|
+
this._paused = !1, this._stashUsed = 0, this._stashByteStart = 0, this._internalSeek(l, !0);
|
|
3082
|
+
}, T.prototype._internalSeek = function(l, u) {
|
|
3083
|
+
this._loader.isWorking() && this._loader.abort(), this._flushStashBuffer(u), this._loader.destroy(), this._loader = null;
|
|
3084
|
+
var _ = { from: l, to: -1 };
|
|
3085
|
+
this._currentRange = { from: _.from, to: -1 }, this._speedSampler.reset(), this._stashSize = this._stashInitialSize, this._createLoader(), this._loader.open(this._dataSource, _), this._onSeeked && this._onSeeked();
|
|
3086
|
+
}, T.prototype.updateUrl = function(l) {
|
|
3087
|
+
if (!l || typeof l != "string" || l.length === 0) throw new f.b("Url must be a non-empty string!");
|
|
3088
|
+
this._dataSource.url = l;
|
|
3089
|
+
}, T.prototype._expandBuffer = function(l) {
|
|
3090
|
+
for (var u = this._stashSize; u + 1048576 < l; ) u *= 2;
|
|
3091
|
+
if ((u += 1048576) !== this._bufferSize) {
|
|
3092
|
+
var _ = new ArrayBuffer(u);
|
|
3093
|
+
if (this._stashUsed > 0) {
|
|
3094
|
+
var c = new Uint8Array(this._stashBuffer, 0, this._stashUsed);
|
|
3095
|
+
new Uint8Array(_, 0, u).set(c, 0);
|
|
3096
|
+
}
|
|
3097
|
+
this._stashBuffer = _, this._bufferSize = u;
|
|
3098
|
+
}
|
|
3099
|
+
}, T.prototype._normalizeSpeed = function(l) {
|
|
3100
|
+
var u = this._speedNormalizeList, _ = u.length - 1, c = 0, P = 0, D = _;
|
|
3101
|
+
if (l < u[0]) return u[0];
|
|
3102
|
+
for (; P <= D; ) {
|
|
3103
|
+
if ((c = P + Math.floor((D - P) / 2)) === _ || l >= u[c] && l < u[c + 1]) return u[c];
|
|
3104
|
+
u[c] < l ? P = c + 1 : D = c - 1;
|
|
3105
|
+
}
|
|
3106
|
+
}, T.prototype._adjustStashSize = function(l) {
|
|
3107
|
+
var u = 0;
|
|
3108
|
+
(u = this._config.isLive ? l / 8 : l < 512 ? l : l >= 512 && l <= 1024 ? Math.floor(1.5 * l) : 2 * l) > 8192 && (u = 8192);
|
|
3109
|
+
var _ = 1024 * u + 1048576;
|
|
3110
|
+
this._bufferSize < _ && this._expandBuffer(_), this._stashSize = 1024 * u;
|
|
3111
|
+
}, T.prototype._dispatchChunks = function(l, u) {
|
|
3112
|
+
return this._currentRange.to = u + l.byteLength - 1, this._onDataArrival(l, u);
|
|
3113
|
+
}, T.prototype._onURLRedirect = function(l) {
|
|
3114
|
+
this._redirectedURL = l, this._onRedirect && this._onRedirect(l);
|
|
3115
|
+
}, T.prototype._onContentLengthKnown = function(l) {
|
|
3116
|
+
l && this._fullRequestFlag && (this._totalLength = l, this._fullRequestFlag = !1);
|
|
3117
|
+
}, T.prototype._onLoaderChunkArrival = function(l, u, _) {
|
|
3118
|
+
if (!this._onDataArrival) throw new f.a("IOController: No existing consumer (onDataArrival) callback!");
|
|
3119
|
+
if (!this._paused) {
|
|
3120
|
+
this._isEarlyEofReconnecting && (this._isEarlyEofReconnecting = !1, this._onRecoveredEarlyEof && this._onRecoveredEarlyEof()), this._speedSampler.addBytes(l.byteLength);
|
|
3121
|
+
var c = this._speedSampler.lastSecondKBps;
|
|
3122
|
+
if (c !== 0) {
|
|
3123
|
+
var P = this._normalizeSpeed(c);
|
|
3124
|
+
this._speedNormalized !== P && (this._speedNormalized = P, this._adjustStashSize(P));
|
|
3125
|
+
}
|
|
3126
|
+
if (this._enableStash) if (this._stashUsed === 0 && this._stashByteStart === 0 && (this._stashByteStart = u), this._stashUsed + l.byteLength <= this._stashSize)
|
|
3127
|
+
(ee = new Uint8Array(this._stashBuffer, 0, this._stashSize)).set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength;
|
|
3128
|
+
else if (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize), this._stashUsed > 0) {
|
|
3129
|
+
var D = this._stashBuffer.slice(0, this._stashUsed);
|
|
3130
|
+
(pe = this._dispatchChunks(D, this._stashByteStart)) < D.byteLength ? pe > 0 && (ve = new Uint8Array(D, pe), ee.set(ve, 0), this._stashUsed = ve.byteLength, this._stashByteStart += pe) : (this._stashUsed = 0, this._stashByteStart += pe), this._stashUsed + l.byteLength > this._bufferSize && (this._expandBuffer(this._stashUsed + l.byteLength), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength;
|
|
3131
|
+
} else
|
|
3132
|
+
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((F = l.byteLength - pe) > this._bufferSize && (this._expandBuffer(F), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l, pe), 0), this._stashUsed += F, this._stashByteStart = u + pe);
|
|
3133
|
+
else if (this._stashUsed === 0) {
|
|
3134
|
+
var F;
|
|
3135
|
+
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((F = l.byteLength - pe) > this._bufferSize && this._expandBuffer(F), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l, pe), 0), this._stashUsed += F, this._stashByteStart = u + pe);
|
|
3136
|
+
} else {
|
|
3137
|
+
var ee, pe;
|
|
3138
|
+
if (this._stashUsed + l.byteLength > this._bufferSize && this._expandBuffer(this._stashUsed + l.byteLength), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength, (pe = this._dispatchChunks(this._stashBuffer.slice(0, this._stashUsed), this._stashByteStart)) < this._stashUsed && pe > 0) {
|
|
3139
|
+
var ve = new Uint8Array(this._stashBuffer, pe);
|
|
3140
|
+
ee.set(ve, 0);
|
|
3141
|
+
}
|
|
3142
|
+
this._stashUsed -= pe, this._stashByteStart += pe;
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
}, T.prototype._flushStashBuffer = function(l) {
|
|
3146
|
+
if (this._stashUsed > 0) {
|
|
3147
|
+
var u = this._stashBuffer.slice(0, this._stashUsed), _ = this._dispatchChunks(u, this._stashByteStart), c = u.byteLength - _;
|
|
3148
|
+
if (_ < u.byteLength) {
|
|
3149
|
+
if (!l) {
|
|
3150
|
+
if (_ > 0) {
|
|
3151
|
+
var P = new Uint8Array(this._stashBuffer, 0, this._bufferSize), D = new Uint8Array(u, _);
|
|
3152
|
+
P.set(D, 0), this._stashUsed = D.byteLength, this._stashByteStart += _;
|
|
3153
|
+
}
|
|
3154
|
+
return 0;
|
|
3155
|
+
}
|
|
3156
|
+
B.a.w(this.TAG, c + " bytes unconsumed data remain when flush buffer, dropped");
|
|
3157
|
+
}
|
|
3158
|
+
return this._stashUsed = 0, this._stashByteStart = 0, c;
|
|
3159
|
+
}
|
|
3160
|
+
return 0;
|
|
3161
|
+
}, T.prototype._onLoaderComplete = function(l, u) {
|
|
3162
|
+
this._flushStashBuffer(!0), this._onComplete && this._onComplete(this._extraData);
|
|
3163
|
+
}, T.prototype._onLoaderError = function(l, u) {
|
|
3164
|
+
switch (B.a.e(this.TAG, "Loader error, code = " + u.code + ", msg = " + u.msg), this._flushStashBuffer(!1), this._isEarlyEofReconnecting && (this._isEarlyEofReconnecting = !1, l = b.b.UNRECOVERABLE_EARLY_EOF), l) {
|
|
3165
|
+
case b.b.EARLY_EOF:
|
|
3166
|
+
if (!this._config.isLive && this._totalLength) {
|
|
3167
|
+
var _ = this._currentRange.to + 1;
|
|
3168
|
+
return void (_ < this._totalLength && (B.a.w(this.TAG, "Connection lost, trying reconnect..."), this._isEarlyEofReconnecting = !0, this._internalSeek(_, !1)));
|
|
3169
|
+
}
|
|
3170
|
+
l = b.b.UNRECOVERABLE_EARLY_EOF;
|
|
3171
|
+
break;
|
|
3172
|
+
case b.b.UNRECOVERABLE_EARLY_EOF:
|
|
3173
|
+
case b.b.CONNECTING_TIMEOUT:
|
|
3174
|
+
case b.b.HTTP_STATUS_CODE_INVALID:
|
|
3175
|
+
case b.b.EXCEPTION:
|
|
3176
|
+
}
|
|
3177
|
+
if (!this._onError) throw new f.d("IOException: " + u.msg);
|
|
3178
|
+
this._onError(l, u);
|
|
3179
|
+
}, T;
|
|
3180
|
+
}();
|
|
3181
|
+
Z.a = G;
|
|
3182
|
+
}, function(fe, Z, O) {
|
|
3183
|
+
var U = function() {
|
|
3184
|
+
function B() {
|
|
3185
|
+
}
|
|
3186
|
+
return B.install = function() {
|
|
3187
|
+
Object.setPrototypeOf = Object.setPrototypeOf || function(m, b) {
|
|
3188
|
+
return m.__proto__ = b, m;
|
|
3189
|
+
}, Object.assign = Object.assign || function(m) {
|
|
3190
|
+
if (m == null) throw new TypeError("Cannot convert undefined or null to object");
|
|
3191
|
+
for (var b = Object(m), v = 1; v < arguments.length; v++) {
|
|
3192
|
+
var f = arguments[v];
|
|
3193
|
+
if (f != null) for (var L in f) f.hasOwnProperty(L) && (b[L] = f[L]);
|
|
3194
|
+
}
|
|
3195
|
+
return b;
|
|
3196
|
+
}, typeof self.Promise != "function" && O(15).polyfill();
|
|
3197
|
+
}, B;
|
|
3198
|
+
}();
|
|
3199
|
+
U.install(), Z.a = U;
|
|
3200
|
+
}, function(fe, Z, O) {
|
|
3201
|
+
function U(v) {
|
|
3202
|
+
var f = {};
|
|
3203
|
+
function L(C) {
|
|
3204
|
+
if (f[C]) return f[C].exports;
|
|
3205
|
+
var V = f[C] = { i: C, l: !1, exports: {} };
|
|
3206
|
+
return v[C].call(V.exports, V, V.exports, L), V.l = !0, V.exports;
|
|
3207
|
+
}
|
|
3208
|
+
L.m = v, L.c = f, L.i = function(C) {
|
|
3209
|
+
return C;
|
|
3210
|
+
}, L.d = function(C, V, H) {
|
|
3211
|
+
L.o(C, V) || Object.defineProperty(C, V, { configurable: !1, enumerable: !0, get: H });
|
|
3212
|
+
}, L.r = function(C) {
|
|
3213
|
+
Object.defineProperty(C, "__esModule", { value: !0 });
|
|
3214
|
+
}, L.n = function(C) {
|
|
3215
|
+
var V = C && C.__esModule ? function() {
|
|
3216
|
+
return C.default;
|
|
3217
|
+
} : function() {
|
|
3218
|
+
return C;
|
|
3219
|
+
};
|
|
3220
|
+
return L.d(V, "a", V), V;
|
|
3221
|
+
}, L.o = function(C, V) {
|
|
3222
|
+
return Object.prototype.hasOwnProperty.call(C, V);
|
|
3223
|
+
}, L.p = "/", L.oe = function(C) {
|
|
3224
|
+
throw C;
|
|
3225
|
+
};
|
|
3226
|
+
var x = L(L.s = ENTRY_MODULE);
|
|
3227
|
+
return x.default || x;
|
|
3228
|
+
}
|
|
3229
|
+
function B(v) {
|
|
3230
|
+
return (v + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3231
|
+
}
|
|
3232
|
+
function m(v, f, L) {
|
|
3233
|
+
var x = {};
|
|
3234
|
+
x[L] = [];
|
|
3235
|
+
var C = f.toString(), V = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
3236
|
+
if (!V) return x;
|
|
3237
|
+
for (var H, ue = V[1], se = new RegExp("(\\\\n|\\W)" + B(ue) + "\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)", "g"); H = se.exec(C); ) H[3] !== "dll-reference" && x[L].push(H[3]);
|
|
3238
|
+
for (se = new RegExp("\\(" + B(ue) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = se.exec(C); ) v[H[2]] || (x[L].push(H[1]), v[H[2]] = O(H[1]).m), x[H[2]] = x[H[2]] || [], x[H[2]].push(H[4]);
|
|
3239
|
+
for (var Y, ae = Object.keys(x), y = 0; y < ae.length; y++) for (var G = 0; G < x[ae[y]].length; G++) Y = x[ae[y]][G], isNaN(1 * Y) || (x[ae[y]][G] = 1 * x[ae[y]][G]);
|
|
3240
|
+
return x;
|
|
3241
|
+
}
|
|
3242
|
+
function b(v) {
|
|
3243
|
+
return Object.keys(v).reduce(function(f, L) {
|
|
3244
|
+
return f || v[L].length > 0;
|
|
3245
|
+
}, !1);
|
|
3246
|
+
}
|
|
3247
|
+
fe.exports = function(v, f) {
|
|
3248
|
+
f = f || {};
|
|
3249
|
+
var L = { main: O.m }, x = f.all ? { main: Object.keys(L.main) } : function(se, Y) {
|
|
3250
|
+
for (var ae = { main: [Y] }, y = { main: [] }, G = { main: {} }; b(ae); ) for (var T = Object.keys(ae), l = 0; l < T.length; l++) {
|
|
3251
|
+
var u = T[l], _ = ae[u].pop();
|
|
3252
|
+
if (G[u] = G[u] || {}, !G[u][_] && se[u][_]) {
|
|
3253
|
+
G[u][_] = !0, y[u] = y[u] || [], y[u].push(_);
|
|
3254
|
+
for (var c = m(se, se[u][_], u), P = Object.keys(c), D = 0; D < P.length; D++) ae[P[D]] = ae[P[D]] || [], ae[P[D]] = ae[P[D]].concat(c[P[D]]);
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
return y;
|
|
3258
|
+
}(L, v), C = "";
|
|
3259
|
+
Object.keys(x).filter(function(se) {
|
|
3260
|
+
return se !== "main";
|
|
3261
|
+
}).forEach(function(se) {
|
|
3262
|
+
for (var Y = 0; x[se][Y]; ) Y++;
|
|
3263
|
+
x[se].push(Y), L[se][Y] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", C = C + "var " + se + " = (" + U.toString().replace("ENTRY_MODULE", JSON.stringify(Y)) + ")({" + x[se].map(function(ae) {
|
|
3264
|
+
return JSON.stringify(ae) + ": " + L[se][ae].toString();
|
|
3265
|
+
}).join(",") + `});
|
|
3266
|
+
`;
|
|
3267
|
+
}), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + x.main.map(function(se) {
|
|
3268
|
+
return JSON.stringify(se) + ": " + L.main[se].toString();
|
|
3269
|
+
}).join(",") + "}))(self);";
|
|
3270
|
+
var V = new window.Blob([C], { type: "text/javascript" });
|
|
3271
|
+
if (f.bare) return V;
|
|
3272
|
+
var H = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(V), ue = new window.Worker(H);
|
|
3273
|
+
return ue.objectURL = H, ue;
|
|
3274
|
+
};
|
|
3275
|
+
}, function(fe, Z, O) {
|
|
3276
|
+
fe.exports = O(19).default;
|
|
3277
|
+
}, function(fe, Z, O) {
|
|
3278
|
+
(function(U, B) {
|
|
3279
|
+
/*!
|
|
3280
|
+
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
3281
|
+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
3282
|
+
* @license Licensed under MIT license
|
|
3283
|
+
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
3284
|
+
* @version v4.2.8+1e68dce6
|
|
3285
|
+
*/
|
|
3286
|
+
var m;
|
|
3287
|
+
m = function() {
|
|
3288
|
+
function b(M) {
|
|
3289
|
+
return typeof M == "function";
|
|
3290
|
+
}
|
|
3291
|
+
var v = Array.isArray ? Array.isArray : function(M) {
|
|
3292
|
+
return Object.prototype.toString.call(M) === "[object Array]";
|
|
3293
|
+
}, f = 0, L = void 0, x = void 0, C = function(M, j) {
|
|
3294
|
+
y[f] = M, y[f + 1] = j, (f += 2) === 2 && (x ? x(G) : c());
|
|
3295
|
+
}, V = typeof window < "u" ? window : void 0, H = V || {}, ue = H.MutationObserver || H.WebKitMutationObserver, se = typeof self > "u" && U !== void 0 && {}.toString.call(U) === "[object process]", Y = typeof Uint8ClampedArray < "u" && typeof importScripts < "u" && typeof MessageChannel < "u";
|
|
3296
|
+
function ae() {
|
|
3297
|
+
var M = setTimeout;
|
|
3298
|
+
return function() {
|
|
3299
|
+
return M(G, 1);
|
|
3300
|
+
};
|
|
3301
|
+
}
|
|
3302
|
+
var y = new Array(1e3);
|
|
3303
|
+
function G() {
|
|
3304
|
+
for (var M = 0; M < f; M += 2) (0, y[M])(y[M + 1]), y[M] = void 0, y[M + 1] = void 0;
|
|
3305
|
+
f = 0;
|
|
3306
|
+
}
|
|
3307
|
+
var T, l, u, _, c = void 0;
|
|
3308
|
+
function P(M, j) {
|
|
3309
|
+
var $ = this, ie = new this.constructor(ee);
|
|
3310
|
+
ie[F] === void 0 && Se(ie);
|
|
3311
|
+
var re = $._state;
|
|
3312
|
+
if (re) {
|
|
3313
|
+
var ce = arguments[re - 1];
|
|
3314
|
+
C(function() {
|
|
3315
|
+
return oe(re, ie, ce, $._result);
|
|
3316
|
+
});
|
|
3317
|
+
} else R($, ie, M, j);
|
|
3318
|
+
return ie;
|
|
3319
|
+
}
|
|
3320
|
+
function D(M) {
|
|
3321
|
+
if (M && typeof M == "object" && M.constructor === this) return M;
|
|
3322
|
+
var j = new this(ee);
|
|
3323
|
+
return ve(j, M), j;
|
|
3324
|
+
}
|
|
3325
|
+
se ? c = function() {
|
|
3326
|
+
return U.nextTick(G);
|
|
3327
|
+
} : ue ? (l = 0, u = new ue(G), _ = document.createTextNode(""), u.observe(_, { characterData: !0 }), c = function() {
|
|
3328
|
+
_.data = l = ++l % 2;
|
|
3329
|
+
}) : Y ? ((T = new MessageChannel()).port1.onmessage = G, c = function() {
|
|
3330
|
+
return T.port2.postMessage(0);
|
|
3331
|
+
}) : c = V === void 0 ? function() {
|
|
3332
|
+
try {
|
|
3333
|
+
var M = Function("return this")().require("vertx");
|
|
3334
|
+
return (L = M.runOnLoop || M.runOnContext) !== void 0 ? function() {
|
|
3335
|
+
L(G);
|
|
3336
|
+
} : ae();
|
|
3337
|
+
} catch {
|
|
3338
|
+
return ae();
|
|
3339
|
+
}
|
|
3340
|
+
}() : ae();
|
|
3341
|
+
var F = Math.random().toString(36).substring(2);
|
|
3342
|
+
function ee() {
|
|
3343
|
+
}
|
|
3344
|
+
function pe(M, j, $) {
|
|
3345
|
+
j.constructor === M.constructor && $ === P && j.constructor.resolve === D ? function(ie, re) {
|
|
3346
|
+
re._state === 1 ? d(ie, re._result) : re._state === 2 ? h(ie, re._result) : R(re, void 0, function(ce) {
|
|
3347
|
+
return ve(ie, ce);
|
|
3348
|
+
}, function(ce) {
|
|
3349
|
+
return h(ie, ce);
|
|
3350
|
+
});
|
|
3351
|
+
}(M, j) : $ === void 0 ? d(M, j) : b($) ? function(ie, re, ce) {
|
|
3352
|
+
C(function(we) {
|
|
3353
|
+
var Ee = !1, Oe = function(Be, $e, Qe, et) {
|
|
3354
|
+
try {
|
|
3355
|
+
Be.call($e, Qe, et);
|
|
3356
|
+
} catch (tt) {
|
|
3357
|
+
return tt;
|
|
3358
|
+
}
|
|
3359
|
+
}(ce, re, function(Be) {
|
|
3360
|
+
Ee || (Ee = !0, re !== Be ? ve(we, Be) : d(we, Be));
|
|
3361
|
+
}, function(Be) {
|
|
3362
|
+
Ee || (Ee = !0, h(we, Be));
|
|
3363
|
+
}, we._label);
|
|
3364
|
+
!Ee && Oe && (Ee = !0, h(we, Oe));
|
|
3365
|
+
}, ie);
|
|
3366
|
+
}(M, j, $) : d(M, j);
|
|
3367
|
+
}
|
|
3368
|
+
function ve(M, j) {
|
|
3369
|
+
if (M === j) h(M, new TypeError("You cannot resolve a promise with itself"));
|
|
3370
|
+
else if (re = typeof (ie = j), ie === null || re !== "object" && re !== "function") d(M, j);
|
|
3371
|
+
else {
|
|
3372
|
+
var $ = void 0;
|
|
3373
|
+
try {
|
|
3374
|
+
$ = j.then;
|
|
3375
|
+
} catch (ce) {
|
|
3376
|
+
return void h(M, ce);
|
|
3377
|
+
}
|
|
3378
|
+
pe(M, j, $);
|
|
3379
|
+
}
|
|
3380
|
+
var ie, re;
|
|
3381
|
+
}
|
|
3382
|
+
function k(M) {
|
|
3383
|
+
M._onerror && M._onerror(M._result), X(M);
|
|
3384
|
+
}
|
|
3385
|
+
function d(M, j) {
|
|
3386
|
+
M._state === void 0 && (M._result = j, M._state = 1, M._subscribers.length !== 0 && C(X, M));
|
|
3387
|
+
}
|
|
3388
|
+
function h(M, j) {
|
|
3389
|
+
M._state === void 0 && (M._state = 2, M._result = j, C(k, M));
|
|
3390
|
+
}
|
|
3391
|
+
function R(M, j, $, ie) {
|
|
3392
|
+
var re = M._subscribers, ce = re.length;
|
|
3393
|
+
M._onerror = null, re[ce] = j, re[ce + 1] = $, re[ce + 2] = ie, ce === 0 && M._state && C(X, M);
|
|
3394
|
+
}
|
|
3395
|
+
function X(M) {
|
|
3396
|
+
var j = M._subscribers, $ = M._state;
|
|
3397
|
+
if (j.length !== 0) {
|
|
3398
|
+
for (var ie = void 0, re = void 0, ce = M._result, we = 0; we < j.length; we += 3) ie = j[we], re = j[we + $], ie ? oe($, ie, re, ce) : re(ce);
|
|
3399
|
+
M._subscribers.length = 0;
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
function oe(M, j, $, ie) {
|
|
3403
|
+
var re = b($), ce = void 0, we = void 0, Ee = !0;
|
|
3404
|
+
if (re) {
|
|
3405
|
+
try {
|
|
3406
|
+
ce = $(ie);
|
|
3407
|
+
} catch (Oe) {
|
|
3408
|
+
Ee = !1, we = Oe;
|
|
3409
|
+
}
|
|
3410
|
+
if (j === ce) return void h(j, new TypeError("A promises callback cannot return that same promise."));
|
|
3411
|
+
} else ce = ie;
|
|
3412
|
+
j._state !== void 0 || (re && Ee ? ve(j, ce) : Ee === !1 ? h(j, we) : M === 1 ? d(j, ce) : M === 2 && h(j, ce));
|
|
3413
|
+
}
|
|
3414
|
+
var me = 0;
|
|
3415
|
+
function Se(M) {
|
|
3416
|
+
M[F] = me++, M._state = void 0, M._result = void 0, M._subscribers = [];
|
|
3417
|
+
}
|
|
3418
|
+
var De = function() {
|
|
3419
|
+
function M(j, $) {
|
|
3420
|
+
this._instanceConstructor = j, this.promise = new j(ee), this.promise[F] || Se(this.promise), v($) ? (this.length = $.length, this._remaining = $.length, this._result = new Array(this.length), this.length === 0 ? d(this.promise, this._result) : (this.length = this.length || 0, this._enumerate($), this._remaining === 0 && d(this.promise, this._result))) : h(this.promise, new Error("Array Methods must be provided an Array"));
|
|
3421
|
+
}
|
|
3422
|
+
return M.prototype._enumerate = function(j) {
|
|
3423
|
+
for (var $ = 0; this._state === void 0 && $ < j.length; $++) this._eachEntry(j[$], $);
|
|
3424
|
+
}, M.prototype._eachEntry = function(j, $) {
|
|
3425
|
+
var ie = this._instanceConstructor, re = ie.resolve;
|
|
3426
|
+
if (re === D) {
|
|
3427
|
+
var ce = void 0, we = void 0, Ee = !1;
|
|
3428
|
+
try {
|
|
3429
|
+
ce = j.then;
|
|
3430
|
+
} catch (Be) {
|
|
3431
|
+
Ee = !0, we = Be;
|
|
3432
|
+
}
|
|
3433
|
+
if (ce === P && j._state !== void 0) this._settledAt(j._state, $, j._result);
|
|
3434
|
+
else if (typeof ce != "function") this._remaining--, this._result[$] = j;
|
|
3435
|
+
else if (ie === Te) {
|
|
3436
|
+
var Oe = new ie(ee);
|
|
3437
|
+
Ee ? h(Oe, we) : pe(Oe, j, ce), this._willSettleAt(Oe, $);
|
|
3438
|
+
} else this._willSettleAt(new ie(function(Be) {
|
|
3439
|
+
return Be(j);
|
|
3440
|
+
}), $);
|
|
3441
|
+
} else this._willSettleAt(re(j), $);
|
|
3442
|
+
}, M.prototype._settledAt = function(j, $, ie) {
|
|
3443
|
+
var re = this.promise;
|
|
3444
|
+
re._state === void 0 && (this._remaining--, j === 2 ? h(re, ie) : this._result[$] = ie), this._remaining === 0 && d(re, this._result);
|
|
3445
|
+
}, M.prototype._willSettleAt = function(j, $) {
|
|
3446
|
+
var ie = this;
|
|
3447
|
+
R(j, void 0, function(re) {
|
|
3448
|
+
return ie._settledAt(1, $, re);
|
|
3449
|
+
}, function(re) {
|
|
3450
|
+
return ie._settledAt(2, $, re);
|
|
3451
|
+
});
|
|
3452
|
+
}, M;
|
|
3453
|
+
}(), Te = function() {
|
|
3454
|
+
function M(j) {
|
|
3455
|
+
this[F] = me++, this._result = this._state = void 0, this._subscribers = [], ee !== j && (typeof j != "function" && function() {
|
|
3456
|
+
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
|
|
3457
|
+
}(), this instanceof M ? function($, ie) {
|
|
3458
|
+
try {
|
|
3459
|
+
ie(function(re) {
|
|
3460
|
+
ve($, re);
|
|
3461
|
+
}, function(re) {
|
|
3462
|
+
h($, re);
|
|
3463
|
+
});
|
|
3464
|
+
} catch (re) {
|
|
3465
|
+
h($, re);
|
|
3466
|
+
}
|
|
3467
|
+
}(this, j) : function() {
|
|
3468
|
+
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
|
|
3469
|
+
}());
|
|
3470
|
+
}
|
|
3471
|
+
return M.prototype.catch = function(j) {
|
|
3472
|
+
return this.then(null, j);
|
|
3473
|
+
}, M.prototype.finally = function(j) {
|
|
3474
|
+
var $ = this.constructor;
|
|
3475
|
+
return b(j) ? this.then(function(ie) {
|
|
3476
|
+
return $.resolve(j()).then(function() {
|
|
3477
|
+
return ie;
|
|
3478
|
+
});
|
|
3479
|
+
}, function(ie) {
|
|
3480
|
+
return $.resolve(j()).then(function() {
|
|
3481
|
+
throw ie;
|
|
3482
|
+
});
|
|
3483
|
+
}) : this.then(j, j);
|
|
3484
|
+
}, M;
|
|
3485
|
+
}();
|
|
3486
|
+
return Te.prototype.then = P, Te.all = function(M) {
|
|
3487
|
+
return new De(this, M).promise;
|
|
3488
|
+
}, Te.race = function(M) {
|
|
3489
|
+
var j = this;
|
|
3490
|
+
return v(M) ? new j(function($, ie) {
|
|
3491
|
+
for (var re = M.length, ce = 0; ce < re; ce++) j.resolve(M[ce]).then($, ie);
|
|
3492
|
+
}) : new j(function($, ie) {
|
|
3493
|
+
return ie(new TypeError("You must pass an array to race."));
|
|
3494
|
+
});
|
|
3495
|
+
}, Te.resolve = D, Te.reject = function(M) {
|
|
3496
|
+
var j = new this(ee);
|
|
3497
|
+
return h(j, M), j;
|
|
3498
|
+
}, Te._setScheduler = function(M) {
|
|
3499
|
+
x = M;
|
|
3500
|
+
}, Te._setAsap = function(M) {
|
|
3501
|
+
C = M;
|
|
3502
|
+
}, Te._asap = C, Te.polyfill = function() {
|
|
3503
|
+
var M = void 0;
|
|
3504
|
+
if (B !== void 0) M = B;
|
|
3505
|
+
else if (typeof self < "u") M = self;
|
|
3506
|
+
else try {
|
|
3507
|
+
M = Function("return this")();
|
|
3508
|
+
} catch {
|
|
3509
|
+
throw new Error("polyfill failed because global object is unavailable in this environment");
|
|
3510
|
+
}
|
|
3511
|
+
var j = M.Promise;
|
|
3512
|
+
if (j) {
|
|
3513
|
+
var $ = null;
|
|
3514
|
+
try {
|
|
3515
|
+
$ = Object.prototype.toString.call(j.resolve());
|
|
3516
|
+
} catch {
|
|
3517
|
+
}
|
|
3518
|
+
if ($ === "[object Promise]" && !j.cast) return;
|
|
3519
|
+
}
|
|
3520
|
+
M.Promise = Te;
|
|
3521
|
+
}, Te.Promise = Te, Te;
|
|
3522
|
+
}, fe.exports = m();
|
|
3523
|
+
}).call(this, O(16), O(17));
|
|
3524
|
+
}, function(fe, Z) {
|
|
3525
|
+
var O, U, B = fe.exports = {};
|
|
3526
|
+
function m() {
|
|
3527
|
+
throw new Error("setTimeout has not been defined");
|
|
3528
|
+
}
|
|
3529
|
+
function b() {
|
|
3530
|
+
throw new Error("clearTimeout has not been defined");
|
|
3531
|
+
}
|
|
3532
|
+
function v(Y) {
|
|
3533
|
+
if (O === setTimeout) return setTimeout(Y, 0);
|
|
3534
|
+
if ((O === m || !O) && setTimeout) return O = setTimeout, setTimeout(Y, 0);
|
|
3535
|
+
try {
|
|
3536
|
+
return O(Y, 0);
|
|
3537
|
+
} catch {
|
|
3538
|
+
try {
|
|
3539
|
+
return O.call(null, Y, 0);
|
|
3540
|
+
} catch {
|
|
3541
|
+
return O.call(this, Y, 0);
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
(function() {
|
|
3546
|
+
try {
|
|
3547
|
+
O = typeof setTimeout == "function" ? setTimeout : m;
|
|
3548
|
+
} catch {
|
|
3549
|
+
O = m;
|
|
3550
|
+
}
|
|
3551
|
+
try {
|
|
3552
|
+
U = typeof clearTimeout == "function" ? clearTimeout : b;
|
|
3553
|
+
} catch {
|
|
3554
|
+
U = b;
|
|
3555
|
+
}
|
|
3556
|
+
})();
|
|
3557
|
+
var f, L = [], x = !1, C = -1;
|
|
3558
|
+
function V() {
|
|
3559
|
+
x && f && (x = !1, f.length ? L = f.concat(L) : C = -1, L.length && H());
|
|
3560
|
+
}
|
|
3561
|
+
function H() {
|
|
3562
|
+
if (!x) {
|
|
3563
|
+
var Y = v(V);
|
|
3564
|
+
x = !0;
|
|
3565
|
+
for (var ae = L.length; ae; ) {
|
|
3566
|
+
for (f = L, L = []; ++C < ae; ) f && f[C].run();
|
|
3567
|
+
C = -1, ae = L.length;
|
|
3568
|
+
}
|
|
3569
|
+
f = null, x = !1, function(y) {
|
|
3570
|
+
if (U === clearTimeout) return clearTimeout(y);
|
|
3571
|
+
if ((U === b || !U) && clearTimeout) return U = clearTimeout, clearTimeout(y);
|
|
3572
|
+
try {
|
|
3573
|
+
U(y);
|
|
3574
|
+
} catch {
|
|
3575
|
+
try {
|
|
3576
|
+
return U.call(null, y);
|
|
3577
|
+
} catch {
|
|
3578
|
+
return U.call(this, y);
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
}(Y);
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
function ue(Y, ae) {
|
|
3585
|
+
this.fun = Y, this.array = ae;
|
|
3586
|
+
}
|
|
3587
|
+
function se() {
|
|
3588
|
+
}
|
|
3589
|
+
B.nextTick = function(Y) {
|
|
3590
|
+
var ae = new Array(arguments.length - 1);
|
|
3591
|
+
if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ae[y - 1] = arguments[y];
|
|
3592
|
+
L.push(new ue(Y, ae)), L.length !== 1 || x || v(H);
|
|
3593
|
+
}, ue.prototype.run = function() {
|
|
3594
|
+
this.fun.apply(null, this.array);
|
|
3595
|
+
}, B.title = "browser", B.browser = !0, B.env = {}, B.argv = [], B.version = "", B.versions = {}, B.on = se, B.addListener = se, B.once = se, B.off = se, B.removeListener = se, B.removeAllListeners = se, B.emit = se, B.prependListener = se, B.prependOnceListener = se, B.listeners = function(Y) {
|
|
3596
|
+
return [];
|
|
3597
|
+
}, B.binding = function(Y) {
|
|
3598
|
+
throw new Error("process.binding is not supported");
|
|
3599
|
+
}, B.cwd = function() {
|
|
3600
|
+
return "/";
|
|
3601
|
+
}, B.chdir = function(Y) {
|
|
3602
|
+
throw new Error("process.chdir is not supported");
|
|
3603
|
+
}, B.umask = function() {
|
|
3604
|
+
return 0;
|
|
3605
|
+
};
|
|
3606
|
+
}, function(fe, Z) {
|
|
3607
|
+
var O;
|
|
3608
|
+
O = /* @__PURE__ */ function() {
|
|
3609
|
+
return this;
|
|
3610
|
+
}();
|
|
3611
|
+
try {
|
|
3612
|
+
O = O || new Function("return this")();
|
|
3613
|
+
} catch {
|
|
3614
|
+
typeof window == "object" && (O = window);
|
|
3615
|
+
}
|
|
3616
|
+
fe.exports = O;
|
|
3617
|
+
}, function(fe, Z, O) {
|
|
3618
|
+
O.r(Z);
|
|
3619
|
+
var U = O(9), B = O(12), m = O(10), b = O(1);
|
|
3620
|
+
Z.default = function(v) {
|
|
3621
|
+
var f = null, L = (function(D, F) {
|
|
3622
|
+
v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: F } });
|
|
3623
|
+
}).bind(this);
|
|
3624
|
+
function x(D, F) {
|
|
3625
|
+
var ee = { msg: b.a.INIT_SEGMENT, data: { type: D, data: F } };
|
|
3626
|
+
v.postMessage(ee, [F.data]);
|
|
3627
|
+
}
|
|
3628
|
+
function C(D, F) {
|
|
3629
|
+
var ee = { msg: b.a.MEDIA_SEGMENT, data: { type: D, data: F } };
|
|
3630
|
+
v.postMessage(ee, [F.data]);
|
|
3631
|
+
}
|
|
3632
|
+
function V() {
|
|
3633
|
+
var D = { msg: b.a.LOADING_COMPLETE };
|
|
3634
|
+
v.postMessage(D);
|
|
3635
|
+
}
|
|
3636
|
+
function H() {
|
|
3637
|
+
var D = { msg: b.a.RECOVERED_EARLY_EOF };
|
|
3638
|
+
v.postMessage(D);
|
|
3639
|
+
}
|
|
3640
|
+
function ue(D) {
|
|
3641
|
+
var F = { msg: b.a.MEDIA_INFO, data: D };
|
|
3642
|
+
v.postMessage(F);
|
|
3643
|
+
}
|
|
3644
|
+
function se(D) {
|
|
3645
|
+
var F = { msg: b.a.METADATA_ARRIVED, data: D };
|
|
3646
|
+
v.postMessage(F);
|
|
3647
|
+
}
|
|
3648
|
+
function Y(D) {
|
|
3649
|
+
var F = { msg: b.a.SCRIPTDATA_ARRIVED, data: D };
|
|
3650
|
+
v.postMessage(F);
|
|
3651
|
+
}
|
|
3652
|
+
function ae(D) {
|
|
3653
|
+
var F = { msg: b.a.TIMED_ID3_METADATA_ARRIVED, data: D };
|
|
3654
|
+
v.postMessage(F);
|
|
3655
|
+
}
|
|
3656
|
+
function y(D) {
|
|
3657
|
+
var F = { msg: b.a.SMPTE2038_METADATA_ARRIVED, data: D };
|
|
3658
|
+
v.postMessage(F);
|
|
3659
|
+
}
|
|
3660
|
+
function G(D) {
|
|
3661
|
+
var F = { msg: b.a.SCTE35_METADATA_ARRIVED, data: D };
|
|
3662
|
+
v.postMessage(F);
|
|
3663
|
+
}
|
|
3664
|
+
function T(D) {
|
|
3665
|
+
var F = { msg: b.a.PES_PRIVATE_DATA_DESCRIPTOR, data: D };
|
|
3666
|
+
v.postMessage(F);
|
|
3667
|
+
}
|
|
3668
|
+
function l(D) {
|
|
3669
|
+
var F = { msg: b.a.PES_PRIVATE_DATA_ARRIVED, data: D };
|
|
3670
|
+
v.postMessage(F);
|
|
3671
|
+
}
|
|
3672
|
+
function u(D) {
|
|
3673
|
+
var F = { msg: b.a.STATISTICS_INFO, data: D };
|
|
3674
|
+
v.postMessage(F);
|
|
3675
|
+
}
|
|
3676
|
+
function _(D, F) {
|
|
3677
|
+
v.postMessage({ msg: b.a.IO_ERROR, data: { type: D, info: F } });
|
|
3678
|
+
}
|
|
3679
|
+
function c(D, F) {
|
|
3680
|
+
v.postMessage({ msg: b.a.DEMUX_ERROR, data: { type: D, info: F } });
|
|
3681
|
+
}
|
|
3682
|
+
function P(D) {
|
|
3683
|
+
v.postMessage({ msg: b.a.RECOMMEND_SEEKPOINT, data: D });
|
|
3684
|
+
}
|
|
3685
|
+
B.a.install(), v.addEventListener("message", function(D) {
|
|
3686
|
+
switch (D.data.cmd) {
|
|
3687
|
+
case "init":
|
|
3688
|
+
(f = new m.a(D.data.param[0], D.data.param[1])).on(b.a.IO_ERROR, _.bind(this)), f.on(b.a.DEMUX_ERROR, c.bind(this)), f.on(b.a.INIT_SEGMENT, x.bind(this)), f.on(b.a.MEDIA_SEGMENT, C.bind(this)), f.on(b.a.LOADING_COMPLETE, V.bind(this)), f.on(b.a.RECOVERED_EARLY_EOF, H.bind(this)), f.on(b.a.MEDIA_INFO, ue.bind(this)), f.on(b.a.METADATA_ARRIVED, se.bind(this)), f.on(b.a.SCRIPTDATA_ARRIVED, Y.bind(this)), f.on(b.a.TIMED_ID3_METADATA_ARRIVED, ae.bind(this)), f.on(b.a.SMPTE2038_METADATA_ARRIVED, y.bind(this)), f.on(b.a.SCTE35_METADATA_ARRIVED, G.bind(this)), f.on(b.a.PES_PRIVATE_DATA_DESCRIPTOR, T.bind(this)), f.on(b.a.PES_PRIVATE_DATA_ARRIVED, l.bind(this)), f.on(b.a.STATISTICS_INFO, u.bind(this)), f.on(b.a.RECOMMEND_SEEKPOINT, P.bind(this));
|
|
3689
|
+
break;
|
|
3690
|
+
case "destroy":
|
|
3691
|
+
f && (f.destroy(), f = null), v.postMessage({ msg: "destroyed" });
|
|
3692
|
+
break;
|
|
3693
|
+
case "start":
|
|
3694
|
+
f.start();
|
|
3695
|
+
break;
|
|
3696
|
+
case "stop":
|
|
3697
|
+
f.stop();
|
|
3698
|
+
break;
|
|
3699
|
+
case "seek":
|
|
3700
|
+
f.seek(D.data.param);
|
|
3701
|
+
break;
|
|
3702
|
+
case "pause":
|
|
3703
|
+
f.pause();
|
|
3704
|
+
break;
|
|
3705
|
+
case "resume":
|
|
3706
|
+
f.resume();
|
|
3707
|
+
break;
|
|
3708
|
+
case "logging_config":
|
|
3709
|
+
var F = D.data.param;
|
|
3710
|
+
U.a.applyConfig(F), F.enableCallback === !0 ? U.a.addLogListener(L) : U.a.removeLogListener(L);
|
|
3711
|
+
}
|
|
3712
|
+
});
|
|
3713
|
+
};
|
|
3714
|
+
}, function(fe, Z, O) {
|
|
3715
|
+
O.r(Z);
|
|
3716
|
+
var U = O(12), B = O(11), m = { enableWorker: !1, enableStashBuffer: !0, stashInitialSize: void 0, isLive: !1, liveBufferLatencyChasing: !1, liveBufferLatencyMaxLatency: 1.5, liveBufferLatencyMinRemain: 0.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 };
|
|
3717
|
+
function b() {
|
|
3718
|
+
return Object.assign({}, m);
|
|
3719
|
+
}
|
|
3720
|
+
var v = function() {
|
|
3721
|
+
function k() {
|
|
3722
|
+
}
|
|
3723
|
+
return k.supportMSEH264Playback = function() {
|
|
3724
|
+
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"');
|
|
3725
|
+
}, k.supportMSEH265Playback = function() {
|
|
3726
|
+
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"');
|
|
3727
|
+
}, k.supportNetworkStreamIO = function() {
|
|
3728
|
+
var d = new B.a({}, b()), h = d.loaderType;
|
|
3729
|
+
return d.destroy(), h == "fetch-stream-loader" || h == "xhr-moz-chunked-loader";
|
|
3730
|
+
}, k.getNetworkLoaderTypeName = function() {
|
|
3731
|
+
var d = new B.a({}, b()), h = d.loaderType;
|
|
3732
|
+
return d.destroy(), h;
|
|
3733
|
+
}, k.supportNativeMediaPlayback = function(d) {
|
|
3734
|
+
k.videoElement == null && (k.videoElement = window.document.createElement("video"));
|
|
3735
|
+
var h = k.videoElement.canPlayType(d);
|
|
3736
|
+
return h === "probably" || h == "maybe";
|
|
3737
|
+
}, k.getFeatureList = function() {
|
|
3738
|
+
var d = { msePlayback: !1, mseLivePlayback: !1, mseH265Playback: !1, networkStreamIO: !1, networkLoaderName: "", nativeMP4H264Playback: !1, nativeMP4H265Playback: !1, nativeWebmVP8Playback: !1, nativeWebmVP9Playback: !1 };
|
|
3739
|
+
return d.msePlayback = k.supportMSEH264Playback(), d.networkStreamIO = k.supportNetworkStreamIO(), d.networkLoaderName = k.getNetworkLoaderTypeName(), d.mseLivePlayback = d.msePlayback && d.networkStreamIO, d.mseH265Playback = k.supportMSEH265Playback(), d.nativeMP4H264Playback = k.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'), d.nativeMP4H265Playback = k.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'), d.nativeWebmVP8Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), d.nativeWebmVP9Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp9"'), d;
|
|
3740
|
+
}, k;
|
|
3741
|
+
}(), f = O(2), L = O(6), x = O.n(L), C = O(0), V = O(4), H = { 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" }, ue = O(13), se = O.n(ue), Y = O(9), ae = O(10), y = O(1), G = O(8), T = function() {
|
|
3742
|
+
function k(d, h) {
|
|
3743
|
+
if (this.TAG = "Transmuxer", this._emitter = new x.a(), h.enableWorker && typeof Worker < "u") try {
|
|
3744
|
+
this._worker = se()(18), this._workerDestroying = !1, this._worker.addEventListener("message", this._onWorkerMessage.bind(this)), this._worker.postMessage({ cmd: "init", param: [d, h] }), this.e = { onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this) }, Y.a.registerListener(this.e.onLoggingConfigChanged), this._worker.postMessage({ cmd: "logging_config", param: Y.a.getConfig() });
|
|
3745
|
+
} catch {
|
|
3746
|
+
C.a.e(this.TAG, "Error while initialize transmuxing worker, fallback to inline transmuxing"), this._worker = null, this._controller = new ae.a(d, h);
|
|
3747
|
+
}
|
|
3748
|
+
else this._controller = new ae.a(d, h);
|
|
3749
|
+
if (this._controller) {
|
|
3750
|
+
var R = this._controller;
|
|
3751
|
+
R.on(y.a.IO_ERROR, this._onIOError.bind(this)), R.on(y.a.DEMUX_ERROR, this._onDemuxError.bind(this)), R.on(y.a.INIT_SEGMENT, this._onInitSegment.bind(this)), R.on(y.a.MEDIA_SEGMENT, this._onMediaSegment.bind(this)), R.on(y.a.LOADING_COMPLETE, this._onLoadingComplete.bind(this)), R.on(y.a.RECOVERED_EARLY_EOF, this._onRecoveredEarlyEof.bind(this)), R.on(y.a.MEDIA_INFO, this._onMediaInfo.bind(this)), R.on(y.a.METADATA_ARRIVED, this._onMetaDataArrived.bind(this)), R.on(y.a.SCRIPTDATA_ARRIVED, this._onScriptDataArrived.bind(this)), R.on(y.a.TIMED_ID3_METADATA_ARRIVED, this._onTimedID3MetadataArrived.bind(this)), R.on(y.a.SMPTE2038_METADATA_ARRIVED, this._onSMPTE2038MetadataArrived.bind(this)), R.on(y.a.SCTE35_METADATA_ARRIVED, this._onSCTE35MetadataArrived.bind(this)), R.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, this._onPESPrivateDataDescriptor.bind(this)), R.on(y.a.PES_PRIVATE_DATA_ARRIVED, this._onPESPrivateDataArrived.bind(this)), R.on(y.a.STATISTICS_INFO, this._onStatisticsInfo.bind(this)), R.on(y.a.RECOMMEND_SEEKPOINT, this._onRecommendSeekpoint.bind(this));
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
return k.prototype.destroy = function() {
|
|
3755
|
+
this._worker ? this._workerDestroying || (this._workerDestroying = !0, this._worker.postMessage({ cmd: "destroy" }), Y.a.removeListener(this.e.onLoggingConfigChanged), this.e = null) : (this._controller.destroy(), this._controller = null), this._emitter.removeAllListeners(), this._emitter = null;
|
|
3756
|
+
}, k.prototype.on = function(d, h) {
|
|
3757
|
+
this._emitter.addListener(d, h);
|
|
3758
|
+
}, k.prototype.off = function(d, h) {
|
|
3759
|
+
this._emitter.removeListener(d, h);
|
|
3760
|
+
}, k.prototype.hasWorker = function() {
|
|
3761
|
+
return this._worker != null;
|
|
3762
|
+
}, k.prototype.open = function() {
|
|
3763
|
+
this._worker ? this._worker.postMessage({ cmd: "start" }) : this._controller.start();
|
|
3764
|
+
}, k.prototype.close = function() {
|
|
3765
|
+
this._worker ? this._worker.postMessage({ cmd: "stop" }) : this._controller.stop();
|
|
3766
|
+
}, k.prototype.seek = function(d) {
|
|
3767
|
+
this._worker ? this._worker.postMessage({ cmd: "seek", param: d }) : this._controller.seek(d);
|
|
3768
|
+
}, k.prototype.pause = function() {
|
|
3769
|
+
this._worker ? this._worker.postMessage({ cmd: "pause" }) : this._controller.pause();
|
|
3770
|
+
}, k.prototype.resume = function() {
|
|
3771
|
+
this._worker ? this._worker.postMessage({ cmd: "resume" }) : this._controller.resume();
|
|
3772
|
+
}, k.prototype._onInitSegment = function(d, h) {
|
|
3773
|
+
var R = this;
|
|
3774
|
+
Promise.resolve().then(function() {
|
|
3775
|
+
R._emitter.emit(y.a.INIT_SEGMENT, d, h);
|
|
3776
|
+
});
|
|
3777
|
+
}, k.prototype._onMediaSegment = function(d, h) {
|
|
3778
|
+
var R = this;
|
|
3779
|
+
Promise.resolve().then(function() {
|
|
3780
|
+
R._emitter.emit(y.a.MEDIA_SEGMENT, d, h);
|
|
3781
|
+
});
|
|
3782
|
+
}, k.prototype._onLoadingComplete = function() {
|
|
3783
|
+
var d = this;
|
|
3784
|
+
Promise.resolve().then(function() {
|
|
3785
|
+
d._emitter.emit(y.a.LOADING_COMPLETE);
|
|
3786
|
+
});
|
|
3787
|
+
}, k.prototype._onRecoveredEarlyEof = function() {
|
|
3788
|
+
var d = this;
|
|
3789
|
+
Promise.resolve().then(function() {
|
|
3790
|
+
d._emitter.emit(y.a.RECOVERED_EARLY_EOF);
|
|
3791
|
+
});
|
|
3792
|
+
}, k.prototype._onMediaInfo = function(d) {
|
|
3793
|
+
var h = this;
|
|
3794
|
+
Promise.resolve().then(function() {
|
|
3795
|
+
h._emitter.emit(y.a.MEDIA_INFO, d);
|
|
3796
|
+
});
|
|
3797
|
+
}, k.prototype._onMetaDataArrived = function(d) {
|
|
3798
|
+
var h = this;
|
|
3799
|
+
Promise.resolve().then(function() {
|
|
3800
|
+
h._emitter.emit(y.a.METADATA_ARRIVED, d);
|
|
3801
|
+
});
|
|
3802
|
+
}, k.prototype._onScriptDataArrived = function(d) {
|
|
3803
|
+
var h = this;
|
|
3804
|
+
Promise.resolve().then(function() {
|
|
3805
|
+
h._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
|
|
3806
|
+
});
|
|
3807
|
+
}, k.prototype._onTimedID3MetadataArrived = function(d) {
|
|
3808
|
+
var h = this;
|
|
3809
|
+
Promise.resolve().then(function() {
|
|
3810
|
+
h._emitter.emit(y.a.TIMED_ID3_METADATA_ARRIVED, d);
|
|
3811
|
+
});
|
|
3812
|
+
}, k.prototype._onSMPTE2038MetadataArrived = function(d) {
|
|
3813
|
+
var h = this;
|
|
3814
|
+
Promise.resolve().then(function() {
|
|
3815
|
+
h._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
|
|
3816
|
+
});
|
|
3817
|
+
}, k.prototype._onSCTE35MetadataArrived = function(d) {
|
|
3818
|
+
var h = this;
|
|
3819
|
+
Promise.resolve().then(function() {
|
|
3820
|
+
h._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
|
|
3821
|
+
});
|
|
3822
|
+
}, k.prototype._onPESPrivateDataDescriptor = function(d) {
|
|
3823
|
+
var h = this;
|
|
3824
|
+
Promise.resolve().then(function() {
|
|
3825
|
+
h._emitter.emit(y.a.PES_PRIVATE_DATA_DESCRIPTOR, d);
|
|
3826
|
+
});
|
|
3827
|
+
}, k.prototype._onPESPrivateDataArrived = function(d) {
|
|
3828
|
+
var h = this;
|
|
3829
|
+
Promise.resolve().then(function() {
|
|
3830
|
+
h._emitter.emit(y.a.PES_PRIVATE_DATA_ARRIVED, d);
|
|
3831
|
+
});
|
|
3832
|
+
}, k.prototype._onStatisticsInfo = function(d) {
|
|
3833
|
+
var h = this;
|
|
3834
|
+
Promise.resolve().then(function() {
|
|
3835
|
+
h._emitter.emit(y.a.STATISTICS_INFO, d);
|
|
3836
|
+
});
|
|
3837
|
+
}, k.prototype._onIOError = function(d, h) {
|
|
3838
|
+
var R = this;
|
|
3839
|
+
Promise.resolve().then(function() {
|
|
3840
|
+
R._emitter.emit(y.a.IO_ERROR, d, h);
|
|
3841
|
+
});
|
|
3842
|
+
}, k.prototype._onDemuxError = function(d, h) {
|
|
3843
|
+
var R = this;
|
|
3844
|
+
Promise.resolve().then(function() {
|
|
3845
|
+
R._emitter.emit(y.a.DEMUX_ERROR, d, h);
|
|
3846
|
+
});
|
|
3847
|
+
}, k.prototype._onRecommendSeekpoint = function(d) {
|
|
3848
|
+
var h = this;
|
|
3849
|
+
Promise.resolve().then(function() {
|
|
3850
|
+
h._emitter.emit(y.a.RECOMMEND_SEEKPOINT, d);
|
|
3851
|
+
});
|
|
3852
|
+
}, k.prototype._onLoggingConfigChanged = function(d) {
|
|
3853
|
+
this._worker && this._worker.postMessage({ cmd: "logging_config", param: d });
|
|
3854
|
+
}, k.prototype._onWorkerMessage = function(d) {
|
|
3855
|
+
var h = d.data, R = h.data;
|
|
3856
|
+
if (h.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
|
|
3857
|
+
switch (h.msg) {
|
|
3858
|
+
case y.a.INIT_SEGMENT:
|
|
3859
|
+
case y.a.MEDIA_SEGMENT:
|
|
3860
|
+
this._emitter.emit(h.msg, R.type, R.data);
|
|
3861
|
+
break;
|
|
3862
|
+
case y.a.LOADING_COMPLETE:
|
|
3863
|
+
case y.a.RECOVERED_EARLY_EOF:
|
|
3864
|
+
this._emitter.emit(h.msg);
|
|
3865
|
+
break;
|
|
3866
|
+
case y.a.MEDIA_INFO:
|
|
3867
|
+
Object.setPrototypeOf(R, G.a.prototype), this._emitter.emit(h.msg, R);
|
|
3868
|
+
break;
|
|
3869
|
+
case y.a.METADATA_ARRIVED:
|
|
3870
|
+
case y.a.SCRIPTDATA_ARRIVED:
|
|
3871
|
+
case y.a.TIMED_ID3_METADATA_ARRIVED:
|
|
3872
|
+
case y.a.SMPTE2038_METADATA_ARRIVED:
|
|
3873
|
+
case y.a.SCTE35_METADATA_ARRIVED:
|
|
3874
|
+
case y.a.PES_PRIVATE_DATA_DESCRIPTOR:
|
|
3875
|
+
case y.a.PES_PRIVATE_DATA_ARRIVED:
|
|
3876
|
+
case y.a.STATISTICS_INFO:
|
|
3877
|
+
this._emitter.emit(h.msg, R);
|
|
3878
|
+
break;
|
|
3879
|
+
case y.a.IO_ERROR:
|
|
3880
|
+
case y.a.DEMUX_ERROR:
|
|
3881
|
+
this._emitter.emit(h.msg, R.type, R.info);
|
|
3882
|
+
break;
|
|
3883
|
+
case y.a.RECOMMEND_SEEKPOINT:
|
|
3884
|
+
this._emitter.emit(h.msg, R);
|
|
3885
|
+
break;
|
|
3886
|
+
case "logcat_callback":
|
|
3887
|
+
C.a.emitter.emit("log", R.type, R.logcat);
|
|
3888
|
+
}
|
|
3889
|
+
}, k;
|
|
3890
|
+
}(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), c = function() {
|
|
3891
|
+
function k(d) {
|
|
3892
|
+
this.TAG = "MSEController", this._config = d, this._emitter = new x.a(), this._config.isLive && this._config.autoCleanupSourceBuffer == null && (this._config.autoCleanupSourceBuffer = !0), this.e = { onSourceOpen: this._onSourceOpen.bind(this), onSourceEnded: this._onSourceEnded.bind(this), onSourceClose: this._onSourceClose.bind(this), onSourceBufferError: this._onSourceBufferError.bind(this), onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this) }, this._mediaSource = null, this._mediaSourceObjectURL = null, this._mediaElement = null, this._isBufferFull = !1, this._hasPendingEos = !1, this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0, this._pendingSourceBufferInit = [], this._mimeTypes = { video: null, audio: null }, this._sourceBuffers = { video: null, audio: null }, this._lastInitSegments = { video: null, audio: null }, this._pendingSegments = { video: [], audio: [] }, this._pendingRemoveRanges = { video: [], audio: [] }, this._idrList = new u.a();
|
|
3893
|
+
}
|
|
3894
|
+
return k.prototype.destroy = function() {
|
|
3895
|
+
(this._mediaElement || this._mediaSource) && this.detachMediaElement(), this.e = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
3896
|
+
}, k.prototype.on = function(d, h) {
|
|
3897
|
+
this._emitter.addListener(d, h);
|
|
3898
|
+
}, k.prototype.off = function(d, h) {
|
|
3899
|
+
this._emitter.removeListener(d, h);
|
|
3900
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
3901
|
+
if (this._mediaSource) throw new _.a("MediaSource has been attached to an HTMLMediaElement!");
|
|
3902
|
+
var h = this._mediaSource = new window.MediaSource();
|
|
3903
|
+
h.addEventListener("sourceopen", this.e.onSourceOpen), h.addEventListener("sourceended", this.e.onSourceEnded), h.addEventListener("sourceclose", this.e.onSourceClose), this._mediaElement = d, this._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource), d.src = this._mediaSourceObjectURL;
|
|
3904
|
+
}, k.prototype.detachMediaElement = function() {
|
|
3905
|
+
if (this._mediaSource) {
|
|
3906
|
+
var d = this._mediaSource;
|
|
3907
|
+
for (var h in this._sourceBuffers) {
|
|
3908
|
+
var R = this._pendingSegments[h];
|
|
3909
|
+
R.splice(0, R.length), this._pendingSegments[h] = null, this._pendingRemoveRanges[h] = null, this._lastInitSegments[h] = null;
|
|
3910
|
+
var X = this._sourceBuffers[h];
|
|
3911
|
+
if (X) {
|
|
3912
|
+
if (d.readyState !== "closed") {
|
|
3913
|
+
try {
|
|
3914
|
+
d.removeSourceBuffer(X);
|
|
3915
|
+
} catch (oe) {
|
|
3916
|
+
C.a.e(this.TAG, oe.message);
|
|
3917
|
+
}
|
|
3918
|
+
X.removeEventListener("error", this.e.onSourceBufferError), X.removeEventListener("updateend", this.e.onSourceBufferUpdateEnd);
|
|
3919
|
+
}
|
|
3920
|
+
this._mimeTypes[h] = null, this._sourceBuffers[h] = null;
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3923
|
+
if (d.readyState === "open") try {
|
|
3924
|
+
d.endOfStream();
|
|
3925
|
+
} catch (oe) {
|
|
3926
|
+
C.a.e(this.TAG, oe.message);
|
|
3927
|
+
}
|
|
3928
|
+
d.removeEventListener("sourceopen", this.e.onSourceOpen), d.removeEventListener("sourceended", this.e.onSourceEnded), d.removeEventListener("sourceclose", this.e.onSourceClose), this._pendingSourceBufferInit = [], this._isBufferFull = !1, this._idrList.clear(), this._mediaSource = null;
|
|
3929
|
+
}
|
|
3930
|
+
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement = null), this._mediaSourceObjectURL && (window.URL.revokeObjectURL(this._mediaSourceObjectURL), this._mediaSourceObjectURL = null);
|
|
3931
|
+
}, k.prototype.appendInitSegment = function(d, h) {
|
|
3932
|
+
if (!this._mediaSource || this._mediaSource.readyState !== "open") return this._pendingSourceBufferInit.push(d), void this._pendingSegments[d.type].push(d);
|
|
3933
|
+
var R = d, X = "" + R.container;
|
|
3934
|
+
R.codec && R.codec.length > 0 && (X += ";codecs=" + R.codec);
|
|
3935
|
+
var oe = !1;
|
|
3936
|
+
if (C.a.v(this.TAG, "Received Initialization Segment, mimeType: " + X), this._lastInitSegments[R.type] = R, X !== this._mimeTypes[R.type]) {
|
|
3937
|
+
if (this._mimeTypes[R.type]) C.a.v(this.TAG, "Notice: " + R.type + " mimeType changed, origin: " + this._mimeTypes[R.type] + ", target: " + X);
|
|
3938
|
+
else {
|
|
3939
|
+
oe = !0;
|
|
3940
|
+
try {
|
|
3941
|
+
var me = this._sourceBuffers[R.type] = this._mediaSource.addSourceBuffer(X);
|
|
3942
|
+
me.addEventListener("error", this.e.onSourceBufferError), me.addEventListener("updateend", this.e.onSourceBufferUpdateEnd);
|
|
3943
|
+
} catch (Se) {
|
|
3944
|
+
return C.a.e(this.TAG, Se.message), void this._emitter.emit(l.ERROR, { code: Se.code, msg: Se.message });
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
this._mimeTypes[R.type] = X;
|
|
3948
|
+
}
|
|
3949
|
+
h || this._pendingSegments[R.type].push(R), oe || this._sourceBuffers[R.type] && !this._sourceBuffers[R.type].updating && this._doAppendSegments(), V.a.safari && R.container === "audio/mpeg" && R.mediaDuration > 0 && (this._requireSetMediaDuration = !0, this._pendingMediaDuration = R.mediaDuration / 1e3, this._updateMediaSourceDuration());
|
|
3950
|
+
}, k.prototype.appendMediaSegment = function(d) {
|
|
3951
|
+
var h = d;
|
|
3952
|
+
this._pendingSegments[h.type].push(h), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
|
|
3953
|
+
var R = this._sourceBuffers[h.type];
|
|
3954
|
+
!R || R.updating || this._hasPendingRemoveRanges() || this._doAppendSegments();
|
|
3955
|
+
}, k.prototype.seek = function(d) {
|
|
3956
|
+
for (var h in this._sourceBuffers) if (this._sourceBuffers[h]) {
|
|
3957
|
+
var R = this._sourceBuffers[h];
|
|
3958
|
+
if (this._mediaSource.readyState === "open") try {
|
|
3959
|
+
R.abort();
|
|
3960
|
+
} catch (Te) {
|
|
3961
|
+
C.a.e(this.TAG, Te.message);
|
|
3962
|
+
}
|
|
3963
|
+
this._idrList.clear();
|
|
3964
|
+
var X = this._pendingSegments[h];
|
|
3965
|
+
if (X.splice(0, X.length), this._mediaSource.readyState !== "closed") {
|
|
3966
|
+
for (var oe = 0; oe < R.buffered.length; oe++) {
|
|
3967
|
+
var me = R.buffered.start(oe), Se = R.buffered.end(oe);
|
|
3968
|
+
this._pendingRemoveRanges[h].push({ start: me, end: Se });
|
|
3969
|
+
}
|
|
3970
|
+
if (R.updating || this._doRemoveRanges(), V.a.safari) {
|
|
3971
|
+
var De = this._lastInitSegments[h];
|
|
3972
|
+
De && (this._pendingSegments[h].push(De), R.updating || this._doAppendSegments());
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
}, k.prototype.endOfStream = function() {
|
|
3977
|
+
var d = this._mediaSource, h = this._sourceBuffers;
|
|
3978
|
+
d && d.readyState === "open" ? h.video && h.video.updating || h.audio && h.audio.updating ? this._hasPendingEos = !0 : (this._hasPendingEos = !1, d.endOfStream()) : d && d.readyState === "closed" && this._hasPendingSegments() && (this._hasPendingEos = !0);
|
|
3979
|
+
}, k.prototype.getNearestKeyframe = function(d) {
|
|
3980
|
+
return this._idrList.getLastSyncPointBeforeDts(d);
|
|
3981
|
+
}, k.prototype._needCleanupSourceBuffer = function() {
|
|
3982
|
+
if (!this._config.autoCleanupSourceBuffer) return !1;
|
|
3983
|
+
var d = this._mediaElement.currentTime;
|
|
3984
|
+
for (var h in this._sourceBuffers) {
|
|
3985
|
+
var R = this._sourceBuffers[h];
|
|
3986
|
+
if (R) {
|
|
3987
|
+
var X = R.buffered;
|
|
3988
|
+
if (X.length >= 1 && d - X.start(0) >= this._config.autoCleanupMaxBackwardDuration) return !0;
|
|
3989
|
+
}
|
|
3990
|
+
}
|
|
3991
|
+
return !1;
|
|
3992
|
+
}, k.prototype._doCleanupSourceBuffer = function() {
|
|
3993
|
+
var d = this._mediaElement.currentTime;
|
|
3994
|
+
for (var h in this._sourceBuffers) {
|
|
3995
|
+
var R = this._sourceBuffers[h];
|
|
3996
|
+
if (R) {
|
|
3997
|
+
for (var X = R.buffered, oe = !1, me = 0; me < X.length; me++) {
|
|
3998
|
+
var Se = X.start(me), De = X.end(me);
|
|
3999
|
+
if (Se <= d && d < De + 3) {
|
|
4000
|
+
if (d - Se >= this._config.autoCleanupMaxBackwardDuration) {
|
|
4001
|
+
oe = !0;
|
|
4002
|
+
var Te = d - this._config.autoCleanupMinBackwardDuration;
|
|
4003
|
+
this._pendingRemoveRanges[h].push({ start: Se, end: Te });
|
|
4004
|
+
}
|
|
4005
|
+
} else De < d && (oe = !0, this._pendingRemoveRanges[h].push({ start: Se, end: De }));
|
|
4006
|
+
}
|
|
4007
|
+
oe && !R.updating && this._doRemoveRanges();
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
}, k.prototype._updateMediaSourceDuration = function() {
|
|
4011
|
+
var d = this._sourceBuffers;
|
|
4012
|
+
if (this._mediaElement.readyState !== 0 && this._mediaSource.readyState === "open" && !(d.video && d.video.updating || d.audio && d.audio.updating)) {
|
|
4013
|
+
var h = this._mediaSource.duration, R = this._pendingMediaDuration;
|
|
4014
|
+
R > 0 && (isNaN(h) || R > h) && (C.a.v(this.TAG, "Update MediaSource duration from " + h + " to " + R), this._mediaSource.duration = R), this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0;
|
|
4015
|
+
}
|
|
4016
|
+
}, k.prototype._doRemoveRanges = function() {
|
|
4017
|
+
for (var d in this._pendingRemoveRanges) if (this._sourceBuffers[d] && !this._sourceBuffers[d].updating) for (var h = this._sourceBuffers[d], R = this._pendingRemoveRanges[d]; R.length && !h.updating; ) {
|
|
4018
|
+
var X = R.shift();
|
|
4019
|
+
h.remove(X.start, X.end);
|
|
4020
|
+
}
|
|
4021
|
+
}, k.prototype._doAppendSegments = function() {
|
|
4022
|
+
var d = this._pendingSegments;
|
|
4023
|
+
for (var h in d) if (this._sourceBuffers[h] && !this._sourceBuffers[h].updating && d[h].length > 0) {
|
|
4024
|
+
var R = d[h].shift();
|
|
4025
|
+
if (R.timestampOffset) {
|
|
4026
|
+
var X = this._sourceBuffers[h].timestampOffset, oe = R.timestampOffset / 1e3;
|
|
4027
|
+
Math.abs(X - oe) > 0.1 && (C.a.v(this.TAG, "Update MPEG audio timestampOffset from " + X + " to " + oe), this._sourceBuffers[h].timestampOffset = oe), delete R.timestampOffset;
|
|
4028
|
+
}
|
|
4029
|
+
if (!R.data || R.data.byteLength === 0) continue;
|
|
4030
|
+
try {
|
|
4031
|
+
this._sourceBuffers[h].appendBuffer(R.data), this._isBufferFull = !1, h === "video" && R.hasOwnProperty("info") && this._idrList.appendArray(R.info.syncPoints);
|
|
4032
|
+
} catch (me) {
|
|
4033
|
+
this._pendingSegments[h].unshift(R), me.code === 22 ? (this._isBufferFull || this._emitter.emit(l.BUFFER_FULL), this._isBufferFull = !0) : (C.a.e(this.TAG, me.message), this._emitter.emit(l.ERROR, { code: me.code, msg: me.message }));
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
}, k.prototype._onSourceOpen = function() {
|
|
4037
|
+
if (C.a.v(this.TAG, "MediaSource onSourceOpen"), this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._pendingSourceBufferInit.length > 0) for (var d = this._pendingSourceBufferInit; d.length; ) {
|
|
4038
|
+
var h = d.shift();
|
|
4039
|
+
this.appendInitSegment(h, !0);
|
|
4040
|
+
}
|
|
4041
|
+
this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(l.SOURCE_OPEN);
|
|
4042
|
+
}, k.prototype._onSourceEnded = function() {
|
|
4043
|
+
C.a.v(this.TAG, "MediaSource onSourceEnded");
|
|
4044
|
+
}, k.prototype._onSourceClose = function() {
|
|
4045
|
+
C.a.v(this.TAG, "MediaSource onSourceClose"), this._mediaSource && this.e != null && (this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._mediaSource.removeEventListener("sourceended", this.e.onSourceEnded), this._mediaSource.removeEventListener("sourceclose", this.e.onSourceClose));
|
|
4046
|
+
}, k.prototype._hasPendingSegments = function() {
|
|
4047
|
+
var d = this._pendingSegments;
|
|
4048
|
+
return d.video.length > 0 || d.audio.length > 0;
|
|
4049
|
+
}, k.prototype._hasPendingRemoveRanges = function() {
|
|
4050
|
+
var d = this._pendingRemoveRanges;
|
|
4051
|
+
return d.video.length > 0 || d.audio.length > 0;
|
|
4052
|
+
}, k.prototype._onSourceBufferUpdateEnd = function() {
|
|
4053
|
+
this._requireSetMediaDuration ? this._updateMediaSourceDuration() : this._hasPendingRemoveRanges() ? this._doRemoveRanges() : this._hasPendingSegments() ? this._doAppendSegments() : this._hasPendingEos && this.endOfStream(), this._emitter.emit(l.UPDATE_END);
|
|
4054
|
+
}, k.prototype._onSourceBufferError = function(d) {
|
|
4055
|
+
C.a.e(this.TAG, "SourceBuffer Error: " + d);
|
|
4056
|
+
}, k;
|
|
4057
|
+
}(), P = O(5), D = { NETWORK_ERROR: "NetworkError", MEDIA_ERROR: "MediaError", OTHER_ERROR: "OtherError" }, F = { NETWORK_EXCEPTION: f.b.EXCEPTION, NETWORK_STATUS_CODE_INVALID: f.b.HTTP_STATUS_CODE_INVALID, NETWORK_TIMEOUT: f.b.CONNECTING_TIMEOUT, NETWORK_UNRECOVERABLE_EARLY_EOF: f.b.UNRECOVERABLE_EARLY_EOF, MEDIA_MSE_ERROR: "MediaMSEError", MEDIA_FORMAT_ERROR: P.a.FORMAT_ERROR, MEDIA_FORMAT_UNSUPPORTED: P.a.FORMAT_UNSUPPORTED, MEDIA_CODEC_UNSUPPORTED: P.a.CODEC_UNSUPPORTED }, ee = function() {
|
|
4058
|
+
function k(d, h) {
|
|
4059
|
+
this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new x.a(), this._config = b(), typeof h == "object" && Object.assign(this._config, h);
|
|
4060
|
+
var R = d.type.toLowerCase();
|
|
4061
|
+
if (R !== "mse" && R !== "mpegts" && R !== "m2ts" && R !== "flv") throw new _.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");
|
|
4062
|
+
d.isLive === !0 && (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 = d, this._mediaElement = null, this._msectl = null, this._transmuxer = null, this._mseSourceOpened = !1, this._hasPendingLoad = !1, this._receivedCanPlay = !1, this._mediaInfo = null, this._statisticsInfo = null;
|
|
4063
|
+
var X = V.a.chrome && (V.a.version.major < 50 || V.a.version.major === 50 && V.a.version.build < 2661);
|
|
4064
|
+
this._alwaysSeekKeyframe = !!(X || V.a.msedge || V.a.msie), this._alwaysSeekKeyframe && (this._config.accurateSeek = !1);
|
|
4065
|
+
}
|
|
4066
|
+
return k.prototype.destroy = function() {
|
|
4067
|
+
this._progressChecker != null && (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;
|
|
4068
|
+
}, k.prototype.on = function(d, h) {
|
|
4069
|
+
var R = this;
|
|
4070
|
+
d === H.MEDIA_INFO ? this._mediaInfo != null && Promise.resolve().then(function() {
|
|
4071
|
+
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4072
|
+
}) : d === H.STATISTICS_INFO && this._statisticsInfo != null && Promise.resolve().then(function() {
|
|
4073
|
+
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4074
|
+
}), this._emitter.addListener(d, h);
|
|
4075
|
+
}, k.prototype.off = function(d, h) {
|
|
4076
|
+
this._emitter.removeListener(d, h);
|
|
4077
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
4078
|
+
var h = this;
|
|
4079
|
+
if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), d.addEventListener("seeking", this.e.onvSeeking), d.addEventListener("canplay", this.e.onvCanPlay), d.addEventListener("stalled", this.e.onvStalled), d.addEventListener("progress", this.e.onvProgress), this._msectl = new c(this._config), this._msectl.on(l.UPDATE_END, this._onmseUpdateEnd.bind(this)), this._msectl.on(l.BUFFER_FULL, this._onmseBufferFull.bind(this)), this._msectl.on(l.SOURCE_OPEN, function() {
|
|
4080
|
+
h._mseSourceOpened = !0, h._hasPendingLoad && (h._hasPendingLoad = !1, h.load());
|
|
4081
|
+
}), this._msectl.on(l.ERROR, function(R) {
|
|
4082
|
+
h._emitter.emit(H.ERROR, D.MEDIA_ERROR, F.MEDIA_MSE_ERROR, R);
|
|
4083
|
+
}), this._msectl.attachMediaElement(d), this._pendingSeekTime != null) try {
|
|
4084
|
+
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4085
|
+
} catch {
|
|
4086
|
+
}
|
|
4087
|
+
}, k.prototype.detachMediaElement = function() {
|
|
4088
|
+
this._mediaElement && (this._msectl.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);
|
|
4089
|
+
}, k.prototype.load = function() {
|
|
4090
|
+
var d = this;
|
|
4091
|
+
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4092
|
+
if (this._transmuxer) throw new _.a("MSEPlayer.load() has been called, please call unload() first!");
|
|
4093
|
+
this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === !1 ? this._hasPendingLoad = !0 : (this._mediaElement.readyState > 0 && (this._requestSetTime = !0, this._mediaElement.currentTime = 0), this._transmuxer = new T(this._mediaDataSource, this._config), this._transmuxer.on(y.a.INIT_SEGMENT, function(h, R) {
|
|
4094
|
+
d._msectl.appendInitSegment(R);
|
|
4095
|
+
}), this._transmuxer.on(y.a.MEDIA_SEGMENT, function(h, R) {
|
|
4096
|
+
if (d._msectl.appendMediaSegment(R), d._config.lazyLoad && !d._config.isLive) {
|
|
4097
|
+
var X = d._mediaElement.currentTime;
|
|
4098
|
+
R.info.endDts >= 1e3 * (X + d._config.lazyLoadMaxDuration) && d._progressChecker == null && (C.a.v(d.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), d._suspendTransmuxer());
|
|
4099
|
+
}
|
|
4100
|
+
}), this._transmuxer.on(y.a.LOADING_COMPLETE, function() {
|
|
4101
|
+
d._msectl.endOfStream(), d._emitter.emit(H.LOADING_COMPLETE);
|
|
4102
|
+
}), this._transmuxer.on(y.a.RECOVERED_EARLY_EOF, function() {
|
|
4103
|
+
d._emitter.emit(H.RECOVERED_EARLY_EOF);
|
|
4104
|
+
}), this._transmuxer.on(y.a.IO_ERROR, function(h, R) {
|
|
4105
|
+
d._emitter.emit(H.ERROR, D.NETWORK_ERROR, h, R);
|
|
4106
|
+
}), this._transmuxer.on(y.a.DEMUX_ERROR, function(h, R) {
|
|
4107
|
+
d._emitter.emit(H.ERROR, D.MEDIA_ERROR, h, { code: -1, msg: R });
|
|
4108
|
+
}), this._transmuxer.on(y.a.MEDIA_INFO, function(h) {
|
|
4109
|
+
d._mediaInfo = h, d._emitter.emit(H.MEDIA_INFO, Object.assign({}, h));
|
|
4110
|
+
}), this._transmuxer.on(y.a.METADATA_ARRIVED, function(h) {
|
|
4111
|
+
d._emitter.emit(H.METADATA_ARRIVED, h);
|
|
4112
|
+
}), this._transmuxer.on(y.a.SCRIPTDATA_ARRIVED, function(h) {
|
|
4113
|
+
d._emitter.emit(H.SCRIPTDATA_ARRIVED, h);
|
|
4114
|
+
}), this._transmuxer.on(y.a.TIMED_ID3_METADATA_ARRIVED, function(h) {
|
|
4115
|
+
d._emitter.emit(H.TIMED_ID3_METADATA_ARRIVED, h);
|
|
4116
|
+
}), this._transmuxer.on(y.a.SMPTE2038_METADATA_ARRIVED, function(h) {
|
|
4117
|
+
d._emitter.emit(H.SMPTE2038_METADATA_ARRIVED, h);
|
|
4118
|
+
}), this._transmuxer.on(y.a.SCTE35_METADATA_ARRIVED, function(h) {
|
|
4119
|
+
d._emitter.emit(H.SCTE35_METADATA_ARRIVED, h);
|
|
4120
|
+
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, function(h) {
|
|
4121
|
+
d._emitter.emit(H.PES_PRIVATE_DATA_DESCRIPTOR, h);
|
|
4122
|
+
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_ARRIVED, function(h) {
|
|
4123
|
+
d._emitter.emit(H.PES_PRIVATE_DATA_ARRIVED, h);
|
|
4124
|
+
}), this._transmuxer.on(y.a.STATISTICS_INFO, function(h) {
|
|
4125
|
+
d._statisticsInfo = d._fillStatisticsInfo(h), d._emitter.emit(H.STATISTICS_INFO, Object.assign({}, d._statisticsInfo));
|
|
4126
|
+
}), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(h) {
|
|
4127
|
+
d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime = h / 1e3);
|
|
4128
|
+
}), this._transmuxer.open()));
|
|
4129
|
+
}, k.prototype.unload = function() {
|
|
4130
|
+
this._mediaElement && this._mediaElement.pause(), this._msectl && this._msectl.seek(0), this._transmuxer && (this._transmuxer.close(), this._transmuxer.destroy(), this._transmuxer = null);
|
|
4131
|
+
}, k.prototype.play = function() {
|
|
4132
|
+
return this._mediaElement.play();
|
|
4133
|
+
}, k.prototype.pause = function() {
|
|
4134
|
+
this._mediaElement.pause();
|
|
4135
|
+
}, Object.defineProperty(k.prototype, "type", { get: function() {
|
|
4136
|
+
return this._type;
|
|
4137
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
|
|
4138
|
+
return this._mediaElement.buffered;
|
|
4139
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
|
|
4140
|
+
return this._mediaElement.duration;
|
|
4141
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
|
|
4142
|
+
return this._mediaElement.volume;
|
|
4143
|
+
}, set: function(d) {
|
|
4144
|
+
this._mediaElement.volume = d;
|
|
4145
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
|
|
4146
|
+
return this._mediaElement.muted;
|
|
4147
|
+
}, set: function(d) {
|
|
4148
|
+
this._mediaElement.muted = d;
|
|
4149
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
|
|
4150
|
+
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4151
|
+
}, set: function(d) {
|
|
4152
|
+
this._mediaElement ? this._internalSeek(d) : this._pendingSeekTime = d;
|
|
4153
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
|
|
4154
|
+
return Object.assign({}, this._mediaInfo);
|
|
4155
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
|
|
4156
|
+
return this._statisticsInfo == null && (this._statisticsInfo = {}), this._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo), Object.assign({}, this._statisticsInfo);
|
|
4157
|
+
}, enumerable: !1, configurable: !0 }), k.prototype._fillStatisticsInfo = function(d) {
|
|
4158
|
+
if (d.playerType = this._type, !(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4159
|
+
var h = !0, R = 0, X = 0;
|
|
4160
|
+
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
4161
|
+
var oe = this._mediaElement.getVideoPlaybackQuality();
|
|
4162
|
+
R = oe.totalVideoFrames, X = oe.droppedVideoFrames;
|
|
4163
|
+
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, X = this._mediaElement.webkitDroppedFrameCount) : h = !1;
|
|
4164
|
+
return h && (d.decodedFrames = R, d.droppedFrames = X), d;
|
|
4165
|
+
}, k.prototype._onmseUpdateEnd = function() {
|
|
4166
|
+
var d = this._mediaElement.buffered, h = this._mediaElement.currentTime;
|
|
4167
|
+
if (this._config.isLive && this._config.liveBufferLatencyChasing && d.length > 0 && !this._mediaElement.paused) {
|
|
4168
|
+
var R = d.end(d.length - 1);
|
|
4169
|
+
if (R > this._config.liveBufferLatencyMaxLatency && R - h > this._config.liveBufferLatencyMaxLatency) {
|
|
4170
|
+
var X = R - this._config.liveBufferLatencyMinRemain;
|
|
4171
|
+
this.currentTime = X;
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
if (this._config.lazyLoad && !this._config.isLive) {
|
|
4175
|
+
for (var oe = 0, me = 0; me < d.length; me++) {
|
|
4176
|
+
var Se = d.start(me), De = d.end(me);
|
|
4177
|
+
if (Se <= h && h < De) {
|
|
4178
|
+
oe = De;
|
|
4179
|
+
break;
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
oe >= h + this._config.lazyLoadMaxDuration && this._progressChecker == null && (C.a.v(this.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), this._suspendTransmuxer());
|
|
4183
|
+
}
|
|
4184
|
+
}, k.prototype._onmseBufferFull = function() {
|
|
4185
|
+
C.a.v(this.TAG, "MSE SourceBuffer is full, suspend transmuxing task"), this._progressChecker == null && this._suspendTransmuxer();
|
|
4186
|
+
}, k.prototype._suspendTransmuxer = function() {
|
|
4187
|
+
this._transmuxer && (this._transmuxer.pause(), this._progressChecker == null && (this._progressChecker = window.setInterval(this._checkProgressAndResume.bind(this), 1e3)));
|
|
4188
|
+
}, k.prototype._checkProgressAndResume = function() {
|
|
4189
|
+
for (var d = this._mediaElement.currentTime, h = this._mediaElement.buffered, R = !1, X = 0; X < h.length; X++) {
|
|
4190
|
+
var oe = h.start(X), me = h.end(X);
|
|
4191
|
+
if (d >= oe && d < me) {
|
|
4192
|
+
d >= me - this._config.lazyLoadRecoverDuration && (R = !0);
|
|
4193
|
+
break;
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
R && (window.clearInterval(this._progressChecker), this._progressChecker = null, R && (C.a.v(this.TAG, "Continue loading from paused position"), this._transmuxer.resume()));
|
|
4197
|
+
}, k.prototype._isTimepointBuffered = function(d) {
|
|
4198
|
+
for (var h = this._mediaElement.buffered, R = 0; R < h.length; R++) {
|
|
4199
|
+
var X = h.start(R), oe = h.end(R);
|
|
4200
|
+
if (d >= X && d < oe) return !0;
|
|
4201
|
+
}
|
|
4202
|
+
return !1;
|
|
4203
|
+
}, k.prototype._internalSeek = function(d) {
|
|
4204
|
+
var h = this._isTimepointBuffered(d), R = !1, X = 0;
|
|
4205
|
+
if (d < 1 && this._mediaElement.buffered.length > 0) {
|
|
4206
|
+
var oe = this._mediaElement.buffered.start(0);
|
|
4207
|
+
(oe < 1 && d < oe || V.a.safari) && (R = !0, X = V.a.safari ? 0.1 : oe);
|
|
4208
|
+
}
|
|
4209
|
+
if (R) this._requestSetTime = !0, this._mediaElement.currentTime = X;
|
|
4210
|
+
else if (h) {
|
|
4211
|
+
if (this._alwaysSeekKeyframe) {
|
|
4212
|
+
var me = this._msectl.getNearestKeyframe(Math.floor(1e3 * d));
|
|
4213
|
+
this._requestSetTime = !0, this._mediaElement.currentTime = me != null ? me.dts / 1e3 : d;
|
|
4214
|
+
} else this._requestSetTime = !0, this._mediaElement.currentTime = d;
|
|
4215
|
+
this._progressChecker != null && this._checkProgressAndResume();
|
|
4216
|
+
} else this._progressChecker != null && (window.clearInterval(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d);
|
|
4217
|
+
}, k.prototype._checkAndApplyUnbufferedSeekpoint = function() {
|
|
4218
|
+
if (this._seekpointRecord) if (this._seekpointRecord.recordTime <= this._now() - 100) {
|
|
4219
|
+
var d = this._mediaElement.currentTime;
|
|
4220
|
+
this._seekpointRecord = null, this._isTimepointBuffered(d) || (this._progressChecker != null && (window.clearTimeout(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d));
|
|
4221
|
+
} else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4222
|
+
}, k.prototype._checkAndResumeStuckPlayback = function(d) {
|
|
4223
|
+
var h = this._mediaElement;
|
|
4224
|
+
if (d || !this._receivedCanPlay || h.readyState < 2) {
|
|
4225
|
+
var R = h.buffered;
|
|
4226
|
+
R.length > 0 && h.currentTime < R.start(0) && (C.a.w(this.TAG, "Playback seems stuck at " + h.currentTime + ", seek to " + R.start(0)), this._requestSetTime = !0, this._mediaElement.currentTime = R.start(0), this._mediaElement.removeEventListener("progress", this.e.onvProgress));
|
|
4227
|
+
} else this._mediaElement.removeEventListener("progress", this.e.onvProgress);
|
|
4228
|
+
}, k.prototype._onvLoadedMetadata = function(d) {
|
|
4229
|
+
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null);
|
|
4230
|
+
}, k.prototype._onvSeeking = function(d) {
|
|
4231
|
+
var h = this._mediaElement.currentTime, R = this._mediaElement.buffered;
|
|
4232
|
+
if (this._requestSetTime) this._requestSetTime = !1;
|
|
4233
|
+
else {
|
|
4234
|
+
if (h < 1 && R.length > 0) {
|
|
4235
|
+
var X = R.start(0);
|
|
4236
|
+
if (X < 1 && h < X || V.a.safari) return this._requestSetTime = !0, void (this._mediaElement.currentTime = V.a.safari ? 0.1 : X);
|
|
4237
|
+
}
|
|
4238
|
+
if (this._isTimepointBuffered(h)) {
|
|
4239
|
+
if (this._alwaysSeekKeyframe) {
|
|
4240
|
+
var oe = this._msectl.getNearestKeyframe(Math.floor(1e3 * h));
|
|
4241
|
+
oe != null && (this._requestSetTime = !0, this._mediaElement.currentTime = oe.dts / 1e3);
|
|
4242
|
+
}
|
|
4243
|
+
this._progressChecker != null && this._checkProgressAndResume();
|
|
4244
|
+
} else this._seekpointRecord = { seekPoint: h, recordTime: this._now() }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4245
|
+
}
|
|
4246
|
+
}, k.prototype._onvCanPlay = function(d) {
|
|
4247
|
+
this._receivedCanPlay = !0, this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay);
|
|
4248
|
+
}, k.prototype._onvStalled = function(d) {
|
|
4249
|
+
this._checkAndResumeStuckPlayback(!0);
|
|
4250
|
+
}, k.prototype._onvProgress = function(d) {
|
|
4251
|
+
this._checkAndResumeStuckPlayback();
|
|
4252
|
+
}, k;
|
|
4253
|
+
}(), pe = function() {
|
|
4254
|
+
function k(d, h) {
|
|
4255
|
+
this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new x.a(), this._config = b(), typeof h == "object" && Object.assign(this._config, h);
|
|
4256
|
+
var R = d.type.toLowerCase();
|
|
4257
|
+
if (R === "mse" || R === "mpegts" || R === "m2ts" || R === "flv") throw new _.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");
|
|
4258
|
+
if (d.hasOwnProperty("segments")) throw new _.b("NativePlayer(" + d.type + ") doesn't support multipart playback!");
|
|
4259
|
+
this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this) }, this._pendingSeekTime = null, this._statisticsReporter = null, this._mediaDataSource = d, this._mediaElement = null;
|
|
4260
|
+
}
|
|
4261
|
+
return k.prototype.destroy = function() {
|
|
4262
|
+
this._mediaElement && (this.unload(), this.detachMediaElement()), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
4263
|
+
}, k.prototype.on = function(d, h) {
|
|
4264
|
+
var R = this;
|
|
4265
|
+
d === H.MEDIA_INFO ? this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4266
|
+
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4267
|
+
}) : d === H.STATISTICS_INFO && this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4268
|
+
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4269
|
+
}), this._emitter.addListener(d, h);
|
|
4270
|
+
}, k.prototype.off = function(d, h) {
|
|
4271
|
+
this._emitter.removeListener(d, h);
|
|
4272
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
4273
|
+
if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._pendingSeekTime != null) try {
|
|
4274
|
+
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4275
|
+
} catch {
|
|
4276
|
+
}
|
|
4277
|
+
}, k.prototype.detachMediaElement = function() {
|
|
4278
|
+
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement.removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement = null), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
4279
|
+
}, k.prototype.load = function() {
|
|
4280
|
+
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4281
|
+
this._mediaElement.src = this._mediaDataSource.url, this._mediaElement.readyState > 0 && (this._mediaElement.currentTime = 0), this._mediaElement.preload = "auto", this._mediaElement.load(), this._statisticsReporter = window.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval);
|
|
4282
|
+
}, k.prototype.unload = function() {
|
|
4283
|
+
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src")), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
4284
|
+
}, k.prototype.play = function() {
|
|
4285
|
+
return this._mediaElement.play();
|
|
4286
|
+
}, k.prototype.pause = function() {
|
|
4287
|
+
this._mediaElement.pause();
|
|
4288
|
+
}, Object.defineProperty(k.prototype, "type", { get: function() {
|
|
4289
|
+
return this._type;
|
|
4290
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
|
|
4291
|
+
return this._mediaElement.buffered;
|
|
4292
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
|
|
4293
|
+
return this._mediaElement.duration;
|
|
4294
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
|
|
4295
|
+
return this._mediaElement.volume;
|
|
4296
|
+
}, set: function(d) {
|
|
4297
|
+
this._mediaElement.volume = d;
|
|
4298
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
|
|
4299
|
+
return this._mediaElement.muted;
|
|
4300
|
+
}, set: function(d) {
|
|
4301
|
+
this._mediaElement.muted = d;
|
|
4302
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
|
|
4303
|
+
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4304
|
+
}, set: function(d) {
|
|
4305
|
+
this._mediaElement ? this._mediaElement.currentTime = d : this._pendingSeekTime = d;
|
|
4306
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
|
|
4307
|
+
var d = { mimeType: (this._mediaElement instanceof HTMLAudioElement ? "audio/" : "video/") + this._mediaDataSource.type };
|
|
4308
|
+
return this._mediaElement && (d.duration = Math.floor(1e3 * this._mediaElement.duration), this._mediaElement instanceof HTMLVideoElement && (d.width = this._mediaElement.videoWidth, d.height = this._mediaElement.videoHeight)), d;
|
|
4309
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
|
|
4310
|
+
var d = { playerType: this._type, url: this._mediaDataSource.url };
|
|
4311
|
+
if (!(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4312
|
+
var h = !0, R = 0, X = 0;
|
|
4313
|
+
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
4314
|
+
var oe = this._mediaElement.getVideoPlaybackQuality();
|
|
4315
|
+
R = oe.totalVideoFrames, X = oe.droppedVideoFrames;
|
|
4316
|
+
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, X = this._mediaElement.webkitDroppedFrameCount) : h = !1;
|
|
4317
|
+
return h && (d.decodedFrames = R, d.droppedFrames = X), d;
|
|
4318
|
+
}, enumerable: !1, configurable: !0 }), k.prototype._onvLoadedMetadata = function(d) {
|
|
4319
|
+
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(H.MEDIA_INFO, this.mediaInfo);
|
|
4320
|
+
}, k.prototype._reportStatisticsInfo = function() {
|
|
4321
|
+
this._emitter.emit(H.STATISTICS_INFO, this.statisticsInfo);
|
|
4322
|
+
}, k;
|
|
4323
|
+
}();
|
|
4324
|
+
U.a.install();
|
|
4325
|
+
var ve = { createPlayer: function(k, d) {
|
|
4326
|
+
var h = k;
|
|
4327
|
+
if (h == null || typeof h != "object") throw new _.b("MediaDataSource must be an javascript object!");
|
|
4328
|
+
if (!h.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
|
|
4329
|
+
switch (h.type) {
|
|
4330
|
+
case "mse":
|
|
4331
|
+
case "mpegts":
|
|
4332
|
+
case "m2ts":
|
|
4333
|
+
case "flv":
|
|
4334
|
+
return new ee(h, d);
|
|
4335
|
+
default:
|
|
4336
|
+
return new pe(h, d);
|
|
4337
|
+
}
|
|
4338
|
+
}, isSupported: function() {
|
|
4339
|
+
return v.supportMSEH264Playback();
|
|
4340
|
+
}, getFeatureList: function() {
|
|
4341
|
+
return v.getFeatureList();
|
|
4342
|
+
} };
|
|
4343
|
+
ve.BaseLoader = f.a, ve.LoaderStatus = f.c, ve.LoaderErrors = f.b, ve.Events = H, ve.ErrorTypes = D, ve.ErrorDetails = F, ve.MSEPlayer = ee, ve.NativePlayer = pe, ve.LoggingControl = Y.a, Object.defineProperty(ve, "version", { enumerable: !0, get: function() {
|
|
4344
|
+
return "1.7.3";
|
|
4345
|
+
} }), Z.default = ve;
|
|
4346
|
+
}]);
|
|
4347
|
+
});
|
|
4348
|
+
})(Tt);
|
|
4349
|
+
var ui = Tt.exports;
|
|
4350
|
+
const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loading-spinner", "element-loading-background"], _i = /* @__PURE__ */ Yt({
|
|
4351
|
+
__name: "das-live-player",
|
|
4352
|
+
props: {
|
|
4353
|
+
src: {},
|
|
4354
|
+
type: {},
|
|
4355
|
+
config: {},
|
|
4356
|
+
fit: {},
|
|
4357
|
+
loading: { type: Boolean },
|
|
4358
|
+
loadingText: {},
|
|
4359
|
+
error: { type: Boolean },
|
|
4360
|
+
errorText: {},
|
|
4361
|
+
retryTime: {}
|
|
4362
|
+
},
|
|
4363
|
+
emits: ["loaded", "errorClick"],
|
|
4364
|
+
setup(Ie, { expose: Ye, emit: fe }) {
|
|
4365
|
+
Jt((l) => ({
|
|
4366
|
+
dc851078: G.value
|
|
4367
|
+
}));
|
|
4368
|
+
const Z = Ie, O = fe;
|
|
4369
|
+
let U;
|
|
4370
|
+
const {
|
|
4371
|
+
fit: B,
|
|
4372
|
+
loadingText: m = At("加载中"),
|
|
4373
|
+
loading: b = !1,
|
|
4374
|
+
error: v = !1,
|
|
4375
|
+
errorText: f = At("das-ui-live-player-videoLoadFailedRetry")
|
|
4376
|
+
} = Zt(Z), L = ot(() => Z.src || ""), x = ot(() => {
|
|
4377
|
+
const l = L.value.split(".").pop() || void 0;
|
|
4378
|
+
return Z.type ?? l ?? "flv";
|
|
4379
|
+
}), C = ot(() => Z.config || {}), V = Xe(Z.retryTime || 0), H = Xe(null), ue = async () => {
|
|
4380
|
+
if (!H.value) return;
|
|
4381
|
+
const l = {
|
|
4382
|
+
type: x.value,
|
|
4383
|
+
isLive: !0,
|
|
4384
|
+
url: L.value
|
|
4385
|
+
};
|
|
4386
|
+
U = Rt.createPlayer(l, C.value), U.attachMediaElement(H.value), U.load(), U.play(), U.on(Rt.Events.ERROR, se), O("loaded", U);
|
|
4387
|
+
}, se = (l, u) => {
|
|
4388
|
+
Y();
|
|
4389
|
+
}, Y = () => {
|
|
4390
|
+
V.value !== 0 && (V.value = V.value - 1, ae(), ue());
|
|
4391
|
+
}, ae = () => {
|
|
4392
|
+
U && (U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4393
|
+
};
|
|
4394
|
+
$t(() => {
|
|
4395
|
+
ue();
|
|
4396
|
+
}), Qt(() => {
|
|
4397
|
+
ae();
|
|
4398
|
+
}), Ye({
|
|
4399
|
+
video: H
|
|
4400
|
+
});
|
|
4401
|
+
const y = Xe("el-icon-loading"), G = Xe("rgba(0, 0, 0, 0.8)"), T = () => {
|
|
4402
|
+
ue(), O("errorClick");
|
|
4403
|
+
};
|
|
4404
|
+
return (l, u) => {
|
|
4405
|
+
const _ = si;
|
|
4406
|
+
return ei((ut(), dt("div", {
|
|
4407
|
+
class: "das-live-player",
|
|
4408
|
+
"element-loading-text": We(m),
|
|
4409
|
+
"element-loading-spinner": y.value,
|
|
4410
|
+
"element-loading-background": G.value
|
|
4411
|
+
}, [
|
|
4412
|
+
We(v) ? (ut(), dt("div", {
|
|
4413
|
+
key: 1,
|
|
4414
|
+
class: "error",
|
|
4415
|
+
onClick: T
|
|
4416
|
+
}, [
|
|
4417
|
+
ii(l.$slots, "error", {}, () => [
|
|
4418
|
+
ri(
|
|
4419
|
+
ai(We(f)),
|
|
4420
|
+
1
|
|
4421
|
+
/* TEXT */
|
|
4422
|
+
)
|
|
4423
|
+
], !0)
|
|
4424
|
+
])) : (ut(), dt(
|
|
4425
|
+
"video",
|
|
4426
|
+
{
|
|
4427
|
+
key: 0,
|
|
4428
|
+
ref_key: "video",
|
|
4429
|
+
ref: H,
|
|
4430
|
+
class: "video",
|
|
4431
|
+
style: ti({ "object-fit": We(B) }),
|
|
4432
|
+
muted: ""
|
|
4433
|
+
},
|
|
4434
|
+
null,
|
|
4435
|
+
4
|
|
4436
|
+
/* STYLE */
|
|
4437
|
+
))
|
|
4438
|
+
], 8, li)), [
|
|
4439
|
+
[_, We(b)]
|
|
4440
|
+
]);
|
|
4441
|
+
};
|
|
4442
|
+
}
|
|
4443
|
+
}), hi = (Ie, Ye) => {
|
|
4444
|
+
const fe = Ie.__vccOpts || Ie;
|
|
4445
|
+
for (const [Z, O] of Ye)
|
|
4446
|
+
fe[Z] = O;
|
|
4447
|
+
return fe;
|
|
4448
|
+
}, ci = /* @__PURE__ */ hi(_i, [["__scopeId", "data-v-1d62a43a"]]), fi = {
|
|
4449
|
+
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
4450
|
+
"das-ui-live-player-videoLoadFailedRetry": {
|
|
4451
|
+
"zh-CN": "视频加载失败,请点击重试",
|
|
4452
|
+
en: "The video failed to be loaded. please click to try again",
|
|
4453
|
+
_appCode: "framework"
|
|
4454
|
+
}
|
|
4455
|
+
};
|
|
4456
|
+
oi(fi);
|
|
4457
|
+
const Si = ni(ci), Ei = () => Xe(null);
|
|
4458
|
+
export {
|
|
4459
|
+
Si as DasLivePlayer,
|
|
4460
|
+
Ei as getDasLivePlayerRef
|
|
4461
|
+
};
|