{"version":3,"sources":["jsdelivr-header.js","/npm/@epiclabs/epic-video-player@0.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,eAAY,EACpB,IAAI,QAAU,QAAQ,SAClB,cAAgB,QAAQ,iBACxB,aAAe,QAAQ,gBACvB,gBAAkB,QAAQ,mBAK9B,SAAS,UAAU,EAAK,EAAW,GAC/B,GAAI,GAAU,EAAO,KACjB,MAAoB,yBAAhB,EAAO,KACA,IAAI,cAAc,WAAW,EAAK,EAAW,GAE/B,0BAAhB,EAAO,KACL,IAAI,aAAa,UAAU,EAAK,EAAW,GAG3C,IAAI,gBAAgB,aAAa,EAAK,EAAW,GAI5D,IACI,EADW,EAAI,UAAU,EAAI,YAAY,KAAO,GAC3B,MAAM,KAAK,MACpC,MAAkB,SAAd,EACO,IAAI,aAAa,UAAU,EAAK,EAAW,GAE/B,QAAd,EACE,IAAI,cAAc,WAAW,EAAK,EAAW,GAG7C,IAAI,gBAAgB,aAAa,EAAK,EAAW,EAGpE,CA7BA,QAAQ,aAAa,QAAQ,YAAa,SAC1C,QAAQ,aAAa,QAAQ,YAAa,SAC1C,QAAQ,aAAa,QAAQ,gBAAiB,SAC9C,QAAQ,aAAa,QAAQ,iBAAkB,SA2B/C,QAAQ,UAAY","file":"/npm/@epiclabs/epic-video-player@0.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@epiclabs/epic-video-player@0.1.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.newPlayer = void 0;\nvar tslib_1 = require(\"tslib\");\nvar player_dash_1 = require(\"./player-dash\");\nvar player_hls_1 = require(\"./player-hls\");\nvar player_native_1 = require(\"./player-native\");\ntslib_1.__exportStar(require(\"./models\"), exports);\ntslib_1.__exportStar(require(\"./player\"), exports);\ntslib_1.__exportStar(require(\"./player-hls\"), exports);\ntslib_1.__exportStar(require(\"./player-dash\"), exports);\nfunction newPlayer(url, htmlVideo, config) {\n    if (config && config.type) {\n        if (config.type === 'application/dash+xml') {\n            return new player_dash_1.PlayerDash(url, htmlVideo, config);\n        }\n        else if (config.type === 'application/x-mpegURL') {\n            return new player_hls_1.PlayerHls(url, htmlVideo, config);\n        }\n        else {\n            return new player_native_1.PlayerNative(url, htmlVideo, config);\n        }\n    }\n    else {\n        var filename = url.substring(url.lastIndexOf('/') + 1);\n        var extension = filename.split('.').pop();\n        if (extension === 'm3u8') {\n            return new player_hls_1.PlayerHls(url, htmlVideo, config);\n        }\n        else if (extension === 'mpd') {\n            return new player_dash_1.PlayerDash(url, htmlVideo, config);\n        }\n        else {\n            return new player_native_1.PlayerNative(url, htmlVideo, config);\n        }\n    }\n}\nexports.newPlayer = newPlayer;\n"]}