video.min.js 484 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531
  1. /**
  2. * @license
  3. * Video.js 5.18.4 <http://videojs.com/>
  4. * Copyright Brightcove, Inc. <https://www.brightcove.com/>
  5. * Available under Apache License Version 2.0
  6. * <https://github.com/videojs/video.js/blob/master/LICENSE>
  7. *
  8. * Includes vtt.js <https://github.com/mozilla/vtt.js>
  9. * Available under Apache License Version 2.0
  10. * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
  11. */
  12. ! function(a) {
  13. if ("object" == typeof exports && "undefined" != typeof module) module.exports = a();
  14. else if ("function" == typeof define && define.amd) define([], a);
  15. else {
  16. var b;
  17. b = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, b.videojs = a()
  18. }
  19. }(function() {
  20. var a;
  21. return function b(a, c, d) {
  22. function e(g, h) {
  23. if (!c[g]) {
  24. if (!a[g]) {
  25. var i = "function" == typeof require && require;
  26. if (!h && i) return i(g, !0);
  27. if (f) return f(g, !0);
  28. var j = new Error("Cannot find module '" + g + "'");
  29. throw j.code = "MODULE_NOT_FOUND", j
  30. }
  31. var k = c[g] = {
  32. exports: {}
  33. };
  34. a[g][0].call(k.exports, function(b) {
  35. var c = a[g][1][b];
  36. return e(c ? c : b)
  37. }, k, k.exports, b, a, c, d)
  38. }
  39. return c[g].exports
  40. }
  41. for (var f = "function" == typeof require && require, g = 0; g < d.length; g++) e(d[g]);
  42. return e
  43. }({
  44. 1: [
  45. function(a, b, c) {
  46. "use strict";
  47. function d(a) {
  48. return a && a.__esModule ? a : {
  49. "default": a
  50. }
  51. }
  52. function e(a, b) {
  53. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  54. }
  55. function f(a, b) {
  56. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  57. return !b || "object" != typeof b && "function" != typeof b ? a : b
  58. }
  59. function g(a, b) {
  60. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  61. a.prototype = Object.create(b && b.prototype, {
  62. constructor: {
  63. value: a,
  64. enumerable: !1,
  65. writable: !0,
  66. configurable: !0
  67. }
  68. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  69. }
  70. c.__esModule = !0;
  71. var h = a(2),
  72. i = d(h),
  73. j = a(5),
  74. k = d(j),
  75. l = function(a) {
  76. function b() {
  77. return e(this, b), f(this, a.apply(this, arguments))
  78. }
  79. return g(b, a), b.prototype.buildCSSClass = function() {
  80. return "vjs-big-play-button"
  81. }, b.prototype.handleClick = function(a) {
  82. this.player_.play();
  83. var b = this.player_.getChild("controlBar"),
  84. c = b && b.getChild("playToggle");
  85. if (!c) return void this.player_.focus();
  86. this.setTimeout(function() {
  87. c.focus()
  88. }, 1)
  89. }, b
  90. }(i["default"]);
  91. l.prototype.controlText_ = "Play Video", k["default"].registerComponent("BigPlayButton", l), c["default"] = l
  92. }, {
  93. 2: 2,
  94. 5: 5
  95. }
  96. ],
  97. 2: [
  98. function(a, b, c) {
  99. "use strict";
  100. function d(a) {
  101. return a && a.__esModule ? a : {
  102. "default": a
  103. }
  104. }
  105. function e(a, b) {
  106. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  107. }
  108. function f(a, b) {
  109. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  110. return !b || "object" != typeof b && "function" != typeof b ? a : b
  111. }
  112. function g(a, b) {
  113. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  114. a.prototype = Object.create(b && b.prototype, {
  115. constructor: {
  116. value: a,
  117. enumerable: !1,
  118. writable: !0,
  119. configurable: !0
  120. }
  121. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  122. }
  123. c.__esModule = !0;
  124. var h = a(3),
  125. i = d(h),
  126. j = a(5),
  127. k = d(j),
  128. l = a(86),
  129. m = d(l),
  130. n = a(88),
  131. o = function(a) {
  132. function b() {
  133. return e(this, b), f(this, a.apply(this, arguments))
  134. }
  135. return g(b, a), b.prototype.createEl = function() {
  136. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "button",
  137. b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  138. c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  139. b = (0, n.assign)({
  140. className: this.buildCSSClass()
  141. }, b), "button" !== a && (m["default"].warn("Creating a Button with an HTML element of " + a + " is deprecated; use ClickableComponent instead."), b = (0, n.assign)({
  142. tabIndex: 0
  143. }, b), c = (0, n.assign)({
  144. role: "button"
  145. }, c)), c = (0, n.assign)({
  146. type: "button",
  147. "aria-live": "polite"
  148. }, c);
  149. var d = k["default"].prototype.createEl.call(this, a, b, c);
  150. return this.createControlTextEl(d), d
  151. }, b.prototype.addChild = function(a) {
  152. var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  153. c = this.constructor.name;
  154. return m["default"].warn("Adding an actionable (user controllable) child to a Button (" + c + ") is not supported; use a ClickableComponent instead."), k["default"].prototype.addChild.call(this, a, b)
  155. }, b.prototype.enable = function() {
  156. a.prototype.enable.call(this), this.el_.removeAttribute("disabled")
  157. }, b.prototype.disable = function() {
  158. a.prototype.disable.call(this), this.el_.setAttribute("disabled", "disabled")
  159. }, b.prototype.handleKeyPress = function(b) {
  160. 32 !== b.which && 13 !== b.which && a.prototype.handleKeyPress.call(this, b)
  161. }, b
  162. }(i["default"]);
  163. k["default"].registerComponent("Button", o), c["default"] = o
  164. }, {
  165. 3: 3,
  166. 5: 5,
  167. 86: 86,
  168. 88: 88
  169. }
  170. ],
  171. 3: [
  172. function(a, b, c) {
  173. "use strict";
  174. function d(a) {
  175. if (a && a.__esModule) return a;
  176. var b = {};
  177. if (null != a)
  178. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  179. return b["default"] = a, b
  180. }
  181. function e(a) {
  182. return a && a.__esModule ? a : {
  183. "default": a
  184. }
  185. }
  186. function f(a, b) {
  187. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  188. }
  189. function g(a, b) {
  190. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  191. return !b || "object" != typeof b && "function" != typeof b ? a : b
  192. }
  193. function h(a, b) {
  194. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  195. a.prototype = Object.create(b && b.prototype, {
  196. constructor: {
  197. value: a,
  198. enumerable: !1,
  199. writable: !0,
  200. configurable: !0
  201. }
  202. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  203. }
  204. c.__esModule = !0;
  205. var i = a(5),
  206. j = e(i),
  207. k = a(81),
  208. l = d(k),
  209. m = a(82),
  210. n = d(m),
  211. o = a(83),
  212. p = d(o),
  213. q = a(86),
  214. r = e(q),
  215. s = a(94),
  216. t = e(s),
  217. u = a(88),
  218. v = function(a) {
  219. function b(c, d) {
  220. f(this, b);
  221. var e = g(this, a.call(this, c, d));
  222. return e.emitTapEvents(), e.enable(), e
  223. }
  224. return h(b, a), b.prototype.createEl = function() {
  225. var b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div",
  226. c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  227. d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  228. c = (0, u.assign)({
  229. className: this.buildCSSClass(),
  230. tabIndex: 0
  231. }, c), "button" === b && r["default"].error("Creating a ClickableComponent with an HTML element of " + b + " is not supported; use a Button instead."), d = (0, u.assign)({
  232. role: "button",
  233. "aria-live": "polite"
  234. }, d), this.tabIndex_ = c.tabIndex;
  235. var e = a.prototype.createEl.call(this, b, c, d);
  236. return this.createControlTextEl(e), e
  237. }, b.prototype.createControlTextEl = function(a) {
  238. return this.controlTextEl_ = l.createEl("span", {
  239. className: "vjs-control-text"
  240. }), a && a.appendChild(this.controlTextEl_), this.controlText(this.controlText_, a), this.controlTextEl_
  241. }, b.prototype.controlText = function(a) {
  242. var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this.el();
  243. if (!a) return this.controlText_ || "Need Text";
  244. var c = this.localize(a);
  245. return this.controlText_ = a, this.controlTextEl_.innerHTML = c, this.nonIconControl || b.setAttribute("title", c), this
  246. }, b.prototype.buildCSSClass = function() {
  247. return "vjs-control vjs-button " + a.prototype.buildCSSClass.call(this)
  248. }, b.prototype.enable = function() {
  249. return this.removeClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "false"), "undefined" != typeof this.tabIndex_ && this.el_.setAttribute("tabIndex", this.tabIndex_), this.on("tap", this.handleClick), this.on("click", this.handleClick), this.on("focus", this.handleFocus), this.on("blur", this.handleBlur), this
  250. }, b.prototype.disable = function() {
  251. return this.addClass("vjs-disabled"), this.el_.setAttribute("aria-disabled", "true"), "undefined" != typeof this.tabIndex_ && this.el_.removeAttribute("tabIndex"), this.off("tap", this.handleClick), this.off("click", this.handleClick), this.off("focus", this.handleFocus), this.off("blur", this.handleBlur), this
  252. }, b.prototype.handleClick = function(a) {}, b.prototype.handleFocus = function(a) {
  253. n.on(t["default"], "keydown", p.bind(this, this.handleKeyPress))
  254. }, b.prototype.handleKeyPress = function(b) {
  255. 32 === b.which || 13 === b.which ? (b.preventDefault(), this.handleClick(b)) : a.prototype.handleKeyPress && a.prototype.handleKeyPress.call(this, b)
  256. }, b.prototype.handleBlur = function(a) {
  257. n.off(t["default"], "keydown", p.bind(this, this.handleKeyPress))
  258. }, b
  259. }(j["default"]);
  260. j["default"].registerComponent("ClickableComponent", v), c["default"] = v
  261. }, {
  262. 5: 5,
  263. 81: 81,
  264. 82: 82,
  265. 83: 83,
  266. 86: 86,
  267. 88: 88,
  268. 94: 94
  269. }
  270. ],
  271. 4: [
  272. function(a, b, c) {
  273. "use strict";
  274. function d(a) {
  275. return a && a.__esModule ? a : {
  276. "default": a
  277. }
  278. }
  279. function e(a, b) {
  280. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  281. }
  282. function f(a, b) {
  283. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  284. return !b || "object" != typeof b && "function" != typeof b ? a : b
  285. }
  286. function g(a, b) {
  287. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  288. a.prototype = Object.create(b && b.prototype, {
  289. constructor: {
  290. value: a,
  291. enumerable: !1,
  292. writable: !0,
  293. configurable: !0
  294. }
  295. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  296. }
  297. c.__esModule = !0;
  298. var h = a(2),
  299. i = d(h),
  300. j = a(5),
  301. k = d(j),
  302. l = function(a) {
  303. function b(c, d) {
  304. e(this, b);
  305. var g = f(this, a.call(this, c, d));
  306. return g.controlText(d && d.controlText || g.localize("Close")), g
  307. }
  308. return g(b, a), b.prototype.buildCSSClass = function() {
  309. return "vjs-close-button " + a.prototype.buildCSSClass.call(this)
  310. }, b.prototype.handleClick = function(a) {
  311. this.trigger({
  312. type: "close",
  313. bubbles: !1
  314. })
  315. }, b
  316. }(i["default"]);
  317. k["default"].registerComponent("CloseButton", l), c["default"] = l
  318. }, {
  319. 2: 2,
  320. 5: 5
  321. }
  322. ],
  323. 5: [
  324. function(a, b, c) {
  325. "use strict";
  326. function d(a) {
  327. if (a && a.__esModule) return a;
  328. var b = {};
  329. if (null != a)
  330. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  331. return b["default"] = a, b
  332. }
  333. function e(a) {
  334. return a && a.__esModule ? a : {
  335. "default": a
  336. }
  337. }
  338. function f(a, b) {
  339. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  340. }
  341. c.__esModule = !0;
  342. var g = a(95),
  343. h = e(g),
  344. i = a(81),
  345. j = d(i),
  346. k = a(83),
  347. l = d(k),
  348. m = a(85),
  349. n = d(m),
  350. o = a(82),
  351. p = d(o),
  352. q = a(86),
  353. r = e(q),
  354. s = a(91),
  355. t = e(s),
  356. u = a(87),
  357. v = e(u),
  358. w = function() {
  359. function a(b, c, d) {
  360. if (f(this, a), !b && this.play ? this.player_ = b = this : this.player_ = b, this.options_ = (0, v["default"])({}, this.options_), c = this.options_ = (0, v["default"])(this.options_, c), this.id_ = c.id || c.el && c.el.id, !this.id_) {
  361. var e = b && b.id && b.id() || "no_player";
  362. this.id_ = e + "_component_" + n.newGUID()
  363. }
  364. this.name_ = c.name || null, c.el ? this.el_ = c.el : c.createEl !== !1 && (this.el_ = this.createEl()), this.children_ = [], this.childIndex_ = {}, this.childNameIndex_ = {}, c.initChildren !== !1 && this.initChildren(), this.ready(d), c.reportTouchActivity !== !1 && this.enableTouchActivity()
  365. }
  366. return a.prototype.dispose = function() {
  367. if (this.trigger({
  368. type: "dispose",
  369. bubbles: !1
  370. }), this.children_)
  371. for (var a = this.children_.length - 1; a >= 0; a--) this.children_[a].dispose && this.children_[a].dispose();
  372. this.children_ = null, this.childIndex_ = null, this.childNameIndex_ = null, this.off(), this.el_.parentNode && this.el_.parentNode.removeChild(this.el_), j.removeElData(this.el_), this.el_ = null
  373. }, a.prototype.player = function() {
  374. return this.player_
  375. }, a.prototype.options = function(a) {
  376. return r["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"), a ? (this.options_ = (0, v["default"])(this.options_, a), this.options_) : this.options_
  377. }, a.prototype.el = function() {
  378. return this.el_
  379. }, a.prototype.createEl = function(a, b, c) {
  380. return j.createEl(a, b, c)
  381. }, a.prototype.localize = function(a) {
  382. var b = this.player_.language && this.player_.language(),
  383. c = this.player_.languages && this.player_.languages();
  384. if (!b || !c) return a;
  385. var d = c[b];
  386. if (d && d[a]) return d[a];
  387. var e = b.split("-")[0],
  388. f = c[e];
  389. return f && f[a] ? f[a] : a
  390. }, a.prototype.contentEl = function() {
  391. return this.contentEl_ || this.el_
  392. }, a.prototype.id = function() {
  393. return this.id_
  394. }, a.prototype.name = function() {
  395. return this.name_
  396. }, a.prototype.children = function() {
  397. return this.children_
  398. }, a.prototype.getChildById = function(a) {
  399. return this.childIndex_[a]
  400. }, a.prototype.getChild = function(a) {
  401. if (a) return a = (0, t["default"])(a), this.childNameIndex_[a]
  402. }, a.prototype.addChild = function(b) {
  403. var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  404. d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.children_.length,
  405. e = void 0,
  406. f = void 0;
  407. if ("string" == typeof b) {
  408. f = (0, t["default"])(b), c || (c = {}), c === !0 && (r["default"].warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."), c = {});
  409. var g = c.componentClass || f;
  410. c.name = f;
  411. var h = a.getComponent(g);
  412. if (!h) throw new Error("Component " + g + " does not exist");
  413. if ("function" != typeof h) return null;
  414. e = new h(this.player_ || this, c)
  415. } else e = b; if (this.children_.splice(d, 0, e), "function" == typeof e.id && (this.childIndex_[e.id()] = e), f = f || e.name && (0, t["default"])(e.name()), f && (this.childNameIndex_[f] = e), "function" == typeof e.el && e.el()) {
  416. var i = this.contentEl().children,
  417. j = i[d] || null;
  418. this.contentEl().insertBefore(e.el(), j)
  419. }
  420. return e
  421. }, a.prototype.removeChild = function(a) {
  422. if ("string" == typeof a && (a = this.getChild(a)), a && this.children_) {
  423. for (var b = !1, c = this.children_.length - 1; c >= 0; c--)
  424. if (this.children_[c] === a) {
  425. b = !0, this.children_.splice(c, 1);
  426. break
  427. }
  428. if (b) {
  429. this.childIndex_[a.id()] = null, this.childNameIndex_[a.name()] = null;
  430. var d = a.el();
  431. d && d.parentNode === this.contentEl() && this.contentEl().removeChild(a.el())
  432. }
  433. }
  434. }, a.prototype.initChildren = function() {
  435. var b = this,
  436. c = this.options_.children;
  437. if (c) {
  438. var d = this.options_,
  439. e = function(a) {
  440. var c = a.name,
  441. e = a.opts;
  442. if (void 0 !== d[c] && (e = d[c]), e !== !1) {
  443. e === !0 && (e = {}), e.playerOptions = b.options_.playerOptions;
  444. var f = b.addChild(c, e);
  445. f && (b[c] = f)
  446. }
  447. },
  448. f = void 0,
  449. g = a.getComponent("Tech");
  450. f = Array.isArray(c) ? c : Object.keys(c), f.concat(Object.keys(this.options_).filter(function(a) {
  451. return !f.some(function(b) {
  452. return "string" == typeof b ? a === b : a === b.name
  453. })
  454. })).map(function(a) {
  455. var d = void 0,
  456. e = void 0;
  457. return "string" == typeof a ? (d = a, e = c[d] || b.options_[d] || {}) : (d = a.name, e = a), {
  458. name: d,
  459. opts: e
  460. }
  461. }).filter(function(b) {
  462. var c = a.getComponent(b.opts.componentClass || (0, t["default"])(b.name));
  463. return c && !g.isTech(c)
  464. }).forEach(e)
  465. }
  466. }, a.prototype.buildCSSClass = function() {
  467. return ""
  468. }, a.prototype.on = function(a, b, c) {
  469. var d = this;
  470. if ("string" == typeof a || Array.isArray(a)) p.on(this.el_, a, l.bind(this, b));
  471. else {
  472. var e = a,
  473. f = b,
  474. g = l.bind(this, c),
  475. h = function() {
  476. return d.off(e, f, g)
  477. };
  478. h.guid = g.guid, this.on("dispose", h);
  479. var i = function() {
  480. return d.off("dispose", h)
  481. };
  482. i.guid = g.guid, a.nodeName ? (p.on(e, f, g), p.on(e, "dispose", i)) : "function" == typeof a.on && (e.on(f, g), e.on("dispose", i))
  483. }
  484. return this
  485. }, a.prototype.off = function(a, b, c) {
  486. if (!a || "string" == typeof a || Array.isArray(a)) p.off(this.el_, a, b);
  487. else {
  488. var d = a,
  489. e = b,
  490. f = l.bind(this, c);
  491. this.off("dispose", f), a.nodeName ? (p.off(d, e, f), p.off(d, "dispose", f)) : (d.off(e, f), d.off("dispose", f))
  492. }
  493. return this
  494. }, a.prototype.one = function(a, b, c) {
  495. var d = this,
  496. e = arguments;
  497. if ("string" == typeof a || Array.isArray(a)) p.one(this.el_, a, l.bind(this, b));
  498. else {
  499. var f = a,
  500. g = b,
  501. h = l.bind(this, c),
  502. i = function j() {
  503. d.off(f, g, j), h.apply(null, e)
  504. };
  505. i.guid = h.guid, this.on(f, g, i)
  506. }
  507. return this
  508. }, a.prototype.trigger = function(a, b) {
  509. return p.trigger(this.el_, a, b), this
  510. }, a.prototype.ready = function(a) {
  511. var b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
  512. return a && (this.isReady_ ? b ? a.call(this) : this.setTimeout(a, 1) : (this.readyQueue_ = this.readyQueue_ || [], this.readyQueue_.push(a))), this
  513. }, a.prototype.triggerReady = function() {
  514. this.isReady_ = !0, this.setTimeout(function() {
  515. var a = this.readyQueue_;
  516. this.readyQueue_ = [], a && a.length > 0 && a.forEach(function(a) {
  517. a.call(this)
  518. }, this), this.trigger("ready")
  519. }, 1)
  520. }, a.prototype.$ = function(a, b) {
  521. return j.$(a, b || this.contentEl())
  522. }, a.prototype.$$ = function(a, b) {
  523. return j.$$(a, b || this.contentEl())
  524. }, a.prototype.hasClass = function(a) {
  525. return j.hasElClass(this.el_, a)
  526. }, a.prototype.addClass = function(a) {
  527. return j.addElClass(this.el_, a), this
  528. }, a.prototype.removeClass = function(a) {
  529. return j.removeElClass(this.el_, a), this
  530. }, a.prototype.toggleClass = function(a, b) {
  531. return j.toggleElClass(this.el_, a, b), this
  532. }, a.prototype.show = function() {
  533. return this.removeClass("vjs-hidden"), this
  534. }, a.prototype.hide = function() {
  535. return this.addClass("vjs-hidden"), this
  536. }, a.prototype.lockShowing = function() {
  537. return this.addClass("vjs-lock-showing"), this
  538. }, a.prototype.unlockShowing = function() {
  539. return this.removeClass("vjs-lock-showing"), this
  540. }, a.prototype.getAttribute = function(a) {
  541. return j.getAttribute(this.el_, a)
  542. }, a.prototype.setAttribute = function(a, b) {
  543. return j.setAttribute(this.el_, a, b), this
  544. }, a.prototype.removeAttribute = function(a) {
  545. return j.removeAttribute(this.el_, a), this
  546. }, a.prototype.width = function(a, b) {
  547. return this.dimension("width", a, b)
  548. }, a.prototype.height = function(a, b) {
  549. return this.dimension("height", a, b)
  550. }, a.prototype.dimensions = function(a, b) {
  551. return this.width(a, !0).height(b)
  552. }, a.prototype.dimension = function(a, b, c) {
  553. if (void 0 !== b) return null !== b && b === b || (b = 0), ("" + b).indexOf("%") !== -1 || ("" + b).indexOf("px") !== -1 ? this.el_.style[a] = b : this.el_.style[a] = "auto" === b ? "" : b + "px", c || this.trigger("resize"), this;
  554. if (!this.el_) return 0;
  555. var d = this.el_.style[a],
  556. e = d.indexOf("px");
  557. return e !== -1 ? parseInt(d.slice(0, e), 10) : parseInt(this.el_["offset" + (0, t["default"])(a)], 10)
  558. }, a.prototype.currentDimension = function(a) {
  559. var b = 0;
  560. if ("width" !== a && "height" !== a) throw new Error("currentDimension only accepts width or height value");
  561. if ("function" == typeof h["default"].getComputedStyle) {
  562. var c = h["default"].getComputedStyle(this.el_);
  563. b = c.getPropertyValue(a) || c[a]
  564. }
  565. if (b = parseFloat(b), 0 === b) {
  566. var d = "offset" + (0, t["default"])(a);
  567. b = this.el_[d]
  568. }
  569. return b
  570. }, a.prototype.currentDimensions = function() {
  571. return {
  572. width: this.currentDimension("width"),
  573. height: this.currentDimension("height")
  574. }
  575. }, a.prototype.currentWidth = function() {
  576. return this.currentDimension("width")
  577. }, a.prototype.currentHeight = function() {
  578. return this.currentDimension("height")
  579. }, a.prototype.focus = function() {
  580. this.el_.focus()
  581. }, a.prototype.blur = function() {
  582. this.el_.blur()
  583. }, a.prototype.emitTapEvents = function() {
  584. var a = 0,
  585. b = null,
  586. c = void 0;
  587. this.on("touchstart", function(d) {
  588. 1 === d.touches.length && (b = {
  589. pageX: d.touches[0].pageX,
  590. pageY: d.touches[0].pageY
  591. }, a = (new Date).getTime(), c = !0)
  592. }), this.on("touchmove", function(a) {
  593. if (a.touches.length > 1) c = !1;
  594. else if (b) {
  595. var d = a.touches[0].pageX - b.pageX,
  596. e = a.touches[0].pageY - b.pageY,
  597. f = Math.sqrt(d * d + e * e);
  598. f > 10 && (c = !1)
  599. }
  600. });
  601. var d = function() {
  602. c = !1
  603. };
  604. this.on("touchleave", d), this.on("touchcancel", d), this.on("touchend", function(d) {
  605. if (b = null, c === !0) {
  606. (new Date).getTime() - a < 200 && (d.preventDefault(), this.trigger("tap"))
  607. }
  608. })
  609. }, a.prototype.enableTouchActivity = function() {
  610. if (this.player() && this.player().reportUserActivity) {
  611. var a = l.bind(this.player(), this.player().reportUserActivity),
  612. b = void 0;
  613. this.on("touchstart", function() {
  614. a(), this.clearInterval(b), b = this.setInterval(a, 250)
  615. });
  616. var c = function(c) {
  617. a(), this.clearInterval(b)
  618. };
  619. this.on("touchmove", a), this.on("touchend", c), this.on("touchcancel", c)
  620. }
  621. }, a.prototype.setTimeout = function(a, b) {
  622. a = l.bind(this, a);
  623. var c = h["default"].setTimeout(a, b),
  624. d = function() {
  625. this.clearTimeout(c)
  626. };
  627. return d.guid = "vjs-timeout-" + c, this.on("dispose", d), c
  628. }, a.prototype.clearTimeout = function(a) {
  629. h["default"].clearTimeout(a);
  630. var b = function() {};
  631. return b.guid = "vjs-timeout-" + a, this.off("dispose", b), a
  632. }, a.prototype.setInterval = function(a, b) {
  633. a = l.bind(this, a);
  634. var c = h["default"].setInterval(a, b),
  635. d = function() {
  636. this.clearInterval(c)
  637. };
  638. return d.guid = "vjs-interval-" + c, this.on("dispose", d), c
  639. }, a.prototype.clearInterval = function(a) {
  640. h["default"].clearInterval(a);
  641. var b = function() {};
  642. return b.guid = "vjs-interval-" + a, this.off("dispose", b), a
  643. }, a.registerComponent = function(b, c) {
  644. if (b) {
  645. if (b = (0, t["default"])(b), a.components_ || (a.components_ = {}), "Player" === b && a.components_[b]) {
  646. var d = a.components_[b];
  647. if (d.players && Object.keys(d.players).length > 0 && Object.keys(d.players).map(function(a) {
  648. return d.players[a]
  649. }).every(Boolean)) throw new Error("Can not register Player component after player has been created")
  650. }
  651. return a.components_[b] = c, c
  652. }
  653. }, a.getComponent = function(b) {
  654. if (b) return b = (0, t["default"])(b), a.components_ && a.components_[b] ? a.components_[b] : h["default"] && h["default"].videojs && h["default"].videojs[b] ? (r["default"].warn("The " + b + " component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"), h["default"].videojs[b]) : void 0
  655. }, a.extend = function(b) {
  656. b = b || {}, r["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");
  657. var c = b.init || b.init || this.prototype.init || this.prototype.init || function() {},
  658. d = function() {
  659. c.apply(this, arguments)
  660. };
  661. d.prototype = Object.create(this.prototype), d.prototype.constructor = d, d.extend = a.extend;
  662. for (var e in b) b.hasOwnProperty(e) && (d.prototype[e] = b[e]);
  663. return d
  664. }, a
  665. }();
  666. w.registerComponent("Component", w), c["default"] = w
  667. }, {
  668. 81: 81,
  669. 82: 82,
  670. 83: 83,
  671. 85: 85,
  672. 86: 86,
  673. 87: 87,
  674. 91: 91,
  675. 95: 95
  676. }
  677. ],
  678. 6: [
  679. function(a, b, c) {
  680. "use strict";
  681. function d(a) {
  682. return a && a.__esModule ? a : {
  683. "default": a
  684. }
  685. }
  686. function e(a, b) {
  687. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  688. }
  689. function f(a, b) {
  690. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  691. return !b || "object" != typeof b && "function" != typeof b ? a : b
  692. }
  693. function g(a, b) {
  694. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  695. a.prototype = Object.create(b && b.prototype, {
  696. constructor: {
  697. value: a,
  698. enumerable: !1,
  699. writable: !0,
  700. configurable: !0
  701. }
  702. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  703. }
  704. c.__esModule = !0;
  705. var h = a(36),
  706. i = d(h),
  707. j = a(5),
  708. k = d(j),
  709. l = a(7),
  710. m = d(l),
  711. n = function(a) {
  712. function b(c) {
  713. var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  714. e(this, b), d.tracks = c.audioTracks && c.audioTracks();
  715. var g = f(this, a.call(this, c, d));
  716. return g.el_.setAttribute("aria-label", "Audio Menu"), g
  717. }
  718. return g(b, a), b.prototype.buildCSSClass = function() {
  719. return "vjs-audio-button " + a.prototype.buildCSSClass.call(this)
  720. }, b.prototype.createItems = function() {
  721. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
  722. b = this.player_.audioTracks && this.player_.audioTracks();
  723. if (!b) return a;
  724. for (var c = 0; c < b.length; c++) {
  725. var d = b[c];
  726. a.push(new m["default"](this.player_, {
  727. track: d,
  728. selectable: !0
  729. }))
  730. }
  731. return a
  732. }, b
  733. }(i["default"]);
  734. n.prototype.controlText_ = "Audio Track", k["default"].registerComponent("AudioTrackButton", n), c["default"] = n
  735. }, {
  736. 36: 36,
  737. 5: 5,
  738. 7: 7
  739. }
  740. ],
  741. 7: [
  742. function(a, b, c) {
  743. "use strict";
  744. function d(a) {
  745. if (a && a.__esModule) return a;
  746. var b = {};
  747. if (null != a)
  748. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  749. return b["default"] = a, b
  750. }
  751. function e(a) {
  752. return a && a.__esModule ? a : {
  753. "default": a
  754. }
  755. }
  756. function f(a, b) {
  757. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  758. }
  759. function g(a, b) {
  760. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  761. return !b || "object" != typeof b && "function" != typeof b ? a : b
  762. }
  763. function h(a, b) {
  764. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  765. a.prototype = Object.create(b && b.prototype, {
  766. constructor: {
  767. value: a,
  768. enumerable: !1,
  769. writable: !0,
  770. configurable: !0
  771. }
  772. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  773. }
  774. c.__esModule = !0;
  775. var i = a(48),
  776. j = e(i),
  777. k = a(5),
  778. l = e(k),
  779. m = a(83),
  780. n = d(m),
  781. o = function(a) {
  782. function b(c, d) {
  783. f(this, b);
  784. var e = d.track,
  785. h = c.audioTracks();
  786. d.label = e.label || e.language || "Unknown", d.selected = e.enabled;
  787. var i = g(this, a.call(this, c, d));
  788. if (i.track = e, h) {
  789. var j = n.bind(i, i.handleTracksChange);
  790. h.addEventListener("change", j), i.on("dispose", function() {
  791. h.removeEventListener("change", j)
  792. })
  793. }
  794. return i
  795. }
  796. return h(b, a), b.prototype.handleClick = function(b) {
  797. var c = this.player_.audioTracks();
  798. if (a.prototype.handleClick.call(this, b), c)
  799. for (var d = 0; d < c.length; d++) {
  800. var e = c[d];
  801. e.enabled = e === this.track
  802. }
  803. }, b.prototype.handleTracksChange = function(a) {
  804. this.selected(this.track.enabled)
  805. }, b
  806. }(j["default"]);
  807. l["default"].registerComponent("AudioTrackMenuItem", o), c["default"] = o
  808. }, {
  809. 48: 48,
  810. 5: 5,
  811. 83: 83
  812. }
  813. ],
  814. 8: [
  815. function(a, b, c) {
  816. "use strict";
  817. function d(a) {
  818. return a && a.__esModule ? a : {
  819. "default": a
  820. }
  821. }
  822. function e(a, b) {
  823. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  824. }
  825. function f(a, b) {
  826. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  827. return !b || "object" != typeof b && "function" != typeof b ? a : b
  828. }
  829. function g(a, b) {
  830. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  831. a.prototype = Object.create(b && b.prototype, {
  832. constructor: {
  833. value: a,
  834. enumerable: !1,
  835. writable: !0,
  836. configurable: !0
  837. }
  838. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  839. }
  840. c.__esModule = !0;
  841. var h = a(5),
  842. i = d(h);
  843. a(12), a(32), a(33), a(35), a(34), a(10), a(18), a(9), a(38), a(40), a(11), a(25), a(27), a(29), a(24), a(6), a(13), a(21);
  844. var j = function(a) {
  845. function b() {
  846. return e(this, b), f(this, a.apply(this, arguments))
  847. }
  848. return g(b, a), b.prototype.createEl = function() {
  849. return a.prototype.createEl.call(this, "div", {
  850. className: "vjs-control-bar",
  851. dir: "ltr"
  852. }, {
  853. role: "group"
  854. })
  855. }, b
  856. }(i["default"]);
  857. j.prototype.options_ = {
  858. children: ["playToggle", "volumeMenuButton", "currentTimeDisplay", "timeDivider", "durationDisplay", "progressControl", "liveDisplay", "remainingTimeDisplay", "customControlSpacer", "playbackRateMenuButton", "chaptersButton", "descriptionsButton", "subtitlesButton", "captionsButton", "audioTrackButton", "fullscreenToggle"]
  859. }, i["default"].registerComponent("ControlBar", j), c["default"] = j
  860. }, {
  861. 10: 10,
  862. 11: 11,
  863. 12: 12,
  864. 13: 13,
  865. 18: 18,
  866. 21: 21,
  867. 24: 24,
  868. 25: 25,
  869. 27: 27,
  870. 29: 29,
  871. 32: 32,
  872. 33: 33,
  873. 34: 34,
  874. 35: 35,
  875. 38: 38,
  876. 40: 40,
  877. 5: 5,
  878. 6: 6,
  879. 9: 9
  880. }
  881. ],
  882. 9: [
  883. function(a, b, c) {
  884. "use strict";
  885. function d(a) {
  886. return a && a.__esModule ? a : {
  887. "default": a
  888. }
  889. }
  890. function e(a, b) {
  891. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  892. }
  893. function f(a, b) {
  894. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  895. return !b || "object" != typeof b && "function" != typeof b ? a : b
  896. }
  897. function g(a, b) {
  898. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  899. a.prototype = Object.create(b && b.prototype, {
  900. constructor: {
  901. value: a,
  902. enumerable: !1,
  903. writable: !0,
  904. configurable: !0
  905. }
  906. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  907. }
  908. c.__esModule = !0;
  909. var h = a(2),
  910. i = d(h),
  911. j = a(5),
  912. k = d(j),
  913. l = function(a) {
  914. function b(c, d) {
  915. e(this, b);
  916. var g = f(this, a.call(this, c, d));
  917. return g.on(c, "fullscreenchange", g.handleFullscreenChange), g
  918. }
  919. return g(b, a), b.prototype.buildCSSClass = function() {
  920. return "vjs-fullscreen-control " + a.prototype.buildCSSClass.call(this)
  921. }, b.prototype.handleFullscreenChange = function(a) {
  922. this.player_.isFullscreen() ? this.controlText("Non-Fullscreen") : this.controlText("Fullscreen")
  923. }, b.prototype.handleClick = function(a) {
  924. this.player_.isFullscreen() ? this.player_.exitFullscreen() : this.player_.requestFullscreen()
  925. }, b
  926. }(i["default"]);
  927. l.prototype.controlText_ = "Fullscreen", k["default"].registerComponent("FullscreenToggle", l), c["default"] = l
  928. }, {
  929. 2: 2,
  930. 5: 5
  931. }
  932. ],
  933. 10: [
  934. function(a, b, c) {
  935. "use strict";
  936. function d(a) {
  937. if (a && a.__esModule) return a;
  938. var b = {};
  939. if (null != a)
  940. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  941. return b["default"] = a, b
  942. }
  943. function e(a) {
  944. return a && a.__esModule ? a : {
  945. "default": a
  946. }
  947. }
  948. function f(a, b) {
  949. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  950. }
  951. function g(a, b) {
  952. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  953. return !b || "object" != typeof b && "function" != typeof b ? a : b
  954. }
  955. function h(a, b) {
  956. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  957. a.prototype = Object.create(b && b.prototype, {
  958. constructor: {
  959. value: a,
  960. enumerable: !1,
  961. writable: !0,
  962. configurable: !0
  963. }
  964. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  965. }
  966. c.__esModule = !0;
  967. var i = a(5),
  968. j = e(i),
  969. k = a(81),
  970. l = d(k),
  971. m = function(a) {
  972. function b(c, d) {
  973. f(this, b);
  974. var e = g(this, a.call(this, c, d));
  975. return e.updateShowing(), e.on(e.player(), "durationchange", e.updateShowing), e
  976. }
  977. return h(b, a), b.prototype.createEl = function() {
  978. var b = a.prototype.createEl.call(this, "div", {
  979. className: "vjs-live-control vjs-control"
  980. });
  981. return this.contentEl_ = l.createEl("div", {
  982. className: "vjs-live-display",
  983. innerHTML: '<span class="vjs-control-text">' + this.localize("Stream Type") + "</span>" + this.localize("LIVE")
  984. }, {
  985. "aria-live": "off"
  986. }), b.appendChild(this.contentEl_), b
  987. }, b.prototype.updateShowing = function(a) {
  988. this.player().duration() === 1 / 0 ? this.show() : this.hide()
  989. }, b
  990. }(j["default"]);
  991. j["default"].registerComponent("LiveDisplay", m), c["default"] = m
  992. }, {
  993. 5: 5,
  994. 81: 81
  995. }
  996. ],
  997. 11: [
  998. function(a, b, c) {
  999. "use strict";
  1000. function d(a) {
  1001. if (a && a.__esModule) return a;
  1002. var b = {};
  1003. if (null != a)
  1004. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1005. return b["default"] = a, b
  1006. }
  1007. function e(a) {
  1008. return a && a.__esModule ? a : {
  1009. "default": a
  1010. }
  1011. }
  1012. function f(a, b) {
  1013. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1014. }
  1015. function g(a, b) {
  1016. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1017. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1018. }
  1019. function h(a, b) {
  1020. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1021. a.prototype = Object.create(b && b.prototype, {
  1022. constructor: {
  1023. value: a,
  1024. enumerable: !1,
  1025. writable: !0,
  1026. configurable: !0
  1027. }
  1028. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1029. }
  1030. c.__esModule = !0;
  1031. var i = a(2),
  1032. j = e(i),
  1033. k = a(5),
  1034. l = e(k),
  1035. m = a(81),
  1036. n = d(m),
  1037. o = function(a) {
  1038. function b(c, d) {
  1039. f(this, b);
  1040. var e = g(this, a.call(this, c, d));
  1041. return e.on(c, "volumechange", e.update), c.tech_ && c.tech_.featuresVolumeControl === !1 && e.addClass("vjs-hidden"), e.on(c, "loadstart", function() {
  1042. this.update(), c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
  1043. }), e
  1044. }
  1045. return h(b, a), b.prototype.buildCSSClass = function() {
  1046. return "vjs-mute-control " + a.prototype.buildCSSClass.call(this)
  1047. }, b.prototype.handleClick = function(a) {
  1048. this.player_.muted(!this.player_.muted())
  1049. }, b.prototype.update = function(a) {
  1050. var b = this.player_.volume(),
  1051. c = 3;
  1052. 0 === b || this.player_.muted() ? c = 0 : b < .33 ? c = 1 : b < .67 && (c = 2);
  1053. var d = this.player_.muted() ? "Unmute" : "Mute";
  1054. this.controlText() !== d && this.controlText(d);
  1055. for (var e = 0; e < 4; e++) n.removeElClass(this.el_, "vjs-vol-" + e);
  1056. n.addElClass(this.el_, "vjs-vol-" + c)
  1057. }, b
  1058. }(j["default"]);
  1059. o.prototype.controlText_ = "Mute", l["default"].registerComponent("MuteToggle", o), c["default"] = o
  1060. }, {
  1061. 2: 2,
  1062. 5: 5,
  1063. 81: 81
  1064. }
  1065. ],
  1066. 12: [
  1067. function(a, b, c) {
  1068. "use strict";
  1069. function d(a) {
  1070. return a && a.__esModule ? a : {
  1071. "default": a
  1072. }
  1073. }
  1074. function e(a, b) {
  1075. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1076. }
  1077. function f(a, b) {
  1078. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1079. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1080. }
  1081. function g(a, b) {
  1082. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1083. a.prototype = Object.create(b && b.prototype, {
  1084. constructor: {
  1085. value: a,
  1086. enumerable: !1,
  1087. writable: !0,
  1088. configurable: !0
  1089. }
  1090. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1091. }
  1092. c.__esModule = !0;
  1093. var h = a(2),
  1094. i = d(h),
  1095. j = a(5),
  1096. k = d(j),
  1097. l = function(a) {
  1098. function b(c, d) {
  1099. e(this, b);
  1100. var g = f(this, a.call(this, c, d));
  1101. return g.on(c, "play", g.handlePlay), g.on(c, "pause", g.handlePause), g
  1102. }
  1103. return g(b, a), b.prototype.buildCSSClass = function() {
  1104. return "vjs-play-control " + a.prototype.buildCSSClass.call(this)
  1105. }, b.prototype.handleClick = function(a) {
  1106. this.player_.paused() ? this.player_.play() : this.player_.pause()
  1107. }, b.prototype.handlePlay = function(a) {
  1108. this.removeClass("vjs-paused"), this.addClass("vjs-playing"), this.controlText("Pause")
  1109. }, b.prototype.handlePause = function(a) {
  1110. this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.controlText("Play")
  1111. }, b
  1112. }(i["default"]);
  1113. l.prototype.controlText_ = "Play", k["default"].registerComponent("PlayToggle", l), c["default"] = l
  1114. }, {
  1115. 2: 2,
  1116. 5: 5
  1117. }
  1118. ],
  1119. 13: [
  1120. function(a, b, c) {
  1121. "use strict";
  1122. function d(a) {
  1123. if (a && a.__esModule) return a;
  1124. var b = {};
  1125. if (null != a)
  1126. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1127. return b["default"] = a, b
  1128. }
  1129. function e(a) {
  1130. return a && a.__esModule ? a : {
  1131. "default": a
  1132. }
  1133. }
  1134. function f(a, b) {
  1135. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1136. }
  1137. function g(a, b) {
  1138. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1139. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1140. }
  1141. function h(a, b) {
  1142. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1143. a.prototype = Object.create(b && b.prototype, {
  1144. constructor: {
  1145. value: a,
  1146. enumerable: !1,
  1147. writable: !0,
  1148. configurable: !0
  1149. }
  1150. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1151. }
  1152. c.__esModule = !0;
  1153. var i = a(47),
  1154. j = e(i),
  1155. k = a(49),
  1156. l = e(k),
  1157. m = a(14),
  1158. n = e(m),
  1159. o = a(5),
  1160. p = e(o),
  1161. q = a(81),
  1162. r = d(q),
  1163. s = function(a) {
  1164. function b(c, d) {
  1165. f(this, b);
  1166. var e = g(this, a.call(this, c, d));
  1167. return e.updateVisibility(), e.updateLabel(), e.on(c, "loadstart", e.updateVisibility), e.on(c, "ratechange", e.updateLabel), e
  1168. }
  1169. return h(b, a), b.prototype.createEl = function() {
  1170. var b = a.prototype.createEl.call(this);
  1171. return this.labelEl_ = r.createEl("div", {
  1172. className: "vjs-playback-rate-value",
  1173. innerHTML: 1
  1174. }), b.appendChild(this.labelEl_), b
  1175. }, b.prototype.buildCSSClass = function() {
  1176. return "vjs-playback-rate " + a.prototype.buildCSSClass.call(this)
  1177. }, b.prototype.createMenu = function() {
  1178. var a = new l["default"](this.player()),
  1179. b = this.playbackRates();
  1180. if (b)
  1181. for (var c = b.length - 1; c >= 0; c--) a.addChild(new n["default"](this.player(), {
  1182. rate: b[c] + "x"
  1183. }));
  1184. return a
  1185. }, b.prototype.updateARIAAttributes = function() {
  1186. this.el().setAttribute("aria-valuenow", this.player().playbackRate())
  1187. }, b.prototype.handleClick = function(a) {
  1188. for (var b = this.player().playbackRate(), c = this.playbackRates(), d = c[0], e = 0; e < c.length; e++)
  1189. if (c[e] > b) {
  1190. d = c[e];
  1191. break
  1192. }
  1193. this.player().playbackRate(d)
  1194. }, b.prototype.playbackRates = function() {
  1195. return this.options_.playbackRates || this.options_.playerOptions && this.options_.playerOptions.playbackRates
  1196. }, b.prototype.playbackRateSupported = function() {
  1197. return this.player().tech_ && this.player().tech_.featuresPlaybackRate && this.playbackRates() && this.playbackRates().length > 0
  1198. }, b.prototype.updateVisibility = function(a) {
  1199. this.playbackRateSupported() ? this.removeClass("vjs-hidden") : this.addClass("vjs-hidden")
  1200. }, b.prototype.updateLabel = function(a) {
  1201. this.playbackRateSupported() && (this.labelEl_.innerHTML = this.player().playbackRate() + "x")
  1202. }, b
  1203. }(j["default"]);
  1204. s.prototype.controlText_ = "Playback Rate", p["default"].registerComponent("PlaybackRateMenuButton", s), c["default"] = s
  1205. }, {
  1206. 14: 14,
  1207. 47: 47,
  1208. 49: 49,
  1209. 5: 5,
  1210. 81: 81
  1211. }
  1212. ],
  1213. 14: [
  1214. function(a, b, c) {
  1215. "use strict";
  1216. function d(a) {
  1217. return a && a.__esModule ? a : {
  1218. "default": a
  1219. }
  1220. }
  1221. function e(a, b) {
  1222. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1223. }
  1224. function f(a, b) {
  1225. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1226. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1227. }
  1228. function g(a, b) {
  1229. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1230. a.prototype = Object.create(b && b.prototype, {
  1231. constructor: {
  1232. value: a,
  1233. enumerable: !1,
  1234. writable: !0,
  1235. configurable: !0
  1236. }
  1237. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1238. }
  1239. c.__esModule = !0;
  1240. var h = a(48),
  1241. i = d(h),
  1242. j = a(5),
  1243. k = d(j),
  1244. l = function(a) {
  1245. function b(c, d) {
  1246. e(this, b);
  1247. var g = d.rate,
  1248. h = parseFloat(g, 10);
  1249. d.label = g, d.selected = 1 === h, d.selectable = !0;
  1250. var i = f(this, a.call(this, c, d));
  1251. return i.label = g, i.rate = h, i.on(c, "ratechange", i.update), i
  1252. }
  1253. return g(b, a), b.prototype.handleClick = function(b) {
  1254. a.prototype.handleClick.call(this), this.player().playbackRate(this.rate)
  1255. }, b.prototype.update = function(a) {
  1256. this.selected(this.player().playbackRate() === this.rate)
  1257. }, b
  1258. }(i["default"]);
  1259. l.prototype.contentElType = "button", k["default"].registerComponent("PlaybackRateMenuItem", l), c["default"] = l
  1260. }, {
  1261. 48: 48,
  1262. 5: 5
  1263. }
  1264. ],
  1265. 15: [
  1266. function(a, b, c) {
  1267. "use strict";
  1268. function d(a) {
  1269. if (a && a.__esModule) return a;
  1270. var b = {};
  1271. if (null != a)
  1272. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1273. return b["default"] = a, b
  1274. }
  1275. function e(a) {
  1276. return a && a.__esModule ? a : {
  1277. "default": a
  1278. }
  1279. }
  1280. function f(a, b) {
  1281. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1282. }
  1283. function g(a, b) {
  1284. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1285. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1286. }
  1287. function h(a, b) {
  1288. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1289. a.prototype = Object.create(b && b.prototype, {
  1290. constructor: {
  1291. value: a,
  1292. enumerable: !1,
  1293. writable: !0,
  1294. configurable: !0
  1295. }
  1296. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1297. }
  1298. c.__esModule = !0;
  1299. var i = a(5),
  1300. j = e(i),
  1301. k = a(81),
  1302. l = d(k),
  1303. m = function(a) {
  1304. function b(c, d) {
  1305. f(this, b);
  1306. var e = g(this, a.call(this, c, d));
  1307. return e.partEls_ = [], e.on(c, "progress", e.update), e
  1308. }
  1309. return h(b, a), b.prototype.createEl = function() {
  1310. return a.prototype.createEl.call(this, "div", {
  1311. className: "vjs-load-progress",
  1312. innerHTML: '<span class="vjs-control-text"><span>' + this.localize("Loaded") + "</span>: 0%</span>"
  1313. })
  1314. }, b.prototype.update = function(a) {
  1315. var b = this.player_.buffered(),
  1316. c = this.player_.duration(),
  1317. d = this.player_.bufferedEnd(),
  1318. e = this.partEls_,
  1319. f = function(a, b) {
  1320. var c = a / b || 0;
  1321. return 100 * (c >= 1 ? 1 : c) + "%"
  1322. };
  1323. this.el_.style.width = f(d, c);
  1324. for (var g = 0; g < b.length; g++) {
  1325. var h = b.start(g),
  1326. i = b.end(g),
  1327. j = e[g];
  1328. j || (j = this.el_.appendChild(l.createEl()), e[g] = j), j.style.left = f(h, d), j.style.width = f(i - h, d)
  1329. }
  1330. for (var k = e.length; k > b.length; k--) this.el_.removeChild(e[k - 1]);
  1331. e.length = b.length
  1332. }, b
  1333. }(j["default"]);
  1334. j["default"].registerComponent("LoadProgressBar", m), c["default"] = m
  1335. }, {
  1336. 5: 5,
  1337. 81: 81
  1338. }
  1339. ],
  1340. 16: [
  1341. function(a, b, c) {
  1342. "use strict";
  1343. function d(a) {
  1344. if (a && a.__esModule) return a;
  1345. var b = {};
  1346. if (null != a)
  1347. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1348. return b["default"] = a, b
  1349. }
  1350. function e(a) {
  1351. return a && a.__esModule ? a : {
  1352. "default": a
  1353. }
  1354. }
  1355. function f(a, b) {
  1356. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1357. }
  1358. function g(a, b) {
  1359. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1360. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1361. }
  1362. function h(a, b) {
  1363. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1364. a.prototype = Object.create(b && b.prototype, {
  1365. constructor: {
  1366. value: a,
  1367. enumerable: !1,
  1368. writable: !0,
  1369. configurable: !0
  1370. }
  1371. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1372. }
  1373. c.__esModule = !0;
  1374. var i = a(5),
  1375. j = e(i),
  1376. k = a(81),
  1377. l = d(k),
  1378. m = a(83),
  1379. n = d(m),
  1380. o = a(84),
  1381. p = e(o),
  1382. q = a(80),
  1383. r = e(q),
  1384. s = function(a) {
  1385. function b(c, d) {
  1386. f(this, b);
  1387. var e = g(this, a.call(this, c, d));
  1388. return d.playerOptions && d.playerOptions.controlBar && d.playerOptions.controlBar.progressControl && d.playerOptions.controlBar.progressControl.keepTooltipsInside && (e.keepTooltipsInside = d.playerOptions.controlBar.progressControl.keepTooltipsInside), e.keepTooltipsInside && (e.tooltip = l.createEl("div", {
  1389. className: "vjs-time-tooltip"
  1390. }), e.el().appendChild(e.tooltip), e.addClass("vjs-keep-tooltips-inside")), e.update(0, 0), c.on("ready", function() {
  1391. e.on(c.controlBar.progressControl.el(), "mousemove", n.throttle(n.bind(e, e.handleMouseMove), 25))
  1392. }), e
  1393. }
  1394. return h(b, a), b.prototype.createEl = function() {
  1395. return a.prototype.createEl.call(this, "div", {
  1396. className: "vjs-mouse-display"
  1397. })
  1398. }, b.prototype.handleMouseMove = function(a) {
  1399. var b = this.player_.duration(),
  1400. c = this.calculateDistance(a) * b,
  1401. d = a.pageX - l.findElPosition(this.el().parentNode).left;
  1402. this.update(c, d)
  1403. }, b.prototype.update = function(a, b) {
  1404. var c = (0, p["default"])(a, this.player_.duration());
  1405. if (this.el().style.left = b + "px", this.el().setAttribute("data-current-time", c), this.keepTooltipsInside) {
  1406. var d = this.clampPosition_(b),
  1407. e = b - d + 1,
  1408. f = parseFloat((0, r["default"])(this.tooltip, "width")),
  1409. g = f / 2;
  1410. this.tooltip.innerHTML = c, this.tooltip.style.right = "-" + (g - e) + "px"
  1411. }
  1412. }, b.prototype.calculateDistance = function(a) {
  1413. return l.getPointerPosition(this.el().parentNode, a).x
  1414. }, b.prototype.clampPosition_ = function(a) {
  1415. if (!this.keepTooltipsInside) return a;
  1416. var b = parseFloat((0, r["default"])(this.player().el(), "width")),
  1417. c = parseFloat((0, r["default"])(this.tooltip, "width")),
  1418. d = c / 2,
  1419. e = a;
  1420. return a < d ? e = Math.ceil(d) : a > b - d && (e = Math.floor(b - d)), e
  1421. }, b
  1422. }(j["default"]);
  1423. j["default"].registerComponent("MouseTimeDisplay", s), c["default"] = s
  1424. }, {
  1425. 5: 5,
  1426. 80: 80,
  1427. 81: 81,
  1428. 83: 83,
  1429. 84: 84
  1430. }
  1431. ],
  1432. 17: [
  1433. function(a, b, c) {
  1434. "use strict";
  1435. function d(a) {
  1436. if (a && a.__esModule) return a;
  1437. var b = {};
  1438. if (null != a)
  1439. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1440. return b["default"] = a, b
  1441. }
  1442. function e(a) {
  1443. return a && a.__esModule ? a : {
  1444. "default": a
  1445. }
  1446. }
  1447. function f(a, b) {
  1448. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1449. }
  1450. function g(a, b) {
  1451. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1452. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1453. }
  1454. function h(a, b) {
  1455. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1456. a.prototype = Object.create(b && b.prototype, {
  1457. constructor: {
  1458. value: a,
  1459. enumerable: !1,
  1460. writable: !0,
  1461. configurable: !0
  1462. }
  1463. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1464. }
  1465. c.__esModule = !0;
  1466. var i = a(5),
  1467. j = e(i),
  1468. k = a(83),
  1469. l = d(k),
  1470. m = a(84),
  1471. n = e(m),
  1472. o = function(a) {
  1473. function b(c, d) {
  1474. f(this, b);
  1475. var e = g(this, a.call(this, c, d));
  1476. return e.updateDataAttr(), e.on(c, "timeupdate", e.updateDataAttr), c.ready(l.bind(e, e.updateDataAttr)), d.playerOptions && d.playerOptions.controlBar && d.playerOptions.controlBar.progressControl && d.playerOptions.controlBar.progressControl.keepTooltipsInside && (e.keepTooltipsInside = d.playerOptions.controlBar.progressControl.keepTooltipsInside), e.keepTooltipsInside && e.addClass("vjs-keep-tooltips-inside"), e
  1477. }
  1478. return h(b, a), b.prototype.createEl = function() {
  1479. return a.prototype.createEl.call(this, "div", {
  1480. className: "vjs-play-progress vjs-slider-bar",
  1481. innerHTML: '<span class="vjs-control-text"><span>' + this.localize("Progress") + "</span>: 0%</span>"
  1482. })
  1483. }, b.prototype.updateDataAttr = function(a) {
  1484. var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();
  1485. this.el_.setAttribute("data-current-time", (0, n["default"])(b, this.player_.duration()))
  1486. }, b
  1487. }(j["default"]);
  1488. j["default"].registerComponent("PlayProgressBar", o), c["default"] = o
  1489. }, {
  1490. 5: 5,
  1491. 83: 83,
  1492. 84: 84
  1493. }
  1494. ],
  1495. 18: [
  1496. function(a, b, c) {
  1497. "use strict";
  1498. function d(a) {
  1499. return a && a.__esModule ? a : {
  1500. "default": a
  1501. }
  1502. }
  1503. function e(a, b) {
  1504. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1505. }
  1506. function f(a, b) {
  1507. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1508. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1509. }
  1510. function g(a, b) {
  1511. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1512. a.prototype = Object.create(b && b.prototype, {
  1513. constructor: {
  1514. value: a,
  1515. enumerable: !1,
  1516. writable: !0,
  1517. configurable: !0
  1518. }
  1519. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1520. }
  1521. c.__esModule = !0;
  1522. var h = a(5),
  1523. i = d(h);
  1524. a(19), a(16);
  1525. var j = function(a) {
  1526. function b() {
  1527. return e(this, b), f(this, a.apply(this, arguments))
  1528. }
  1529. return g(b, a), b.prototype.createEl = function() {
  1530. return a.prototype.createEl.call(this, "div", {
  1531. className: "vjs-progress-control vjs-control"
  1532. })
  1533. }, b
  1534. }(i["default"]);
  1535. j.prototype.options_ = {
  1536. children: ["seekBar"]
  1537. }, i["default"].registerComponent("ProgressControl", j), c["default"] = j
  1538. }, {
  1539. 16: 16,
  1540. 19: 19,
  1541. 5: 5
  1542. }
  1543. ],
  1544. 19: [
  1545. function(a, b, c) {
  1546. "use strict";
  1547. function d(a) {
  1548. if (a && a.__esModule) return a;
  1549. var b = {};
  1550. if (null != a)
  1551. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1552. return b["default"] = a, b
  1553. }
  1554. function e(a) {
  1555. return a && a.__esModule ? a : {
  1556. "default": a
  1557. }
  1558. }
  1559. function f(a, b) {
  1560. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1561. }
  1562. function g(a, b) {
  1563. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1564. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1565. }
  1566. function h(a, b) {
  1567. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1568. a.prototype = Object.create(b && b.prototype, {
  1569. constructor: {
  1570. value: a,
  1571. enumerable: !1,
  1572. writable: !0,
  1573. configurable: !0
  1574. }
  1575. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1576. }
  1577. c.__esModule = !0;
  1578. var i = a(57),
  1579. j = e(i),
  1580. k = a(5),
  1581. l = e(k),
  1582. m = a(83),
  1583. n = d(m),
  1584. o = a(84),
  1585. p = e(o),
  1586. q = a(80),
  1587. r = e(q);
  1588. a(15), a(17), a(20);
  1589. var s = function(a) {
  1590. function b(c, d) {
  1591. f(this, b);
  1592. var e = g(this, a.call(this, c, d));
  1593. return e.on(c, "timeupdate", e.updateProgress), e.on(c, "ended", e.updateProgress), c.ready(n.bind(e, e.updateProgress)), d.playerOptions && d.playerOptions.controlBar && d.playerOptions.controlBar.progressControl && d.playerOptions.controlBar.progressControl.keepTooltipsInside && (e.keepTooltipsInside = d.playerOptions.controlBar.progressControl.keepTooltipsInside), e.keepTooltipsInside && (e.tooltipProgressBar = e.addChild("TooltipProgressBar")), e
  1594. }
  1595. return h(b, a), b.prototype.createEl = function() {
  1596. return a.prototype.createEl.call(this, "div", {
  1597. className: "vjs-progress-holder"
  1598. }, {
  1599. "aria-label": "progress bar"
  1600. })
  1601. }, b.prototype.updateProgress = function(a) {
  1602. if (this.updateAriaAttributes(this.el_), this.keepTooltipsInside) {
  1603. this.updateAriaAttributes(this.tooltipProgressBar.el_), this.tooltipProgressBar.el_.style.width = this.bar.el_.style.width;
  1604. var b = parseFloat((0, r["default"])(this.player().el(), "width")),
  1605. c = parseFloat((0, r["default"])(this.tooltipProgressBar.tooltip, "width")),
  1606. d = this.tooltipProgressBar.el().style;
  1607. d.maxWidth = Math.floor(b - c / 2) + "px", d.minWidth = Math.ceil(c / 2) + "px", d.right = "-" + c / 2 + "px"
  1608. }
  1609. }, b.prototype.updateAriaAttributes = function(a) {
  1610. var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();
  1611. a.setAttribute("aria-valuenow", (100 * this.getPercent()).toFixed(2)), a.setAttribute("aria-valuetext", (0, p["default"])(b, this.player_.duration()))
  1612. }, b.prototype.getPercent = function() {
  1613. var a = this.player_.currentTime() / this.player_.duration();
  1614. return a >= 1 ? 1 : a
  1615. }, b.prototype.handleMouseDown = function(b) {
  1616. this.player_.scrubbing(!0), this.videoWasPlaying = !this.player_.paused(), this.player_.pause(), a.prototype.handleMouseDown.call(this, b)
  1617. }, b.prototype.handleMouseMove = function(a) {
  1618. var b = this.calculateDistance(a) * this.player_.duration();
  1619. b === this.player_.duration() && (b -= .1), this.player_.currentTime(b)
  1620. }, b.prototype.handleMouseUp = function(b) {
  1621. a.prototype.handleMouseUp.call(this, b), this.player_.scrubbing(!1), this.videoWasPlaying && this.player_.play()
  1622. }, b.prototype.stepForward = function() {
  1623. this.player_.currentTime(this.player_.currentTime() + 5)
  1624. }, b.prototype.stepBack = function() {
  1625. this.player_.currentTime(this.player_.currentTime() - 5)
  1626. }, b
  1627. }(j["default"]);
  1628. s.prototype.options_ = {
  1629. children: ["loadProgressBar", "mouseTimeDisplay", "playProgressBar"],
  1630. barName: "playProgressBar"
  1631. }, s.prototype.playerEvent = "timeupdate", l["default"].registerComponent("SeekBar", s), c["default"] = s
  1632. }, {
  1633. 15: 15,
  1634. 17: 17,
  1635. 20: 20,
  1636. 5: 5,
  1637. 57: 57,
  1638. 80: 80,
  1639. 83: 83,
  1640. 84: 84
  1641. }
  1642. ],
  1643. 20: [
  1644. function(a, b, c) {
  1645. "use strict";
  1646. function d(a) {
  1647. if (a && a.__esModule) return a;
  1648. var b = {};
  1649. if (null != a)
  1650. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  1651. return b["default"] = a, b
  1652. }
  1653. function e(a) {
  1654. return a && a.__esModule ? a : {
  1655. "default": a
  1656. }
  1657. }
  1658. function f(a, b) {
  1659. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1660. }
  1661. function g(a, b) {
  1662. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1663. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1664. }
  1665. function h(a, b) {
  1666. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1667. a.prototype = Object.create(b && b.prototype, {
  1668. constructor: {
  1669. value: a,
  1670. enumerable: !1,
  1671. writable: !0,
  1672. configurable: !0
  1673. }
  1674. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1675. }
  1676. c.__esModule = !0;
  1677. var i = a(5),
  1678. j = e(i),
  1679. k = a(83),
  1680. l = d(k),
  1681. m = a(84),
  1682. n = e(m),
  1683. o = function(a) {
  1684. function b(c, d) {
  1685. f(this, b);
  1686. var e = g(this, a.call(this, c, d));
  1687. return e.updateDataAttr(), e.on(c, "timeupdate", e.updateDataAttr), c.ready(l.bind(e, e.updateDataAttr)), e
  1688. }
  1689. return h(b, a), b.prototype.createEl = function() {
  1690. var b = a.prototype.createEl.call(this, "div", {
  1691. className: "vjs-tooltip-progress-bar vjs-slider-bar",
  1692. innerHTML: '<div class="vjs-time-tooltip"></div>\n <span class="vjs-control-text"><span>' + this.localize("Progress") + "</span>: 0%</span>"
  1693. });
  1694. return this.tooltip = b.querySelector(".vjs-time-tooltip"), b
  1695. }, b.prototype.updateDataAttr = function(a) {
  1696. var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(),
  1697. c = (0, n["default"])(b, this.player_.duration());
  1698. this.el_.setAttribute("data-current-time", c), this.tooltip.innerHTML = c
  1699. }, b
  1700. }(j["default"]);
  1701. j["default"].registerComponent("TooltipProgressBar", o), c["default"] = o
  1702. }, {
  1703. 5: 5,
  1704. 83: 83,
  1705. 84: 84
  1706. }
  1707. ],
  1708. 21: [
  1709. function(a, b, c) {
  1710. "use strict";
  1711. function d(a) {
  1712. return a && a.__esModule ? a : {
  1713. "default": a
  1714. }
  1715. }
  1716. function e(a, b) {
  1717. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1718. }
  1719. function f(a, b) {
  1720. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1721. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1722. }
  1723. function g(a, b) {
  1724. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1725. a.prototype = Object.create(b && b.prototype, {
  1726. constructor: {
  1727. value: a,
  1728. enumerable: !1,
  1729. writable: !0,
  1730. configurable: !0
  1731. }
  1732. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1733. }
  1734. c.__esModule = !0;
  1735. var h = a(22),
  1736. i = d(h),
  1737. j = a(5),
  1738. k = d(j),
  1739. l = function(a) {
  1740. function b() {
  1741. return e(this, b), f(this, a.apply(this, arguments))
  1742. }
  1743. return g(b, a), b.prototype.buildCSSClass = function() {
  1744. return "vjs-custom-control-spacer " + a.prototype.buildCSSClass.call(this)
  1745. }, b.prototype.createEl = function() {
  1746. var b = a.prototype.createEl.call(this, {
  1747. className: this.buildCSSClass()
  1748. });
  1749. return b.innerHTML = "&nbsp;", b
  1750. }, b
  1751. }(i["default"]);
  1752. k["default"].registerComponent("CustomControlSpacer", l), c["default"] = l
  1753. }, {
  1754. 22: 22,
  1755. 5: 5
  1756. }
  1757. ],
  1758. 22: [
  1759. function(a, b, c) {
  1760. "use strict";
  1761. function d(a) {
  1762. return a && a.__esModule ? a : {
  1763. "default": a
  1764. }
  1765. }
  1766. function e(a, b) {
  1767. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1768. }
  1769. function f(a, b) {
  1770. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1771. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1772. }
  1773. function g(a, b) {
  1774. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1775. a.prototype = Object.create(b && b.prototype, {
  1776. constructor: {
  1777. value: a,
  1778. enumerable: !1,
  1779. writable: !0,
  1780. configurable: !0
  1781. }
  1782. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1783. }
  1784. c.__esModule = !0;
  1785. var h = a(5),
  1786. i = d(h),
  1787. j = function(a) {
  1788. function b() {
  1789. return e(this, b), f(this, a.apply(this, arguments))
  1790. }
  1791. return g(b, a), b.prototype.buildCSSClass = function() {
  1792. return "vjs-spacer " + a.prototype.buildCSSClass.call(this)
  1793. }, b.prototype.createEl = function() {
  1794. return a.prototype.createEl.call(this, "div", {
  1795. className: this.buildCSSClass()
  1796. })
  1797. }, b
  1798. }(i["default"]);
  1799. i["default"].registerComponent("Spacer", j), c["default"] = j
  1800. }, {
  1801. 5: 5
  1802. }
  1803. ],
  1804. 23: [
  1805. function(a, b, c) {
  1806. "use strict";
  1807. function d(a) {
  1808. return a && a.__esModule ? a : {
  1809. "default": a
  1810. }
  1811. }
  1812. function e(a, b) {
  1813. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1814. }
  1815. function f(a, b) {
  1816. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1817. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1818. }
  1819. function g(a, b) {
  1820. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1821. a.prototype = Object.create(b && b.prototype, {
  1822. constructor: {
  1823. value: a,
  1824. enumerable: !1,
  1825. writable: !0,
  1826. configurable: !0
  1827. }
  1828. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1829. }
  1830. c.__esModule = !0;
  1831. var h = a(31),
  1832. i = d(h),
  1833. j = a(5),
  1834. k = d(j),
  1835. l = function(a) {
  1836. function b(c, d) {
  1837. e(this, b), d.track = {
  1838. player: c,
  1839. kind: d.kind,
  1840. label: d.kind + " settings",
  1841. selectable: !1,
  1842. "default": !1,
  1843. mode: "disabled"
  1844. }, d.selectable = !1;
  1845. var g = f(this, a.call(this, c, d));
  1846. return g.addClass("vjs-texttrack-settings"), g.controlText(", opens " + d.kind + " settings dialog"), g
  1847. }
  1848. return g(b, a), b.prototype.handleClick = function(a) {
  1849. this.player().getChild("textTrackSettings").show(), this.player().getChild("textTrackSettings").el_.focus()
  1850. }, b
  1851. }(i["default"]);
  1852. k["default"].registerComponent("CaptionSettingsMenuItem", l), c["default"] = l
  1853. }, {
  1854. 31: 31,
  1855. 5: 5
  1856. }
  1857. ],
  1858. 24: [
  1859. function(a, b, c) {
  1860. "use strict";
  1861. function d(a) {
  1862. return a && a.__esModule ? a : {
  1863. "default": a
  1864. }
  1865. }
  1866. function e(a, b) {
  1867. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1868. }
  1869. function f(a, b) {
  1870. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1871. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1872. }
  1873. function g(a, b) {
  1874. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1875. a.prototype = Object.create(b && b.prototype, {
  1876. constructor: {
  1877. value: a,
  1878. enumerable: !1,
  1879. writable: !0,
  1880. configurable: !0
  1881. }
  1882. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1883. }
  1884. c.__esModule = !0;
  1885. var h = a(30),
  1886. i = d(h),
  1887. j = a(5),
  1888. k = d(j),
  1889. l = a(23),
  1890. m = d(l),
  1891. n = function(a) {
  1892. function b(c, d, g) {
  1893. e(this, b);
  1894. var h = f(this, a.call(this, c, d, g));
  1895. return h.el_.setAttribute("aria-label", "Captions Menu"), h
  1896. }
  1897. return g(b, a), b.prototype.buildCSSClass = function() {
  1898. return "vjs-captions-button " + a.prototype.buildCSSClass.call(this)
  1899. }, b.prototype.createItems = function() {
  1900. var b = [];
  1901. return this.player().tech_ && this.player().tech_.featuresNativeTextTracks || (b.push(new m["default"](this.player_, {
  1902. kind: this.kind_
  1903. })), this.hideThreshold_ += 1), a.prototype.createItems.call(this, b)
  1904. }, b
  1905. }(i["default"]);
  1906. n.prototype.kind_ = "captions", n.prototype.controlText_ = "Captions", k["default"].registerComponent("CaptionsButton", n), c["default"] = n
  1907. }, {
  1908. 23: 23,
  1909. 30: 30,
  1910. 5: 5
  1911. }
  1912. ],
  1913. 25: [
  1914. function(a, b, c) {
  1915. "use strict";
  1916. function d(a) {
  1917. return a && a.__esModule ? a : {
  1918. "default": a
  1919. }
  1920. }
  1921. function e(a, b) {
  1922. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  1923. }
  1924. function f(a, b) {
  1925. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1926. return !b || "object" != typeof b && "function" != typeof b ? a : b
  1927. }
  1928. function g(a, b) {
  1929. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  1930. a.prototype = Object.create(b && b.prototype, {
  1931. constructor: {
  1932. value: a,
  1933. enumerable: !1,
  1934. writable: !0,
  1935. configurable: !0
  1936. }
  1937. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  1938. }
  1939. c.__esModule = !0;
  1940. var h = a(30),
  1941. i = d(h),
  1942. j = a(5),
  1943. k = d(j),
  1944. l = a(26),
  1945. m = d(l),
  1946. n = a(91),
  1947. o = d(n),
  1948. p = function(a) {
  1949. function b(c, d, g) {
  1950. e(this, b);
  1951. var h = f(this, a.call(this, c, d, g));
  1952. return h.el_.setAttribute("aria-label", "Chapters Menu"), h
  1953. }
  1954. return g(b, a), b.prototype.buildCSSClass = function() {
  1955. return "vjs-chapters-button " + a.prototype.buildCSSClass.call(this)
  1956. }, b.prototype.update = function(b) {
  1957. this.track_ && (!b || "addtrack" !== b.type && "removetrack" !== b.type) || this.setTrack(this.findChaptersTrack()), a.prototype.update.call(this)
  1958. }, b.prototype.setTrack = function(a) {
  1959. if (this.track_ !== a) {
  1960. if (this.updateHandler_ || (this.updateHandler_ = this.update.bind(this)), this.track_) {
  1961. var b = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);
  1962. b && b.removeEventListener("load", this.updateHandler_), this.track_ = null
  1963. }
  1964. if (this.track_ = a, this.track_) {
  1965. this.track_.mode = "hidden";
  1966. var c = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);
  1967. c && c.addEventListener("load", this.updateHandler_)
  1968. }
  1969. }
  1970. }, b.prototype.findChaptersTrack = function() {
  1971. for (var a = this.player_.textTracks() || [], b = a.length - 1; b >= 0; b--) {
  1972. var c = a[b];
  1973. if (c.kind === this.kind_) return c
  1974. }
  1975. }, b.prototype.getMenuCaption = function() {
  1976. return this.track_ && this.track_.label ? this.track_.label : this.localize((0, o["default"])(this.kind_))
  1977. }, b.prototype.createMenu = function() {
  1978. return this.options_.title = this.getMenuCaption(), a.prototype.createMenu.call(this)
  1979. }, b.prototype.createItems = function() {
  1980. var a = [];
  1981. if (!this.track_) return a;
  1982. var b = this.track_.cues;
  1983. if (!b) return a;
  1984. for (var c = 0, d = b.length; c < d; c++) {
  1985. var e = b[c],
  1986. f = new m["default"](this.player_, {
  1987. track: this.track_,
  1988. cue: e
  1989. });
  1990. a.push(f)
  1991. }
  1992. return a
  1993. }, b
  1994. }(i["default"]);
  1995. p.prototype.kind_ = "chapters", p.prototype.controlText_ = "Chapters", k["default"].registerComponent("ChaptersButton", p), c["default"] = p
  1996. }, {
  1997. 26: 26,
  1998. 30: 30,
  1999. 5: 5,
  2000. 91: 91
  2001. }
  2002. ],
  2003. 26: [
  2004. function(a, b, c) {
  2005. "use strict";
  2006. function d(a) {
  2007. if (a && a.__esModule) return a;
  2008. var b = {};
  2009. if (null != a)
  2010. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2011. return b["default"] = a, b
  2012. }
  2013. function e(a) {
  2014. return a && a.__esModule ? a : {
  2015. "default": a
  2016. }
  2017. }
  2018. function f(a, b) {
  2019. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2020. }
  2021. function g(a, b) {
  2022. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2023. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2024. }
  2025. function h(a, b) {
  2026. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2027. a.prototype = Object.create(b && b.prototype, {
  2028. constructor: {
  2029. value: a,
  2030. enumerable: !1,
  2031. writable: !0,
  2032. configurable: !0
  2033. }
  2034. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2035. }
  2036. c.__esModule = !0;
  2037. var i = a(48),
  2038. j = e(i),
  2039. k = a(5),
  2040. l = e(k),
  2041. m = a(83),
  2042. n = d(m),
  2043. o = function(a) {
  2044. function b(c, d) {
  2045. f(this, b);
  2046. var e = d.track,
  2047. h = d.cue,
  2048. i = c.currentTime();
  2049. d.selectable = !0, d.label = h.text, d.selected = h.startTime <= i && i < h.endTime;
  2050. var j = g(this, a.call(this, c, d));
  2051. return j.track = e, j.cue = h, e.addEventListener("cuechange", n.bind(j, j.update)), j
  2052. }
  2053. return h(b, a), b.prototype.handleClick = function(b) {
  2054. a.prototype.handleClick.call(this), this.player_.currentTime(this.cue.startTime), this.update(this.cue.startTime)
  2055. }, b.prototype.update = function(a) {
  2056. var b = this.cue,
  2057. c = this.player_.currentTime();
  2058. this.selected(b.startTime <= c && c < b.endTime)
  2059. }, b
  2060. }(j["default"]);
  2061. l["default"].registerComponent("ChaptersTrackMenuItem", o), c["default"] = o
  2062. }, {
  2063. 48: 48,
  2064. 5: 5,
  2065. 83: 83
  2066. }
  2067. ],
  2068. 27: [
  2069. function(a, b, c) {
  2070. "use strict";
  2071. function d(a) {
  2072. if (a && a.__esModule) return a;
  2073. var b = {};
  2074. if (null != a)
  2075. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2076. return b["default"] = a, b
  2077. }
  2078. function e(a) {
  2079. return a && a.__esModule ? a : {
  2080. "default": a
  2081. }
  2082. }
  2083. function f(a, b) {
  2084. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2085. }
  2086. function g(a, b) {
  2087. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2088. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2089. }
  2090. function h(a, b) {
  2091. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2092. a.prototype = Object.create(b && b.prototype, {
  2093. constructor: {
  2094. value: a,
  2095. enumerable: !1,
  2096. writable: !0,
  2097. configurable: !0
  2098. }
  2099. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2100. }
  2101. c.__esModule = !0;
  2102. var i = a(30),
  2103. j = e(i),
  2104. k = a(5),
  2105. l = e(k),
  2106. m = a(83),
  2107. n = d(m),
  2108. o = function(a) {
  2109. function b(c, d, e) {
  2110. f(this, b);
  2111. var h = g(this, a.call(this, c, d, e));
  2112. h.el_.setAttribute("aria-label", "Descriptions Menu");
  2113. var i = c.textTracks();
  2114. if (i) {
  2115. var j = n.bind(h, h.handleTracksChange);
  2116. i.addEventListener("change", j), h.on("dispose", function() {
  2117. i.removeEventListener("change", j)
  2118. })
  2119. }
  2120. return h
  2121. }
  2122. return h(b, a), b.prototype.handleTracksChange = function(a) {
  2123. for (var b = this.player().textTracks(), c = !1, d = 0, e = b.length; d < e; d++) {
  2124. var f = b[d];
  2125. if (f.kind !== this.kind_ && "showing" === f.mode) {
  2126. c = !0;
  2127. break
  2128. }
  2129. }
  2130. c ? this.disable() : this.enable()
  2131. }, b.prototype.buildCSSClass = function() {
  2132. return "vjs-descriptions-button " + a.prototype.buildCSSClass.call(this)
  2133. }, b
  2134. }(j["default"]);
  2135. o.prototype.kind_ = "descriptions", o.prototype.controlText_ = "Descriptions", l["default"].registerComponent("DescriptionsButton", o), c["default"] = o
  2136. }, {
  2137. 30: 30,
  2138. 5: 5,
  2139. 83: 83
  2140. }
  2141. ],
  2142. 28: [
  2143. function(a, b, c) {
  2144. "use strict";
  2145. function d(a) {
  2146. return a && a.__esModule ? a : {
  2147. "default": a
  2148. }
  2149. }
  2150. function e(a, b) {
  2151. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2152. }
  2153. function f(a, b) {
  2154. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2155. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2156. }
  2157. function g(a, b) {
  2158. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2159. a.prototype = Object.create(b && b.prototype, {
  2160. constructor: {
  2161. value: a,
  2162. enumerable: !1,
  2163. writable: !0,
  2164. configurable: !0
  2165. }
  2166. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2167. }
  2168. c.__esModule = !0;
  2169. var h = a(31),
  2170. i = d(h),
  2171. j = a(5),
  2172. k = d(j),
  2173. l = function(a) {
  2174. function b(c, d) {
  2175. e(this, b), d.track = {
  2176. player: c,
  2177. kind: d.kind,
  2178. label: d.kind + " off",
  2179. "default": !1,
  2180. mode: "disabled"
  2181. }, d.selectable = !0;
  2182. var g = f(this, a.call(this, c, d));
  2183. return g.selected(!0), g
  2184. }
  2185. return g(b, a), b.prototype.handleTracksChange = function(a) {
  2186. for (var b = this.player().textTracks(), c = !0, d = 0, e = b.length; d < e; d++) {
  2187. var f = b[d];
  2188. if (f.kind === this.track.kind && "showing" === f.mode) {
  2189. c = !1;
  2190. break
  2191. }
  2192. }
  2193. this.selected(c)
  2194. }, b
  2195. }(i["default"]);
  2196. k["default"].registerComponent("OffTextTrackMenuItem", l), c["default"] = l
  2197. }, {
  2198. 31: 31,
  2199. 5: 5
  2200. }
  2201. ],
  2202. 29: [
  2203. function(a, b, c) {
  2204. "use strict";
  2205. function d(a) {
  2206. return a && a.__esModule ? a : {
  2207. "default": a
  2208. }
  2209. }
  2210. function e(a, b) {
  2211. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2212. }
  2213. function f(a, b) {
  2214. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2215. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2216. }
  2217. function g(a, b) {
  2218. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2219. a.prototype = Object.create(b && b.prototype, {
  2220. constructor: {
  2221. value: a,
  2222. enumerable: !1,
  2223. writable: !0,
  2224. configurable: !0
  2225. }
  2226. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2227. }
  2228. c.__esModule = !0;
  2229. var h = a(30),
  2230. i = d(h),
  2231. j = a(5),
  2232. k = d(j),
  2233. l = function(a) {
  2234. function b(c, d, g) {
  2235. e(this, b);
  2236. var h = f(this, a.call(this, c, d, g));
  2237. return h.el_.setAttribute("aria-label", "Subtitles Menu"), h
  2238. }
  2239. return g(b, a), b.prototype.buildCSSClass = function() {
  2240. return "vjs-subtitles-button " + a.prototype.buildCSSClass.call(this)
  2241. }, b
  2242. }(i["default"]);
  2243. l.prototype.kind_ = "subtitles", l.prototype.controlText_ = "Subtitles", k["default"].registerComponent("SubtitlesButton", l), c["default"] = l
  2244. }, {
  2245. 30: 30,
  2246. 5: 5
  2247. }
  2248. ],
  2249. 30: [
  2250. function(a, b, c) {
  2251. "use strict";
  2252. function d(a) {
  2253. return a && a.__esModule ? a : {
  2254. "default": a
  2255. }
  2256. }
  2257. function e(a, b) {
  2258. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2259. }
  2260. function f(a, b) {
  2261. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2262. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2263. }
  2264. function g(a, b) {
  2265. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2266. a.prototype = Object.create(b && b.prototype, {
  2267. constructor: {
  2268. value: a,
  2269. enumerable: !1,
  2270. writable: !0,
  2271. configurable: !0
  2272. }
  2273. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2274. }
  2275. c.__esModule = !0;
  2276. var h = a(36),
  2277. i = d(h),
  2278. j = a(5),
  2279. k = d(j),
  2280. l = a(31),
  2281. m = d(l),
  2282. n = a(28),
  2283. o = d(n),
  2284. p = function(a) {
  2285. function b(c) {
  2286. var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  2287. return e(this, b), d.tracks = c.textTracks(), f(this, a.call(this, c, d))
  2288. }
  2289. return g(b, a), b.prototype.createItems = function() {
  2290. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
  2291. a.push(new o["default"](this.player_, {
  2292. kind: this.kind_
  2293. })), this.hideThreshold_ += 1;
  2294. var b = this.player_.textTracks();
  2295. if (!b) return a;
  2296. for (var c = 0; c < b.length; c++) {
  2297. var d = b[c];
  2298. d.kind === this.kind_ && a.push(new m["default"](this.player_, {
  2299. track: d,
  2300. selectable: !0
  2301. }))
  2302. }
  2303. return a
  2304. }, b
  2305. }(i["default"]);
  2306. k["default"].registerComponent("TextTrackButton", p), c["default"] = p
  2307. }, {
  2308. 28: 28,
  2309. 31: 31,
  2310. 36: 36,
  2311. 5: 5
  2312. }
  2313. ],
  2314. 31: [
  2315. function(a, b, c) {
  2316. "use strict";
  2317. function d(a) {
  2318. if (a && a.__esModule) return a;
  2319. var b = {};
  2320. if (null != a)
  2321. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2322. return b["default"] = a, b
  2323. }
  2324. function e(a) {
  2325. return a && a.__esModule ? a : {
  2326. "default": a
  2327. }
  2328. }
  2329. function f(a, b) {
  2330. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2331. }
  2332. function g(a, b) {
  2333. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2334. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2335. }
  2336. function h(a, b) {
  2337. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2338. a.prototype = Object.create(b && b.prototype, {
  2339. constructor: {
  2340. value: a,
  2341. enumerable: !1,
  2342. writable: !0,
  2343. configurable: !0
  2344. }
  2345. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2346. }
  2347. c.__esModule = !0;
  2348. var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
  2349. return typeof a
  2350. } : function(a) {
  2351. return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
  2352. },
  2353. j = a(48),
  2354. k = e(j),
  2355. l = a(5),
  2356. m = e(l),
  2357. n = a(83),
  2358. o = d(n),
  2359. p = a(95),
  2360. q = e(p),
  2361. r = a(94),
  2362. s = e(r),
  2363. t = function(a) {
  2364. function b(c, d) {
  2365. f(this, b);
  2366. var e = d.track,
  2367. h = c.textTracks();
  2368. d.label = e.label || e.language || "Unknown", d.selected = e["default"] || "showing" === e.mode;
  2369. var j = g(this, a.call(this, c, d));
  2370. if (j.track = e, h) {
  2371. var k = o.bind(j, j.handleTracksChange);
  2372. h.addEventListener("change", k), j.on("dispose", function() {
  2373. h.removeEventListener("change", k)
  2374. })
  2375. }
  2376. if (h && void 0 === h.onchange) {
  2377. var l = void 0;
  2378. j.on(["tap", "click"], function() {
  2379. if ("object" !== i(q["default"].Event)) try {
  2380. l = new q["default"].Event("change")
  2381. } catch (a) {}
  2382. l || (l = s["default"].createEvent("Event"), l.initEvent("change", !0, !0)), h.dispatchEvent(l)
  2383. })
  2384. }
  2385. return j
  2386. }
  2387. return h(b, a), b.prototype.handleClick = function(b) {
  2388. var c = this.track.kind,
  2389. d = this.player_.textTracks();
  2390. if (a.prototype.handleClick.call(this, b), d)
  2391. for (var e = 0; e < d.length; e++) {
  2392. var f = d[e];
  2393. f.kind === c && (f === this.track ? f.mode = "showing" : f.mode = "disabled")
  2394. }
  2395. }, b.prototype.handleTracksChange = function(a) {
  2396. this.selected("showing" === this.track.mode)
  2397. }, b
  2398. }(k["default"]);
  2399. m["default"].registerComponent("TextTrackMenuItem", t), c["default"] = t
  2400. }, {
  2401. 48: 48,
  2402. 5: 5,
  2403. 83: 83,
  2404. 94: 94,
  2405. 95: 95
  2406. }
  2407. ],
  2408. 32: [
  2409. function(a, b, c) {
  2410. "use strict";
  2411. function d(a) {
  2412. if (a && a.__esModule) return a;
  2413. var b = {};
  2414. if (null != a)
  2415. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2416. return b["default"] = a, b
  2417. }
  2418. function e(a) {
  2419. return a && a.__esModule ? a : {
  2420. "default": a
  2421. }
  2422. }
  2423. function f(a, b) {
  2424. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2425. }
  2426. function g(a, b) {
  2427. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2428. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2429. }
  2430. function h(a, b) {
  2431. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2432. a.prototype = Object.create(b && b.prototype, {
  2433. constructor: {
  2434. value: a,
  2435. enumerable: !1,
  2436. writable: !0,
  2437. configurable: !0
  2438. }
  2439. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2440. }
  2441. c.__esModule = !0;
  2442. var i = a(5),
  2443. j = e(i),
  2444. k = a(81),
  2445. l = d(k),
  2446. m = a(84),
  2447. n = e(m),
  2448. o = function(a) {
  2449. function b(c, d) {
  2450. f(this, b);
  2451. var e = g(this, a.call(this, c, d));
  2452. return e.on(c, "timeupdate", e.updateContent), e
  2453. }
  2454. return h(b, a), b.prototype.createEl = function() {
  2455. var b = a.prototype.createEl.call(this, "div", {
  2456. className: "vjs-current-time vjs-time-control vjs-control"
  2457. });
  2458. return this.contentEl_ = l.createEl("div", {
  2459. className: "vjs-current-time-display",
  2460. innerHTML: '<span class="vjs-control-text">Current Time </span>0:00'
  2461. }, {
  2462. "aria-live": "off"
  2463. }), b.appendChild(this.contentEl_), b
  2464. }, b.prototype.updateContent = function(a) {
  2465. var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(),
  2466. c = this.localize("Current Time"),
  2467. d = (0, n["default"])(b, this.player_.duration());
  2468. d !== this.formattedTime_ && (this.formattedTime_ = d, this.contentEl_.innerHTML = '<span class="vjs-control-text">' + c + "</span> " + d)
  2469. }, b
  2470. }(j["default"]);
  2471. j["default"].registerComponent("CurrentTimeDisplay", o), c["default"] = o
  2472. }, {
  2473. 5: 5,
  2474. 81: 81,
  2475. 84: 84
  2476. }
  2477. ],
  2478. 33: [
  2479. function(a, b, c) {
  2480. "use strict";
  2481. function d(a) {
  2482. if (a && a.__esModule) return a;
  2483. var b = {};
  2484. if (null != a)
  2485. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2486. return b["default"] = a, b
  2487. }
  2488. function e(a) {
  2489. return a && a.__esModule ? a : {
  2490. "default": a
  2491. }
  2492. }
  2493. function f(a, b) {
  2494. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2495. }
  2496. function g(a, b) {
  2497. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2498. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2499. }
  2500. function h(a, b) {
  2501. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2502. a.prototype = Object.create(b && b.prototype, {
  2503. constructor: {
  2504. value: a,
  2505. enumerable: !1,
  2506. writable: !0,
  2507. configurable: !0
  2508. }
  2509. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2510. }
  2511. c.__esModule = !0;
  2512. var i = a(5),
  2513. j = e(i),
  2514. k = a(81),
  2515. l = d(k),
  2516. m = a(84),
  2517. n = e(m),
  2518. o = function(a) {
  2519. function b(c, d) {
  2520. f(this, b);
  2521. var e = g(this, a.call(this, c, d));
  2522. return e.on(c, "durationchange", e.updateContent), e.on(c, "timeupdate", e.updateContent), e.on(c, "loadedmetadata", e.updateContent), e
  2523. }
  2524. return h(b, a), b.prototype.createEl = function() {
  2525. var b = a.prototype.createEl.call(this, "div", {
  2526. className: "vjs-duration vjs-time-control vjs-control"
  2527. });
  2528. return this.contentEl_ = l.createEl("div", {
  2529. className: "vjs-duration-display",
  2530. innerHTML: '<span class="vjs-control-text">' + this.localize("Duration Time") + "</span> 0:00"
  2531. }, {
  2532. "aria-live": "off"
  2533. }), b.appendChild(this.contentEl_), b
  2534. }, b.prototype.updateContent = function(a) {
  2535. var b = this.player_.duration();
  2536. if (b && this.duration_ !== b) {
  2537. this.duration_ = b;
  2538. var c = this.localize("Duration Time"),
  2539. d = (0, n["default"])(b);
  2540. this.contentEl_.innerHTML = '<span class="vjs-control-text">' + c + "</span> " + d
  2541. }
  2542. }, b
  2543. }(j["default"]);
  2544. j["default"].registerComponent("DurationDisplay", o), c["default"] = o
  2545. }, {
  2546. 5: 5,
  2547. 81: 81,
  2548. 84: 84
  2549. }
  2550. ],
  2551. 34: [
  2552. function(a, b, c) {
  2553. "use strict";
  2554. function d(a) {
  2555. if (a && a.__esModule) return a;
  2556. var b = {};
  2557. if (null != a)
  2558. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2559. return b["default"] = a, b
  2560. }
  2561. function e(a) {
  2562. return a && a.__esModule ? a : {
  2563. "default": a
  2564. }
  2565. }
  2566. function f(a, b) {
  2567. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2568. }
  2569. function g(a, b) {
  2570. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2571. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2572. }
  2573. function h(a, b) {
  2574. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2575. a.prototype = Object.create(b && b.prototype, {
  2576. constructor: {
  2577. value: a,
  2578. enumerable: !1,
  2579. writable: !0,
  2580. configurable: !0
  2581. }
  2582. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2583. }
  2584. c.__esModule = !0;
  2585. var i = a(5),
  2586. j = e(i),
  2587. k = a(81),
  2588. l = d(k),
  2589. m = a(84),
  2590. n = e(m),
  2591. o = function(a) {
  2592. function b(c, d) {
  2593. f(this, b);
  2594. var e = g(this, a.call(this, c, d));
  2595. return e.on(c, "timeupdate", e.updateContent), e.on(c, "durationchange", e.updateContent), e
  2596. }
  2597. return h(b, a), b.prototype.createEl = function() {
  2598. var b = a.prototype.createEl.call(this, "div", {
  2599. className: "vjs-remaining-time vjs-time-control vjs-control"
  2600. });
  2601. return this.contentEl_ = l.createEl("div", {
  2602. className: "vjs-remaining-time-display",
  2603. innerHTML: '<span class="vjs-control-text">' + this.localize("Remaining Time") + "</span> -0:00"
  2604. }, {
  2605. "aria-live": "off"
  2606. }), b.appendChild(this.contentEl_), b
  2607. }, b.prototype.updateContent = function(a) {
  2608. if (this.player_.duration()) {
  2609. var b = this.localize("Remaining Time"),
  2610. c = (0, n["default"])(this.player_.remainingTime());
  2611. c !== this.formattedTime_ && (this.formattedTime_ = c, this.contentEl_.innerHTML = '<span class="vjs-control-text">' + b + "</span> -" + c)
  2612. }
  2613. }, b
  2614. }(j["default"]);
  2615. j["default"].registerComponent("RemainingTimeDisplay", o), c["default"] = o
  2616. }, {
  2617. 5: 5,
  2618. 81: 81,
  2619. 84: 84
  2620. }
  2621. ],
  2622. 35: [
  2623. function(a, b, c) {
  2624. "use strict";
  2625. function d(a) {
  2626. return a && a.__esModule ? a : {
  2627. "default": a
  2628. }
  2629. }
  2630. function e(a, b) {
  2631. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2632. }
  2633. function f(a, b) {
  2634. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2635. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2636. }
  2637. function g(a, b) {
  2638. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2639. a.prototype = Object.create(b && b.prototype, {
  2640. constructor: {
  2641. value: a,
  2642. enumerable: !1,
  2643. writable: !0,
  2644. configurable: !0
  2645. }
  2646. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2647. }
  2648. c.__esModule = !0;
  2649. var h = a(5),
  2650. i = d(h),
  2651. j = function(a) {
  2652. function b() {
  2653. return e(this, b), f(this, a.apply(this, arguments))
  2654. }
  2655. return g(b, a), b.prototype.createEl = function() {
  2656. return a.prototype.createEl.call(this, "div", {
  2657. className: "vjs-time-control vjs-time-divider",
  2658. innerHTML: "<div><span>/</span></div>"
  2659. })
  2660. }, b
  2661. }(i["default"]);
  2662. i["default"].registerComponent("TimeDivider", j), c["default"] = j
  2663. }, {
  2664. 5: 5
  2665. }
  2666. ],
  2667. 36: [
  2668. function(a, b, c) {
  2669. "use strict";
  2670. function d(a) {
  2671. if (a && a.__esModule) return a;
  2672. var b = {};
  2673. if (null != a)
  2674. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2675. return b["default"] = a, b
  2676. }
  2677. function e(a) {
  2678. return a && a.__esModule ? a : {
  2679. "default": a
  2680. }
  2681. }
  2682. function f(a, b) {
  2683. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2684. }
  2685. function g(a, b) {
  2686. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2687. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2688. }
  2689. function h(a, b) {
  2690. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2691. a.prototype = Object.create(b && b.prototype, {
  2692. constructor: {
  2693. value: a,
  2694. enumerable: !1,
  2695. writable: !0,
  2696. configurable: !0
  2697. }
  2698. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2699. }
  2700. c.__esModule = !0;
  2701. var i = a(47),
  2702. j = e(i),
  2703. k = a(5),
  2704. l = e(k),
  2705. m = a(83),
  2706. n = d(m),
  2707. o = function(a) {
  2708. function b(c, d) {
  2709. f(this, b);
  2710. var e = d.tracks,
  2711. h = g(this, a.call(this, c, d));
  2712. if (h.items.length <= 1 && h.hide(), !e) return g(h);
  2713. var i = n.bind(h, h.update);
  2714. return e.addEventListener("removetrack", i), e.addEventListener("addtrack", i), h.player_.on("dispose", function() {
  2715. e.removeEventListener("removetrack", i), e.removeEventListener("addtrack", i)
  2716. }), h
  2717. }
  2718. return h(b, a), b
  2719. }(j["default"]);
  2720. l["default"].registerComponent("TrackButton", o), c["default"] = o
  2721. }, {
  2722. 47: 47,
  2723. 5: 5,
  2724. 83: 83
  2725. }
  2726. ],
  2727. 37: [
  2728. function(a, b, c) {
  2729. "use strict";
  2730. function d(a) {
  2731. if (a && a.__esModule) return a;
  2732. var b = {};
  2733. if (null != a)
  2734. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2735. return b["default"] = a, b
  2736. }
  2737. function e(a) {
  2738. return a && a.__esModule ? a : {
  2739. "default": a
  2740. }
  2741. }
  2742. function f(a, b) {
  2743. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2744. }
  2745. function g(a, b) {
  2746. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2747. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2748. }
  2749. function h(a, b) {
  2750. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2751. a.prototype = Object.create(b && b.prototype, {
  2752. constructor: {
  2753. value: a,
  2754. enumerable: !1,
  2755. writable: !0,
  2756. configurable: !0
  2757. }
  2758. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2759. }
  2760. c.__esModule = !0;
  2761. var i = a(57),
  2762. j = e(i),
  2763. k = a(5),
  2764. l = e(k),
  2765. m = a(83),
  2766. n = d(m);
  2767. a(39);
  2768. var o = function(a) {
  2769. function b(c, d) {
  2770. f(this, b);
  2771. var e = g(this, a.call(this, c, d));
  2772. return e.on(c, "volumechange", e.updateARIAAttributes), c.ready(n.bind(e, e.updateARIAAttributes)), e
  2773. }
  2774. return h(b, a), b.prototype.createEl = function() {
  2775. return a.prototype.createEl.call(this, "div", {
  2776. className: "vjs-volume-bar vjs-slider-bar"
  2777. }, {
  2778. "aria-label": "volume level"
  2779. })
  2780. }, b.prototype.handleMouseMove = function(a) {
  2781. this.checkMuted(), this.player_.volume(this.calculateDistance(a))
  2782. }, b.prototype.checkMuted = function() {
  2783. this.player_.muted() && this.player_.muted(!1)
  2784. }, b.prototype.getPercent = function() {
  2785. return this.player_.muted() ? 0 : this.player_.volume()
  2786. }, b.prototype.stepForward = function() {
  2787. this.checkMuted(), this.player_.volume(this.player_.volume() + .1)
  2788. }, b.prototype.stepBack = function() {
  2789. this.checkMuted(), this.player_.volume(this.player_.volume() - .1)
  2790. }, b.prototype.updateARIAAttributes = function(a) {
  2791. var b = (100 * this.player_.volume()).toFixed(2);
  2792. this.el_.setAttribute("aria-valuenow", b), this.el_.setAttribute("aria-valuetext", b + "%")
  2793. }, b
  2794. }(j["default"]);
  2795. o.prototype.options_ = {
  2796. children: ["volumeLevel"],
  2797. barName: "volumeLevel"
  2798. }, o.prototype.playerEvent = "volumechange", l["default"].registerComponent("VolumeBar", o), c["default"] = o
  2799. }, {
  2800. 39: 39,
  2801. 5: 5,
  2802. 57: 57,
  2803. 83: 83
  2804. }
  2805. ],
  2806. 38: [
  2807. function(a, b, c) {
  2808. "use strict";
  2809. function d(a) {
  2810. return a && a.__esModule ? a : {
  2811. "default": a
  2812. }
  2813. }
  2814. function e(a, b) {
  2815. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2816. }
  2817. function f(a, b) {
  2818. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2819. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2820. }
  2821. function g(a, b) {
  2822. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2823. a.prototype = Object.create(b && b.prototype, {
  2824. constructor: {
  2825. value: a,
  2826. enumerable: !1,
  2827. writable: !0,
  2828. configurable: !0
  2829. }
  2830. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2831. }
  2832. c.__esModule = !0;
  2833. var h = a(5),
  2834. i = d(h);
  2835. a(37);
  2836. var j = function(a) {
  2837. function b(c, d) {
  2838. e(this, b);
  2839. var g = f(this, a.call(this, c, d));
  2840. return c.tech_ && c.tech_.featuresVolumeControl === !1 && g.addClass("vjs-hidden"), g.on(c, "loadstart", function() {
  2841. c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
  2842. }), g
  2843. }
  2844. return g(b, a), b.prototype.createEl = function() {
  2845. return a.prototype.createEl.call(this, "div", {
  2846. className: "vjs-volume-control vjs-control"
  2847. })
  2848. }, b
  2849. }(i["default"]);
  2850. j.prototype.options_ = {
  2851. children: ["volumeBar"]
  2852. }, i["default"].registerComponent("VolumeControl", j), c["default"] = j
  2853. }, {
  2854. 37: 37,
  2855. 5: 5
  2856. }
  2857. ],
  2858. 39: [
  2859. function(a, b, c) {
  2860. "use strict";
  2861. function d(a) {
  2862. return a && a.__esModule ? a : {
  2863. "default": a
  2864. }
  2865. }
  2866. function e(a, b) {
  2867. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2868. }
  2869. function f(a, b) {
  2870. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2871. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2872. }
  2873. function g(a, b) {
  2874. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2875. a.prototype = Object.create(b && b.prototype, {
  2876. constructor: {
  2877. value: a,
  2878. enumerable: !1,
  2879. writable: !0,
  2880. configurable: !0
  2881. }
  2882. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2883. }
  2884. c.__esModule = !0;
  2885. var h = a(5),
  2886. i = d(h),
  2887. j = function(a) {
  2888. function b() {
  2889. return e(this, b), f(this, a.apply(this, arguments))
  2890. }
  2891. return g(b, a), b.prototype.createEl = function() {
  2892. return a.prototype.createEl.call(this, "div", {
  2893. className: "vjs-volume-level",
  2894. innerHTML: '<span class="vjs-control-text"></span>'
  2895. })
  2896. }, b
  2897. }(i["default"]);
  2898. i["default"].registerComponent("VolumeLevel", j), c["default"] = j
  2899. }, {
  2900. 5: 5
  2901. }
  2902. ],
  2903. 40: [
  2904. function(a, b, c) {
  2905. "use strict";
  2906. function d(a) {
  2907. return a && a.__esModule ? a : {
  2908. "default": a
  2909. }
  2910. }
  2911. function e(a) {
  2912. if (a && a.__esModule) return a;
  2913. var b = {};
  2914. if (null != a)
  2915. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  2916. return b["default"] = a, b
  2917. }
  2918. function f(a, b) {
  2919. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  2920. }
  2921. function g(a, b) {
  2922. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  2923. return !b || "object" != typeof b && "function" != typeof b ? a : b
  2924. }
  2925. function h(a, b) {
  2926. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  2927. a.prototype = Object.create(b && b.prototype, {
  2928. constructor: {
  2929. value: a,
  2930. enumerable: !1,
  2931. writable: !0,
  2932. configurable: !0
  2933. }
  2934. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  2935. }
  2936. c.__esModule = !0;
  2937. var i = a(83),
  2938. j = e(i),
  2939. k = a(5),
  2940. l = d(k),
  2941. m = a(54),
  2942. n = d(m),
  2943. o = a(53),
  2944. p = d(o),
  2945. q = a(11),
  2946. r = d(q),
  2947. s = a(37),
  2948. t = d(s),
  2949. u = function(a) {
  2950. function b(c) {
  2951. function d() {
  2952. c.tech_ && c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
  2953. }
  2954. var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  2955. f(this, b), void 0 === e.inline && (e.inline = !0), void 0 === e.vertical && (e.inline ? e.vertical = !1 : e.vertical = !0), e.volumeBar = e.volumeBar || {}, e.volumeBar.vertical = !!e.vertical;
  2956. var h = g(this, a.call(this, c, e));
  2957. return h.on(c, "volumechange", h.volumeUpdate), h.on(c, "loadstart", h.volumeUpdate), d.call(h), h.on(c, "loadstart", d), h.on(h.volumeBar, ["slideractive", "focus"], function() {
  2958. this.addClass("vjs-slider-active")
  2959. }), h.on(h.volumeBar, ["sliderinactive", "blur"], function() {
  2960. this.removeClass("vjs-slider-active")
  2961. }), h.on(h.volumeBar, ["focus"], function() {
  2962. this.addClass("vjs-lock-showing")
  2963. }), h.on(h.volumeBar, ["blur"], function() {
  2964. this.removeClass("vjs-lock-showing")
  2965. }), h
  2966. }
  2967. return h(b, a), b.prototype.buildCSSClass = function() {
  2968. var b = "";
  2969. return b = this.options_.vertical ? "vjs-volume-menu-button-vertical" : "vjs-volume-menu-button-horizontal", "vjs-volume-menu-button " + a.prototype.buildCSSClass.call(this) + " " + b
  2970. }, b.prototype.createPopup = function() {
  2971. var a = new n["default"](this.player_, {
  2972. contentElType: "div"
  2973. }),
  2974. b = new t["default"](this.player_, this.options_.volumeBar);
  2975. return a.addChild(b), this.menuContent = a, this.volumeBar = b, this.attachVolumeBarEvents(), a
  2976. }, b.prototype.handleClick = function(b) {
  2977. r["default"].prototype.handleClick.call(this), a.prototype.handleClick.call(this)
  2978. }, b.prototype.attachVolumeBarEvents = function() {
  2979. this.menuContent.on(["mousedown", "touchdown"], j.bind(this, this.handleMouseDown))
  2980. }, b.prototype.handleMouseDown = function(a) {
  2981. this.on(["mousemove", "touchmove"], j.bind(this.volumeBar, this.volumeBar.handleMouseMove)), this.on(this.el_.ownerDocument, ["mouseup", "touchend"], this.handleMouseUp)
  2982. }, b.prototype.handleMouseUp = function(a) {
  2983. this.off(["mousemove", "touchmove"], j.bind(this.volumeBar, this.volumeBar.handleMouseMove))
  2984. }, b
  2985. }(p["default"]);
  2986. u.prototype.volumeUpdate = r["default"].prototype.update, u.prototype.controlText_ = "Mute", l["default"].registerComponent("VolumeMenuButton", u), c["default"] = u
  2987. }, {
  2988. 11: 11,
  2989. 37: 37,
  2990. 5: 5,
  2991. 53: 53,
  2992. 54: 54,
  2993. 83: 83
  2994. }
  2995. ],
  2996. 41: [
  2997. function(a, b, c) {
  2998. "use strict";
  2999. function d(a) {
  3000. return a && a.__esModule ? a : {
  3001. "default": a
  3002. }
  3003. }
  3004. function e(a, b) {
  3005. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3006. }
  3007. function f(a, b) {
  3008. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3009. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3010. }
  3011. function g(a, b) {
  3012. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3013. a.prototype = Object.create(b && b.prototype, {
  3014. constructor: {
  3015. value: a,
  3016. enumerable: !1,
  3017. writable: !0,
  3018. configurable: !0
  3019. }
  3020. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3021. }
  3022. c.__esModule = !0;
  3023. var h = a(5),
  3024. i = d(h),
  3025. j = a(50),
  3026. k = d(j),
  3027. l = a(87),
  3028. m = d(l),
  3029. n = function(a) {
  3030. function b(c, d) {
  3031. e(this, b);
  3032. var g = f(this, a.call(this, c, d));
  3033. return g.on(c, "error", g.open), g
  3034. }
  3035. return g(b, a), b.prototype.buildCSSClass = function() {
  3036. return "vjs-error-display " + a.prototype.buildCSSClass.call(this)
  3037. }, b.prototype.content = function() {
  3038. var a = this.player().error();
  3039. return a ? this.localize(a.message) : ""
  3040. }, b
  3041. }(k["default"]);
  3042. n.prototype.options_ = (0, m["default"])(k["default"].prototype.options_, {
  3043. fillAlways: !0,
  3044. temporary: !1,
  3045. uncloseable: !0
  3046. }), i["default"].registerComponent("ErrorDisplay", n), c["default"] = n
  3047. }, {
  3048. 5: 5,
  3049. 50: 50,
  3050. 87: 87
  3051. }
  3052. ],
  3053. 42: [
  3054. function(a, b, c) {
  3055. "use strict";
  3056. function d(a) {
  3057. if (a && a.__esModule) return a;
  3058. var b = {};
  3059. if (null != a)
  3060. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  3061. return b["default"] = a, b
  3062. }
  3063. c.__esModule = !0;
  3064. var e = a(82),
  3065. f = d(e),
  3066. g = function() {};
  3067. g.prototype.allowedEvents_ = {}, g.prototype.on = function(a, b) {
  3068. var c = this.addEventListener;
  3069. this.addEventListener = function() {}, f.on(this, a, b), this.addEventListener = c
  3070. }, g.prototype.addEventListener = g.prototype.on, g.prototype.off = function(a, b) {
  3071. f.off(this, a, b)
  3072. }, g.prototype.removeEventListener = g.prototype.off, g.prototype.one = function(a, b) {
  3073. var c = this.addEventListener;
  3074. this.addEventListener = function() {}, f.one(this, a, b), this.addEventListener = c
  3075. }, g.prototype.trigger = function(a) {
  3076. var b = a.type || a;
  3077. "string" == typeof a && (a = {
  3078. type: b
  3079. }), a = f.fixEvent(a), this.allowedEvents_[b] && this["on" + b] && this["on" + b](a), f.trigger(this, a)
  3080. }, g.prototype.dispatchEvent = g.prototype.trigger, c["default"] = g
  3081. }, {
  3082. 82: 82
  3083. }
  3084. ],
  3085. 43: [
  3086. function(a, b, c) {
  3087. "use strict";
  3088. function d(a) {
  3089. return a && a.__esModule ? a : {
  3090. "default": a
  3091. }
  3092. }
  3093. c.__esModule = !0;
  3094. var e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
  3095. return typeof a
  3096. } : function(a) {
  3097. return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
  3098. },
  3099. f = a(86),
  3100. g = d(f),
  3101. h = a(88),
  3102. i = function(a, b) {
  3103. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + (void 0 === b ? "undefined" : e(b)));
  3104. a.prototype = Object.create(b && b.prototype, {
  3105. constructor: {
  3106. value: a,
  3107. enumerable: !1,
  3108. writable: !0,
  3109. configurable: !0
  3110. }
  3111. }), b && (a.super_ = b)
  3112. },
  3113. j = function(a) {
  3114. var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  3115. c = function() {
  3116. a.apply(this, arguments)
  3117. },
  3118. d = {};
  3119. (0, h.isObject)(b) ? ("function" == typeof b.init && (g["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."), b.constructor = b.init), b.constructor !== Object.prototype.constructor && (c = b.constructor), d = b) : "function" == typeof b && (c = b), i(c, a);
  3120. for (var e in d) d.hasOwnProperty(e) && (c.prototype[e] = d[e]);
  3121. return c
  3122. };
  3123. c["default"] = j
  3124. }, {
  3125. 86: 86,
  3126. 88: 88
  3127. }
  3128. ],
  3129. 44: [
  3130. function(a, b, c) {
  3131. "use strict";
  3132. function d(a) {
  3133. return a && a.__esModule ? a : {
  3134. "default": a
  3135. }
  3136. }
  3137. c.__esModule = !0;
  3138. for (var e = a(94), f = d(e), g = {}, h = [
  3139. ["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"],
  3140. ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"],
  3141. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"],
  3142. ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"],
  3143. ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]
  3144. ], i = h[0], j = void 0, k = 0; k < h.length; k++)
  3145. if (h[k][1] in f["default"]) {
  3146. j = h[k];
  3147. break
  3148. }
  3149. if (j)
  3150. for (var l = 0; l < j.length; l++) g[i[l]] = j[l];
  3151. c["default"] = g
  3152. }, {
  3153. 94: 94
  3154. }
  3155. ],
  3156. 45: [
  3157. function(a, b, c) {
  3158. "use strict";
  3159. function d(a) {
  3160. return a && a.__esModule ? a : {
  3161. "default": a
  3162. }
  3163. }
  3164. function e(a, b) {
  3165. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3166. }
  3167. function f(a, b) {
  3168. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3169. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3170. }
  3171. function g(a, b) {
  3172. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3173. a.prototype = Object.create(b && b.prototype, {
  3174. constructor: {
  3175. value: a,
  3176. enumerable: !1,
  3177. writable: !0,
  3178. configurable: !0
  3179. }
  3180. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3181. }
  3182. c.__esModule = !0;
  3183. var h = a(5),
  3184. i = d(h),
  3185. j = function(a) {
  3186. function b() {
  3187. return e(this, b), f(this, a.apply(this, arguments))
  3188. }
  3189. return g(b, a), b.prototype.createEl = function() {
  3190. return a.prototype.createEl.call(this, "div", {
  3191. className: "vjs-loading-spinner",
  3192. dir: "ltr"
  3193. })
  3194. }, b
  3195. }(i["default"]);
  3196. i["default"].registerComponent("LoadingSpinner", j), c["default"] = j
  3197. }, {
  3198. 5: 5
  3199. }
  3200. ],
  3201. 46: [
  3202. function(a, b, c) {
  3203. "use strict";
  3204. function d(a) {
  3205. if (a instanceof d) return a;
  3206. "number" == typeof a ? this.code = a : "string" == typeof a ? this.message = a : (0, e.isObject)(a) && ("number" == typeof a.code && (this.code = a.code), (0, e.assign)(this, a)), this.message || (this.message = d.defaultMessages[this.code] || "")
  3207. }
  3208. c.__esModule = !0;
  3209. var e = a(88);
  3210. d.prototype.code = 0, d.prototype.message = "", d.prototype.status = null, d.errorTypes = ["MEDIA_ERR_CUSTOM", "MEDIA_ERR_ABORTED", "MEDIA_ERR_NETWORK", "MEDIA_ERR_DECODE", "MEDIA_ERR_SRC_NOT_SUPPORTED", "MEDIA_ERR_ENCRYPTED"], d.defaultMessages = {
  3211. 1: "You aborted the media playback",
  3212. 2: "A network error caused the media download to fail part-way.",
  3213. 3: "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",
  3214. 4: "The media could not be loaded, either because the server or network failed or because the format is not supported.",
  3215. 5: "The media is encrypted and we do not have the keys to decrypt it."
  3216. };
  3217. for (var f = 0; f < d.errorTypes.length; f++) d[d.errorTypes[f]] = f, d.prototype[d.errorTypes[f]] = f;
  3218. c["default"] = d
  3219. }, {
  3220. 88: 88
  3221. }
  3222. ],
  3223. 47: [
  3224. function(a, b, c) {
  3225. "use strict";
  3226. function d(a) {
  3227. if (a && a.__esModule) return a;
  3228. var b = {};
  3229. if (null != a)
  3230. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  3231. return b["default"] = a, b
  3232. }
  3233. function e(a) {
  3234. return a && a.__esModule ? a : {
  3235. "default": a
  3236. }
  3237. }
  3238. function f(a, b) {
  3239. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3240. }
  3241. function g(a, b) {
  3242. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3243. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3244. }
  3245. function h(a, b) {
  3246. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3247. a.prototype = Object.create(b && b.prototype, {
  3248. constructor: {
  3249. value: a,
  3250. enumerable: !1,
  3251. writable: !0,
  3252. configurable: !0
  3253. }
  3254. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3255. }
  3256. c.__esModule = !0;
  3257. var i = a(3),
  3258. j = e(i),
  3259. k = a(5),
  3260. l = e(k),
  3261. m = a(49),
  3262. n = e(m),
  3263. o = a(81),
  3264. p = d(o),
  3265. q = a(83),
  3266. r = d(q),
  3267. s = a(91),
  3268. t = e(s),
  3269. u = function(a) {
  3270. function b(c) {
  3271. var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  3272. f(this, b);
  3273. var e = g(this, a.call(this, c, d));
  3274. return e.update(), e.enabled_ = !0, e.el_.setAttribute("aria-haspopup", "true"), e.el_.setAttribute("role", "menuitem"), e.on("keydown", e.handleSubmenuKeyPress), e
  3275. }
  3276. return h(b, a), b.prototype.update = function() {
  3277. var a = this.createMenu();
  3278. this.menu && this.removeChild(this.menu), this.menu = a, this.addChild(a), this.buttonPressed_ = !1, this.el_.setAttribute("aria-expanded", "false"), this.items && this.items.length <= this.hideThreshold_ ? this.hide() : this.show()
  3279. }, b.prototype.createMenu = function() {
  3280. var a = new n["default"](this.player_);
  3281. if (this.hideThreshold_ = 0, this.options_.title) {
  3282. var b = p.createEl("li", {
  3283. className: "vjs-menu-title",
  3284. innerHTML: (0, t["default"])(this.options_.title),
  3285. tabIndex: -1
  3286. });
  3287. this.hideThreshold_ += 1, a.children_.unshift(b), p.insertElFirst(b, a.contentEl())
  3288. }
  3289. if (this.items = this.createItems(), this.items)
  3290. for (var c = 0; c < this.items.length; c++) a.addItem(this.items[c]);
  3291. return a
  3292. }, b.prototype.createItems = function() {}, b.prototype.createEl = function() {
  3293. return a.prototype.createEl.call(this, "div", {
  3294. className: this.buildCSSClass()
  3295. })
  3296. }, b.prototype.buildCSSClass = function() {
  3297. var b = "vjs-menu-button";
  3298. return b += this.options_.inline === !0 ? "-inline" : "-popup", "vjs-menu-button " + b + " " + a.prototype.buildCSSClass.call(this)
  3299. }, b.prototype.handleClick = function(a) {
  3300. this.one(this.menu.contentEl(), "mouseleave", r.bind(this, function(a) {
  3301. this.unpressButton(), this.el_.blur()
  3302. })), this.buttonPressed_ ? this.unpressButton() : this.pressButton()
  3303. }, b.prototype.handleKeyPress = function(b) {
  3304. 27 === b.which || 9 === b.which ? (this.buttonPressed_ && this.unpressButton(), 9 !== b.which && b.preventDefault()) : 38 === b.which || 40 === b.which ? this.buttonPressed_ || (this.pressButton(), b.preventDefault()) : a.prototype.handleKeyPress.call(this, b)
  3305. }, b.prototype.handleSubmenuKeyPress = function(a) {
  3306. 27 !== a.which && 9 !== a.which || (this.buttonPressed_ && this.unpressButton(), 9 !== a.which && a.preventDefault())
  3307. }, b.prototype.pressButton = function() {
  3308. this.enabled_ && (this.buttonPressed_ = !0, this.menu.lockShowing(), this.el_.setAttribute("aria-expanded", "true"), this.menu.focus())
  3309. }, b.prototype.unpressButton = function() {
  3310. this.enabled_ && (this.buttonPressed_ = !1, this.menu.unlockShowing(), this.el_.setAttribute("aria-expanded", "false"), this.el_.focus())
  3311. }, b.prototype.disable = function() {
  3312. return this.buttonPressed_ = !1, this.menu.unlockShowing(), this.el_.setAttribute("aria-expanded", "false"), this.enabled_ = !1, a.prototype.disable.call(this)
  3313. }, b.prototype.enable = function() {
  3314. return this.enabled_ = !0, a.prototype.enable.call(this)
  3315. }, b
  3316. }(j["default"]);
  3317. l["default"].registerComponent("MenuButton", u), c["default"] = u
  3318. }, {
  3319. 3: 3,
  3320. 49: 49,
  3321. 5: 5,
  3322. 81: 81,
  3323. 83: 83,
  3324. 91: 91
  3325. }
  3326. ],
  3327. 48: [
  3328. function(a, b, c) {
  3329. "use strict";
  3330. function d(a) {
  3331. return a && a.__esModule ? a : {
  3332. "default": a
  3333. }
  3334. }
  3335. function e(a, b) {
  3336. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3337. }
  3338. function f(a, b) {
  3339. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3340. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3341. }
  3342. function g(a, b) {
  3343. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3344. a.prototype = Object.create(b && b.prototype, {
  3345. constructor: {
  3346. value: a,
  3347. enumerable: !1,
  3348. writable: !0,
  3349. configurable: !0
  3350. }
  3351. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3352. }
  3353. c.__esModule = !0;
  3354. var h = a(3),
  3355. i = d(h),
  3356. j = a(5),
  3357. k = d(j),
  3358. l = a(88),
  3359. m = function(a) {
  3360. function b(c, d) {
  3361. e(this, b);
  3362. var g = f(this, a.call(this, c, d));
  3363. return g.selectable = d.selectable, g.selected(d.selected), g.selectable ? g.el_.setAttribute("role", "menuitemcheckbox") : g.el_.setAttribute("role", "menuitem"), g
  3364. }
  3365. return g(b, a), b.prototype.createEl = function(b, c, d) {
  3366. return this.nonIconControl = !0, a.prototype.createEl.call(this, "li", (0, l.assign)({
  3367. className: "vjs-menu-item",
  3368. innerHTML: this.localize(this.options_.label),
  3369. tabIndex: -1
  3370. }, c), d)
  3371. }, b.prototype.handleClick = function(a) {
  3372. this.selected(!0)
  3373. }, b.prototype.selected = function(a) {
  3374. this.selectable && (a ? (this.addClass("vjs-selected"), this.el_.setAttribute("aria-checked", "true"), this.controlText(", selected")) : (this.removeClass("vjs-selected"), this.el_.setAttribute("aria-checked", "false"), this.controlText(" ")))
  3375. }, b
  3376. }(i["default"]);
  3377. k["default"].registerComponent("MenuItem", m), c["default"] = m
  3378. }, {
  3379. 3: 3,
  3380. 5: 5,
  3381. 88: 88
  3382. }
  3383. ],
  3384. 49: [
  3385. function(a, b, c) {
  3386. "use strict";
  3387. function d(a) {
  3388. if (a && a.__esModule) return a;
  3389. var b = {};
  3390. if (null != a)
  3391. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  3392. return b["default"] = a, b
  3393. }
  3394. function e(a) {
  3395. return a && a.__esModule ? a : {
  3396. "default": a
  3397. }
  3398. }
  3399. function f(a, b) {
  3400. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3401. }
  3402. function g(a, b) {
  3403. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3404. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3405. }
  3406. function h(a, b) {
  3407. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3408. a.prototype = Object.create(b && b.prototype, {
  3409. constructor: {
  3410. value: a,
  3411. enumerable: !1,
  3412. writable: !0,
  3413. configurable: !0
  3414. }
  3415. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3416. }
  3417. c.__esModule = !0;
  3418. var i = a(5),
  3419. j = e(i),
  3420. k = a(81),
  3421. l = d(k),
  3422. m = a(83),
  3423. n = d(m),
  3424. o = a(82),
  3425. p = d(o),
  3426. q = function(a) {
  3427. function b(c, d) {
  3428. f(this, b);
  3429. var e = g(this, a.call(this, c, d));
  3430. return e.focusedChild_ = -1, e.on("keydown", e.handleKeyPress), e
  3431. }
  3432. return h(b, a), b.prototype.addItem = function(a) {
  3433. this.addChild(a), a.on("click", n.bind(this, function(a) {
  3434. this.unlockShowing()
  3435. }))
  3436. }, b.prototype.createEl = function() {
  3437. var b = this.options_.contentElType || "ul";
  3438. this.contentEl_ = l.createEl(b, {
  3439. className: "vjs-menu-content"
  3440. }), this.contentEl_.setAttribute("role", "menu");
  3441. var c = a.prototype.createEl.call(this, "div", {
  3442. append: this.contentEl_,
  3443. className: "vjs-menu"
  3444. });
  3445. return c.setAttribute("role", "presentation"), c.appendChild(this.contentEl_), p.on(c, "click", function(a) {
  3446. a.preventDefault(), a.stopImmediatePropagation()
  3447. }), c
  3448. }, b.prototype.handleKeyPress = function(a) {
  3449. 37 === a.which || 40 === a.which ? (a.preventDefault(), this.stepForward()) : 38 !== a.which && 39 !== a.which || (a.preventDefault(), this.stepBack())
  3450. }, b.prototype.stepForward = function() {
  3451. var a = 0;
  3452. void 0 !== this.focusedChild_ && (a = this.focusedChild_ + 1), this.focus(a)
  3453. }, b.prototype.stepBack = function() {
  3454. var a = 0;
  3455. void 0 !== this.focusedChild_ && (a = this.focusedChild_ - 1), this.focus(a)
  3456. }, b.prototype.focus = function() {
  3457. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
  3458. b = this.children().slice();
  3459. b.length && b[0].className && /vjs-menu-title/.test(b[0].className) && b.shift(), b.length > 0 && (a < 0 ? a = 0 : a >= b.length && (a = b.length - 1), this.focusedChild_ = a, b[a].el_.focus())
  3460. }, b
  3461. }(j["default"]);
  3462. j["default"].registerComponent("Menu", q), c["default"] = q
  3463. }, {
  3464. 5: 5,
  3465. 81: 81,
  3466. 82: 82,
  3467. 83: 83
  3468. }
  3469. ],
  3470. 50: [
  3471. function(a, b, c) {
  3472. "use strict";
  3473. function d(a) {
  3474. return a && a.__esModule ? a : {
  3475. "default": a
  3476. }
  3477. }
  3478. function e(a) {
  3479. if (a && a.__esModule) return a;
  3480. var b = {};
  3481. if (null != a)
  3482. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  3483. return b["default"] = a, b
  3484. }
  3485. function f(a, b) {
  3486. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3487. }
  3488. function g(a, b) {
  3489. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3490. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3491. }
  3492. function h(a, b) {
  3493. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3494. a.prototype = Object.create(b && b.prototype, {
  3495. constructor: {
  3496. value: a,
  3497. enumerable: !1,
  3498. writable: !0,
  3499. configurable: !0
  3500. }
  3501. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3502. }
  3503. c.__esModule = !0;
  3504. var i = a(81),
  3505. j = e(i),
  3506. k = a(83),
  3507. l = e(k),
  3508. m = a(5),
  3509. n = d(m),
  3510. o = function(a) {
  3511. function b(c, d) {
  3512. f(this, b);
  3513. var e = g(this, a.call(this, c, d));
  3514. return e.opened_ = e.hasBeenOpened_ = e.hasBeenFilled_ = !1, e.closeable(!e.options_.uncloseable), e.content(e.options_.content), e.contentEl_ = j.createEl("div", {
  3515. className: "vjs-modal-dialog-content"
  3516. }, {
  3517. role: "document"
  3518. }), e.descEl_ = j.createEl("p", {
  3519. className: "vjs-modal-dialog-description vjs-offscreen",
  3520. id: e.el().getAttribute("aria-describedby")
  3521. }), j.textContent(e.descEl_, e.description()), e.el_.appendChild(e.descEl_), e.el_.appendChild(e.contentEl_), e
  3522. }
  3523. return h(b, a), b.prototype.createEl = function() {
  3524. return a.prototype.createEl.call(this, "div", {
  3525. className: this.buildCSSClass(),
  3526. tabIndex: -1
  3527. }, {
  3528. "aria-describedby": this.id() + "_description",
  3529. "aria-hidden": "true",
  3530. "aria-label": this.label(),
  3531. role: "dialog"
  3532. })
  3533. }, b.prototype.buildCSSClass = function() {
  3534. return "vjs-modal-dialog vjs-hidden " + a.prototype.buildCSSClass.call(this)
  3535. }, b.prototype.handleKeyPress = function(a) {
  3536. 27 === a.which && this.closeable() && this.close()
  3537. }, b.prototype.label = function() {
  3538. return this.options_.label || this.localize("Modal Window")
  3539. }, b.prototype.description = function() {
  3540. var a = this.options_.description || this.localize("This is a modal window.");
  3541. return this.closeable() && (a += " " + this.localize("This modal can be closed by pressing the Escape key or activating the close button.")), a
  3542. }, b.prototype.open = function() {
  3543. if (!this.opened_) {
  3544. var a = this.player();
  3545. this.trigger("beforemodalopen"), this.opened_ = !0, (this.options_.fillAlways || !this.hasBeenOpened_ && !this.hasBeenFilled_) && this.fill(), this.wasPlaying_ = !a.paused(), this.wasPlaying_ && a.pause(), this.closeable() && this.on(this.el_.ownerDocument, "keydown", l.bind(this, this.handleKeyPress)), a.controls(!1), this.show(), this.el().setAttribute("aria-hidden", "false"), this.trigger("modalopen"), this.hasBeenOpened_ = !0
  3546. }
  3547. return this
  3548. }, b.prototype.opened = function(a) {
  3549. return "boolean" == typeof a && this[a ? "open" : "close"](), this.opened_
  3550. }, b.prototype.close = function() {
  3551. if (this.opened_) {
  3552. var a = this.player();
  3553. this.trigger("beforemodalclose"), this.opened_ = !1, this.wasPlaying_ && a.play(), this.closeable() && this.off(this.el_.ownerDocument, "keydown", l.bind(this, this.handleKeyPress)), a.controls(!0), this.hide(), this.el().setAttribute("aria-hidden", "true"), this.trigger("modalclose"), this.options_.temporary && this.dispose()
  3554. }
  3555. return this
  3556. }, b.prototype.closeable = function c(a) {
  3557. if ("boolean" == typeof a) {
  3558. var c = this.closeable_ = !!a,
  3559. b = this.getChild("closeButton");
  3560. if (c && !b) {
  3561. var d = this.contentEl_;
  3562. this.contentEl_ = this.el_, b = this.addChild("closeButton", {
  3563. controlText: "Close Modal Dialog"
  3564. }), this.contentEl_ = d, this.on(b, "close", this.close)
  3565. }!c && b && (this.off(b, "close", this.close), this.removeChild(b), b.dispose())
  3566. }
  3567. return this.closeable_
  3568. }, b.prototype.fill = function() {
  3569. return this.fillWith(this.content())
  3570. }, b.prototype.fillWith = function(a) {
  3571. var b = this.contentEl(),
  3572. c = b.parentNode,
  3573. d = b.nextSibling;
  3574. return this.trigger("beforemodalfill"), this.hasBeenFilled_ = !0,
  3575. c.removeChild(b), this.empty(), j.insertContent(b, a), this.trigger("modalfill"), d ? c.insertBefore(b, d) : c.appendChild(b), this
  3576. }, b.prototype.empty = function() {
  3577. return this.trigger("beforemodalempty"), j.emptyEl(this.contentEl()), this.trigger("modalempty"), this
  3578. }, b.prototype.content = function(a) {
  3579. return void 0 !== a && (this.content_ = a), this.content_
  3580. }, b
  3581. }(n["default"]);
  3582. o.prototype.options_ = {
  3583. temporary: !0
  3584. }, n["default"].registerComponent("ModalDialog", o), c["default"] = o
  3585. }, {
  3586. 5: 5,
  3587. 81: 81,
  3588. 83: 83
  3589. }
  3590. ],
  3591. 51: [
  3592. function(a, b, c) {
  3593. "use strict";
  3594. function d(a) {
  3595. if (a && a.__esModule) return a;
  3596. var b = {};
  3597. if (null != a)
  3598. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  3599. return b["default"] = a, b
  3600. }
  3601. function e(a) {
  3602. return a && a.__esModule ? a : {
  3603. "default": a
  3604. }
  3605. }
  3606. function f(a, b) {
  3607. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  3608. }
  3609. function g(a, b) {
  3610. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  3611. return !b || "object" != typeof b && "function" != typeof b ? a : b
  3612. }
  3613. function h(a, b) {
  3614. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  3615. a.prototype = Object.create(b && b.prototype, {
  3616. constructor: {
  3617. value: a,
  3618. enumerable: !1,
  3619. writable: !0,
  3620. configurable: !0
  3621. }
  3622. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  3623. }
  3624. c.__esModule = !0;
  3625. var i = a(5),
  3626. j = e(i),
  3627. k = a(94),
  3628. l = e(k),
  3629. m = a(95),
  3630. n = e(m),
  3631. o = a(82),
  3632. p = d(o),
  3633. q = a(81),
  3634. r = d(q),
  3635. s = a(83),
  3636. t = d(s),
  3637. u = a(85),
  3638. v = d(u),
  3639. w = a(78),
  3640. x = d(w),
  3641. y = a(86),
  3642. z = e(y),
  3643. A = a(91),
  3644. B = e(A),
  3645. C = a(90),
  3646. D = a(79),
  3647. E = a(89),
  3648. F = d(E),
  3649. G = a(44),
  3650. H = e(G),
  3651. I = a(46),
  3652. J = e(I),
  3653. K = a(97),
  3654. L = e(K),
  3655. M = a(88),
  3656. N = a(87),
  3657. O = e(N),
  3658. P = a(69),
  3659. Q = e(P),
  3660. R = a(50),
  3661. S = e(R),
  3662. T = a(62),
  3663. U = e(T),
  3664. V = a(63),
  3665. W = e(V),
  3666. X = a(76),
  3667. Y = e(X);
  3668. a(61), a(59), a(55), a(68), a(45), a(1), a(4), a(8), a(41), a(71), a(60);
  3669. var Z = ["progress", "abort", "suspend", "emptied", "stalled", "loadedmetadata", "loadeddata", "timeupdate", "ratechange", "volumechange", "texttrackchange"],
  3670. $ = function(a) {
  3671. function b(c, d, e) {
  3672. if (f(this, b), c.id = c.id || "vjs_video_" + v.newGUID(), d = (0, M.assign)(b.getTagSettings(c), d), d.initChildren = !1, d.createEl = !1, d.reportTouchActivity = !1, !d.language)
  3673. if ("function" == typeof c.closest) {
  3674. var h = c.closest("[lang]");
  3675. h && (d.language = h.getAttribute("lang"))
  3676. } else
  3677. for (var i = c; i && 1 === i.nodeType;) {
  3678. if (r.getElAttributes(i).hasOwnProperty("lang")) {
  3679. d.language = i.getAttribute("lang");
  3680. break
  3681. }
  3682. i = i.parentNode
  3683. }
  3684. var j = g(this, a.call(this, null, d, e));
  3685. if (!j.options_ || !j.options_.techOrder || !j.options_.techOrder.length) throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");
  3686. if (j.tag = c, j.tagAttributes = c && r.getElAttributes(c), j.language(j.options_.language), d.languages) {
  3687. var k = {};
  3688. Object.getOwnPropertyNames(d.languages).forEach(function(a) {
  3689. k[a.toLowerCase()] = d.languages[a]
  3690. }), j.languages_ = k
  3691. } else j.languages_ = b.prototype.options_.languages;
  3692. j.cache_ = {}, j.poster_ = d.poster || "", j.controls_ = !!d.controls, c.controls = !1, j.scrubbing_ = !1, j.el_ = j.createEl();
  3693. var l = (0, O["default"])(j.options_);
  3694. if (d.plugins) {
  3695. var m = d.plugins;
  3696. Object.getOwnPropertyNames(m).forEach(function(a) {
  3697. "function" == typeof this[a] ? this[a](m[a]) : z["default"].error("Unable to find plugin:", a)
  3698. }, j)
  3699. }
  3700. return j.options_.playerOptions = l, j.initChildren(), j.isAudio("audio" === c.nodeName.toLowerCase()), j.controls() ? j.addClass("vjs-controls-enabled") : j.addClass("vjs-controls-disabled"), j.el_.setAttribute("role", "region"), j.isAudio() ? j.el_.setAttribute("aria-label", "audio player") : j.el_.setAttribute("aria-label", "video player"), j.isAudio() && j.addClass("vjs-audio"), j.flexNotSupported_() && j.addClass("vjs-no-flex"), x.IS_IOS || j.addClass("vjs-workinghover"), b.players[j.id_] = j, j.userActive(!0), j.reportUserActivity(), j.listenForUserActivity_(), j.on("fullscreenchange", j.handleFullscreenChange_), j.on("stageclick", j.handleStageClick_), j
  3701. }
  3702. return h(b, a), b.prototype.dispose = function() {
  3703. this.trigger("dispose"), this.off("dispose"), this.styleEl_ && this.styleEl_.parentNode && this.styleEl_.parentNode.removeChild(this.styleEl_), b.players[this.id_] = null, this.tag && this.tag.player && (this.tag.player = null), this.el_ && this.el_.player && (this.el_.player = null), this.tech_ && this.tech_.dispose(), a.prototype.dispose.call(this)
  3704. }, b.prototype.createEl = function() {
  3705. var b = this.tag,
  3706. c = void 0,
  3707. d = this.playerElIngest_ = b.parentNode && b.parentNode.hasAttribute && b.parentNode.hasAttribute("data-vjs-player");
  3708. c = this.el_ = d ? b.parentNode : a.prototype.createEl.call(this, "div"), b.setAttribute("tabindex", "-1"), b.removeAttribute("width"), b.removeAttribute("height");
  3709. var e = r.getElAttributes(b);
  3710. if (Object.getOwnPropertyNames(e).forEach(function(a) {
  3711. "class" === a ? c.className += " " + e[a] : c.setAttribute(a, e[a])
  3712. }), b.playerId = b.id, b.id += "_html5_api", b.className = "vjs-tech", b.player = c.player = this, this.addClass("vjs-paused"), n["default"].VIDEOJS_NO_DYNAMIC_STYLE !== !0) {
  3713. this.styleEl_ = F.createStyleElement("vjs-styles-dimensions");
  3714. var f = r.$(".vjs-styles-defaults"),
  3715. g = r.$("head");
  3716. g.insertBefore(this.styleEl_, f ? f.nextSibling : g.firstChild)
  3717. }
  3718. this.width(this.options_.width), this.height(this.options_.height), this.fluid(this.options_.fluid), this.aspectRatio(this.options_.aspectRatio);
  3719. for (var h = b.getElementsByTagName("a"), i = 0; i < h.length; i++) {
  3720. var j = h.item(i);
  3721. r.addElClass(j, "vjs-hidden"), j.setAttribute("hidden", "hidden")
  3722. }
  3723. return b.initNetworkState_ = b.networkState, b.parentNode && !d && b.parentNode.insertBefore(c, b), r.insertElFirst(b, c), this.children_.unshift(b), this.el_ = c, c
  3724. }, b.prototype.width = function(a) {
  3725. return this.dimension("width", a)
  3726. }, b.prototype.height = function(a) {
  3727. return this.dimension("height", a)
  3728. }, b.prototype.dimension = function(a, b) {
  3729. var c = a + "_";
  3730. if (void 0 === b) return this[c] || 0;
  3731. if ("" === b) this[c] = void 0;
  3732. else {
  3733. var d = parseFloat(b);
  3734. if (isNaN(d)) return z["default"].error('Improper value "' + b + '" supplied for for ' + a), this;
  3735. this[c] = d
  3736. }
  3737. return this.updateStyleEl_(), this
  3738. }, b.prototype.fluid = function(a) {
  3739. if (void 0 === a) return !!this.fluid_;
  3740. this.fluid_ = !!a, a ? this.addClass("vjs-fluid") : this.removeClass("vjs-fluid"), this.updateStyleEl_()
  3741. }, b.prototype.aspectRatio = function(a) {
  3742. if (void 0 === a) return this.aspectRatio_;
  3743. if (!/^\d+\:\d+$/.test(a)) throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");
  3744. this.aspectRatio_ = a, this.fluid(!0), this.updateStyleEl_()
  3745. }, b.prototype.updateStyleEl_ = function() {
  3746. if (n["default"].VIDEOJS_NO_DYNAMIC_STYLE === !0) {
  3747. var a = "number" == typeof this.width_ ? this.width_ : this.options_.width,
  3748. b = "number" == typeof this.height_ ? this.height_ : this.options_.height,
  3749. c = this.tech_ && this.tech_.el();
  3750. return void(c && (a >= 0 && (c.width = a), b >= 0 && (c.height = b)))
  3751. }
  3752. var d = void 0,
  3753. e = void 0,
  3754. f = void 0,
  3755. g = void 0;
  3756. f = void 0 !== this.aspectRatio_ && "auto" !== this.aspectRatio_ ? this.aspectRatio_ : this.videoWidth() > 0 ? this.videoWidth() + ":" + this.videoHeight() : "16:9";
  3757. var h = f.split(":"),
  3758. i = h[1] / h[0];
  3759. d = void 0 !== this.width_ ? this.width_ : void 0 !== this.height_ ? this.height_ / i : this.videoWidth() || 300, e = void 0 !== this.height_ ? this.height_ : d * i, g = /^[^a-zA-Z]/.test(this.id()) ? "dimensions-" + this.id() : this.id() + "-dimensions", this.addClass(g), F.setTextContent(this.styleEl_, "\n ." + g + " {\n width: " + d + "px;\n height: " + e + "px;\n }\n\n ." + g + ".vjs-fluid {\n padding-top: " + 100 * i + "%;\n }\n ")
  3760. }, b.prototype.loadTech_ = function(a, b) {
  3761. var c = this;
  3762. this.tech_ && this.unloadTech_(), "Html5" !== a && this.tag && (U["default"].getTech("Html5").disposeMediaElement(this.tag), this.tag.player = null, this.tag = null), this.techName_ = a, this.isReady_ = !1;
  3763. var d = (0, M.assign)({
  3764. source: b,
  3765. nativeControlsForTouch: this.options_.nativeControlsForTouch,
  3766. playerId: this.id(),
  3767. techId: this.id() + "_" + a + "_api",
  3768. videoTracks: this.videoTracks_,
  3769. textTracks: this.textTracks_,
  3770. audioTracks: this.audioTracks_,
  3771. autoplay: this.options_.autoplay,
  3772. preload: this.options_.preload,
  3773. loop: this.options_.loop,
  3774. muted: this.options_.muted,
  3775. poster: this.poster(),
  3776. language: this.language(),
  3777. playerElIngest: this.playerElIngest_ || !1,
  3778. "vtt.js": this.options_["vtt.js"]
  3779. }, this.options_[a.toLowerCase()]);
  3780. this.tag && (d.tag = this.tag), b && (this.currentType_ = b.type, b.src === this.cache_.src && this.cache_.currentTime > 0 && (d.startTime = this.cache_.currentTime), this.cache_.sources = null, this.cache_.source = b, this.cache_.src = b.src);
  3781. var e = U["default"].getTech(a);
  3782. e || (e = j["default"].getComponent(a)), this.tech_ = new e(d), this.tech_.ready(t.bind(this, this.handleTechReady_), !0), Q["default"].jsonToTextTracks(this.textTracksJson_ || [], this.tech_), Z.forEach(function(a) {
  3783. c.on(c.tech_, a, c["handleTech" + (0, B["default"])(a) + "_"])
  3784. }), this.on(this.tech_, "loadstart", this.handleTechLoadStart_), this.on(this.tech_, "waiting", this.handleTechWaiting_), this.on(this.tech_, "canplay", this.handleTechCanPlay_), this.on(this.tech_, "canplaythrough", this.handleTechCanPlayThrough_), this.on(this.tech_, "playing", this.handleTechPlaying_), this.on(this.tech_, "ended", this.handleTechEnded_), this.on(this.tech_, "seeking", this.handleTechSeeking_), this.on(this.tech_, "seeked", this.handleTechSeeked_), this.on(this.tech_, "play", this.handleTechPlay_), this.on(this.tech_, "firstplay", this.handleTechFirstPlay_), this.on(this.tech_, "pause", this.handleTechPause_), this.on(this.tech_, "durationchange", this.handleTechDurationChange_), this.on(this.tech_, "fullscreenchange", this.handleTechFullscreenChange_), this.on(this.tech_, "error", this.handleTechError_), this.on(this.tech_, "loadedmetadata", this.updateStyleEl_), this.on(this.tech_, "posterchange", this.handleTechPosterChange_), this.on(this.tech_, "textdata", this.handleTechTextData_), this.usingNativeControls(this.techGet_("controls")), this.controls() && !this.usingNativeControls() && this.addTechControlsListeners_(), this.tech_.el().parentNode === this.el() || "Html5" === a && this.tag || r.insertElFirst(this.tech_.el(), this.el()), this.tag && (this.tag.player = null, this.tag = null)
  3785. }, b.prototype.unloadTech_ = function() {
  3786. this.videoTracks_ = this.videoTracks(), this.textTracks_ = this.textTracks(), this.audioTracks_ = this.audioTracks(), this.textTracksJson_ = Q["default"].textTracksToJson(this.tech_), this.isReady_ = !1, this.tech_.dispose(), this.tech_ = !1
  3787. }, b.prototype.tech = function(a) {
  3788. if (a && a.IWillNotUseThisInPlugins) return this.tech_;
  3789. var b = "\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";
  3790. throw n["default"].alert(b), new Error(b)
  3791. }, b.prototype.addTechControlsListeners_ = function() {
  3792. this.removeTechControlsListeners_(), this.on(this.tech_, "mousedown", this.handleTechClick_), this.on(this.tech_, "touchstart", this.handleTechTouchStart_), this.on(this.tech_, "touchmove", this.handleTechTouchMove_), this.on(this.tech_, "touchend", this.handleTechTouchEnd_), this.on(this.tech_, "tap", this.handleTechTap_)
  3793. }, b.prototype.removeTechControlsListeners_ = function() {
  3794. this.off(this.tech_, "tap", this.handleTechTap_), this.off(this.tech_, "touchstart", this.handleTechTouchStart_), this.off(this.tech_, "touchmove", this.handleTechTouchMove_), this.off(this.tech_, "touchend", this.handleTechTouchEnd_), this.off(this.tech_, "mousedown", this.handleTechClick_)
  3795. }, b.prototype.handleTechReady_ = function() {
  3796. if (this.triggerReady(), this.cache_.volume && this.techCall_("setVolume", this.cache_.volume), this.handleTechPosterChange_(), this.handleTechDurationChange_(), (this.src() || this.currentSrc()) && this.tag && this.options_.autoplay && this.paused()) {
  3797. try {
  3798. delete this.tag.poster
  3799. } catch (a) {
  3800. (0, z["default"])("deleting tag.poster throws in some browsers", a)
  3801. }
  3802. this.play()
  3803. }
  3804. }, b.prototype.handleTechLoadStart_ = function() {
  3805. this.removeClass("vjs-ended"), this.removeClass("vjs-seeking"), this.error(null), this.paused() ? (this.hasStarted(!1), this.trigger("loadstart")) : (this.trigger("loadstart"), this.trigger("firstplay"))
  3806. }, b.prototype.hasStarted = function(a) {
  3807. return void 0 !== a ? (this.hasStarted_ !== a && (this.hasStarted_ = a, a ? (this.addClass("vjs-has-started"), this.trigger("firstplay")) : this.removeClass("vjs-has-started")), this) : !!this.hasStarted_
  3808. }, b.prototype.handleTechPlay_ = function() {
  3809. this.removeClass("vjs-ended"), this.removeClass("vjs-paused"), this.addClass("vjs-playing"), this.hasStarted(!0), this.trigger("play")
  3810. }, b.prototype.handleTechWaiting_ = function() {
  3811. var a = this;
  3812. this.addClass("vjs-waiting"), this.trigger("waiting"), this.one("timeupdate", function() {
  3813. return a.removeClass("vjs-waiting")
  3814. })
  3815. }, b.prototype.handleTechCanPlay_ = function() {
  3816. this.removeClass("vjs-waiting"), this.trigger("canplay")
  3817. }, b.prototype.handleTechCanPlayThrough_ = function() {
  3818. this.removeClass("vjs-waiting"), this.trigger("canplaythrough")
  3819. }, b.prototype.handleTechPlaying_ = function() {
  3820. this.removeClass("vjs-waiting"), this.trigger("playing")
  3821. }, b.prototype.handleTechSeeking_ = function() {
  3822. this.addClass("vjs-seeking"), this.trigger("seeking")
  3823. }, b.prototype.handleTechSeeked_ = function() {
  3824. this.removeClass("vjs-seeking"), this.trigger("seeked")
  3825. }, b.prototype.handleTechFirstPlay_ = function() {
  3826. this.options_.starttime && (z["default"].warn("Passing the `starttime` option to the player will be deprecated in 6.0"), this.currentTime(this.options_.starttime)), this.addClass("vjs-has-started"), this.trigger("firstplay")
  3827. }, b.prototype.handleTechPause_ = function() {
  3828. this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.trigger("pause")
  3829. }, b.prototype.handleTechEnded_ = function() {
  3830. this.addClass("vjs-ended"), this.options_.loop ? (this.currentTime(0), this.play()) : this.paused() || this.pause(), this.trigger("ended")
  3831. }, b.prototype.handleTechDurationChange_ = function() {
  3832. this.duration(this.techGet_("duration"))
  3833. }, b.prototype.handleTechClick_ = function(a) {
  3834. 0 === a.button && this.controls() && (this.paused() ? this.play() : this.pause())
  3835. }, b.prototype.handleTechTap_ = function() {
  3836. this.userActive(!this.userActive())
  3837. }, b.prototype.handleTechTouchStart_ = function() {
  3838. this.userWasActive = this.userActive()
  3839. }, b.prototype.handleTechTouchMove_ = function() {
  3840. this.userWasActive && this.reportUserActivity()
  3841. }, b.prototype.handleTechTouchEnd_ = function(a) {
  3842. a.preventDefault()
  3843. }, b.prototype.handleFullscreenChange_ = function() {
  3844. this.isFullscreen() ? this.addClass("vjs-fullscreen") : this.removeClass("vjs-fullscreen")
  3845. }, b.prototype.handleStageClick_ = function() {
  3846. this.reportUserActivity()
  3847. }, b.prototype.handleTechFullscreenChange_ = function(a, b) {
  3848. b && this.isFullscreen(b.isFullscreen), this.trigger("fullscreenchange")
  3849. }, b.prototype.handleTechError_ = function() {
  3850. var a = this.tech_.error();
  3851. this.error(a)
  3852. }, b.prototype.handleTechTextData_ = function() {
  3853. var a = null;
  3854. arguments.length > 1 && (a = arguments[1]), this.trigger("textdata", a)
  3855. }, b.prototype.getCache = function() {
  3856. return this.cache_
  3857. }, b.prototype.techCall_ = function(a, b) {
  3858. if (this.tech_ && !this.tech_.isReady_) this.tech_.ready(function() {
  3859. this[a](b)
  3860. }, !0);
  3861. else try {
  3862. this.tech_ && this.tech_[a](b)
  3863. } catch (c) {
  3864. throw (0, z["default"])(c), c
  3865. }
  3866. }, b.prototype.techGet_ = function(a) {
  3867. if (this.tech_ && this.tech_.isReady_) try {
  3868. return this.tech_[a]()
  3869. } catch (b) {
  3870. throw void 0 === this.tech_[a] ? (0, z["default"])("Video.js: " + a + " method not defined for " + this.techName_ + " playback technology.", b) : "TypeError" === b.name ? ((0, z["default"])("Video.js: " + a + " unavailable on " + this.techName_ + " playback technology element.", b), this.tech_.isReady_ = !1) : (0, z["default"])(b), b
  3871. }
  3872. }, b.prototype.play = function() {
  3873. return this.src() || this.currentSrc() ? this.techCall_("play") : this.tech_.one("loadstart", function() {
  3874. this.play()
  3875. }), this
  3876. }, b.prototype.pause = function() {
  3877. return this.techCall_("pause"), this
  3878. }, b.prototype.paused = function() {
  3879. return this.techGet_("paused") !== !1
  3880. }, b.prototype.scrubbing = function(a) {
  3881. return void 0 !== a ? (this.scrubbing_ = !!a, a ? this.addClass("vjs-scrubbing") : this.removeClass("vjs-scrubbing"), this) : this.scrubbing_
  3882. }, b.prototype.currentTime = function(a) {
  3883. return void 0 !== a ? (this.techCall_("setCurrentTime", a), this) : (this.cache_.currentTime = this.techGet_("currentTime") || 0, this.cache_.currentTime)
  3884. }, b.prototype.duration = function(a) {
  3885. return void 0 === a ? this.cache_.duration || 0 : (a = parseFloat(a) || 0, a < 0 && (a = 1 / 0), a !== this.cache_.duration && (this.cache_.duration = a, a === 1 / 0 ? this.addClass("vjs-live") : this.removeClass("vjs-live"), this.trigger("durationchange")), this)
  3886. }, b.prototype.remainingTime = function() {
  3887. return this.duration() - this.currentTime()
  3888. }, b.prototype.buffered = function c() {
  3889. var c = this.techGet_("buffered");
  3890. return c && c.length || (c = (0, C.createTimeRange)(0, 0)), c
  3891. }, b.prototype.bufferedPercent = function() {
  3892. return (0, D.bufferedPercent)(this.buffered(), this.duration())
  3893. }, b.prototype.bufferedEnd = function() {
  3894. var a = this.buffered(),
  3895. b = this.duration(),
  3896. c = a.end(a.length - 1);
  3897. return c > b && (c = b), c
  3898. }, b.prototype.volume = function(a) {
  3899. var b = void 0;
  3900. return void 0 !== a ? (b = Math.max(0, Math.min(1, parseFloat(a))), this.cache_.volume = b, this.techCall_("setVolume", b), this) : (b = parseFloat(this.techGet_("volume")), isNaN(b) ? 1 : b)
  3901. }, b.prototype.muted = function(a) {
  3902. return void 0 !== a ? (this.techCall_("setMuted", a), this) : this.techGet_("muted") || !1
  3903. }, b.prototype.supportsFullScreen = function() {
  3904. return this.techGet_("supportsFullScreen") || !1
  3905. }, b.prototype.isFullscreen = function(a) {
  3906. return void 0 !== a ? (this.isFullscreen_ = !!a, this) : !!this.isFullscreen_
  3907. }, b.prototype.requestFullscreen = function() {
  3908. var a = H["default"];
  3909. return this.isFullscreen(!0), a.requestFullscreen ? (p.on(l["default"], a.fullscreenchange, t.bind(this, function b(c) {
  3910. this.isFullscreen(l["default"][a.fullscreenElement]), this.isFullscreen() === !1 && p.off(l["default"], a.fullscreenchange, b), this.trigger("fullscreenchange")
  3911. })), this.el_[a.requestFullscreen]()) : this.tech_.supportsFullScreen() ? this.techCall_("enterFullScreen") : (this.enterFullWindow(), this.trigger("fullscreenchange")), this
  3912. }, b.prototype.exitFullscreen = function() {
  3913. var a = H["default"];
  3914. return this.isFullscreen(!1), a.requestFullscreen ? l["default"][a.exitFullscreen]() : this.tech_.supportsFullScreen() ? this.techCall_("exitFullScreen") : (this.exitFullWindow(), this.trigger("fullscreenchange")), this
  3915. }, b.prototype.enterFullWindow = function() {
  3916. this.isFullWindow = !0, this.docOrigOverflow = l["default"].documentElement.style.overflow, p.on(l["default"], "keydown", t.bind(this, this.fullWindowOnEscKey)), l["default"].documentElement.style.overflow = "hidden", r.addElClass(l["default"].body, "vjs-full-window"), this.trigger("enterFullWindow")
  3917. }, b.prototype.fullWindowOnEscKey = function(a) {
  3918. 27 === a.keyCode && (this.isFullscreen() === !0 ? this.exitFullscreen() : this.exitFullWindow())
  3919. }, b.prototype.exitFullWindow = function() {
  3920. this.isFullWindow = !1, p.off(l["default"], "keydown", this.fullWindowOnEscKey), l["default"].documentElement.style.overflow = this.docOrigOverflow, r.removeElClass(l["default"].body, "vjs-full-window"), this.trigger("exitFullWindow")
  3921. }, b.prototype.canPlayType = function(a) {
  3922. for (var b = void 0, c = 0, d = this.options_.techOrder; c < d.length; c++) {
  3923. var e = (0, B["default"])(d[c]),
  3924. f = U["default"].getTech(e);
  3925. if (f || (f = j["default"].getComponent(e)), f) {
  3926. if (f.isSupported() && (b = f.canPlayType(a))) return b
  3927. } else z["default"].error('The "' + e + '" tech is undefined. Skipped browser support check for that tech.')
  3928. }
  3929. return ""
  3930. }, b.prototype.selectSource = function(a) {
  3931. var b = this,
  3932. c = this.options_.techOrder.map(B["default"]).map(function(a) {
  3933. return [a, U["default"].getTech(a) || j["default"].getComponent(a)]
  3934. }).filter(function(a) {
  3935. var b = a[0],
  3936. c = a[1];
  3937. return c ? c.isSupported() : (z["default"].error('The "' + b + '" tech is undefined. Skipped browser support check for that tech.'), !1)
  3938. }),
  3939. d = function(a, b, c) {
  3940. var d = void 0;
  3941. return a.some(function(a) {
  3942. return b.some(function(b) {
  3943. if (d = c(a, b)) return !0
  3944. })
  3945. }), d
  3946. },
  3947. e = void 0,
  3948. f = function(a) {
  3949. return function(b, c) {
  3950. return a(c, b)
  3951. }
  3952. },
  3953. g = function(a, c) {
  3954. var d = a[0];
  3955. if (a[1].canPlaySource(c, b.options_[d.toLowerCase()])) return {
  3956. source: c,
  3957. tech: d
  3958. }
  3959. };
  3960. return e = this.options_.sourceOrder ? d(a, c, f(g)) : d(c, a, g), e || !1
  3961. }, b.prototype.src = function(a) {
  3962. if (void 0 === a) return this.techGet_("src");
  3963. var b = U["default"].getTech(this.techName_);
  3964. return b || (b = j["default"].getComponent(this.techName_)), Array.isArray(a) ? this.sourceList_(a) : "string" == typeof a ? this.src({
  3965. src: a
  3966. }) : a instanceof Object && (a.type && !b.canPlaySource(a, this.options_[this.techName_.toLowerCase()]) ? this.sourceList_([a]) : (this.cache_.sources = null, this.cache_.source = a, this.cache_.src = a.src, this.currentType_ = a.type || "", this.ready(function() {
  3967. b.prototype.hasOwnProperty("setSource") ? this.techCall_("setSource", a) : this.techCall_("src", a.src), "auto" === this.options_.preload && this.load(), this.options_.autoplay && this.play()
  3968. }, !0))), this
  3969. }, b.prototype.sourceList_ = function(a) {
  3970. var b = this.selectSource(a);
  3971. b ? (b.tech === this.techName_ ? this.src(b.source) : this.loadTech_(b.tech, b.source), this.cache_.sources = a) : (this.setTimeout(function() {
  3972. this.error({
  3973. code: 4,
  3974. message: this.localize(this.options_.notSupportedMessage)
  3975. })
  3976. }, 0), this.triggerReady())
  3977. }, b.prototype.load = function() {
  3978. return this.techCall_("load"), this
  3979. }, b.prototype.reset = function() {
  3980. return this.loadTech_((0, B["default"])(this.options_.techOrder[0]), null), this.techCall_("reset"), this
  3981. }, b.prototype.currentSources = function() {
  3982. var a = this.currentSource(),
  3983. b = [];
  3984. return 0 !== Object.keys(a).length && b.push(a), this.cache_.sources || b
  3985. }, b.prototype.currentSource = function() {
  3986. var a = {},
  3987. b = this.currentSrc();
  3988. return b && (a.src = b), this.cache_.source || a
  3989. }, b.prototype.currentSrc = function() {
  3990. return this.techGet_("currentSrc") || this.cache_.src || ""
  3991. }, b.prototype.currentType = function() {
  3992. return this.currentType_ || ""
  3993. }, b.prototype.preload = function(a) {
  3994. return void 0 !== a ? (this.techCall_("setPreload", a), this.options_.preload = a, this) : this.techGet_("preload")
  3995. }, b.prototype.autoplay = function(a) {
  3996. return void 0 !== a ? (this.techCall_("setAutoplay", a), this.options_.autoplay = a, this) : this.techGet_("autoplay", a)
  3997. }, b.prototype.loop = function(a) {
  3998. return void 0 !== a ? (this.techCall_("setLoop", a), this.options_.loop = a, this) : this.techGet_("loop")
  3999. }, b.prototype.poster = function(a) {
  4000. return void 0 === a ? this.poster_ : (a || (a = ""), this.poster_ = a, this.techCall_("setPoster", a), this.trigger("posterchange"), this)
  4001. }, b.prototype.handleTechPosterChange_ = function() {
  4002. !this.poster_ && this.tech_ && this.tech_.poster && (this.poster_ = this.tech_.poster() || "", this.trigger("posterchange"))
  4003. }, b.prototype.controls = function(a) {
  4004. return void 0 !== a ? (a = !!a, this.controls_ !== a && (this.controls_ = a, this.usingNativeControls() && this.techCall_("setControls", a), a ? (this.removeClass("vjs-controls-disabled"), this.addClass("vjs-controls-enabled"), this.trigger("controlsenabled"), this.usingNativeControls() || this.addTechControlsListeners_()) : (this.removeClass("vjs-controls-enabled"), this.addClass("vjs-controls-disabled"), this.trigger("controlsdisabled"), this.usingNativeControls() || this.removeTechControlsListeners_())), this) : !!this.controls_
  4005. }, b.prototype.usingNativeControls = function(a) {
  4006. return void 0 !== a ? (a = !!a, this.usingNativeControls_ !== a && (this.usingNativeControls_ = a, a ? (this.addClass("vjs-using-native-controls"), this.trigger("usingnativecontrols")) : (this.removeClass("vjs-using-native-controls"), this.trigger("usingcustomcontrols"))), this) : !!this.usingNativeControls_
  4007. }, b.prototype.error = function(a) {
  4008. return void 0 === a ? this.error_ || null : null === a ? (this.error_ = a, this.removeClass("vjs-error"), this.errorDisplay && this.errorDisplay.close(), this) : (this.error_ = new J["default"](a), this.addClass("vjs-error"), z["default"].error("(CODE:" + this.error_.code + " " + J["default"].errorTypes[this.error_.code] + ")", this.error_.message, this.error_), this.trigger("error"), this)
  4009. }, b.prototype.reportUserActivity = function(a) {
  4010. this.userActivity_ = !0
  4011. }, b.prototype.userActive = function(a) {
  4012. return void 0 !== a ? (a = !!a, a !== this.userActive_ && (this.userActive_ = a, a ? (this.userActivity_ = !0, this.removeClass("vjs-user-inactive"), this.addClass("vjs-user-active"), this.trigger("useractive")) : (this.userActivity_ = !1, this.tech_ && this.tech_.one("mousemove", function(a) {
  4013. a.stopPropagation(), a.preventDefault()
  4014. }), this.removeClass("vjs-user-active"), this.addClass("vjs-user-inactive"), this.trigger("userinactive"))), this) : this.userActive_
  4015. }, b.prototype.listenForUserActivity_ = function() {
  4016. var a = void 0,
  4017. b = void 0,
  4018. c = void 0,
  4019. d = t.bind(this, this.reportUserActivity),
  4020. e = function(a) {
  4021. a.screenX === b && a.screenY === c || (b = a.screenX, c = a.screenY, d())
  4022. },
  4023. f = function() {
  4024. d(), this.clearInterval(a), a = this.setInterval(d, 250)
  4025. },
  4026. g = function(b) {
  4027. d(), this.clearInterval(a)
  4028. };
  4029. this.on("mousedown", f), this.on("mousemove", e), this.on("mouseup", g), this.on("keydown", d), this.on("keyup", d);
  4030. var h = void 0;
  4031. this.setInterval(function() {
  4032. if (this.userActivity_) {
  4033. this.userActivity_ = !1, this.userActive(!0), this.clearTimeout(h);
  4034. var a = this.options_.inactivityTimeout;
  4035. a > 0 && (h = this.setTimeout(function() {
  4036. this.userActivity_ || this.userActive(!1)
  4037. }, a))
  4038. }
  4039. }, 250)
  4040. }, b.prototype.playbackRate = function(a) {
  4041. return void 0 !== a ? (this.techCall_("setPlaybackRate", a), this) : this.tech_ && this.tech_.featuresPlaybackRate ? this.techGet_("playbackRate") : 1
  4042. }, b.prototype.isAudio = function(a) {
  4043. return void 0 !== a ? (this.isAudio_ = !!a, this) : !!this.isAudio_
  4044. }, b.prototype.videoTracks = function() {
  4045. return this.tech_ ? this.tech_.videoTracks() : (this.videoTracks_ = this.videoTracks_ || new Y["default"], this.videoTracks_)
  4046. }, b.prototype.audioTracks = function() {
  4047. return this.tech_ ? this.tech_.audioTracks() : (this.audioTracks_ = this.audioTracks_ || new W["default"], this.audioTracks_)
  4048. }, b.prototype.textTracks = function() {
  4049. if (this.tech_) return this.tech_.textTracks()
  4050. }, b.prototype.remoteTextTracks = function() {
  4051. if (this.tech_) return this.tech_.remoteTextTracks()
  4052. }, b.prototype.remoteTextTrackEls = function() {
  4053. if (this.tech_) return this.tech_.remoteTextTrackEls()
  4054. }, b.prototype.addTextTrack = function(a, b, c) {
  4055. if (this.tech_) return this.tech_.addTextTrack(a, b, c)
  4056. }, b.prototype.addRemoteTextTrack = function(a, b) {
  4057. if (this.tech_) return this.tech_.addRemoteTextTrack(a, b)
  4058. }, b.prototype.removeRemoteTextTrack = function() {
  4059. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  4060. b = a.track,
  4061. c = void 0 === b ? arguments[0] : b;
  4062. if (this.tech_) return this.tech_.removeRemoteTextTrack(c)
  4063. }, b.prototype.videoWidth = function() {
  4064. return this.tech_ && this.tech_.videoWidth && this.tech_.videoWidth() || 0
  4065. }, b.prototype.videoHeight = function() {
  4066. return this.tech_ && this.tech_.videoHeight && this.tech_.videoHeight() || 0
  4067. }, b.prototype.language = function(a) {
  4068. return void 0 === a ? this.language_ : (this.language_ = String(a).toLowerCase(), this)
  4069. }, b.prototype.languages = function() {
  4070. return (0, O["default"])(b.prototype.options_.languages, this.languages_)
  4071. }, b.prototype.toJSON = function() {
  4072. var a = (0, O["default"])(this.options_),
  4073. b = a.tracks;
  4074. a.tracks = [];
  4075. for (var c = 0; c < b.length; c++) {
  4076. var d = b[c];
  4077. d = (0, O["default"])(d), d.player = void 0, a.tracks[c] = d
  4078. }
  4079. return a
  4080. }, b.prototype.createModal = function(a, b) {
  4081. var c = this;
  4082. b = b || {}, b.content = a || "";
  4083. var d = new S["default"](this, b);
  4084. return this.addChild(d), d.on("dispose", function() {
  4085. c.removeChild(d)
  4086. }), d.open()
  4087. }, b.getTagSettings = function(a) {
  4088. var b = {
  4089. sources: [],
  4090. tracks: []
  4091. },
  4092. c = r.getElAttributes(a),
  4093. d = c["data-setup"];
  4094. if (r.hasElClass(a, "vjs-fluid") && (c.fluid = !0), null !== d) {
  4095. var e = (0, L["default"])(d || "{}"),
  4096. f = e[0],
  4097. g = e[1];
  4098. f && z["default"].error(f), (0, M.assign)(c, g)
  4099. }
  4100. if ((0, M.assign)(b, c), a.hasChildNodes())
  4101. for (var h = a.childNodes, i = 0, j = h.length; i < j; i++) {
  4102. var k = h[i],
  4103. l = k.nodeName.toLowerCase();
  4104. "source" === l ? b.sources.push(r.getElAttributes(k)) : "track" === l && b.tracks.push(r.getElAttributes(k))
  4105. }
  4106. return b
  4107. }, b.prototype.flexNotSupported_ = function() {
  4108. var a = l["default"].createElement("i");
  4109. return !("flexBasis" in a.style || "webkitFlexBasis" in a.style || "mozFlexBasis" in a.style || "msFlexBasis" in a.style || "msFlexOrder" in a.style)
  4110. }, b
  4111. }(j["default"]);
  4112. $.players = {};
  4113. var _ = n["default"].navigator;
  4114. $.prototype.options_ = {
  4115. techOrder: ["html5", "flash"],
  4116. html5: {},
  4117. flash: {},
  4118. defaultVolume: 0,
  4119. inactivityTimeout: 2e3,
  4120. playbackRates: [],
  4121. children: ["mediaLoader", "posterImage", "textTrackDisplay", "loadingSpinner", "bigPlayButton", "controlBar", "errorDisplay", "textTrackSettings"],
  4122. language: _ && (_.languages && _.languages[0] || _.userLanguage || _.language) || "en",
  4123. languages: {},
  4124. notSupportedMessage: "No compatible source was found for this media."
  4125. }, ["ended", "seeking", "seekable", "networkState", "readyState"].forEach(function(a) {
  4126. $.prototype[a] = function() {
  4127. return this.techGet_(a)
  4128. }
  4129. }), Z.forEach(function(a) {
  4130. $.prototype["handleTech" + (0, B["default"])(a) + "_"] = function() {
  4131. return this.trigger(a)
  4132. }
  4133. }), j["default"].registerComponent("Player", $), c["default"] = $
  4134. }, {
  4135. 1: 1,
  4136. 4: 4,
  4137. 41: 41,
  4138. 44: 44,
  4139. 45: 45,
  4140. 46: 46,
  4141. 5: 5,
  4142. 50: 50,
  4143. 55: 55,
  4144. 59: 59,
  4145. 60: 60,
  4146. 61: 61,
  4147. 62: 62,
  4148. 63: 63,
  4149. 68: 68,
  4150. 69: 69,
  4151. 71: 71,
  4152. 76: 76,
  4153. 78: 78,
  4154. 79: 79,
  4155. 8: 8,
  4156. 81: 81,
  4157. 82: 82,
  4158. 83: 83,
  4159. 85: 85,
  4160. 86: 86,
  4161. 87: 87,
  4162. 88: 88,
  4163. 89: 89,
  4164. 90: 90,
  4165. 91: 91,
  4166. 94: 94,
  4167. 95: 95,
  4168. 97: 97
  4169. }
  4170. ],
  4171. 52: [
  4172. function(a, b, c) {
  4173. "use strict";
  4174. function d(a) {
  4175. return a && a.__esModule ? a : {
  4176. "default": a
  4177. }
  4178. }
  4179. c.__esModule = !0;
  4180. var e = a(51),
  4181. f = d(e),
  4182. g = function(a, b) {
  4183. f["default"].prototype[a] = b
  4184. };
  4185. c["default"] = g
  4186. }, {
  4187. 51: 51
  4188. }
  4189. ],
  4190. 53: [
  4191. function(a, b, c) {
  4192. "use strict";
  4193. function d(a) {
  4194. return a && a.__esModule ? a : {
  4195. "default": a
  4196. }
  4197. }
  4198. function e(a, b) {
  4199. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4200. }
  4201. function f(a, b) {
  4202. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4203. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4204. }
  4205. function g(a, b) {
  4206. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4207. a.prototype = Object.create(b && b.prototype, {
  4208. constructor: {
  4209. value: a,
  4210. enumerable: !1,
  4211. writable: !0,
  4212. configurable: !0
  4213. }
  4214. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4215. }
  4216. c.__esModule = !0;
  4217. var h = a(3),
  4218. i = d(h),
  4219. j = a(5),
  4220. k = d(j),
  4221. l = function(a) {
  4222. function b(c) {
  4223. var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
  4224. e(this, b);
  4225. var g = f(this, a.call(this, c, d));
  4226. return g.update(), g
  4227. }
  4228. return g(b, a), b.prototype.update = function() {
  4229. var a = this.createPopup();
  4230. this.popup && this.removeChild(this.popup), this.popup = a, this.addChild(a), this.items && 0 === this.items.length ? this.hide() : this.items && this.items.length > 1 && this.show()
  4231. }, b.prototype.createPopup = function() {}, b.prototype.createEl = function() {
  4232. return a.prototype.createEl.call(this, "div", {
  4233. className: this.buildCSSClass()
  4234. })
  4235. }, b.prototype.buildCSSClass = function() {
  4236. var b = "vjs-menu-button";
  4237. return b += this.options_.inline === !0 ? "-inline" : "-popup", "vjs-menu-button " + b + " " + a.prototype.buildCSSClass.call(this)
  4238. }, b
  4239. }(i["default"]);
  4240. k["default"].registerComponent("PopupButton", l), c["default"] = l
  4241. }, {
  4242. 3: 3,
  4243. 5: 5
  4244. }
  4245. ],
  4246. 54: [
  4247. function(a, b, c) {
  4248. "use strict";
  4249. function d(a) {
  4250. if (a && a.__esModule) return a;
  4251. var b = {};
  4252. if (null != a)
  4253. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4254. return b["default"] = a, b
  4255. }
  4256. function e(a) {
  4257. return a && a.__esModule ? a : {
  4258. "default": a
  4259. }
  4260. }
  4261. function f(a, b) {
  4262. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4263. }
  4264. function g(a, b) {
  4265. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4266. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4267. }
  4268. function h(a, b) {
  4269. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4270. a.prototype = Object.create(b && b.prototype, {
  4271. constructor: {
  4272. value: a,
  4273. enumerable: !1,
  4274. writable: !0,
  4275. configurable: !0
  4276. }
  4277. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4278. }
  4279. c.__esModule = !0;
  4280. var i = a(5),
  4281. j = e(i),
  4282. k = a(81),
  4283. l = d(k),
  4284. m = a(83),
  4285. n = d(m),
  4286. o = a(82),
  4287. p = d(o),
  4288. q = function(a) {
  4289. function b() {
  4290. return f(this, b), g(this, a.apply(this, arguments))
  4291. }
  4292. return h(b, a), b.prototype.addItem = function(a) {
  4293. this.addChild(a), a.on("click", n.bind(this, function() {
  4294. this.unlockShowing()
  4295. }))
  4296. }, b.prototype.createEl = function() {
  4297. var b = this.options_.contentElType || "ul";
  4298. this.contentEl_ = l.createEl(b, {
  4299. className: "vjs-menu-content"
  4300. });
  4301. var c = a.prototype.createEl.call(this, "div", {
  4302. append: this.contentEl_,
  4303. className: "vjs-menu"
  4304. });
  4305. return c.appendChild(this.contentEl_), p.on(c, "click", function(a) {
  4306. a.preventDefault(), a.stopImmediatePropagation()
  4307. }), c
  4308. }, b
  4309. }(j["default"]);
  4310. j["default"].registerComponent("Popup", q), c["default"] = q
  4311. }, {
  4312. 5: 5,
  4313. 81: 81,
  4314. 82: 82,
  4315. 83: 83
  4316. }
  4317. ],
  4318. 55: [
  4319. function(a, b, c) {
  4320. "use strict";
  4321. function d(a) {
  4322. if (a && a.__esModule) return a;
  4323. var b = {};
  4324. if (null != a)
  4325. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4326. return b["default"] = a, b
  4327. }
  4328. function e(a) {
  4329. return a && a.__esModule ? a : {
  4330. "default": a
  4331. }
  4332. }
  4333. function f(a, b) {
  4334. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4335. }
  4336. function g(a, b) {
  4337. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4338. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4339. }
  4340. function h(a, b) {
  4341. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4342. a.prototype = Object.create(b && b.prototype, {
  4343. constructor: {
  4344. value: a,
  4345. enumerable: !1,
  4346. writable: !0,
  4347. configurable: !0
  4348. }
  4349. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4350. }
  4351. c.__esModule = !0;
  4352. var i = a(3),
  4353. j = e(i),
  4354. k = a(5),
  4355. l = e(k),
  4356. m = a(83),
  4357. n = d(m),
  4358. o = a(81),
  4359. p = d(o),
  4360. q = a(78),
  4361. r = d(q),
  4362. s = function(a) {
  4363. function b(c, d) {
  4364. f(this, b);
  4365. var e = g(this, a.call(this, c, d));
  4366. return e.update(), c.on("posterchange", n.bind(e, e.update)), e
  4367. }
  4368. return h(b, a), b.prototype.dispose = function() {
  4369. this.player().off("posterchange", this.update), a.prototype.dispose.call(this)
  4370. }, b.prototype.createEl = function() {
  4371. var a = p.createEl("div", {
  4372. className: "vjs-poster",
  4373. tabIndex: -1
  4374. });
  4375. return r.BACKGROUND_SIZE_SUPPORTED || (this.fallbackImg_ = p.createEl("img"), a.appendChild(this.fallbackImg_)), a
  4376. }, b.prototype.update = function(a) {
  4377. var b = this.player().poster();
  4378. this.setSrc(b), b ? this.show() : this.hide()
  4379. }, b.prototype.setSrc = function(a) {
  4380. if (this.fallbackImg_) this.fallbackImg_.src = a;
  4381. else {
  4382. var b = "";
  4383. a && (b = 'url("' + a + '")'), this.el_.style.backgroundImage = b
  4384. }
  4385. }, b.prototype.handleClick = function(a) {
  4386. this.player_.controls() && (this.player_.paused() ? this.player_.play() : this.player_.pause())
  4387. }, b
  4388. }(j["default"]);
  4389. l["default"].registerComponent("PosterImage", s), c["default"] = s
  4390. }, {
  4391. 3: 3,
  4392. 5: 5,
  4393. 78: 78,
  4394. 81: 81,
  4395. 83: 83
  4396. }
  4397. ],
  4398. 56: [
  4399. function(a, b, c) {
  4400. "use strict";
  4401. function d(a) {
  4402. return a && a.__esModule ? a : {
  4403. "default": a
  4404. }
  4405. }
  4406. function e(a) {
  4407. if (a && a.__esModule) return a;
  4408. var b = {};
  4409. if (null != a)
  4410. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4411. return b["default"] = a, b
  4412. }
  4413. function f(a, b) {
  4414. b && (p = b), n["default"].setTimeout(q, a)
  4415. }
  4416. c.__esModule = !0, c.hasLoaded = c.autoSetupTimeout = c.autoSetup = void 0;
  4417. var g = a(81),
  4418. h = e(g),
  4419. i = a(82),
  4420. j = e(i),
  4421. k = a(94),
  4422. l = d(k),
  4423. m = a(95),
  4424. n = d(m),
  4425. o = !1,
  4426. p = void 0,
  4427. q = function() {
  4428. if (h.isReal()) {
  4429. var a = l["default"].getElementsByTagName("video"),
  4430. b = l["default"].getElementsByTagName("audio"),
  4431. c = [];
  4432. if (a && a.length > 0)
  4433. for (var d = 0, e = a.length; d < e; d++) c.push(a[d]);
  4434. if (b && b.length > 0)
  4435. for (var g = 0, i = b.length; g < i; g++) c.push(b[g]);
  4436. if (c && c.length > 0)
  4437. for (var j = 0, k = c.length; j < k; j++) {
  4438. var m = c[j];
  4439. if (!m || !m.getAttribute) {
  4440. f(1);
  4441. break
  4442. }
  4443. if (void 0 === m.player) {
  4444. var n = m.getAttribute("data-setup");
  4445. null !== n && p(m)
  4446. }
  4447. } else o || f(1)
  4448. }
  4449. };
  4450. h.isReal() && "complete" === l["default"].readyState ? o = !0 : j.one(n["default"], "load", function() {
  4451. o = !0
  4452. });
  4453. var r = function() {
  4454. return o
  4455. };
  4456. c.autoSetup = q, c.autoSetupTimeout = f, c.hasLoaded = r
  4457. }, {
  4458. 81: 81,
  4459. 82: 82,
  4460. 94: 94,
  4461. 95: 95
  4462. }
  4463. ],
  4464. 57: [
  4465. function(a, b, c) {
  4466. "use strict";
  4467. function d(a) {
  4468. if (a && a.__esModule) return a;
  4469. var b = {};
  4470. if (null != a)
  4471. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4472. return b["default"] = a, b
  4473. }
  4474. function e(a) {
  4475. return a && a.__esModule ? a : {
  4476. "default": a
  4477. }
  4478. }
  4479. function f(a, b) {
  4480. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4481. }
  4482. function g(a, b) {
  4483. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4484. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4485. }
  4486. function h(a, b) {
  4487. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4488. a.prototype = Object.create(b && b.prototype, {
  4489. constructor: {
  4490. value: a,
  4491. enumerable: !1,
  4492. writable: !0,
  4493. configurable: !0
  4494. }
  4495. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4496. }
  4497. c.__esModule = !0;
  4498. var i = a(5),
  4499. j = e(i),
  4500. k = a(81),
  4501. l = d(k),
  4502. m = a(88),
  4503. n = function(a) {
  4504. function b(c, d) {
  4505. f(this, b);
  4506. var e = g(this, a.call(this, c, d));
  4507. return e.bar = e.getChild(e.options_.barName), e.vertical(!!e.options_.vertical), e.on("mousedown", e.handleMouseDown), e.on("touchstart", e.handleMouseDown), e.on("focus", e.handleFocus), e.on("blur", e.handleBlur), e.on("click", e.handleClick), e.on(c, "controlsvisible", e.update), e.on(c, e.playerEvent, e.update), e
  4508. }
  4509. return h(b, a), b.prototype.createEl = function(b) {
  4510. var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  4511. d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
  4512. return c.className = c.className + " vjs-slider", c = (0, m.assign)({
  4513. tabIndex: 0
  4514. }, c), d = (0, m.assign)({
  4515. role: "slider",
  4516. "aria-valuenow": 0,
  4517. "aria-valuemin": 0,
  4518. "aria-valuemax": 100,
  4519. tabIndex: 0
  4520. }, d), a.prototype.createEl.call(this, b, c, d)
  4521. }, b.prototype.handleMouseDown = function(a) {
  4522. var b = this.bar.el_.ownerDocument;
  4523. a.preventDefault(), l.blockTextSelection(), this.addClass("vjs-sliding"), this.trigger("slideractive"), this.on(b, "mousemove", this.handleMouseMove), this.on(b, "mouseup", this.handleMouseUp), this.on(b, "touchmove", this.handleMouseMove), this.on(b, "touchend", this.handleMouseUp), this.handleMouseMove(a)
  4524. }, b.prototype.handleMouseMove = function(a) {}, b.prototype.handleMouseUp = function() {
  4525. var a = this.bar.el_.ownerDocument;
  4526. l.unblockTextSelection(), this.removeClass("vjs-sliding"), this.trigger("sliderinactive"), this.off(a, "mousemove", this.handleMouseMove), this.off(a, "mouseup", this.handleMouseUp), this.off(a, "touchmove", this.handleMouseMove), this.off(a, "touchend", this.handleMouseUp), this.update()
  4527. }, b.prototype.update = function() {
  4528. if (this.el_) {
  4529. var a = this.getPercent(),
  4530. b = this.bar;
  4531. if (b) {
  4532. ("number" != typeof a || a !== a || a < 0 || a === 1 / 0) && (a = 0);
  4533. var c = (100 * a).toFixed(2) + "%";
  4534. this.vertical() ? b.el().style.height = c : b.el().style.width = c
  4535. }
  4536. }
  4537. }, b.prototype.calculateDistance = function(a) {
  4538. var b = l.getPointerPosition(this.el_, a);
  4539. return this.vertical() ? b.y : b.x
  4540. }, b.prototype.handleFocus = function() {
  4541. this.on(this.bar.el_.ownerDocument, "keydown", this.handleKeyPress)
  4542. }, b.prototype.handleKeyPress = function(a) {
  4543. 37 === a.which || 40 === a.which ? (a.preventDefault(), this.stepBack()) : 38 !== a.which && 39 !== a.which || (a.preventDefault(), this.stepForward())
  4544. }, b.prototype.handleBlur = function() {
  4545. this.off(this.bar.el_.ownerDocument, "keydown", this.handleKeyPress)
  4546. }, b.prototype.handleClick = function(a) {
  4547. a.stopImmediatePropagation(), a.preventDefault()
  4548. }, b.prototype.vertical = function(a) {
  4549. return void 0 === a ? this.vertical_ || !1 : (this.vertical_ = !!a, this.vertical_ ? this.addClass("vjs-slider-vertical") : this.addClass("vjs-slider-horizontal"), this)
  4550. }, b
  4551. }(j["default"]);
  4552. j["default"].registerComponent("Slider", n), c["default"] = n
  4553. }, {
  4554. 5: 5,
  4555. 81: 81,
  4556. 88: 88
  4557. }
  4558. ],
  4559. 58: [
  4560. function(a, b, c) {
  4561. "use strict";
  4562. function d(a) {
  4563. return a.streamingFormats = {
  4564. "rtmp/mp4": "MP4",
  4565. "rtmp/flv": "FLV"
  4566. }, a.streamFromParts = function(a, b) {
  4567. return a + "&" + b
  4568. }, a.streamToParts = function(a) {
  4569. var b = {
  4570. connection: "",
  4571. stream: ""
  4572. };
  4573. if (!a) return b;
  4574. var c = a.search(/&(?!\w+=)/),
  4575. d = void 0;
  4576. return c !== -1 ? d = c + 1 : (c = d = a.lastIndexOf("/") + 1, 0 === c && (c = d = a.length)), b.connection = a.substring(0, c), b.stream = a.substring(d, a.length), b
  4577. }, a.isStreamingType = function(b) {
  4578. return b in a.streamingFormats
  4579. }, a.RTMP_RE = /^rtmp[set]?:\/\//i, a.isStreamingSrc = function(b) {
  4580. return a.RTMP_RE.test(b)
  4581. }, a.rtmpSourceHandler = {}, a.rtmpSourceHandler.canPlayType = function(b) {
  4582. return a.isStreamingType(b) ? "maybe" : ""
  4583. }, a.rtmpSourceHandler.canHandleSource = function(b, c) {
  4584. var d = a.rtmpSourceHandler.canPlayType(b.type);
  4585. return d ? d : a.isStreamingSrc(b.src) ? "maybe" : ""
  4586. }, a.rtmpSourceHandler.handleSource = function(b, c, d) {
  4587. var e = a.streamToParts(b.src);
  4588. c.setRtmpConnection(e.connection), c.setRtmpStream(e.stream)
  4589. }, a.registerSourceHandler(a.rtmpSourceHandler), a
  4590. }
  4591. c.__esModule = !0, c["default"] = d
  4592. }, {}
  4593. ],
  4594. 59: [
  4595. function(a, b, c) {
  4596. "use strict";
  4597. function d(a) {
  4598. if (a && a.__esModule) return a;
  4599. var b = {};
  4600. if (null != a)
  4601. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4602. return b["default"] = a, b
  4603. }
  4604. function e(a) {
  4605. return a && a.__esModule ? a : {
  4606. "default": a
  4607. }
  4608. }
  4609. function f(a, b) {
  4610. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4611. }
  4612. function g(a, b) {
  4613. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4614. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4615. }
  4616. function h(a, b) {
  4617. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4618. a.prototype = Object.create(b && b.prototype, {
  4619. constructor: {
  4620. value: a,
  4621. enumerable: !1,
  4622. writable: !0,
  4623. configurable: !0
  4624. }
  4625. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4626. }
  4627. function i(a) {
  4628. A["set" + (a.charAt(0).toUpperCase() + a.slice(1))] = function(b) {
  4629. return this.el_.vjs_setProperty(a, b)
  4630. }
  4631. }
  4632. function j(a) {
  4633. A[a] = function() {
  4634. return this.el_.vjs_getProperty(a)
  4635. }
  4636. }
  4637. c.__esModule = !0;
  4638. for (var k = a(62), l = e(k), m = a(81), n = d(m), o = a(92), p = d(o), q = a(90), r = a(58), s = e(r), t = a(5), u = e(t), v = a(95), w = e(v), x = a(88), y = w["default"].navigator, z = function(a) {
  4639. function b(c, d) {
  4640. f(this, b);
  4641. var e = g(this, a.call(this, c, d));
  4642. return c.source && e.ready(function() {
  4643. this.setSource(c.source)
  4644. }, !0), c.startTime && e.ready(function() {
  4645. this.load(), this.play(), this.currentTime(c.startTime)
  4646. }, !0), w["default"].videojs = w["default"].videojs || {}, w["default"].videojs.Flash = w["default"].videojs.Flash || {}, w["default"].videojs.Flash.onReady = b.onReady, w["default"].videojs.Flash.onEvent = b.onEvent, w["default"].videojs.Flash.onError = b.onError, e.on("seeked", function() {
  4647. this.lastSeekTarget_ = void 0
  4648. }), e
  4649. }
  4650. return h(b, a), b.prototype.createEl = function() {
  4651. var a = this.options_;
  4652. if (!a.swf) {
  4653. a.swf = "//vjs.zencdn.net/swf/5.3.0/video-js.swf"
  4654. }
  4655. var c = a.techId,
  4656. d = (0, x.assign)({
  4657. readyFunction: "videojs.Flash.onReady",
  4658. eventProxyFunction: "videojs.Flash.onEvent",
  4659. errorEventProxyFunction: "videojs.Flash.onError",
  4660. autoplay: a.autoplay,
  4661. preload: a.preload,
  4662. loop: a.loop,
  4663. muted: a.muted
  4664. }, a.flashVars),
  4665. e = (0, x.assign)({
  4666. wmode: "opaque",
  4667. bgcolor: "#000000"
  4668. }, a.params),
  4669. f = (0, x.assign)({
  4670. id: c,
  4671. name: c,
  4672. "class": "vjs-tech"
  4673. }, a.attributes);
  4674. return this.el_ = b.embed(a.swf, d, e, f), this.el_.tech = this, this.el_
  4675. }, b.prototype.play = function() {
  4676. this.ended() && this.setCurrentTime(0), this.el_.vjs_play()
  4677. }, b.prototype.pause = function() {
  4678. this.el_.vjs_pause()
  4679. }, b.prototype.src = function(a) {
  4680. return void 0 === a ? this.currentSrc() : this.setSrc(a)
  4681. }, b.prototype.setSrc = function(a) {
  4682. var b = this;
  4683. a = p.getAbsoluteURL(a), this.el_.vjs_src(a), this.autoplay() && this.setTimeout(function() {
  4684. return b.play()
  4685. }, 0)
  4686. }, b.prototype.seeking = function() {
  4687. return void 0 !== this.lastSeekTarget_
  4688. }, b.prototype.setCurrentTime = function(b) {
  4689. var c = this.seekable();
  4690. c.length && (b = b > c.start(0) ? b : c.start(0), b = b < c.end(c.length - 1) ? b : c.end(c.length - 1), this.lastSeekTarget_ = b, this.trigger("seeking"), this.el_.vjs_setProperty("currentTime", b), a.prototype.setCurrentTime.call(this))
  4691. }, b.prototype.currentTime = function() {
  4692. return this.seeking() ? this.lastSeekTarget_ || 0 : this.el_.vjs_getProperty("currentTime")
  4693. }, b.prototype.currentSrc = function() {
  4694. return this.currentSource_ ? this.currentSource_.src : this.el_.vjs_getProperty("currentSrc")
  4695. }, b.prototype.duration = function c() {
  4696. if (0 === this.readyState()) return NaN;
  4697. var c = this.el_.vjs_getProperty("duration");
  4698. return c >= 0 ? c : 1 / 0
  4699. }, b.prototype.load = function() {
  4700. this.el_.vjs_load()
  4701. }, b.prototype.poster = function() {
  4702. this.el_.vjs_getProperty("poster")
  4703. }, b.prototype.setPoster = function() {}, b.prototype.seekable = function() {
  4704. var a = this.duration();
  4705. return 0 === a ? (0, q.createTimeRange)() : (0, q.createTimeRange)(0, a)
  4706. }, b.prototype.buffered = function() {
  4707. var a = this.el_.vjs_getProperty("buffered");
  4708. return 0 === a.length ? (0, q.createTimeRange)() : (0, q.createTimeRange)(a[0][0], a[0][1])
  4709. }, b.prototype.supportsFullScreen = function() {
  4710. return !1
  4711. }, b.prototype.enterFullScreen = function() {
  4712. return !1
  4713. }, b
  4714. }(l["default"]), A = z.prototype, B = "rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","), C = "networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","), D = 0; D < B.length; D++) j(B[D]), i(B[D]);
  4715. for (var E = 0; E < C.length; E++) j(C[E]);
  4716. z.isSupported = function() {
  4717. return z.version()[0] >= 10
  4718. }, l["default"].withSourceHandlers(z), z.nativeSourceHandler = {}, z.nativeSourceHandler.canPlayType = function(a) {
  4719. return a in z.formats ? "maybe" : ""
  4720. }, z.nativeSourceHandler.canHandleSource = function(a, b) {
  4721. function c(a) {
  4722. var b = p.getFileExtension(a);
  4723. return b ? "video/" + b : ""
  4724. }
  4725. var d = void 0;
  4726. return d = a.type ? a.type.replace(/;.*/, "").toLowerCase() : c(a.src), z.nativeSourceHandler.canPlayType(d)
  4727. }, z.nativeSourceHandler.handleSource = function(a, b, c) {
  4728. b.setSrc(a.src)
  4729. }, z.nativeSourceHandler.dispose = function() {}, z.registerSourceHandler(z.nativeSourceHandler), z.formats = {
  4730. "video/flv": "FLV",
  4731. "video/x-flv": "FLV",
  4732. "video/mp4": "MP4",
  4733. "video/m4v": "MP4"
  4734. }, z.onReady = function(a) {
  4735. var b = n.getEl(a),
  4736. c = b && b.tech;
  4737. c && c.el() && z.checkReady(c)
  4738. }, z.checkReady = function(a) {
  4739. a.el() && (a.el().vjs_getProperty ? a.triggerReady() : this.setTimeout(function() {
  4740. z.checkReady(a)
  4741. }, 50))
  4742. }, z.onEvent = function(a, b) {
  4743. var c = n.getEl(a).tech,
  4744. d = Array.prototype.slice.call(arguments, 2);
  4745. c.setTimeout(function() {
  4746. c.trigger(b, d)
  4747. }, 1)
  4748. }, z.onError = function(a, b) {
  4749. var c = n.getEl(a).tech;
  4750. if ("srcnotfound" === b) return c.error(4);
  4751. c.error("FLASH: " + b)
  4752. }, z.version = function() {
  4753. var a = "0,0,0";
  4754. try {
  4755. a = new w["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]
  4756. } catch (b) {
  4757. try {
  4758. y.mimeTypes["application/x-shockwave-flash"].enabledPlugin && (a = (y.plugins["Shockwave Flash 2.0"] || y.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1])
  4759. } catch (c) {}
  4760. }
  4761. return a.split(",")
  4762. }, z.embed = function(a, b, c, d) {
  4763. var e = z.getEmbedCode(a, b, c, d);
  4764. return n.createEl("div", {
  4765. innerHTML: e
  4766. }).childNodes[0]
  4767. }, z.getEmbedCode = function(a, b, c, d) {
  4768. var e = "",
  4769. f = "",
  4770. g = "";
  4771. return b && Object.getOwnPropertyNames(b).forEach(function(a) {
  4772. e += a + "=" + b[a] + "&amp;"
  4773. }), c = (0, x.assign)({
  4774. movie: a,
  4775. flashvars: e,
  4776. allowScriptAccess: "always",
  4777. allowNetworking: "all"
  4778. }, c), Object.getOwnPropertyNames(c).forEach(function(a) {
  4779. f += '<param name="' + a + '" value="' + c[a] + '" />'
  4780. }), d = (0, x.assign)({
  4781. data: a,
  4782. width: "100%",
  4783. height: "100%"
  4784. }, d), Object.getOwnPropertyNames(d).forEach(function(a) {
  4785. g += a + '="' + d[a] + '" '
  4786. }), '<object type="application/x-shockwave-flash" ' + g + ">" + f + "</object>"
  4787. }, (0, s["default"])(z), u["default"].registerComponent("Flash", z), l["default"].registerTech("Flash", z), c["default"] = z
  4788. }, {
  4789. 5: 5,
  4790. 58: 58,
  4791. 62: 62,
  4792. 81: 81,
  4793. 88: 88,
  4794. 90: 90,
  4795. 92: 92,
  4796. 95: 95
  4797. }
  4798. ],
  4799. 60: [
  4800. function(a, b, c) {
  4801. "use strict";
  4802. function d(a) {
  4803. if (a && a.__esModule) return a;
  4804. var b = {};
  4805. if (null != a)
  4806. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  4807. return b["default"] = a, b
  4808. }
  4809. function e(a) {
  4810. return a && a.__esModule ? a : {
  4811. "default": a
  4812. }
  4813. }
  4814. function f(a, b) {
  4815. return a.raw = b, a
  4816. }
  4817. function g(a, b) {
  4818. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  4819. }
  4820. function h(a, b) {
  4821. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  4822. return !b || "object" != typeof b && "function" != typeof b ? a : b
  4823. }
  4824. function i(a, b) {
  4825. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  4826. a.prototype = Object.create(b && b.prototype, {
  4827. constructor: {
  4828. value: a,
  4829. enumerable: !1,
  4830. writable: !0,
  4831. configurable: !0
  4832. }
  4833. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  4834. }
  4835. c.__esModule = !0;
  4836. var j = f(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."], ["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),
  4837. k = a(62),
  4838. l = e(k),
  4839. m = a(5),
  4840. n = e(m),
  4841. o = a(81),
  4842. p = d(o),
  4843. q = a(92),
  4844. r = d(q),
  4845. s = a(83),
  4846. t = d(s),
  4847. u = a(86),
  4848. v = e(u),
  4849. w = a(98),
  4850. x = e(w),
  4851. y = a(78),
  4852. z = d(y),
  4853. A = a(94),
  4854. B = e(A),
  4855. C = a(95),
  4856. D = e(C),
  4857. E = a(88),
  4858. F = a(87),
  4859. G = e(F),
  4860. H = a(91),
  4861. I = e(H),
  4862. J = function(a) {
  4863. function b(c, d) {
  4864. g(this, b);
  4865. var e = h(this, a.call(this, c, d)),
  4866. f = c.source,
  4867. i = !1;
  4868. if (f && (e.el_.currentSrc !== f.src || c.tag && 3 === c.tag.initNetworkState_) ? e.setSource(f) : e.handleLateInit_(e.el_), e.el_.hasChildNodes()) {
  4869. for (var k = e.el_.childNodes, l = k.length, m = []; l--;) {
  4870. var n = k[l];
  4871. "track" === n.nodeName.toLowerCase() && (e.featuresNativeTextTracks ? (e.remoteTextTrackEls().addTrackElement_(n), e.remoteTextTracks().addTrack_(n.track), i || e.el_.hasAttribute("crossorigin") || !r.isCrossOrigin(n.src) || (i = !0)) : m.push(n))
  4872. }
  4873. for (var o = 0; o < m.length; o++) e.el_.removeChild(m[o])
  4874. }
  4875. return ["audio", "video"].forEach(function(a) {
  4876. var b = e.el()[a + "Tracks"],
  4877. c = e[a + "Tracks"](),
  4878. d = (0, I["default"])(a);
  4879. e["featuresNative" + d + "Tracks"] && b && b.addEventListener && (e["handle" + d + "TrackChange_"] = function(a) {
  4880. c.trigger({
  4881. type: "change",
  4882. target: c,
  4883. currentTarget: c,
  4884. srcElement: c
  4885. })
  4886. }, e["handle" + d + "TrackAdd_"] = function(a) {
  4887. return c.addTrack(a.track)
  4888. }, e["handle" + d + "TrackRemove_"] = function(a) {
  4889. return c.removeTrack(a.track)
  4890. }, b.addEventListener("change", e["handle" + d + "TrackChange_"]), b.addEventListener("addtrack", e["handle" + d + "TrackAdd_"]), b.addEventListener("removetrack", e["handle" + d + "TrackRemove_"]), e["removeOld" + d + "Tracks_"] = function(a) {
  4891. return e.removeOldTracks_(c, b)
  4892. }, e.on("loadstart", e["removeOld" + d + "Tracks_"]))
  4893. }), e.featuresNativeTextTracks && (i && v["default"].warn((0, x["default"])(j)), e.handleTextTrackChange_ = t.bind(e, e.handleTextTrackChange), e.handleTextTrackAdd_ = t.bind(e, e.handleTextTrackAdd), e.handleTextTrackRemove_ = t.bind(e, e.handleTextTrackRemove), e.proxyNativeTextTracks_()), (z.TOUCH_ENABLED || z.IS_IPHONE || z.IS_NATIVE_ANDROID) && c.nativeControlsForTouch === !0 && e.setControls(!0), e.proxyWebkitFullscreen_(), e.triggerReady(), e
  4894. }
  4895. return i(b, a), b.prototype.dispose = function() {
  4896. var c = this;
  4897. ["audio", "video", "text"].forEach(function(a) {
  4898. var b = (0, I["default"])(a),
  4899. d = c.el_[a + "Tracks"];
  4900. d && d.removeEventListener && (d.removeEventListener("change", c["handle" + b + "TrackChange_"]), d.removeEventListener("addtrack", c["handle" + b + "TrackAdd_"]), d.removeEventListener("removetrack", c["handle" + b + "TrackRemove_"])), d && c.off("loadstart", c["removeOld" + b + "Tracks_"])
  4901. }), b.disposeMediaElement(this.el_), a.prototype.dispose.call(this)
  4902. }, b.prototype.createEl = function() {
  4903. var a = this.options_.tag;
  4904. if (!a || !this.options_.playerElIngest && !this.movingMediaElementInDOM) {
  4905. if (a) {
  4906. var c = a.cloneNode(!0);
  4907. a.parentNode && a.parentNode.insertBefore(c, a), b.disposeMediaElement(a), a = c
  4908. } else {
  4909. a = B["default"].createElement("video");
  4910. var d = this.options_.tag && p.getElAttributes(this.options_.tag),
  4911. e = (0, G["default"])({}, d);
  4912. z.TOUCH_ENABLED && this.options_.nativeControlsForTouch === !0 || delete e.controls, p.setElAttributes(a, (0, E.assign)(e, {
  4913. id: this.options_.techId,
  4914. "class": "vjs-tech"
  4915. }))
  4916. }
  4917. a.playerId = this.options_.playerId
  4918. }
  4919. for (var f = ["autoplay", "preload", "loop", "muted"], g = f.length - 1; g >= 0; g--) {
  4920. var h = f[g],
  4921. i = {};
  4922. "undefined" != typeof this.options_[h] && (i[h] = this.options_[h]), p.setElAttributes(a, i)
  4923. }
  4924. return a
  4925. }, b.prototype.handleLateInit_ = function(a) {
  4926. if (0 !== a.networkState && 3 !== a.networkState) {
  4927. if (0 === a.readyState) {
  4928. var b = !1,
  4929. c = function() {
  4930. b = !0
  4931. };
  4932. this.on("loadstart", c);
  4933. var d = function() {
  4934. b || this.trigger("loadstart")
  4935. };
  4936. return this.on("loadedmetadata", d), void this.ready(function() {
  4937. this.off("loadstart", c), this.off("loadedmetadata", d), b || this.trigger("loadstart")
  4938. })
  4939. }
  4940. var e = ["loadstart"];
  4941. e.push("loadedmetadata"), a.readyState >= 2 && e.push("loadeddata"), a.readyState >= 3 && e.push("canplay"), a.readyState >= 4 && e.push("canplaythrough"), this.ready(function() {
  4942. e.forEach(function(a) {
  4943. this.trigger(a)
  4944. }, this)
  4945. })
  4946. }
  4947. }, b.prototype.proxyNativeTextTracks_ = function() {
  4948. var a = this.el().textTracks;
  4949. if (a) {
  4950. for (var b = 0; b < a.length; b++) this.textTracks().addTrack_(a[b]);
  4951. a.addEventListener && (a.addEventListener("change", this.handleTextTrackChange_), a.addEventListener("addtrack", this.handleTextTrackAdd_), a.addEventListener("removetrack", this.handleTextTrackRemove_)), this.on("loadstart", this.removeOldTextTracks_)
  4952. }
  4953. }, b.prototype.handleTextTrackChange = function(a) {
  4954. var b = this.textTracks();
  4955. this.textTracks().trigger({
  4956. type: "change",
  4957. target: b,
  4958. currentTarget: b,
  4959. srcElement: b
  4960. })
  4961. }, b.prototype.handleTextTrackAdd = function(a) {
  4962. this.textTracks().addTrack_(a.track)
  4963. }, b.prototype.handleTextTrackRemove = function(a) {
  4964. this.textTracks().removeTrack_(a.track)
  4965. }, b.prototype.removeOldTracks_ = function(a, b) {
  4966. var c = [];
  4967. if (b) {
  4968. for (var d = 0; d < a.length; d++) {
  4969. for (var e = a[d], f = !1, g = 0; g < b.length; g++)
  4970. if (b[g] === e) {
  4971. f = !0;
  4972. break
  4973. }
  4974. f || c.push(e)
  4975. }
  4976. for (var h = 0; h < c.length; h++) {
  4977. var i = c[h];
  4978. a.removeTrack_(i)
  4979. }
  4980. }
  4981. }, b.prototype.removeOldTextTracks_ = function(a) {
  4982. var b = this.textTracks(),
  4983. c = this.el().textTracks;
  4984. this.removeOldTracks_(b, c)
  4985. }, b.prototype.play = function() {
  4986. var a = this.el_.play();
  4987. void 0 !== a && "function" == typeof a.then && a.then(null, function(a) {})
  4988. }, b.prototype.setCurrentTime = function(a) {
  4989. try {
  4990. this.el_.currentTime = a
  4991. } catch (b) {
  4992. (0, v["default"])(b, "Video is not ready. (Video.js)")
  4993. }
  4994. }, b.prototype.duration = function() {
  4995. var a = this;
  4996. if (this.el_.duration === 1 / 0 && z.IS_ANDROID && z.IS_CHROME && 0 === this.el_.currentTime) {
  4997. var b = function c() {
  4998. a.el_.currentTime > 0 && (a.el_.duration === 1 / 0 && a.trigger("durationchange"), a.off("timeupdate", c))
  4999. };
  5000. return this.on("timeupdate", b), NaN
  5001. }
  5002. return this.el_.duration || NaN
  5003. }, b.prototype.width = function() {
  5004. return this.el_.offsetWidth
  5005. }, b.prototype.height = function() {
  5006. return this.el_.offsetHeight
  5007. }, b.prototype.proxyWebkitFullscreen_ = function() {
  5008. var a = this;
  5009. if ("webkitDisplayingFullscreen" in this.el_) {
  5010. var b = function() {
  5011. this.trigger("fullscreenchange", {
  5012. isFullscreen: !1
  5013. })
  5014. },
  5015. c = function() {
  5016. this.one("webkitendfullscreen", b), this.trigger("fullscreenchange", {
  5017. isFullscreen: !0
  5018. })
  5019. };
  5020. this.on("webkitbeginfullscreen", c), this.on("dispose", function() {
  5021. a.off("webkitbeginfullscreen", c), a.off("webkitendfullscreen", b)
  5022. })
  5023. }
  5024. }, b.prototype.supportsFullScreen = function() {
  5025. if ("function" == typeof this.el_.webkitEnterFullScreen) {
  5026. var a = D["default"].navigator && D["default"].navigator.userAgent || "";
  5027. if (/Android/.test(a) || !/Chrome|Mac OS X 10.5/.test(a)) return !0
  5028. }
  5029. return !1
  5030. }, b.prototype.enterFullScreen = function() {
  5031. var a = this.el_;
  5032. a.paused && a.networkState <= a.HAVE_METADATA ? (this.el_.play(), this.setTimeout(function() {
  5033. a.pause(), a.webkitEnterFullScreen()
  5034. }, 0)) : a.webkitEnterFullScreen()
  5035. }, b.prototype.exitFullScreen = function() {
  5036. this.el_.webkitExitFullScreen()
  5037. }, b.prototype.src = function(a) {
  5038. if (void 0 === a) return this.el_.src;
  5039. this.setSrc(a)
  5040. }, b.prototype.reset = function() {
  5041. b.resetMediaElement(this.el_)
  5042. }, b.prototype.currentSrc = function() {
  5043. return this.currentSource_ ? this.currentSource_.src : this.el_.currentSrc
  5044. }, b.prototype.setControls = function(a) {
  5045. this.el_.controls = !!a
  5046. }, b.prototype.addTextTrack = function(b, c, d) {
  5047. return this.featuresNativeTextTracks ? this.el_.addTextTrack(b, c, d) : a.prototype.addTextTrack.call(this, b, c, d)
  5048. }, b.prototype.createRemoteTextTrack = function(b) {
  5049. if (!this.featuresNativeTextTracks) return a.prototype.createRemoteTextTrack.call(this, b);
  5050. var c = B["default"].createElement("track");
  5051. return b.kind && (c.kind = b.kind), b.label && (c.label = b.label), (b.language || b.srclang) && (c.srclang = b.language || b.srclang), b["default"] && (c["default"] = b["default"]), b.id && (c.id = b.id), b.src && (c.src = b.src), c
  5052. }, b.prototype.addRemoteTextTrack = function(b, c) {
  5053. var d = a.prototype.addRemoteTextTrack.call(this, b, c);
  5054. return this.featuresNativeTextTracks && this.el().appendChild(d), d
  5055. }, b.prototype.removeRemoteTextTrack = function(b) {
  5056. if (a.prototype.removeRemoteTextTrack.call(this, b), this.featuresNativeTextTracks)
  5057. for (var c = this.$$("track"), d = c.length; d--;) b !== c[d] && b !== c[d].track || this.el().removeChild(c[d])
  5058. }, b
  5059. }(l["default"]);
  5060. if (p.isReal()) {
  5061. J.TEST_VID = B["default"].createElement("video");
  5062. var K = B["default"].createElement("track");
  5063. K.kind = "captions", K.srclang = "en", K.label = "English", J.TEST_VID.appendChild(K)
  5064. }
  5065. J.isSupported = function() {
  5066. try {
  5067. J.TEST_VID.volume = .5
  5068. } catch (a) {
  5069. return !1
  5070. }
  5071. return !(!J.TEST_VID || !J.TEST_VID.canPlayType)
  5072. }, J.canControlVolume = function() {
  5073. try {
  5074. var a = J.TEST_VID.volume;
  5075. return J.TEST_VID.volume = a / 2 + .1, a !== J.TEST_VID.volume
  5076. } catch (b) {
  5077. return !1
  5078. }
  5079. }, J.canControlPlaybackRate = function() {
  5080. if (z.IS_ANDROID && z.IS_CHROME) return !1;
  5081. try {
  5082. var a = J.TEST_VID.playbackRate;
  5083. return J.TEST_VID.playbackRate = a / 2 + .1, a !== J.TEST_VID.playbackRate
  5084. } catch (b) {
  5085. return !1
  5086. }
  5087. }, J.supportsNativeTextTracks = function() {
  5088. return z.IS_ANY_SAFARI
  5089. }, J.supportsNativeVideoTracks = function() {
  5090. return !(!J.TEST_VID || !J.TEST_VID.videoTracks)
  5091. }, J.supportsNativeAudioTracks = function() {
  5092. return !(!J.TEST_VID || !J.TEST_VID.audioTracks)
  5093. }, J.Events = ["loadstart", "suspend", "abort", "error", "emptied", "stalled", "loadedmetadata", "loadeddata", "canplay", "canplaythrough", "playing", "waiting", "seeking", "seeked", "ended", "durationchange", "timeupdate", "progress", "play", "pause", "ratechange", "volumechange"], J.prototype.featuresVolumeControl = J.canControlVolume(), J.prototype.featuresPlaybackRate = J.canControlPlaybackRate(), J.prototype.movingMediaElementInDOM = !z.IS_IOS, J.prototype.featuresFullscreenResize = !0, J.prototype.featuresProgressEvents = !0, J.prototype.featuresTimeupdateEvents = !0, J.prototype.featuresNativeTextTracks = J.supportsNativeTextTracks(), J.prototype.featuresNativeVideoTracks = J.supportsNativeVideoTracks(), J.prototype.featuresNativeAudioTracks = J.supportsNativeAudioTracks();
  5094. var L = J.TEST_VID && J.TEST_VID.constructor.prototype.canPlayType,
  5095. M = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
  5096. N = /^video\/mp4/i;
  5097. J.patchCanPlayType = function() {
  5098. z.ANDROID_VERSION >= 4 && !z.IS_FIREFOX ? J.TEST_VID.constructor.prototype.canPlayType = function(a) {
  5099. return a && M.test(a) ? "maybe" : L.call(this, a)
  5100. } : z.IS_OLD_ANDROID && (J.TEST_VID.constructor.prototype.canPlayType = function(a) {
  5101. return a && N.test(a) ? "maybe" : L.call(this, a)
  5102. })
  5103. }, J.unpatchCanPlayType = function() {
  5104. var a = J.TEST_VID.constructor.prototype.canPlayType;
  5105. return J.TEST_VID.constructor.prototype.canPlayType = L, a
  5106. }, J.patchCanPlayType(), J.disposeMediaElement = function(a) {
  5107. if (a) {
  5108. for (a.parentNode && a.parentNode.removeChild(a); a.hasChildNodes();) a.removeChild(a.firstChild);
  5109. a.removeAttribute("src"), "function" == typeof a.load && function() {
  5110. try {
  5111. a.load()
  5112. } catch (b) {}
  5113. }()
  5114. }
  5115. }, J.resetMediaElement = function(a) {
  5116. if (a) {
  5117. for (var b = a.querySelectorAll("source"), c = b.length; c--;) a.removeChild(b[c]);
  5118. a.removeAttribute("src"), "function" == typeof a.load && function() {
  5119. try {
  5120. a.load()
  5121. } catch (b) {}
  5122. }()
  5123. }
  5124. }, ["paused", "currentTime", "buffered", "volume", "muted", "poster", "preload", "autoplay", "controls", "loop", "error", "seeking", "seekable", "ended", "defaultMuted", "playbackRate", "played", "networkState", "readyState", "videoWidth", "videoHeight"].forEach(function(a) {
  5125. J.prototype[a] = function() {
  5126. return this.el_[a]
  5127. }
  5128. }), ["volume", "muted", "src", "poster", "preload", "autoplay", "loop", "playbackRate"].forEach(function(a) {
  5129. J.prototype["set" + (0, I["default"])(a)] = function(b) {
  5130. this.el_[a] = b
  5131. }
  5132. }), ["pause", "load"].forEach(function(a) {
  5133. J.prototype[a] = function() {
  5134. return this.el_[a]()
  5135. }
  5136. }), l["default"].withSourceHandlers(J), J.nativeSourceHandler = {}, J.nativeSourceHandler.canPlayType = function(a) {
  5137. try {
  5138. return J.TEST_VID.canPlayType(a)
  5139. } catch (b) {
  5140. return ""
  5141. }
  5142. }, J.nativeSourceHandler.canHandleSource = function(a, b) {
  5143. if (a.type) return J.nativeSourceHandler.canPlayType(a.type);
  5144. if (a.src) {
  5145. var c = r.getFileExtension(a.src);
  5146. return J.nativeSourceHandler.canPlayType("video/" + c)
  5147. }
  5148. return ""
  5149. }, J.nativeSourceHandler.handleSource = function(a, b, c) {
  5150. b.setSrc(a.src)
  5151. }, J.nativeSourceHandler.dispose = function() {}, J.registerSourceHandler(J.nativeSourceHandler), n["default"].registerComponent("Html5", J), l["default"].registerTech("Html5", J), c["default"] = J
  5152. }, {
  5153. 5: 5,
  5154. 62: 62,
  5155. 78: 78,
  5156. 81: 81,
  5157. 83: 83,
  5158. 86: 86,
  5159. 87: 87,
  5160. 88: 88,
  5161. 91: 91,
  5162. 92: 92,
  5163. 94: 94,
  5164. 95: 95,
  5165. 98: 98
  5166. }
  5167. ],
  5168. 61: [
  5169. function(a, b, c) {
  5170. "use strict";
  5171. function d(a) {
  5172. return a && a.__esModule ? a : {
  5173. "default": a
  5174. }
  5175. }
  5176. function e(a, b) {
  5177. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5178. }
  5179. function f(a, b) {
  5180. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5181. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5182. }
  5183. function g(a, b) {
  5184. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5185. a.prototype = Object.create(b && b.prototype, {
  5186. constructor: {
  5187. value: a,
  5188. enumerable: !1,
  5189. writable: !0,
  5190. configurable: !0
  5191. }
  5192. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5193. }
  5194. c.__esModule = !0;
  5195. var h = a(5),
  5196. i = d(h),
  5197. j = a(62),
  5198. k = d(j),
  5199. l = a(91),
  5200. m = d(l),
  5201. n = function(a) {
  5202. function b(c, d, g) {
  5203. e(this, b);
  5204. var h = f(this, a.call(this, c, d, g));
  5205. if (d.playerOptions.sources && 0 !== d.playerOptions.sources.length) c.src(d.playerOptions.sources);
  5206. else
  5207. for (var j = 0, l = d.playerOptions.techOrder; j < l.length; j++) {
  5208. var n = (0, m["default"])(l[j]),
  5209. o = k["default"].getTech(n);
  5210. if (n || (o = i["default"].getComponent(n)), o && o.isSupported()) {
  5211. c.loadTech_(n);
  5212. break
  5213. }
  5214. }
  5215. return h
  5216. }
  5217. return g(b, a), b
  5218. }(i["default"]);
  5219. i["default"].registerComponent("MediaLoader", n), c["default"] = n
  5220. }, {
  5221. 5: 5,
  5222. 62: 62,
  5223. 91: 91
  5224. }
  5225. ],
  5226. 62: [
  5227. function(a, b, c) {
  5228. "use strict";
  5229. function d(a) {
  5230. if (a && a.__esModule) return a;
  5231. var b = {};
  5232. if (null != a)
  5233. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5234. return b["default"] = a, b
  5235. }
  5236. function e(a) {
  5237. return a && a.__esModule ? a : {
  5238. "default": a
  5239. }
  5240. }
  5241. function f(a, b) {
  5242. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5243. }
  5244. function g(a, b) {
  5245. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5246. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5247. }
  5248. function h(a, b) {
  5249. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5250. a.prototype = Object.create(b && b.prototype, {
  5251. constructor: {
  5252. value: a,
  5253. enumerable: !1,
  5254. writable: !0,
  5255. configurable: !0
  5256. }
  5257. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5258. }
  5259. function i(a, b, c, d) {
  5260. var e = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {},
  5261. f = a.textTracks();
  5262. e.kind = b, c && (e.label = c), d && (e.language = d), e.tech = a;
  5263. var g = new s["default"](e);
  5264. return f.addTrack_(g), g
  5265. }
  5266. c.__esModule = !0;
  5267. var j = a(5),
  5268. k = e(j),
  5269. l = a(66),
  5270. m = e(l),
  5271. n = a(65),
  5272. o = e(n),
  5273. p = a(87),
  5274. q = e(p),
  5275. r = a(72),
  5276. s = e(r),
  5277. t = a(70),
  5278. u = e(t),
  5279. v = a(76),
  5280. w = e(v),
  5281. x = a(63),
  5282. y = e(x),
  5283. z = a(83),
  5284. A = d(z),
  5285. B = a(86),
  5286. C = e(B),
  5287. D = a(90),
  5288. E = a(79),
  5289. F = a(46),
  5290. G = e(F),
  5291. H = a(95),
  5292. I = e(H),
  5293. J = a(94),
  5294. K = e(J),
  5295. L = a(88),
  5296. M = function(b) {
  5297. function c() {
  5298. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  5299. d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function() {};
  5300. f(this, c), a.reportTouchActivity = !1;
  5301. var e = g(this, b.call(this, null, a, d));
  5302. return e.hasStarted_ = !1, e.on("playing", function() {
  5303. this.hasStarted_ = !0
  5304. }), e.on("loadstart", function() {
  5305. this.hasStarted_ = !1
  5306. }), e.textTracks_ = a.textTracks, e.videoTracks_ = a.videoTracks, e.audioTracks_ = a.audioTracks, e.featuresProgressEvents || e.manualProgressOn(), e.featuresTimeupdateEvents || e.manualTimeUpdatesOn(), ["Text", "Audio", "Video"].forEach(function(b) {
  5307. a["native" + b + "Tracks"] === !1 && (e["featuresNative" + b + "Tracks"] = !1)
  5308. }), a.nativeCaptions === !1 && (e.featuresNativeTextTracks = !1), e.featuresNativeTextTracks || e.emulateTextTracks(), e.autoRemoteTextTracks_ = new u["default"], e.initTextTrackListeners(), e.initTrackListeners(), a.nativeControlsForTouch || e.emitTapEvents(), e.constructor && (e.name_ = e.constructor.name || "Unknown Tech"), e
  5309. }
  5310. return h(c, b), c.prototype.manualProgressOn = function() {
  5311. this.on("durationchange", this.onDurationChange), this.manualProgress = !0, this.one("ready", this.trackProgress)
  5312. }, c.prototype.manualProgressOff = function() {
  5313. this.manualProgress = !1, this.stopTrackingProgress(), this.off("durationchange", this.onDurationChange)
  5314. }, c.prototype.trackProgress = function(a) {
  5315. this.stopTrackingProgress(), this.progressInterval = this.setInterval(A.bind(this, function() {
  5316. var a = this.bufferedPercent();
  5317. this.bufferedPercent_ !== a && this.trigger("progress"), this.bufferedPercent_ = a, 1 === a && this.stopTrackingProgress()
  5318. }), 500)
  5319. }, c.prototype.onDurationChange = function(a) {
  5320. this.duration_ = this.duration()
  5321. }, c.prototype.buffered = function() {
  5322. return (0, D.createTimeRange)(0, 0)
  5323. }, c.prototype.bufferedPercent = function() {
  5324. return (0, E.bufferedPercent)(this.buffered(), this.duration_)
  5325. }, c.prototype.stopTrackingProgress = function() {
  5326. this.clearInterval(this.progressInterval)
  5327. }, c.prototype.manualTimeUpdatesOn = function() {
  5328. this.manualTimeUpdates = !0, this.on("play", this.trackCurrentTime), this.on("pause", this.stopTrackingCurrentTime)
  5329. }, c.prototype.manualTimeUpdatesOff = function() {
  5330. this.manualTimeUpdates = !1, this.stopTrackingCurrentTime(), this.off("play", this.trackCurrentTime), this.off("pause", this.stopTrackingCurrentTime)
  5331. }, c.prototype.trackCurrentTime = function() {
  5332. this.currentTimeInterval && this.stopTrackingCurrentTime(), this.currentTimeInterval = this.setInterval(function() {
  5333. this.trigger({
  5334. type: "timeupdate",
  5335. target: this,
  5336. manuallyTriggered: !0
  5337. })
  5338. }, 250)
  5339. }, c.prototype.stopTrackingCurrentTime = function() {
  5340. this.clearInterval(this.currentTimeInterval), this.trigger({
  5341. type: "timeupdate",
  5342. target: this,
  5343. manuallyTriggered: !0
  5344. })
  5345. }, c.prototype.dispose = function() {
  5346. this.clearTracks(["audio", "video", "text"]), this.manualProgress && this.manualProgressOff(), this.manualTimeUpdates && this.manualTimeUpdatesOff(), b.prototype.dispose.call(this)
  5347. }, c.prototype.clearTracks = function(a) {
  5348. var b = this;
  5349. a = [].concat(a), a.forEach(function(a) {
  5350. for (var c = b[a + "Tracks"]() || [], d = c.length; d--;) {
  5351. var e = c[d];
  5352. "text" === a && b.removeRemoteTextTrack(e), c.removeTrack_(e)
  5353. }
  5354. })
  5355. }, c.prototype.cleanupAutoTextTracks = function() {
  5356. for (var a = this.autoRemoteTextTracks_ || [], b = a.length; b--;) {
  5357. var c = a[b];
  5358. this.removeRemoteTextTrack(c)
  5359. }
  5360. }, c.prototype.reset = function() {}, c.prototype.error = function(a) {
  5361. return void 0 !== a && (this.error_ = new G["default"](a), this.trigger("error")), this.error_
  5362. }, c.prototype.played = function() {
  5363. return this.hasStarted_ ? (0, D.createTimeRange)(0, 0) : (0, D.createTimeRange)()
  5364. }, c.prototype.setCurrentTime = function() {
  5365. this.manualTimeUpdates && this.trigger({
  5366. type: "timeupdate",
  5367. target: this,
  5368. manuallyTriggered: !0
  5369. })
  5370. }, c.prototype.initTextTrackListeners = function() {
  5371. var a = A.bind(this, function() {
  5372. this.trigger("texttrackchange")
  5373. }),
  5374. b = this.textTracks();
  5375. b && (b.addEventListener("removetrack", a), b.addEventListener("addtrack", a), this.on("dispose", A.bind(this, function() {
  5376. b.removeEventListener("removetrack", a), b.removeEventListener("addtrack", a)
  5377. })))
  5378. }, c.prototype.initTrackListeners = function() {
  5379. var a = this;
  5380. ["video", "audio"].forEach(function(b) {
  5381. var c = function() {
  5382. a.trigger(b + "trackchange")
  5383. },
  5384. d = a[b + "Tracks"]();
  5385. d.addEventListener("removetrack", c), d.addEventListener("addtrack", c), a.on("dispose", function() {
  5386. d.removeEventListener("removetrack", c),
  5387. d.removeEventListener("addtrack", c)
  5388. })
  5389. })
  5390. }, c.prototype.addWebVttScript_ = function() {
  5391. var b = this;
  5392. if (!I["default"].WebVTT)
  5393. if (K["default"].body.contains(this.el())) {
  5394. var c = a(105);
  5395. if (!this.options_["vtt.js"] && (0, L.isPlain)(c) && Object.keys(c).length > 0) return void this.trigger("vttjsloaded");
  5396. var d = K["default"].createElement("script");
  5397. d.src = this.options_["vtt.js"] || "https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js", d.onload = function() {
  5398. b.trigger("vttjsloaded")
  5399. }, d.onerror = function() {
  5400. b.trigger("vttjserror")
  5401. }, this.on("dispose", function() {
  5402. d.onload = null, d.onerror = null
  5403. }), I["default"].WebVTT = !0, this.el().parentNode.appendChild(d)
  5404. } else this.ready(this.addWebVttScript_)
  5405. }, c.prototype.emulateTextTracks = function() {
  5406. var a = this,
  5407. b = this.textTracks();
  5408. if (b) {
  5409. var c = this.remoteTextTracks(),
  5410. d = function(a) {
  5411. return b.addTrack_(a.track)
  5412. },
  5413. e = function(a) {
  5414. return b.removeTrack_(a.track)
  5415. };
  5416. c.on("addtrack", d), c.on("removetrack", e), this.addWebVttScript_();
  5417. var f = function() {
  5418. return a.trigger("texttrackchange")
  5419. },
  5420. g = function() {
  5421. f();
  5422. for (var a = 0; a < b.length; a++) {
  5423. var c = b[a];
  5424. c.removeEventListener("cuechange", f), "showing" === c.mode && c.addEventListener("cuechange", f)
  5425. }
  5426. };
  5427. g(), b.addEventListener("change", g), this.on("dispose", function() {
  5428. c.off("addtrack", d), c.off("removetrack", e), b.removeEventListener("change", g);
  5429. for (var a = 0; a < b.length; a++) {
  5430. b[a].removeEventListener("cuechange", f)
  5431. }
  5432. })
  5433. }
  5434. }, c.prototype.videoTracks = function() {
  5435. return this.videoTracks_ = this.videoTracks_ || new w["default"], this.videoTracks_
  5436. }, c.prototype.audioTracks = function() {
  5437. return this.audioTracks_ = this.audioTracks_ || new y["default"], this.audioTracks_
  5438. }, c.prototype.textTracks = function() {
  5439. return this.textTracks_ = this.textTracks_ || new u["default"], this.textTracks_
  5440. }, c.prototype.remoteTextTracks = function() {
  5441. return this.remoteTextTracks_ = this.remoteTextTracks_ || new u["default"], this.remoteTextTracks_
  5442. }, c.prototype.remoteTextTrackEls = function() {
  5443. return this.remoteTextTrackEls_ = this.remoteTextTrackEls_ || new o["default"], this.remoteTextTrackEls_
  5444. }, c.prototype.addTextTrack = function(a, b, c) {
  5445. if (!a) throw new Error("TextTrack kind is required but was not provided");
  5446. return i(this, a, b, c)
  5447. }, c.prototype.createRemoteTextTrack = function(a) {
  5448. var b = (0, q["default"])(a, {
  5449. tech: this
  5450. });
  5451. return new m["default"](b)
  5452. }, c.prototype.addRemoteTextTrack = function() {
  5453. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
  5454. b = arguments[1],
  5455. c = this.createRemoteTextTrack(a);
  5456. return b !== !0 && b !== !1 && (C["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'), b = !0), this.remoteTextTrackEls().addTrackElement_(c), this.remoteTextTracks().addTrack_(c.track), b !== !0 && this.autoRemoteTextTracks_.addTrack_(c.track), c
  5457. }, c.prototype.removeRemoteTextTrack = function(a) {
  5458. var b = this.remoteTextTrackEls().getTrackElementByTrack_(a);
  5459. this.remoteTextTrackEls().removeTrackElement_(b), this.remoteTextTracks().removeTrack_(a), this.autoRemoteTextTracks_.removeTrack_(a)
  5460. }, c.prototype.setPoster = function() {}, c.prototype.canPlayType = function() {
  5461. return ""
  5462. }, c.isTech = function(a) {
  5463. return a.prototype instanceof c || a instanceof c || a === c
  5464. }, c.registerTech = function(a, b) {
  5465. if (c.techs_ || (c.techs_ = {}), !c.isTech(b)) throw new Error("Tech " + a + " must be a Tech");
  5466. return c.techs_[a] = b, b
  5467. }, c.getTech = function(a) {
  5468. return c.techs_ && c.techs_[a] ? c.techs_[a] : I["default"] && I["default"].videojs && I["default"].videojs[a] ? (C["default"].warn("The " + a + " tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"), I["default"].videojs[a]) : void 0
  5469. }, c
  5470. }(k["default"]);
  5471. M.prototype.textTracks_, M.prototype.audioTracks_, M.prototype.videoTracks_, M.prototype.featuresVolumeControl = !0, M.prototype.featuresFullscreenResize = !1, M.prototype.featuresPlaybackRate = !1, M.prototype.featuresProgressEvents = !1, M.prototype.featuresTimeupdateEvents = !1, M.prototype.featuresNativeTextTracks = !1, M.withSourceHandlers = function(a) {
  5472. a.registerSourceHandler = function(b, c) {
  5473. var d = a.sourceHandlers;
  5474. d || (d = a.sourceHandlers = []), void 0 === c && (c = d.length), d.splice(c, 0, b)
  5475. }, a.canPlayType = function(b) {
  5476. for (var c = a.sourceHandlers || [], d = void 0, e = 0; e < c.length; e++)
  5477. if (d = c[e].canPlayType(b)) return d;
  5478. return ""
  5479. }, a.selectSourceHandler = function(b, c) {
  5480. for (var d = a.sourceHandlers || [], e = 0; e < d.length; e++)
  5481. if (d[e].canHandleSource(b, c)) return d[e];
  5482. return null
  5483. }, a.canPlaySource = function(b, c) {
  5484. var d = a.selectSourceHandler(b, c);
  5485. return d ? d.canHandleSource(b, c) : ""
  5486. }, ["seekable", "duration"].forEach(function(a) {
  5487. var b = this[a];
  5488. "function" == typeof b && (this[a] = function() {
  5489. return this.sourceHandler_ && this.sourceHandler_[a] ? this.sourceHandler_[a].apply(this.sourceHandler_, arguments) : b.apply(this, arguments)
  5490. })
  5491. }, a.prototype), a.prototype.setSource = function(b) {
  5492. var c = a.selectSourceHandler(b, this.options_);
  5493. return c || (a.nativeSourceHandler ? c = a.nativeSourceHandler : C["default"].error("No source hander found for the current source.")), this.disposeSourceHandler(), this.off("dispose", this.disposeSourceHandler), c !== a.nativeSourceHandler && (this.currentSource_ = b, this.off(this.el_, "loadstart", a.prototype.firstLoadStartListener_), this.off(this.el_, "loadstart", a.prototype.successiveLoadStartListener_), this.one(this.el_, "loadstart", a.prototype.firstLoadStartListener_)), this.sourceHandler_ = c.handleSource(b, this, this.options_), this.on("dispose", this.disposeSourceHandler), this
  5494. }, a.prototype.firstLoadStartListener_ = function() {
  5495. this.one(this.el_, "loadstart", a.prototype.successiveLoadStartListener_)
  5496. }, a.prototype.successiveLoadStartListener_ = function() {
  5497. this.disposeSourceHandler(), this.one(this.el_, "loadstart", a.prototype.successiveLoadStartListener_)
  5498. }, a.prototype.disposeSourceHandler = function() {
  5499. this.currentSource_ && (this.clearTracks(["audio", "video"]), this.currentSource_ = null), this.cleanupAutoTextTracks(), this.sourceHandler_ && (this.off(this.el_, "loadstart", a.prototype.firstLoadStartListener_), this.off(this.el_, "loadstart", a.prototype.successiveLoadStartListener_), this.sourceHandler_.dispose && this.sourceHandler_.dispose(), this.sourceHandler_ = null)
  5500. }
  5501. }, k["default"].registerComponent("Tech", M), k["default"].registerComponent("MediaTechController", M), M.registerTech("Tech", M), c["default"] = M
  5502. }, {
  5503. 105: 105,
  5504. 46: 46,
  5505. 5: 5,
  5506. 63: 63,
  5507. 65: 65,
  5508. 66: 66,
  5509. 70: 70,
  5510. 72: 72,
  5511. 76: 76,
  5512. 79: 79,
  5513. 83: 83,
  5514. 86: 86,
  5515. 87: 87,
  5516. 88: 88,
  5517. 90: 90,
  5518. 94: 94,
  5519. 95: 95
  5520. }
  5521. ],
  5522. 63: [
  5523. function(a, b, c) {
  5524. "use strict";
  5525. function d(a) {
  5526. if (a && a.__esModule) return a;
  5527. var b = {};
  5528. if (null != a)
  5529. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5530. return b["default"] = a, b
  5531. }
  5532. function e(a) {
  5533. return a && a.__esModule ? a : {
  5534. "default": a
  5535. }
  5536. }
  5537. function f(a, b) {
  5538. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5539. }
  5540. function g(a, b) {
  5541. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5542. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5543. }
  5544. function h(a, b) {
  5545. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5546. a.prototype = Object.create(b && b.prototype, {
  5547. constructor: {
  5548. value: a,
  5549. enumerable: !1,
  5550. writable: !0,
  5551. configurable: !0
  5552. }
  5553. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5554. }
  5555. c.__esModule = !0;
  5556. var i = a(74),
  5557. j = e(i),
  5558. k = a(78),
  5559. l = d(k),
  5560. m = a(94),
  5561. n = e(m),
  5562. o = function(a, b) {
  5563. for (var c = 0; c < a.length; c++) b.id !== a[c].id && (a[c].enabled = !1)
  5564. },
  5565. p = function(a) {
  5566. function b() {
  5567. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
  5568. f(this, b);
  5569. for (var h = void 0, i = e.length - 1; i >= 0; i--)
  5570. if (e[i].enabled) {
  5571. o(e, e[i]);
  5572. break
  5573. }
  5574. if (l.IS_IE8) {
  5575. h = n["default"].createElement("custom");
  5576. for (var k in j["default"].prototype) "constructor" !== k && (h[k] = j["default"].prototype[k]);
  5577. for (var m in b.prototype) "constructor" !== m && (h[m] = b.prototype[m])
  5578. }
  5579. return h = c = g(this, a.call(this, e, h)), h.changing_ = !1, d = h, g(c, d)
  5580. }
  5581. return h(b, a), b.prototype.addTrack_ = function(b) {
  5582. var c = this;
  5583. b.enabled && o(this, b), a.prototype.addTrack_.call(this, b), b.addEventListener && b.addEventListener("enabledchange", function() {
  5584. c.changing_ || (c.changing_ = !0, o(c, b), c.changing_ = !1, c.trigger("change"))
  5585. })
  5586. }, b.prototype.addTrack = function(a) {
  5587. this.addTrack_(a)
  5588. }, b.prototype.removeTrack = function(b) {
  5589. a.prototype.removeTrack_.call(this, b)
  5590. }, b
  5591. }(j["default"]);
  5592. c["default"] = p
  5593. }, {
  5594. 74: 74,
  5595. 78: 78,
  5596. 94: 94
  5597. }
  5598. ],
  5599. 64: [
  5600. function(a, b, c) {
  5601. "use strict";
  5602. function d(a) {
  5603. if (a && a.__esModule) return a;
  5604. var b = {};
  5605. if (null != a)
  5606. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5607. return b["default"] = a, b
  5608. }
  5609. function e(a) {
  5610. return a && a.__esModule ? a : {
  5611. "default": a
  5612. }
  5613. }
  5614. function f(a, b) {
  5615. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5616. }
  5617. function g(a, b) {
  5618. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5619. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5620. }
  5621. function h(a, b) {
  5622. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5623. a.prototype = Object.create(b && b.prototype, {
  5624. constructor: {
  5625. value: a,
  5626. enumerable: !1,
  5627. writable: !0,
  5628. configurable: !0
  5629. }
  5630. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5631. }
  5632. c.__esModule = !0;
  5633. var i = a(73),
  5634. j = a(75),
  5635. k = e(j),
  5636. l = a(87),
  5637. m = e(l),
  5638. n = a(78),
  5639. o = d(n),
  5640. p = function(a) {
  5641. function b() {
  5642. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  5643. f(this, b);
  5644. var h = (0, m["default"])(e, {
  5645. kind: i.AudioTrackKind[e.kind] || ""
  5646. }),
  5647. j = c = g(this, a.call(this, h)),
  5648. k = !1;
  5649. if (o.IS_IE8)
  5650. for (var l in b.prototype) "constructor" !== l && (j[l] = b.prototype[l]);
  5651. return Object.defineProperty(j, "enabled", {
  5652. get: function() {
  5653. return k
  5654. },
  5655. set: function(a) {
  5656. "boolean" == typeof a && a !== k && (k = a, this.trigger("enabledchange"))
  5657. }
  5658. }), h.enabled && (j.enabled = h.enabled), j.loaded_ = !0, d = j, g(c, d)
  5659. }
  5660. return h(b, a), b
  5661. }(k["default"]);
  5662. c["default"] = p
  5663. }, {
  5664. 73: 73,
  5665. 75: 75,
  5666. 78: 78,
  5667. 87: 87
  5668. }
  5669. ],
  5670. 65: [
  5671. function(a, b, c) {
  5672. "use strict";
  5673. function d(a) {
  5674. return a && a.__esModule ? a : {
  5675. "default": a
  5676. }
  5677. }
  5678. function e(a) {
  5679. if (a && a.__esModule) return a;
  5680. var b = {};
  5681. if (null != a)
  5682. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5683. return b["default"] = a, b
  5684. }
  5685. function f(a, b) {
  5686. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5687. }
  5688. c.__esModule = !0;
  5689. var g = a(78),
  5690. h = e(g),
  5691. i = a(94),
  5692. j = d(i),
  5693. k = function() {
  5694. function a() {
  5695. var b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
  5696. f(this, a);
  5697. var c = this;
  5698. if (h.IS_IE8) {
  5699. c = j["default"].createElement("custom");
  5700. for (var d in a.prototype) "constructor" !== d && (c[d] = a.prototype[d])
  5701. }
  5702. c.trackElements_ = [], Object.defineProperty(c, "length", {
  5703. get: function() {
  5704. return this.trackElements_.length
  5705. }
  5706. });
  5707. for (var e = 0, g = b.length; e < g; e++) c.addTrackElement_(b[e]);
  5708. if (h.IS_IE8) return c
  5709. }
  5710. return a.prototype.addTrackElement_ = function(a) {
  5711. var b = this.trackElements_.length;
  5712. "" + b in this || Object.defineProperty(this, b, {
  5713. get: function() {
  5714. return this.trackElements_[b]
  5715. }
  5716. }), this.trackElements_.indexOf(a) === -1 && this.trackElements_.push(a)
  5717. }, a.prototype.getTrackElementByTrack_ = function(a) {
  5718. for (var b = void 0, c = 0, d = this.trackElements_.length; c < d; c++)
  5719. if (a === this.trackElements_[c].track) {
  5720. b = this.trackElements_[c];
  5721. break
  5722. }
  5723. return b
  5724. }, a.prototype.removeTrackElement_ = function(a) {
  5725. for (var b = 0, c = this.trackElements_.length; b < c; b++)
  5726. if (a === this.trackElements_[b]) {
  5727. this.trackElements_.splice(b, 1);
  5728. break
  5729. }
  5730. }, a
  5731. }();
  5732. c["default"] = k
  5733. }, {
  5734. 78: 78,
  5735. 94: 94
  5736. }
  5737. ],
  5738. 66: [
  5739. function(a, b, c) {
  5740. "use strict";
  5741. function d(a) {
  5742. return a && a.__esModule ? a : {
  5743. "default": a
  5744. }
  5745. }
  5746. function e(a) {
  5747. if (a && a.__esModule) return a;
  5748. var b = {};
  5749. if (null != a)
  5750. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5751. return b["default"] = a, b
  5752. }
  5753. function f(a, b) {
  5754. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5755. }
  5756. function g(a, b) {
  5757. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5758. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5759. }
  5760. function h(a, b) {
  5761. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5762. a.prototype = Object.create(b && b.prototype, {
  5763. constructor: {
  5764. value: a,
  5765. enumerable: !1,
  5766. writable: !0,
  5767. configurable: !0
  5768. }
  5769. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5770. }
  5771. c.__esModule = !0;
  5772. var i = a(78),
  5773. j = e(i),
  5774. k = a(94),
  5775. l = d(k),
  5776. m = a(42),
  5777. n = d(m),
  5778. o = a(72),
  5779. p = d(o),
  5780. q = function(a) {
  5781. function b() {
  5782. var c = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  5783. f(this, b);
  5784. var d = g(this, a.call(this)),
  5785. e = void 0,
  5786. h = d;
  5787. if (j.IS_IE8) {
  5788. h = l["default"].createElement("custom");
  5789. for (var i in b.prototype) "constructor" !== i && (h[i] = b.prototype[i])
  5790. }
  5791. var k = new p["default"](c);
  5792. if (h.kind = k.kind, h.src = k.src, h.srclang = k.language, h.label = k.label, h["default"] = k["default"], Object.defineProperty(h, "readyState", {
  5793. get: function() {
  5794. return e
  5795. }
  5796. }), Object.defineProperty(h, "track", {
  5797. get: function() {
  5798. return k
  5799. }
  5800. }), e = 0, k.addEventListener("loadeddata", function() {
  5801. e = 2, h.trigger({
  5802. type: "load",
  5803. target: h
  5804. })
  5805. }), j.IS_IE8) {
  5806. var m;
  5807. return m = h, g(d, m)
  5808. }
  5809. return d
  5810. }
  5811. return h(b, a), b
  5812. }(n["default"]);
  5813. q.prototype.allowedEvents_ = {
  5814. load: "load"
  5815. }, q.NONE = 0, q.LOADING = 1, q.LOADED = 2, q.ERROR = 3, c["default"] = q
  5816. }, {
  5817. 42: 42,
  5818. 72: 72,
  5819. 78: 78,
  5820. 94: 94
  5821. }
  5822. ],
  5823. 67: [
  5824. function(a, b, c) {
  5825. "use strict";
  5826. function d(a) {
  5827. return a && a.__esModule ? a : {
  5828. "default": a
  5829. }
  5830. }
  5831. function e(a) {
  5832. if (a && a.__esModule) return a;
  5833. var b = {};
  5834. if (null != a)
  5835. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5836. return b["default"] = a, b
  5837. }
  5838. function f(a, b) {
  5839. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5840. }
  5841. c.__esModule = !0;
  5842. var g = a(78),
  5843. h = e(g),
  5844. i = a(94),
  5845. j = d(i),
  5846. k = function() {
  5847. function a(b) {
  5848. f(this, a);
  5849. var c = this;
  5850. if (h.IS_IE8) {
  5851. c = j["default"].createElement("custom");
  5852. for (var d in a.prototype) "constructor" !== d && (c[d] = a.prototype[d])
  5853. }
  5854. if (a.prototype.setCues_.call(c, b), Object.defineProperty(c, "length", {
  5855. get: function() {
  5856. return this.length_
  5857. }
  5858. }), h.IS_IE8) return c
  5859. }
  5860. return a.prototype.setCues_ = function(a) {
  5861. var b = this.length || 0,
  5862. c = 0,
  5863. d = a.length;
  5864. this.cues_ = a, this.length_ = a.length;
  5865. var e = function(a) {
  5866. "" + a in this || Object.defineProperty(this, "" + a, {
  5867. get: function() {
  5868. return this.cues_[a]
  5869. }
  5870. })
  5871. };
  5872. if (b < d)
  5873. for (c = b; c < d; c++) e.call(this, c)
  5874. }, a.prototype.getCueById = function(a) {
  5875. for (var b = null, c = 0, d = this.length; c < d; c++) {
  5876. var e = this[c];
  5877. if (e.id === a) {
  5878. b = e;
  5879. break
  5880. }
  5881. }
  5882. return b
  5883. }, a
  5884. }();
  5885. c["default"] = k
  5886. }, {
  5887. 78: 78,
  5888. 94: 94
  5889. }
  5890. ],
  5891. 68: [
  5892. function(a, b, c) {
  5893. "use strict";
  5894. function d(a) {
  5895. if (a && a.__esModule) return a;
  5896. var b = {};
  5897. if (null != a)
  5898. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  5899. return b["default"] = a, b
  5900. }
  5901. function e(a) {
  5902. return a && a.__esModule ? a : {
  5903. "default": a
  5904. }
  5905. }
  5906. function f(a, b) {
  5907. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  5908. }
  5909. function g(a, b) {
  5910. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  5911. return !b || "object" != typeof b && "function" != typeof b ? a : b
  5912. }
  5913. function h(a, b) {
  5914. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  5915. a.prototype = Object.create(b && b.prototype, {
  5916. constructor: {
  5917. value: a,
  5918. enumerable: !1,
  5919. writable: !0,
  5920. configurable: !0
  5921. }
  5922. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  5923. }
  5924. function i(a, b) {
  5925. return "rgba(" + parseInt(a[1] + a[1], 16) + "," + parseInt(a[2] + a[2], 16) + "," + parseInt(a[3] + a[3], 16) + "," + b + ")"
  5926. }
  5927. function j(a, b, c) {
  5928. try {
  5929. a.style[b] = c
  5930. } catch (d) {
  5931. return
  5932. }
  5933. }
  5934. c.__esModule = !0;
  5935. var k = a(5),
  5936. l = e(k),
  5937. m = a(83),
  5938. n = d(m),
  5939. o = a(95),
  5940. p = e(o),
  5941. q = {
  5942. monospace: "monospace",
  5943. sansSerif: "sans-serif",
  5944. serif: "serif",
  5945. monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
  5946. monospaceSerif: '"Courier New", monospace',
  5947. proportionalSansSerif: "sans-serif",
  5948. proportionalSerif: "serif",
  5949. casual: '"Comic Sans MS", Impact, fantasy',
  5950. script: '"Monotype Corsiva", cursive',
  5951. smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
  5952. },
  5953. r = function(a) {
  5954. function b(c, d, e) {
  5955. f(this, b);
  5956. var h = g(this, a.call(this, c, d, e));
  5957. return c.on("loadstart", n.bind(h, h.toggleDisplay)), c.on("texttrackchange", n.bind(h, h.updateDisplay)), c.ready(n.bind(h, function() {
  5958. if (c.tech_ && c.tech_.featuresNativeTextTracks) return void this.hide();
  5959. c.on("fullscreenchange", n.bind(this, this.updateDisplay));
  5960. for (var a = this.options_.playerOptions.tracks || [], b = 0; b < a.length; b++) this.player_.addRemoteTextTrack(a[b], !0);
  5961. var d = {
  5962. captions: 1,
  5963. subtitles: 1
  5964. },
  5965. e = this.player_.textTracks(),
  5966. f = void 0,
  5967. g = void 0;
  5968. if (e) {
  5969. for (var h = 0; h < e.length; h++) {
  5970. var i = e[h];
  5971. i["default"] && ("descriptions" !== i.kind || f ? i.kind in d && !g && (g = i) : f = i)
  5972. }
  5973. g ? g.mode = "showing" : f && (f.mode = "showing")
  5974. }
  5975. })), h
  5976. }
  5977. return h(b, a), b.prototype.toggleDisplay = function() {
  5978. this.player_.tech_ && this.player_.tech_.featuresNativeTextTracks ? this.hide() : this.show()
  5979. }, b.prototype.createEl = function() {
  5980. return a.prototype.createEl.call(this, "div", {
  5981. className: "vjs-text-track-display"
  5982. }, {
  5983. "aria-live": "off",
  5984. "aria-atomic": "true"
  5985. })
  5986. }, b.prototype.clearDisplay = function() {
  5987. "function" == typeof p["default"].WebVTT && p["default"].WebVTT.processCues(p["default"], [], this.el_)
  5988. }, b.prototype.updateDisplay = function() {
  5989. var a = this.player_.textTracks();
  5990. if (this.clearDisplay(), a) {
  5991. for (var b = null, c = null, d = a.length; d--;) {
  5992. var e = a[d];
  5993. "showing" === e.mode && ("descriptions" === e.kind ? b = e : c = e)
  5994. }
  5995. c ? ("off" !== this.getAttribute("aria-live") && this.setAttribute("aria-live", "off"), this.updateForTrack(c)) : b && ("assertive" !== this.getAttribute("aria-live") && this.setAttribute("aria-live", "assertive"), this.updateForTrack(b))
  5996. }
  5997. }, b.prototype.updateForTrack = function(a) {
  5998. if ("function" == typeof p["default"].WebVTT && a.activeCues) {
  5999. for (var b = this.player_.textTrackSettings.getValues(), c = [], d = 0; d < a.activeCues.length; d++) c.push(a.activeCues[d]);
  6000. p["default"].WebVTT.processCues(p["default"], c, this.el_);
  6001. for (var e = c.length; e--;) {
  6002. var f = c[e];
  6003. if (f) {
  6004. var g = f.displayState;
  6005. if (b.color && (g.firstChild.style.color = b.color), b.textOpacity && j(g.firstChild, "color", i(b.color || "#fff", b.textOpacity)), b.backgroundColor && (g.firstChild.style.backgroundColor = b.backgroundColor), b.backgroundOpacity && j(g.firstChild, "backgroundColor", i(b.backgroundColor || "#000", b.backgroundOpacity)), b.windowColor && (b.windowOpacity ? j(g, "backgroundColor", i(b.windowColor, b.windowOpacity)) : g.style.backgroundColor = b.windowColor), b.edgeStyle && ("dropshadow" === b.edgeStyle ? g.firstChild.style.textShadow = "2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222" : "raised" === b.edgeStyle ? g.firstChild.style.textShadow = "1px 1px #222, 2px 2px #222, 3px 3px #222" : "depressed" === b.edgeStyle ? g.firstChild.style.textShadow = "1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222" : "uniform" === b.edgeStyle && (g.firstChild.style.textShadow = "0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")), b.fontPercent && 1 !== b.fontPercent) {
  6006. var h = p["default"].parseFloat(g.style.fontSize);
  6007. g.style.fontSize = h * b.fontPercent + "px", g.style.height = "auto", g.style.top = "auto", g.style.bottom = "2px"
  6008. }
  6009. b.fontFamily && "default" !== b.fontFamily && ("small-caps" === b.fontFamily ? g.firstChild.style.fontVariant = "small-caps" : g.firstChild.style.fontFamily = q[b.fontFamily])
  6010. }
  6011. }
  6012. }
  6013. }, b
  6014. }(l["default"]);
  6015. l["default"].registerComponent("TextTrackDisplay", r), c["default"] = r
  6016. }, {
  6017. 5: 5,
  6018. 83: 83,
  6019. 95: 95
  6020. }
  6021. ],
  6022. 69: [
  6023. function(a, b, c) {
  6024. "use strict";
  6025. c.__esModule = !0;
  6026. var d = function(a) {
  6027. return ["kind", "label", "language", "id", "inBandMetadataTrackDispatchType", "mode", "src"].reduce(function(b, c, d) {
  6028. return a[c] && (b[c] = a[c]), b
  6029. }, {
  6030. cues: a.cues && Array.prototype.map.call(a.cues, function(a) {
  6031. return {
  6032. startTime: a.startTime,
  6033. endTime: a.endTime,
  6034. text: a.text,
  6035. id: a.id
  6036. }
  6037. })
  6038. })
  6039. },
  6040. e = function(a) {
  6041. var b = a.$$("track"),
  6042. c = Array.prototype.map.call(b, function(a) {
  6043. return a.track
  6044. });
  6045. return Array.prototype.map.call(b, function(a) {
  6046. var b = d(a.track);
  6047. return a.src && (b.src = a.src), b
  6048. }).concat(Array.prototype.filter.call(a.textTracks(), function(a) {
  6049. return c.indexOf(a) === -1
  6050. }).map(d))
  6051. },
  6052. f = function(a, b) {
  6053. return a.forEach(function(a) {
  6054. var c = b.addRemoteTextTrack(a).track;
  6055. !a.src && a.cues && a.cues.forEach(function(a) {
  6056. return c.addCue(a)
  6057. })
  6058. }), b.textTracks()
  6059. };
  6060. c["default"] = {
  6061. textTracksToJson: e,
  6062. jsonToTextTracks: f,
  6063. trackToJson_: d
  6064. }
  6065. }, {}
  6066. ],
  6067. 70: [
  6068. function(a, b, c) {
  6069. "use strict";
  6070. function d(a) {
  6071. if (a && a.__esModule) return a;
  6072. var b = {};
  6073. if (null != a)
  6074. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6075. return b["default"] = a, b
  6076. }
  6077. function e(a) {
  6078. return a && a.__esModule ? a : {
  6079. "default": a
  6080. }
  6081. }
  6082. function f(a, b) {
  6083. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6084. }
  6085. function g(a, b) {
  6086. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6087. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6088. }
  6089. function h(a, b) {
  6090. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6091. a.prototype = Object.create(b && b.prototype, {
  6092. constructor: {
  6093. value: a,
  6094. enumerable: !1,
  6095. writable: !0,
  6096. configurable: !0
  6097. }
  6098. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6099. }
  6100. c.__esModule = !0;
  6101. var i = a(74),
  6102. j = e(i),
  6103. k = a(83),
  6104. l = d(k),
  6105. m = a(78),
  6106. n = d(m),
  6107. o = a(94),
  6108. p = e(o),
  6109. q = function(a) {
  6110. function b() {
  6111. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
  6112. f(this, b);
  6113. var h = void 0;
  6114. if (n.IS_IE8) {
  6115. h = p["default"].createElement("custom");
  6116. for (var i in j["default"].prototype) "constructor" !== i && (h[i] = j["default"].prototype[i]);
  6117. for (var k in b.prototype) "constructor" !== k && (h[k] = b.prototype[k])
  6118. }
  6119. return h = c = g(this, a.call(this, e, h)), d = h, g(c, d)
  6120. }
  6121. return h(b, a), b.prototype.addTrack_ = function(b) {
  6122. a.prototype.addTrack_.call(this, b), b.addEventListener("modechange", l.bind(this, function() {
  6123. this.trigger("change")
  6124. }))
  6125. }, b
  6126. }(j["default"]);
  6127. c["default"] = q
  6128. }, {
  6129. 74: 74,
  6130. 78: 78,
  6131. 83: 83,
  6132. 94: 94
  6133. }
  6134. ],
  6135. 71: [
  6136. function(a, b, c) {
  6137. "use strict";
  6138. function d(a) {
  6139. if (a && a.__esModule) return a;
  6140. var b = {};
  6141. if (null != a)
  6142. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6143. return b["default"] = a, b
  6144. }
  6145. function e(a) {
  6146. return a && a.__esModule ? a : {
  6147. "default": a
  6148. }
  6149. }
  6150. function f(a, b) {
  6151. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6152. }
  6153. function g(a, b) {
  6154. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6155. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6156. }
  6157. function h(a, b) {
  6158. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6159. a.prototype = Object.create(b && b.prototype, {
  6160. constructor: {
  6161. value: a,
  6162. enumerable: !1,
  6163. writable: !0,
  6164. configurable: !0
  6165. }
  6166. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6167. }
  6168. function i(a, b) {
  6169. if (b && (a = b(a)), a && "none" !== a) return a
  6170. }
  6171. function j(a, b) {
  6172. return i(a.options[a.options.selectedIndex].value, b)
  6173. }
  6174. function k(a, b, c) {
  6175. if (b)
  6176. for (var d = 0; d < a.options.length; d++)
  6177. if (i(a.options[d].value, c) === b) {
  6178. a.selectedIndex = d;
  6179. break
  6180. }
  6181. }
  6182. c.__esModule = !0;
  6183. var l = a(95),
  6184. m = e(l),
  6185. n = a(5),
  6186. o = e(n),
  6187. p = a(81),
  6188. q = a(83),
  6189. r = d(q),
  6190. s = a(88),
  6191. t = d(s),
  6192. u = a(86),
  6193. v = e(u),
  6194. w = ["#000", "Black"],
  6195. x = ["#00F", "Blue"],
  6196. y = ["#0FF", "Cyan"],
  6197. z = ["#0F0", "Green"],
  6198. A = ["#F0F", "Magenta"],
  6199. B = ["#F00", "Red"],
  6200. C = ["#FFF", "White"],
  6201. D = ["#FF0", "Yellow"],
  6202. E = ["1", "Opaque"],
  6203. F = ["0.5", "Semi-Transparent"],
  6204. G = ["0", "Transparent"],
  6205. H = {
  6206. backgroundColor: {
  6207. selector: ".vjs-bg-color > select",
  6208. id: "captions-background-color-%s",
  6209. label: "Color",
  6210. options: [w, C, B, z, x, D, A, y]
  6211. },
  6212. backgroundOpacity: {
  6213. selector: ".vjs-bg-opacity > select",
  6214. id: "captions-background-opacity-%s",
  6215. label: "Transparency",
  6216. options: [E, F, G]
  6217. },
  6218. color: {
  6219. selector: ".vjs-fg-color > select",
  6220. id: "captions-foreground-color-%s",
  6221. label: "Color",
  6222. options: [C, w, B, z, x, D, A, y]
  6223. },
  6224. edgeStyle: {
  6225. selector: ".vjs-edge-style > select",
  6226. id: "%s",
  6227. label: "Text Edge Style",
  6228. options: [
  6229. ["none", "None"],
  6230. ["raised", "Raised"],
  6231. ["depressed", "Depressed"],
  6232. ["uniform", "Uniform"],
  6233. ["dropshadow", "Dropshadow"]
  6234. ]
  6235. },
  6236. fontFamily: {
  6237. selector: ".vjs-font-family > select",
  6238. id: "captions-font-family-%s",
  6239. label: "Font Family",
  6240. options: [
  6241. ["proportionalSansSerif", "Proportional Sans-Serif"],
  6242. ["monospaceSansSerif", "Monospace Sans-Serif"],
  6243. ["proportionalSerif", "Proportional Serif"],
  6244. ["monospaceSerif", "Monospace Serif"],
  6245. ["casual", "Casual"],
  6246. ["script", "Script"],
  6247. ["small-caps", "Small Caps"]
  6248. ]
  6249. },
  6250. fontPercent: {
  6251. selector: ".vjs-font-percent > select",
  6252. id: "captions-font-size-%s",
  6253. label: "Font Size",
  6254. options: [
  6255. ["0.50", "50%"],
  6256. ["0.75", "75%"],
  6257. ["1.00", "100%"],
  6258. ["1.25", "125%"],
  6259. ["1.50", "150%"],
  6260. ["1.75", "175%"],
  6261. ["2.00", "200%"],
  6262. ["3.00", "300%"],
  6263. ["4.00", "400%"]
  6264. ],
  6265. "default": 2,
  6266. parser: function(a) {
  6267. return "1.00" === a ? null : Number(a)
  6268. }
  6269. },
  6270. textOpacity: {
  6271. selector: ".vjs-text-opacity > select",
  6272. id: "captions-foreground-opacity-%s",
  6273. label: "Transparency",
  6274. options: [E, F]
  6275. },
  6276. windowColor: {
  6277. selector: ".vjs-window-color > select",
  6278. id: "captions-window-color-%s",
  6279. label: "Color"
  6280. },
  6281. windowOpacity: {
  6282. selector: ".vjs-window-opacity > select",
  6283. id: "captions-window-opacity-%s",
  6284. label: "Transparency",
  6285. options: [G, F, E]
  6286. }
  6287. };
  6288. H.windowColor.options = H.backgroundColor.options;
  6289. var I = function(a) {
  6290. function b(c, d) {
  6291. f(this, b);
  6292. var e = g(this, a.call(this, c, d));
  6293. return e.setDefaults(), e.hide(), e.updateDisplay = r.bind(e, e.updateDisplay), void 0 === d.persistTextTrackSettings && (e.options_.persistTextTrackSettings = e.options_.playerOptions.persistTextTrackSettings), e.on(e.$(".vjs-done-button"), "click", function() {
  6294. e.saveSettings(), e.hide()
  6295. }), e.on(e.$(".vjs-default-button"), "click", function() {
  6296. e.setDefaults(), e.updateDisplay()
  6297. }), t.each(H, function(a) {
  6298. e.on(e.$(a.selector), "change", e.updateDisplay)
  6299. }), e.options_.persistTextTrackSettings && e.restoreSettings(), e
  6300. }
  6301. return h(b, a), b.prototype.createElSelect_ = function(a) {
  6302. var b = this,
  6303. c = H[a],
  6304. d = c.id.replace("%s", this.id_);
  6305. return [(0, p.createEl)("label", {
  6306. className: "vjs-label",
  6307. textContent: c.label
  6308. }, {
  6309. "for": d
  6310. }), (0, p.createEl)("select", {
  6311. id: d
  6312. }, void 0, c.options.map(function(a) {
  6313. return (0, p.createEl)("option", {
  6314. textContent: b.localize(a[1]),
  6315. value: a[0]
  6316. })
  6317. }))]
  6318. }, b.prototype.createElFgColor_ = function() {
  6319. var a = (0, p.createEl)("legend", {
  6320. textContent: this.localize("Text")
  6321. }),
  6322. b = this.createElSelect_("color"),
  6323. c = (0, p.createEl)("span", {
  6324. className: "vjs-text-opacity vjs-opacity"
  6325. }, void 0, this.createElSelect_("textOpacity"));
  6326. return (0, p.createEl)("fieldset", {
  6327. className: "vjs-fg-color vjs-tracksetting"
  6328. }, void 0, [a].concat(b, c))
  6329. }, b.prototype.createElBgColor_ = function() {
  6330. var a = (0, p.createEl)("legend", {
  6331. textContent: this.localize("Background")
  6332. }),
  6333. b = this.createElSelect_("backgroundColor"),
  6334. c = (0, p.createEl)("span", {
  6335. className: "vjs-bg-opacity vjs-opacity"
  6336. }, void 0, this.createElSelect_("backgroundOpacity"));
  6337. return (0, p.createEl)("fieldset", {
  6338. className: "vjs-bg-color vjs-tracksetting"
  6339. }, void 0, [a].concat(b, c))
  6340. }, b.prototype.createElWinColor_ = function() {
  6341. var a = (0, p.createEl)("legend", {
  6342. textContent: this.localize("Window")
  6343. }),
  6344. b = this.createElSelect_("windowColor"),
  6345. c = (0, p.createEl)("span", {
  6346. className: "vjs-window-opacity vjs-opacity"
  6347. }, void 0, this.createElSelect_("windowOpacity"));
  6348. return (0, p.createEl)("fieldset", {
  6349. className: "vjs-window-color vjs-tracksetting"
  6350. }, void 0, [a].concat(b, c))
  6351. }, b.prototype.createElColors_ = function() {
  6352. return (0, p.createEl)("div", {
  6353. className: "vjs-tracksettings-colors"
  6354. }, void 0, [this.createElFgColor_(), this.createElBgColor_(), this.createElWinColor_()])
  6355. }, b.prototype.createElFont_ = function() {
  6356. var a = (0, p.createEl)("div", {
  6357. className: "vjs-font-percent vjs-tracksetting"
  6358. }, void 0, this.createElSelect_("fontPercent")),
  6359. b = (0, p.createEl)("div", {
  6360. className: "vjs-edge-style vjs-tracksetting"
  6361. }, void 0, this.createElSelect_("edgeStyle")),
  6362. c = (0, p.createEl)("div", {
  6363. className: "vjs-font-family vjs-tracksetting"
  6364. }, void 0, this.createElSelect_("fontFamily"));
  6365. return (0, p.createEl)("div", {
  6366. className: "vjs-tracksettings-font"
  6367. }, void 0, [a, b, c])
  6368. }, b.prototype.createElControls_ = function() {
  6369. var a = (0, p.createEl)("button", {
  6370. className: "vjs-default-button",
  6371. textContent: this.localize("Defaults")
  6372. }),
  6373. b = (0, p.createEl)("button", {
  6374. className: "vjs-done-button",
  6375. textContent: "Done"
  6376. });
  6377. return (0, p.createEl)("div", {
  6378. className: "vjs-tracksettings-controls"
  6379. }, void 0, [a, b])
  6380. }, b.prototype.createEl = function() {
  6381. var a = (0, p.createEl)("div", {
  6382. className: "vjs-tracksettings"
  6383. }, void 0, [this.createElColors_(), this.createElFont_(), this.createElControls_()]),
  6384. b = (0, p.createEl)("div", {
  6385. className: "vjs-control-text",
  6386. id: "TTsettingsDialogLabel-" + this.id_,
  6387. textContent: "Caption Settings Dialog"
  6388. }, {
  6389. "aria-level": "1",
  6390. role: "heading"
  6391. }),
  6392. c = (0, p.createEl)("div", {
  6393. className: "vjs-control-text",
  6394. id: "TTsettingsDialogDescription-" + this.id_,
  6395. textContent: "Beginning of dialog window. Escape will cancel and close the window."
  6396. }),
  6397. d = (0, p.createEl)("div", void 0, {
  6398. role: "document"
  6399. }, [b, c, a]);
  6400. return (0, p.createEl)("div", {
  6401. className: "vjs-caption-settings vjs-modal-overlay",
  6402. tabIndex: -1
  6403. }, {
  6404. role: "dialog",
  6405. "aria-labelledby": b.id,
  6406. "aria-describedby": c.id
  6407. }, d)
  6408. }, b.prototype.getValues = function() {
  6409. var a = this;
  6410. return t.reduce(H, function(b, c, d) {
  6411. var e = j(a.$(c.selector), c.parser);
  6412. return void 0 !== e && (b[d] = e), b
  6413. }, {})
  6414. }, b.prototype.setValues = function(a) {
  6415. var b = this;
  6416. t.each(H, function(c, d) {
  6417. k(b.$(c.selector), a[d], c.parser)
  6418. })
  6419. }, b.prototype.setDefaults = function() {
  6420. var a = this;
  6421. t.each(H, function(b) {
  6422. var c = b.hasOwnProperty("default") ? b["default"] : 0;
  6423. a.$(b.selector).selectedIndex = c
  6424. })
  6425. }, b.prototype.restoreSettings = function() {
  6426. var a = void 0;
  6427. try {
  6428. a = JSON.parse(m["default"].localStorage.getItem("vjs-text-track-settings"))
  6429. } catch (b) {
  6430. v["default"].warn(b)
  6431. }
  6432. a && this.setValues(a)
  6433. }, b.prototype.saveSettings = function() {
  6434. if (this.options_.persistTextTrackSettings) {
  6435. var a = this.getValues();
  6436. try {
  6437. Object.keys(a).length ? m["default"].localStorage.setItem("vjs-text-track-settings", JSON.stringify(a)) : m["default"].localStorage.removeItem("vjs-text-track-settings")
  6438. } catch (b) {
  6439. v["default"].warn(b)
  6440. }
  6441. }
  6442. }, b.prototype.updateDisplay = function() {
  6443. var a = this.player_.getChild("textTrackDisplay");
  6444. a && a.updateDisplay()
  6445. }, b
  6446. }(o["default"]);
  6447. o["default"].registerComponent("TextTrackSettings", I), c["default"] = I
  6448. }, {
  6449. 5: 5,
  6450. 81: 81,
  6451. 83: 83,
  6452. 86: 86,
  6453. 88: 88,
  6454. 95: 95
  6455. }
  6456. ],
  6457. 72: [
  6458. function(a, b, c) {
  6459. "use strict";
  6460. function d(a) {
  6461. if (a && a.__esModule) return a;
  6462. var b = {};
  6463. if (null != a)
  6464. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6465. return b["default"] = a, b
  6466. }
  6467. function e(a) {
  6468. return a && a.__esModule ? a : {
  6469. "default": a
  6470. }
  6471. }
  6472. function f(a, b) {
  6473. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6474. }
  6475. function g(a, b) {
  6476. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6477. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6478. }
  6479. function h(a, b) {
  6480. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6481. a.prototype = Object.create(b && b.prototype, {
  6482. constructor: {
  6483. value: a,
  6484. enumerable: !1,
  6485. writable: !0,
  6486. configurable: !0
  6487. }
  6488. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6489. }
  6490. c.__esModule = !0;
  6491. var i = a(67),
  6492. j = e(i),
  6493. k = a(83),
  6494. l = d(k),
  6495. m = a(73),
  6496. n = a(86),
  6497. o = e(n),
  6498. p = a(95),
  6499. q = e(p),
  6500. r = a(75),
  6501. s = e(r),
  6502. t = a(92),
  6503. u = a(99),
  6504. v = e(u),
  6505. w = a(87),
  6506. x = e(w),
  6507. y = a(78),
  6508. z = d(y),
  6509. A = function(a, b) {
  6510. var c = new q["default"].WebVTT.Parser(q["default"], q["default"].vttjs, q["default"].WebVTT.StringDecoder()),
  6511. d = [];
  6512. c.oncue = function(a) {
  6513. b.addCue(a)
  6514. }, c.onparsingerror = function(a) {
  6515. d.push(a)
  6516. }, c.onflush = function() {
  6517. b.trigger({
  6518. type: "loadeddata",
  6519. target: b
  6520. })
  6521. }, c.parse(a), d.length > 0 && (q["default"].console && q["default"].console.groupCollapsed && q["default"].console.groupCollapsed("Text Track parsing errors for " + b.src), d.forEach(function(a) {
  6522. return o["default"].error(a)
  6523. }), q["default"].console && q["default"].console.groupEnd && q["default"].console.groupEnd()), c.flush()
  6524. },
  6525. B = function(a, b) {
  6526. var c = {
  6527. uri: a
  6528. },
  6529. d = (0, t.isCrossOrigin)(a);
  6530. d && (c.cors = d), (0, v["default"])(c, l.bind(this, function(a, c, d) {
  6531. if (a) return o["default"].error(a, c);
  6532. if (b.loaded_ = !0, "function" != typeof q["default"].WebVTT) {
  6533. if (b.tech_) {
  6534. var e = function() {
  6535. return A(d, b)
  6536. };
  6537. b.tech_.on("vttjsloaded", e), b.tech_.on("vttjserror", function() {
  6538. o["default"].error("vttjs failed to load, stopping trying to process " + b.src), b.tech_.off("vttjsloaded", e)
  6539. })
  6540. }
  6541. } else A(d, b)
  6542. }))
  6543. },
  6544. C = function(a) {
  6545. function b() {
  6546. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  6547. if (f(this, b), !e.tech) throw new Error("A tech was not provided.");
  6548. var h = (0, x["default"])(e, {
  6549. kind: m.TextTrackKind[e.kind] || "subtitles",
  6550. language: e.language || e.srclang || ""
  6551. }),
  6552. i = m.TextTrackMode[h.mode] || "disabled",
  6553. k = h["default"];
  6554. "metadata" !== h.kind && "chapters" !== h.kind || (i = "hidden");
  6555. var n = c = g(this, a.call(this, h));
  6556. if (n.tech_ = h.tech, z.IS_IE8)
  6557. for (var o in b.prototype) "constructor" !== o && (n[o] = b.prototype[o]);
  6558. n.cues_ = [], n.activeCues_ = [];
  6559. var p = new j["default"](n.cues_),
  6560. q = new j["default"](n.activeCues_),
  6561. r = !1,
  6562. s = l.bind(n, function() {
  6563. this.activeCues, r && (this.trigger("cuechange"), r = !1)
  6564. });
  6565. return "disabled" !== i && n.tech_.ready(function() {
  6566. n.tech_.on("timeupdate", s)
  6567. }, !0), Object.defineProperty(n, "default", {
  6568. get: function() {
  6569. return k
  6570. },
  6571. set: function() {}
  6572. }), Object.defineProperty(n, "mode", {
  6573. get: function() {
  6574. return i
  6575. },
  6576. set: function(a) {
  6577. var b = this;
  6578. m.TextTrackMode[a] && (i = a, "showing" === i && this.tech_.ready(function() {
  6579. b.tech_.on("timeupdate", s)
  6580. }, !0), this.trigger("modechange"))
  6581. }
  6582. }), Object.defineProperty(n, "cues", {
  6583. get: function() {
  6584. return this.loaded_ ? p : null
  6585. },
  6586. set: function() {}
  6587. }), Object.defineProperty(n, "activeCues", {
  6588. get: function() {
  6589. if (!this.loaded_) return null;
  6590. if (0 === this.cues.length) return q;
  6591. for (var a = this.tech_.currentTime(), b = [], c = 0, d = this.cues.length; c < d; c++) {
  6592. var e = this.cues[c];
  6593. e.startTime <= a && e.endTime >= a ? b.push(e) : e.startTime === e.endTime && e.startTime <= a && e.startTime + .5 >= a && b.push(e)
  6594. }
  6595. if (r = !1,
  6596. b.length !== this.activeCues_.length) r = !0;
  6597. else
  6598. for (var f = 0; f < b.length; f++) this.activeCues_.indexOf(b[f]) === -1 && (r = !0);
  6599. return this.activeCues_ = b, q.setCues_(this.activeCues_), q
  6600. },
  6601. set: function() {}
  6602. }), h.src ? (n.src = h.src, B(h.src, n)) : n.loaded_ = !0, d = n, g(c, d)
  6603. }
  6604. return h(b, a), b.prototype.addCue = function(a) {
  6605. var b = a;
  6606. if (q["default"].vttjs && !(a instanceof q["default"].vttjs.VTTCue)) {
  6607. b = new q["default"].vttjs.VTTCue(a.startTime, a.endTime, a.text);
  6608. for (var c in a) c in b || (b[c] = a[c]);
  6609. b.id = a.id
  6610. }
  6611. var d = this.tech_.textTracks();
  6612. if (d)
  6613. for (var e = 0; e < d.length; e++) d[e] !== this && d[e].removeCue(b);
  6614. this.cues_.push(b), this.cues.setCues_(this.cues_)
  6615. }, b.prototype.removeCue = function(a) {
  6616. for (var b = !1, c = 0, d = this.cues_.length; c < d; c++) {
  6617. this.cues_[c] === a && (this.cues_.splice(c, 1), b = !0)
  6618. }
  6619. b && this.cues.setCues_(this.cues_)
  6620. }, b
  6621. }(s["default"]);
  6622. C.prototype.allowedEvents_ = {
  6623. cuechange: "cuechange"
  6624. }, c["default"] = C
  6625. }, {
  6626. 67: 67,
  6627. 73: 73,
  6628. 75: 75,
  6629. 78: 78,
  6630. 83: 83,
  6631. 86: 86,
  6632. 87: 87,
  6633. 92: 92,
  6634. 95: 95,
  6635. 99: 99
  6636. }
  6637. ],
  6638. 73: [
  6639. function(a, b, c) {
  6640. "use strict";
  6641. c.__esModule = !0;
  6642. c.VideoTrackKind = {
  6643. alternative: "alternative",
  6644. captions: "captions",
  6645. main: "main",
  6646. sign: "sign",
  6647. subtitles: "subtitles",
  6648. commentary: "commentary"
  6649. }, c.AudioTrackKind = {
  6650. alternative: "alternative",
  6651. descriptions: "descriptions",
  6652. main: "main",
  6653. "main-desc": "main-desc",
  6654. translation: "translation",
  6655. commentary: "commentary"
  6656. }, c.TextTrackKind = {
  6657. subtitles: "subtitles",
  6658. captions: "captions",
  6659. descriptions: "descriptions",
  6660. chapters: "chapters",
  6661. metadata: "metadata"
  6662. }, c.TextTrackMode = {
  6663. disabled: "disabled",
  6664. hidden: "hidden",
  6665. showing: "showing"
  6666. }
  6667. }, {}
  6668. ],
  6669. 74: [
  6670. function(a, b, c) {
  6671. "use strict";
  6672. function d(a) {
  6673. if (a && a.__esModule) return a;
  6674. var b = {};
  6675. if (null != a)
  6676. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6677. return b["default"] = a, b
  6678. }
  6679. function e(a) {
  6680. return a && a.__esModule ? a : {
  6681. "default": a
  6682. }
  6683. }
  6684. function f(a, b) {
  6685. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6686. }
  6687. function g(a, b) {
  6688. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6689. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6690. }
  6691. function h(a, b) {
  6692. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6693. a.prototype = Object.create(b && b.prototype, {
  6694. constructor: {
  6695. value: a,
  6696. enumerable: !1,
  6697. writable: !0,
  6698. configurable: !0
  6699. }
  6700. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6701. }
  6702. c.__esModule = !0;
  6703. var i = a(42),
  6704. j = e(i),
  6705. k = a(78),
  6706. l = d(k),
  6707. m = a(94),
  6708. n = e(m),
  6709. o = function(a) {
  6710. function b() {
  6711. var c, d = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
  6712. e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
  6713. f(this, b);
  6714. var h = g(this, a.call(this));
  6715. if (!e && (e = h, l.IS_IE8)) {
  6716. e = n["default"].createElement("custom");
  6717. for (var i in b.prototype) "constructor" !== i && (e[i] = b.prototype[i])
  6718. }
  6719. e.tracks_ = [], Object.defineProperty(e, "length", {
  6720. get: function() {
  6721. return this.tracks_.length
  6722. }
  6723. });
  6724. for (var j = 0; j < d.length; j++) e.addTrack_(d[j]);
  6725. return c = e, g(h, c)
  6726. }
  6727. return h(b, a), b.prototype.addTrack_ = function(a) {
  6728. var b = this.tracks_.length;
  6729. "" + b in this || Object.defineProperty(this, b, {
  6730. get: function() {
  6731. return this.tracks_[b]
  6732. }
  6733. }), this.tracks_.indexOf(a) === -1 && (this.tracks_.push(a), this.trigger({
  6734. track: a,
  6735. type: "addtrack"
  6736. }))
  6737. }, b.prototype.removeTrack_ = function(a) {
  6738. for (var b = void 0, c = 0, d = this.length; c < d; c++)
  6739. if (this[c] === a) {
  6740. b = this[c], b.off && b.off(), this.tracks_.splice(c, 1);
  6741. break
  6742. }
  6743. b && this.trigger({
  6744. track: b,
  6745. type: "removetrack"
  6746. })
  6747. }, b.prototype.getTrackById = function(a) {
  6748. for (var b = null, c = 0, d = this.length; c < d; c++) {
  6749. var e = this[c];
  6750. if (e.id === a) {
  6751. b = e;
  6752. break
  6753. }
  6754. }
  6755. return b
  6756. }, b
  6757. }(j["default"]);
  6758. o.prototype.allowedEvents_ = {
  6759. change: "change",
  6760. addtrack: "addtrack",
  6761. removetrack: "removetrack"
  6762. };
  6763. for (var p in o.prototype.allowedEvents_) o.prototype["on" + p] = null;
  6764. c["default"] = o
  6765. }, {
  6766. 42: 42,
  6767. 78: 78,
  6768. 94: 94
  6769. }
  6770. ],
  6771. 75: [
  6772. function(a, b, c) {
  6773. "use strict";
  6774. function d(a) {
  6775. return a && a.__esModule ? a : {
  6776. "default": a
  6777. }
  6778. }
  6779. function e(a) {
  6780. if (a && a.__esModule) return a;
  6781. var b = {};
  6782. if (null != a)
  6783. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6784. return b["default"] = a, b
  6785. }
  6786. function f(a, b) {
  6787. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6788. }
  6789. function g(a, b) {
  6790. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6791. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6792. }
  6793. function h(a, b) {
  6794. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6795. a.prototype = Object.create(b && b.prototype, {
  6796. constructor: {
  6797. value: a,
  6798. enumerable: !1,
  6799. writable: !0,
  6800. configurable: !0
  6801. }
  6802. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6803. }
  6804. c.__esModule = !0;
  6805. var i = a(78),
  6806. j = e(i),
  6807. k = a(94),
  6808. l = d(k),
  6809. m = a(85),
  6810. n = e(m),
  6811. o = a(42),
  6812. p = d(o),
  6813. q = function(a) {
  6814. function b() {
  6815. var c, d = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  6816. f(this, b);
  6817. var e = g(this, a.call(this)),
  6818. h = e;
  6819. if (j.IS_IE8) {
  6820. h = l["default"].createElement("custom");
  6821. for (var i in b.prototype) "constructor" !== i && (h[i] = b.prototype[i])
  6822. }
  6823. var k = {
  6824. id: d.id || "vjs_track_" + n.newGUID(),
  6825. kind: d.kind || "",
  6826. label: d.label || "",
  6827. language: d.language || ""
  6828. },
  6829. m = function(a) {
  6830. Object.defineProperty(h, a, {
  6831. get: function() {
  6832. return k[a]
  6833. },
  6834. set: function() {}
  6835. })
  6836. };
  6837. for (var o in k) m(o);
  6838. return c = h, g(e, c)
  6839. }
  6840. return h(b, a), b
  6841. }(p["default"]);
  6842. c["default"] = q
  6843. }, {
  6844. 42: 42,
  6845. 78: 78,
  6846. 85: 85,
  6847. 94: 94
  6848. }
  6849. ],
  6850. 76: [
  6851. function(a, b, c) {
  6852. "use strict";
  6853. function d(a) {
  6854. if (a && a.__esModule) return a;
  6855. var b = {};
  6856. if (null != a)
  6857. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6858. return b["default"] = a, b
  6859. }
  6860. function e(a) {
  6861. return a && a.__esModule ? a : {
  6862. "default": a
  6863. }
  6864. }
  6865. function f(a, b) {
  6866. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6867. }
  6868. function g(a, b) {
  6869. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6870. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6871. }
  6872. function h(a, b) {
  6873. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6874. a.prototype = Object.create(b && b.prototype, {
  6875. constructor: {
  6876. value: a,
  6877. enumerable: !1,
  6878. writable: !0,
  6879. configurable: !0
  6880. }
  6881. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6882. }
  6883. c.__esModule = !0;
  6884. var i = a(74),
  6885. j = e(i),
  6886. k = a(78),
  6887. l = d(k),
  6888. m = a(94),
  6889. n = e(m),
  6890. o = function(a, b) {
  6891. for (var c = 0; c < a.length; c++) b.id !== a[c].id && (a[c].selected = !1)
  6892. },
  6893. p = function(a) {
  6894. function b() {
  6895. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
  6896. f(this, b);
  6897. for (var h = void 0, i = e.length - 1; i >= 0; i--)
  6898. if (e[i].selected) {
  6899. o(e, e[i]);
  6900. break
  6901. }
  6902. if (l.IS_IE8) {
  6903. h = n["default"].createElement("custom");
  6904. for (var k in j["default"].prototype) "constructor" !== k && (h[k] = j["default"].prototype[k]);
  6905. for (var m in b.prototype) "constructor" !== m && (h[m] = b.prototype[m])
  6906. }
  6907. return h = c = g(this, a.call(this, e, h)), h.changing_ = !1, Object.defineProperty(h, "selectedIndex", {
  6908. get: function() {
  6909. for (var a = 0; a < this.length; a++)
  6910. if (this[a].selected) return a;
  6911. return -1
  6912. },
  6913. set: function() {}
  6914. }), d = h, g(c, d)
  6915. }
  6916. return h(b, a), b.prototype.addTrack_ = function(b) {
  6917. var c = this;
  6918. b.selected && o(this, b), a.prototype.addTrack_.call(this, b), b.addEventListener && b.addEventListener("selectedchange", function() {
  6919. c.changing_ || (c.changing_ = !0, o(c, b), c.changing_ = !1, c.trigger("change"))
  6920. })
  6921. }, b.prototype.addTrack = function(a) {
  6922. this.addTrack_(a)
  6923. }, b.prototype.removeTrack = function(b) {
  6924. a.prototype.removeTrack_.call(this, b)
  6925. }, b
  6926. }(j["default"]);
  6927. c["default"] = p
  6928. }, {
  6929. 74: 74,
  6930. 78: 78,
  6931. 94: 94
  6932. }
  6933. ],
  6934. 77: [
  6935. function(a, b, c) {
  6936. "use strict";
  6937. function d(a) {
  6938. if (a && a.__esModule) return a;
  6939. var b = {};
  6940. if (null != a)
  6941. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  6942. return b["default"] = a, b
  6943. }
  6944. function e(a) {
  6945. return a && a.__esModule ? a : {
  6946. "default": a
  6947. }
  6948. }
  6949. function f(a, b) {
  6950. if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
  6951. }
  6952. function g(a, b) {
  6953. if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  6954. return !b || "object" != typeof b && "function" != typeof b ? a : b
  6955. }
  6956. function h(a, b) {
  6957. if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
  6958. a.prototype = Object.create(b && b.prototype, {
  6959. constructor: {
  6960. value: a,
  6961. enumerable: !1,
  6962. writable: !0,
  6963. configurable: !0
  6964. }
  6965. }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
  6966. }
  6967. c.__esModule = !0;
  6968. var i = a(73),
  6969. j = a(75),
  6970. k = e(j),
  6971. l = a(87),
  6972. m = e(l),
  6973. n = a(78),
  6974. o = d(n),
  6975. p = function(a) {
  6976. function b() {
  6977. var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
  6978. f(this, b);
  6979. var h = (0, m["default"])(e, {
  6980. kind: i.VideoTrackKind[e.kind] || ""
  6981. }),
  6982. j = c = g(this, a.call(this, h)),
  6983. k = !1;
  6984. if (o.IS_IE8)
  6985. for (var l in b.prototype) "constructor" !== l && (j[l] = b.prototype[l]);
  6986. return Object.defineProperty(j, "selected", {
  6987. get: function() {
  6988. return k
  6989. },
  6990. set: function(a) {
  6991. "boolean" == typeof a && a !== k && (k = a, this.trigger("selectedchange"))
  6992. }
  6993. }), h.selected && (j.selected = h.selected), d = j, g(c, d)
  6994. }
  6995. return h(b, a), b
  6996. }(k["default"]);
  6997. c["default"] = p
  6998. }, {
  6999. 73: 73,
  7000. 75: 75,
  7001. 78: 78,
  7002. 87: 87
  7003. }
  7004. ],
  7005. 78: [
  7006. function(a, b, c) {
  7007. "use strict";
  7008. function d(a) {
  7009. return a && a.__esModule ? a : {
  7010. "default": a
  7011. }
  7012. }
  7013. function e(a) {
  7014. if (a && a.__esModule) return a;
  7015. var b = {};
  7016. if (null != a)
  7017. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  7018. return b["default"] = a, b
  7019. }
  7020. c.__esModule = !0, c.BACKGROUND_SIZE_SUPPORTED = c.TOUCH_ENABLED = c.IS_ANY_SAFARI = c.IS_SAFARI = c.IE_VERSION = c.IS_IE8 = c.IS_CHROME = c.IS_EDGE = c.IS_FIREFOX = c.IS_NATIVE_ANDROID = c.IS_OLD_ANDROID = c.ANDROID_VERSION = c.IS_ANDROID = c.IOS_VERSION = c.IS_IOS = c.IS_IPOD = c.IS_IPHONE = c.IS_IPAD = void 0;
  7021. var f = a(81),
  7022. g = e(f),
  7023. h = a(95),
  7024. i = d(h),
  7025. j = i["default"].navigator && i["default"].navigator.userAgent || "",
  7026. k = /AppleWebKit\/([\d.]+)/i.exec(j),
  7027. l = k ? parseFloat(k.pop()) : null,
  7028. m = c.IS_IPAD = /iPad/i.test(j),
  7029. n = c.IS_IPHONE = /iPhone/i.test(j) && !m,
  7030. o = c.IS_IPOD = /iPod/i.test(j),
  7031. p = c.IS_IOS = n || m || o,
  7032. q = (c.IOS_VERSION = function() {
  7033. var a = j.match(/OS (\d+)_/i);
  7034. return a && a[1] ? a[1] : null
  7035. }(), c.IS_ANDROID = /Android/i.test(j)),
  7036. r = c.ANDROID_VERSION = function() {
  7037. var a = j.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);
  7038. if (!a) return null;
  7039. var b = a[1] && parseFloat(a[1]),
  7040. c = a[2] && parseFloat(a[2]);
  7041. return b && c ? parseFloat(a[1] + "." + a[2]) : b ? b : null
  7042. }(),
  7043. s = (c.IS_OLD_ANDROID = q && /webkit/i.test(j) && r < 2.3, c.IS_NATIVE_ANDROID = q && r < 5 && l < 537, c.IS_FIREFOX = /Firefox/i.test(j), c.IS_EDGE = /Edge/i.test(j)),
  7044. t = c.IS_CHROME = !s && /Chrome/i.test(j),
  7045. u = (c.IS_IE8 = /MSIE\s8\.0/.test(j), c.IE_VERSION = function(a) {
  7046. return a && parseFloat(a[1])
  7047. }(/MSIE\s(\d+)\.\d/.exec(j)), c.IS_SAFARI = /Safari/i.test(j) && !t && !q && !s);
  7048. c.IS_ANY_SAFARI = u || p, c.TOUCH_ENABLED = g.isReal() && ("ontouchstart" in i["default"] || i["default"].DocumentTouch && i["default"].document instanceof i["default"].DocumentTouch), c.BACKGROUND_SIZE_SUPPORTED = g.isReal() && "backgroundSize" in i["default"].document.createElement("video").style
  7049. }, {
  7050. 81: 81,
  7051. 95: 95
  7052. }
  7053. ],
  7054. 79: [
  7055. function(a, b, c) {
  7056. "use strict";
  7057. function d(a, b) {
  7058. var c = 0,
  7059. d = void 0,
  7060. f = void 0;
  7061. if (!b) return 0;
  7062. a && a.length || (a = (0, e.createTimeRange)(0, 0));
  7063. for (var g = 0; g < a.length; g++) d = a.start(g), f = a.end(g), f > b && (f = b), c += f - d;
  7064. return c / b
  7065. }
  7066. c.__esModule = !0, c.bufferedPercent = d;
  7067. var e = a(90)
  7068. }, {
  7069. 90: 90
  7070. }
  7071. ],
  7072. 80: [
  7073. function(a, b, c) {
  7074. "use strict";
  7075. function d(a) {
  7076. return a && a.__esModule ? a : {
  7077. "default": a
  7078. }
  7079. }
  7080. function e(a, b) {
  7081. if (!a || !b) return "";
  7082. if ("function" == typeof g["default"].getComputedStyle) {
  7083. var c = g["default"].getComputedStyle(a);
  7084. return c ? c[b] : ""
  7085. }
  7086. return a.currentStyle[b] || ""
  7087. }
  7088. c.__esModule = !0, c["default"] = e;
  7089. var f = a(95),
  7090. g = d(f)
  7091. }, {
  7092. 95: 95
  7093. }
  7094. ],
  7095. 81: [
  7096. function(a, b, c) {
  7097. "use strict";
  7098. function d(a) {
  7099. if (a && a.__esModule) return a;
  7100. var b = {};
  7101. if (null != a)
  7102. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  7103. return b["default"] = a, b
  7104. }
  7105. function e(a) {
  7106. return a && a.__esModule ? a : {
  7107. "default": a
  7108. }
  7109. }
  7110. function f(a, b) {
  7111. return a.raw = b, a
  7112. }
  7113. function g(a) {
  7114. return "string" == typeof a && /\S/.test(a)
  7115. }
  7116. function h(a) {
  7117. if (/\s/.test(a)) throw new Error("class has illegal whitespace characters")
  7118. }
  7119. function i(a) {
  7120. return new RegExp("(^|\\s)" + a + "($|\\s)")
  7121. }
  7122. function j() {
  7123. return N["default"] === P["default"].document && "undefined" != typeof N["default"].createElement
  7124. }
  7125. function k(a) {
  7126. return (0, W.isObject)(a) && 1 === a.nodeType
  7127. }
  7128. function l(a) {
  7129. return function(b, c) {
  7130. if (!g(b)) return N["default"][a](null);
  7131. g(c) && (c = N["default"].querySelector(c));
  7132. var d = k(c) ? c : N["default"];
  7133. return d[a] && d[a](b)
  7134. }
  7135. }
  7136. function m(a) {
  7137. return 0 === a.indexOf("#") && (a = a.slice(1)), N["default"].getElementById(a)
  7138. }
  7139. function n() {
  7140. var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div",
  7141. b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
  7142. c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
  7143. d = arguments[3],
  7144. e = N["default"].createElement(a);
  7145. return Object.getOwnPropertyNames(b).forEach(function(a) {
  7146. var c = b[a];
  7147. a.indexOf("aria-") !== -1 || "role" === a || "type" === a ? (T["default"].warn((0, V["default"])(L, a, c)), e.setAttribute(a, c)) : "textContent" === a ? o(e, c) : e[a] = c
  7148. }), Object.getOwnPropertyNames(c).forEach(function(a) {
  7149. e.setAttribute(a, c[a])
  7150. }), d && J(e, d), e
  7151. }
  7152. function o(a, b) {
  7153. return "undefined" == typeof a.textContent ? a.innerText = b : a.textContent = b, a
  7154. }
  7155. function p(a, b) {
  7156. b.firstChild ? b.insertBefore(a, b.firstChild) : b.appendChild(a)
  7157. }
  7158. function q(a) {
  7159. var b = a[Y];
  7160. return b || (b = a[Y] = R.newGUID()), X[b] || (X[b] = {}), X[b]
  7161. }
  7162. function r(a) {
  7163. var b = a[Y];
  7164. return !!b && !!Object.getOwnPropertyNames(X[b]).length
  7165. }
  7166. function s(a) {
  7167. var b = a[Y];
  7168. if (b) {
  7169. delete X[b];
  7170. try {
  7171. delete a[Y]
  7172. } catch (c) {
  7173. a.removeAttribute ? a.removeAttribute(Y) : a[Y] = null
  7174. }
  7175. }
  7176. }
  7177. function t(a, b) {
  7178. return h(b), a.classList ? a.classList.contains(b) : i(b).test(a.className)
  7179. }
  7180. function u(a, b) {
  7181. return a.classList ? a.classList.add(b) : t(a, b) || (a.className = (a.className + " " + b).trim()), a
  7182. }
  7183. function v(a, b) {
  7184. return a.classList ? a.classList.remove(b) : (h(b), a.className = a.className.split(/\s+/).filter(function(a) {
  7185. return a !== b
  7186. }).join(" ")), a
  7187. }
  7188. function w(a, b, c) {
  7189. var d = t(a, b);
  7190. if ("function" == typeof c && (c = c(a, b)), "boolean" != typeof c && (c = !d), c !== d) return c ? u(a, b) : v(a, b), a
  7191. }
  7192. function x(a, b) {
  7193. Object.getOwnPropertyNames(b).forEach(function(c) {
  7194. var d = b[c];
  7195. null === d || void 0 === d || d === !1 ? a.removeAttribute(c) : a.setAttribute(c, d === !0 ? "" : d)
  7196. })
  7197. }
  7198. function y(a) {
  7199. var b = {};
  7200. if (a && a.attributes && a.attributes.length > 0)
  7201. for (var c = a.attributes, d = c.length - 1; d >= 0; d--) {
  7202. var e = c[d].name,
  7203. f = c[d].value;
  7204. "boolean" != typeof a[e] && ",autoplay,controls,loop,muted,default,".indexOf("," + e + ",") === -1 || (f = null !== f), b[e] = f
  7205. }
  7206. return b
  7207. }
  7208. function z(a, b) {
  7209. return a.getAttribute(b)
  7210. }
  7211. function A(a, b, c) {
  7212. a.setAttribute(b, c)
  7213. }
  7214. function B(a, b) {
  7215. a.removeAttribute(b)
  7216. }
  7217. function C() {
  7218. N["default"].body.focus(), N["default"].onselectstart = function() {
  7219. return !1
  7220. }
  7221. }
  7222. function D() {
  7223. N["default"].onselectstart = function() {
  7224. return !0
  7225. }
  7226. }
  7227. function E(a) {
  7228. var b = void 0;
  7229. if (a.getBoundingClientRect && a.parentNode && (b = a.getBoundingClientRect()), !b) return {
  7230. left: 0,
  7231. top: 0
  7232. };
  7233. var c = N["default"].documentElement,
  7234. d = N["default"].body,
  7235. e = c.clientLeft || d.clientLeft || 0,
  7236. f = P["default"].pageXOffset || d.scrollLeft,
  7237. g = b.left + f - e,
  7238. h = c.clientTop || d.clientTop || 0,
  7239. i = P["default"].pageYOffset || d.scrollTop,
  7240. j = b.top + i - h;
  7241. return {
  7242. left: Math.round(g),
  7243. top: Math.round(j)
  7244. }
  7245. }
  7246. function F(a, b) {
  7247. var c = {},
  7248. d = E(a),
  7249. e = a.offsetWidth,
  7250. f = a.offsetHeight,
  7251. g = d.top,
  7252. h = d.left,
  7253. i = b.pageY,
  7254. j = b.pageX;
  7255. return b.changedTouches && (j = b.changedTouches[0].pageX, i = b.changedTouches[0].pageY), c.y = Math.max(0, Math.min(1, (g - i + f) / f)), c.x = Math.max(0, Math.min(1, (j - h) / e)), c
  7256. }
  7257. function G(a) {
  7258. return (0, W.isObject)(a) && 3 === a.nodeType
  7259. }
  7260. function H(a) {
  7261. for (; a.firstChild;) a.removeChild(a.firstChild);
  7262. return a
  7263. }
  7264. function I(a) {
  7265. return "function" == typeof a && (a = a()), (Array.isArray(a) ? a : [a]).map(function(a) {
  7266. return "function" == typeof a && (a = a()), k(a) || G(a) ? a : "string" == typeof a && /\S/.test(a) ? N["default"].createTextNode(a) : void 0
  7267. }).filter(function(a) {
  7268. return a
  7269. })
  7270. }
  7271. function J(a, b) {
  7272. return I(b).forEach(function(b) {
  7273. return a.appendChild(b)
  7274. }), a
  7275. }
  7276. function K(a, b) {
  7277. return J(H(a), b)
  7278. }
  7279. c.__esModule = !0, c.$$ = c.$ = void 0;
  7280. var L = f(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set ", " to ", "."], ["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set ", " to ", "."]);
  7281. c.isReal = j, c.isEl = k, c.getEl = m, c.createEl = n, c.textContent = o, c.insertElFirst = p, c.getElData = q, c.hasElData = r, c.removeElData = s, c.hasElClass = t, c.addElClass = u, c.removeElClass = v, c.toggleElClass = w, c.setElAttributes = x, c.getElAttributes = y, c.getAttribute = z, c.setAttribute = A, c.removeAttribute = B, c.blockTextSelection = C, c.unblockTextSelection = D, c.findElPosition = E, c.getPointerPosition = F, c.isTextNode = G, c.emptyEl = H, c.normalizeContent = I, c.appendContent = J, c.insertContent = K;
  7282. var M = a(94),
  7283. N = e(M),
  7284. O = a(95),
  7285. P = e(O),
  7286. Q = a(85),
  7287. R = d(Q),
  7288. S = a(86),
  7289. T = e(S),
  7290. U = a(98),
  7291. V = e(U),
  7292. W = a(88),
  7293. X = {},
  7294. Y = "vdata" + (new Date).getTime();
  7295. c.$ = l("querySelector"), c.$$ = l("querySelectorAll")
  7296. }, {
  7297. 85: 85,
  7298. 86: 86,
  7299. 88: 88,
  7300. 94: 94,
  7301. 95: 95,
  7302. 98: 98
  7303. }
  7304. ],
  7305. 82: [
  7306. function(a, b, c) {
  7307. "use strict";
  7308. function d(a) {
  7309. return a && a.__esModule ? a : {
  7310. "default": a
  7311. }
  7312. }
  7313. function e(a) {
  7314. if (a && a.__esModule) return a;
  7315. var b = {};
  7316. if (null != a)
  7317. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  7318. return b["default"] = a, b
  7319. }
  7320. function f(a, b) {
  7321. var c = n.getElData(a);
  7322. 0 === c.handlers[b].length && (delete c.handlers[b], a.removeEventListener ? a.removeEventListener(b, c.dispatcher, !1) : a.detachEvent && a.detachEvent("on" + b, c.dispatcher)), Object.getOwnPropertyNames(c.handlers).length <= 0 && (delete c.handlers, delete c.dispatcher, delete c.disabled), 0 === Object.getOwnPropertyNames(c).length && n.removeElData(a)
  7323. }
  7324. function g(a, b, c, d) {
  7325. c.forEach(function(c) {
  7326. a(b, c, d)
  7327. })
  7328. }
  7329. function h(a) {
  7330. function b() {
  7331. return !0
  7332. }
  7333. function c() {
  7334. return !1
  7335. }
  7336. if (!a || !a.isPropagationStopped) {
  7337. var d = a || t["default"].event;
  7338. a = {};
  7339. for (var e in d) "layerX" !== e && "layerY" !== e && "keyLocation" !== e && "webkitMovementX" !== e && "webkitMovementY" !== e && ("returnValue" === e && d.preventDefault || (a[e] = d[e]));
  7340. if (a.target || (a.target = a.srcElement || v["default"]), a.relatedTarget || (a.relatedTarget = a.fromElement === a.target ? a.toElement : a.fromElement), a.preventDefault = function() {
  7341. d.preventDefault && d.preventDefault(), a.returnValue = !1, d.returnValue = !1, a.defaultPrevented = !0
  7342. }, a.defaultPrevented = !1, a.stopPropagation = function() {
  7343. d.stopPropagation && d.stopPropagation(), a.cancelBubble = !0, d.cancelBubble = !0, a.isPropagationStopped = b
  7344. }, a.isPropagationStopped = c, a.stopImmediatePropagation = function() {
  7345. d.stopImmediatePropagation && d.stopImmediatePropagation(), a.isImmediatePropagationStopped = b, a.stopPropagation()
  7346. }, a.isImmediatePropagationStopped = c, null !== a.clientX && void 0 !== a.clientX) {
  7347. var f = v["default"].documentElement,
  7348. g = v["default"].body;
  7349. a.pageX = a.clientX + (f && f.scrollLeft || g && g.scrollLeft || 0) - (f && f.clientLeft || g && g.clientLeft || 0), a.pageY = a.clientY + (f && f.scrollTop || g && g.scrollTop || 0) - (f && f.clientTop || g && g.clientTop || 0)
  7350. }
  7351. a.which = a.charCode || a.keyCode, null !== a.button && void 0 !== a.button && (a.button = 1 & a.button ? 0 : 4 & a.button ? 1 : 2 & a.button ? 2 : 0)
  7352. }
  7353. return a
  7354. }
  7355. function i(a, b, c) {
  7356. if (Array.isArray(b)) return g(i, a, b, c);
  7357. var d = n.getElData(a);
  7358. d.handlers || (d.handlers = {}), d.handlers[b] || (d.handlers[b] = []), c.guid || (c.guid = p.newGUID()), d.handlers[b].push(c), d.dispatcher || (d.disabled = !1, d.dispatcher = function(b, c) {
  7359. if (!d.disabled) {
  7360. b = h(b);
  7361. var e = d.handlers[b.type];
  7362. if (e)
  7363. for (var f = e.slice(0), g = 0, i = f.length; g < i && !b.isImmediatePropagationStopped(); g++) try {
  7364. f[g].call(a, b, c)
  7365. } catch (j) {
  7366. r["default"].error(j)
  7367. }
  7368. }
  7369. }), 1 === d.handlers[b].length && (a.addEventListener ? a.addEventListener(b, d.dispatcher, !1) : a.attachEvent && a.attachEvent("on" + b, d.dispatcher))
  7370. }
  7371. function j(a, b, c) {
  7372. if (n.hasElData(a)) {
  7373. var d = n.getElData(a);
  7374. if (d.handlers) {
  7375. if (Array.isArray(b)) return g(j, a, b, c);
  7376. var e = function(b) {
  7377. d.handlers[b] = [], f(a, b)
  7378. };
  7379. if (b) {
  7380. var h = d.handlers[b];
  7381. if (h) {
  7382. if (!c) return void e(b);
  7383. if (c.guid)
  7384. for (var i = 0; i < h.length; i++) h[i].guid === c.guid && h.splice(i--, 1);
  7385. f(a, b)
  7386. }
  7387. } else
  7388. for (var k in d.handlers) e(k)
  7389. }
  7390. }
  7391. }
  7392. function k(a, b, c) {
  7393. var d = n.hasElData(a) ? n.getElData(a) : {},
  7394. e = a.parentNode || a.ownerDocument;
  7395. if ("string" == typeof b && (b = {
  7396. type: b,
  7397. target: a
  7398. }), b = h(b), d.dispatcher && d.dispatcher.call(a, b, c), e && !b.isPropagationStopped() && b.bubbles === !0) k.call(null, e, b, c);
  7399. else if (!e && !b.defaultPrevented) {
  7400. var f = n.getElData(b.target);
  7401. b.target[b.type] && (f.disabled = !0, "function" == typeof b.target[b.type] && b.target[b.type](), f.disabled = !1)
  7402. }
  7403. return !b.defaultPrevented
  7404. }
  7405. function l(a, b, c) {
  7406. if (Array.isArray(b)) return g(l, a, b, c);
  7407. var d = function e() {
  7408. j(a, b, e), c.apply(this, arguments)
  7409. };
  7410. d.guid = c.guid = c.guid || p.newGUID(), i(a, b, d)
  7411. }
  7412. c.__esModule = !0, c.fixEvent = h, c.on = i, c.off = j, c.trigger = k, c.one = l;
  7413. var m = a(81),
  7414. n = e(m),
  7415. o = a(85),
  7416. p = e(o),
  7417. q = a(86),
  7418. r = d(q),
  7419. s = a(95),
  7420. t = d(s),
  7421. u = a(94),
  7422. v = d(u)
  7423. }, {
  7424. 81: 81,
  7425. 85: 85,
  7426. 86: 86,
  7427. 94: 94,
  7428. 95: 95
  7429. }
  7430. ],
  7431. 83: [
  7432. function(a, b, c) {
  7433. "use strict";
  7434. c.__esModule = !0, c.throttle = c.bind = void 0;
  7435. var d = a(85);
  7436. c.bind = function(a, b, c) {
  7437. b.guid || (b.guid = (0, d.newGUID)());
  7438. var e = function() {
  7439. return b.apply(a, arguments)
  7440. };
  7441. return e.guid = c ? c + "_" + b.guid : b.guid, e
  7442. }, c.throttle = function(a, b) {
  7443. var c = Date.now();
  7444. return function() {
  7445. var d = Date.now();
  7446. d - c >= b && (a.apply(void 0, arguments), c = d)
  7447. }
  7448. }
  7449. }, {
  7450. 85: 85
  7451. }
  7452. ],
  7453. 84: [
  7454. function(a, b, c) {
  7455. "use strict";
  7456. function d(a) {
  7457. var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : a;
  7458. a = a < 0 ? 0 : a;
  7459. var c = Math.floor(a % 60),
  7460. d = Math.floor(a / 60 % 60),
  7461. e = Math.floor(a / 3600),
  7462. f = Math.floor(b / 60 % 60),
  7463. g = Math.floor(b / 3600);
  7464. return (isNaN(a) || a === 1 / 0) && (e = d = c = "-"), e = e > 0 || g > 0 ? e + ":" : "", d = ((e || f >= 10) && d < 10 ? "0" + d : d) + ":", c = c < 10 ? "0" + c : c, e + d + c
  7465. }
  7466. c.__esModule = !0, c["default"] = d
  7467. }, {}
  7468. ],
  7469. 85: [
  7470. function(a, b, c) {
  7471. "use strict";
  7472. function d() {
  7473. return e++
  7474. }
  7475. c.__esModule = !0, c.newGUID = d;
  7476. var e = 1
  7477. }, {}
  7478. ],
  7479. 86: [
  7480. function(a, b, c) {
  7481. "use strict";
  7482. function d(a) {
  7483. return a && a.__esModule ? a : {
  7484. "default": a
  7485. }
  7486. }
  7487. c.__esModule = !0, c.logByType = void 0;
  7488. var e = a(95),
  7489. f = d(e),
  7490. g = a(78),
  7491. h = a(88),
  7492. i = void 0,
  7493. j = c.logByType = function(a, b) {
  7494. // var c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : !!g.IE_VERSION && g.IE_VERSION < 11;
  7495. // "log" !== a && b.unshift(a.toUpperCase() + ":"), i.history.push(b), b.unshift("VIDEOJS:");
  7496. // var d = f["default"].console && f["default"].console[a];
  7497. // d && (c && (b = b.map(function(a) {
  7498. // if ((0, h.isObject)(a) || Array.isArray(a)) try {
  7499. // return JSON.stringify(a)
  7500. // } catch (b) {
  7501. // return String(a)
  7502. // }
  7503. // return String(a)
  7504. // }).join(" ")), d.apply ? d[Array.isArray(b) ? "apply" : "call"](f["default"].console, b) : d(b))
  7505. console.log("媒体不能加载,要么是因为服务器或网络失败,要么是因为格式不受支持。");
  7506. };
  7507. i = function() {
  7508. for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
  7509. j("log", b)
  7510. }, i.history = [], i.error = function() {
  7511. for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
  7512. return j("error", b)
  7513. }, i.warn = function() {
  7514. for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
  7515. return j("warn", b)
  7516. }, c["default"] = i
  7517. }, {
  7518. 78: 78,
  7519. 88: 88,
  7520. 95: 95
  7521. }
  7522. ],
  7523. 87: [
  7524. function(a, b, c) {
  7525. "use strict";
  7526. function d() {
  7527. for (var a = {}, b = arguments.length, c = Array(b), f = 0; f < b; f++) c[f] = arguments[f];
  7528. return c.forEach(function(b) {
  7529. b && (0, e.each)(b, function(b, c) {
  7530. if (!(0, e.isPlain)(b)) return void(a[c] = b);
  7531. (0, e.isPlain)(a[c]) || (a[c] = {}), a[c] = d(a[c], b)
  7532. })
  7533. }), a
  7534. }
  7535. c.__esModule = !0, c["default"] = d;
  7536. var e = a(88)
  7537. }, {
  7538. 88: 88
  7539. }
  7540. ],
  7541. 88: [
  7542. function(a, b, c) {
  7543. "use strict";
  7544. function d(a, b) {
  7545. k(a).forEach(function(c) {
  7546. return b(a[c], c)
  7547. })
  7548. }
  7549. function e(a, b) {
  7550. var c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0;
  7551. return k(a).reduce(function(c, d) {
  7552. return b(c, a[d], d)
  7553. }, c)
  7554. }
  7555. function f(a) {
  7556. for (var b = arguments.length, c = Array(b > 1 ? b - 1 : 0), e = 1; e < b; e++) c[e - 1] = arguments[e];
  7557. return Object.assign ? Object.assign.apply(Object, [a].concat(c)) : (c.forEach(function(b) {
  7558. b && d(b, function(b, c) {
  7559. a[c] = b
  7560. })
  7561. }), a)
  7562. }
  7563. function g(a) {
  7564. return !!a && "object" === (void 0 === a ? "undefined" : i(a))
  7565. }
  7566. function h(a) {
  7567. return g(a) && "[object Object]" === j.call(a) && a.constructor === Object
  7568. }
  7569. c.__esModule = !0;
  7570. var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
  7571. return typeof a
  7572. } : function(a) {
  7573. return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
  7574. };
  7575. c.each = d, c.reduce = e, c.assign = f, c.isObject = g, c.isPlain = h;
  7576. var j = Object.prototype.toString,
  7577. k = function(a) {
  7578. return g(a) ? Object.keys(a) : []
  7579. }
  7580. }, {}
  7581. ],
  7582. 89: [
  7583. function(a, b, c) {
  7584. "use strict";
  7585. function d(a) {
  7586. return a && a.__esModule ? a : {
  7587. "default": a
  7588. }
  7589. }
  7590. c.__esModule = !0, c.setTextContent = c.createStyleElement = void 0;
  7591. var e = a(94),
  7592. f = d(e);
  7593. c.createStyleElement = function(a) {
  7594. var b = f["default"].createElement("style");
  7595. return b.className = a, b
  7596. }, c.setTextContent = function(a, b) {
  7597. a.styleSheet ? a.styleSheet.cssText = b : a.textContent = b
  7598. }
  7599. }, {
  7600. 94: 94
  7601. }
  7602. ],
  7603. 90: [
  7604. function(a, b, c) {
  7605. "use strict";
  7606. function d(a) {
  7607. return a && a.__esModule ? a : {
  7608. "default": a
  7609. }
  7610. }
  7611. function e(a, b, c) {
  7612. if (b < 0 || b > c) throw new Error("Failed to execute '" + a + "' on 'TimeRanges': The index provided (" + b + ") is greater than or equal to the maximum bound (" + c + ").")
  7613. }
  7614. function f(a, b, c, d) {
  7615. return void 0 === d && (j["default"].warn("DEPRECATED: Function '" + a + "' on 'TimeRanges' called without an index argument."), d = 0), e(a, d, c.length - 1), c[d][b]
  7616. }
  7617. function g(a) {
  7618. return void 0 === a || 0 === a.length ? {
  7619. length: 0,
  7620. start: function() {
  7621. throw new Error("This TimeRanges object is empty")
  7622. },
  7623. end: function() {
  7624. throw new Error("This TimeRanges object is empty")
  7625. }
  7626. } : {
  7627. length: a.length,
  7628. start: f.bind(null, "start", 0, a),
  7629. end: f.bind(null, "end", 1, a)
  7630. }
  7631. }
  7632. function h(a, b) {
  7633. return Array.isArray(a) ? g(a) : void 0 === a || void 0 === b ? g() : g([
  7634. [a, b]
  7635. ])
  7636. }
  7637. c.__esModule = !0, c.createTimeRange = void 0, c.createTimeRanges = h;
  7638. var i = a(86),
  7639. j = d(i);
  7640. c.createTimeRange = h
  7641. }, {
  7642. 86: 86
  7643. }
  7644. ],
  7645. 91: [
  7646. function(a, b, c) {
  7647. "use strict";
  7648. function d(a) {
  7649. return "string" != typeof a ? a : a.charAt(0).toUpperCase() + a.slice(1)
  7650. }
  7651. c.__esModule = !0, c["default"] = d
  7652. }, {}
  7653. ],
  7654. 92: [
  7655. function(a, b, c) {
  7656. "use strict";
  7657. function d(a) {
  7658. return a && a.__esModule ? a : {
  7659. "default": a
  7660. }
  7661. }
  7662. c.__esModule = !0, c.isCrossOrigin = c.getFileExtension = c.getAbsoluteURL = c.parseUrl = void 0;
  7663. var e = a(94),
  7664. f = d(e),
  7665. g = a(95),
  7666. h = d(g),
  7667. i = c.parseUrl = function(a) {
  7668. var b = ["protocol", "hostname", "port", "pathname", "search", "hash", "host"],
  7669. c = f["default"].createElement("a");
  7670. c.href = a;
  7671. var d = "" === c.host && "file:" !== c.protocol,
  7672. e = void 0;
  7673. d && (e = f["default"].createElement("div"), e.innerHTML = '<a href="' + a + '"></a>', c = e.firstChild, e.setAttribute("style", "display:none; position:absolute;"), f["default"].body.appendChild(e));
  7674. for (var g = {}, h = 0; h < b.length; h++) g[b[h]] = c[b[h]];
  7675. return "http:" === g.protocol && (g.host = g.host.replace(/:80$/, "")), "https:" === g.protocol && (g.host = g.host.replace(/:443$/, "")), d && f["default"].body.removeChild(e), g
  7676. };
  7677. c.getAbsoluteURL = function(a) {
  7678. if (!a.match(/^https?:\/\//)) {
  7679. var b = f["default"].createElement("div");
  7680. b.innerHTML = '<a href="' + a + '">x</a>', a = b.firstChild.href
  7681. }
  7682. return a
  7683. }, c.getFileExtension = function(a) {
  7684. if ("string" == typeof a) {
  7685. var b = /^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,
  7686. c = b.exec(a);
  7687. if (c) return c.pop().toLowerCase()
  7688. }
  7689. return ""
  7690. }, c.isCrossOrigin = function(a) {
  7691. var b = h["default"].location,
  7692. c = i(a);
  7693. return (":" === c.protocol ? b.protocol : c.protocol) + c.host !== b.protocol + b.host
  7694. }
  7695. }, {
  7696. 94: 94,
  7697. 95: 95
  7698. }
  7699. ],
  7700. 93: [
  7701. function(b, c, d) {
  7702. "use strict";
  7703. function e(a) {
  7704. if (a && a.__esModule) return a;
  7705. var b = {};
  7706. if (null != a)
  7707. for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
  7708. return b["default"] = a, b
  7709. }
  7710. function f(a) {
  7711. return a && a.__esModule ? a : {
  7712. "default": a
  7713. }
  7714. }
  7715. function g(a, b, c) {
  7716. var d = void 0;
  7717. if ("string" == typeof a) {
  7718. if (0 === a.indexOf("#") && (a = a.slice(1)), g.getPlayers()[a]) return b && O["default"].warn('Player "' + a + '" is already initialised. Options will not be applied.'), c && g.getPlayers()[a].ready(c), g.getPlayers()[a];
  7719. d = Q.getEl(a)
  7720. } else d = a; if (!d || !d.nodeName) throw new TypeError("The element or ID supplied is not valid. (videojs)");
  7721. if (d.player || x["default"].players[d.playerId]) return d.player || x["default"].players[d.playerId];
  7722. b = b || {}, g.hooks("beforesetup").forEach(function(a) {
  7723. var c = a(d, (0, B["default"])(b));
  7724. if (!(0, V.isObject)(c) || Array.isArray(c)) return void O["default"].error("please return an object in beforesetup hooks");
  7725. b = (0, B["default"])(b, c)
  7726. });
  7727. var e = r["default"].getComponent("Player"),
  7728. f = new e(d, b, c);
  7729. return g.hooks("setup").forEach(function(a) {
  7730. return a(f)
  7731. }), f
  7732. }
  7733. d.__esModule = !0;
  7734. var h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
  7735. return typeof a
  7736. } : function(a) {
  7737. return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
  7738. },
  7739. i = b(95),
  7740. j = f(i),
  7741. k = b(94),
  7742. l = f(k),
  7743. m = b(56),
  7744. n = e(m),
  7745. o = b(89),
  7746. p = e(o),
  7747. q = b(5),
  7748. r = f(q),
  7749. s = b(42),
  7750. t = f(s),
  7751. u = b(82),
  7752. v = e(u),
  7753. w = b(51),
  7754. x = f(w),
  7755. y = b(52),
  7756. z = f(y),
  7757. A = b(87),
  7758. B = f(A),
  7759. C = b(83),
  7760. D = e(C),
  7761. E = b(72),
  7762. F = f(E),
  7763. G = b(64),
  7764. H = f(G),
  7765. I = b(77),
  7766. J = f(I),
  7767. K = b(90),
  7768. L = b(84),
  7769. M = f(L),
  7770. N = b(86),
  7771. O = f(N),
  7772. P = b(81),
  7773. Q = e(P),
  7774. R = b(78),
  7775. S = e(R),
  7776. T = b(92),
  7777. U = e(T),
  7778. V = b(88),
  7779. W = b(80),
  7780. X = f(W),
  7781. Y = b(43),
  7782. Z = f(Y),
  7783. $ = b(99),
  7784. _ = f($),
  7785. aa = b(62),
  7786. ba = f(aa);
  7787. if ("undefined" == typeof HTMLVideoElement && Q.isReal() && (l["default"].createElement("video"), l["default"].createElement("audio"), l["default"].createElement("track")), g.hooks_ = {}, g.hooks = function(a, b) {
  7788. return g.hooks_[a] = g.hooks_[a] || [], b && (g.hooks_[a] = g.hooks_[a].concat(b)), g.hooks_[a]
  7789. }, g.hook = function(a, b) {
  7790. g.hooks(a, b)
  7791. }, g.removeHook = function(a, b) {
  7792. var c = g.hooks(a).indexOf(b);
  7793. return !(c <= -1) && (g.hooks_[a] = g.hooks_[a].slice(), g.hooks_[a].splice(c, 1), !0)
  7794. }, j["default"].VIDEOJS_NO_DYNAMIC_STYLE !== !0 && Q.isReal()) {
  7795. var ca = Q.$(".vjs-styles-defaults");
  7796. if (!ca) {
  7797. ca = p.createStyleElement("vjs-styles-defaults");
  7798. var da = Q.$("head");
  7799. da && da.insertBefore(ca, da.firstChild), p.setTextContent(ca, "\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")
  7800. }
  7801. }
  7802. n.autoSetupTimeout(1, g), g.VERSION = "5.18.4", g.options = x["default"].prototype.options_, g.getPlayers = function() {
  7803. return x["default"].players
  7804. }, g.players = x["default"].players, g.getComponent = r["default"].getComponent, g.registerComponent = function(a, b) {
  7805. ba["default"].isTech(b) && O["default"].warn("The " + a + " tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"), r["default"].registerComponent.call(r["default"], a, b)
  7806. }, g.getTech = ba["default"].getTech, g.registerTech = ba["default"].registerTech, g.browser = S, g.TOUCH_ENABLED = S.TOUCH_ENABLED, g.extend = Z["default"], g.mergeOptions = B["default"], g.bind = D.bind, g.plugin = z["default"], g.addLanguage = function(a, b) {
  7807. var c;
  7808. return a = ("" + a).toLowerCase(), g.options.languages = (0, B["default"])(g.options.languages, (c = {}, c[a] = b, c)), g.options.languages[a]
  7809. }, g.log = O["default"], g.createTimeRange = g.createTimeRanges = K.createTimeRanges, g.formatTime = M["default"], g.parseUrl = U.parseUrl, g.isCrossOrigin = U.isCrossOrigin, g.EventTarget = t["default"], g.on = v.on, g.one = v.one, g.off = v.off, g.trigger = v.trigger, g.xhr = _["default"], g.TextTrack = F["default"], g.AudioTrack = H["default"], g.VideoTrack = J["default"], g.isEl = Q.isEl, g.isTextNode = Q.isTextNode, g.createEl = Q.createEl, g.hasClass = Q.hasElClass, g.addClass = Q.addElClass, g.removeClass = Q.removeElClass, g.toggleClass = Q.toggleElClass, g.setAttributes = Q.setElAttributes, g.getAttributes = Q.getElAttributes, g.emptyEl = Q.emptyEl, g.appendContent = Q.appendContent, g.insertContent = Q.insertContent, g.computedStyle = X["default"], "function" == typeof a && a.amd ? a("videojs", [], function() {
  7810. return g
  7811. }) : "object" === (void 0 === d ? "undefined" : h(d)) && "object" === (void 0 === c ? "undefined" : h(c)) && (c.exports = g), d["default"] = g
  7812. }, {
  7813. 42: 42,
  7814. 43: 43,
  7815. 5: 5,
  7816. 51: 51,
  7817. 52: 52,
  7818. 56: 56,
  7819. 62: 62,
  7820. 64: 64,
  7821. 72: 72,
  7822. 77: 77,
  7823. 78: 78,
  7824. 80: 80,
  7825. 81: 81,
  7826. 82: 82,
  7827. 83: 83,
  7828. 84: 84,
  7829. 86: 86,
  7830. 87: 87,
  7831. 88: 88,
  7832. 89: 89,
  7833. 90: 90,
  7834. 92: 92,
  7835. 94: 94,
  7836. 95: 95,
  7837. 99: 99
  7838. }
  7839. ],
  7840. 94: [
  7841. function(a, b, c) {
  7842. (function(c) {
  7843. var d = void 0 !== c ? c : "undefined" != typeof window ? window : {},
  7844. e = a(96);
  7845. if ("undefined" != typeof document) b.exports = document;
  7846. else {
  7847. var f = d["__GLOBAL_DOCUMENT_CACHE@4"];
  7848. f || (f = d["__GLOBAL_DOCUMENT_CACHE@4"] = e), b.exports = f
  7849. }
  7850. }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  7851. }, {
  7852. 96: 96
  7853. }
  7854. ],
  7855. 95: [
  7856. function(a, b, c) {
  7857. (function(a) {
  7858. "undefined" != typeof window ? b.exports = window : void 0 !== a ? b.exports = a : "undefined" != typeof self ? b.exports = self : b.exports = {}
  7859. }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
  7860. }, {}
  7861. ],
  7862. 96: [
  7863. function(a, b, c) {}, {}
  7864. ],
  7865. 97: [
  7866. function(a, b, c) {
  7867. function d(a, b) {
  7868. var c, d = null;
  7869. try {
  7870. c = JSON.parse(a, b)
  7871. } catch (e) {
  7872. d = e
  7873. }
  7874. return [d, c]
  7875. }
  7876. b.exports = d
  7877. }, {}
  7878. ],
  7879. 98: [
  7880. function(a, b, c) {
  7881. function d(a) {
  7882. return a.replace(/\n\r?\s*/g, "")
  7883. }
  7884. b.exports = function(a) {
  7885. for (var b = "", c = 0; c < arguments.length; c++) b += d(a[c]) + (arguments[c + 1] || "");
  7886. return b
  7887. }
  7888. }, {}
  7889. ],
  7890. 99: [
  7891. function(a, b, c) {
  7892. "use strict";
  7893. function d(a, b) {
  7894. for (var c = 0; c < a.length; c++) b(a[c])
  7895. }
  7896. function e(a) {
  7897. for (var b in a)
  7898. if (a.hasOwnProperty(b)) return !1;
  7899. return !0
  7900. }
  7901. function f(a, b, c) {
  7902. var d = a;
  7903. return l(b) ? (c = b, "string" == typeof a && (d = {
  7904. uri: a
  7905. })) : d = n(b, {
  7906. uri: a
  7907. }), d.callback = c, d
  7908. }
  7909. function g(a, b, c) {
  7910. return b = f(a, b, c), h(b)
  7911. }
  7912. function h(a) {
  7913. function b() {
  7914. 4 === k.readyState && setTimeout(f, 0)
  7915. }
  7916. function c() {
  7917. var a = void 0;
  7918. if (a = k.response ? k.response : k.responseText || i(k), u) try {
  7919. a = JSON.parse(a)
  7920. } catch (b) {}
  7921. return a
  7922. }
  7923. function d(a) {
  7924. return clearTimeout(o), a instanceof Error || (a = new Error("" + (a || "Unknown XMLHttpRequest Error"))), a.statusCode = 0, j(a, v)
  7925. }
  7926. function f() {
  7927. if (!n) {
  7928. var b;
  7929. clearTimeout(o), b = a.useXDR && void 0 === k.status ? 200 : 1223 === k.status ? 204 : k.status;
  7930. var d = v,
  7931. e = null;
  7932. return 0 !== b ? (d = {
  7933. body: c(),
  7934. statusCode: b,
  7935. method: q,
  7936. headers: {},
  7937. url: p,
  7938. rawRequest: k
  7939. }, k.getAllResponseHeaders && (d.headers = m(k.getAllResponseHeaders()))) : e = new Error("Internal XMLHttpRequest Error"), j(e, d, d.body)
  7940. }
  7941. }
  7942. if ("undefined" == typeof a.callback) throw new Error("callback argument missing");
  7943. var h = !1,
  7944. j = function(b, c, d) {
  7945. h || (h = !0, a.callback(b, c, d))
  7946. },
  7947. k = a.xhr || null;
  7948. k || (k = a.cors || a.useXDR ? new g.XDomainRequest : new g.XMLHttpRequest);
  7949. var l, n, o, p = k.url = a.uri || a.url,
  7950. q = k.method = a.method || "GET",
  7951. r = a.body || a.data,
  7952. s = k.headers = a.headers || {},
  7953. t = !!a.sync,
  7954. u = !1,
  7955. v = {
  7956. body: void 0,
  7957. headers: {},
  7958. statusCode: 0,
  7959. method: q,
  7960. url: p,
  7961. rawRequest: k
  7962. };
  7963. if ("json" in a && a.json !== !1 && (u = !0, s.accept || s.Accept || (s.Accept = "application/json"), "GET" !== q && "HEAD" !== q && (s["content-type"] || s["Content-Type"] || (s["Content-Type"] = "application/json"), r = JSON.stringify(a.json === !0 ? r : a.json))), k.onreadystatechange = b, k.onload = f, k.onerror = d, k.onprogress = function() {}, k.onabort = function() {
  7964. n = !0
  7965. }, k.ontimeout = d, k.open(q, p, !t, a.username, a.password), t || (k.withCredentials = !!a.withCredentials), !t && a.timeout > 0 && (o = setTimeout(function() {
  7966. if (!n) {
  7967. n = !0, k.abort("timeout");
  7968. var a = new Error("XMLHttpRequest timeout");
  7969. a.code = "ETIMEDOUT", d(a)
  7970. }
  7971. }, a.timeout)), k.setRequestHeader)
  7972. for (l in s) s.hasOwnProperty(l) && k.setRequestHeader(l, s[l]);
  7973. else if (a.headers && !e(a.headers)) throw new Error("Headers cannot be set on an XDomainRequest object");
  7974. return "responseType" in a && (k.responseType = a.responseType), "beforeSend" in a && "function" == typeof a.beforeSend && a.beforeSend(k), k.send(r || null), k
  7975. }
  7976. function i(a) {
  7977. if ("document" === a.responseType) return a.responseXML;
  7978. var b = a.responseXML && "parsererror" === a.responseXML.documentElement.nodeName;
  7979. return "" !== a.responseType || b ? null : a.responseXML
  7980. }
  7981. function j() {}
  7982. var k = a(95),
  7983. l = a(100),
  7984. m = a(103),
  7985. n = a(104);
  7986. b.exports = g, g.XMLHttpRequest = k.XMLHttpRequest || j, g.XDomainRequest = "withCredentials" in new g.XMLHttpRequest ? g.XMLHttpRequest : k.XDomainRequest, d(["get", "put", "post", "patch", "head", "delete"], function(a) {
  7987. g["delete" === a ? "del" : a] = function(b, c, d) {
  7988. return c = f(b, c, d), c.method = a.toUpperCase(), h(c)
  7989. }
  7990. })
  7991. }, {
  7992. 100: 100,
  7993. 103: 103,
  7994. 104: 104,
  7995. 95: 95
  7996. }
  7997. ],
  7998. 100: [
  7999. function(a, b, c) {
  8000. function d(a) {
  8001. var b = e.call(a);
  8002. return "[object Function]" === b || "function" == typeof a && "[object RegExp]" !== b || "undefined" != typeof window && (a === window.setTimeout || a === window.alert || a === window.confirm || a === window.prompt)
  8003. }
  8004. b.exports = d;
  8005. var e = Object.prototype.toString
  8006. }, {}
  8007. ],
  8008. 101: [
  8009. function(a, b, c) {
  8010. function d(a, b, c) {
  8011. if (!h(b)) throw new TypeError("iterator must be a function");
  8012. arguments.length < 3 && (c = this), "[object Array]" === i.call(a) ? e(a, b, c) : "string" == typeof a ? f(a, b, c) : g(a, b, c)
  8013. }
  8014. function e(a, b, c) {
  8015. for (var d = 0, e = a.length; d < e; d++) j.call(a, d) && b.call(c, a[d], d, a)
  8016. }
  8017. function f(a, b, c) {
  8018. for (var d = 0, e = a.length; d < e; d++) b.call(c, a.charAt(d), d, a)
  8019. }
  8020. function g(a, b, c) {
  8021. for (var d in a) j.call(a, d) && b.call(c, a[d], d, a)
  8022. }
  8023. var h = a(100);
  8024. b.exports = d;
  8025. var i = Object.prototype.toString,
  8026. j = Object.prototype.hasOwnProperty
  8027. }, {
  8028. 100: 100
  8029. }
  8030. ],
  8031. 102: [
  8032. function(a, b, c) {
  8033. function d(a) {
  8034. return a.replace(/^\s*|\s*$/g, "")
  8035. }
  8036. c = b.exports = d, c.left = function(a) {
  8037. return a.replace(/^\s*/, "")
  8038. }, c.right = function(a) {
  8039. return a.replace(/\s*$/, "")
  8040. }
  8041. }, {}
  8042. ],
  8043. 103: [
  8044. function(a, b, c) {
  8045. var d = a(102),
  8046. e = a(101),
  8047. f = function(a) {
  8048. return "[object Array]" === Object.prototype.toString.call(a)
  8049. };
  8050. b.exports = function(a) {
  8051. if (!a) return {};
  8052. var b = {};
  8053. return e(d(a).split("\n"), function(a) {
  8054. var c = a.indexOf(":"),
  8055. e = d(a.slice(0, c)).toLowerCase(),
  8056. g = d(a.slice(c + 1));
  8057. "undefined" == typeof b[e] ? b[e] = g : f(b[e]) ? b[e].push(g) : b[e] = [b[e], g]
  8058. }), b
  8059. }
  8060. }, {
  8061. 101: 101,
  8062. 102: 102
  8063. }
  8064. ],
  8065. 104: [
  8066. function(a, b, c) {
  8067. function d() {
  8068. for (var a = {}, b = 0; b < arguments.length; b++) {
  8069. var c = arguments[b];
  8070. for (var d in c) e.call(c, d) && (a[d] = c[d])
  8071. }
  8072. return a
  8073. }
  8074. b.exports = d;
  8075. var e = Object.prototype.hasOwnProperty
  8076. }, {}
  8077. ],
  8078. 105: [
  8079. function(a, b, c) {
  8080. var d = b.exports = {
  8081. WebVTT: a(106).WebVTT,
  8082. VTTCue: a(107).VTTCue,
  8083. VTTRegion: a(109).VTTRegion
  8084. };
  8085. window.vttjs = d, window.WebVTT = d.WebVTT;
  8086. var e = d.VTTCue,
  8087. f = d.VTTRegion,
  8088. g = window.VTTCue,
  8089. h = window.VTTRegion;
  8090. d.shim = function() {
  8091. window.VTTCue = e, window.VTTRegion = f
  8092. }, d.restore = function() {
  8093. window.VTTCue = g, window.VTTRegion = h
  8094. }, window.VTTCue || d.shim()
  8095. }, {
  8096. 106: 106,
  8097. 107: 107,
  8098. 109: 109
  8099. }
  8100. ],
  8101. 106: [
  8102. function(a, b, c) {
  8103. ! function(a) {
  8104. function b(a, b) {
  8105. this.name = "ParsingError", this.code = a.code, this.message = b || a.message
  8106. }
  8107. function c(a) {
  8108. function b(a, b, c, d) {
  8109. return 3600 * (0 | a) + 60 * (0 | b) + (0 | c) + (0 | d) / 1e3
  8110. }
  8111. var c = a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
  8112. return c ? c[3] ? b(c[1], c[2], c[3].replace(":", ""), c[4]) : c[1] > 59 ? b(c[1], c[2], 0, c[4]) : b(0, c[1], c[2], c[4]) : null
  8113. }
  8114. function d() {
  8115. this.values = p(null)
  8116. }
  8117. function e(a, b, c, d) {
  8118. var e = d ? a.split(d) : [a];
  8119. for (var f in e)
  8120. if ("string" == typeof e[f]) {
  8121. var g = e[f].split(c);
  8122. if (2 === g.length) {
  8123. var h = g[0],
  8124. i = g[1];
  8125. b(h, i)
  8126. }
  8127. }
  8128. }
  8129. function f(a, f, g) {
  8130. function h() {
  8131. var d = c(a);
  8132. if (null === d) throw new b(b.Errors.BadTimeStamp, "Malformed timestamp: " + k);
  8133. return a = a.replace(/^[^\sa-zA-Z-]+/, ""), d
  8134. }
  8135. function i(a, b) {
  8136. var c = new d;
  8137. e(a, function(a, b) {
  8138. switch (a) {
  8139. case "region":
  8140. for (var d = g.length - 1; d >= 0; d--)
  8141. if (g[d].id === b) {
  8142. c.set(a, g[d].region);
  8143. break
  8144. }
  8145. break;
  8146. case "vertical":
  8147. c.alt(a, b, ["rl", "lr"]);
  8148. break;
  8149. case "line":
  8150. var e = b.split(","),
  8151. f = e[0];
  8152. c.integer(a, f), c.percent(a, f) && c.set("snapToLines", !1), c.alt(a, f, ["auto"]), 2 === e.length && c.alt("lineAlign", e[1], ["start", "middle", "end"]);
  8153. break;
  8154. case "position":
  8155. e = b.split(","), c.percent(a, e[0]), 2 === e.length && c.alt("positionAlign", e[1], ["start", "middle", "end"]);
  8156. break;
  8157. case "size":
  8158. c.percent(a, b);
  8159. break;
  8160. case "align":
  8161. c.alt(a, b, ["start", "middle", "end", "left", "right"])
  8162. }
  8163. }, /:/, /\s/), b.region = c.get("region", null), b.vertical = c.get("vertical", ""), b.line = c.get("line", "auto"), b.lineAlign = c.get("lineAlign", "start"), b.snapToLines = c.get("snapToLines", !0), b.size = c.get("size", 100), b.align = c.get("align", "middle"), b.position = c.get("position", {
  8164. start: 0,
  8165. left: 0,
  8166. middle: 50,
  8167. end: 100,
  8168. right: 100
  8169. }, b.align), b.positionAlign = c.get("positionAlign", {
  8170. start: "start",
  8171. left: "start",
  8172. middle: "middle",
  8173. end: "end",
  8174. right: "end"
  8175. }, b.align)
  8176. }
  8177. function j() {
  8178. a = a.replace(/^\s+/, "")
  8179. }
  8180. var k = a;
  8181. if (j(), f.startTime = h(), j(), "-->" !== a.substr(0, 3)) throw new b(b.Errors.BadTimeStamp, "Malformed time stamp (time stamps must be separated by '-->'): " + k);
  8182. a = a.substr(3), j(), f.endTime = h(), j(), i(a, f)
  8183. }
  8184. function g(a, b) {
  8185. function d() {
  8186. function a(a) {
  8187. return b = b.substr(a.length), a
  8188. }
  8189. if (!b) return null;
  8190. var c = b.match(/^([^<]*)(<[^>]+>?)?/);
  8191. return a(c[1] ? c[1] : c[2])
  8192. }
  8193. function e(a) {
  8194. return q[a]
  8195. }
  8196. function f(a) {
  8197. for (; o = a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);) a = a.replace(o[0], e);
  8198. return a
  8199. }
  8200. function g(a, b) {
  8201. return !t[b.localName] || t[b.localName] === a.localName
  8202. }
  8203. function h(b, c) {
  8204. var d = r[b];
  8205. if (!d) return null;
  8206. var e = a.document.createElement(d);
  8207. e.localName = d;
  8208. var f = s[b];
  8209. return f && c && (e[f] = c.trim()), e
  8210. }
  8211. for (var i, j = a.document.createElement("div"), k = j, l = []; null !== (i = d());)
  8212. if ("<" !== i[0]) k.appendChild(a.document.createTextNode(f(i)));
  8213. else {
  8214. if ("/" === i[1]) {
  8215. l.length && l[l.length - 1] === i.substr(2).replace(">", "") && (l.pop(), k = k.parentNode);
  8216. continue
  8217. }
  8218. var m, n = c(i.substr(1, i.length - 2));
  8219. if (n) {
  8220. m = a.document.createProcessingInstruction("timestamp", n), k.appendChild(m);
  8221. continue
  8222. }
  8223. var o = i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
  8224. if (!o) continue;
  8225. if (m = h(o[1], o[3]), !m) continue;
  8226. if (!g(k, m)) continue;
  8227. o[2] && (m.className = o[2].substr(1).replace(".", " ")), l.push(o[1]), k.appendChild(m), k = m
  8228. }
  8229. return j
  8230. }
  8231. function h(a) {
  8232. for (var b = 0; b < u.length; b++) {
  8233. var c = u[b];
  8234. if (a >= c[0] && a <= c[1]) return !0
  8235. }
  8236. return !1
  8237. }
  8238. function i(a) {
  8239. function b(a, b) {
  8240. for (var c = b.childNodes.length - 1; c >= 0; c--) a.push(b.childNodes[c])
  8241. }
  8242. function c(a) {
  8243. if (!a || !a.length) return null;
  8244. var d = a.pop(),
  8245. e = d.textContent || d.innerText;
  8246. if (e) {
  8247. var f = e.match(/^.*(\n|\r)/);
  8248. return f ? (a.length = 0, f[0]) : e
  8249. }
  8250. return "ruby" === d.tagName ? c(a) : d.childNodes ? (b(a, d), c(a)) : void 0
  8251. }
  8252. var d, e = [],
  8253. f = "";
  8254. if (!a || !a.childNodes) return "ltr";
  8255. for (b(e, a); f = c(e);)
  8256. for (var g = 0; g < f.length; g++)
  8257. if (d = f.charCodeAt(g), h(d)) return "rtl";
  8258. return "ltr"
  8259. }
  8260. function j(a) {
  8261. if ("number" == typeof a.line && (a.snapToLines || a.line >= 0 && a.line <= 100)) return a.line;
  8262. if (!a.track || !a.track.textTrackList || !a.track.textTrackList.mediaElement) return -1;
  8263. for (var b = a.track, c = b.textTrackList, d = 0, e = 0; e < c.length && c[e] !== b; e++) "showing" === c[e].mode && d++;
  8264. return ++d * -1
  8265. }
  8266. function k() {}
  8267. function l(a, b, c) {
  8268. var d = /MSIE\s8\.0/.test(navigator.userAgent),
  8269. e = "rgba(255, 255, 255, 1)",
  8270. f = "rgba(0, 0, 0, 0.8)";
  8271. d && (e = "rgb(255, 255, 255)", f = "rgb(0, 0, 0)"), k.call(this), this.cue = b, this.cueDiv = g(a, b.text);
  8272. var h = {
  8273. color: e,
  8274. backgroundColor: f,
  8275. position: "relative",
  8276. left: 0,
  8277. right: 0,
  8278. top: 0,
  8279. bottom: 0,
  8280. display: "inline"
  8281. };
  8282. d || (h.writingMode = "" === b.vertical ? "horizontal-tb" : "lr" === b.vertical ? "vertical-lr" : "vertical-rl", h.unicodeBidi = "plaintext"), this.applyStyles(h, this.cueDiv), this.div = a.document.createElement("div"), h = {
  8283. textAlign: "middle" === b.align ? "center" : b.align,
  8284. font: c.font,
  8285. whiteSpace: "pre-line",
  8286. position: "absolute"
  8287. }, d || (h.direction = i(this.cueDiv), h.writingMode = "" === b.vertical ? "horizontal-tb" : "lr" === b.vertical ? "vertical-lr" : "vertical-rl".stylesunicodeBidi = "plaintext"), this.applyStyles(h), this.div.appendChild(this.cueDiv);
  8288. var j = 0;
  8289. switch (b.positionAlign) {
  8290. case "start":
  8291. j = b.position;
  8292. break;
  8293. case "middle":
  8294. j = b.position - b.size / 2;
  8295. break;
  8296. case "end":
  8297. j = b.position - b.size
  8298. }
  8299. "" === b.vertical ? this.applyStyles({
  8300. left: this.formatStyle(j, "%"),
  8301. width: this.formatStyle(b.size, "%")
  8302. }) : this.applyStyles({
  8303. top: this.formatStyle(j, "%"),
  8304. height: this.formatStyle(b.size, "%")
  8305. }), this.move = function(a) {
  8306. this.applyStyles({
  8307. top: this.formatStyle(a.top, "px"),
  8308. bottom: this.formatStyle(a.bottom, "px"),
  8309. left: this.formatStyle(a.left, "px"),
  8310. right: this.formatStyle(a.right, "px"),
  8311. height: this.formatStyle(a.height, "px"),
  8312. width: this.formatStyle(a.width, "px")
  8313. })
  8314. }
  8315. }
  8316. function m(a) {
  8317. var b, c, d, e, f = /MSIE\s8\.0/.test(navigator.userAgent);
  8318. if (a.div) {
  8319. c = a.div.offsetHeight, d = a.div.offsetWidth, e = a.div.offsetTop;
  8320. var g = (g = a.div.childNodes) && (g = g[0]) && g.getClientRects && g.getClientRects();
  8321. a = a.div.getBoundingClientRect(), b = g ? Math.max(g[0] && g[0].height || 0, a.height / g.length) : 0
  8322. }
  8323. this.left = a.left, this.right = a.right, this.top = a.top || e, this.height = a.height || c, this.bottom = a.bottom || e + (a.height || c), this.width = a.width || d, this.lineHeight = void 0 !== b ? b : a.lineHeight, f && !this.lineHeight && (this.lineHeight = 13)
  8324. }
  8325. function n(a, b, c, d) {
  8326. function e(a, b) {
  8327. for (var e, f = new m(a), g = 1, h = 0; h < b.length; h++) {
  8328. for (; a.overlapsOppositeAxis(c, b[h]) || a.within(c) && a.overlapsAny(d);) a.move(b[h]);
  8329. if (a.within(c)) return a;
  8330. var i = a.intersectPercentage(c);
  8331. g > i && (e = new m(a), g = i), a = new m(f)
  8332. }
  8333. return e || f
  8334. }
  8335. var f = new m(b),
  8336. g = b.cue,
  8337. h = j(g),
  8338. i = [];
  8339. if (g.snapToLines) {
  8340. var k;
  8341. switch (g.vertical) {
  8342. case "":
  8343. i = ["+y", "-y"], k = "height";
  8344. break;
  8345. case "rl":
  8346. i = ["+x", "-x"], k = "width";
  8347. break;
  8348. case "lr":
  8349. i = ["-x", "+x"], k = "width"
  8350. }
  8351. var l = f.lineHeight,
  8352. n = l * Math.round(h),
  8353. o = c[k] + l,
  8354. p = i[0];
  8355. Math.abs(n) > o && (n = n < 0 ? -1 : 1, n *= Math.ceil(o / l) * l), h < 0 && (n += "" === g.vertical ? c.height : c.width, i = i.reverse()), f.move(p, n)
  8356. } else {
  8357. var q = f.lineHeight / c.height * 100;
  8358. switch (g.lineAlign) {
  8359. case "middle":
  8360. h -= q / 2;
  8361. break;
  8362. case "end":
  8363. h -= q
  8364. }
  8365. switch (g.vertical) {
  8366. case "":
  8367. b.applyStyles({
  8368. top: b.formatStyle(h, "%")
  8369. });
  8370. break;
  8371. case "rl":
  8372. b.applyStyles({
  8373. left: b.formatStyle(h, "%")
  8374. });
  8375. break;
  8376. case "lr":
  8377. b.applyStyles({
  8378. right: b.formatStyle(h, "%")
  8379. })
  8380. }
  8381. i = ["+y", "-x", "+x", "-y"], f = new m(b)
  8382. }
  8383. var r = e(f, i);
  8384. b.move(r.toCSSCompatValues(c))
  8385. }
  8386. function o() {}
  8387. var p = Object.create || function() {
  8388. function a() {}
  8389. return function(b) {
  8390. if (1 !== arguments.length) throw new Error("Object.create shim only accepts one parameter.");
  8391. return a.prototype = b, new a
  8392. }
  8393. }();
  8394. b.prototype = p(Error.prototype), b.prototype.constructor = b, b.Errors = {
  8395. BadSignature: {
  8396. code: 0,
  8397. message: "Malformed WebVTT signature."
  8398. },
  8399. BadTimeStamp: {
  8400. code: 1,
  8401. message: "Malformed time stamp."
  8402. }
  8403. }, d.prototype = {
  8404. set: function(a, b) {
  8405. this.get(a) || "" === b || (this.values[a] = b)
  8406. },
  8407. get: function(a, b, c) {
  8408. return c ? this.has(a) ? this.values[a] : b[c] : this.has(a) ? this.values[a] : b
  8409. },
  8410. has: function(a) {
  8411. return a in this.values
  8412. },
  8413. alt: function(a, b, c) {
  8414. for (var d = 0; d < c.length; ++d)
  8415. if (b === c[d]) {
  8416. this.set(a, b);
  8417. break
  8418. }
  8419. },
  8420. integer: function(a, b) {
  8421. /^-?\d+$/.test(b) && this.set(a, parseInt(b, 10))
  8422. },
  8423. percent: function(a, b) {
  8424. return !!(b.match(/^([\d]{1,3})(\.[\d]*)?%$/) && (b = parseFloat(b), b >= 0 && b <= 100)) && (this.set(a, b), !0)
  8425. }
  8426. };
  8427. var q = {
  8428. "&amp;": "&",
  8429. "&lt;": "<",
  8430. "&gt;": ">",
  8431. "&lrm;": "‎",
  8432. "&rlm;": "‏",
  8433. "&nbsp;": " "
  8434. },
  8435. r = {
  8436. c: "span",
  8437. i: "i",
  8438. b: "b",
  8439. u: "u",
  8440. ruby: "ruby",
  8441. rt: "rt",
  8442. v: "span",
  8443. lang: "span"
  8444. },
  8445. s = {
  8446. v: "title",
  8447. lang: "lang"
  8448. },
  8449. t = {
  8450. rt: "ruby"
  8451. },
  8452. u = [
  8453. [1470, 1470],
  8454. [1472, 1472],
  8455. [1475, 1475],
  8456. [1478, 1478],
  8457. [1488, 1514],
  8458. [1520, 1524],
  8459. [1544, 1544],
  8460. [1547, 1547],
  8461. [1549, 1549],
  8462. [1563, 1563],
  8463. [1566, 1610],
  8464. [1645, 1647],
  8465. [1649, 1749],
  8466. [1765, 1766],
  8467. [1774, 1775],
  8468. [1786, 1805],
  8469. [1807, 1808],
  8470. [1810, 1839],
  8471. [1869, 1957],
  8472. [1969, 1969],
  8473. [1984, 2026],
  8474. [2036, 2037],
  8475. [2042, 2042],
  8476. [2048, 2069],
  8477. [2074, 2074],
  8478. [2084, 2084],
  8479. [2088, 2088],
  8480. [2096, 2110],
  8481. [2112, 2136],
  8482. [2142, 2142],
  8483. [2208, 2208],
  8484. [2210, 2220],
  8485. [8207, 8207],
  8486. [64285, 64285],
  8487. [64287, 64296],
  8488. [64298, 64310],
  8489. [64312, 64316],
  8490. [64318, 64318],
  8491. [64320, 64321],
  8492. [64323, 64324],
  8493. [64326, 64449],
  8494. [64467, 64829],
  8495. [64848, 64911],
  8496. [64914, 64967],
  8497. [65008, 65020],
  8498. [65136, 65140],
  8499. [65142, 65276],
  8500. [67584, 67589],
  8501. [67592, 67592],
  8502. [67594, 67637],
  8503. [67639, 67640],
  8504. [67644, 67644],
  8505. [67647, 67669],
  8506. [67671, 67679],
  8507. [67840, 67867],
  8508. [67872, 67897],
  8509. [67903, 67903],
  8510. [67968, 68023],
  8511. [68030, 68031],
  8512. [68096, 68096],
  8513. [68112, 68115],
  8514. [68117, 68119],
  8515. [68121, 68147],
  8516. [68160, 68167],
  8517. [68176, 68184],
  8518. [68192, 68223],
  8519. [68352, 68405],
  8520. [68416, 68437],
  8521. [68440, 68466],
  8522. [68472, 68479],
  8523. [68608, 68680],
  8524. [126464, 126467],
  8525. [126469, 126495],
  8526. [126497, 126498],
  8527. [126500, 126500],
  8528. [126503, 126503],
  8529. [126505, 126514],
  8530. [126516, 126519],
  8531. [126521, 126521],
  8532. [126523, 126523],
  8533. [126530, 126530],
  8534. [126535, 126535],
  8535. [126537, 126537],
  8536. [126539, 126539],
  8537. [126541, 126543],
  8538. [126545, 126546],
  8539. [126548, 126548],
  8540. [126551, 126551],
  8541. [126553, 126553],
  8542. [126555, 126555],
  8543. [126557, 126557],
  8544. [126559, 126559],
  8545. [126561, 126562],
  8546. [126564, 126564],
  8547. [126567, 126570],
  8548. [126572, 126578],
  8549. [126580, 126583],
  8550. [126585, 126588],
  8551. [126590, 126590],
  8552. [126592, 126601],
  8553. [126603, 126619],
  8554. [126625, 126627],
  8555. [126629, 126633],
  8556. [126635, 126651],
  8557. [1114109, 1114109]
  8558. ];
  8559. k.prototype.applyStyles = function(a, b) {
  8560. b = b || this.div;
  8561. for (var c in a) a.hasOwnProperty(c) && (b.style[c] = a[c])
  8562. }, k.prototype.formatStyle = function(a, b) {
  8563. return 0 === a ? 0 : a + b
  8564. }, l.prototype = p(k.prototype), l.prototype.constructor = l, m.prototype.move = function(a, b) {
  8565. switch (b = void 0 !== b ? b : this.lineHeight, a) {
  8566. case "+x":
  8567. this.left += b, this.right += b;
  8568. break;
  8569. case "-x":
  8570. this.left -= b, this.right -= b;
  8571. break;
  8572. case "+y":
  8573. this.top += b, this.bottom += b;
  8574. break;
  8575. case "-y":
  8576. this.top -= b, this.bottom -= b
  8577. }
  8578. }, m.prototype.overlaps = function(a) {
  8579. return this.left < a.right && this.right > a.left && this.top < a.bottom && this.bottom > a.top
  8580. }, m.prototype.overlapsAny = function(a) {
  8581. for (var b = 0; b < a.length; b++)
  8582. if (this.overlaps(a[b])) return !0;
  8583. return !1
  8584. }, m.prototype.within = function(a) {
  8585. return this.top >= a.top && this.bottom <= a.bottom && this.left >= a.left && this.right <= a.right
  8586. }, m.prototype.overlapsOppositeAxis = function(a, b) {
  8587. switch (b) {
  8588. case "+x":
  8589. return this.left < a.left;
  8590. case "-x":
  8591. return this.right > a.right;
  8592. case "+y":
  8593. return this.top < a.top;
  8594. case "-y":
  8595. return this.bottom > a.bottom
  8596. }
  8597. }, m.prototype.intersectPercentage = function(a) {
  8598. return Math.max(0, Math.min(this.right, a.right) - Math.max(this.left, a.left)) * Math.max(0, Math.min(this.bottom, a.bottom) - Math.max(this.top, a.top)) / (this.height * this.width)
  8599. }, m.prototype.toCSSCompatValues = function(a) {
  8600. return {
  8601. top: this.top - a.top,
  8602. bottom: a.bottom - this.bottom,
  8603. left: this.left - a.left,
  8604. right: a.right - this.right,
  8605. height: this.height,
  8606. width: this.width
  8607. }
  8608. }, m.getSimpleBoxPosition = function(a) {
  8609. var b = a.div ? a.div.offsetHeight : a.tagName ? a.offsetHeight : 0,
  8610. c = a.div ? a.div.offsetWidth : a.tagName ? a.offsetWidth : 0,
  8611. d = a.div ? a.div.offsetTop : a.tagName ? a.offsetTop : 0;
  8612. return a = a.div ? a.div.getBoundingClientRect() : a.tagName ? a.getBoundingClientRect() : a, {
  8613. left: a.left,
  8614. right: a.right,
  8615. top: a.top || d,
  8616. height: a.height || b,
  8617. bottom: a.bottom || d + (a.height || b),
  8618. width: a.width || c
  8619. }
  8620. }, o.StringDecoder = function() {
  8621. return {
  8622. decode: function(a) {
  8623. if (!a) return "";
  8624. if ("string" != typeof a) throw new Error("Error - expected string data.");
  8625. return decodeURIComponent(encodeURIComponent(a))
  8626. }
  8627. }
  8628. }, o.convertCueToDOMTree = function(a, b) {
  8629. return a && b ? g(a, b) : null
  8630. };
  8631. o.processCues = function(a, b, c) {
  8632. function d(a) {
  8633. for (var b = 0; b < a.length; b++)
  8634. if (a[b].hasBeenReset || !a[b].displayState) return !0;
  8635. return !1
  8636. }
  8637. if (!a || !b || !c) return null;
  8638. for (; c.firstChild;) c.removeChild(c.firstChild);
  8639. var e = a.document.createElement("div");
  8640. if (e.style.position = "absolute", e.style.left = "0", e.style.right = "0", e.style.top = "0", e.style.bottom = "0", e.style.margin = "1.5%", c.appendChild(e), d(b)) {
  8641. var f = [],
  8642. g = m.getSimpleBoxPosition(e),
  8643. h = Math.round(.05 * g.height * 100) / 100,
  8644. i = {
  8645. font: h + "px sans-serif"
  8646. };
  8647. ! function() {
  8648. for (var c, d, h = 0; h < b.length; h++) d = b[h], c = new l(a, d, i), e.appendChild(c.div), n(a, c, g, f), d.displayState = c.div, f.push(m.getSimpleBoxPosition(c))
  8649. }()
  8650. } else
  8651. for (var j = 0; j < b.length; j++) e.appendChild(b[j].displayState)
  8652. }, o.Parser = function(a, b, c) {
  8653. c || (c = b, b = {}), b || (b = {}), this.window = a, this.vttjs = b, this.state = "INITIAL", this.buffer = "", this.decoder = c || new TextDecoder("utf8"), this.regionList = []
  8654. }, o.Parser.prototype = {
  8655. reportOrThrowError: function(a) {
  8656. if (!(a instanceof b)) throw a;
  8657. this.onparsingerror && this.onparsingerror(a)
  8658. },
  8659. parse: function(a) {
  8660. function c() {
  8661. for (var a = i.buffer, b = 0; b < a.length && "\r" !== a[b] && "\n" !== a[b];)++b;
  8662. var c = a.substr(0, b);
  8663. return "\r" === a[b] && ++b, "\n" === a[b] && ++b, i.buffer = a.substr(b), c
  8664. }
  8665. function g(a) {
  8666. var b = new d;
  8667. if (e(a, function(a, c) {
  8668. switch (a) {
  8669. case "id":
  8670. b.set(a, c);
  8671. break;
  8672. case "width":
  8673. b.percent(a, c);
  8674. break;
  8675. case "lines":
  8676. b.integer(a, c);
  8677. break;
  8678. case "regionanchor":
  8679. case "viewportanchor":
  8680. var e = c.split(",");
  8681. if (2 !== e.length) break;
  8682. var f = new d;
  8683. if (f.percent("x", e[0]), f.percent("y", e[1]), !f.has("x") || !f.has("y")) break;
  8684. b.set(a + "X", f.get("x")), b.set(a + "Y", f.get("y"));
  8685. break;
  8686. case "scroll":
  8687. b.alt(a, c, ["up"])
  8688. }
  8689. }, /=/, /\s/), b.has("id")) {
  8690. var c = new(i.vttjs.VTTRegion || i.window.VTTRegion);
  8691. c.width = b.get("width", 100), c.lines = b.get("lines", 3), c.regionAnchorX = b.get("regionanchorX", 0), c.regionAnchorY = b.get("regionanchorY", 100), c.viewportAnchorX = b.get("viewportanchorX", 0), c.viewportAnchorY = b.get("viewportanchorY", 100), c.scroll = b.get("scroll", ""), i.onregion && i.onregion(c), i.regionList.push({
  8692. id: b.get("id"),
  8693. region: c
  8694. })
  8695. }
  8696. }
  8697. function h(a) {
  8698. e(a, function(a, b) {
  8699. switch (a) {
  8700. case "Region":
  8701. g(b)
  8702. }
  8703. }, /:/)
  8704. }
  8705. var i = this;
  8706. a && (i.buffer += i.decoder.decode(a, {
  8707. stream: !0
  8708. }));
  8709. try {
  8710. var j;
  8711. if ("INITIAL" === i.state) {
  8712. if (!/\r\n|\n/.test(i.buffer)) return this;
  8713. j = c();
  8714. var k = j.match(/^WEBVTT([ \t].*)?$/);
  8715. if (!k || !k[0]) throw new b(b.Errors.BadSignature);
  8716. i.state = "HEADER"
  8717. }
  8718. for (var l = !1; i.buffer;) {
  8719. if (!/\r\n|\n/.test(i.buffer)) return this;
  8720. switch (l ? l = !1 : j = c(), i.state) {
  8721. case "HEADER":
  8722. /:/.test(j) ? h(j) : j || (i.state = "ID");
  8723. continue;
  8724. case "NOTE":
  8725. j || (i.state = "ID");
  8726. continue;
  8727. case "ID":
  8728. if (/^NOTE($|[ \t])/.test(j)) {
  8729. i.state = "NOTE";
  8730. break
  8731. }
  8732. if (!j) continue;
  8733. if (i.cue = new(i.vttjs.VTTCue || i.window.VTTCue)(0, 0, ""), i.state = "CUE", j.indexOf("-->") === -1) {
  8734. i.cue.id = j;
  8735. continue
  8736. }
  8737. case "CUE":
  8738. try {
  8739. f(j, i.cue, i.regionList)
  8740. } catch (m) {
  8741. i.reportOrThrowError(m), i.cue = null, i.state = "BADCUE";
  8742. continue
  8743. }
  8744. i.state = "CUETEXT";
  8745. continue;
  8746. case "CUETEXT":
  8747. var n = j.indexOf("-->") !== -1;
  8748. if (!j || n && (l = !0)) {
  8749. i.oncue && i.oncue(i.cue), i.cue = null, i.state = "ID";
  8750. continue
  8751. }
  8752. i.cue.text && (i.cue.text += "\n"), i.cue.text += j;
  8753. continue;
  8754. case "BADCUE":
  8755. j || (i.state = "ID");
  8756. continue
  8757. }
  8758. }
  8759. } catch (m) {
  8760. i.reportOrThrowError(m), "CUETEXT" === i.state && i.cue && i.oncue && i.oncue(i.cue), i.cue = null, i.state = "INITIAL" === i.state ? "BADWEBVTT" : "BADCUE"
  8761. }
  8762. return this
  8763. },
  8764. flush: function() {
  8765. var a = this;
  8766. try {
  8767. if (a.buffer += a.decoder.decode(), (a.cue || "HEADER" === a.state) && (a.buffer += "\n\n", a.parse()), "INITIAL" === a.state) throw new b(b.Errors.BadSignature)
  8768. } catch (c) {
  8769. a.reportOrThrowError(c)
  8770. }
  8771. return a.onflush && a.onflush(), this
  8772. }
  8773. }, a.WebVTT = o
  8774. }(this, this.vttjs)
  8775. }, {}
  8776. ],
  8777. 107: [
  8778. function(a, b, c) {
  8779. void 0 !== b && b.exports && (this.VTTCue = this.VTTCue || a(108).VTTCue),
  8780. function(a) {
  8781. a.VTTCue.prototype.toJSON = function() {
  8782. var a = {},
  8783. b = this;
  8784. return Object.keys(this).forEach(function(c) {
  8785. "getCueAsHTML" !== c && "hasBeenReset" !== c && "displayState" !== c && (a[c] = b[c])
  8786. }), a
  8787. }, a.VTTCue.create = function(b) {
  8788. if (!b.hasOwnProperty("startTime") || !b.hasOwnProperty("endTime") || !b.hasOwnProperty("text")) throw new Error("You must at least have start time, end time, and text.");
  8789. var c = new a.VTTCue(b.startTime, b.endTime, b.text);
  8790. for (var d in b) c.hasOwnProperty(d) && (c[d] = b[d]);
  8791. return c
  8792. }, a.VTTCue.fromJSON = function(a) {
  8793. return this.create(JSON.parse(a))
  8794. }
  8795. }(this)
  8796. }, {
  8797. 108: 108
  8798. }
  8799. ],
  8800. 108: [
  8801. function(a, b, c) {
  8802. ! function(a, b) {
  8803. function c(a) {
  8804. return "string" == typeof a && (!!g[a.toLowerCase()] && a.toLowerCase())
  8805. }
  8806. function d(a) {
  8807. return "string" == typeof a && (!!h[a.toLowerCase()] && a.toLowerCase())
  8808. }
  8809. function e(a) {
  8810. for (var b = 1; b < arguments.length; b++) {
  8811. var c = arguments[b];
  8812. for (var d in c) a[d] = c[d]
  8813. }
  8814. return a
  8815. }
  8816. function f(a, b, f) {
  8817. var g = this,
  8818. h = /MSIE\s8\.0/.test(navigator.userAgent),
  8819. i = {};
  8820. h ? g = document.createElement("custom") : i.enumerable = !0, g.hasBeenReset = !1;
  8821. var j = "",
  8822. k = !1,
  8823. l = a,
  8824. m = b,
  8825. n = f,
  8826. o = null,
  8827. p = "",
  8828. q = !0,
  8829. r = "auto",
  8830. s = "start",
  8831. t = 50,
  8832. u = "middle",
  8833. v = 50,
  8834. w = "middle";
  8835. if (Object.defineProperty(g, "id", e({}, i, {
  8836. get: function() {
  8837. return j
  8838. },
  8839. set: function(a) {
  8840. j = "" + a
  8841. }
  8842. })), Object.defineProperty(g, "pauseOnExit", e({}, i, {
  8843. get: function() {
  8844. return k
  8845. },
  8846. set: function(a) {
  8847. k = !!a
  8848. }
  8849. })), Object.defineProperty(g, "startTime", e({}, i, {
  8850. get: function() {
  8851. return l
  8852. },
  8853. set: function(a) {
  8854. if ("number" != typeof a) throw new TypeError("Start time must be set to a number.");
  8855. l = a, this.hasBeenReset = !0
  8856. }
  8857. })), Object.defineProperty(g, "endTime", e({}, i, {
  8858. get: function() {
  8859. return m
  8860. },
  8861. set: function(a) {
  8862. if ("number" != typeof a) throw new TypeError("End time must be set to a number.");
  8863. m = a, this.hasBeenReset = !0
  8864. }
  8865. })), Object.defineProperty(g, "text", e({}, i, {
  8866. get: function() {
  8867. return n
  8868. },
  8869. set: function(a) {
  8870. n = "" + a, this.hasBeenReset = !0
  8871. }
  8872. })), Object.defineProperty(g, "region", e({}, i, {
  8873. get: function() {
  8874. return o
  8875. },
  8876. set: function(a) {
  8877. o = a, this.hasBeenReset = !0
  8878. }
  8879. })), Object.defineProperty(g, "vertical", e({}, i, {
  8880. get: function() {
  8881. return p
  8882. },
  8883. set: function(a) {
  8884. var b = c(a);
  8885. if (b === !1) throw new SyntaxError("An invalid or illegal string was specified.");
  8886. p = b, this.hasBeenReset = !0
  8887. }
  8888. })), Object.defineProperty(g, "snapToLines", e({}, i, {
  8889. get: function() {
  8890. return q
  8891. },
  8892. set: function(a) {
  8893. q = !!a, this.hasBeenReset = !0
  8894. }
  8895. })), Object.defineProperty(g, "line", e({}, i, {
  8896. get: function() {
  8897. return r
  8898. },
  8899. set: function(a) {
  8900. if ("number" != typeof a && "auto" !== a) throw new SyntaxError("An invalid number or illegal string was specified.");
  8901. r = a, this.hasBeenReset = !0
  8902. }
  8903. })), Object.defineProperty(g, "lineAlign", e({}, i, {
  8904. get: function() {
  8905. return s
  8906. },
  8907. set: function(a) {
  8908. var b = d(a);
  8909. if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
  8910. s = b, this.hasBeenReset = !0
  8911. }
  8912. })), Object.defineProperty(g, "position", e({}, i, {
  8913. get: function() {
  8914. return t
  8915. },
  8916. set: function(a) {
  8917. if (a < 0 || a > 100) throw new Error("Position must be between 0 and 100.");
  8918. t = a, this.hasBeenReset = !0
  8919. }
  8920. })), Object.defineProperty(g, "positionAlign", e({}, i, {
  8921. get: function() {
  8922. return u
  8923. },
  8924. set: function(a) {
  8925. var b = d(a);
  8926. if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
  8927. u = b, this.hasBeenReset = !0
  8928. }
  8929. })), Object.defineProperty(g, "size", e({}, i, {
  8930. get: function() {
  8931. return v
  8932. },
  8933. set: function(a) {
  8934. if (a < 0 || a > 100) throw new Error("Size must be between 0 and 100.");
  8935. v = a, this.hasBeenReset = !0
  8936. }
  8937. })), Object.defineProperty(g, "align", e({}, i, {
  8938. get: function() {
  8939. return w
  8940. },
  8941. set: function(a) {
  8942. var b = d(a);
  8943. if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
  8944. w = b, this.hasBeenReset = !0
  8945. }
  8946. })), g.displayState = void 0, h) return g
  8947. }
  8948. var g = {
  8949. "": !0,
  8950. lr: !0,
  8951. rl: !0
  8952. },
  8953. h = {
  8954. start: !0,
  8955. middle: !0,
  8956. end: !0,
  8957. left: !0,
  8958. right: !0
  8959. };
  8960. f.prototype.getCueAsHTML = function() {
  8961. return WebVTT.convertCueToDOMTree(window, this.text)
  8962. }, a.VTTCue = a.VTTCue || f, b.VTTCue = f
  8963. }(this, this.vttjs || {})
  8964. }, {}
  8965. ],
  8966. 109: [
  8967. function(a, b, c) {
  8968. void 0 !== b && b.exports && (this.VTTRegion = a(110).VTTRegion),
  8969. function(a) {
  8970. a.VTTRegion.create = function(b) {
  8971. var c = new a.VTTRegion;
  8972. for (var d in b) c.hasOwnProperty(d) && (c[d] = b[d]);
  8973. return c
  8974. }, a.VTTRegion.fromJSON = function(a) {
  8975. return this.create(JSON.parse(a))
  8976. }
  8977. }(this)
  8978. }, {
  8979. 110: 110
  8980. }
  8981. ],
  8982. 110: [
  8983. function(a, b, c) {
  8984. ! function(a, b) {
  8985. function c(a) {
  8986. return "string" == typeof a && (!!f[a.toLowerCase()] && a.toLowerCase())
  8987. }
  8988. function d(a) {
  8989. return "number" == typeof a && a >= 0 && a <= 100
  8990. }
  8991. function e() {
  8992. var a = 100,
  8993. b = 3,
  8994. e = 0,
  8995. f = 100,
  8996. g = 0,
  8997. h = 100,
  8998. i = "";
  8999. Object.defineProperties(this, {
  9000. width: {
  9001. enumerable: !0,
  9002. get: function() {
  9003. return a
  9004. },
  9005. set: function(b) {
  9006. if (!d(b)) throw new Error("Width must be between 0 and 100.");
  9007. a = b
  9008. }
  9009. },
  9010. lines: {
  9011. enumerable: !0,
  9012. get: function() {
  9013. return b
  9014. },
  9015. set: function(a) {
  9016. if ("number" != typeof a) throw new TypeError("Lines must be set to a number.");
  9017. b = a
  9018. }
  9019. },
  9020. regionAnchorY: {
  9021. enumerable: !0,
  9022. get: function() {
  9023. return f
  9024. },
  9025. set: function(a) {
  9026. if (!d(a)) throw new Error("RegionAnchorX must be between 0 and 100.");
  9027. f = a
  9028. }
  9029. },
  9030. regionAnchorX: {
  9031. enumerable: !0,
  9032. get: function() {
  9033. return e
  9034. },
  9035. set: function(a) {
  9036. if (!d(a)) throw new Error("RegionAnchorY must be between 0 and 100.");
  9037. e = a
  9038. }
  9039. },
  9040. viewportAnchorY: {
  9041. enumerable: !0,
  9042. get: function() {
  9043. return h
  9044. },
  9045. set: function(a) {
  9046. if (!d(a)) throw new Error("ViewportAnchorY must be between 0 and 100.");
  9047. h = a
  9048. }
  9049. },
  9050. viewportAnchorX: {
  9051. enumerable: !0,
  9052. get: function() {
  9053. return g
  9054. },
  9055. set: function(a) {
  9056. if (!d(a)) throw new Error("ViewportAnchorX must be between 0 and 100.");
  9057. g = a
  9058. }
  9059. },
  9060. scroll: {
  9061. enumerable: !0,
  9062. get: function() {
  9063. return i
  9064. },
  9065. set: function(a) {
  9066. var b = c(a);
  9067. if (b === !1) throw new SyntaxError("An invalid or illegal string was specified.");
  9068. i = b
  9069. }
  9070. }
  9071. })
  9072. }
  9073. var f = {
  9074. "": !0,
  9075. up: !0
  9076. };
  9077. a.VTTRegion = a.VTTRegion || e, b.VTTRegion = e
  9078. }(this, this.vttjs || {})
  9079. }, {}
  9080. ]
  9081. }, {}, [93])(93)
  9082. });
  9083. ! function() {
  9084. ! function(a) {
  9085. var b = a && a.videojs;
  9086. if (b) {
  9087. b.CDN_VERSION = "5.18.4";
  9088. var c = "https:" === a.location.protocol ? "https://" : "http://";
  9089. b.options.flash.swf = c + "vjs.zencdn.net/swf/5.3.0/video-js.swf"
  9090. }
  9091. }(window),
  9092. function(a, b, c, d, e, f, g) {
  9093. b && b.HELP_IMPROVE_VIDEOJS !== !1 && (e.random() > .01 || (f = b.location, g = b.videojs || {}, a.src = "//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=UA-16505296-3&utmn=1&utmhn=" + d(f.hostname) + "&utmsr=" + b.screen.availWidth + "x" + b.screen.availHeight + "&utmul=" + (c.language || c.userLanguage || "").toLowerCase() + "&utmr=" + d(f.href) + "&utmp=" + d(f.hostname + f.pathname) + "&utmcc=__utma%3D1." + e.floor(1e10 * e.random()) + ".1.1.1.1%3B&utme=8(vjsv*cdnv)9(" + g.VERSION + "*" + g.CDN_VERSION + ")"))
  9094. }(new Image, window, navigator, encodeURIComponent, Math)
  9095. }();