| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531 |
- /**
- * @license
- * Video.js 5.18.4 <http://videojs.com/>
- * Copyright Brightcove, Inc. <https://www.brightcove.com/>
- * Available under Apache License Version 2.0
- * <https://github.com/videojs/video.js/blob/master/LICENSE>
- *
- * Includes vtt.js <https://github.com/mozilla/vtt.js>
- * Available under Apache License Version 2.0
- * <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
- */
- ! function(a) {
- if ("object" == typeof exports && "undefined" != typeof module) module.exports = a();
- else if ("function" == typeof define && define.amd) define([], a);
- else {
- var b;
- b = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, b.videojs = a()
- }
- }(function() {
- var a;
- return function b(a, c, d) {
- function e(g, h) {
- if (!c[g]) {
- if (!a[g]) {
- var i = "function" == typeof require && require;
- if (!h && i) return i(g, !0);
- if (f) return f(g, !0);
- var j = new Error("Cannot find module '" + g + "'");
- throw j.code = "MODULE_NOT_FOUND", j
- }
- var k = c[g] = {
- exports: {}
- };
- a[g][0].call(k.exports, function(b) {
- var c = a[g][1][b];
- return e(c ? c : b)
- }, k, k.exports, b, a, c, d)
- }
- return c[g].exports
- }
- for (var f = "function" == typeof require && require, g = 0; g < d.length; g++) e(d[g]);
- return e
- }({
- 1: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(2),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-big-play-button"
- }, b.prototype.handleClick = function(a) {
- this.player_.play();
- var b = this.player_.getChild("controlBar"),
- c = b && b.getChild("playToggle");
- if (!c) return void this.player_.focus();
- this.setTimeout(function() {
- c.focus()
- }, 1)
- }, b
- }(i["default"]);
- l.prototype.controlText_ = "Play Video", k["default"].registerComponent("BigPlayButton", l), c["default"] = l
- }, {
- 2: 2,
- 5: 5
- }
- ],
- 2: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(3),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(86),
- m = d(l),
- n = a(88),
- o = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "button",
- b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- b = (0, n.assign)({
- className: this.buildCSSClass()
- }, b), "button" !== a && (m["default"].warn("Creating a Button with an HTML element of " + a + " is deprecated; use ClickableComponent instead."), b = (0, n.assign)({
- tabIndex: 0
- }, b), c = (0, n.assign)({
- role: "button"
- }, c)), c = (0, n.assign)({
- type: "button",
- "aria-live": "polite"
- }, c);
- var d = k["default"].prototype.createEl.call(this, a, b, c);
- return this.createControlTextEl(d), d
- }, b.prototype.addChild = function(a) {
- var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- c = this.constructor.name;
- 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)
- }, b.prototype.enable = function() {
- a.prototype.enable.call(this), this.el_.removeAttribute("disabled")
- }, b.prototype.disable = function() {
- a.prototype.disable.call(this), this.el_.setAttribute("disabled", "disabled")
- }, b.prototype.handleKeyPress = function(b) {
- 32 !== b.which && 13 !== b.which && a.prototype.handleKeyPress.call(this, b)
- }, b
- }(i["default"]);
- k["default"].registerComponent("Button", o), c["default"] = o
- }, {
- 3: 3,
- 5: 5,
- 86: 86,
- 88: 88
- }
- ],
- 3: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(82),
- n = d(m),
- o = a(83),
- p = d(o),
- q = a(86),
- r = e(q),
- s = a(94),
- t = e(s),
- u = a(88),
- v = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.emitTapEvents(), e.enable(), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div",
- c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- c = (0, u.assign)({
- className: this.buildCSSClass(),
- tabIndex: 0
- }, 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)({
- role: "button",
- "aria-live": "polite"
- }, d), this.tabIndex_ = c.tabIndex;
- var e = a.prototype.createEl.call(this, b, c, d);
- return this.createControlTextEl(e), e
- }, b.prototype.createControlTextEl = function(a) {
- return this.controlTextEl_ = l.createEl("span", {
- className: "vjs-control-text"
- }), a && a.appendChild(this.controlTextEl_), this.controlText(this.controlText_, a), this.controlTextEl_
- }, b.prototype.controlText = function(a) {
- var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this.el();
- if (!a) return this.controlText_ || "Need Text";
- var c = this.localize(a);
- return this.controlText_ = a, this.controlTextEl_.innerHTML = c, this.nonIconControl || b.setAttribute("title", c), this
- }, b.prototype.buildCSSClass = function() {
- return "vjs-control vjs-button " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.enable = function() {
- 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
- }, b.prototype.disable = function() {
- 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
- }, b.prototype.handleClick = function(a) {}, b.prototype.handleFocus = function(a) {
- n.on(t["default"], "keydown", p.bind(this, this.handleKeyPress))
- }, b.prototype.handleKeyPress = function(b) {
- 32 === b.which || 13 === b.which ? (b.preventDefault(), this.handleClick(b)) : a.prototype.handleKeyPress && a.prototype.handleKeyPress.call(this, b)
- }, b.prototype.handleBlur = function(a) {
- n.off(t["default"], "keydown", p.bind(this, this.handleKeyPress))
- }, b
- }(j["default"]);
- j["default"].registerComponent("ClickableComponent", v), c["default"] = v
- }, {
- 5: 5,
- 81: 81,
- 82: 82,
- 83: 83,
- 86: 86,
- 88: 88,
- 94: 94
- }
- ],
- 4: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(2),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.controlText(d && d.controlText || g.localize("Close")), g
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-close-button " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleClick = function(a) {
- this.trigger({
- type: "close",
- bubbles: !1
- })
- }, b
- }(i["default"]);
- k["default"].registerComponent("CloseButton", l), c["default"] = l
- }, {
- 2: 2,
- 5: 5
- }
- ],
- 5: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- c.__esModule = !0;
- var g = a(95),
- h = e(g),
- i = a(81),
- j = d(i),
- k = a(83),
- l = d(k),
- m = a(85),
- n = d(m),
- o = a(82),
- p = d(o),
- q = a(86),
- r = e(q),
- s = a(91),
- t = e(s),
- u = a(87),
- v = e(u),
- w = function() {
- function a(b, c, d) {
- 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_) {
- var e = b && b.id && b.id() || "no_player";
- this.id_ = e + "_component_" + n.newGUID()
- }
- 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()
- }
- return a.prototype.dispose = function() {
- if (this.trigger({
- type: "dispose",
- bubbles: !1
- }), this.children_)
- for (var a = this.children_.length - 1; a >= 0; a--) this.children_[a].dispose && this.children_[a].dispose();
- 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
- }, a.prototype.player = function() {
- return this.player_
- }, a.prototype.options = function(a) {
- 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_
- }, a.prototype.el = function() {
- return this.el_
- }, a.prototype.createEl = function(a, b, c) {
- return j.createEl(a, b, c)
- }, a.prototype.localize = function(a) {
- var b = this.player_.language && this.player_.language(),
- c = this.player_.languages && this.player_.languages();
- if (!b || !c) return a;
- var d = c[b];
- if (d && d[a]) return d[a];
- var e = b.split("-")[0],
- f = c[e];
- return f && f[a] ? f[a] : a
- }, a.prototype.contentEl = function() {
- return this.contentEl_ || this.el_
- }, a.prototype.id = function() {
- return this.id_
- }, a.prototype.name = function() {
- return this.name_
- }, a.prototype.children = function() {
- return this.children_
- }, a.prototype.getChildById = function(a) {
- return this.childIndex_[a]
- }, a.prototype.getChild = function(a) {
- if (a) return a = (0, t["default"])(a), this.childNameIndex_[a]
- }, a.prototype.addChild = function(b) {
- var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.children_.length,
- e = void 0,
- f = void 0;
- if ("string" == typeof b) {
- 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 = {});
- var g = c.componentClass || f;
- c.name = f;
- var h = a.getComponent(g);
- if (!h) throw new Error("Component " + g + " does not exist");
- if ("function" != typeof h) return null;
- e = new h(this.player_ || this, c)
- } 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()) {
- var i = this.contentEl().children,
- j = i[d] || null;
- this.contentEl().insertBefore(e.el(), j)
- }
- return e
- }, a.prototype.removeChild = function(a) {
- if ("string" == typeof a && (a = this.getChild(a)), a && this.children_) {
- for (var b = !1, c = this.children_.length - 1; c >= 0; c--)
- if (this.children_[c] === a) {
- b = !0, this.children_.splice(c, 1);
- break
- }
- if (b) {
- this.childIndex_[a.id()] = null, this.childNameIndex_[a.name()] = null;
- var d = a.el();
- d && d.parentNode === this.contentEl() && this.contentEl().removeChild(a.el())
- }
- }
- }, a.prototype.initChildren = function() {
- var b = this,
- c = this.options_.children;
- if (c) {
- var d = this.options_,
- e = function(a) {
- var c = a.name,
- e = a.opts;
- if (void 0 !== d[c] && (e = d[c]), e !== !1) {
- e === !0 && (e = {}), e.playerOptions = b.options_.playerOptions;
- var f = b.addChild(c, e);
- f && (b[c] = f)
- }
- },
- f = void 0,
- g = a.getComponent("Tech");
- f = Array.isArray(c) ? c : Object.keys(c), f.concat(Object.keys(this.options_).filter(function(a) {
- return !f.some(function(b) {
- return "string" == typeof b ? a === b : a === b.name
- })
- })).map(function(a) {
- var d = void 0,
- e = void 0;
- return "string" == typeof a ? (d = a, e = c[d] || b.options_[d] || {}) : (d = a.name, e = a), {
- name: d,
- opts: e
- }
- }).filter(function(b) {
- var c = a.getComponent(b.opts.componentClass || (0, t["default"])(b.name));
- return c && !g.isTech(c)
- }).forEach(e)
- }
- }, a.prototype.buildCSSClass = function() {
- return ""
- }, a.prototype.on = function(a, b, c) {
- var d = this;
- if ("string" == typeof a || Array.isArray(a)) p.on(this.el_, a, l.bind(this, b));
- else {
- var e = a,
- f = b,
- g = l.bind(this, c),
- h = function() {
- return d.off(e, f, g)
- };
- h.guid = g.guid, this.on("dispose", h);
- var i = function() {
- return d.off("dispose", h)
- };
- 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))
- }
- return this
- }, a.prototype.off = function(a, b, c) {
- if (!a || "string" == typeof a || Array.isArray(a)) p.off(this.el_, a, b);
- else {
- var d = a,
- e = b,
- f = l.bind(this, c);
- this.off("dispose", f), a.nodeName ? (p.off(d, e, f), p.off(d, "dispose", f)) : (d.off(e, f), d.off("dispose", f))
- }
- return this
- }, a.prototype.one = function(a, b, c) {
- var d = this,
- e = arguments;
- if ("string" == typeof a || Array.isArray(a)) p.one(this.el_, a, l.bind(this, b));
- else {
- var f = a,
- g = b,
- h = l.bind(this, c),
- i = function j() {
- d.off(f, g, j), h.apply(null, e)
- };
- i.guid = h.guid, this.on(f, g, i)
- }
- return this
- }, a.prototype.trigger = function(a, b) {
- return p.trigger(this.el_, a, b), this
- }, a.prototype.ready = function(a) {
- var b = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
- return a && (this.isReady_ ? b ? a.call(this) : this.setTimeout(a, 1) : (this.readyQueue_ = this.readyQueue_ || [], this.readyQueue_.push(a))), this
- }, a.prototype.triggerReady = function() {
- this.isReady_ = !0, this.setTimeout(function() {
- var a = this.readyQueue_;
- this.readyQueue_ = [], a && a.length > 0 && a.forEach(function(a) {
- a.call(this)
- }, this), this.trigger("ready")
- }, 1)
- }, a.prototype.$ = function(a, b) {
- return j.$(a, b || this.contentEl())
- }, a.prototype.$$ = function(a, b) {
- return j.$$(a, b || this.contentEl())
- }, a.prototype.hasClass = function(a) {
- return j.hasElClass(this.el_, a)
- }, a.prototype.addClass = function(a) {
- return j.addElClass(this.el_, a), this
- }, a.prototype.removeClass = function(a) {
- return j.removeElClass(this.el_, a), this
- }, a.prototype.toggleClass = function(a, b) {
- return j.toggleElClass(this.el_, a, b), this
- }, a.prototype.show = function() {
- return this.removeClass("vjs-hidden"), this
- }, a.prototype.hide = function() {
- return this.addClass("vjs-hidden"), this
- }, a.prototype.lockShowing = function() {
- return this.addClass("vjs-lock-showing"), this
- }, a.prototype.unlockShowing = function() {
- return this.removeClass("vjs-lock-showing"), this
- }, a.prototype.getAttribute = function(a) {
- return j.getAttribute(this.el_, a)
- }, a.prototype.setAttribute = function(a, b) {
- return j.setAttribute(this.el_, a, b), this
- }, a.prototype.removeAttribute = function(a) {
- return j.removeAttribute(this.el_, a), this
- }, a.prototype.width = function(a, b) {
- return this.dimension("width", a, b)
- }, a.prototype.height = function(a, b) {
- return this.dimension("height", a, b)
- }, a.prototype.dimensions = function(a, b) {
- return this.width(a, !0).height(b)
- }, a.prototype.dimension = function(a, b, c) {
- 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;
- if (!this.el_) return 0;
- var d = this.el_.style[a],
- e = d.indexOf("px");
- return e !== -1 ? parseInt(d.slice(0, e), 10) : parseInt(this.el_["offset" + (0, t["default"])(a)], 10)
- }, a.prototype.currentDimension = function(a) {
- var b = 0;
- if ("width" !== a && "height" !== a) throw new Error("currentDimension only accepts width or height value");
- if ("function" == typeof h["default"].getComputedStyle) {
- var c = h["default"].getComputedStyle(this.el_);
- b = c.getPropertyValue(a) || c[a]
- }
- if (b = parseFloat(b), 0 === b) {
- var d = "offset" + (0, t["default"])(a);
- b = this.el_[d]
- }
- return b
- }, a.prototype.currentDimensions = function() {
- return {
- width: this.currentDimension("width"),
- height: this.currentDimension("height")
- }
- }, a.prototype.currentWidth = function() {
- return this.currentDimension("width")
- }, a.prototype.currentHeight = function() {
- return this.currentDimension("height")
- }, a.prototype.focus = function() {
- this.el_.focus()
- }, a.prototype.blur = function() {
- this.el_.blur()
- }, a.prototype.emitTapEvents = function() {
- var a = 0,
- b = null,
- c = void 0;
- this.on("touchstart", function(d) {
- 1 === d.touches.length && (b = {
- pageX: d.touches[0].pageX,
- pageY: d.touches[0].pageY
- }, a = (new Date).getTime(), c = !0)
- }), this.on("touchmove", function(a) {
- if (a.touches.length > 1) c = !1;
- else if (b) {
- var d = a.touches[0].pageX - b.pageX,
- e = a.touches[0].pageY - b.pageY,
- f = Math.sqrt(d * d + e * e);
- f > 10 && (c = !1)
- }
- });
- var d = function() {
- c = !1
- };
- this.on("touchleave", d), this.on("touchcancel", d), this.on("touchend", function(d) {
- if (b = null, c === !0) {
- (new Date).getTime() - a < 200 && (d.preventDefault(), this.trigger("tap"))
- }
- })
- }, a.prototype.enableTouchActivity = function() {
- if (this.player() && this.player().reportUserActivity) {
- var a = l.bind(this.player(), this.player().reportUserActivity),
- b = void 0;
- this.on("touchstart", function() {
- a(), this.clearInterval(b), b = this.setInterval(a, 250)
- });
- var c = function(c) {
- a(), this.clearInterval(b)
- };
- this.on("touchmove", a), this.on("touchend", c), this.on("touchcancel", c)
- }
- }, a.prototype.setTimeout = function(a, b) {
- a = l.bind(this, a);
- var c = h["default"].setTimeout(a, b),
- d = function() {
- this.clearTimeout(c)
- };
- return d.guid = "vjs-timeout-" + c, this.on("dispose", d), c
- }, a.prototype.clearTimeout = function(a) {
- h["default"].clearTimeout(a);
- var b = function() {};
- return b.guid = "vjs-timeout-" + a, this.off("dispose", b), a
- }, a.prototype.setInterval = function(a, b) {
- a = l.bind(this, a);
- var c = h["default"].setInterval(a, b),
- d = function() {
- this.clearInterval(c)
- };
- return d.guid = "vjs-interval-" + c, this.on("dispose", d), c
- }, a.prototype.clearInterval = function(a) {
- h["default"].clearInterval(a);
- var b = function() {};
- return b.guid = "vjs-interval-" + a, this.off("dispose", b), a
- }, a.registerComponent = function(b, c) {
- if (b) {
- if (b = (0, t["default"])(b), a.components_ || (a.components_ = {}), "Player" === b && a.components_[b]) {
- var d = a.components_[b];
- if (d.players && Object.keys(d.players).length > 0 && Object.keys(d.players).map(function(a) {
- return d.players[a]
- }).every(Boolean)) throw new Error("Can not register Player component after player has been created")
- }
- return a.components_[b] = c, c
- }
- }, a.getComponent = function(b) {
- 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
- }, a.extend = function(b) {
- b = b || {}, r["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");
- var c = b.init || b.init || this.prototype.init || this.prototype.init || function() {},
- d = function() {
- c.apply(this, arguments)
- };
- d.prototype = Object.create(this.prototype), d.prototype.constructor = d, d.extend = a.extend;
- for (var e in b) b.hasOwnProperty(e) && (d.prototype[e] = b[e]);
- return d
- }, a
- }();
- w.registerComponent("Component", w), c["default"] = w
- }, {
- 81: 81,
- 82: 82,
- 83: 83,
- 85: 85,
- 86: 86,
- 87: 87,
- 91: 91,
- 95: 95
- }
- ],
- 6: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(36),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(7),
- m = d(l),
- n = function(a) {
- function b(c) {
- var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- e(this, b), d.tracks = c.audioTracks && c.audioTracks();
- var g = f(this, a.call(this, c, d));
- return g.el_.setAttribute("aria-label", "Audio Menu"), g
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-audio-button " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.createItems = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
- b = this.player_.audioTracks && this.player_.audioTracks();
- if (!b) return a;
- for (var c = 0; c < b.length; c++) {
- var d = b[c];
- a.push(new m["default"](this.player_, {
- track: d,
- selectable: !0
- }))
- }
- return a
- }, b
- }(i["default"]);
- n.prototype.controlText_ = "Audio Track", k["default"].registerComponent("AudioTrackButton", n), c["default"] = n
- }, {
- 36: 36,
- 5: 5,
- 7: 7
- }
- ],
- 7: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(48),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = d.track,
- h = c.audioTracks();
- d.label = e.label || e.language || "Unknown", d.selected = e.enabled;
- var i = g(this, a.call(this, c, d));
- if (i.track = e, h) {
- var j = n.bind(i, i.handleTracksChange);
- h.addEventListener("change", j), i.on("dispose", function() {
- h.removeEventListener("change", j)
- })
- }
- return i
- }
- return h(b, a), b.prototype.handleClick = function(b) {
- var c = this.player_.audioTracks();
- if (a.prototype.handleClick.call(this, b), c)
- for (var d = 0; d < c.length; d++) {
- var e = c[d];
- e.enabled = e === this.track
- }
- }, b.prototype.handleTracksChange = function(a) {
- this.selected(this.track.enabled)
- }, b
- }(j["default"]);
- l["default"].registerComponent("AudioTrackMenuItem", o), c["default"] = o
- }, {
- 48: 48,
- 5: 5,
- 83: 83
- }
- ],
- 8: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h);
- 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);
- var j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-control-bar",
- dir: "ltr"
- }, {
- role: "group"
- })
- }, b
- }(i["default"]);
- j.prototype.options_ = {
- children: ["playToggle", "volumeMenuButton", "currentTimeDisplay", "timeDivider", "durationDisplay", "progressControl", "liveDisplay", "remainingTimeDisplay", "customControlSpacer", "playbackRateMenuButton", "chaptersButton", "descriptionsButton", "subtitlesButton", "captionsButton", "audioTrackButton", "fullscreenToggle"]
- }, i["default"].registerComponent("ControlBar", j), c["default"] = j
- }, {
- 10: 10,
- 11: 11,
- 12: 12,
- 13: 13,
- 18: 18,
- 21: 21,
- 24: 24,
- 25: 25,
- 27: 27,
- 29: 29,
- 32: 32,
- 33: 33,
- 34: 34,
- 35: 35,
- 38: 38,
- 40: 40,
- 5: 5,
- 6: 6,
- 9: 9
- }
- ],
- 9: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(2),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.on(c, "fullscreenchange", g.handleFullscreenChange), g
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-fullscreen-control " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleFullscreenChange = function(a) {
- this.player_.isFullscreen() ? this.controlText("Non-Fullscreen") : this.controlText("Fullscreen")
- }, b.prototype.handleClick = function(a) {
- this.player_.isFullscreen() ? this.player_.exitFullscreen() : this.player_.requestFullscreen()
- }, b
- }(i["default"]);
- l.prototype.controlText_ = "Fullscreen", k["default"].registerComponent("FullscreenToggle", l), c["default"] = l
- }, {
- 2: 2,
- 5: 5
- }
- ],
- 10: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.updateShowing(), e.on(e.player(), "durationchange", e.updateShowing), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, "div", {
- className: "vjs-live-control vjs-control"
- });
- return this.contentEl_ = l.createEl("div", {
- className: "vjs-live-display",
- innerHTML: '<span class="vjs-control-text">' + this.localize("Stream Type") + "</span>" + this.localize("LIVE")
- }, {
- "aria-live": "off"
- }), b.appendChild(this.contentEl_), b
- }, b.prototype.updateShowing = function(a) {
- this.player().duration() === 1 / 0 ? this.show() : this.hide()
- }, b
- }(j["default"]);
- j["default"].registerComponent("LiveDisplay", m), c["default"] = m
- }, {
- 5: 5,
- 81: 81
- }
- ],
- 11: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(2),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(81),
- n = d(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.on(c, "volumechange", e.update), c.tech_ && c.tech_.featuresVolumeControl === !1 && e.addClass("vjs-hidden"), e.on(c, "loadstart", function() {
- this.update(), c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
- }), e
- }
- return h(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-mute-control " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleClick = function(a) {
- this.player_.muted(!this.player_.muted())
- }, b.prototype.update = function(a) {
- var b = this.player_.volume(),
- c = 3;
- 0 === b || this.player_.muted() ? c = 0 : b < .33 ? c = 1 : b < .67 && (c = 2);
- var d = this.player_.muted() ? "Unmute" : "Mute";
- this.controlText() !== d && this.controlText(d);
- for (var e = 0; e < 4; e++) n.removeElClass(this.el_, "vjs-vol-" + e);
- n.addElClass(this.el_, "vjs-vol-" + c)
- }, b
- }(j["default"]);
- o.prototype.controlText_ = "Mute", l["default"].registerComponent("MuteToggle", o), c["default"] = o
- }, {
- 2: 2,
- 5: 5,
- 81: 81
- }
- ],
- 12: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(2),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.on(c, "play", g.handlePlay), g.on(c, "pause", g.handlePause), g
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-play-control " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleClick = function(a) {
- this.player_.paused() ? this.player_.play() : this.player_.pause()
- }, b.prototype.handlePlay = function(a) {
- this.removeClass("vjs-paused"), this.addClass("vjs-playing"), this.controlText("Pause")
- }, b.prototype.handlePause = function(a) {
- this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.controlText("Play")
- }, b
- }(i["default"]);
- l.prototype.controlText_ = "Play", k["default"].registerComponent("PlayToggle", l), c["default"] = l
- }, {
- 2: 2,
- 5: 5
- }
- ],
- 13: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(47),
- j = e(i),
- k = a(49),
- l = e(k),
- m = a(14),
- n = e(m),
- o = a(5),
- p = e(o),
- q = a(81),
- r = d(q),
- s = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.updateVisibility(), e.updateLabel(), e.on(c, "loadstart", e.updateVisibility), e.on(c, "ratechange", e.updateLabel), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this);
- return this.labelEl_ = r.createEl("div", {
- className: "vjs-playback-rate-value",
- innerHTML: 1
- }), b.appendChild(this.labelEl_), b
- }, b.prototype.buildCSSClass = function() {
- return "vjs-playback-rate " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.createMenu = function() {
- var a = new l["default"](this.player()),
- b = this.playbackRates();
- if (b)
- for (var c = b.length - 1; c >= 0; c--) a.addChild(new n["default"](this.player(), {
- rate: b[c] + "x"
- }));
- return a
- }, b.prototype.updateARIAAttributes = function() {
- this.el().setAttribute("aria-valuenow", this.player().playbackRate())
- }, b.prototype.handleClick = function(a) {
- for (var b = this.player().playbackRate(), c = this.playbackRates(), d = c[0], e = 0; e < c.length; e++)
- if (c[e] > b) {
- d = c[e];
- break
- }
- this.player().playbackRate(d)
- }, b.prototype.playbackRates = function() {
- return this.options_.playbackRates || this.options_.playerOptions && this.options_.playerOptions.playbackRates
- }, b.prototype.playbackRateSupported = function() {
- return this.player().tech_ && this.player().tech_.featuresPlaybackRate && this.playbackRates() && this.playbackRates().length > 0
- }, b.prototype.updateVisibility = function(a) {
- this.playbackRateSupported() ? this.removeClass("vjs-hidden") : this.addClass("vjs-hidden")
- }, b.prototype.updateLabel = function(a) {
- this.playbackRateSupported() && (this.labelEl_.innerHTML = this.player().playbackRate() + "x")
- }, b
- }(j["default"]);
- s.prototype.controlText_ = "Playback Rate", p["default"].registerComponent("PlaybackRateMenuButton", s), c["default"] = s
- }, {
- 14: 14,
- 47: 47,
- 49: 49,
- 5: 5,
- 81: 81
- }
- ],
- 14: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(48),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b);
- var g = d.rate,
- h = parseFloat(g, 10);
- d.label = g, d.selected = 1 === h, d.selectable = !0;
- var i = f(this, a.call(this, c, d));
- return i.label = g, i.rate = h, i.on(c, "ratechange", i.update), i
- }
- return g(b, a), b.prototype.handleClick = function(b) {
- a.prototype.handleClick.call(this), this.player().playbackRate(this.rate)
- }, b.prototype.update = function(a) {
- this.selected(this.player().playbackRate() === this.rate)
- }, b
- }(i["default"]);
- l.prototype.contentElType = "button", k["default"].registerComponent("PlaybackRateMenuItem", l), c["default"] = l
- }, {
- 48: 48,
- 5: 5
- }
- ],
- 15: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.partEls_ = [], e.on(c, "progress", e.update), e
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-load-progress",
- innerHTML: '<span class="vjs-control-text"><span>' + this.localize("Loaded") + "</span>: 0%</span>"
- })
- }, b.prototype.update = function(a) {
- var b = this.player_.buffered(),
- c = this.player_.duration(),
- d = this.player_.bufferedEnd(),
- e = this.partEls_,
- f = function(a, b) {
- var c = a / b || 0;
- return 100 * (c >= 1 ? 1 : c) + "%"
- };
- this.el_.style.width = f(d, c);
- for (var g = 0; g < b.length; g++) {
- var h = b.start(g),
- i = b.end(g),
- j = e[g];
- j || (j = this.el_.appendChild(l.createEl()), e[g] = j), j.style.left = f(h, d), j.style.width = f(i - h, d)
- }
- for (var k = e.length; k > b.length; k--) this.el_.removeChild(e[k - 1]);
- e.length = b.length
- }, b
- }(j["default"]);
- j["default"].registerComponent("LoadProgressBar", m), c["default"] = m
- }, {
- 5: 5,
- 81: 81
- }
- ],
- 16: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(83),
- n = d(m),
- o = a(84),
- p = e(o),
- q = a(80),
- r = e(q),
- s = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- 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", {
- className: "vjs-time-tooltip"
- }), e.el().appendChild(e.tooltip), e.addClass("vjs-keep-tooltips-inside")), e.update(0, 0), c.on("ready", function() {
- e.on(c.controlBar.progressControl.el(), "mousemove", n.throttle(n.bind(e, e.handleMouseMove), 25))
- }), e
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-mouse-display"
- })
- }, b.prototype.handleMouseMove = function(a) {
- var b = this.player_.duration(),
- c = this.calculateDistance(a) * b,
- d = a.pageX - l.findElPosition(this.el().parentNode).left;
- this.update(c, d)
- }, b.prototype.update = function(a, b) {
- var c = (0, p["default"])(a, this.player_.duration());
- if (this.el().style.left = b + "px", this.el().setAttribute("data-current-time", c), this.keepTooltipsInside) {
- var d = this.clampPosition_(b),
- e = b - d + 1,
- f = parseFloat((0, r["default"])(this.tooltip, "width")),
- g = f / 2;
- this.tooltip.innerHTML = c, this.tooltip.style.right = "-" + (g - e) + "px"
- }
- }, b.prototype.calculateDistance = function(a) {
- return l.getPointerPosition(this.el().parentNode, a).x
- }, b.prototype.clampPosition_ = function(a) {
- if (!this.keepTooltipsInside) return a;
- var b = parseFloat((0, r["default"])(this.player().el(), "width")),
- c = parseFloat((0, r["default"])(this.tooltip, "width")),
- d = c / 2,
- e = a;
- return a < d ? e = Math.ceil(d) : a > b - d && (e = Math.floor(b - d)), e
- }, b
- }(j["default"]);
- j["default"].registerComponent("MouseTimeDisplay", s), c["default"] = s
- }, {
- 5: 5,
- 80: 80,
- 81: 81,
- 83: 83,
- 84: 84
- }
- ],
- 17: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(83),
- l = d(k),
- m = a(84),
- n = e(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- 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
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-play-progress vjs-slider-bar",
- innerHTML: '<span class="vjs-control-text"><span>' + this.localize("Progress") + "</span>: 0%</span>"
- })
- }, b.prototype.updateDataAttr = function(a) {
- var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();
- this.el_.setAttribute("data-current-time", (0, n["default"])(b, this.player_.duration()))
- }, b
- }(j["default"]);
- j["default"].registerComponent("PlayProgressBar", o), c["default"] = o
- }, {
- 5: 5,
- 83: 83,
- 84: 84
- }
- ],
- 18: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h);
- a(19), a(16);
- var j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-progress-control vjs-control"
- })
- }, b
- }(i["default"]);
- j.prototype.options_ = {
- children: ["seekBar"]
- }, i["default"].registerComponent("ProgressControl", j), c["default"] = j
- }, {
- 16: 16,
- 19: 19,
- 5: 5
- }
- ],
- 19: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(57),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = a(84),
- p = e(o),
- q = a(80),
- r = e(q);
- a(15), a(17), a(20);
- var s = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- 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
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-progress-holder"
- }, {
- "aria-label": "progress bar"
- })
- }, b.prototype.updateProgress = function(a) {
- if (this.updateAriaAttributes(this.el_), this.keepTooltipsInside) {
- this.updateAriaAttributes(this.tooltipProgressBar.el_), this.tooltipProgressBar.el_.style.width = this.bar.el_.style.width;
- var b = parseFloat((0, r["default"])(this.player().el(), "width")),
- c = parseFloat((0, r["default"])(this.tooltipProgressBar.tooltip, "width")),
- d = this.tooltipProgressBar.el().style;
- d.maxWidth = Math.floor(b - c / 2) + "px", d.minWidth = Math.ceil(c / 2) + "px", d.right = "-" + c / 2 + "px"
- }
- }, b.prototype.updateAriaAttributes = function(a) {
- var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime();
- a.setAttribute("aria-valuenow", (100 * this.getPercent()).toFixed(2)), a.setAttribute("aria-valuetext", (0, p["default"])(b, this.player_.duration()))
- }, b.prototype.getPercent = function() {
- var a = this.player_.currentTime() / this.player_.duration();
- return a >= 1 ? 1 : a
- }, b.prototype.handleMouseDown = function(b) {
- this.player_.scrubbing(!0), this.videoWasPlaying = !this.player_.paused(), this.player_.pause(), a.prototype.handleMouseDown.call(this, b)
- }, b.prototype.handleMouseMove = function(a) {
- var b = this.calculateDistance(a) * this.player_.duration();
- b === this.player_.duration() && (b -= .1), this.player_.currentTime(b)
- }, b.prototype.handleMouseUp = function(b) {
- a.prototype.handleMouseUp.call(this, b), this.player_.scrubbing(!1), this.videoWasPlaying && this.player_.play()
- }, b.prototype.stepForward = function() {
- this.player_.currentTime(this.player_.currentTime() + 5)
- }, b.prototype.stepBack = function() {
- this.player_.currentTime(this.player_.currentTime() - 5)
- }, b
- }(j["default"]);
- s.prototype.options_ = {
- children: ["loadProgressBar", "mouseTimeDisplay", "playProgressBar"],
- barName: "playProgressBar"
- }, s.prototype.playerEvent = "timeupdate", l["default"].registerComponent("SeekBar", s), c["default"] = s
- }, {
- 15: 15,
- 17: 17,
- 20: 20,
- 5: 5,
- 57: 57,
- 80: 80,
- 83: 83,
- 84: 84
- }
- ],
- 20: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(83),
- l = d(k),
- m = a(84),
- n = e(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.updateDataAttr(), e.on(c, "timeupdate", e.updateDataAttr), c.ready(l.bind(e, e.updateDataAttr)), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, "div", {
- className: "vjs-tooltip-progress-bar vjs-slider-bar",
- innerHTML: '<div class="vjs-time-tooltip"></div>\n <span class="vjs-control-text"><span>' + this.localize("Progress") + "</span>: 0%</span>"
- });
- return this.tooltip = b.querySelector(".vjs-time-tooltip"), b
- }, b.prototype.updateDataAttr = function(a) {
- var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(),
- c = (0, n["default"])(b, this.player_.duration());
- this.el_.setAttribute("data-current-time", c), this.tooltip.innerHTML = c
- }, b
- }(j["default"]);
- j["default"].registerComponent("TooltipProgressBar", o), c["default"] = o
- }, {
- 5: 5,
- 83: 83,
- 84: 84
- }
- ],
- 21: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(22),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-custom-control-spacer " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, {
- className: this.buildCSSClass()
- });
- return b.innerHTML = " ", b
- }, b
- }(i["default"]);
- k["default"].registerComponent("CustomControlSpacer", l), c["default"] = l
- }, {
- 22: 22,
- 5: 5
- }
- ],
- 22: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-spacer " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: this.buildCSSClass()
- })
- }, b
- }(i["default"]);
- i["default"].registerComponent("Spacer", j), c["default"] = j
- }, {
- 5: 5
- }
- ],
- 23: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(31),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b), d.track = {
- player: c,
- kind: d.kind,
- label: d.kind + " settings",
- selectable: !1,
- "default": !1,
- mode: "disabled"
- }, d.selectable = !1;
- var g = f(this, a.call(this, c, d));
- return g.addClass("vjs-texttrack-settings"), g.controlText(", opens " + d.kind + " settings dialog"), g
- }
- return g(b, a), b.prototype.handleClick = function(a) {
- this.player().getChild("textTrackSettings").show(), this.player().getChild("textTrackSettings").el_.focus()
- }, b
- }(i["default"]);
- k["default"].registerComponent("CaptionSettingsMenuItem", l), c["default"] = l
- }, {
- 31: 31,
- 5: 5
- }
- ],
- 24: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(30),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(23),
- m = d(l),
- n = function(a) {
- function b(c, d, g) {
- e(this, b);
- var h = f(this, a.call(this, c, d, g));
- return h.el_.setAttribute("aria-label", "Captions Menu"), h
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-captions-button " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.createItems = function() {
- var b = [];
- return this.player().tech_ && this.player().tech_.featuresNativeTextTracks || (b.push(new m["default"](this.player_, {
- kind: this.kind_
- })), this.hideThreshold_ += 1), a.prototype.createItems.call(this, b)
- }, b
- }(i["default"]);
- n.prototype.kind_ = "captions", n.prototype.controlText_ = "Captions", k["default"].registerComponent("CaptionsButton", n), c["default"] = n
- }, {
- 23: 23,
- 30: 30,
- 5: 5
- }
- ],
- 25: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(30),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(26),
- m = d(l),
- n = a(91),
- o = d(n),
- p = function(a) {
- function b(c, d, g) {
- e(this, b);
- var h = f(this, a.call(this, c, d, g));
- return h.el_.setAttribute("aria-label", "Chapters Menu"), h
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-chapters-button " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.update = function(b) {
- this.track_ && (!b || "addtrack" !== b.type && "removetrack" !== b.type) || this.setTrack(this.findChaptersTrack()), a.prototype.update.call(this)
- }, b.prototype.setTrack = function(a) {
- if (this.track_ !== a) {
- if (this.updateHandler_ || (this.updateHandler_ = this.update.bind(this)), this.track_) {
- var b = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);
- b && b.removeEventListener("load", this.updateHandler_), this.track_ = null
- }
- if (this.track_ = a, this.track_) {
- this.track_.mode = "hidden";
- var c = this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);
- c && c.addEventListener("load", this.updateHandler_)
- }
- }
- }, b.prototype.findChaptersTrack = function() {
- for (var a = this.player_.textTracks() || [], b = a.length - 1; b >= 0; b--) {
- var c = a[b];
- if (c.kind === this.kind_) return c
- }
- }, b.prototype.getMenuCaption = function() {
- return this.track_ && this.track_.label ? this.track_.label : this.localize((0, o["default"])(this.kind_))
- }, b.prototype.createMenu = function() {
- return this.options_.title = this.getMenuCaption(), a.prototype.createMenu.call(this)
- }, b.prototype.createItems = function() {
- var a = [];
- if (!this.track_) return a;
- var b = this.track_.cues;
- if (!b) return a;
- for (var c = 0, d = b.length; c < d; c++) {
- var e = b[c],
- f = new m["default"](this.player_, {
- track: this.track_,
- cue: e
- });
- a.push(f)
- }
- return a
- }, b
- }(i["default"]);
- p.prototype.kind_ = "chapters", p.prototype.controlText_ = "Chapters", k["default"].registerComponent("ChaptersButton", p), c["default"] = p
- }, {
- 26: 26,
- 30: 30,
- 5: 5,
- 91: 91
- }
- ],
- 26: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(48),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = d.track,
- h = d.cue,
- i = c.currentTime();
- d.selectable = !0, d.label = h.text, d.selected = h.startTime <= i && i < h.endTime;
- var j = g(this, a.call(this, c, d));
- return j.track = e, j.cue = h, e.addEventListener("cuechange", n.bind(j, j.update)), j
- }
- return h(b, a), b.prototype.handleClick = function(b) {
- a.prototype.handleClick.call(this), this.player_.currentTime(this.cue.startTime), this.update(this.cue.startTime)
- }, b.prototype.update = function(a) {
- var b = this.cue,
- c = this.player_.currentTime();
- this.selected(b.startTime <= c && c < b.endTime)
- }, b
- }(j["default"]);
- l["default"].registerComponent("ChaptersTrackMenuItem", o), c["default"] = o
- }, {
- 48: 48,
- 5: 5,
- 83: 83
- }
- ],
- 27: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(30),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = function(a) {
- function b(c, d, e) {
- f(this, b);
- var h = g(this, a.call(this, c, d, e));
- h.el_.setAttribute("aria-label", "Descriptions Menu");
- var i = c.textTracks();
- if (i) {
- var j = n.bind(h, h.handleTracksChange);
- i.addEventListener("change", j), h.on("dispose", function() {
- i.removeEventListener("change", j)
- })
- }
- return h
- }
- return h(b, a), b.prototype.handleTracksChange = function(a) {
- for (var b = this.player().textTracks(), c = !1, d = 0, e = b.length; d < e; d++) {
- var f = b[d];
- if (f.kind !== this.kind_ && "showing" === f.mode) {
- c = !0;
- break
- }
- }
- c ? this.disable() : this.enable()
- }, b.prototype.buildCSSClass = function() {
- return "vjs-descriptions-button " + a.prototype.buildCSSClass.call(this)
- }, b
- }(j["default"]);
- o.prototype.kind_ = "descriptions", o.prototype.controlText_ = "Descriptions", l["default"].registerComponent("DescriptionsButton", o), c["default"] = o
- }, {
- 30: 30,
- 5: 5,
- 83: 83
- }
- ],
- 28: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(31),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d) {
- e(this, b), d.track = {
- player: c,
- kind: d.kind,
- label: d.kind + " off",
- "default": !1,
- mode: "disabled"
- }, d.selectable = !0;
- var g = f(this, a.call(this, c, d));
- return g.selected(!0), g
- }
- return g(b, a), b.prototype.handleTracksChange = function(a) {
- for (var b = this.player().textTracks(), c = !0, d = 0, e = b.length; d < e; d++) {
- var f = b[d];
- if (f.kind === this.track.kind && "showing" === f.mode) {
- c = !1;
- break
- }
- }
- this.selected(c)
- }, b
- }(i["default"]);
- k["default"].registerComponent("OffTextTrackMenuItem", l), c["default"] = l
- }, {
- 31: 31,
- 5: 5
- }
- ],
- 29: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(30),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c, d, g) {
- e(this, b);
- var h = f(this, a.call(this, c, d, g));
- return h.el_.setAttribute("aria-label", "Subtitles Menu"), h
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-subtitles-button " + a.prototype.buildCSSClass.call(this)
- }, b
- }(i["default"]);
- l.prototype.kind_ = "subtitles", l.prototype.controlText_ = "Subtitles", k["default"].registerComponent("SubtitlesButton", l), c["default"] = l
- }, {
- 30: 30,
- 5: 5
- }
- ],
- 30: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(36),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(31),
- m = d(l),
- n = a(28),
- o = d(n),
- p = function(a) {
- function b(c) {
- var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- return e(this, b), d.tracks = c.textTracks(), f(this, a.call(this, c, d))
- }
- return g(b, a), b.prototype.createItems = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
- a.push(new o["default"](this.player_, {
- kind: this.kind_
- })), this.hideThreshold_ += 1;
- var b = this.player_.textTracks();
- if (!b) return a;
- for (var c = 0; c < b.length; c++) {
- var d = b[c];
- d.kind === this.kind_ && a.push(new m["default"](this.player_, {
- track: d,
- selectable: !0
- }))
- }
- return a
- }, b
- }(i["default"]);
- k["default"].registerComponent("TextTrackButton", p), c["default"] = p
- }, {
- 28: 28,
- 31: 31,
- 36: 36,
- 5: 5
- }
- ],
- 31: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
- return typeof a
- } : function(a) {
- return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
- },
- j = a(48),
- k = e(j),
- l = a(5),
- m = e(l),
- n = a(83),
- o = d(n),
- p = a(95),
- q = e(p),
- r = a(94),
- s = e(r),
- t = function(a) {
- function b(c, d) {
- f(this, b);
- var e = d.track,
- h = c.textTracks();
- d.label = e.label || e.language || "Unknown", d.selected = e["default"] || "showing" === e.mode;
- var j = g(this, a.call(this, c, d));
- if (j.track = e, h) {
- var k = o.bind(j, j.handleTracksChange);
- h.addEventListener("change", k), j.on("dispose", function() {
- h.removeEventListener("change", k)
- })
- }
- if (h && void 0 === h.onchange) {
- var l = void 0;
- j.on(["tap", "click"], function() {
- if ("object" !== i(q["default"].Event)) try {
- l = new q["default"].Event("change")
- } catch (a) {}
- l || (l = s["default"].createEvent("Event"), l.initEvent("change", !0, !0)), h.dispatchEvent(l)
- })
- }
- return j
- }
- return h(b, a), b.prototype.handleClick = function(b) {
- var c = this.track.kind,
- d = this.player_.textTracks();
- if (a.prototype.handleClick.call(this, b), d)
- for (var e = 0; e < d.length; e++) {
- var f = d[e];
- f.kind === c && (f === this.track ? f.mode = "showing" : f.mode = "disabled")
- }
- }, b.prototype.handleTracksChange = function(a) {
- this.selected("showing" === this.track.mode)
- }, b
- }(k["default"]);
- m["default"].registerComponent("TextTrackMenuItem", t), c["default"] = t
- }, {
- 48: 48,
- 5: 5,
- 83: 83,
- 94: 94,
- 95: 95
- }
- ],
- 32: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(84),
- n = e(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.on(c, "timeupdate", e.updateContent), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, "div", {
- className: "vjs-current-time vjs-time-control vjs-control"
- });
- return this.contentEl_ = l.createEl("div", {
- className: "vjs-current-time-display",
- innerHTML: '<span class="vjs-control-text">Current Time </span>0:00'
- }, {
- "aria-live": "off"
- }), b.appendChild(this.contentEl_), b
- }, b.prototype.updateContent = function(a) {
- var b = this.player_.scrubbing() ? this.player_.getCache().currentTime : this.player_.currentTime(),
- c = this.localize("Current Time"),
- d = (0, n["default"])(b, this.player_.duration());
- d !== this.formattedTime_ && (this.formattedTime_ = d, this.contentEl_.innerHTML = '<span class="vjs-control-text">' + c + "</span> " + d)
- }, b
- }(j["default"]);
- j["default"].registerComponent("CurrentTimeDisplay", o), c["default"] = o
- }, {
- 5: 5,
- 81: 81,
- 84: 84
- }
- ],
- 33: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(84),
- n = e(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.on(c, "durationchange", e.updateContent), e.on(c, "timeupdate", e.updateContent), e.on(c, "loadedmetadata", e.updateContent), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, "div", {
- className: "vjs-duration vjs-time-control vjs-control"
- });
- return this.contentEl_ = l.createEl("div", {
- className: "vjs-duration-display",
- innerHTML: '<span class="vjs-control-text">' + this.localize("Duration Time") + "</span> 0:00"
- }, {
- "aria-live": "off"
- }), b.appendChild(this.contentEl_), b
- }, b.prototype.updateContent = function(a) {
- var b = this.player_.duration();
- if (b && this.duration_ !== b) {
- this.duration_ = b;
- var c = this.localize("Duration Time"),
- d = (0, n["default"])(b);
- this.contentEl_.innerHTML = '<span class="vjs-control-text">' + c + "</span> " + d
- }
- }, b
- }(j["default"]);
- j["default"].registerComponent("DurationDisplay", o), c["default"] = o
- }, {
- 5: 5,
- 81: 81,
- 84: 84
- }
- ],
- 34: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(84),
- n = e(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.on(c, "timeupdate", e.updateContent), e.on(c, "durationchange", e.updateContent), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var b = a.prototype.createEl.call(this, "div", {
- className: "vjs-remaining-time vjs-time-control vjs-control"
- });
- return this.contentEl_ = l.createEl("div", {
- className: "vjs-remaining-time-display",
- innerHTML: '<span class="vjs-control-text">' + this.localize("Remaining Time") + "</span> -0:00"
- }, {
- "aria-live": "off"
- }), b.appendChild(this.contentEl_), b
- }, b.prototype.updateContent = function(a) {
- if (this.player_.duration()) {
- var b = this.localize("Remaining Time"),
- c = (0, n["default"])(this.player_.remainingTime());
- c !== this.formattedTime_ && (this.formattedTime_ = c, this.contentEl_.innerHTML = '<span class="vjs-control-text">' + b + "</span> -" + c)
- }
- }, b
- }(j["default"]);
- j["default"].registerComponent("RemainingTimeDisplay", o), c["default"] = o
- }, {
- 5: 5,
- 81: 81,
- 84: 84
- }
- ],
- 35: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-time-control vjs-time-divider",
- innerHTML: "<div><span>/</span></div>"
- })
- }, b
- }(i["default"]);
- i["default"].registerComponent("TimeDivider", j), c["default"] = j
- }, {
- 5: 5
- }
- ],
- 36: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(47),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = d.tracks,
- h = g(this, a.call(this, c, d));
- if (h.items.length <= 1 && h.hide(), !e) return g(h);
- var i = n.bind(h, h.update);
- return e.addEventListener("removetrack", i), e.addEventListener("addtrack", i), h.player_.on("dispose", function() {
- e.removeEventListener("removetrack", i), e.removeEventListener("addtrack", i)
- }), h
- }
- return h(b, a), b
- }(j["default"]);
- l["default"].registerComponent("TrackButton", o), c["default"] = o
- }, {
- 47: 47,
- 5: 5,
- 83: 83
- }
- ],
- 37: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(57),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m);
- a(39);
- var o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.on(c, "volumechange", e.updateARIAAttributes), c.ready(n.bind(e, e.updateARIAAttributes)), e
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-volume-bar vjs-slider-bar"
- }, {
- "aria-label": "volume level"
- })
- }, b.prototype.handleMouseMove = function(a) {
- this.checkMuted(), this.player_.volume(this.calculateDistance(a))
- }, b.prototype.checkMuted = function() {
- this.player_.muted() && this.player_.muted(!1)
- }, b.prototype.getPercent = function() {
- return this.player_.muted() ? 0 : this.player_.volume()
- }, b.prototype.stepForward = function() {
- this.checkMuted(), this.player_.volume(this.player_.volume() + .1)
- }, b.prototype.stepBack = function() {
- this.checkMuted(), this.player_.volume(this.player_.volume() - .1)
- }, b.prototype.updateARIAAttributes = function(a) {
- var b = (100 * this.player_.volume()).toFixed(2);
- this.el_.setAttribute("aria-valuenow", b), this.el_.setAttribute("aria-valuetext", b + "%")
- }, b
- }(j["default"]);
- o.prototype.options_ = {
- children: ["volumeLevel"],
- barName: "volumeLevel"
- }, o.prototype.playerEvent = "volumechange", l["default"].registerComponent("VolumeBar", o), c["default"] = o
- }, {
- 39: 39,
- 5: 5,
- 57: 57,
- 83: 83
- }
- ],
- 38: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h);
- a(37);
- var j = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return c.tech_ && c.tech_.featuresVolumeControl === !1 && g.addClass("vjs-hidden"), g.on(c, "loadstart", function() {
- c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
- }), g
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-volume-control vjs-control"
- })
- }, b
- }(i["default"]);
- j.prototype.options_ = {
- children: ["volumeBar"]
- }, i["default"].registerComponent("VolumeControl", j), c["default"] = j
- }, {
- 37: 37,
- 5: 5
- }
- ],
- 39: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-volume-level",
- innerHTML: '<span class="vjs-control-text"></span>'
- })
- }, b
- }(i["default"]);
- i["default"].registerComponent("VolumeLevel", j), c["default"] = j
- }, {
- 5: 5
- }
- ],
- 40: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(83),
- j = e(i),
- k = a(5),
- l = d(k),
- m = a(54),
- n = d(m),
- o = a(53),
- p = d(o),
- q = a(11),
- r = d(q),
- s = a(37),
- t = d(s),
- u = function(a) {
- function b(c) {
- function d() {
- c.tech_ && c.tech_.featuresVolumeControl === !1 ? this.addClass("vjs-hidden") : this.removeClass("vjs-hidden")
- }
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- 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;
- var h = g(this, a.call(this, c, e));
- 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() {
- this.addClass("vjs-slider-active")
- }), h.on(h.volumeBar, ["sliderinactive", "blur"], function() {
- this.removeClass("vjs-slider-active")
- }), h.on(h.volumeBar, ["focus"], function() {
- this.addClass("vjs-lock-showing")
- }), h.on(h.volumeBar, ["blur"], function() {
- this.removeClass("vjs-lock-showing")
- }), h
- }
- return h(b, a), b.prototype.buildCSSClass = function() {
- var b = "";
- 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
- }, b.prototype.createPopup = function() {
- var a = new n["default"](this.player_, {
- contentElType: "div"
- }),
- b = new t["default"](this.player_, this.options_.volumeBar);
- return a.addChild(b), this.menuContent = a, this.volumeBar = b, this.attachVolumeBarEvents(), a
- }, b.prototype.handleClick = function(b) {
- r["default"].prototype.handleClick.call(this), a.prototype.handleClick.call(this)
- }, b.prototype.attachVolumeBarEvents = function() {
- this.menuContent.on(["mousedown", "touchdown"], j.bind(this, this.handleMouseDown))
- }, b.prototype.handleMouseDown = function(a) {
- this.on(["mousemove", "touchmove"], j.bind(this.volumeBar, this.volumeBar.handleMouseMove)), this.on(this.el_.ownerDocument, ["mouseup", "touchend"], this.handleMouseUp)
- }, b.prototype.handleMouseUp = function(a) {
- this.off(["mousemove", "touchmove"], j.bind(this.volumeBar, this.volumeBar.handleMouseMove))
- }, b
- }(p["default"]);
- u.prototype.volumeUpdate = r["default"].prototype.update, u.prototype.controlText_ = "Mute", l["default"].registerComponent("VolumeMenuButton", u), c["default"] = u
- }, {
- 11: 11,
- 37: 37,
- 5: 5,
- 53: 53,
- 54: 54,
- 83: 83
- }
- ],
- 41: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = a(50),
- k = d(j),
- l = a(87),
- m = d(l),
- n = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.on(c, "error", g.open), g
- }
- return g(b, a), b.prototype.buildCSSClass = function() {
- return "vjs-error-display " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.content = function() {
- var a = this.player().error();
- return a ? this.localize(a.message) : ""
- }, b
- }(k["default"]);
- n.prototype.options_ = (0, m["default"])(k["default"].prototype.options_, {
- fillAlways: !0,
- temporary: !1,
- uncloseable: !0
- }), i["default"].registerComponent("ErrorDisplay", n), c["default"] = n
- }, {
- 5: 5,
- 50: 50,
- 87: 87
- }
- ],
- 42: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- c.__esModule = !0;
- var e = a(82),
- f = d(e),
- g = function() {};
- g.prototype.allowedEvents_ = {}, g.prototype.on = function(a, b) {
- var c = this.addEventListener;
- this.addEventListener = function() {}, f.on(this, a, b), this.addEventListener = c
- }, g.prototype.addEventListener = g.prototype.on, g.prototype.off = function(a, b) {
- f.off(this, a, b)
- }, g.prototype.removeEventListener = g.prototype.off, g.prototype.one = function(a, b) {
- var c = this.addEventListener;
- this.addEventListener = function() {}, f.one(this, a, b), this.addEventListener = c
- }, g.prototype.trigger = function(a) {
- var b = a.type || a;
- "string" == typeof a && (a = {
- type: b
- }), a = f.fixEvent(a), this.allowedEvents_[b] && this["on" + b] && this["on" + b](a), f.trigger(this, a)
- }, g.prototype.dispatchEvent = g.prototype.trigger, c["default"] = g
- }, {
- 82: 82
- }
- ],
- 43: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0;
- var e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
- return typeof a
- } : function(a) {
- return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
- },
- f = a(86),
- g = d(f),
- h = a(88),
- i = function(a, b) {
- 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)));
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (a.super_ = b)
- },
- j = function(a) {
- var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- c = function() {
- a.apply(this, arguments)
- },
- d = {};
- (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);
- for (var e in d) d.hasOwnProperty(e) && (c.prototype[e] = d[e]);
- return c
- };
- c["default"] = j
- }, {
- 86: 86,
- 88: 88
- }
- ],
- 44: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0;
- for (var e = a(94), f = d(e), g = {}, h = [
- ["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"],
- ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"],
- ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"],
- ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"],
- ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]
- ], i = h[0], j = void 0, k = 0; k < h.length; k++)
- if (h[k][1] in f["default"]) {
- j = h[k];
- break
- }
- if (j)
- for (var l = 0; l < j.length; l++) g[i[l]] = j[l];
- c["default"] = g
- }, {
- 94: 94
- }
- ],
- 45: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = function(a) {
- function b() {
- return e(this, b), f(this, a.apply(this, arguments))
- }
- return g(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-loading-spinner",
- dir: "ltr"
- })
- }, b
- }(i["default"]);
- i["default"].registerComponent("LoadingSpinner", j), c["default"] = j
- }, {
- 5: 5
- }
- ],
- 46: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a instanceof d) return a;
- "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] || "")
- }
- c.__esModule = !0;
- var e = a(88);
- 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 = {
- 1: "You aborted the media playback",
- 2: "A network error caused the media download to fail part-way.",
- 3: "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",
- 4: "The media could not be loaded, either because the server or network failed or because the format is not supported.",
- 5: "The media is encrypted and we do not have the keys to decrypt it."
- };
- for (var f = 0; f < d.errorTypes.length; f++) d[d.errorTypes[f]] = f, d.prototype[d.errorTypes[f]] = f;
- c["default"] = d
- }, {
- 88: 88
- }
- ],
- 47: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(3),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(49),
- n = e(m),
- o = a(81),
- p = d(o),
- q = a(83),
- r = d(q),
- s = a(91),
- t = e(s),
- u = function(a) {
- function b(c) {
- var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.update(), e.enabled_ = !0, e.el_.setAttribute("aria-haspopup", "true"), e.el_.setAttribute("role", "menuitem"), e.on("keydown", e.handleSubmenuKeyPress), e
- }
- return h(b, a), b.prototype.update = function() {
- var a = this.createMenu();
- 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()
- }, b.prototype.createMenu = function() {
- var a = new n["default"](this.player_);
- if (this.hideThreshold_ = 0, this.options_.title) {
- var b = p.createEl("li", {
- className: "vjs-menu-title",
- innerHTML: (0, t["default"])(this.options_.title),
- tabIndex: -1
- });
- this.hideThreshold_ += 1, a.children_.unshift(b), p.insertElFirst(b, a.contentEl())
- }
- if (this.items = this.createItems(), this.items)
- for (var c = 0; c < this.items.length; c++) a.addItem(this.items[c]);
- return a
- }, b.prototype.createItems = function() {}, b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: this.buildCSSClass()
- })
- }, b.prototype.buildCSSClass = function() {
- var b = "vjs-menu-button";
- return b += this.options_.inline === !0 ? "-inline" : "-popup", "vjs-menu-button " + b + " " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleClick = function(a) {
- this.one(this.menu.contentEl(), "mouseleave", r.bind(this, function(a) {
- this.unpressButton(), this.el_.blur()
- })), this.buttonPressed_ ? this.unpressButton() : this.pressButton()
- }, b.prototype.handleKeyPress = function(b) {
- 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)
- }, b.prototype.handleSubmenuKeyPress = function(a) {
- 27 !== a.which && 9 !== a.which || (this.buttonPressed_ && this.unpressButton(), 9 !== a.which && a.preventDefault())
- }, b.prototype.pressButton = function() {
- this.enabled_ && (this.buttonPressed_ = !0, this.menu.lockShowing(), this.el_.setAttribute("aria-expanded", "true"), this.menu.focus())
- }, b.prototype.unpressButton = function() {
- this.enabled_ && (this.buttonPressed_ = !1, this.menu.unlockShowing(), this.el_.setAttribute("aria-expanded", "false"), this.el_.focus())
- }, b.prototype.disable = function() {
- return this.buttonPressed_ = !1, this.menu.unlockShowing(), this.el_.setAttribute("aria-expanded", "false"), this.enabled_ = !1, a.prototype.disable.call(this)
- }, b.prototype.enable = function() {
- return this.enabled_ = !0, a.prototype.enable.call(this)
- }, b
- }(j["default"]);
- l["default"].registerComponent("MenuButton", u), c["default"] = u
- }, {
- 3: 3,
- 49: 49,
- 5: 5,
- 81: 81,
- 83: 83,
- 91: 91
- }
- ],
- 48: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(3),
- i = d(h),
- j = a(5),
- k = d(j),
- l = a(88),
- m = function(a) {
- function b(c, d) {
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.selectable = d.selectable, g.selected(d.selected), g.selectable ? g.el_.setAttribute("role", "menuitemcheckbox") : g.el_.setAttribute("role", "menuitem"), g
- }
- return g(b, a), b.prototype.createEl = function(b, c, d) {
- return this.nonIconControl = !0, a.prototype.createEl.call(this, "li", (0, l.assign)({
- className: "vjs-menu-item",
- innerHTML: this.localize(this.options_.label),
- tabIndex: -1
- }, c), d)
- }, b.prototype.handleClick = function(a) {
- this.selected(!0)
- }, b.prototype.selected = function(a) {
- 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(" ")))
- }, b
- }(i["default"]);
- k["default"].registerComponent("MenuItem", m), c["default"] = m
- }, {
- 3: 3,
- 5: 5,
- 88: 88
- }
- ],
- 49: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(83),
- n = d(m),
- o = a(82),
- p = d(o),
- q = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.focusedChild_ = -1, e.on("keydown", e.handleKeyPress), e
- }
- return h(b, a), b.prototype.addItem = function(a) {
- this.addChild(a), a.on("click", n.bind(this, function(a) {
- this.unlockShowing()
- }))
- }, b.prototype.createEl = function() {
- var b = this.options_.contentElType || "ul";
- this.contentEl_ = l.createEl(b, {
- className: "vjs-menu-content"
- }), this.contentEl_.setAttribute("role", "menu");
- var c = a.prototype.createEl.call(this, "div", {
- append: this.contentEl_,
- className: "vjs-menu"
- });
- return c.setAttribute("role", "presentation"), c.appendChild(this.contentEl_), p.on(c, "click", function(a) {
- a.preventDefault(), a.stopImmediatePropagation()
- }), c
- }, b.prototype.handleKeyPress = function(a) {
- 37 === a.which || 40 === a.which ? (a.preventDefault(), this.stepForward()) : 38 !== a.which && 39 !== a.which || (a.preventDefault(), this.stepBack())
- }, b.prototype.stepForward = function() {
- var a = 0;
- void 0 !== this.focusedChild_ && (a = this.focusedChild_ + 1), this.focus(a)
- }, b.prototype.stepBack = function() {
- var a = 0;
- void 0 !== this.focusedChild_ && (a = this.focusedChild_ - 1), this.focus(a)
- }, b.prototype.focus = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0,
- b = this.children().slice();
- 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())
- }, b
- }(j["default"]);
- j["default"].registerComponent("Menu", q), c["default"] = q
- }, {
- 5: 5,
- 81: 81,
- 82: 82,
- 83: 83
- }
- ],
- 50: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(81),
- j = e(i),
- k = a(83),
- l = e(k),
- m = a(5),
- n = d(m),
- o = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.opened_ = e.hasBeenOpened_ = e.hasBeenFilled_ = !1, e.closeable(!e.options_.uncloseable), e.content(e.options_.content), e.contentEl_ = j.createEl("div", {
- className: "vjs-modal-dialog-content"
- }, {
- role: "document"
- }), e.descEl_ = j.createEl("p", {
- className: "vjs-modal-dialog-description vjs-offscreen",
- id: e.el().getAttribute("aria-describedby")
- }), j.textContent(e.descEl_, e.description()), e.el_.appendChild(e.descEl_), e.el_.appendChild(e.contentEl_), e
- }
- return h(b, a), b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: this.buildCSSClass(),
- tabIndex: -1
- }, {
- "aria-describedby": this.id() + "_description",
- "aria-hidden": "true",
- "aria-label": this.label(),
- role: "dialog"
- })
- }, b.prototype.buildCSSClass = function() {
- return "vjs-modal-dialog vjs-hidden " + a.prototype.buildCSSClass.call(this)
- }, b.prototype.handleKeyPress = function(a) {
- 27 === a.which && this.closeable() && this.close()
- }, b.prototype.label = function() {
- return this.options_.label || this.localize("Modal Window")
- }, b.prototype.description = function() {
- var a = this.options_.description || this.localize("This is a modal window.");
- return this.closeable() && (a += " " + this.localize("This modal can be closed by pressing the Escape key or activating the close button.")), a
- }, b.prototype.open = function() {
- if (!this.opened_) {
- var a = this.player();
- 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
- }
- return this
- }, b.prototype.opened = function(a) {
- return "boolean" == typeof a && this[a ? "open" : "close"](), this.opened_
- }, b.prototype.close = function() {
- if (this.opened_) {
- var a = this.player();
- 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()
- }
- return this
- }, b.prototype.closeable = function c(a) {
- if ("boolean" == typeof a) {
- var c = this.closeable_ = !!a,
- b = this.getChild("closeButton");
- if (c && !b) {
- var d = this.contentEl_;
- this.contentEl_ = this.el_, b = this.addChild("closeButton", {
- controlText: "Close Modal Dialog"
- }), this.contentEl_ = d, this.on(b, "close", this.close)
- }!c && b && (this.off(b, "close", this.close), this.removeChild(b), b.dispose())
- }
- return this.closeable_
- }, b.prototype.fill = function() {
- return this.fillWith(this.content())
- }, b.prototype.fillWith = function(a) {
- var b = this.contentEl(),
- c = b.parentNode,
- d = b.nextSibling;
- return this.trigger("beforemodalfill"), this.hasBeenFilled_ = !0,
- c.removeChild(b), this.empty(), j.insertContent(b, a), this.trigger("modalfill"), d ? c.insertBefore(b, d) : c.appendChild(b), this
- }, b.prototype.empty = function() {
- return this.trigger("beforemodalempty"), j.emptyEl(this.contentEl()), this.trigger("modalempty"), this
- }, b.prototype.content = function(a) {
- return void 0 !== a && (this.content_ = a), this.content_
- }, b
- }(n["default"]);
- o.prototype.options_ = {
- temporary: !0
- }, n["default"].registerComponent("ModalDialog", o), c["default"] = o
- }, {
- 5: 5,
- 81: 81,
- 83: 83
- }
- ],
- 51: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(94),
- l = e(k),
- m = a(95),
- n = e(m),
- o = a(82),
- p = d(o),
- q = a(81),
- r = d(q),
- s = a(83),
- t = d(s),
- u = a(85),
- v = d(u),
- w = a(78),
- x = d(w),
- y = a(86),
- z = e(y),
- A = a(91),
- B = e(A),
- C = a(90),
- D = a(79),
- E = a(89),
- F = d(E),
- G = a(44),
- H = e(G),
- I = a(46),
- J = e(I),
- K = a(97),
- L = e(K),
- M = a(88),
- N = a(87),
- O = e(N),
- P = a(69),
- Q = e(P),
- R = a(50),
- S = e(R),
- T = a(62),
- U = e(T),
- V = a(63),
- W = e(V),
- X = a(76),
- Y = e(X);
- a(61), a(59), a(55), a(68), a(45), a(1), a(4), a(8), a(41), a(71), a(60);
- var Z = ["progress", "abort", "suspend", "emptied", "stalled", "loadedmetadata", "loadeddata", "timeupdate", "ratechange", "volumechange", "texttrackchange"],
- $ = function(a) {
- function b(c, d, e) {
- 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)
- if ("function" == typeof c.closest) {
- var h = c.closest("[lang]");
- h && (d.language = h.getAttribute("lang"))
- } else
- for (var i = c; i && 1 === i.nodeType;) {
- if (r.getElAttributes(i).hasOwnProperty("lang")) {
- d.language = i.getAttribute("lang");
- break
- }
- i = i.parentNode
- }
- var j = g(this, a.call(this, null, d, e));
- 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?");
- if (j.tag = c, j.tagAttributes = c && r.getElAttributes(c), j.language(j.options_.language), d.languages) {
- var k = {};
- Object.getOwnPropertyNames(d.languages).forEach(function(a) {
- k[a.toLowerCase()] = d.languages[a]
- }), j.languages_ = k
- } else j.languages_ = b.prototype.options_.languages;
- j.cache_ = {}, j.poster_ = d.poster || "", j.controls_ = !!d.controls, c.controls = !1, j.scrubbing_ = !1, j.el_ = j.createEl();
- var l = (0, O["default"])(j.options_);
- if (d.plugins) {
- var m = d.plugins;
- Object.getOwnPropertyNames(m).forEach(function(a) {
- "function" == typeof this[a] ? this[a](m[a]) : z["default"].error("Unable to find plugin:", a)
- }, j)
- }
- 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
- }
- return h(b, a), b.prototype.dispose = function() {
- 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)
- }, b.prototype.createEl = function() {
- var b = this.tag,
- c = void 0,
- d = this.playerElIngest_ = b.parentNode && b.parentNode.hasAttribute && b.parentNode.hasAttribute("data-vjs-player");
- c = this.el_ = d ? b.parentNode : a.prototype.createEl.call(this, "div"), b.setAttribute("tabindex", "-1"), b.removeAttribute("width"), b.removeAttribute("height");
- var e = r.getElAttributes(b);
- if (Object.getOwnPropertyNames(e).forEach(function(a) {
- "class" === a ? c.className += " " + e[a] : c.setAttribute(a, e[a])
- }), 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) {
- this.styleEl_ = F.createStyleElement("vjs-styles-dimensions");
- var f = r.$(".vjs-styles-defaults"),
- g = r.$("head");
- g.insertBefore(this.styleEl_, f ? f.nextSibling : g.firstChild)
- }
- this.width(this.options_.width), this.height(this.options_.height), this.fluid(this.options_.fluid), this.aspectRatio(this.options_.aspectRatio);
- for (var h = b.getElementsByTagName("a"), i = 0; i < h.length; i++) {
- var j = h.item(i);
- r.addElClass(j, "vjs-hidden"), j.setAttribute("hidden", "hidden")
- }
- 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
- }, b.prototype.width = function(a) {
- return this.dimension("width", a)
- }, b.prototype.height = function(a) {
- return this.dimension("height", a)
- }, b.prototype.dimension = function(a, b) {
- var c = a + "_";
- if (void 0 === b) return this[c] || 0;
- if ("" === b) this[c] = void 0;
- else {
- var d = parseFloat(b);
- if (isNaN(d)) return z["default"].error('Improper value "' + b + '" supplied for for ' + a), this;
- this[c] = d
- }
- return this.updateStyleEl_(), this
- }, b.prototype.fluid = function(a) {
- if (void 0 === a) return !!this.fluid_;
- this.fluid_ = !!a, a ? this.addClass("vjs-fluid") : this.removeClass("vjs-fluid"), this.updateStyleEl_()
- }, b.prototype.aspectRatio = function(a) {
- if (void 0 === a) return this.aspectRatio_;
- if (!/^\d+\:\d+$/.test(a)) throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");
- this.aspectRatio_ = a, this.fluid(!0), this.updateStyleEl_()
- }, b.prototype.updateStyleEl_ = function() {
- if (n["default"].VIDEOJS_NO_DYNAMIC_STYLE === !0) {
- var a = "number" == typeof this.width_ ? this.width_ : this.options_.width,
- b = "number" == typeof this.height_ ? this.height_ : this.options_.height,
- c = this.tech_ && this.tech_.el();
- return void(c && (a >= 0 && (c.width = a), b >= 0 && (c.height = b)))
- }
- var d = void 0,
- e = void 0,
- f = void 0,
- g = void 0;
- f = void 0 !== this.aspectRatio_ && "auto" !== this.aspectRatio_ ? this.aspectRatio_ : this.videoWidth() > 0 ? this.videoWidth() + ":" + this.videoHeight() : "16:9";
- var h = f.split(":"),
- i = h[1] / h[0];
- 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 ")
- }, b.prototype.loadTech_ = function(a, b) {
- var c = this;
- 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;
- var d = (0, M.assign)({
- source: b,
- nativeControlsForTouch: this.options_.nativeControlsForTouch,
- playerId: this.id(),
- techId: this.id() + "_" + a + "_api",
- videoTracks: this.videoTracks_,
- textTracks: this.textTracks_,
- audioTracks: this.audioTracks_,
- autoplay: this.options_.autoplay,
- preload: this.options_.preload,
- loop: this.options_.loop,
- muted: this.options_.muted,
- poster: this.poster(),
- language: this.language(),
- playerElIngest: this.playerElIngest_ || !1,
- "vtt.js": this.options_["vtt.js"]
- }, this.options_[a.toLowerCase()]);
- 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);
- var e = U["default"].getTech(a);
- 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) {
- c.on(c.tech_, a, c["handleTech" + (0, B["default"])(a) + "_"])
- }), 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)
- }, b.prototype.unloadTech_ = function() {
- 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
- }, b.prototype.tech = function(a) {
- if (a && a.IWillNotUseThisInPlugins) return this.tech_;
- 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 ";
- throw n["default"].alert(b), new Error(b)
- }, b.prototype.addTechControlsListeners_ = function() {
- 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_)
- }, b.prototype.removeTechControlsListeners_ = function() {
- 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_)
- }, b.prototype.handleTechReady_ = function() {
- 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()) {
- try {
- delete this.tag.poster
- } catch (a) {
- (0, z["default"])("deleting tag.poster throws in some browsers", a)
- }
- this.play()
- }
- }, b.prototype.handleTechLoadStart_ = function() {
- 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"))
- }, b.prototype.hasStarted = function(a) {
- 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_
- }, b.prototype.handleTechPlay_ = function() {
- this.removeClass("vjs-ended"), this.removeClass("vjs-paused"), this.addClass("vjs-playing"), this.hasStarted(!0), this.trigger("play")
- }, b.prototype.handleTechWaiting_ = function() {
- var a = this;
- this.addClass("vjs-waiting"), this.trigger("waiting"), this.one("timeupdate", function() {
- return a.removeClass("vjs-waiting")
- })
- }, b.prototype.handleTechCanPlay_ = function() {
- this.removeClass("vjs-waiting"), this.trigger("canplay")
- }, b.prototype.handleTechCanPlayThrough_ = function() {
- this.removeClass("vjs-waiting"), this.trigger("canplaythrough")
- }, b.prototype.handleTechPlaying_ = function() {
- this.removeClass("vjs-waiting"), this.trigger("playing")
- }, b.prototype.handleTechSeeking_ = function() {
- this.addClass("vjs-seeking"), this.trigger("seeking")
- }, b.prototype.handleTechSeeked_ = function() {
- this.removeClass("vjs-seeking"), this.trigger("seeked")
- }, b.prototype.handleTechFirstPlay_ = function() {
- 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")
- }, b.prototype.handleTechPause_ = function() {
- this.removeClass("vjs-playing"), this.addClass("vjs-paused"), this.trigger("pause")
- }, b.prototype.handleTechEnded_ = function() {
- this.addClass("vjs-ended"), this.options_.loop ? (this.currentTime(0), this.play()) : this.paused() || this.pause(), this.trigger("ended")
- }, b.prototype.handleTechDurationChange_ = function() {
- this.duration(this.techGet_("duration"))
- }, b.prototype.handleTechClick_ = function(a) {
- 0 === a.button && this.controls() && (this.paused() ? this.play() : this.pause())
- }, b.prototype.handleTechTap_ = function() {
- this.userActive(!this.userActive())
- }, b.prototype.handleTechTouchStart_ = function() {
- this.userWasActive = this.userActive()
- }, b.prototype.handleTechTouchMove_ = function() {
- this.userWasActive && this.reportUserActivity()
- }, b.prototype.handleTechTouchEnd_ = function(a) {
- a.preventDefault()
- }, b.prototype.handleFullscreenChange_ = function() {
- this.isFullscreen() ? this.addClass("vjs-fullscreen") : this.removeClass("vjs-fullscreen")
- }, b.prototype.handleStageClick_ = function() {
- this.reportUserActivity()
- }, b.prototype.handleTechFullscreenChange_ = function(a, b) {
- b && this.isFullscreen(b.isFullscreen), this.trigger("fullscreenchange")
- }, b.prototype.handleTechError_ = function() {
- var a = this.tech_.error();
- this.error(a)
- }, b.prototype.handleTechTextData_ = function() {
- var a = null;
- arguments.length > 1 && (a = arguments[1]), this.trigger("textdata", a)
- }, b.prototype.getCache = function() {
- return this.cache_
- }, b.prototype.techCall_ = function(a, b) {
- if (this.tech_ && !this.tech_.isReady_) this.tech_.ready(function() {
- this[a](b)
- }, !0);
- else try {
- this.tech_ && this.tech_[a](b)
- } catch (c) {
- throw (0, z["default"])(c), c
- }
- }, b.prototype.techGet_ = function(a) {
- if (this.tech_ && this.tech_.isReady_) try {
- return this.tech_[a]()
- } catch (b) {
- 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
- }
- }, b.prototype.play = function() {
- return this.src() || this.currentSrc() ? this.techCall_("play") : this.tech_.one("loadstart", function() {
- this.play()
- }), this
- }, b.prototype.pause = function() {
- return this.techCall_("pause"), this
- }, b.prototype.paused = function() {
- return this.techGet_("paused") !== !1
- }, b.prototype.scrubbing = function(a) {
- return void 0 !== a ? (this.scrubbing_ = !!a, a ? this.addClass("vjs-scrubbing") : this.removeClass("vjs-scrubbing"), this) : this.scrubbing_
- }, b.prototype.currentTime = function(a) {
- return void 0 !== a ? (this.techCall_("setCurrentTime", a), this) : (this.cache_.currentTime = this.techGet_("currentTime") || 0, this.cache_.currentTime)
- }, b.prototype.duration = function(a) {
- 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)
- }, b.prototype.remainingTime = function() {
- return this.duration() - this.currentTime()
- }, b.prototype.buffered = function c() {
- var c = this.techGet_("buffered");
- return c && c.length || (c = (0, C.createTimeRange)(0, 0)), c
- }, b.prototype.bufferedPercent = function() {
- return (0, D.bufferedPercent)(this.buffered(), this.duration())
- }, b.prototype.bufferedEnd = function() {
- var a = this.buffered(),
- b = this.duration(),
- c = a.end(a.length - 1);
- return c > b && (c = b), c
- }, b.prototype.volume = function(a) {
- var b = void 0;
- 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)
- }, b.prototype.muted = function(a) {
- return void 0 !== a ? (this.techCall_("setMuted", a), this) : this.techGet_("muted") || !1
- }, b.prototype.supportsFullScreen = function() {
- return this.techGet_("supportsFullScreen") || !1
- }, b.prototype.isFullscreen = function(a) {
- return void 0 !== a ? (this.isFullscreen_ = !!a, this) : !!this.isFullscreen_
- }, b.prototype.requestFullscreen = function() {
- var a = H["default"];
- return this.isFullscreen(!0), a.requestFullscreen ? (p.on(l["default"], a.fullscreenchange, t.bind(this, function b(c) {
- this.isFullscreen(l["default"][a.fullscreenElement]), this.isFullscreen() === !1 && p.off(l["default"], a.fullscreenchange, b), this.trigger("fullscreenchange")
- })), this.el_[a.requestFullscreen]()) : this.tech_.supportsFullScreen() ? this.techCall_("enterFullScreen") : (this.enterFullWindow(), this.trigger("fullscreenchange")), this
- }, b.prototype.exitFullscreen = function() {
- var a = H["default"];
- return this.isFullscreen(!1), a.requestFullscreen ? l["default"][a.exitFullscreen]() : this.tech_.supportsFullScreen() ? this.techCall_("exitFullScreen") : (this.exitFullWindow(), this.trigger("fullscreenchange")), this
- }, b.prototype.enterFullWindow = function() {
- 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")
- }, b.prototype.fullWindowOnEscKey = function(a) {
- 27 === a.keyCode && (this.isFullscreen() === !0 ? this.exitFullscreen() : this.exitFullWindow())
- }, b.prototype.exitFullWindow = function() {
- 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")
- }, b.prototype.canPlayType = function(a) {
- for (var b = void 0, c = 0, d = this.options_.techOrder; c < d.length; c++) {
- var e = (0, B["default"])(d[c]),
- f = U["default"].getTech(e);
- if (f || (f = j["default"].getComponent(e)), f) {
- if (f.isSupported() && (b = f.canPlayType(a))) return b
- } else z["default"].error('The "' + e + '" tech is undefined. Skipped browser support check for that tech.')
- }
- return ""
- }, b.prototype.selectSource = function(a) {
- var b = this,
- c = this.options_.techOrder.map(B["default"]).map(function(a) {
- return [a, U["default"].getTech(a) || j["default"].getComponent(a)]
- }).filter(function(a) {
- var b = a[0],
- c = a[1];
- return c ? c.isSupported() : (z["default"].error('The "' + b + '" tech is undefined. Skipped browser support check for that tech.'), !1)
- }),
- d = function(a, b, c) {
- var d = void 0;
- return a.some(function(a) {
- return b.some(function(b) {
- if (d = c(a, b)) return !0
- })
- }), d
- },
- e = void 0,
- f = function(a) {
- return function(b, c) {
- return a(c, b)
- }
- },
- g = function(a, c) {
- var d = a[0];
- if (a[1].canPlaySource(c, b.options_[d.toLowerCase()])) return {
- source: c,
- tech: d
- }
- };
- return e = this.options_.sourceOrder ? d(a, c, f(g)) : d(c, a, g), e || !1
- }, b.prototype.src = function(a) {
- if (void 0 === a) return this.techGet_("src");
- var b = U["default"].getTech(this.techName_);
- return b || (b = j["default"].getComponent(this.techName_)), Array.isArray(a) ? this.sourceList_(a) : "string" == typeof a ? this.src({
- src: a
- }) : 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() {
- b.prototype.hasOwnProperty("setSource") ? this.techCall_("setSource", a) : this.techCall_("src", a.src), "auto" === this.options_.preload && this.load(), this.options_.autoplay && this.play()
- }, !0))), this
- }, b.prototype.sourceList_ = function(a) {
- var b = this.selectSource(a);
- b ? (b.tech === this.techName_ ? this.src(b.source) : this.loadTech_(b.tech, b.source), this.cache_.sources = a) : (this.setTimeout(function() {
- this.error({
- code: 4,
- message: this.localize(this.options_.notSupportedMessage)
- })
- }, 0), this.triggerReady())
- }, b.prototype.load = function() {
- return this.techCall_("load"), this
- }, b.prototype.reset = function() {
- return this.loadTech_((0, B["default"])(this.options_.techOrder[0]), null), this.techCall_("reset"), this
- }, b.prototype.currentSources = function() {
- var a = this.currentSource(),
- b = [];
- return 0 !== Object.keys(a).length && b.push(a), this.cache_.sources || b
- }, b.prototype.currentSource = function() {
- var a = {},
- b = this.currentSrc();
- return b && (a.src = b), this.cache_.source || a
- }, b.prototype.currentSrc = function() {
- return this.techGet_("currentSrc") || this.cache_.src || ""
- }, b.prototype.currentType = function() {
- return this.currentType_ || ""
- }, b.prototype.preload = function(a) {
- return void 0 !== a ? (this.techCall_("setPreload", a), this.options_.preload = a, this) : this.techGet_("preload")
- }, b.prototype.autoplay = function(a) {
- return void 0 !== a ? (this.techCall_("setAutoplay", a), this.options_.autoplay = a, this) : this.techGet_("autoplay", a)
- }, b.prototype.loop = function(a) {
- return void 0 !== a ? (this.techCall_("setLoop", a), this.options_.loop = a, this) : this.techGet_("loop")
- }, b.prototype.poster = function(a) {
- return void 0 === a ? this.poster_ : (a || (a = ""), this.poster_ = a, this.techCall_("setPoster", a), this.trigger("posterchange"), this)
- }, b.prototype.handleTechPosterChange_ = function() {
- !this.poster_ && this.tech_ && this.tech_.poster && (this.poster_ = this.tech_.poster() || "", this.trigger("posterchange"))
- }, b.prototype.controls = function(a) {
- 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_
- }, b.prototype.usingNativeControls = function(a) {
- 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_
- }, b.prototype.error = function(a) {
- 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)
- }, b.prototype.reportUserActivity = function(a) {
- this.userActivity_ = !0
- }, b.prototype.userActive = function(a) {
- 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) {
- a.stopPropagation(), a.preventDefault()
- }), this.removeClass("vjs-user-active"), this.addClass("vjs-user-inactive"), this.trigger("userinactive"))), this) : this.userActive_
- }, b.prototype.listenForUserActivity_ = function() {
- var a = void 0,
- b = void 0,
- c = void 0,
- d = t.bind(this, this.reportUserActivity),
- e = function(a) {
- a.screenX === b && a.screenY === c || (b = a.screenX, c = a.screenY, d())
- },
- f = function() {
- d(), this.clearInterval(a), a = this.setInterval(d, 250)
- },
- g = function(b) {
- d(), this.clearInterval(a)
- };
- this.on("mousedown", f), this.on("mousemove", e), this.on("mouseup", g), this.on("keydown", d), this.on("keyup", d);
- var h = void 0;
- this.setInterval(function() {
- if (this.userActivity_) {
- this.userActivity_ = !1, this.userActive(!0), this.clearTimeout(h);
- var a = this.options_.inactivityTimeout;
- a > 0 && (h = this.setTimeout(function() {
- this.userActivity_ || this.userActive(!1)
- }, a))
- }
- }, 250)
- }, b.prototype.playbackRate = function(a) {
- return void 0 !== a ? (this.techCall_("setPlaybackRate", a), this) : this.tech_ && this.tech_.featuresPlaybackRate ? this.techGet_("playbackRate") : 1
- }, b.prototype.isAudio = function(a) {
- return void 0 !== a ? (this.isAudio_ = !!a, this) : !!this.isAudio_
- }, b.prototype.videoTracks = function() {
- return this.tech_ ? this.tech_.videoTracks() : (this.videoTracks_ = this.videoTracks_ || new Y["default"], this.videoTracks_)
- }, b.prototype.audioTracks = function() {
- return this.tech_ ? this.tech_.audioTracks() : (this.audioTracks_ = this.audioTracks_ || new W["default"], this.audioTracks_)
- }, b.prototype.textTracks = function() {
- if (this.tech_) return this.tech_.textTracks()
- }, b.prototype.remoteTextTracks = function() {
- if (this.tech_) return this.tech_.remoteTextTracks()
- }, b.prototype.remoteTextTrackEls = function() {
- if (this.tech_) return this.tech_.remoteTextTrackEls()
- }, b.prototype.addTextTrack = function(a, b, c) {
- if (this.tech_) return this.tech_.addTextTrack(a, b, c)
- }, b.prototype.addRemoteTextTrack = function(a, b) {
- if (this.tech_) return this.tech_.addRemoteTextTrack(a, b)
- }, b.prototype.removeRemoteTextTrack = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
- b = a.track,
- c = void 0 === b ? arguments[0] : b;
- if (this.tech_) return this.tech_.removeRemoteTextTrack(c)
- }, b.prototype.videoWidth = function() {
- return this.tech_ && this.tech_.videoWidth && this.tech_.videoWidth() || 0
- }, b.prototype.videoHeight = function() {
- return this.tech_ && this.tech_.videoHeight && this.tech_.videoHeight() || 0
- }, b.prototype.language = function(a) {
- return void 0 === a ? this.language_ : (this.language_ = String(a).toLowerCase(), this)
- }, b.prototype.languages = function() {
- return (0, O["default"])(b.prototype.options_.languages, this.languages_)
- }, b.prototype.toJSON = function() {
- var a = (0, O["default"])(this.options_),
- b = a.tracks;
- a.tracks = [];
- for (var c = 0; c < b.length; c++) {
- var d = b[c];
- d = (0, O["default"])(d), d.player = void 0, a.tracks[c] = d
- }
- return a
- }, b.prototype.createModal = function(a, b) {
- var c = this;
- b = b || {}, b.content = a || "";
- var d = new S["default"](this, b);
- return this.addChild(d), d.on("dispose", function() {
- c.removeChild(d)
- }), d.open()
- }, b.getTagSettings = function(a) {
- var b = {
- sources: [],
- tracks: []
- },
- c = r.getElAttributes(a),
- d = c["data-setup"];
- if (r.hasElClass(a, "vjs-fluid") && (c.fluid = !0), null !== d) {
- var e = (0, L["default"])(d || "{}"),
- f = e[0],
- g = e[1];
- f && z["default"].error(f), (0, M.assign)(c, g)
- }
- if ((0, M.assign)(b, c), a.hasChildNodes())
- for (var h = a.childNodes, i = 0, j = h.length; i < j; i++) {
- var k = h[i],
- l = k.nodeName.toLowerCase();
- "source" === l ? b.sources.push(r.getElAttributes(k)) : "track" === l && b.tracks.push(r.getElAttributes(k))
- }
- return b
- }, b.prototype.flexNotSupported_ = function() {
- var a = l["default"].createElement("i");
- return !("flexBasis" in a.style || "webkitFlexBasis" in a.style || "mozFlexBasis" in a.style || "msFlexBasis" in a.style || "msFlexOrder" in a.style)
- }, b
- }(j["default"]);
- $.players = {};
- var _ = n["default"].navigator;
- $.prototype.options_ = {
- techOrder: ["html5", "flash"],
- html5: {},
- flash: {},
- defaultVolume: 0,
- inactivityTimeout: 2e3,
- playbackRates: [],
- children: ["mediaLoader", "posterImage", "textTrackDisplay", "loadingSpinner", "bigPlayButton", "controlBar", "errorDisplay", "textTrackSettings"],
- language: _ && (_.languages && _.languages[0] || _.userLanguage || _.language) || "en",
- languages: {},
- notSupportedMessage: "No compatible source was found for this media."
- }, ["ended", "seeking", "seekable", "networkState", "readyState"].forEach(function(a) {
- $.prototype[a] = function() {
- return this.techGet_(a)
- }
- }), Z.forEach(function(a) {
- $.prototype["handleTech" + (0, B["default"])(a) + "_"] = function() {
- return this.trigger(a)
- }
- }), j["default"].registerComponent("Player", $), c["default"] = $
- }, {
- 1: 1,
- 4: 4,
- 41: 41,
- 44: 44,
- 45: 45,
- 46: 46,
- 5: 5,
- 50: 50,
- 55: 55,
- 59: 59,
- 60: 60,
- 61: 61,
- 62: 62,
- 63: 63,
- 68: 68,
- 69: 69,
- 71: 71,
- 76: 76,
- 78: 78,
- 79: 79,
- 8: 8,
- 81: 81,
- 82: 82,
- 83: 83,
- 85: 85,
- 86: 86,
- 87: 87,
- 88: 88,
- 89: 89,
- 90: 90,
- 91: 91,
- 94: 94,
- 95: 95,
- 97: 97
- }
- ],
- 52: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0;
- var e = a(51),
- f = d(e),
- g = function(a, b) {
- f["default"].prototype[a] = b
- };
- c["default"] = g
- }, {
- 51: 51
- }
- ],
- 53: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(3),
- i = d(h),
- j = a(5),
- k = d(j),
- l = function(a) {
- function b(c) {
- var d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- e(this, b);
- var g = f(this, a.call(this, c, d));
- return g.update(), g
- }
- return g(b, a), b.prototype.update = function() {
- var a = this.createPopup();
- 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()
- }, b.prototype.createPopup = function() {}, b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: this.buildCSSClass()
- })
- }, b.prototype.buildCSSClass = function() {
- var b = "vjs-menu-button";
- return b += this.options_.inline === !0 ? "-inline" : "-popup", "vjs-menu-button " + b + " " + a.prototype.buildCSSClass.call(this)
- }, b
- }(i["default"]);
- k["default"].registerComponent("PopupButton", l), c["default"] = l
- }, {
- 3: 3,
- 5: 5
- }
- ],
- 54: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(83),
- n = d(m),
- o = a(82),
- p = d(o),
- q = function(a) {
- function b() {
- return f(this, b), g(this, a.apply(this, arguments))
- }
- return h(b, a), b.prototype.addItem = function(a) {
- this.addChild(a), a.on("click", n.bind(this, function() {
- this.unlockShowing()
- }))
- }, b.prototype.createEl = function() {
- var b = this.options_.contentElType || "ul";
- this.contentEl_ = l.createEl(b, {
- className: "vjs-menu-content"
- });
- var c = a.prototype.createEl.call(this, "div", {
- append: this.contentEl_,
- className: "vjs-menu"
- });
- return c.appendChild(this.contentEl_), p.on(c, "click", function(a) {
- a.preventDefault(), a.stopImmediatePropagation()
- }), c
- }, b
- }(j["default"]);
- j["default"].registerComponent("Popup", q), c["default"] = q
- }, {
- 5: 5,
- 81: 81,
- 82: 82,
- 83: 83
- }
- ],
- 55: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(3),
- j = e(i),
- k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = a(81),
- p = d(o),
- q = a(78),
- r = d(q),
- s = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return e.update(), c.on("posterchange", n.bind(e, e.update)), e
- }
- return h(b, a), b.prototype.dispose = function() {
- this.player().off("posterchange", this.update), a.prototype.dispose.call(this)
- }, b.prototype.createEl = function() {
- var a = p.createEl("div", {
- className: "vjs-poster",
- tabIndex: -1
- });
- return r.BACKGROUND_SIZE_SUPPORTED || (this.fallbackImg_ = p.createEl("img"), a.appendChild(this.fallbackImg_)), a
- }, b.prototype.update = function(a) {
- var b = this.player().poster();
- this.setSrc(b), b ? this.show() : this.hide()
- }, b.prototype.setSrc = function(a) {
- if (this.fallbackImg_) this.fallbackImg_.src = a;
- else {
- var b = "";
- a && (b = 'url("' + a + '")'), this.el_.style.backgroundImage = b
- }
- }, b.prototype.handleClick = function(a) {
- this.player_.controls() && (this.player_.paused() ? this.player_.play() : this.player_.pause())
- }, b
- }(j["default"]);
- l["default"].registerComponent("PosterImage", s), c["default"] = s
- }, {
- 3: 3,
- 5: 5,
- 78: 78,
- 81: 81,
- 83: 83
- }
- ],
- 56: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- b && (p = b), n["default"].setTimeout(q, a)
- }
- c.__esModule = !0, c.hasLoaded = c.autoSetupTimeout = c.autoSetup = void 0;
- var g = a(81),
- h = e(g),
- i = a(82),
- j = e(i),
- k = a(94),
- l = d(k),
- m = a(95),
- n = d(m),
- o = !1,
- p = void 0,
- q = function() {
- if (h.isReal()) {
- var a = l["default"].getElementsByTagName("video"),
- b = l["default"].getElementsByTagName("audio"),
- c = [];
- if (a && a.length > 0)
- for (var d = 0, e = a.length; d < e; d++) c.push(a[d]);
- if (b && b.length > 0)
- for (var g = 0, i = b.length; g < i; g++) c.push(b[g]);
- if (c && c.length > 0)
- for (var j = 0, k = c.length; j < k; j++) {
- var m = c[j];
- if (!m || !m.getAttribute) {
- f(1);
- break
- }
- if (void 0 === m.player) {
- var n = m.getAttribute("data-setup");
- null !== n && p(m)
- }
- } else o || f(1)
- }
- };
- h.isReal() && "complete" === l["default"].readyState ? o = !0 : j.one(n["default"], "load", function() {
- o = !0
- });
- var r = function() {
- return o
- };
- c.autoSetup = q, c.autoSetupTimeout = f, c.hasLoaded = r
- }, {
- 81: 81,
- 82: 82,
- 94: 94,
- 95: 95
- }
- ],
- 57: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(5),
- j = e(i),
- k = a(81),
- l = d(k),
- m = a(88),
- n = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- 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
- }
- return h(b, a), b.prototype.createEl = function(b) {
- var c = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- d = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
- return c.className = c.className + " vjs-slider", c = (0, m.assign)({
- tabIndex: 0
- }, c), d = (0, m.assign)({
- role: "slider",
- "aria-valuenow": 0,
- "aria-valuemin": 0,
- "aria-valuemax": 100,
- tabIndex: 0
- }, d), a.prototype.createEl.call(this, b, c, d)
- }, b.prototype.handleMouseDown = function(a) {
- var b = this.bar.el_.ownerDocument;
- 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)
- }, b.prototype.handleMouseMove = function(a) {}, b.prototype.handleMouseUp = function() {
- var a = this.bar.el_.ownerDocument;
- 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()
- }, b.prototype.update = function() {
- if (this.el_) {
- var a = this.getPercent(),
- b = this.bar;
- if (b) {
- ("number" != typeof a || a !== a || a < 0 || a === 1 / 0) && (a = 0);
- var c = (100 * a).toFixed(2) + "%";
- this.vertical() ? b.el().style.height = c : b.el().style.width = c
- }
- }
- }, b.prototype.calculateDistance = function(a) {
- var b = l.getPointerPosition(this.el_, a);
- return this.vertical() ? b.y : b.x
- }, b.prototype.handleFocus = function() {
- this.on(this.bar.el_.ownerDocument, "keydown", this.handleKeyPress)
- }, b.prototype.handleKeyPress = function(a) {
- 37 === a.which || 40 === a.which ? (a.preventDefault(), this.stepBack()) : 38 !== a.which && 39 !== a.which || (a.preventDefault(), this.stepForward())
- }, b.prototype.handleBlur = function() {
- this.off(this.bar.el_.ownerDocument, "keydown", this.handleKeyPress)
- }, b.prototype.handleClick = function(a) {
- a.stopImmediatePropagation(), a.preventDefault()
- }, b.prototype.vertical = function(a) {
- return void 0 === a ? this.vertical_ || !1 : (this.vertical_ = !!a, this.vertical_ ? this.addClass("vjs-slider-vertical") : this.addClass("vjs-slider-horizontal"), this)
- }, b
- }(j["default"]);
- j["default"].registerComponent("Slider", n), c["default"] = n
- }, {
- 5: 5,
- 81: 81,
- 88: 88
- }
- ],
- 58: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a.streamingFormats = {
- "rtmp/mp4": "MP4",
- "rtmp/flv": "FLV"
- }, a.streamFromParts = function(a, b) {
- return a + "&" + b
- }, a.streamToParts = function(a) {
- var b = {
- connection: "",
- stream: ""
- };
- if (!a) return b;
- var c = a.search(/&(?!\w+=)/),
- d = void 0;
- 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
- }, a.isStreamingType = function(b) {
- return b in a.streamingFormats
- }, a.RTMP_RE = /^rtmp[set]?:\/\//i, a.isStreamingSrc = function(b) {
- return a.RTMP_RE.test(b)
- }, a.rtmpSourceHandler = {}, a.rtmpSourceHandler.canPlayType = function(b) {
- return a.isStreamingType(b) ? "maybe" : ""
- }, a.rtmpSourceHandler.canHandleSource = function(b, c) {
- var d = a.rtmpSourceHandler.canPlayType(b.type);
- return d ? d : a.isStreamingSrc(b.src) ? "maybe" : ""
- }, a.rtmpSourceHandler.handleSource = function(b, c, d) {
- var e = a.streamToParts(b.src);
- c.setRtmpConnection(e.connection), c.setRtmpStream(e.stream)
- }, a.registerSourceHandler(a.rtmpSourceHandler), a
- }
- c.__esModule = !0, c["default"] = d
- }, {}
- ],
- 59: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- function i(a) {
- A["set" + (a.charAt(0).toUpperCase() + a.slice(1))] = function(b) {
- return this.el_.vjs_setProperty(a, b)
- }
- }
- function j(a) {
- A[a] = function() {
- return this.el_.vjs_getProperty(a)
- }
- }
- c.__esModule = !0;
- 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) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- return c.source && e.ready(function() {
- this.setSource(c.source)
- }, !0), c.startTime && e.ready(function() {
- this.load(), this.play(), this.currentTime(c.startTime)
- }, !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() {
- this.lastSeekTarget_ = void 0
- }), e
- }
- return h(b, a), b.prototype.createEl = function() {
- var a = this.options_;
- if (!a.swf) {
- a.swf = "//vjs.zencdn.net/swf/5.3.0/video-js.swf"
- }
- var c = a.techId,
- d = (0, x.assign)({
- readyFunction: "videojs.Flash.onReady",
- eventProxyFunction: "videojs.Flash.onEvent",
- errorEventProxyFunction: "videojs.Flash.onError",
- autoplay: a.autoplay,
- preload: a.preload,
- loop: a.loop,
- muted: a.muted
- }, a.flashVars),
- e = (0, x.assign)({
- wmode: "opaque",
- bgcolor: "#000000"
- }, a.params),
- f = (0, x.assign)({
- id: c,
- name: c,
- "class": "vjs-tech"
- }, a.attributes);
- return this.el_ = b.embed(a.swf, d, e, f), this.el_.tech = this, this.el_
- }, b.prototype.play = function() {
- this.ended() && this.setCurrentTime(0), this.el_.vjs_play()
- }, b.prototype.pause = function() {
- this.el_.vjs_pause()
- }, b.prototype.src = function(a) {
- return void 0 === a ? this.currentSrc() : this.setSrc(a)
- }, b.prototype.setSrc = function(a) {
- var b = this;
- a = p.getAbsoluteURL(a), this.el_.vjs_src(a), this.autoplay() && this.setTimeout(function() {
- return b.play()
- }, 0)
- }, b.prototype.seeking = function() {
- return void 0 !== this.lastSeekTarget_
- }, b.prototype.setCurrentTime = function(b) {
- var c = this.seekable();
- 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))
- }, b.prototype.currentTime = function() {
- return this.seeking() ? this.lastSeekTarget_ || 0 : this.el_.vjs_getProperty("currentTime")
- }, b.prototype.currentSrc = function() {
- return this.currentSource_ ? this.currentSource_.src : this.el_.vjs_getProperty("currentSrc")
- }, b.prototype.duration = function c() {
- if (0 === this.readyState()) return NaN;
- var c = this.el_.vjs_getProperty("duration");
- return c >= 0 ? c : 1 / 0
- }, b.prototype.load = function() {
- this.el_.vjs_load()
- }, b.prototype.poster = function() {
- this.el_.vjs_getProperty("poster")
- }, b.prototype.setPoster = function() {}, b.prototype.seekable = function() {
- var a = this.duration();
- return 0 === a ? (0, q.createTimeRange)() : (0, q.createTimeRange)(0, a)
- }, b.prototype.buffered = function() {
- var a = this.el_.vjs_getProperty("buffered");
- return 0 === a.length ? (0, q.createTimeRange)() : (0, q.createTimeRange)(a[0][0], a[0][1])
- }, b.prototype.supportsFullScreen = function() {
- return !1
- }, b.prototype.enterFullScreen = function() {
- return !1
- }, b
- }(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]);
- for (var E = 0; E < C.length; E++) j(C[E]);
- z.isSupported = function() {
- return z.version()[0] >= 10
- }, l["default"].withSourceHandlers(z), z.nativeSourceHandler = {}, z.nativeSourceHandler.canPlayType = function(a) {
- return a in z.formats ? "maybe" : ""
- }, z.nativeSourceHandler.canHandleSource = function(a, b) {
- function c(a) {
- var b = p.getFileExtension(a);
- return b ? "video/" + b : ""
- }
- var d = void 0;
- return d = a.type ? a.type.replace(/;.*/, "").toLowerCase() : c(a.src), z.nativeSourceHandler.canPlayType(d)
- }, z.nativeSourceHandler.handleSource = function(a, b, c) {
- b.setSrc(a.src)
- }, z.nativeSourceHandler.dispose = function() {}, z.registerSourceHandler(z.nativeSourceHandler), z.formats = {
- "video/flv": "FLV",
- "video/x-flv": "FLV",
- "video/mp4": "MP4",
- "video/m4v": "MP4"
- }, z.onReady = function(a) {
- var b = n.getEl(a),
- c = b && b.tech;
- c && c.el() && z.checkReady(c)
- }, z.checkReady = function(a) {
- a.el() && (a.el().vjs_getProperty ? a.triggerReady() : this.setTimeout(function() {
- z.checkReady(a)
- }, 50))
- }, z.onEvent = function(a, b) {
- var c = n.getEl(a).tech,
- d = Array.prototype.slice.call(arguments, 2);
- c.setTimeout(function() {
- c.trigger(b, d)
- }, 1)
- }, z.onError = function(a, b) {
- var c = n.getEl(a).tech;
- if ("srcnotfound" === b) return c.error(4);
- c.error("FLASH: " + b)
- }, z.version = function() {
- var a = "0,0,0";
- try {
- a = new w["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]
- } catch (b) {
- try {
- y.mimeTypes["application/x-shockwave-flash"].enabledPlugin && (a = (y.plugins["Shockwave Flash 2.0"] || y.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1])
- } catch (c) {}
- }
- return a.split(",")
- }, z.embed = function(a, b, c, d) {
- var e = z.getEmbedCode(a, b, c, d);
- return n.createEl("div", {
- innerHTML: e
- }).childNodes[0]
- }, z.getEmbedCode = function(a, b, c, d) {
- var e = "",
- f = "",
- g = "";
- return b && Object.getOwnPropertyNames(b).forEach(function(a) {
- e += a + "=" + b[a] + "&"
- }), c = (0, x.assign)({
- movie: a,
- flashvars: e,
- allowScriptAccess: "always",
- allowNetworking: "all"
- }, c), Object.getOwnPropertyNames(c).forEach(function(a) {
- f += '<param name="' + a + '" value="' + c[a] + '" />'
- }), d = (0, x.assign)({
- data: a,
- width: "100%",
- height: "100%"
- }, d), Object.getOwnPropertyNames(d).forEach(function(a) {
- g += a + '="' + d[a] + '" '
- }), '<object type="application/x-shockwave-flash" ' + g + ">" + f + "</object>"
- }, (0, s["default"])(z), u["default"].registerComponent("Flash", z), l["default"].registerTech("Flash", z), c["default"] = z
- }, {
- 5: 5,
- 58: 58,
- 62: 62,
- 81: 81,
- 88: 88,
- 90: 90,
- 92: 92,
- 95: 95
- }
- ],
- 60: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- return a.raw = b, a
- }
- function g(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function h(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function i(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- 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."]),
- k = a(62),
- l = e(k),
- m = a(5),
- n = e(m),
- o = a(81),
- p = d(o),
- q = a(92),
- r = d(q),
- s = a(83),
- t = d(s),
- u = a(86),
- v = e(u),
- w = a(98),
- x = e(w),
- y = a(78),
- z = d(y),
- A = a(94),
- B = e(A),
- C = a(95),
- D = e(C),
- E = a(88),
- F = a(87),
- G = e(F),
- H = a(91),
- I = e(H),
- J = function(a) {
- function b(c, d) {
- g(this, b);
- var e = h(this, a.call(this, c, d)),
- f = c.source,
- i = !1;
- if (f && (e.el_.currentSrc !== f.src || c.tag && 3 === c.tag.initNetworkState_) ? e.setSource(f) : e.handleLateInit_(e.el_), e.el_.hasChildNodes()) {
- for (var k = e.el_.childNodes, l = k.length, m = []; l--;) {
- var n = k[l];
- "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))
- }
- for (var o = 0; o < m.length; o++) e.el_.removeChild(m[o])
- }
- return ["audio", "video"].forEach(function(a) {
- var b = e.el()[a + "Tracks"],
- c = e[a + "Tracks"](),
- d = (0, I["default"])(a);
- e["featuresNative" + d + "Tracks"] && b && b.addEventListener && (e["handle" + d + "TrackChange_"] = function(a) {
- c.trigger({
- type: "change",
- target: c,
- currentTarget: c,
- srcElement: c
- })
- }, e["handle" + d + "TrackAdd_"] = function(a) {
- return c.addTrack(a.track)
- }, e["handle" + d + "TrackRemove_"] = function(a) {
- return c.removeTrack(a.track)
- }, 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) {
- return e.removeOldTracks_(c, b)
- }, e.on("loadstart", e["removeOld" + d + "Tracks_"]))
- }), 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
- }
- return i(b, a), b.prototype.dispose = function() {
- var c = this;
- ["audio", "video", "text"].forEach(function(a) {
- var b = (0, I["default"])(a),
- d = c.el_[a + "Tracks"];
- 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_"])
- }), b.disposeMediaElement(this.el_), a.prototype.dispose.call(this)
- }, b.prototype.createEl = function() {
- var a = this.options_.tag;
- if (!a || !this.options_.playerElIngest && !this.movingMediaElementInDOM) {
- if (a) {
- var c = a.cloneNode(!0);
- a.parentNode && a.parentNode.insertBefore(c, a), b.disposeMediaElement(a), a = c
- } else {
- a = B["default"].createElement("video");
- var d = this.options_.tag && p.getElAttributes(this.options_.tag),
- e = (0, G["default"])({}, d);
- z.TOUCH_ENABLED && this.options_.nativeControlsForTouch === !0 || delete e.controls, p.setElAttributes(a, (0, E.assign)(e, {
- id: this.options_.techId,
- "class": "vjs-tech"
- }))
- }
- a.playerId = this.options_.playerId
- }
- for (var f = ["autoplay", "preload", "loop", "muted"], g = f.length - 1; g >= 0; g--) {
- var h = f[g],
- i = {};
- "undefined" != typeof this.options_[h] && (i[h] = this.options_[h]), p.setElAttributes(a, i)
- }
- return a
- }, b.prototype.handleLateInit_ = function(a) {
- if (0 !== a.networkState && 3 !== a.networkState) {
- if (0 === a.readyState) {
- var b = !1,
- c = function() {
- b = !0
- };
- this.on("loadstart", c);
- var d = function() {
- b || this.trigger("loadstart")
- };
- return this.on("loadedmetadata", d), void this.ready(function() {
- this.off("loadstart", c), this.off("loadedmetadata", d), b || this.trigger("loadstart")
- })
- }
- var e = ["loadstart"];
- e.push("loadedmetadata"), a.readyState >= 2 && e.push("loadeddata"), a.readyState >= 3 && e.push("canplay"), a.readyState >= 4 && e.push("canplaythrough"), this.ready(function() {
- e.forEach(function(a) {
- this.trigger(a)
- }, this)
- })
- }
- }, b.prototype.proxyNativeTextTracks_ = function() {
- var a = this.el().textTracks;
- if (a) {
- for (var b = 0; b < a.length; b++) this.textTracks().addTrack_(a[b]);
- a.addEventListener && (a.addEventListener("change", this.handleTextTrackChange_), a.addEventListener("addtrack", this.handleTextTrackAdd_), a.addEventListener("removetrack", this.handleTextTrackRemove_)), this.on("loadstart", this.removeOldTextTracks_)
- }
- }, b.prototype.handleTextTrackChange = function(a) {
- var b = this.textTracks();
- this.textTracks().trigger({
- type: "change",
- target: b,
- currentTarget: b,
- srcElement: b
- })
- }, b.prototype.handleTextTrackAdd = function(a) {
- this.textTracks().addTrack_(a.track)
- }, b.prototype.handleTextTrackRemove = function(a) {
- this.textTracks().removeTrack_(a.track)
- }, b.prototype.removeOldTracks_ = function(a, b) {
- var c = [];
- if (b) {
- for (var d = 0; d < a.length; d++) {
- for (var e = a[d], f = !1, g = 0; g < b.length; g++)
- if (b[g] === e) {
- f = !0;
- break
- }
- f || c.push(e)
- }
- for (var h = 0; h < c.length; h++) {
- var i = c[h];
- a.removeTrack_(i)
- }
- }
- }, b.prototype.removeOldTextTracks_ = function(a) {
- var b = this.textTracks(),
- c = this.el().textTracks;
- this.removeOldTracks_(b, c)
- }, b.prototype.play = function() {
- var a = this.el_.play();
- void 0 !== a && "function" == typeof a.then && a.then(null, function(a) {})
- }, b.prototype.setCurrentTime = function(a) {
- try {
- this.el_.currentTime = a
- } catch (b) {
- (0, v["default"])(b, "Video is not ready. (Video.js)")
- }
- }, b.prototype.duration = function() {
- var a = this;
- if (this.el_.duration === 1 / 0 && z.IS_ANDROID && z.IS_CHROME && 0 === this.el_.currentTime) {
- var b = function c() {
- a.el_.currentTime > 0 && (a.el_.duration === 1 / 0 && a.trigger("durationchange"), a.off("timeupdate", c))
- };
- return this.on("timeupdate", b), NaN
- }
- return this.el_.duration || NaN
- }, b.prototype.width = function() {
- return this.el_.offsetWidth
- }, b.prototype.height = function() {
- return this.el_.offsetHeight
- }, b.prototype.proxyWebkitFullscreen_ = function() {
- var a = this;
- if ("webkitDisplayingFullscreen" in this.el_) {
- var b = function() {
- this.trigger("fullscreenchange", {
- isFullscreen: !1
- })
- },
- c = function() {
- this.one("webkitendfullscreen", b), this.trigger("fullscreenchange", {
- isFullscreen: !0
- })
- };
- this.on("webkitbeginfullscreen", c), this.on("dispose", function() {
- a.off("webkitbeginfullscreen", c), a.off("webkitendfullscreen", b)
- })
- }
- }, b.prototype.supportsFullScreen = function() {
- if ("function" == typeof this.el_.webkitEnterFullScreen) {
- var a = D["default"].navigator && D["default"].navigator.userAgent || "";
- if (/Android/.test(a) || !/Chrome|Mac OS X 10.5/.test(a)) return !0
- }
- return !1
- }, b.prototype.enterFullScreen = function() {
- var a = this.el_;
- a.paused && a.networkState <= a.HAVE_METADATA ? (this.el_.play(), this.setTimeout(function() {
- a.pause(), a.webkitEnterFullScreen()
- }, 0)) : a.webkitEnterFullScreen()
- }, b.prototype.exitFullScreen = function() {
- this.el_.webkitExitFullScreen()
- }, b.prototype.src = function(a) {
- if (void 0 === a) return this.el_.src;
- this.setSrc(a)
- }, b.prototype.reset = function() {
- b.resetMediaElement(this.el_)
- }, b.prototype.currentSrc = function() {
- return this.currentSource_ ? this.currentSource_.src : this.el_.currentSrc
- }, b.prototype.setControls = function(a) {
- this.el_.controls = !!a
- }, b.prototype.addTextTrack = function(b, c, d) {
- return this.featuresNativeTextTracks ? this.el_.addTextTrack(b, c, d) : a.prototype.addTextTrack.call(this, b, c, d)
- }, b.prototype.createRemoteTextTrack = function(b) {
- if (!this.featuresNativeTextTracks) return a.prototype.createRemoteTextTrack.call(this, b);
- var c = B["default"].createElement("track");
- 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
- }, b.prototype.addRemoteTextTrack = function(b, c) {
- var d = a.prototype.addRemoteTextTrack.call(this, b, c);
- return this.featuresNativeTextTracks && this.el().appendChild(d), d
- }, b.prototype.removeRemoteTextTrack = function(b) {
- if (a.prototype.removeRemoteTextTrack.call(this, b), this.featuresNativeTextTracks)
- for (var c = this.$$("track"), d = c.length; d--;) b !== c[d] && b !== c[d].track || this.el().removeChild(c[d])
- }, b
- }(l["default"]);
- if (p.isReal()) {
- J.TEST_VID = B["default"].createElement("video");
- var K = B["default"].createElement("track");
- K.kind = "captions", K.srclang = "en", K.label = "English", J.TEST_VID.appendChild(K)
- }
- J.isSupported = function() {
- try {
- J.TEST_VID.volume = .5
- } catch (a) {
- return !1
- }
- return !(!J.TEST_VID || !J.TEST_VID.canPlayType)
- }, J.canControlVolume = function() {
- try {
- var a = J.TEST_VID.volume;
- return J.TEST_VID.volume = a / 2 + .1, a !== J.TEST_VID.volume
- } catch (b) {
- return !1
- }
- }, J.canControlPlaybackRate = function() {
- if (z.IS_ANDROID && z.IS_CHROME) return !1;
- try {
- var a = J.TEST_VID.playbackRate;
- return J.TEST_VID.playbackRate = a / 2 + .1, a !== J.TEST_VID.playbackRate
- } catch (b) {
- return !1
- }
- }, J.supportsNativeTextTracks = function() {
- return z.IS_ANY_SAFARI
- }, J.supportsNativeVideoTracks = function() {
- return !(!J.TEST_VID || !J.TEST_VID.videoTracks)
- }, J.supportsNativeAudioTracks = function() {
- return !(!J.TEST_VID || !J.TEST_VID.audioTracks)
- }, 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();
- var L = J.TEST_VID && J.TEST_VID.constructor.prototype.canPlayType,
- M = /^application\/(?:x-|vnd\.apple\.)mpegurl/i,
- N = /^video\/mp4/i;
- J.patchCanPlayType = function() {
- z.ANDROID_VERSION >= 4 && !z.IS_FIREFOX ? J.TEST_VID.constructor.prototype.canPlayType = function(a) {
- return a && M.test(a) ? "maybe" : L.call(this, a)
- } : z.IS_OLD_ANDROID && (J.TEST_VID.constructor.prototype.canPlayType = function(a) {
- return a && N.test(a) ? "maybe" : L.call(this, a)
- })
- }, J.unpatchCanPlayType = function() {
- var a = J.TEST_VID.constructor.prototype.canPlayType;
- return J.TEST_VID.constructor.prototype.canPlayType = L, a
- }, J.patchCanPlayType(), J.disposeMediaElement = function(a) {
- if (a) {
- for (a.parentNode && a.parentNode.removeChild(a); a.hasChildNodes();) a.removeChild(a.firstChild);
- a.removeAttribute("src"), "function" == typeof a.load && function() {
- try {
- a.load()
- } catch (b) {}
- }()
- }
- }, J.resetMediaElement = function(a) {
- if (a) {
- for (var b = a.querySelectorAll("source"), c = b.length; c--;) a.removeChild(b[c]);
- a.removeAttribute("src"), "function" == typeof a.load && function() {
- try {
- a.load()
- } catch (b) {}
- }()
- }
- }, ["paused", "currentTime", "buffered", "volume", "muted", "poster", "preload", "autoplay", "controls", "loop", "error", "seeking", "seekable", "ended", "defaultMuted", "playbackRate", "played", "networkState", "readyState", "videoWidth", "videoHeight"].forEach(function(a) {
- J.prototype[a] = function() {
- return this.el_[a]
- }
- }), ["volume", "muted", "src", "poster", "preload", "autoplay", "loop", "playbackRate"].forEach(function(a) {
- J.prototype["set" + (0, I["default"])(a)] = function(b) {
- this.el_[a] = b
- }
- }), ["pause", "load"].forEach(function(a) {
- J.prototype[a] = function() {
- return this.el_[a]()
- }
- }), l["default"].withSourceHandlers(J), J.nativeSourceHandler = {}, J.nativeSourceHandler.canPlayType = function(a) {
- try {
- return J.TEST_VID.canPlayType(a)
- } catch (b) {
- return ""
- }
- }, J.nativeSourceHandler.canHandleSource = function(a, b) {
- if (a.type) return J.nativeSourceHandler.canPlayType(a.type);
- if (a.src) {
- var c = r.getFileExtension(a.src);
- return J.nativeSourceHandler.canPlayType("video/" + c)
- }
- return ""
- }, J.nativeSourceHandler.handleSource = function(a, b, c) {
- b.setSrc(a.src)
- }, J.nativeSourceHandler.dispose = function() {}, J.registerSourceHandler(J.nativeSourceHandler), n["default"].registerComponent("Html5", J), l["default"].registerTech("Html5", J), c["default"] = J
- }, {
- 5: 5,
- 62: 62,
- 78: 78,
- 81: 81,
- 83: 83,
- 86: 86,
- 87: 87,
- 88: 88,
- 91: 91,
- 92: 92,
- 94: 94,
- 95: 95,
- 98: 98
- }
- ],
- 61: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function f(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function g(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var h = a(5),
- i = d(h),
- j = a(62),
- k = d(j),
- l = a(91),
- m = d(l),
- n = function(a) {
- function b(c, d, g) {
- e(this, b);
- var h = f(this, a.call(this, c, d, g));
- if (d.playerOptions.sources && 0 !== d.playerOptions.sources.length) c.src(d.playerOptions.sources);
- else
- for (var j = 0, l = d.playerOptions.techOrder; j < l.length; j++) {
- var n = (0, m["default"])(l[j]),
- o = k["default"].getTech(n);
- if (n || (o = i["default"].getComponent(n)), o && o.isSupported()) {
- c.loadTech_(n);
- break
- }
- }
- return h
- }
- return g(b, a), b
- }(i["default"]);
- i["default"].registerComponent("MediaLoader", n), c["default"] = n
- }, {
- 5: 5,
- 62: 62,
- 91: 91
- }
- ],
- 62: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- function i(a, b, c, d) {
- var e = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : {},
- f = a.textTracks();
- e.kind = b, c && (e.label = c), d && (e.language = d), e.tech = a;
- var g = new s["default"](e);
- return f.addTrack_(g), g
- }
- c.__esModule = !0;
- var j = a(5),
- k = e(j),
- l = a(66),
- m = e(l),
- n = a(65),
- o = e(n),
- p = a(87),
- q = e(p),
- r = a(72),
- s = e(r),
- t = a(70),
- u = e(t),
- v = a(76),
- w = e(v),
- x = a(63),
- y = e(x),
- z = a(83),
- A = d(z),
- B = a(86),
- C = e(B),
- D = a(90),
- E = a(79),
- F = a(46),
- G = e(F),
- H = a(95),
- I = e(H),
- J = a(94),
- K = e(J),
- L = a(88),
- M = function(b) {
- function c() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
- d = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function() {};
- f(this, c), a.reportTouchActivity = !1;
- var e = g(this, b.call(this, null, a, d));
- return e.hasStarted_ = !1, e.on("playing", function() {
- this.hasStarted_ = !0
- }), e.on("loadstart", function() {
- this.hasStarted_ = !1
- }), 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) {
- a["native" + b + "Tracks"] === !1 && (e["featuresNative" + b + "Tracks"] = !1)
- }), 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
- }
- return h(c, b), c.prototype.manualProgressOn = function() {
- this.on("durationchange", this.onDurationChange), this.manualProgress = !0, this.one("ready", this.trackProgress)
- }, c.prototype.manualProgressOff = function() {
- this.manualProgress = !1, this.stopTrackingProgress(), this.off("durationchange", this.onDurationChange)
- }, c.prototype.trackProgress = function(a) {
- this.stopTrackingProgress(), this.progressInterval = this.setInterval(A.bind(this, function() {
- var a = this.bufferedPercent();
- this.bufferedPercent_ !== a && this.trigger("progress"), this.bufferedPercent_ = a, 1 === a && this.stopTrackingProgress()
- }), 500)
- }, c.prototype.onDurationChange = function(a) {
- this.duration_ = this.duration()
- }, c.prototype.buffered = function() {
- return (0, D.createTimeRange)(0, 0)
- }, c.prototype.bufferedPercent = function() {
- return (0, E.bufferedPercent)(this.buffered(), this.duration_)
- }, c.prototype.stopTrackingProgress = function() {
- this.clearInterval(this.progressInterval)
- }, c.prototype.manualTimeUpdatesOn = function() {
- this.manualTimeUpdates = !0, this.on("play", this.trackCurrentTime), this.on("pause", this.stopTrackingCurrentTime)
- }, c.prototype.manualTimeUpdatesOff = function() {
- this.manualTimeUpdates = !1, this.stopTrackingCurrentTime(), this.off("play", this.trackCurrentTime), this.off("pause", this.stopTrackingCurrentTime)
- }, c.prototype.trackCurrentTime = function() {
- this.currentTimeInterval && this.stopTrackingCurrentTime(), this.currentTimeInterval = this.setInterval(function() {
- this.trigger({
- type: "timeupdate",
- target: this,
- manuallyTriggered: !0
- })
- }, 250)
- }, c.prototype.stopTrackingCurrentTime = function() {
- this.clearInterval(this.currentTimeInterval), this.trigger({
- type: "timeupdate",
- target: this,
- manuallyTriggered: !0
- })
- }, c.prototype.dispose = function() {
- this.clearTracks(["audio", "video", "text"]), this.manualProgress && this.manualProgressOff(), this.manualTimeUpdates && this.manualTimeUpdatesOff(), b.prototype.dispose.call(this)
- }, c.prototype.clearTracks = function(a) {
- var b = this;
- a = [].concat(a), a.forEach(function(a) {
- for (var c = b[a + "Tracks"]() || [], d = c.length; d--;) {
- var e = c[d];
- "text" === a && b.removeRemoteTextTrack(e), c.removeTrack_(e)
- }
- })
- }, c.prototype.cleanupAutoTextTracks = function() {
- for (var a = this.autoRemoteTextTracks_ || [], b = a.length; b--;) {
- var c = a[b];
- this.removeRemoteTextTrack(c)
- }
- }, c.prototype.reset = function() {}, c.prototype.error = function(a) {
- return void 0 !== a && (this.error_ = new G["default"](a), this.trigger("error")), this.error_
- }, c.prototype.played = function() {
- return this.hasStarted_ ? (0, D.createTimeRange)(0, 0) : (0, D.createTimeRange)()
- }, c.prototype.setCurrentTime = function() {
- this.manualTimeUpdates && this.trigger({
- type: "timeupdate",
- target: this,
- manuallyTriggered: !0
- })
- }, c.prototype.initTextTrackListeners = function() {
- var a = A.bind(this, function() {
- this.trigger("texttrackchange")
- }),
- b = this.textTracks();
- b && (b.addEventListener("removetrack", a), b.addEventListener("addtrack", a), this.on("dispose", A.bind(this, function() {
- b.removeEventListener("removetrack", a), b.removeEventListener("addtrack", a)
- })))
- }, c.prototype.initTrackListeners = function() {
- var a = this;
- ["video", "audio"].forEach(function(b) {
- var c = function() {
- a.trigger(b + "trackchange")
- },
- d = a[b + "Tracks"]();
- d.addEventListener("removetrack", c), d.addEventListener("addtrack", c), a.on("dispose", function() {
- d.removeEventListener("removetrack", c),
- d.removeEventListener("addtrack", c)
- })
- })
- }, c.prototype.addWebVttScript_ = function() {
- var b = this;
- if (!I["default"].WebVTT)
- if (K["default"].body.contains(this.el())) {
- var c = a(105);
- if (!this.options_["vtt.js"] && (0, L.isPlain)(c) && Object.keys(c).length > 0) return void this.trigger("vttjsloaded");
- var d = K["default"].createElement("script");
- d.src = this.options_["vtt.js"] || "https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js", d.onload = function() {
- b.trigger("vttjsloaded")
- }, d.onerror = function() {
- b.trigger("vttjserror")
- }, this.on("dispose", function() {
- d.onload = null, d.onerror = null
- }), I["default"].WebVTT = !0, this.el().parentNode.appendChild(d)
- } else this.ready(this.addWebVttScript_)
- }, c.prototype.emulateTextTracks = function() {
- var a = this,
- b = this.textTracks();
- if (b) {
- var c = this.remoteTextTracks(),
- d = function(a) {
- return b.addTrack_(a.track)
- },
- e = function(a) {
- return b.removeTrack_(a.track)
- };
- c.on("addtrack", d), c.on("removetrack", e), this.addWebVttScript_();
- var f = function() {
- return a.trigger("texttrackchange")
- },
- g = function() {
- f();
- for (var a = 0; a < b.length; a++) {
- var c = b[a];
- c.removeEventListener("cuechange", f), "showing" === c.mode && c.addEventListener("cuechange", f)
- }
- };
- g(), b.addEventListener("change", g), this.on("dispose", function() {
- c.off("addtrack", d), c.off("removetrack", e), b.removeEventListener("change", g);
- for (var a = 0; a < b.length; a++) {
- b[a].removeEventListener("cuechange", f)
- }
- })
- }
- }, c.prototype.videoTracks = function() {
- return this.videoTracks_ = this.videoTracks_ || new w["default"], this.videoTracks_
- }, c.prototype.audioTracks = function() {
- return this.audioTracks_ = this.audioTracks_ || new y["default"], this.audioTracks_
- }, c.prototype.textTracks = function() {
- return this.textTracks_ = this.textTracks_ || new u["default"], this.textTracks_
- }, c.prototype.remoteTextTracks = function() {
- return this.remoteTextTracks_ = this.remoteTextTracks_ || new u["default"], this.remoteTextTracks_
- }, c.prototype.remoteTextTrackEls = function() {
- return this.remoteTextTrackEls_ = this.remoteTextTrackEls_ || new o["default"], this.remoteTextTrackEls_
- }, c.prototype.addTextTrack = function(a, b, c) {
- if (!a) throw new Error("TextTrack kind is required but was not provided");
- return i(this, a, b, c)
- }, c.prototype.createRemoteTextTrack = function(a) {
- var b = (0, q["default"])(a, {
- tech: this
- });
- return new m["default"](b)
- }, c.prototype.addRemoteTextTrack = function() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
- b = arguments[1],
- c = this.createRemoteTextTrack(a);
- 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
- }, c.prototype.removeRemoteTextTrack = function(a) {
- var b = this.remoteTextTrackEls().getTrackElementByTrack_(a);
- this.remoteTextTrackEls().removeTrackElement_(b), this.remoteTextTracks().removeTrack_(a), this.autoRemoteTextTracks_.removeTrack_(a)
- }, c.prototype.setPoster = function() {}, c.prototype.canPlayType = function() {
- return ""
- }, c.isTech = function(a) {
- return a.prototype instanceof c || a instanceof c || a === c
- }, c.registerTech = function(a, b) {
- if (c.techs_ || (c.techs_ = {}), !c.isTech(b)) throw new Error("Tech " + a + " must be a Tech");
- return c.techs_[a] = b, b
- }, c.getTech = function(a) {
- 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
- }, c
- }(k["default"]);
- 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) {
- a.registerSourceHandler = function(b, c) {
- var d = a.sourceHandlers;
- d || (d = a.sourceHandlers = []), void 0 === c && (c = d.length), d.splice(c, 0, b)
- }, a.canPlayType = function(b) {
- for (var c = a.sourceHandlers || [], d = void 0, e = 0; e < c.length; e++)
- if (d = c[e].canPlayType(b)) return d;
- return ""
- }, a.selectSourceHandler = function(b, c) {
- for (var d = a.sourceHandlers || [], e = 0; e < d.length; e++)
- if (d[e].canHandleSource(b, c)) return d[e];
- return null
- }, a.canPlaySource = function(b, c) {
- var d = a.selectSourceHandler(b, c);
- return d ? d.canHandleSource(b, c) : ""
- }, ["seekable", "duration"].forEach(function(a) {
- var b = this[a];
- "function" == typeof b && (this[a] = function() {
- return this.sourceHandler_ && this.sourceHandler_[a] ? this.sourceHandler_[a].apply(this.sourceHandler_, arguments) : b.apply(this, arguments)
- })
- }, a.prototype), a.prototype.setSource = function(b) {
- var c = a.selectSourceHandler(b, this.options_);
- 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
- }, a.prototype.firstLoadStartListener_ = function() {
- this.one(this.el_, "loadstart", a.prototype.successiveLoadStartListener_)
- }, a.prototype.successiveLoadStartListener_ = function() {
- this.disposeSourceHandler(), this.one(this.el_, "loadstart", a.prototype.successiveLoadStartListener_)
- }, a.prototype.disposeSourceHandler = function() {
- 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)
- }
- }, k["default"].registerComponent("Tech", M), k["default"].registerComponent("MediaTechController", M), M.registerTech("Tech", M), c["default"] = M
- }, {
- 105: 105,
- 46: 46,
- 5: 5,
- 63: 63,
- 65: 65,
- 66: 66,
- 70: 70,
- 72: 72,
- 76: 76,
- 79: 79,
- 83: 83,
- 86: 86,
- 87: 87,
- 88: 88,
- 90: 90,
- 94: 94,
- 95: 95
- }
- ],
- 63: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(74),
- j = e(i),
- k = a(78),
- l = d(k),
- m = a(94),
- n = e(m),
- o = function(a, b) {
- for (var c = 0; c < a.length; c++) b.id !== a[c].id && (a[c].enabled = !1)
- },
- p = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
- f(this, b);
- for (var h = void 0, i = e.length - 1; i >= 0; i--)
- if (e[i].enabled) {
- o(e, e[i]);
- break
- }
- if (l.IS_IE8) {
- h = n["default"].createElement("custom");
- for (var k in j["default"].prototype) "constructor" !== k && (h[k] = j["default"].prototype[k]);
- for (var m in b.prototype) "constructor" !== m && (h[m] = b.prototype[m])
- }
- return h = c = g(this, a.call(this, e, h)), h.changing_ = !1, d = h, g(c, d)
- }
- return h(b, a), b.prototype.addTrack_ = function(b) {
- var c = this;
- b.enabled && o(this, b), a.prototype.addTrack_.call(this, b), b.addEventListener && b.addEventListener("enabledchange", function() {
- c.changing_ || (c.changing_ = !0, o(c, b), c.changing_ = !1, c.trigger("change"))
- })
- }, b.prototype.addTrack = function(a) {
- this.addTrack_(a)
- }, b.prototype.removeTrack = function(b) {
- a.prototype.removeTrack_.call(this, b)
- }, b
- }(j["default"]);
- c["default"] = p
- }, {
- 74: 74,
- 78: 78,
- 94: 94
- }
- ],
- 64: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(73),
- j = a(75),
- k = e(j),
- l = a(87),
- m = e(l),
- n = a(78),
- o = d(n),
- p = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
- f(this, b);
- var h = (0, m["default"])(e, {
- kind: i.AudioTrackKind[e.kind] || ""
- }),
- j = c = g(this, a.call(this, h)),
- k = !1;
- if (o.IS_IE8)
- for (var l in b.prototype) "constructor" !== l && (j[l] = b.prototype[l]);
- return Object.defineProperty(j, "enabled", {
- get: function() {
- return k
- },
- set: function(a) {
- "boolean" == typeof a && a !== k && (k = a, this.trigger("enabledchange"))
- }
- }), h.enabled && (j.enabled = h.enabled), j.loaded_ = !0, d = j, g(c, d)
- }
- return h(b, a), b
- }(k["default"]);
- c["default"] = p
- }, {
- 73: 73,
- 75: 75,
- 78: 78,
- 87: 87
- }
- ],
- 65: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- c.__esModule = !0;
- var g = a(78),
- h = e(g),
- i = a(94),
- j = d(i),
- k = function() {
- function a() {
- var b = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
- f(this, a);
- var c = this;
- if (h.IS_IE8) {
- c = j["default"].createElement("custom");
- for (var d in a.prototype) "constructor" !== d && (c[d] = a.prototype[d])
- }
- c.trackElements_ = [], Object.defineProperty(c, "length", {
- get: function() {
- return this.trackElements_.length
- }
- });
- for (var e = 0, g = b.length; e < g; e++) c.addTrackElement_(b[e]);
- if (h.IS_IE8) return c
- }
- return a.prototype.addTrackElement_ = function(a) {
- var b = this.trackElements_.length;
- "" + b in this || Object.defineProperty(this, b, {
- get: function() {
- return this.trackElements_[b]
- }
- }), this.trackElements_.indexOf(a) === -1 && this.trackElements_.push(a)
- }, a.prototype.getTrackElementByTrack_ = function(a) {
- for (var b = void 0, c = 0, d = this.trackElements_.length; c < d; c++)
- if (a === this.trackElements_[c].track) {
- b = this.trackElements_[c];
- break
- }
- return b
- }, a.prototype.removeTrackElement_ = function(a) {
- for (var b = 0, c = this.trackElements_.length; b < c; b++)
- if (a === this.trackElements_[b]) {
- this.trackElements_.splice(b, 1);
- break
- }
- }, a
- }();
- c["default"] = k
- }, {
- 78: 78,
- 94: 94
- }
- ],
- 66: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(78),
- j = e(i),
- k = a(94),
- l = d(k),
- m = a(42),
- n = d(m),
- o = a(72),
- p = d(o),
- q = function(a) {
- function b() {
- var c = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
- f(this, b);
- var d = g(this, a.call(this)),
- e = void 0,
- h = d;
- if (j.IS_IE8) {
- h = l["default"].createElement("custom");
- for (var i in b.prototype) "constructor" !== i && (h[i] = b.prototype[i])
- }
- var k = new p["default"](c);
- 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", {
- get: function() {
- return e
- }
- }), Object.defineProperty(h, "track", {
- get: function() {
- return k
- }
- }), e = 0, k.addEventListener("loadeddata", function() {
- e = 2, h.trigger({
- type: "load",
- target: h
- })
- }), j.IS_IE8) {
- var m;
- return m = h, g(d, m)
- }
- return d
- }
- return h(b, a), b
- }(n["default"]);
- q.prototype.allowedEvents_ = {
- load: "load"
- }, q.NONE = 0, q.LOADING = 1, q.LOADED = 2, q.ERROR = 3, c["default"] = q
- }, {
- 42: 42,
- 72: 72,
- 78: 78,
- 94: 94
- }
- ],
- 67: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- c.__esModule = !0;
- var g = a(78),
- h = e(g),
- i = a(94),
- j = d(i),
- k = function() {
- function a(b) {
- f(this, a);
- var c = this;
- if (h.IS_IE8) {
- c = j["default"].createElement("custom");
- for (var d in a.prototype) "constructor" !== d && (c[d] = a.prototype[d])
- }
- if (a.prototype.setCues_.call(c, b), Object.defineProperty(c, "length", {
- get: function() {
- return this.length_
- }
- }), h.IS_IE8) return c
- }
- return a.prototype.setCues_ = function(a) {
- var b = this.length || 0,
- c = 0,
- d = a.length;
- this.cues_ = a, this.length_ = a.length;
- var e = function(a) {
- "" + a in this || Object.defineProperty(this, "" + a, {
- get: function() {
- return this.cues_[a]
- }
- })
- };
- if (b < d)
- for (c = b; c < d; c++) e.call(this, c)
- }, a.prototype.getCueById = function(a) {
- for (var b = null, c = 0, d = this.length; c < d; c++) {
- var e = this[c];
- if (e.id === a) {
- b = e;
- break
- }
- }
- return b
- }, a
- }();
- c["default"] = k
- }, {
- 78: 78,
- 94: 94
- }
- ],
- 68: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- function i(a, b) {
- return "rgba(" + parseInt(a[1] + a[1], 16) + "," + parseInt(a[2] + a[2], 16) + "," + parseInt(a[3] + a[3], 16) + "," + b + ")"
- }
- function j(a, b, c) {
- try {
- a.style[b] = c
- } catch (d) {
- return
- }
- }
- c.__esModule = !0;
- var k = a(5),
- l = e(k),
- m = a(83),
- n = d(m),
- o = a(95),
- p = e(o),
- q = {
- monospace: "monospace",
- sansSerif: "sans-serif",
- serif: "serif",
- monospaceSansSerif: '"Andale Mono", "Lucida Console", monospace',
- monospaceSerif: '"Courier New", monospace',
- proportionalSansSerif: "sans-serif",
- proportionalSerif: "serif",
- casual: '"Comic Sans MS", Impact, fantasy',
- script: '"Monotype Corsiva", cursive',
- smallcaps: '"Andale Mono", "Lucida Console", monospace, sans-serif'
- },
- r = function(a) {
- function b(c, d, e) {
- f(this, b);
- var h = g(this, a.call(this, c, d, e));
- return c.on("loadstart", n.bind(h, h.toggleDisplay)), c.on("texttrackchange", n.bind(h, h.updateDisplay)), c.ready(n.bind(h, function() {
- if (c.tech_ && c.tech_.featuresNativeTextTracks) return void this.hide();
- c.on("fullscreenchange", n.bind(this, this.updateDisplay));
- for (var a = this.options_.playerOptions.tracks || [], b = 0; b < a.length; b++) this.player_.addRemoteTextTrack(a[b], !0);
- var d = {
- captions: 1,
- subtitles: 1
- },
- e = this.player_.textTracks(),
- f = void 0,
- g = void 0;
- if (e) {
- for (var h = 0; h < e.length; h++) {
- var i = e[h];
- i["default"] && ("descriptions" !== i.kind || f ? i.kind in d && !g && (g = i) : f = i)
- }
- g ? g.mode = "showing" : f && (f.mode = "showing")
- }
- })), h
- }
- return h(b, a), b.prototype.toggleDisplay = function() {
- this.player_.tech_ && this.player_.tech_.featuresNativeTextTracks ? this.hide() : this.show()
- }, b.prototype.createEl = function() {
- return a.prototype.createEl.call(this, "div", {
- className: "vjs-text-track-display"
- }, {
- "aria-live": "off",
- "aria-atomic": "true"
- })
- }, b.prototype.clearDisplay = function() {
- "function" == typeof p["default"].WebVTT && p["default"].WebVTT.processCues(p["default"], [], this.el_)
- }, b.prototype.updateDisplay = function() {
- var a = this.player_.textTracks();
- if (this.clearDisplay(), a) {
- for (var b = null, c = null, d = a.length; d--;) {
- var e = a[d];
- "showing" === e.mode && ("descriptions" === e.kind ? b = e : c = e)
- }
- 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))
- }
- }, b.prototype.updateForTrack = function(a) {
- if ("function" == typeof p["default"].WebVTT && a.activeCues) {
- for (var b = this.player_.textTrackSettings.getValues(), c = [], d = 0; d < a.activeCues.length; d++) c.push(a.activeCues[d]);
- p["default"].WebVTT.processCues(p["default"], c, this.el_);
- for (var e = c.length; e--;) {
- var f = c[e];
- if (f) {
- var g = f.displayState;
- 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) {
- var h = p["default"].parseFloat(g.style.fontSize);
- g.style.fontSize = h * b.fontPercent + "px", g.style.height = "auto", g.style.top = "auto", g.style.bottom = "2px"
- }
- b.fontFamily && "default" !== b.fontFamily && ("small-caps" === b.fontFamily ? g.firstChild.style.fontVariant = "small-caps" : g.firstChild.style.fontFamily = q[b.fontFamily])
- }
- }
- }
- }, b
- }(l["default"]);
- l["default"].registerComponent("TextTrackDisplay", r), c["default"] = r
- }, {
- 5: 5,
- 83: 83,
- 95: 95
- }
- ],
- 69: [
- function(a, b, c) {
- "use strict";
- c.__esModule = !0;
- var d = function(a) {
- return ["kind", "label", "language", "id", "inBandMetadataTrackDispatchType", "mode", "src"].reduce(function(b, c, d) {
- return a[c] && (b[c] = a[c]), b
- }, {
- cues: a.cues && Array.prototype.map.call(a.cues, function(a) {
- return {
- startTime: a.startTime,
- endTime: a.endTime,
- text: a.text,
- id: a.id
- }
- })
- })
- },
- e = function(a) {
- var b = a.$$("track"),
- c = Array.prototype.map.call(b, function(a) {
- return a.track
- });
- return Array.prototype.map.call(b, function(a) {
- var b = d(a.track);
- return a.src && (b.src = a.src), b
- }).concat(Array.prototype.filter.call(a.textTracks(), function(a) {
- return c.indexOf(a) === -1
- }).map(d))
- },
- f = function(a, b) {
- return a.forEach(function(a) {
- var c = b.addRemoteTextTrack(a).track;
- !a.src && a.cues && a.cues.forEach(function(a) {
- return c.addCue(a)
- })
- }), b.textTracks()
- };
- c["default"] = {
- textTracksToJson: e,
- jsonToTextTracks: f,
- trackToJson_: d
- }
- }, {}
- ],
- 70: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(74),
- j = e(i),
- k = a(83),
- l = d(k),
- m = a(78),
- n = d(m),
- o = a(94),
- p = e(o),
- q = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
- f(this, b);
- var h = void 0;
- if (n.IS_IE8) {
- h = p["default"].createElement("custom");
- for (var i in j["default"].prototype) "constructor" !== i && (h[i] = j["default"].prototype[i]);
- for (var k in b.prototype) "constructor" !== k && (h[k] = b.prototype[k])
- }
- return h = c = g(this, a.call(this, e, h)), d = h, g(c, d)
- }
- return h(b, a), b.prototype.addTrack_ = function(b) {
- a.prototype.addTrack_.call(this, b), b.addEventListener("modechange", l.bind(this, function() {
- this.trigger("change")
- }))
- }, b
- }(j["default"]);
- c["default"] = q
- }, {
- 74: 74,
- 78: 78,
- 83: 83,
- 94: 94
- }
- ],
- 71: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- function i(a, b) {
- if (b && (a = b(a)), a && "none" !== a) return a
- }
- function j(a, b) {
- return i(a.options[a.options.selectedIndex].value, b)
- }
- function k(a, b, c) {
- if (b)
- for (var d = 0; d < a.options.length; d++)
- if (i(a.options[d].value, c) === b) {
- a.selectedIndex = d;
- break
- }
- }
- c.__esModule = !0;
- var l = a(95),
- m = e(l),
- n = a(5),
- o = e(n),
- p = a(81),
- q = a(83),
- r = d(q),
- s = a(88),
- t = d(s),
- u = a(86),
- v = e(u),
- w = ["#000", "Black"],
- x = ["#00F", "Blue"],
- y = ["#0FF", "Cyan"],
- z = ["#0F0", "Green"],
- A = ["#F0F", "Magenta"],
- B = ["#F00", "Red"],
- C = ["#FFF", "White"],
- D = ["#FF0", "Yellow"],
- E = ["1", "Opaque"],
- F = ["0.5", "Semi-Transparent"],
- G = ["0", "Transparent"],
- H = {
- backgroundColor: {
- selector: ".vjs-bg-color > select",
- id: "captions-background-color-%s",
- label: "Color",
- options: [w, C, B, z, x, D, A, y]
- },
- backgroundOpacity: {
- selector: ".vjs-bg-opacity > select",
- id: "captions-background-opacity-%s",
- label: "Transparency",
- options: [E, F, G]
- },
- color: {
- selector: ".vjs-fg-color > select",
- id: "captions-foreground-color-%s",
- label: "Color",
- options: [C, w, B, z, x, D, A, y]
- },
- edgeStyle: {
- selector: ".vjs-edge-style > select",
- id: "%s",
- label: "Text Edge Style",
- options: [
- ["none", "None"],
- ["raised", "Raised"],
- ["depressed", "Depressed"],
- ["uniform", "Uniform"],
- ["dropshadow", "Dropshadow"]
- ]
- },
- fontFamily: {
- selector: ".vjs-font-family > select",
- id: "captions-font-family-%s",
- label: "Font Family",
- options: [
- ["proportionalSansSerif", "Proportional Sans-Serif"],
- ["monospaceSansSerif", "Monospace Sans-Serif"],
- ["proportionalSerif", "Proportional Serif"],
- ["monospaceSerif", "Monospace Serif"],
- ["casual", "Casual"],
- ["script", "Script"],
- ["small-caps", "Small Caps"]
- ]
- },
- fontPercent: {
- selector: ".vjs-font-percent > select",
- id: "captions-font-size-%s",
- label: "Font Size",
- options: [
- ["0.50", "50%"],
- ["0.75", "75%"],
- ["1.00", "100%"],
- ["1.25", "125%"],
- ["1.50", "150%"],
- ["1.75", "175%"],
- ["2.00", "200%"],
- ["3.00", "300%"],
- ["4.00", "400%"]
- ],
- "default": 2,
- parser: function(a) {
- return "1.00" === a ? null : Number(a)
- }
- },
- textOpacity: {
- selector: ".vjs-text-opacity > select",
- id: "captions-foreground-opacity-%s",
- label: "Transparency",
- options: [E, F]
- },
- windowColor: {
- selector: ".vjs-window-color > select",
- id: "captions-window-color-%s",
- label: "Color"
- },
- windowOpacity: {
- selector: ".vjs-window-opacity > select",
- id: "captions-window-opacity-%s",
- label: "Transparency",
- options: [G, F, E]
- }
- };
- H.windowColor.options = H.backgroundColor.options;
- var I = function(a) {
- function b(c, d) {
- f(this, b);
- var e = g(this, a.call(this, c, d));
- 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() {
- e.saveSettings(), e.hide()
- }), e.on(e.$(".vjs-default-button"), "click", function() {
- e.setDefaults(), e.updateDisplay()
- }), t.each(H, function(a) {
- e.on(e.$(a.selector), "change", e.updateDisplay)
- }), e.options_.persistTextTrackSettings && e.restoreSettings(), e
- }
- return h(b, a), b.prototype.createElSelect_ = function(a) {
- var b = this,
- c = H[a],
- d = c.id.replace("%s", this.id_);
- return [(0, p.createEl)("label", {
- className: "vjs-label",
- textContent: c.label
- }, {
- "for": d
- }), (0, p.createEl)("select", {
- id: d
- }, void 0, c.options.map(function(a) {
- return (0, p.createEl)("option", {
- textContent: b.localize(a[1]),
- value: a[0]
- })
- }))]
- }, b.prototype.createElFgColor_ = function() {
- var a = (0, p.createEl)("legend", {
- textContent: this.localize("Text")
- }),
- b = this.createElSelect_("color"),
- c = (0, p.createEl)("span", {
- className: "vjs-text-opacity vjs-opacity"
- }, void 0, this.createElSelect_("textOpacity"));
- return (0, p.createEl)("fieldset", {
- className: "vjs-fg-color vjs-tracksetting"
- }, void 0, [a].concat(b, c))
- }, b.prototype.createElBgColor_ = function() {
- var a = (0, p.createEl)("legend", {
- textContent: this.localize("Background")
- }),
- b = this.createElSelect_("backgroundColor"),
- c = (0, p.createEl)("span", {
- className: "vjs-bg-opacity vjs-opacity"
- }, void 0, this.createElSelect_("backgroundOpacity"));
- return (0, p.createEl)("fieldset", {
- className: "vjs-bg-color vjs-tracksetting"
- }, void 0, [a].concat(b, c))
- }, b.prototype.createElWinColor_ = function() {
- var a = (0, p.createEl)("legend", {
- textContent: this.localize("Window")
- }),
- b = this.createElSelect_("windowColor"),
- c = (0, p.createEl)("span", {
- className: "vjs-window-opacity vjs-opacity"
- }, void 0, this.createElSelect_("windowOpacity"));
- return (0, p.createEl)("fieldset", {
- className: "vjs-window-color vjs-tracksetting"
- }, void 0, [a].concat(b, c))
- }, b.prototype.createElColors_ = function() {
- return (0, p.createEl)("div", {
- className: "vjs-tracksettings-colors"
- }, void 0, [this.createElFgColor_(), this.createElBgColor_(), this.createElWinColor_()])
- }, b.prototype.createElFont_ = function() {
- var a = (0, p.createEl)("div", {
- className: "vjs-font-percent vjs-tracksetting"
- }, void 0, this.createElSelect_("fontPercent")),
- b = (0, p.createEl)("div", {
- className: "vjs-edge-style vjs-tracksetting"
- }, void 0, this.createElSelect_("edgeStyle")),
- c = (0, p.createEl)("div", {
- className: "vjs-font-family vjs-tracksetting"
- }, void 0, this.createElSelect_("fontFamily"));
- return (0, p.createEl)("div", {
- className: "vjs-tracksettings-font"
- }, void 0, [a, b, c])
- }, b.prototype.createElControls_ = function() {
- var a = (0, p.createEl)("button", {
- className: "vjs-default-button",
- textContent: this.localize("Defaults")
- }),
- b = (0, p.createEl)("button", {
- className: "vjs-done-button",
- textContent: "Done"
- });
- return (0, p.createEl)("div", {
- className: "vjs-tracksettings-controls"
- }, void 0, [a, b])
- }, b.prototype.createEl = function() {
- var a = (0, p.createEl)("div", {
- className: "vjs-tracksettings"
- }, void 0, [this.createElColors_(), this.createElFont_(), this.createElControls_()]),
- b = (0, p.createEl)("div", {
- className: "vjs-control-text",
- id: "TTsettingsDialogLabel-" + this.id_,
- textContent: "Caption Settings Dialog"
- }, {
- "aria-level": "1",
- role: "heading"
- }),
- c = (0, p.createEl)("div", {
- className: "vjs-control-text",
- id: "TTsettingsDialogDescription-" + this.id_,
- textContent: "Beginning of dialog window. Escape will cancel and close the window."
- }),
- d = (0, p.createEl)("div", void 0, {
- role: "document"
- }, [b, c, a]);
- return (0, p.createEl)("div", {
- className: "vjs-caption-settings vjs-modal-overlay",
- tabIndex: -1
- }, {
- role: "dialog",
- "aria-labelledby": b.id,
- "aria-describedby": c.id
- }, d)
- }, b.prototype.getValues = function() {
- var a = this;
- return t.reduce(H, function(b, c, d) {
- var e = j(a.$(c.selector), c.parser);
- return void 0 !== e && (b[d] = e), b
- }, {})
- }, b.prototype.setValues = function(a) {
- var b = this;
- t.each(H, function(c, d) {
- k(b.$(c.selector), a[d], c.parser)
- })
- }, b.prototype.setDefaults = function() {
- var a = this;
- t.each(H, function(b) {
- var c = b.hasOwnProperty("default") ? b["default"] : 0;
- a.$(b.selector).selectedIndex = c
- })
- }, b.prototype.restoreSettings = function() {
- var a = void 0;
- try {
- a = JSON.parse(m["default"].localStorage.getItem("vjs-text-track-settings"))
- } catch (b) {
- v["default"].warn(b)
- }
- a && this.setValues(a)
- }, b.prototype.saveSettings = function() {
- if (this.options_.persistTextTrackSettings) {
- var a = this.getValues();
- try {
- Object.keys(a).length ? m["default"].localStorage.setItem("vjs-text-track-settings", JSON.stringify(a)) : m["default"].localStorage.removeItem("vjs-text-track-settings")
- } catch (b) {
- v["default"].warn(b)
- }
- }
- }, b.prototype.updateDisplay = function() {
- var a = this.player_.getChild("textTrackDisplay");
- a && a.updateDisplay()
- }, b
- }(o["default"]);
- o["default"].registerComponent("TextTrackSettings", I), c["default"] = I
- }, {
- 5: 5,
- 81: 81,
- 83: 83,
- 86: 86,
- 88: 88,
- 95: 95
- }
- ],
- 72: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(67),
- j = e(i),
- k = a(83),
- l = d(k),
- m = a(73),
- n = a(86),
- o = e(n),
- p = a(95),
- q = e(p),
- r = a(75),
- s = e(r),
- t = a(92),
- u = a(99),
- v = e(u),
- w = a(87),
- x = e(w),
- y = a(78),
- z = d(y),
- A = function(a, b) {
- var c = new q["default"].WebVTT.Parser(q["default"], q["default"].vttjs, q["default"].WebVTT.StringDecoder()),
- d = [];
- c.oncue = function(a) {
- b.addCue(a)
- }, c.onparsingerror = function(a) {
- d.push(a)
- }, c.onflush = function() {
- b.trigger({
- type: "loadeddata",
- target: b
- })
- }, 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) {
- return o["default"].error(a)
- }), q["default"].console && q["default"].console.groupEnd && q["default"].console.groupEnd()), c.flush()
- },
- B = function(a, b) {
- var c = {
- uri: a
- },
- d = (0, t.isCrossOrigin)(a);
- d && (c.cors = d), (0, v["default"])(c, l.bind(this, function(a, c, d) {
- if (a) return o["default"].error(a, c);
- if (b.loaded_ = !0, "function" != typeof q["default"].WebVTT) {
- if (b.tech_) {
- var e = function() {
- return A(d, b)
- };
- b.tech_.on("vttjsloaded", e), b.tech_.on("vttjserror", function() {
- o["default"].error("vttjs failed to load, stopping trying to process " + b.src), b.tech_.off("vttjsloaded", e)
- })
- }
- } else A(d, b)
- }))
- },
- C = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
- if (f(this, b), !e.tech) throw new Error("A tech was not provided.");
- var h = (0, x["default"])(e, {
- kind: m.TextTrackKind[e.kind] || "subtitles",
- language: e.language || e.srclang || ""
- }),
- i = m.TextTrackMode[h.mode] || "disabled",
- k = h["default"];
- "metadata" !== h.kind && "chapters" !== h.kind || (i = "hidden");
- var n = c = g(this, a.call(this, h));
- if (n.tech_ = h.tech, z.IS_IE8)
- for (var o in b.prototype) "constructor" !== o && (n[o] = b.prototype[o]);
- n.cues_ = [], n.activeCues_ = [];
- var p = new j["default"](n.cues_),
- q = new j["default"](n.activeCues_),
- r = !1,
- s = l.bind(n, function() {
- this.activeCues, r && (this.trigger("cuechange"), r = !1)
- });
- return "disabled" !== i && n.tech_.ready(function() {
- n.tech_.on("timeupdate", s)
- }, !0), Object.defineProperty(n, "default", {
- get: function() {
- return k
- },
- set: function() {}
- }), Object.defineProperty(n, "mode", {
- get: function() {
- return i
- },
- set: function(a) {
- var b = this;
- m.TextTrackMode[a] && (i = a, "showing" === i && this.tech_.ready(function() {
- b.tech_.on("timeupdate", s)
- }, !0), this.trigger("modechange"))
- }
- }), Object.defineProperty(n, "cues", {
- get: function() {
- return this.loaded_ ? p : null
- },
- set: function() {}
- }), Object.defineProperty(n, "activeCues", {
- get: function() {
- if (!this.loaded_) return null;
- if (0 === this.cues.length) return q;
- for (var a = this.tech_.currentTime(), b = [], c = 0, d = this.cues.length; c < d; c++) {
- var e = this.cues[c];
- e.startTime <= a && e.endTime >= a ? b.push(e) : e.startTime === e.endTime && e.startTime <= a && e.startTime + .5 >= a && b.push(e)
- }
- if (r = !1,
- b.length !== this.activeCues_.length) r = !0;
- else
- for (var f = 0; f < b.length; f++) this.activeCues_.indexOf(b[f]) === -1 && (r = !0);
- return this.activeCues_ = b, q.setCues_(this.activeCues_), q
- },
- set: function() {}
- }), h.src ? (n.src = h.src, B(h.src, n)) : n.loaded_ = !0, d = n, g(c, d)
- }
- return h(b, a), b.prototype.addCue = function(a) {
- var b = a;
- if (q["default"].vttjs && !(a instanceof q["default"].vttjs.VTTCue)) {
- b = new q["default"].vttjs.VTTCue(a.startTime, a.endTime, a.text);
- for (var c in a) c in b || (b[c] = a[c]);
- b.id = a.id
- }
- var d = this.tech_.textTracks();
- if (d)
- for (var e = 0; e < d.length; e++) d[e] !== this && d[e].removeCue(b);
- this.cues_.push(b), this.cues.setCues_(this.cues_)
- }, b.prototype.removeCue = function(a) {
- for (var b = !1, c = 0, d = this.cues_.length; c < d; c++) {
- this.cues_[c] === a && (this.cues_.splice(c, 1), b = !0)
- }
- b && this.cues.setCues_(this.cues_)
- }, b
- }(s["default"]);
- C.prototype.allowedEvents_ = {
- cuechange: "cuechange"
- }, c["default"] = C
- }, {
- 67: 67,
- 73: 73,
- 75: 75,
- 78: 78,
- 83: 83,
- 86: 86,
- 87: 87,
- 92: 92,
- 95: 95,
- 99: 99
- }
- ],
- 73: [
- function(a, b, c) {
- "use strict";
- c.__esModule = !0;
- c.VideoTrackKind = {
- alternative: "alternative",
- captions: "captions",
- main: "main",
- sign: "sign",
- subtitles: "subtitles",
- commentary: "commentary"
- }, c.AudioTrackKind = {
- alternative: "alternative",
- descriptions: "descriptions",
- main: "main",
- "main-desc": "main-desc",
- translation: "translation",
- commentary: "commentary"
- }, c.TextTrackKind = {
- subtitles: "subtitles",
- captions: "captions",
- descriptions: "descriptions",
- chapters: "chapters",
- metadata: "metadata"
- }, c.TextTrackMode = {
- disabled: "disabled",
- hidden: "hidden",
- showing: "showing"
- }
- }, {}
- ],
- 74: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(42),
- j = e(i),
- k = a(78),
- l = d(k),
- m = a(94),
- n = e(m),
- o = function(a) {
- function b() {
- var c, d = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
- e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
- f(this, b);
- var h = g(this, a.call(this));
- if (!e && (e = h, l.IS_IE8)) {
- e = n["default"].createElement("custom");
- for (var i in b.prototype) "constructor" !== i && (e[i] = b.prototype[i])
- }
- e.tracks_ = [], Object.defineProperty(e, "length", {
- get: function() {
- return this.tracks_.length
- }
- });
- for (var j = 0; j < d.length; j++) e.addTrack_(d[j]);
- return c = e, g(h, c)
- }
- return h(b, a), b.prototype.addTrack_ = function(a) {
- var b = this.tracks_.length;
- "" + b in this || Object.defineProperty(this, b, {
- get: function() {
- return this.tracks_[b]
- }
- }), this.tracks_.indexOf(a) === -1 && (this.tracks_.push(a), this.trigger({
- track: a,
- type: "addtrack"
- }))
- }, b.prototype.removeTrack_ = function(a) {
- for (var b = void 0, c = 0, d = this.length; c < d; c++)
- if (this[c] === a) {
- b = this[c], b.off && b.off(), this.tracks_.splice(c, 1);
- break
- }
- b && this.trigger({
- track: b,
- type: "removetrack"
- })
- }, b.prototype.getTrackById = function(a) {
- for (var b = null, c = 0, d = this.length; c < d; c++) {
- var e = this[c];
- if (e.id === a) {
- b = e;
- break
- }
- }
- return b
- }, b
- }(j["default"]);
- o.prototype.allowedEvents_ = {
- change: "change",
- addtrack: "addtrack",
- removetrack: "removetrack"
- };
- for (var p in o.prototype.allowedEvents_) o.prototype["on" + p] = null;
- c["default"] = o
- }, {
- 42: 42,
- 78: 78,
- 94: 94
- }
- ],
- 75: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(78),
- j = e(i),
- k = a(94),
- l = d(k),
- m = a(85),
- n = e(m),
- o = a(42),
- p = d(o),
- q = function(a) {
- function b() {
- var c, d = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
- f(this, b);
- var e = g(this, a.call(this)),
- h = e;
- if (j.IS_IE8) {
- h = l["default"].createElement("custom");
- for (var i in b.prototype) "constructor" !== i && (h[i] = b.prototype[i])
- }
- var k = {
- id: d.id || "vjs_track_" + n.newGUID(),
- kind: d.kind || "",
- label: d.label || "",
- language: d.language || ""
- },
- m = function(a) {
- Object.defineProperty(h, a, {
- get: function() {
- return k[a]
- },
- set: function() {}
- })
- };
- for (var o in k) m(o);
- return c = h, g(e, c)
- }
- return h(b, a), b
- }(p["default"]);
- c["default"] = q
- }, {
- 42: 42,
- 78: 78,
- 85: 85,
- 94: 94
- }
- ],
- 76: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(74),
- j = e(i),
- k = a(78),
- l = d(k),
- m = a(94),
- n = e(m),
- o = function(a, b) {
- for (var c = 0; c < a.length; c++) b.id !== a[c].id && (a[c].selected = !1)
- },
- p = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
- f(this, b);
- for (var h = void 0, i = e.length - 1; i >= 0; i--)
- if (e[i].selected) {
- o(e, e[i]);
- break
- }
- if (l.IS_IE8) {
- h = n["default"].createElement("custom");
- for (var k in j["default"].prototype) "constructor" !== k && (h[k] = j["default"].prototype[k]);
- for (var m in b.prototype) "constructor" !== m && (h[m] = b.prototype[m])
- }
- return h = c = g(this, a.call(this, e, h)), h.changing_ = !1, Object.defineProperty(h, "selectedIndex", {
- get: function() {
- for (var a = 0; a < this.length; a++)
- if (this[a].selected) return a;
- return -1
- },
- set: function() {}
- }), d = h, g(c, d)
- }
- return h(b, a), b.prototype.addTrack_ = function(b) {
- var c = this;
- b.selected && o(this, b), a.prototype.addTrack_.call(this, b), b.addEventListener && b.addEventListener("selectedchange", function() {
- c.changing_ || (c.changing_ = !0, o(c, b), c.changing_ = !1, c.trigger("change"))
- })
- }, b.prototype.addTrack = function(a) {
- this.addTrack_(a)
- }, b.prototype.removeTrack = function(b) {
- a.prototype.removeTrack_.call(this, b)
- }, b
- }(j["default"]);
- c["default"] = p
- }, {
- 74: 74,
- 78: 78,
- 94: 94
- }
- ],
- 77: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
- }
- function g(a, b) {
- if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- return !b || "object" != typeof b && "function" != typeof b ? a : b
- }
- function h(a, b) {
- if ("function" != typeof b && null !== b) throw new TypeError("Super expression must either be null or a function, not " + typeof b);
- a.prototype = Object.create(b && b.prototype, {
- constructor: {
- value: a,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- }), b && (Object.setPrototypeOf ? Object.setPrototypeOf(a, b) : a.__proto__ = b)
- }
- c.__esModule = !0;
- var i = a(73),
- j = a(75),
- k = e(j),
- l = a(87),
- m = e(l),
- n = a(78),
- o = d(n),
- p = function(a) {
- function b() {
- var c, d, e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
- f(this, b);
- var h = (0, m["default"])(e, {
- kind: i.VideoTrackKind[e.kind] || ""
- }),
- j = c = g(this, a.call(this, h)),
- k = !1;
- if (o.IS_IE8)
- for (var l in b.prototype) "constructor" !== l && (j[l] = b.prototype[l]);
- return Object.defineProperty(j, "selected", {
- get: function() {
- return k
- },
- set: function(a) {
- "boolean" == typeof a && a !== k && (k = a, this.trigger("selectedchange"))
- }
- }), h.selected && (j.selected = h.selected), d = j, g(c, d)
- }
- return h(b, a), b
- }(k["default"]);
- c["default"] = p
- }, {
- 73: 73,
- 75: 75,
- 78: 78,
- 87: 87
- }
- ],
- 78: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- 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;
- var f = a(81),
- g = e(f),
- h = a(95),
- i = d(h),
- j = i["default"].navigator && i["default"].navigator.userAgent || "",
- k = /AppleWebKit\/([\d.]+)/i.exec(j),
- l = k ? parseFloat(k.pop()) : null,
- m = c.IS_IPAD = /iPad/i.test(j),
- n = c.IS_IPHONE = /iPhone/i.test(j) && !m,
- o = c.IS_IPOD = /iPod/i.test(j),
- p = c.IS_IOS = n || m || o,
- q = (c.IOS_VERSION = function() {
- var a = j.match(/OS (\d+)_/i);
- return a && a[1] ? a[1] : null
- }(), c.IS_ANDROID = /Android/i.test(j)),
- r = c.ANDROID_VERSION = function() {
- var a = j.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);
- if (!a) return null;
- var b = a[1] && parseFloat(a[1]),
- c = a[2] && parseFloat(a[2]);
- return b && c ? parseFloat(a[1] + "." + a[2]) : b ? b : null
- }(),
- 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)),
- t = c.IS_CHROME = !s && /Chrome/i.test(j),
- u = (c.IS_IE8 = /MSIE\s8\.0/.test(j), c.IE_VERSION = function(a) {
- return a && parseFloat(a[1])
- }(/MSIE\s(\d+)\.\d/.exec(j)), c.IS_SAFARI = /Safari/i.test(j) && !t && !q && !s);
- 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
- }, {
- 81: 81,
- 95: 95
- }
- ],
- 79: [
- function(a, b, c) {
- "use strict";
- function d(a, b) {
- var c = 0,
- d = void 0,
- f = void 0;
- if (!b) return 0;
- a && a.length || (a = (0, e.createTimeRange)(0, 0));
- for (var g = 0; g < a.length; g++) d = a.start(g), f = a.end(g), f > b && (f = b), c += f - d;
- return c / b
- }
- c.__esModule = !0, c.bufferedPercent = d;
- var e = a(90)
- }, {
- 90: 90
- }
- ],
- 80: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b) {
- if (!a || !b) return "";
- if ("function" == typeof g["default"].getComputedStyle) {
- var c = g["default"].getComputedStyle(a);
- return c ? c[b] : ""
- }
- return a.currentStyle[b] || ""
- }
- c.__esModule = !0, c["default"] = e;
- var f = a(95),
- g = d(f)
- }, {
- 95: 95
- }
- ],
- 81: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function e(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function f(a, b) {
- return a.raw = b, a
- }
- function g(a) {
- return "string" == typeof a && /\S/.test(a)
- }
- function h(a) {
- if (/\s/.test(a)) throw new Error("class has illegal whitespace characters")
- }
- function i(a) {
- return new RegExp("(^|\\s)" + a + "($|\\s)")
- }
- function j() {
- return N["default"] === P["default"].document && "undefined" != typeof N["default"].createElement
- }
- function k(a) {
- return (0, W.isObject)(a) && 1 === a.nodeType
- }
- function l(a) {
- return function(b, c) {
- if (!g(b)) return N["default"][a](null);
- g(c) && (c = N["default"].querySelector(c));
- var d = k(c) ? c : N["default"];
- return d[a] && d[a](b)
- }
- }
- function m(a) {
- return 0 === a.indexOf("#") && (a = a.slice(1)), N["default"].getElementById(a)
- }
- function n() {
- var a = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div",
- b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
- d = arguments[3],
- e = N["default"].createElement(a);
- return Object.getOwnPropertyNames(b).forEach(function(a) {
- var c = b[a];
- 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
- }), Object.getOwnPropertyNames(c).forEach(function(a) {
- e.setAttribute(a, c[a])
- }), d && J(e, d), e
- }
- function o(a, b) {
- return "undefined" == typeof a.textContent ? a.innerText = b : a.textContent = b, a
- }
- function p(a, b) {
- b.firstChild ? b.insertBefore(a, b.firstChild) : b.appendChild(a)
- }
- function q(a) {
- var b = a[Y];
- return b || (b = a[Y] = R.newGUID()), X[b] || (X[b] = {}), X[b]
- }
- function r(a) {
- var b = a[Y];
- return !!b && !!Object.getOwnPropertyNames(X[b]).length
- }
- function s(a) {
- var b = a[Y];
- if (b) {
- delete X[b];
- try {
- delete a[Y]
- } catch (c) {
- a.removeAttribute ? a.removeAttribute(Y) : a[Y] = null
- }
- }
- }
- function t(a, b) {
- return h(b), a.classList ? a.classList.contains(b) : i(b).test(a.className)
- }
- function u(a, b) {
- return a.classList ? a.classList.add(b) : t(a, b) || (a.className = (a.className + " " + b).trim()), a
- }
- function v(a, b) {
- return a.classList ? a.classList.remove(b) : (h(b), a.className = a.className.split(/\s+/).filter(function(a) {
- return a !== b
- }).join(" ")), a
- }
- function w(a, b, c) {
- var d = t(a, b);
- if ("function" == typeof c && (c = c(a, b)), "boolean" != typeof c && (c = !d), c !== d) return c ? u(a, b) : v(a, b), a
- }
- function x(a, b) {
- Object.getOwnPropertyNames(b).forEach(function(c) {
- var d = b[c];
- null === d || void 0 === d || d === !1 ? a.removeAttribute(c) : a.setAttribute(c, d === !0 ? "" : d)
- })
- }
- function y(a) {
- var b = {};
- if (a && a.attributes && a.attributes.length > 0)
- for (var c = a.attributes, d = c.length - 1; d >= 0; d--) {
- var e = c[d].name,
- f = c[d].value;
- "boolean" != typeof a[e] && ",autoplay,controls,loop,muted,default,".indexOf("," + e + ",") === -1 || (f = null !== f), b[e] = f
- }
- return b
- }
- function z(a, b) {
- return a.getAttribute(b)
- }
- function A(a, b, c) {
- a.setAttribute(b, c)
- }
- function B(a, b) {
- a.removeAttribute(b)
- }
- function C() {
- N["default"].body.focus(), N["default"].onselectstart = function() {
- return !1
- }
- }
- function D() {
- N["default"].onselectstart = function() {
- return !0
- }
- }
- function E(a) {
- var b = void 0;
- if (a.getBoundingClientRect && a.parentNode && (b = a.getBoundingClientRect()), !b) return {
- left: 0,
- top: 0
- };
- var c = N["default"].documentElement,
- d = N["default"].body,
- e = c.clientLeft || d.clientLeft || 0,
- f = P["default"].pageXOffset || d.scrollLeft,
- g = b.left + f - e,
- h = c.clientTop || d.clientTop || 0,
- i = P["default"].pageYOffset || d.scrollTop,
- j = b.top + i - h;
- return {
- left: Math.round(g),
- top: Math.round(j)
- }
- }
- function F(a, b) {
- var c = {},
- d = E(a),
- e = a.offsetWidth,
- f = a.offsetHeight,
- g = d.top,
- h = d.left,
- i = b.pageY,
- j = b.pageX;
- 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
- }
- function G(a) {
- return (0, W.isObject)(a) && 3 === a.nodeType
- }
- function H(a) {
- for (; a.firstChild;) a.removeChild(a.firstChild);
- return a
- }
- function I(a) {
- return "function" == typeof a && (a = a()), (Array.isArray(a) ? a : [a]).map(function(a) {
- return "function" == typeof a && (a = a()), k(a) || G(a) ? a : "string" == typeof a && /\S/.test(a) ? N["default"].createTextNode(a) : void 0
- }).filter(function(a) {
- return a
- })
- }
- function J(a, b) {
- return I(b).forEach(function(b) {
- return a.appendChild(b)
- }), a
- }
- function K(a, b) {
- return J(H(a), b)
- }
- c.__esModule = !0, c.$$ = c.$ = void 0;
- 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 ", "."]);
- 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;
- var M = a(94),
- N = e(M),
- O = a(95),
- P = e(O),
- Q = a(85),
- R = d(Q),
- S = a(86),
- T = e(S),
- U = a(98),
- V = e(U),
- W = a(88),
- X = {},
- Y = "vdata" + (new Date).getTime();
- c.$ = l("querySelector"), c.$$ = l("querySelectorAll")
- }, {
- 85: 85,
- 86: 86,
- 88: 88,
- 94: 94,
- 95: 95,
- 98: 98
- }
- ],
- 82: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a, b) {
- var c = n.getElData(a);
- 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)
- }
- function g(a, b, c, d) {
- c.forEach(function(c) {
- a(b, c, d)
- })
- }
- function h(a) {
- function b() {
- return !0
- }
- function c() {
- return !1
- }
- if (!a || !a.isPropagationStopped) {
- var d = a || t["default"].event;
- a = {};
- for (var e in d) "layerX" !== e && "layerY" !== e && "keyLocation" !== e && "webkitMovementX" !== e && "webkitMovementY" !== e && ("returnValue" === e && d.preventDefault || (a[e] = d[e]));
- if (a.target || (a.target = a.srcElement || v["default"]), a.relatedTarget || (a.relatedTarget = a.fromElement === a.target ? a.toElement : a.fromElement), a.preventDefault = function() {
- d.preventDefault && d.preventDefault(), a.returnValue = !1, d.returnValue = !1, a.defaultPrevented = !0
- }, a.defaultPrevented = !1, a.stopPropagation = function() {
- d.stopPropagation && d.stopPropagation(), a.cancelBubble = !0, d.cancelBubble = !0, a.isPropagationStopped = b
- }, a.isPropagationStopped = c, a.stopImmediatePropagation = function() {
- d.stopImmediatePropagation && d.stopImmediatePropagation(), a.isImmediatePropagationStopped = b, a.stopPropagation()
- }, a.isImmediatePropagationStopped = c, null !== a.clientX && void 0 !== a.clientX) {
- var f = v["default"].documentElement,
- g = v["default"].body;
- 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)
- }
- 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)
- }
- return a
- }
- function i(a, b, c) {
- if (Array.isArray(b)) return g(i, a, b, c);
- var d = n.getElData(a);
- 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) {
- if (!d.disabled) {
- b = h(b);
- var e = d.handlers[b.type];
- if (e)
- for (var f = e.slice(0), g = 0, i = f.length; g < i && !b.isImmediatePropagationStopped(); g++) try {
- f[g].call(a, b, c)
- } catch (j) {
- r["default"].error(j)
- }
- }
- }), 1 === d.handlers[b].length && (a.addEventListener ? a.addEventListener(b, d.dispatcher, !1) : a.attachEvent && a.attachEvent("on" + b, d.dispatcher))
- }
- function j(a, b, c) {
- if (n.hasElData(a)) {
- var d = n.getElData(a);
- if (d.handlers) {
- if (Array.isArray(b)) return g(j, a, b, c);
- var e = function(b) {
- d.handlers[b] = [], f(a, b)
- };
- if (b) {
- var h = d.handlers[b];
- if (h) {
- if (!c) return void e(b);
- if (c.guid)
- for (var i = 0; i < h.length; i++) h[i].guid === c.guid && h.splice(i--, 1);
- f(a, b)
- }
- } else
- for (var k in d.handlers) e(k)
- }
- }
- }
- function k(a, b, c) {
- var d = n.hasElData(a) ? n.getElData(a) : {},
- e = a.parentNode || a.ownerDocument;
- if ("string" == typeof b && (b = {
- type: b,
- target: a
- }), b = h(b), d.dispatcher && d.dispatcher.call(a, b, c), e && !b.isPropagationStopped() && b.bubbles === !0) k.call(null, e, b, c);
- else if (!e && !b.defaultPrevented) {
- var f = n.getElData(b.target);
- b.target[b.type] && (f.disabled = !0, "function" == typeof b.target[b.type] && b.target[b.type](), f.disabled = !1)
- }
- return !b.defaultPrevented
- }
- function l(a, b, c) {
- if (Array.isArray(b)) return g(l, a, b, c);
- var d = function e() {
- j(a, b, e), c.apply(this, arguments)
- };
- d.guid = c.guid = c.guid || p.newGUID(), i(a, b, d)
- }
- c.__esModule = !0, c.fixEvent = h, c.on = i, c.off = j, c.trigger = k, c.one = l;
- var m = a(81),
- n = e(m),
- o = a(85),
- p = e(o),
- q = a(86),
- r = d(q),
- s = a(95),
- t = d(s),
- u = a(94),
- v = d(u)
- }, {
- 81: 81,
- 85: 85,
- 86: 86,
- 94: 94,
- 95: 95
- }
- ],
- 83: [
- function(a, b, c) {
- "use strict";
- c.__esModule = !0, c.throttle = c.bind = void 0;
- var d = a(85);
- c.bind = function(a, b, c) {
- b.guid || (b.guid = (0, d.newGUID)());
- var e = function() {
- return b.apply(a, arguments)
- };
- return e.guid = c ? c + "_" + b.guid : b.guid, e
- }, c.throttle = function(a, b) {
- var c = Date.now();
- return function() {
- var d = Date.now();
- d - c >= b && (a.apply(void 0, arguments), c = d)
- }
- }
- }, {
- 85: 85
- }
- ],
- 84: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- var b = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : a;
- a = a < 0 ? 0 : a;
- var c = Math.floor(a % 60),
- d = Math.floor(a / 60 % 60),
- e = Math.floor(a / 3600),
- f = Math.floor(b / 60 % 60),
- g = Math.floor(b / 3600);
- 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
- }
- c.__esModule = !0, c["default"] = d
- }, {}
- ],
- 85: [
- function(a, b, c) {
- "use strict";
- function d() {
- return e++
- }
- c.__esModule = !0, c.newGUID = d;
- var e = 1
- }, {}
- ],
- 86: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0, c.logByType = void 0;
- var e = a(95),
- f = d(e),
- g = a(78),
- h = a(88),
- i = void 0,
- j = c.logByType = function(a, b) {
- // var c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : !!g.IE_VERSION && g.IE_VERSION < 11;
- // "log" !== a && b.unshift(a.toUpperCase() + ":"), i.history.push(b), b.unshift("VIDEOJS:");
- // var d = f["default"].console && f["default"].console[a];
- // d && (c && (b = b.map(function(a) {
- // if ((0, h.isObject)(a) || Array.isArray(a)) try {
- // return JSON.stringify(a)
- // } catch (b) {
- // return String(a)
- // }
- // return String(a)
- // }).join(" ")), d.apply ? d[Array.isArray(b) ? "apply" : "call"](f["default"].console, b) : d(b))
- console.log("媒体不能加载,要么是因为服务器或网络失败,要么是因为格式不受支持。");
- };
- i = function() {
- for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
- j("log", b)
- }, i.history = [], i.error = function() {
- for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
- return j("error", b)
- }, i.warn = function() {
- for (var a = arguments.length, b = Array(a), c = 0; c < a; c++) b[c] = arguments[c];
- return j("warn", b)
- }, c["default"] = i
- }, {
- 78: 78,
- 88: 88,
- 95: 95
- }
- ],
- 87: [
- function(a, b, c) {
- "use strict";
- function d() {
- for (var a = {}, b = arguments.length, c = Array(b), f = 0; f < b; f++) c[f] = arguments[f];
- return c.forEach(function(b) {
- b && (0, e.each)(b, function(b, c) {
- if (!(0, e.isPlain)(b)) return void(a[c] = b);
- (0, e.isPlain)(a[c]) || (a[c] = {}), a[c] = d(a[c], b)
- })
- }), a
- }
- c.__esModule = !0, c["default"] = d;
- var e = a(88)
- }, {
- 88: 88
- }
- ],
- 88: [
- function(a, b, c) {
- "use strict";
- function d(a, b) {
- k(a).forEach(function(c) {
- return b(a[c], c)
- })
- }
- function e(a, b) {
- var c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0;
- return k(a).reduce(function(c, d) {
- return b(c, a[d], d)
- }, c)
- }
- function f(a) {
- for (var b = arguments.length, c = Array(b > 1 ? b - 1 : 0), e = 1; e < b; e++) c[e - 1] = arguments[e];
- return Object.assign ? Object.assign.apply(Object, [a].concat(c)) : (c.forEach(function(b) {
- b && d(b, function(b, c) {
- a[c] = b
- })
- }), a)
- }
- function g(a) {
- return !!a && "object" === (void 0 === a ? "undefined" : i(a))
- }
- function h(a) {
- return g(a) && "[object Object]" === j.call(a) && a.constructor === Object
- }
- c.__esModule = !0;
- var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
- return typeof a
- } : function(a) {
- return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
- };
- c.each = d, c.reduce = e, c.assign = f, c.isObject = g, c.isPlain = h;
- var j = Object.prototype.toString,
- k = function(a) {
- return g(a) ? Object.keys(a) : []
- }
- }, {}
- ],
- 89: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0, c.setTextContent = c.createStyleElement = void 0;
- var e = a(94),
- f = d(e);
- c.createStyleElement = function(a) {
- var b = f["default"].createElement("style");
- return b.className = a, b
- }, c.setTextContent = function(a, b) {
- a.styleSheet ? a.styleSheet.cssText = b : a.textContent = b
- }
- }, {
- 94: 94
- }
- ],
- 90: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function e(a, b, c) {
- 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 + ").")
- }
- function f(a, b, c, d) {
- 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]
- }
- function g(a) {
- return void 0 === a || 0 === a.length ? {
- length: 0,
- start: function() {
- throw new Error("This TimeRanges object is empty")
- },
- end: function() {
- throw new Error("This TimeRanges object is empty")
- }
- } : {
- length: a.length,
- start: f.bind(null, "start", 0, a),
- end: f.bind(null, "end", 1, a)
- }
- }
- function h(a, b) {
- return Array.isArray(a) ? g(a) : void 0 === a || void 0 === b ? g() : g([
- [a, b]
- ])
- }
- c.__esModule = !0, c.createTimeRange = void 0, c.createTimeRanges = h;
- var i = a(86),
- j = d(i);
- c.createTimeRange = h
- }, {
- 86: 86
- }
- ],
- 91: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return "string" != typeof a ? a : a.charAt(0).toUpperCase() + a.slice(1)
- }
- c.__esModule = !0, c["default"] = d
- }, {}
- ],
- 92: [
- function(a, b, c) {
- "use strict";
- function d(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- c.__esModule = !0, c.isCrossOrigin = c.getFileExtension = c.getAbsoluteURL = c.parseUrl = void 0;
- var e = a(94),
- f = d(e),
- g = a(95),
- h = d(g),
- i = c.parseUrl = function(a) {
- var b = ["protocol", "hostname", "port", "pathname", "search", "hash", "host"],
- c = f["default"].createElement("a");
- c.href = a;
- var d = "" === c.host && "file:" !== c.protocol,
- e = void 0;
- 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));
- for (var g = {}, h = 0; h < b.length; h++) g[b[h]] = c[b[h]];
- 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
- };
- c.getAbsoluteURL = function(a) {
- if (!a.match(/^https?:\/\//)) {
- var b = f["default"].createElement("div");
- b.innerHTML = '<a href="' + a + '">x</a>', a = b.firstChild.href
- }
- return a
- }, c.getFileExtension = function(a) {
- if ("string" == typeof a) {
- var b = /^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,
- c = b.exec(a);
- if (c) return c.pop().toLowerCase()
- }
- return ""
- }, c.isCrossOrigin = function(a) {
- var b = h["default"].location,
- c = i(a);
- return (":" === c.protocol ? b.protocol : c.protocol) + c.host !== b.protocol + b.host
- }
- }, {
- 94: 94,
- 95: 95
- }
- ],
- 93: [
- function(b, c, d) {
- "use strict";
- function e(a) {
- if (a && a.__esModule) return a;
- var b = {};
- if (null != a)
- for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (b[c] = a[c]);
- return b["default"] = a, b
- }
- function f(a) {
- return a && a.__esModule ? a : {
- "default": a
- }
- }
- function g(a, b, c) {
- var d = void 0;
- if ("string" == typeof a) {
- 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];
- d = Q.getEl(a)
- } else d = a; if (!d || !d.nodeName) throw new TypeError("The element or ID supplied is not valid. (videojs)");
- if (d.player || x["default"].players[d.playerId]) return d.player || x["default"].players[d.playerId];
- b = b || {}, g.hooks("beforesetup").forEach(function(a) {
- var c = a(d, (0, B["default"])(b));
- if (!(0, V.isObject)(c) || Array.isArray(c)) return void O["default"].error("please return an object in beforesetup hooks");
- b = (0, B["default"])(b, c)
- });
- var e = r["default"].getComponent("Player"),
- f = new e(d, b, c);
- return g.hooks("setup").forEach(function(a) {
- return a(f)
- }), f
- }
- d.__esModule = !0;
- var h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
- return typeof a
- } : function(a) {
- return a && "function" == typeof Symbol && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a
- },
- i = b(95),
- j = f(i),
- k = b(94),
- l = f(k),
- m = b(56),
- n = e(m),
- o = b(89),
- p = e(o),
- q = b(5),
- r = f(q),
- s = b(42),
- t = f(s),
- u = b(82),
- v = e(u),
- w = b(51),
- x = f(w),
- y = b(52),
- z = f(y),
- A = b(87),
- B = f(A),
- C = b(83),
- D = e(C),
- E = b(72),
- F = f(E),
- G = b(64),
- H = f(G),
- I = b(77),
- J = f(I),
- K = b(90),
- L = b(84),
- M = f(L),
- N = b(86),
- O = f(N),
- P = b(81),
- Q = e(P),
- R = b(78),
- S = e(R),
- T = b(92),
- U = e(T),
- V = b(88),
- W = b(80),
- X = f(W),
- Y = b(43),
- Z = f(Y),
- $ = b(99),
- _ = f($),
- aa = b(62),
- ba = f(aa);
- 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) {
- return g.hooks_[a] = g.hooks_[a] || [], b && (g.hooks_[a] = g.hooks_[a].concat(b)), g.hooks_[a]
- }, g.hook = function(a, b) {
- g.hooks(a, b)
- }, g.removeHook = function(a, b) {
- var c = g.hooks(a).indexOf(b);
- return !(c <= -1) && (g.hooks_[a] = g.hooks_[a].slice(), g.hooks_[a].splice(c, 1), !0)
- }, j["default"].VIDEOJS_NO_DYNAMIC_STYLE !== !0 && Q.isReal()) {
- var ca = Q.$(".vjs-styles-defaults");
- if (!ca) {
- ca = p.createStyleElement("vjs-styles-defaults");
- var da = Q.$("head");
- 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 ")
- }
- }
- n.autoSetupTimeout(1, g), g.VERSION = "5.18.4", g.options = x["default"].prototype.options_, g.getPlayers = function() {
- return x["default"].players
- }, g.players = x["default"].players, g.getComponent = r["default"].getComponent, g.registerComponent = function(a, b) {
- 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)
- }, 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) {
- var c;
- return a = ("" + a).toLowerCase(), g.options.languages = (0, B["default"])(g.options.languages, (c = {}, c[a] = b, c)), g.options.languages[a]
- }, 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() {
- return g
- }) : "object" === (void 0 === d ? "undefined" : h(d)) && "object" === (void 0 === c ? "undefined" : h(c)) && (c.exports = g), d["default"] = g
- }, {
- 42: 42,
- 43: 43,
- 5: 5,
- 51: 51,
- 52: 52,
- 56: 56,
- 62: 62,
- 64: 64,
- 72: 72,
- 77: 77,
- 78: 78,
- 80: 80,
- 81: 81,
- 82: 82,
- 83: 83,
- 84: 84,
- 86: 86,
- 87: 87,
- 88: 88,
- 89: 89,
- 90: 90,
- 92: 92,
- 94: 94,
- 95: 95,
- 99: 99
- }
- ],
- 94: [
- function(a, b, c) {
- (function(c) {
- var d = void 0 !== c ? c : "undefined" != typeof window ? window : {},
- e = a(96);
- if ("undefined" != typeof document) b.exports = document;
- else {
- var f = d["__GLOBAL_DOCUMENT_CACHE@4"];
- f || (f = d["__GLOBAL_DOCUMENT_CACHE@4"] = e), b.exports = f
- }
- }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
- }, {
- 96: 96
- }
- ],
- 95: [
- function(a, b, c) {
- (function(a) {
- "undefined" != typeof window ? b.exports = window : void 0 !== a ? b.exports = a : "undefined" != typeof self ? b.exports = self : b.exports = {}
- }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
- }, {}
- ],
- 96: [
- function(a, b, c) {}, {}
- ],
- 97: [
- function(a, b, c) {
- function d(a, b) {
- var c, d = null;
- try {
- c = JSON.parse(a, b)
- } catch (e) {
- d = e
- }
- return [d, c]
- }
- b.exports = d
- }, {}
- ],
- 98: [
- function(a, b, c) {
- function d(a) {
- return a.replace(/\n\r?\s*/g, "")
- }
- b.exports = function(a) {
- for (var b = "", c = 0; c < arguments.length; c++) b += d(a[c]) + (arguments[c + 1] || "");
- return b
- }
- }, {}
- ],
- 99: [
- function(a, b, c) {
- "use strict";
- function d(a, b) {
- for (var c = 0; c < a.length; c++) b(a[c])
- }
- function e(a) {
- for (var b in a)
- if (a.hasOwnProperty(b)) return !1;
- return !0
- }
- function f(a, b, c) {
- var d = a;
- return l(b) ? (c = b, "string" == typeof a && (d = {
- uri: a
- })) : d = n(b, {
- uri: a
- }), d.callback = c, d
- }
- function g(a, b, c) {
- return b = f(a, b, c), h(b)
- }
- function h(a) {
- function b() {
- 4 === k.readyState && setTimeout(f, 0)
- }
- function c() {
- var a = void 0;
- if (a = k.response ? k.response : k.responseText || i(k), u) try {
- a = JSON.parse(a)
- } catch (b) {}
- return a
- }
- function d(a) {
- return clearTimeout(o), a instanceof Error || (a = new Error("" + (a || "Unknown XMLHttpRequest Error"))), a.statusCode = 0, j(a, v)
- }
- function f() {
- if (!n) {
- var b;
- clearTimeout(o), b = a.useXDR && void 0 === k.status ? 200 : 1223 === k.status ? 204 : k.status;
- var d = v,
- e = null;
- return 0 !== b ? (d = {
- body: c(),
- statusCode: b,
- method: q,
- headers: {},
- url: p,
- rawRequest: k
- }, k.getAllResponseHeaders && (d.headers = m(k.getAllResponseHeaders()))) : e = new Error("Internal XMLHttpRequest Error"), j(e, d, d.body)
- }
- }
- if ("undefined" == typeof a.callback) throw new Error("callback argument missing");
- var h = !1,
- j = function(b, c, d) {
- h || (h = !0, a.callback(b, c, d))
- },
- k = a.xhr || null;
- k || (k = a.cors || a.useXDR ? new g.XDomainRequest : new g.XMLHttpRequest);
- var l, n, o, p = k.url = a.uri || a.url,
- q = k.method = a.method || "GET",
- r = a.body || a.data,
- s = k.headers = a.headers || {},
- t = !!a.sync,
- u = !1,
- v = {
- body: void 0,
- headers: {},
- statusCode: 0,
- method: q,
- url: p,
- rawRequest: k
- };
- 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() {
- n = !0
- }, k.ontimeout = d, k.open(q, p, !t, a.username, a.password), t || (k.withCredentials = !!a.withCredentials), !t && a.timeout > 0 && (o = setTimeout(function() {
- if (!n) {
- n = !0, k.abort("timeout");
- var a = new Error("XMLHttpRequest timeout");
- a.code = "ETIMEDOUT", d(a)
- }
- }, a.timeout)), k.setRequestHeader)
- for (l in s) s.hasOwnProperty(l) && k.setRequestHeader(l, s[l]);
- else if (a.headers && !e(a.headers)) throw new Error("Headers cannot be set on an XDomainRequest object");
- return "responseType" in a && (k.responseType = a.responseType), "beforeSend" in a && "function" == typeof a.beforeSend && a.beforeSend(k), k.send(r || null), k
- }
- function i(a) {
- if ("document" === a.responseType) return a.responseXML;
- var b = a.responseXML && "parsererror" === a.responseXML.documentElement.nodeName;
- return "" !== a.responseType || b ? null : a.responseXML
- }
- function j() {}
- var k = a(95),
- l = a(100),
- m = a(103),
- n = a(104);
- 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) {
- g["delete" === a ? "del" : a] = function(b, c, d) {
- return c = f(b, c, d), c.method = a.toUpperCase(), h(c)
- }
- })
- }, {
- 100: 100,
- 103: 103,
- 104: 104,
- 95: 95
- }
- ],
- 100: [
- function(a, b, c) {
- function d(a) {
- var b = e.call(a);
- 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)
- }
- b.exports = d;
- var e = Object.prototype.toString
- }, {}
- ],
- 101: [
- function(a, b, c) {
- function d(a, b, c) {
- if (!h(b)) throw new TypeError("iterator must be a function");
- 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)
- }
- function e(a, b, c) {
- for (var d = 0, e = a.length; d < e; d++) j.call(a, d) && b.call(c, a[d], d, a)
- }
- function f(a, b, c) {
- for (var d = 0, e = a.length; d < e; d++) b.call(c, a.charAt(d), d, a)
- }
- function g(a, b, c) {
- for (var d in a) j.call(a, d) && b.call(c, a[d], d, a)
- }
- var h = a(100);
- b.exports = d;
- var i = Object.prototype.toString,
- j = Object.prototype.hasOwnProperty
- }, {
- 100: 100
- }
- ],
- 102: [
- function(a, b, c) {
- function d(a) {
- return a.replace(/^\s*|\s*$/g, "")
- }
- c = b.exports = d, c.left = function(a) {
- return a.replace(/^\s*/, "")
- }, c.right = function(a) {
- return a.replace(/\s*$/, "")
- }
- }, {}
- ],
- 103: [
- function(a, b, c) {
- var d = a(102),
- e = a(101),
- f = function(a) {
- return "[object Array]" === Object.prototype.toString.call(a)
- };
- b.exports = function(a) {
- if (!a) return {};
- var b = {};
- return e(d(a).split("\n"), function(a) {
- var c = a.indexOf(":"),
- e = d(a.slice(0, c)).toLowerCase(),
- g = d(a.slice(c + 1));
- "undefined" == typeof b[e] ? b[e] = g : f(b[e]) ? b[e].push(g) : b[e] = [b[e], g]
- }), b
- }
- }, {
- 101: 101,
- 102: 102
- }
- ],
- 104: [
- function(a, b, c) {
- function d() {
- for (var a = {}, b = 0; b < arguments.length; b++) {
- var c = arguments[b];
- for (var d in c) e.call(c, d) && (a[d] = c[d])
- }
- return a
- }
- b.exports = d;
- var e = Object.prototype.hasOwnProperty
- }, {}
- ],
- 105: [
- function(a, b, c) {
- var d = b.exports = {
- WebVTT: a(106).WebVTT,
- VTTCue: a(107).VTTCue,
- VTTRegion: a(109).VTTRegion
- };
- window.vttjs = d, window.WebVTT = d.WebVTT;
- var e = d.VTTCue,
- f = d.VTTRegion,
- g = window.VTTCue,
- h = window.VTTRegion;
- d.shim = function() {
- window.VTTCue = e, window.VTTRegion = f
- }, d.restore = function() {
- window.VTTCue = g, window.VTTRegion = h
- }, window.VTTCue || d.shim()
- }, {
- 106: 106,
- 107: 107,
- 109: 109
- }
- ],
- 106: [
- function(a, b, c) {
- ! function(a) {
- function b(a, b) {
- this.name = "ParsingError", this.code = a.code, this.message = b || a.message
- }
- function c(a) {
- function b(a, b, c, d) {
- return 3600 * (0 | a) + 60 * (0 | b) + (0 | c) + (0 | d) / 1e3
- }
- var c = a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);
- 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
- }
- function d() {
- this.values = p(null)
- }
- function e(a, b, c, d) {
- var e = d ? a.split(d) : [a];
- for (var f in e)
- if ("string" == typeof e[f]) {
- var g = e[f].split(c);
- if (2 === g.length) {
- var h = g[0],
- i = g[1];
- b(h, i)
- }
- }
- }
- function f(a, f, g) {
- function h() {
- var d = c(a);
- if (null === d) throw new b(b.Errors.BadTimeStamp, "Malformed timestamp: " + k);
- return a = a.replace(/^[^\sa-zA-Z-]+/, ""), d
- }
- function i(a, b) {
- var c = new d;
- e(a, function(a, b) {
- switch (a) {
- case "region":
- for (var d = g.length - 1; d >= 0; d--)
- if (g[d].id === b) {
- c.set(a, g[d].region);
- break
- }
- break;
- case "vertical":
- c.alt(a, b, ["rl", "lr"]);
- break;
- case "line":
- var e = b.split(","),
- f = e[0];
- 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"]);
- break;
- case "position":
- e = b.split(","), c.percent(a, e[0]), 2 === e.length && c.alt("positionAlign", e[1], ["start", "middle", "end"]);
- break;
- case "size":
- c.percent(a, b);
- break;
- case "align":
- c.alt(a, b, ["start", "middle", "end", "left", "right"])
- }
- }, /:/, /\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", {
- start: 0,
- left: 0,
- middle: 50,
- end: 100,
- right: 100
- }, b.align), b.positionAlign = c.get("positionAlign", {
- start: "start",
- left: "start",
- middle: "middle",
- end: "end",
- right: "end"
- }, b.align)
- }
- function j() {
- a = a.replace(/^\s+/, "")
- }
- var k = a;
- 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);
- a = a.substr(3), j(), f.endTime = h(), j(), i(a, f)
- }
- function g(a, b) {
- function d() {
- function a(a) {
- return b = b.substr(a.length), a
- }
- if (!b) return null;
- var c = b.match(/^([^<]*)(<[^>]+>?)?/);
- return a(c[1] ? c[1] : c[2])
- }
- function e(a) {
- return q[a]
- }
- function f(a) {
- for (; o = a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);) a = a.replace(o[0], e);
- return a
- }
- function g(a, b) {
- return !t[b.localName] || t[b.localName] === a.localName
- }
- function h(b, c) {
- var d = r[b];
- if (!d) return null;
- var e = a.document.createElement(d);
- e.localName = d;
- var f = s[b];
- return f && c && (e[f] = c.trim()), e
- }
- for (var i, j = a.document.createElement("div"), k = j, l = []; null !== (i = d());)
- if ("<" !== i[0]) k.appendChild(a.document.createTextNode(f(i)));
- else {
- if ("/" === i[1]) {
- l.length && l[l.length - 1] === i.substr(2).replace(">", "") && (l.pop(), k = k.parentNode);
- continue
- }
- var m, n = c(i.substr(1, i.length - 2));
- if (n) {
- m = a.document.createProcessingInstruction("timestamp", n), k.appendChild(m);
- continue
- }
- var o = i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
- if (!o) continue;
- if (m = h(o[1], o[3]), !m) continue;
- if (!g(k, m)) continue;
- o[2] && (m.className = o[2].substr(1).replace(".", " ")), l.push(o[1]), k.appendChild(m), k = m
- }
- return j
- }
- function h(a) {
- for (var b = 0; b < u.length; b++) {
- var c = u[b];
- if (a >= c[0] && a <= c[1]) return !0
- }
- return !1
- }
- function i(a) {
- function b(a, b) {
- for (var c = b.childNodes.length - 1; c >= 0; c--) a.push(b.childNodes[c])
- }
- function c(a) {
- if (!a || !a.length) return null;
- var d = a.pop(),
- e = d.textContent || d.innerText;
- if (e) {
- var f = e.match(/^.*(\n|\r)/);
- return f ? (a.length = 0, f[0]) : e
- }
- return "ruby" === d.tagName ? c(a) : d.childNodes ? (b(a, d), c(a)) : void 0
- }
- var d, e = [],
- f = "";
- if (!a || !a.childNodes) return "ltr";
- for (b(e, a); f = c(e);)
- for (var g = 0; g < f.length; g++)
- if (d = f.charCodeAt(g), h(d)) return "rtl";
- return "ltr"
- }
- function j(a) {
- if ("number" == typeof a.line && (a.snapToLines || a.line >= 0 && a.line <= 100)) return a.line;
- if (!a.track || !a.track.textTrackList || !a.track.textTrackList.mediaElement) return -1;
- for (var b = a.track, c = b.textTrackList, d = 0, e = 0; e < c.length && c[e] !== b; e++) "showing" === c[e].mode && d++;
- return ++d * -1
- }
- function k() {}
- function l(a, b, c) {
- var d = /MSIE\s8\.0/.test(navigator.userAgent),
- e = "rgba(255, 255, 255, 1)",
- f = "rgba(0, 0, 0, 0.8)";
- d && (e = "rgb(255, 255, 255)", f = "rgb(0, 0, 0)"), k.call(this), this.cue = b, this.cueDiv = g(a, b.text);
- var h = {
- color: e,
- backgroundColor: f,
- position: "relative",
- left: 0,
- right: 0,
- top: 0,
- bottom: 0,
- display: "inline"
- };
- 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 = {
- textAlign: "middle" === b.align ? "center" : b.align,
- font: c.font,
- whiteSpace: "pre-line",
- position: "absolute"
- }, 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);
- var j = 0;
- switch (b.positionAlign) {
- case "start":
- j = b.position;
- break;
- case "middle":
- j = b.position - b.size / 2;
- break;
- case "end":
- j = b.position - b.size
- }
- "" === b.vertical ? this.applyStyles({
- left: this.formatStyle(j, "%"),
- width: this.formatStyle(b.size, "%")
- }) : this.applyStyles({
- top: this.formatStyle(j, "%"),
- height: this.formatStyle(b.size, "%")
- }), this.move = function(a) {
- this.applyStyles({
- top: this.formatStyle(a.top, "px"),
- bottom: this.formatStyle(a.bottom, "px"),
- left: this.formatStyle(a.left, "px"),
- right: this.formatStyle(a.right, "px"),
- height: this.formatStyle(a.height, "px"),
- width: this.formatStyle(a.width, "px")
- })
- }
- }
- function m(a) {
- var b, c, d, e, f = /MSIE\s8\.0/.test(navigator.userAgent);
- if (a.div) {
- c = a.div.offsetHeight, d = a.div.offsetWidth, e = a.div.offsetTop;
- var g = (g = a.div.childNodes) && (g = g[0]) && g.getClientRects && g.getClientRects();
- a = a.div.getBoundingClientRect(), b = g ? Math.max(g[0] && g[0].height || 0, a.height / g.length) : 0
- }
- 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)
- }
- function n(a, b, c, d) {
- function e(a, b) {
- for (var e, f = new m(a), g = 1, h = 0; h < b.length; h++) {
- for (; a.overlapsOppositeAxis(c, b[h]) || a.within(c) && a.overlapsAny(d);) a.move(b[h]);
- if (a.within(c)) return a;
- var i = a.intersectPercentage(c);
- g > i && (e = new m(a), g = i), a = new m(f)
- }
- return e || f
- }
- var f = new m(b),
- g = b.cue,
- h = j(g),
- i = [];
- if (g.snapToLines) {
- var k;
- switch (g.vertical) {
- case "":
- i = ["+y", "-y"], k = "height";
- break;
- case "rl":
- i = ["+x", "-x"], k = "width";
- break;
- case "lr":
- i = ["-x", "+x"], k = "width"
- }
- var l = f.lineHeight,
- n = l * Math.round(h),
- o = c[k] + l,
- p = i[0];
- 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)
- } else {
- var q = f.lineHeight / c.height * 100;
- switch (g.lineAlign) {
- case "middle":
- h -= q / 2;
- break;
- case "end":
- h -= q
- }
- switch (g.vertical) {
- case "":
- b.applyStyles({
- top: b.formatStyle(h, "%")
- });
- break;
- case "rl":
- b.applyStyles({
- left: b.formatStyle(h, "%")
- });
- break;
- case "lr":
- b.applyStyles({
- right: b.formatStyle(h, "%")
- })
- }
- i = ["+y", "-x", "+x", "-y"], f = new m(b)
- }
- var r = e(f, i);
- b.move(r.toCSSCompatValues(c))
- }
- function o() {}
- var p = Object.create || function() {
- function a() {}
- return function(b) {
- if (1 !== arguments.length) throw new Error("Object.create shim only accepts one parameter.");
- return a.prototype = b, new a
- }
- }();
- b.prototype = p(Error.prototype), b.prototype.constructor = b, b.Errors = {
- BadSignature: {
- code: 0,
- message: "Malformed WebVTT signature."
- },
- BadTimeStamp: {
- code: 1,
- message: "Malformed time stamp."
- }
- }, d.prototype = {
- set: function(a, b) {
- this.get(a) || "" === b || (this.values[a] = b)
- },
- get: function(a, b, c) {
- return c ? this.has(a) ? this.values[a] : b[c] : this.has(a) ? this.values[a] : b
- },
- has: function(a) {
- return a in this.values
- },
- alt: function(a, b, c) {
- for (var d = 0; d < c.length; ++d)
- if (b === c[d]) {
- this.set(a, b);
- break
- }
- },
- integer: function(a, b) {
- /^-?\d+$/.test(b) && this.set(a, parseInt(b, 10))
- },
- percent: function(a, b) {
- return !!(b.match(/^([\d]{1,3})(\.[\d]*)?%$/) && (b = parseFloat(b), b >= 0 && b <= 100)) && (this.set(a, b), !0)
- }
- };
- var q = {
- "&": "&",
- "<": "<",
- ">": ">",
- "‎": "",
- "‏": "",
- " ": " "
- },
- r = {
- c: "span",
- i: "i",
- b: "b",
- u: "u",
- ruby: "ruby",
- rt: "rt",
- v: "span",
- lang: "span"
- },
- s = {
- v: "title",
- lang: "lang"
- },
- t = {
- rt: "ruby"
- },
- u = [
- [1470, 1470],
- [1472, 1472],
- [1475, 1475],
- [1478, 1478],
- [1488, 1514],
- [1520, 1524],
- [1544, 1544],
- [1547, 1547],
- [1549, 1549],
- [1563, 1563],
- [1566, 1610],
- [1645, 1647],
- [1649, 1749],
- [1765, 1766],
- [1774, 1775],
- [1786, 1805],
- [1807, 1808],
- [1810, 1839],
- [1869, 1957],
- [1969, 1969],
- [1984, 2026],
- [2036, 2037],
- [2042, 2042],
- [2048, 2069],
- [2074, 2074],
- [2084, 2084],
- [2088, 2088],
- [2096, 2110],
- [2112, 2136],
- [2142, 2142],
- [2208, 2208],
- [2210, 2220],
- [8207, 8207],
- [64285, 64285],
- [64287, 64296],
- [64298, 64310],
- [64312, 64316],
- [64318, 64318],
- [64320, 64321],
- [64323, 64324],
- [64326, 64449],
- [64467, 64829],
- [64848, 64911],
- [64914, 64967],
- [65008, 65020],
- [65136, 65140],
- [65142, 65276],
- [67584, 67589],
- [67592, 67592],
- [67594, 67637],
- [67639, 67640],
- [67644, 67644],
- [67647, 67669],
- [67671, 67679],
- [67840, 67867],
- [67872, 67897],
- [67903, 67903],
- [67968, 68023],
- [68030, 68031],
- [68096, 68096],
- [68112, 68115],
- [68117, 68119],
- [68121, 68147],
- [68160, 68167],
- [68176, 68184],
- [68192, 68223],
- [68352, 68405],
- [68416, 68437],
- [68440, 68466],
- [68472, 68479],
- [68608, 68680],
- [126464, 126467],
- [126469, 126495],
- [126497, 126498],
- [126500, 126500],
- [126503, 126503],
- [126505, 126514],
- [126516, 126519],
- [126521, 126521],
- [126523, 126523],
- [126530, 126530],
- [126535, 126535],
- [126537, 126537],
- [126539, 126539],
- [126541, 126543],
- [126545, 126546],
- [126548, 126548],
- [126551, 126551],
- [126553, 126553],
- [126555, 126555],
- [126557, 126557],
- [126559, 126559],
- [126561, 126562],
- [126564, 126564],
- [126567, 126570],
- [126572, 126578],
- [126580, 126583],
- [126585, 126588],
- [126590, 126590],
- [126592, 126601],
- [126603, 126619],
- [126625, 126627],
- [126629, 126633],
- [126635, 126651],
- [1114109, 1114109]
- ];
- k.prototype.applyStyles = function(a, b) {
- b = b || this.div;
- for (var c in a) a.hasOwnProperty(c) && (b.style[c] = a[c])
- }, k.prototype.formatStyle = function(a, b) {
- return 0 === a ? 0 : a + b
- }, l.prototype = p(k.prototype), l.prototype.constructor = l, m.prototype.move = function(a, b) {
- switch (b = void 0 !== b ? b : this.lineHeight, a) {
- case "+x":
- this.left += b, this.right += b;
- break;
- case "-x":
- this.left -= b, this.right -= b;
- break;
- case "+y":
- this.top += b, this.bottom += b;
- break;
- case "-y":
- this.top -= b, this.bottom -= b
- }
- }, m.prototype.overlaps = function(a) {
- return this.left < a.right && this.right > a.left && this.top < a.bottom && this.bottom > a.top
- }, m.prototype.overlapsAny = function(a) {
- for (var b = 0; b < a.length; b++)
- if (this.overlaps(a[b])) return !0;
- return !1
- }, m.prototype.within = function(a) {
- return this.top >= a.top && this.bottom <= a.bottom && this.left >= a.left && this.right <= a.right
- }, m.prototype.overlapsOppositeAxis = function(a, b) {
- switch (b) {
- case "+x":
- return this.left < a.left;
- case "-x":
- return this.right > a.right;
- case "+y":
- return this.top < a.top;
- case "-y":
- return this.bottom > a.bottom
- }
- }, m.prototype.intersectPercentage = function(a) {
- 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)
- }, m.prototype.toCSSCompatValues = function(a) {
- return {
- top: this.top - a.top,
- bottom: a.bottom - this.bottom,
- left: this.left - a.left,
- right: a.right - this.right,
- height: this.height,
- width: this.width
- }
- }, m.getSimpleBoxPosition = function(a) {
- var b = a.div ? a.div.offsetHeight : a.tagName ? a.offsetHeight : 0,
- c = a.div ? a.div.offsetWidth : a.tagName ? a.offsetWidth : 0,
- d = a.div ? a.div.offsetTop : a.tagName ? a.offsetTop : 0;
- return a = a.div ? a.div.getBoundingClientRect() : a.tagName ? a.getBoundingClientRect() : a, {
- left: a.left,
- right: a.right,
- top: a.top || d,
- height: a.height || b,
- bottom: a.bottom || d + (a.height || b),
- width: a.width || c
- }
- }, o.StringDecoder = function() {
- return {
- decode: function(a) {
- if (!a) return "";
- if ("string" != typeof a) throw new Error("Error - expected string data.");
- return decodeURIComponent(encodeURIComponent(a))
- }
- }
- }, o.convertCueToDOMTree = function(a, b) {
- return a && b ? g(a, b) : null
- };
- o.processCues = function(a, b, c) {
- function d(a) {
- for (var b = 0; b < a.length; b++)
- if (a[b].hasBeenReset || !a[b].displayState) return !0;
- return !1
- }
- if (!a || !b || !c) return null;
- for (; c.firstChild;) c.removeChild(c.firstChild);
- var e = a.document.createElement("div");
- 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)) {
- var f = [],
- g = m.getSimpleBoxPosition(e),
- h = Math.round(.05 * g.height * 100) / 100,
- i = {
- font: h + "px sans-serif"
- };
- ! function() {
- 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))
- }()
- } else
- for (var j = 0; j < b.length; j++) e.appendChild(b[j].displayState)
- }, o.Parser = function(a, b, c) {
- 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 = []
- }, o.Parser.prototype = {
- reportOrThrowError: function(a) {
- if (!(a instanceof b)) throw a;
- this.onparsingerror && this.onparsingerror(a)
- },
- parse: function(a) {
- function c() {
- for (var a = i.buffer, b = 0; b < a.length && "\r" !== a[b] && "\n" !== a[b];)++b;
- var c = a.substr(0, b);
- return "\r" === a[b] && ++b, "\n" === a[b] && ++b, i.buffer = a.substr(b), c
- }
- function g(a) {
- var b = new d;
- if (e(a, function(a, c) {
- switch (a) {
- case "id":
- b.set(a, c);
- break;
- case "width":
- b.percent(a, c);
- break;
- case "lines":
- b.integer(a, c);
- break;
- case "regionanchor":
- case "viewportanchor":
- var e = c.split(",");
- if (2 !== e.length) break;
- var f = new d;
- if (f.percent("x", e[0]), f.percent("y", e[1]), !f.has("x") || !f.has("y")) break;
- b.set(a + "X", f.get("x")), b.set(a + "Y", f.get("y"));
- break;
- case "scroll":
- b.alt(a, c, ["up"])
- }
- }, /=/, /\s/), b.has("id")) {
- var c = new(i.vttjs.VTTRegion || i.window.VTTRegion);
- 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({
- id: b.get("id"),
- region: c
- })
- }
- }
- function h(a) {
- e(a, function(a, b) {
- switch (a) {
- case "Region":
- g(b)
- }
- }, /:/)
- }
- var i = this;
- a && (i.buffer += i.decoder.decode(a, {
- stream: !0
- }));
- try {
- var j;
- if ("INITIAL" === i.state) {
- if (!/\r\n|\n/.test(i.buffer)) return this;
- j = c();
- var k = j.match(/^WEBVTT([ \t].*)?$/);
- if (!k || !k[0]) throw new b(b.Errors.BadSignature);
- i.state = "HEADER"
- }
- for (var l = !1; i.buffer;) {
- if (!/\r\n|\n/.test(i.buffer)) return this;
- switch (l ? l = !1 : j = c(), i.state) {
- case "HEADER":
- /:/.test(j) ? h(j) : j || (i.state = "ID");
- continue;
- case "NOTE":
- j || (i.state = "ID");
- continue;
- case "ID":
- if (/^NOTE($|[ \t])/.test(j)) {
- i.state = "NOTE";
- break
- }
- if (!j) continue;
- if (i.cue = new(i.vttjs.VTTCue || i.window.VTTCue)(0, 0, ""), i.state = "CUE", j.indexOf("-->") === -1) {
- i.cue.id = j;
- continue
- }
- case "CUE":
- try {
- f(j, i.cue, i.regionList)
- } catch (m) {
- i.reportOrThrowError(m), i.cue = null, i.state = "BADCUE";
- continue
- }
- i.state = "CUETEXT";
- continue;
- case "CUETEXT":
- var n = j.indexOf("-->") !== -1;
- if (!j || n && (l = !0)) {
- i.oncue && i.oncue(i.cue), i.cue = null, i.state = "ID";
- continue
- }
- i.cue.text && (i.cue.text += "\n"), i.cue.text += j;
- continue;
- case "BADCUE":
- j || (i.state = "ID");
- continue
- }
- }
- } catch (m) {
- i.reportOrThrowError(m), "CUETEXT" === i.state && i.cue && i.oncue && i.oncue(i.cue), i.cue = null, i.state = "INITIAL" === i.state ? "BADWEBVTT" : "BADCUE"
- }
- return this
- },
- flush: function() {
- var a = this;
- try {
- 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)
- } catch (c) {
- a.reportOrThrowError(c)
- }
- return a.onflush && a.onflush(), this
- }
- }, a.WebVTT = o
- }(this, this.vttjs)
- }, {}
- ],
- 107: [
- function(a, b, c) {
- void 0 !== b && b.exports && (this.VTTCue = this.VTTCue || a(108).VTTCue),
- function(a) {
- a.VTTCue.prototype.toJSON = function() {
- var a = {},
- b = this;
- return Object.keys(this).forEach(function(c) {
- "getCueAsHTML" !== c && "hasBeenReset" !== c && "displayState" !== c && (a[c] = b[c])
- }), a
- }, a.VTTCue.create = function(b) {
- if (!b.hasOwnProperty("startTime") || !b.hasOwnProperty("endTime") || !b.hasOwnProperty("text")) throw new Error("You must at least have start time, end time, and text.");
- var c = new a.VTTCue(b.startTime, b.endTime, b.text);
- for (var d in b) c.hasOwnProperty(d) && (c[d] = b[d]);
- return c
- }, a.VTTCue.fromJSON = function(a) {
- return this.create(JSON.parse(a))
- }
- }(this)
- }, {
- 108: 108
- }
- ],
- 108: [
- function(a, b, c) {
- ! function(a, b) {
- function c(a) {
- return "string" == typeof a && (!!g[a.toLowerCase()] && a.toLowerCase())
- }
- function d(a) {
- return "string" == typeof a && (!!h[a.toLowerCase()] && a.toLowerCase())
- }
- function e(a) {
- for (var b = 1; b < arguments.length; b++) {
- var c = arguments[b];
- for (var d in c) a[d] = c[d]
- }
- return a
- }
- function f(a, b, f) {
- var g = this,
- h = /MSIE\s8\.0/.test(navigator.userAgent),
- i = {};
- h ? g = document.createElement("custom") : i.enumerable = !0, g.hasBeenReset = !1;
- var j = "",
- k = !1,
- l = a,
- m = b,
- n = f,
- o = null,
- p = "",
- q = !0,
- r = "auto",
- s = "start",
- t = 50,
- u = "middle",
- v = 50,
- w = "middle";
- if (Object.defineProperty(g, "id", e({}, i, {
- get: function() {
- return j
- },
- set: function(a) {
- j = "" + a
- }
- })), Object.defineProperty(g, "pauseOnExit", e({}, i, {
- get: function() {
- return k
- },
- set: function(a) {
- k = !!a
- }
- })), Object.defineProperty(g, "startTime", e({}, i, {
- get: function() {
- return l
- },
- set: function(a) {
- if ("number" != typeof a) throw new TypeError("Start time must be set to a number.");
- l = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "endTime", e({}, i, {
- get: function() {
- return m
- },
- set: function(a) {
- if ("number" != typeof a) throw new TypeError("End time must be set to a number.");
- m = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "text", e({}, i, {
- get: function() {
- return n
- },
- set: function(a) {
- n = "" + a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "region", e({}, i, {
- get: function() {
- return o
- },
- set: function(a) {
- o = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "vertical", e({}, i, {
- get: function() {
- return p
- },
- set: function(a) {
- var b = c(a);
- if (b === !1) throw new SyntaxError("An invalid or illegal string was specified.");
- p = b, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "snapToLines", e({}, i, {
- get: function() {
- return q
- },
- set: function(a) {
- q = !!a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "line", e({}, i, {
- get: function() {
- return r
- },
- set: function(a) {
- if ("number" != typeof a && "auto" !== a) throw new SyntaxError("An invalid number or illegal string was specified.");
- r = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "lineAlign", e({}, i, {
- get: function() {
- return s
- },
- set: function(a) {
- var b = d(a);
- if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
- s = b, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "position", e({}, i, {
- get: function() {
- return t
- },
- set: function(a) {
- if (a < 0 || a > 100) throw new Error("Position must be between 0 and 100.");
- t = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "positionAlign", e({}, i, {
- get: function() {
- return u
- },
- set: function(a) {
- var b = d(a);
- if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
- u = b, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "size", e({}, i, {
- get: function() {
- return v
- },
- set: function(a) {
- if (a < 0 || a > 100) throw new Error("Size must be between 0 and 100.");
- v = a, this.hasBeenReset = !0
- }
- })), Object.defineProperty(g, "align", e({}, i, {
- get: function() {
- return w
- },
- set: function(a) {
- var b = d(a);
- if (!b) throw new SyntaxError("An invalid or illegal string was specified.");
- w = b, this.hasBeenReset = !0
- }
- })), g.displayState = void 0, h) return g
- }
- var g = {
- "": !0,
- lr: !0,
- rl: !0
- },
- h = {
- start: !0,
- middle: !0,
- end: !0,
- left: !0,
- right: !0
- };
- f.prototype.getCueAsHTML = function() {
- return WebVTT.convertCueToDOMTree(window, this.text)
- }, a.VTTCue = a.VTTCue || f, b.VTTCue = f
- }(this, this.vttjs || {})
- }, {}
- ],
- 109: [
- function(a, b, c) {
- void 0 !== b && b.exports && (this.VTTRegion = a(110).VTTRegion),
- function(a) {
- a.VTTRegion.create = function(b) {
- var c = new a.VTTRegion;
- for (var d in b) c.hasOwnProperty(d) && (c[d] = b[d]);
- return c
- }, a.VTTRegion.fromJSON = function(a) {
- return this.create(JSON.parse(a))
- }
- }(this)
- }, {
- 110: 110
- }
- ],
- 110: [
- function(a, b, c) {
- ! function(a, b) {
- function c(a) {
- return "string" == typeof a && (!!f[a.toLowerCase()] && a.toLowerCase())
- }
- function d(a) {
- return "number" == typeof a && a >= 0 && a <= 100
- }
- function e() {
- var a = 100,
- b = 3,
- e = 0,
- f = 100,
- g = 0,
- h = 100,
- i = "";
- Object.defineProperties(this, {
- width: {
- enumerable: !0,
- get: function() {
- return a
- },
- set: function(b) {
- if (!d(b)) throw new Error("Width must be between 0 and 100.");
- a = b
- }
- },
- lines: {
- enumerable: !0,
- get: function() {
- return b
- },
- set: function(a) {
- if ("number" != typeof a) throw new TypeError("Lines must be set to a number.");
- b = a
- }
- },
- regionAnchorY: {
- enumerable: !0,
- get: function() {
- return f
- },
- set: function(a) {
- if (!d(a)) throw new Error("RegionAnchorX must be between 0 and 100.");
- f = a
- }
- },
- regionAnchorX: {
- enumerable: !0,
- get: function() {
- return e
- },
- set: function(a) {
- if (!d(a)) throw new Error("RegionAnchorY must be between 0 and 100.");
- e = a
- }
- },
- viewportAnchorY: {
- enumerable: !0,
- get: function() {
- return h
- },
- set: function(a) {
- if (!d(a)) throw new Error("ViewportAnchorY must be between 0 and 100.");
- h = a
- }
- },
- viewportAnchorX: {
- enumerable: !0,
- get: function() {
- return g
- },
- set: function(a) {
- if (!d(a)) throw new Error("ViewportAnchorX must be between 0 and 100.");
- g = a
- }
- },
- scroll: {
- enumerable: !0,
- get: function() {
- return i
- },
- set: function(a) {
- var b = c(a);
- if (b === !1) throw new SyntaxError("An invalid or illegal string was specified.");
- i = b
- }
- }
- })
- }
- var f = {
- "": !0,
- up: !0
- };
- a.VTTRegion = a.VTTRegion || e, b.VTTRegion = e
- }(this, this.vttjs || {})
- }, {}
- ]
- }, {}, [93])(93)
- });
- ! function() {
- ! function(a) {
- var b = a && a.videojs;
- if (b) {
- b.CDN_VERSION = "5.18.4";
- var c = "https:" === a.location.protocol ? "https://" : "http://";
- b.options.flash.swf = c + "vjs.zencdn.net/swf/5.3.0/video-js.swf"
- }
- }(window),
- function(a, b, c, d, e, f, g) {
- 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 + ")"))
- }(new Image, window, navigator, encodeURIComponent, Math)
- }();
|