base.js 2.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527
  1. var _yt_player={};(function(g){var window=this;/*
  2. Copyright The Closure Library Authors.
  3. SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. SPDX-License-Identifier: Apache-2.0
  7. */
  8. /*
  9. (The MIT License)
  10. Copyright (C) 2014 by Vitaly Puzrin
  11. Permission is hereby granted, free of charge, to any person obtaining a copy
  12. of this software and associated documentation files (the "Software"), to deal
  13. in the Software without restriction, including without limitation the rights
  14. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  15. copies of the Software, and to permit persons to whom the Software is
  16. furnished to do so, subject to the following conditions:
  17. The above copyright notice and this permission notice shall be included in
  18. all copies or substantial portions of the Software.
  19. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. THE SOFTWARE.
  26. -----------------------------------------------------------------------------
  27. Ported from zlib, which is under the following license
  28. https://github.com/madler/zlib/blob/master/zlib.h
  29. zlib.h -- interface of the 'zlib' general purpose compression library
  30. version 1.2.8, April 28th, 2013
  31. Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
  32. This software is provided 'as-is', without any express or implied
  33. warranty. In no event will the authors be held liable for any damages
  34. arising from the use of this software.
  35. Permission is granted to anyone to use this software for any purpose,
  36. including commercial applications, and to alter it and redistribute it
  37. freely, subject to the following restrictions:
  38. 1. The origin of this software must not be misrepresented; you must not
  39. claim that you wrote the original software. If you use this software
  40. in a product, an acknowledgment in the product documentation would be
  41. appreciated but is not required.
  42. 2. Altered source versions must be plainly marked as such, and must not be
  43. misrepresented as being the original software.
  44. 3. This notice may not be removed or altered from any source distribution.
  45. Jean-loup Gailly Mark Adler
  46. jloup@gzip.org madler@alumni.caltech.edu
  47. The data format used by the zlib library is described by RFCs (Request for
  48. Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
  49. (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
  50. */
  51. /*
  52. The MIT License (MIT)
  53. Copyright (c) 2015-present Dan Abramov
  54. Permission is hereby granted, free of charge, to any person obtaining a copy
  55. of this software and associated documentation files (the "Software"), to deal
  56. in the Software without restriction, including without limitation the rights
  57. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  58. copies of the Software, and to permit persons to whom the Software is
  59. furnished to do so, subject to the following conditions:
  60. The above copyright notice and this permission notice shall be included in all
  61. copies or substantial portions of the Software.
  62. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  63. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  64. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  65. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  66. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  67. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  68. SOFTWARE.
  69. */
  70. 'use strict';var da,baa,caa,oa,daa,pa,eaa,ra,va,wa,za,gaa,haa,Ga,Ia,iaa,jaa,Ka,kaa,Ma,Na,Oa,laa,Ra,Ya,$a,naa,oaa,qb,paa,sb,tb,ub,xb,yb,qaa,raa,Cb,taa,uaa,Nb,vaa,Tb,waa,xaa,Qb,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,dc,Faa,gc,jc,lc,xc,yc,zc,Ac,Naa,Oaa,Bc,Ic,Cc,Paa,Qaa,Raa,Saa,Jc,Taa,Kc,Lc,Mc,Uaa,Nc,Oc,Waa,Yaa,Rc,Tc,aba,Uc,Yc,bba,cba,id,dba,pd,rd,gba,hba,td,mba,Ad,jba,lba,wd,vd,Ed,Fd,nba,Gd,oba,Id,Nd,pba,Od,Pd,Qd,Vd,$d,ce,fe,me,oe,Bba,zba,Aba,Dba,Eba,re,we,xe,Hba,ye,Iba,Jba,Kba,Mba,Lba,He,Je,Nba,Ne,Re,Ue,Oba,Xe,
  71. Ye,af,bf,Pba,Qba,Rba,Sba,mf,nf,yf,Vba,Xba,Wba,zf,Bf,Yba,Af,Hf,lf,$ba,Zba,Uf,Tf,cf,Wf,aca,Yf,Zf,fg,bca,dca,fca,lg,mg,ng,jca,lca,pg,mca,og,qca,jg,hca,sca,pca,nca,oca,tca,rca,qg,kca,Eg,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Gg,Hg,Fca,Gca,Hca,Ica,Ig,Jca,Nca,Oca,Pca,Uca,Mg,Tca,Qca,Wca,Yca,$ca,Og,Pg,cda,ah,bh,eda,dh,ch,fda,eh,gda,fh,gh,kh,hda,lh,ida,jda,mh,hh,nh,Bh,oh,Ch,Dh,Eh,Fh,Gh,kda,mda,Ih,nda,oda,Jh,Kh,Nh,qda,rda,tda,uda,wda,Oh,xda,Ph,yda,Qh,zda,Rh,Sh,Ada,Th,Uh,Wh,Xh,Yh,$h,Bda,ti,Cda,Eda,ui,vi,xi,
  72. yi,Fda,Gda,zi,Hda,Ida,Bi,Ci,Jda,Kda,Lda,Mda,Di,Ei,Fi,Gi,Hi,Ii,Ji,Pda,Mi,ej,Qda,Rda,Li,fj,Oda,Ki,gj,Sda,Tda,hj,ij,jj,kj,mj,oj,qj,P,rj,Wda,tj,uj,$da,Zda,Xda,Yda,aea,cea,bea,dea,Lj,Kj,fea,eea,Mj,Oj,Jj,hea,Qj,iea,Pj,Tj,Sj,Uj,Xj,bk,lea,mea,Zj,nea,oea,ck,dk,ek,gk,fk,pea,qea,ik,jk,Ek,hk,Fk,kea,rea,sea,Hk,Ik,Jk,Yj,ak,tea,Kk,Lk,uea,Mk,Nk,Ok,Pk,vea,Qk,wea,Rk,Sk,xea,yea,zea,Tk,Uk,Vk,Wk,Xk,Yk,Q,Zk,$k,S,al,T,Aea,bl,Dea,cl,gl,Gea,hl,Iea,Jea,Fea,Kea,Jl,Oea,Pea,Qea,Kl,Sea,Tea,dl,Rea,Uea,Nea,Nl,Ol,Pl,Ql,Rl,Sl,Wea,
  73. Xea,Tl,Yea,Ul,Vl,Wl,Xl,Yl,Zl,$l,$ea,afa,cfa,bfa,dfa,cm,dm,em,ffa,gfa,hfa,Hm,Im,Jm,Km,Nm,Om,Pm,ifa,Qm,kfa,Tm,Um,Vm,Wm,Xm,Ym,lfa,an,nfa,$m,Zm,mfa,ofa,pfa,cn,qfa,bn,dn,en,fn,gn,hn,jn,kn,rfa,ln,sfa,nn,tfa,wfa,on,pn,qn,rn,yfa,go,zfa,ho,io,jo,Afa,Bfa,mo,Cfa,no,oo,Ffa,Hfa,Jfa,Ifa,Kfa,qo,Lfa,to,xo,yo,zo,Ofa,Pfa,Qfa,Ao,Sfa,Bo,Tfa,Ufa,Xfa,Wfa,Vfa,$fa,Yfa,Do,Fo,Go,Ho,Eo,Io,Jo,Ko,Mo,aga,No,Oo,dga,cga,ega,fga,gga,iga,Po,Qo,Ro,So,To,Uo,Vo,Wo,jga,Xo,Yo,Zo,$o,ap,nga,kga,dp,mga,ep,lga,cp,bp,gp,pga,dq,hp,iq,jq,lq,
  74. sga,kq,oq,tga,pq,qga,wga,xga,yga,sq,tq,uq,zga,vq,wq,xq,yq,Aga,zq,Aq,Bq,Bga,Cga,Cq,Dga,Dq,Gga,Hga,Iga,Jga,Ega,Eq,Fq,Gq,Hq,Lga,Mga,Kga,Iq,Nga,Oga,Pga,Mq,Qga,Nq,Oq,Sga,Tga,Pq,Uga,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Vga,Yq,Zq,Wga,Yga,$q,Xga,Zga,$ga,aha,ar,br,Cr,Dr,Er,Fr,Gr,bha,Hr,Ir,Jr,cha,eha,fha,Lr,Nr,Mr,Pr,Qr,Rr,hha,iha,Sr,Tr,Ur,kha,lha,oha,mha,pha,tha,Vr,sha,qha,Wr,Xr,uha,Yr,vha,Zr,xha,wha,yha,zha,cs,ds,Aha,Bha,Cha,es,fs,Dha,gs,Eha,Fha,Hha,Lha,hs,Mha,Nha,Oha,Pha,Qha,ks,Rha,Sha,Tha,rs,qs,ps,Uha,Vha,Wha,ts,us,
  75. vs,Yha,As,Bs,Cs,Zha,Ds,aia,bia,cia,Es,Gs,Hs,Ms,Ns,Qs,eia,gia,fia,hia,iia,Ws,jia,kia,Xs,lia,mia,nia,oia,at,Zs,bt,ct,dt,pia,qia,ria,et,pt,qt,sia,tia,uia,rt,via,tt,ut,wia,xia,yia,zia,Aia,Bia,vt,wt,xt,At,Eia,Bt,Ct,Fia,Dia,zt,Gia,Dt,Et,Ft,Ht,Gt,Hia,Iia,Jia,It,Lia,Jt,Nia,Oia,Pia,Qia,Ria,Sia,Tia,Uia,Mt,Nt,Ot,Wia,Via,Xia,Yia,Qt,Zia,Rt,$ia,aja,St,Tt,Ut,bja,Vt,Wt,cja,Xt,Yt,Zt,$t,au,bu,cu,du,dja,eja,fja,gja,eu,hja,jja,ija,gu,hu,lja,kja,oja,rja,qja,iu,sja,tja,uja,wja,vja,xja,ju,yja,zja,lu,Aja,Bja,Cja,Dja,mu,
  76. Eja,nu,Fja,ou,pu,Hja,qu,Ija,ru,tu,Jja,Kja,uu,wu,Mja,xu,Lja,Nja,Oja,Pja,Rja,yu,Sja,Bu,Cu,Uja,Vja,Yja,Zja,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,cka,bka,dka,fka,eka,hka,aka,gka,$ja,Qu,Ru,jka,kka,lka,Vu,Wu,Xu,Su,nka,Yu,ika,pka,qka,oka,Zu,$u,av,bv,rka,mka,ska,cv,tka,uka,vka,wka,xka,Aka,Bka,Cka,Dka,Eka,Hka,fv,Jka,ev,hv,Kka,iv,kv,vv,Lka,Mka,Nka,Cv,Oka,Pka,Lv,Qka,Ska,Mv,Tka,Uka,$ka,Wka,Pv,Qv,Rv,Tv,Uv,fla,Vv,Wv,Xv,hla,$v,ila,jla,aw,lla,cw,dw,ew,fw,mla,gw,iw,jw,kw,lw,nla,nw,ow,pw,qw,rw,tw,ola,pla,qla,rla,
  77. sla,tla,uw,ula,Bw,vla,wla,xla,Cw,Ew,Fw,Gw,Jw,Kw,Lw,zla,Ow,Pw,Qw,Ala,Bla,Rw,Cla,Dla,Tw,Lla,Mla,Nla,Uw,Ola,Pla,Sla,Ww,Ula,Tla,Yw,Vla,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,nx,ox,px,qx,Wla,rx,Xla,Yla,Zla,$la,sx,tx,ama,bma,cma,dma,ema,fma,ux,gma,vx,hma,ima,jma,kma,lma,mma,nma,oma,pma,qma,wx,rma,sma,xx,yx,zx,Ax,Bx,tma,Cx,Dx,uma,Ex,Fx,vma,Gx,Hx,Ix,wma,xma,Jx,yma,zma,Ama,Bma,Cma,Kx,Dma,Ema,Fma,Lx,Gma,Hma,Ima,Mx,Jma,Nx,Kma,Ox,Wx,Xx,Yx,Zx,$x,Lma,Mma,ay,Nma,by,cy,dy,ey,fy,gy,hy,iy,Oma,Pma,Qma,Rma,Sma,jy,
  78. Tma,Uma,Vma,Wma,ky,Xma,Yma,Zma,ly,my,ny,oy,py,qy,$ma,ry,sy,ty,uy,ana,vy,wy,yy,bna,cna,zy,Ay,By,Cy,Dy,Ey,Fy,Gy,dna,ena,Hy,fna,gna,hna,Iy,ina,jna,kna,Jy,lna,Ky,Ly,My,mna,Ny,nna,Oy,Py,ona,Qy,pna,Ry,qna,rna,sna,Sy,tna,Ty,Uy,Vy,una,Wy,vna,Xy,Yy,Zy,$y,cz,dz,ez,wna,fz,gz,hz,xna,iz,jz,kz,lz,yna,mz,nz,oz,pz,qz,zna,rz,Ana,sz,Bna,Cna,tz,uz,Dna,vz,wz,xz,Ena,Fna,Gna,Hna,yz,zz,Ina,Az,Jna,Kna,Lna,Mna,Nna,Bz,Ona,Pna,Qna,Cz,Dz,Rna,Ez,Sna,Tna,Fz,Una,Vna,Wna,Xna,Gz,Hz,Iz,Jz,Yna,Zna,Kz,$na,aoa,boa,coa,Lz,doa,eoa,foa,
  79. goa,hoa,ioa,joa,koa,loa,Mz,moa,Nz,Oz,noa,ooa,Pz,poa,qoa,roa,soa,toa,uoa,voa,woa,Qz,xoa,yoa,zoa,Rz,Aoa,Boa,Sz,Tz,Coa,Doa,Uz,Vz,Eoa,Wz,Foa,Xz,Goa,Yz,Zz,Hoa,Ioa,$z,Joa,Koa,aA,Loa,Moa,Noa,Ooa,Poa,Qoa,Roa,Soa,Toa,Uoa,bA,Voa,Woa,cA,Xoa,dA,eA,Yoa,Zoa,fA,$oa,apa,gA,bpa,hA,cpa,iA,jA,kA,lA,dpa,mA,nA,oA,pA,epa,qA,rA,fpa,gpa,sA,tA,uA,hpa,vA,ipa,jpa,kpa,wA,lpa,mpa,npa,xA,opa,ppa,yA,zA,qpa,AA,rpa,spa,BA,tpa,CA,upa,vpa,wpa,EA,GA,xpa,KA,LA,MA,NA,Bpa,PA,QA,Cpa,RA,SA,TA,Dpa,ypa,UA,Gpa,Jpa,VA,Lpa,Kpa,Mpa,Ppa,Opa,Spa,
  80. Tpa,Upa,Vpa,Xpa,bqa,Ypa,$pa,aqa,eB,dB,cqa,gB,hB,iB,eqa,fqa,gqa,hqa,iqa,jqa,oB,kqa,qB,lqa,mqa,rB,oqa,pqa,qqa,vB,rqa,sqa,wB,xB,yB,zB,uqa,AB,wqa,vqa,yqa,GB,zqa,Dqa,Bqa,Cqa,Eqa,Fqa,Hqa,Iqa,Gqa,Lqa,IB,Mqa,LB,Nqa,Oqa,KB,MB,Qqa,Rqa,Vqa,Uqa,Wqa,QB,RB,SB,TB,VB,Yqa,$qa,ira,jra,aC,kra,lra,mra,pra,qra,rra,ora,sra,ura,wra,hC,xra,kC,iC,nC,oC,zra,Cra,tC,uC,vC,wC,Gra,yC,Ira,Jra,Kra,BC,Mra,Nra,Lra,Ora,Pra,DC,Qra,Rra,Sra,Ura,GC,Xra,Yra,Vra,Zra,$ra,bsa,asa,KC,Wra,esa,fsa,PC,dsa,gsa,hsa,QC,RC,isa,ksa,TC,lsa,msa,osa,
  81. qsa,WC,rsa,ssa,tsa,usa,vsa,wsa,xsa,ysa,YC,zsa,$C,Bsa,Csa,Dsa,Esa,Fsa,Gsa,eD,Jsa,Msa,fD,Nsa,Psa,Isa,Qsa,Rsa,Ssa,Ksa,Lsa,aD,Hsa,dD,Osa,cD,bD,Tsa,Usa,Vsa,Wsa,Xsa,Ysa,dta,Zsa,iD,jD,kD,gta,ita,hta,eta,jta,lta,nD,nta,qta,qD,pta,Ata,rta,zta,uD,Bta,Eta,vD,tD,Cta,Dta,Fta,xD,Hta,Ita,Jta,Kta,Lta,Mta,Nta,Gta,Pta,Qta,Rta,Sta,Tta,Wta,zD,Yta,AD,BD,CD,Zta,$ta,ED,FD,cua,bua,eua,dua,gua,iua,hua,jua,nua,lua,QD,oua,qua,PD,pua,RD,SD,rua,sua,tua,UD,vua,XD,WD,YD,ZD,$D,xua,yua,bE,zua,cE,Bua,Cua,Dua,Fua,Gua,Eua,fE,Iua,Hua,
  82. Jua,gE,Lua,hE,Nua,iE,Pua,jE,Oua,kE,lE,Sua,Yua,$ua,Xua,Wua,Zua,oE,ava,iva,eva,fva,gva,Rua,rva,tva,qva,wva,pva,nE,vva,dva,hva,sva,bva,Uua,Tua,Vua,qE,ova,xE,Gva,Fva,Kva,Nva,Mva,Pva,zE,AE,Rva,Sva,Tva,Uva,Vva,Wva,Xva,CE,Zva,$va,awa,bwa,cwa,dwa,ewa,gwa,hwa,GE,jwa,lwa,kwa,mwa,owa,pwa,twa,rwa,vwa,uwa,xwa,wwa,HE,Bra,Fwa,Cwa,Hwa,Mwa,Jwa,Nwa,Owa,Pwa,Vwa,Zwa,$wa,bxa,axa,cxa,TE,exa,SE,Ywa,Xwa,PE,$E,ZE,cF,dF,fF,gxa,gF,jF,kF,hxa,ixa,kxa,lxa,mxa,nxa,oxa,pxa,qxa,rxa,sxa,txa,uxa,qF,vxa,wxa,rF,yxa,zxa,Axa,Bxa,Cxa,Fxa,
  83. Gxa,tF,uF,Hxa,vF,Ixa,xF,Kxa,Jxa,zF,AF,BF,CF,Lxa,DF,Mxa,Nxa,Oxa,EF,Pxa,Txa,Qxa,Sxa,Rxa,FF,GF,Uxa,Vxa,Wxa,Xxa,HF,Zxa,bya,aya,IF,cya,JF,KF,LF,NF,OF,dya,eya,fya,PF,gya,hya,jya,kya,iya,lya,mya,QF,RF,UF,WF,oya,nya,YF,pya,qya,ZF,$F,aG,bG,eG,sya,fG,tya,gG,hG,iG,uya,vya,lG,wya,mG,zya,Bya,Dya,Fya,Hya,Jya,oG,Kya,pG,Lya,Oya,Pya,Qya,rG,sG,Sya,Tya,uG,vG,wG,Vya,xG,yG,zG,Wya,AG,Uya,Xya,BG,Zya,Yya,CG,aza,DG,IG,KG,bza,cza,MG,NG,PG,aH,$G,eza,OG,hza,iza,lza,mza,nza,pza,kza,qza,rza,sza,bH,gza,jza,cH,wza,xza,gH,yza,dH,
  84. eH,zza,hH,Bza,Eza,Cza,iH,Fza,jH,Hza,kH,Nza,Lza,Iza,Kza,Jza,mH,nH,oH,pH,qH,rH,tH,Pza,Vza,vH,xH,wH,Wza,$za,Xza,Zza,Yza,aAa,eAa,gAa,fAa,hAa,iAa,jAa,lAa,kAa,mAa,yH,nAa,oAa,pAa,qAa,rAa,tAa,uAa,zH,sAa,AH,xAa,zAa,BH,CH,DH,AAa,BAa,EH,FH,CAa,DAa,EAa,FAa,GAa,HAa,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,IAa,JAa,RH,KAa,LAa,MAa,NAa,SH,TH,UH,VH,OAa,WH,XH,YH,PAa,ZH,$H,aI,bI,cI,dI,eI,fI,gI,QAa,hI,iI,jI,RAa,kI,lI,mI,nI,SAa,oI,pI,TAa,qI,UAa,VAa,rI,WAa,sI,uI,vI,XAa,wI,xI,yI,tI,zI,AI,BI,ZAa,aBa,bBa,CI,cBa,DI,dBa,FI,eBa,fBa,
  85. GI,HI,gBa,jBa,kBa,lBa,mBa,nBa,oBa,hBa,QI,qBa,rBa,sBa,tBa,iBa,vBa,II,wBa,xBa,RI,yBa,SI,KI,zBa,JI,uBa,TI,CBa,BBa,LI,MI,VI,UI,DBa,WI,EBa,XI,GBa,FBa,YI,ZI,$I,aJ,bJ,IBa,JBa,LBa,MBa,dJ,eJ,PBa,fJ,TBa,VBa,XBa,YBa,hJ,$Ba,aCa,cCa,dCa,eCa,fCa,gCa,hCa,mJ,nJ,iCa,kCa,jCa,lCa,mCa,nCa,rJ,tJ,uJ,vJ,wJ,xJ,oCa,yJ,zJ,sJ,qCa,BJ,CJ,DJ,rCa,pCa,tCa,uCa,vCa,wCa,xCa,yCa,zCa,ACa,BCa,CCa,DCa,ECa,FCa,GCa,HCa,ICa,JCa,KCa,LCa,MCa,NCa,OCa,PCa,QCa,RCa,SCa,EJ,FJ,TCa,GJ,HJ,UCa,VCa,WCa,XCa,YCa,ZCa,$Ca,IJ,aDa,bDa,cDa,dDa,JJ,eDa,fDa,gDa,
  86. hDa,iDa,KJ,jDa,kDa,lDa,LJ,mDa,OJ,oDa,PJ,QJ,pDa,qDa,rDa,sDa,tDa,uDa,vDa,TJ,UJ,xDa,yDa,zDa,ADa,wDa,BDa,CDa,VJ,WJ,XJ,YJ,FDa,ZJ,$J,bK,GDa,HDa,IDa,dK,fK,JDa,jK,kK,KDa,LDa,lK,MDa,mK,NDa,oK,pK,qK,ODa,PDa,QDa,rK,hK,sK,tK,uK,RDa,vK,wK,xK,SDa,yK,zK,AK,BK,CK,DK,EK,FK,GK,UDa,VDa,WDa,XDa,LK,HK,MK,YDa,ZDa,$Da,aEa,NK,OK,bEa,cEa,dEa,JK,eEa,fEa,PK,gEa,iEa,jEa,RK,SK,TK,UK,VK,mEa,WK,YK,ZK,XK,nEa,oEa,$K,aL,bL,pEa,dL,rEa,eL,fL,gL,tEa,uEa,sEa,vEa,hL,wEa,yEa,kL,AEa,BEa,DEa,lL,CEa,EEa,FEa,GEa,HEa,JEa,cL,IEa,LEa,KEa,mL,MEa,
  87. nL,OEa,oL,NEa,pL,PEa,REa,SEa,rL,TEa,UEa,WEa,VEa,XEa,YEa,ZEa,sL,aFa,bFa,cFa,eFa,dFa,fFa,gFa,iFa,hFa,jFa,kFa,lFa,mFa,nFa,oFa,pFa,qFa,rFa,sFa,tFa,uFa,vFa,wFa,xFa,yFa,zFa,wL,AFa,xL,yL,CFa,DFa,zL,EFa,AL,FFa,BL,GFa,CL,HFa,IFa,JFa,KFa,DL,LFa,MFa,NFa,EL,FL,GL,HL,IL,OFa,JL,KL,LL,PFa,ML,QFa,RFa,SFa,TFa,NL,UFa,OL,VFa,PL,QL,KBa,WFa,XFa,YFa,ZFa,$Fa,RL,SL,TL,UL,VL,WL,XL,YL,ZL,$L,aM,dGa,eGa,fGa,gGa,hGa,eM,jM,jGa,oGa,tGa,pGa,vGa,wGa,uGa,yGa,zGa,AGa,sM,DGa,FGa,IGa,JGa,KGa,uM,MGa,NGa,RGa,vM,SGa,OGa,TGa,wM,UGa,XGa,
  88. WGa,aHa,YGa,xM,yM,gHa,hHa,lHa,kHa,jHa,pHa,oHa,rHa,sHa,vHa,tHa,uHa,iHa,wHa,xHa,AM,nHa,yHa,BM,mHa,zHa,AHa,DHa,GHa,EHa,JHa,RHa,QHa,KHa,SHa,MHa,NHa,LHa,WHa,YHa,$Ha,dIa,gIa,hIa,jIa,lIa,nIa,mIa,vIa,pIa,oIa,wIa,zIa,AIa,BIa,CIa,HM,EGa,FIa,DIa,JM,HIa,IIa,KIa,MIa,NIa,LIa,MM,OIa,NM,OM,oJ,PM,CGa,RM,PIa,QIa,RIa,SM,SIa,TIa,UIa,TM,UM,VIa,VM,WM,XM,YM,ZM,$M,WIa,XIa,aN,YIa,bN,qL,cN,dN,ZIa,eN,$Ia,aJa,GGa,JIa,bJa,fN,pJ,cJ,CM,dJa,eJa,gN,fHa,zM,fJa,IM,GIa,cIa,bIa,CHa,DM,eIa,iIa,kIa,bHa,xIa,gJa,THa,OHa,hN,HGa,iJa,hJa,BHa,
  89. fIa,jJa,yIa,EM,cHa,eHa,VGa,aIa,ZHa,IHa,FHa,QGa,PGa,LGa,VHa,PHa,qIa,ZGa,$Ga,tIa,uIa,rIa,sIa,XHa,mJa,kJa,iN,lJa,jN,nJa,kN,lN,rN,pJa,tN,rJa,sJa,tJa,uJa,vJa,wJa,xJa,yJa,vN,yN,zJa,AJa,CJa,BJa,DJa,EJa,FJa,GJa,HJa,IJa,AN,BN,LJa,CN,DN,MJa,NJa,OJa,PJa,EN,FN,GN,QJa,RJa,HN,JN,NN,SJa,ON,PN,QN,RN,SN,TN,UN,VN,WN,XN,YN,TJa,UJa,ZN,$N,hO,iO,jO,kO,VJa,WJa,lO,pO,ZJa,$Ja,qO,bKa,aKa,cKa,dKa,sO,tO,uO,Y,fKa,vO,kKa,oKa,pKa,qKa,zKa,CKa,HKa,IKa,fLa,gLa,hLa,JKa,KKa,QKa,mLa,UKa,VKa,rLa,pLa,tLa,uLa,qLa,vLa,xMa,CLa,yMa,DLa,ELa,
  90. EO,AMa,CMa,EMa,DMa,BMa,JLa,$La,aMa,IMa,KMa,cMa,dMa,fMa,gMa,hMa,RMa,jMa,mMa,tMa,$Ma,VMa,WMa,bNa,eNa,dNa,fNa,gNa,oNa,hNa,HO,lNa,uNa,vNa,wNa,xNa,yNa,BNa,GNa,jOa,iOa,LO,MO,NO,OO,PO,QO,qOa,SO,RO,sOa,oOa,pOa,tOa,rOa,TO,uOa,vOa,UO,wOa,Ara,yOa,xOa,AOa,COa,EOa,FOa,DOa,GOa,LOa,YO,MOa,NOa,OOa,POa,QOa,ZO,ROa,SOa,TOa,UOa,VOa,aPa,dPa,ePa,bPa,$O,fPa,cPa,gPa,XOa,hPa,iPa,jPa,ZOa,nPa,mPa,lPa,kPa,oPa,pPa,YOa,qPa,rPa,$Oa,sPa,wPa,tPa,uPa,vPa,APa,yPa,zPa,BPa,CPa,EPa,DPa,HPa,FPa,IPa,GPa,JPa,KPa,LPa,MPa,NPa,OPa,PPa,QPa,
  91. RPa,SPa,UPa,VPa,WPa,TPa,XPa,YPa,aQa,bP,bQa,eP,gP,cQa,hP,iP,dQa,hQa,jQa,iQa,lQa,tQa,uQa,kP,kQa,gQa,fQa,eQa,pP,lP,oP,uP,vP,xQa,yQa,wP,tP,CQa,zQa,AQa,DQa,xP,yP,FQa,GQa,AP,BP,CP,DP,EP,HQa,IQa,JQa,FP,GP,IP,LQa,MQa,HP,NQa,QQa,RQa,JP,SQa,MP,TQa,NP,PP,VQa,OP,QP,WQa,YQa,ZQa,$Qa,SP,TP,YP,cRa,VP,ZP,aQ,dRa,bQ,XP,$P,eRa,cQ,fRa,dQ,gRa,UP,WP,aRa,bRa,eQ,hRa,iRa,jRa,kRa,lRa,mRa,fQ,gQ,oRa,nRa,pRa,qRa,rRa,sRa,hQ,iQ,jQ,kQ,tRa,lQ,mQ,uRa,nQ,vRa,oQ,pQ,qQ,wRa,xRa,yRa,zRa,ARa,rQ,BRa,CRa,DRa,ERa,FRa,GRa,sQ,HRa,tQ,JRa,KRa,
  92. uQ,LRa,vQ,wQ,MRa,NRa,xQ,ORa,PRa,TRa,URa,QRa,RRa,SRa,VRa,yQ,zQ,AQ,WRa,XRa,BQ,CQ,YRa,DQ,ZRa,aSa,$Ra,EQ,bSa,cSa,dSa,eSa,fSa,gSa,iSa,jSa,FQ,kSa,mSa,oSa,nSa,IQ,uSa,rQa,mP,vSa,wSa,xSa,ySa,zSa,ASa,jP,HQ,BSa,JQ,GSa,HSa,ISa,JSa,KQ,NSa,KSa,LSa,PSa,QSa,RSa,SSa,OSa,TSa,LQ,MQ,NQ,USa,VSa,OQ,WSa,XSa,YSa,PQ,ESa,aTa,bTa,$Sa,TQ,dTa,sQa,mQa,fTa,UQ,WQ,XQ,YQ,ZQ,$Q,VQ,gTa,iTa,cR,lTa,jTa,nTa,oTa,mTa,kTa,pTa,qTa,rTa,iR,sTa,tTa,vTa,wTa,wQa,jR,xTa,ATa,qP,BTa,CTa,DTa,nP,nQa,pQa,qQa,kR,lR,mR,nR,ETa,FTa,oR,GTa,pR,qR,HTa,rR,ITa,
  93. sR,JTa,KTa,tR,uR,vR,MTa,NTa,wR,OTa,LTa,xR,PTa,QTa,STa,UTa,TTa,RTa,gUa,dUa,jUa,OR,PR,VTa,eUa,OI,MR,SR,kUa,WR,mUa,DR,YR,CR,nUa,LR,aS,bS,pUa,qUa,rUa,sUa,tUa,uUa,vUa,cS,wUa,BUa,AUa,xUa,zUa,yUa,dS,CUa,eS,DUa,EUa,GUa,HUa,IUa,NUa,jS,kS,QUa,lS,mS,RUa,UUa,VUa,WUa,XUa,nS,ZUa,cVa,dVa,kVa,nVa,hVa,iVa,pVa,wS,qVa,sVa,rVa,tVa,yS,BS,uVa,xS,vVa,CS,wVa,AVa,xVa,DVa,zVa,VVa,dWa,VS,eWa,gWa,QVa,JS,fWa,OS,WS,OVa,iWa,hWa,XS,GS,RVa,kWa,lWa,mWa,oWa,jWa,ZS,nWa,rWa,sWa,qWa,aT,uWa,FS,LS,pWa,WVa,yVa,$Va,gT,MS,mT,TS,oT,pT,HWa,
  94. IWa,US,JWa,rT,KWa,NS,LWa,PVa,MWa,zWa,KS,HVa,NWa,FVa,EVa,BVa,uT,PWa,YWa,$Wa,aXa,yT,AT,BT,zT,DT,bXa,cXa,ET,eXa,FT,gXa,hXa,fXa,iXa,nXa,lXa,pXa,rXa,sXa,uXa,tXa,LT,vXa,yXa,zXa,WT,XT,BXa,$T,CXa,cU,dU,eU,fU,DXa,gU,EXa,IXa,hU,iU,JXa,KXa,MXa,LXa,NXa,OXa,PXa,jU,kU,QXa,SXa,TXa,UXa,oU,XXa,WXa,pU,qU,rU,YXa,ZXa,$Xa,aYa,bYa,sU,dYa,cYa,eYa,fYa,tU,uU,gYa,iYa,jYa,kYa,lYa,vU,mYa,wU,nYa,qYa,xU,oYa,tYa,rYa,sYa,pYa,yU,xYa,vYa,wYa,yYa,zU,zYa,AYa,BYa,DYa,CYa,AU,EYa,FYa,GYa,DU,BU,CU,HYa,IYa,EU,FU,JYa,KYa,LYa,NYa,MYa,LU,PYa,
  95. QYa,OYa,RYa,MU,SYa,NU,TYa,UYa,QU,VYa,WYa,TU,RU,XYa,UU,YYa,WU,XU,ZYa,VU,aZa,YU,$U,bZa,aV,bV,cV,cZa,fZa,eZa,eV,fV,gV,iZa,gZa,hZa,hV,jZa,nZa,lZa,kZa,mZa,iV,pZa,qZa,jV,kV,uZa,sZa,tZa,lV,wZa,rZa,xZa,mV,nV,yZa,zZa,AZa,oV,BZa,CZa,DZa,EZa,FZa,GZa,HZa,KZa,IZa,LZa,MZa,NZa,OZa,QZa,yV,zV,RZa,xV,UZa,VZa,BV,ZZa,$Za,a_a,b_a,c_a,YZa,WZa,CV,e_a,d_a,f_a,l_a,FV,o_a,r_a,q_a,p_a,j_a,k_a,g_a,h_a,m_a,GV,HV,t_a,QT,oXa,JV,u_a,w_a,v_a,n_a,y_a,z_a,A_a,LV,B_a,SV,D_a,E_a,F_a,H_a,G_a,I_a,TV,UV,J_a,M_a,N_a,WV,L_a,O_a,P_a,K_a,XV,
  96. $V,Q_a,R_a,ZV,S_a,T_a,U_a,V_a,X_a,W_a,Z_a,$_a,Y_a,c0a,a0a,cW,dW,eW,d0a,f0a,fW,e0a,g0a,i0a,h0a,j0a,gW,k0a,l0a,m0a,hW,iW,o0a,n0a,p0a,q0a,s0a,r0a,t0a,u0a,v0a,w0a,x0a,z0a,kW,jW,lW,A0a,B0a,y0a,G0a,H0a,I0a,L0a,K0a,J0a,M0a,N0a,mW,nW,O0a,P0a,Q0a,R0a,T0a,oW,qW,S0a,U0a,V0a,W0a,X0a,Y0a,sW,Z0a,$0a,c1a,tW,d1a,b1a,uW,vW,e1a,f1a,h1a,j1a,g1a,i1a,xW,k1a,m1a,n1a,p1a,q1a,yW,zW,r1a,l1a,t1a,s1a,AW,BW,CW,v1a,u1a,DW,EW,w1a,x1a,FW,y1a,z1a,A1a,GW,B1a,HW,C1a,IW,D1a,G1a,H1a,I1a,K1a,L1a,M1a,J1a,O1a,N1a,e2a,h2a,LW,j2a,i2a,f2a,
  97. g2a,k2a,l2a,MW,NW,m2a,n2a,o2a,p2a,q2a,r2a,t2a,u2a,C2a,x2a,y2a,v2a,E2a,TW,F2a,J2a,WW,K2a,G2a,SW,ZW,YW,UW,$W,N2a,P2a,O2a,aX,VW,RW,M2a,XW,H2a,L2a,R2a,OW,bX,S2a,T2a,I2a,cX,dX,U2a,eX,fX,gX,V2a,W2a,Y2a,Z2a,X2a,hX,iX,$2a,a3a,b3a,c3a,d3a,f3a,h3a,g3a,e3a,jX,j3a,i3a,kX,lX,k3a,m3a,n3a,mX,l3a,o3a,p3a,nX,q3a,oX,rX,qX,s3a,r3a,t3a,sX,tX,u3a,v3a,x3a,w3a,y3a,z3a,A3a,vX,B3a,C3a,D3a,E3a,F3a,G3a,I3a,J3a,K3a,H3a,L3a,M3a,N3a,O3a,P3a,zX,Q3a,AX,T3a,BX,V3a,CX,U3a,X3a,Y3a,W3a,DX,Z3a,b4a,d4a,f4a,j4a,p4a,q4a,r4a,s4a,IX,t4a,
  98. u4a,v4a,A4a,F4a,D4a,x4a,LX,C4a,w4a,E4a,H4a,I4a,G4a,NX,K4a,L4a,M4a,O4a,P4a,N4a,Q4a,$Ya,SX,TX,UX,R4a,WX,T4a,U4a,V4a,XX,W4a,X4a,Y4a,Z4a,$4a,a5a,S4a,b5a,YX,c5a,h5a,$X,i5a,bY,cY,j5a,dY,k5a,aY,l5a,m5a,t5a,hY,jY,v5a,kY,w5a,n5a,lY,y5a,z5a,B5a,mY,nY,C5a,u5a,oY,E5a,D5a,pY,r5a,fY,F5a,G5a,H5a,I5a,J5a,o5a,q5a,gY,M5a,N5a,P5a,O5a,rY,sY,tY,S5a,T5a,R5a,U5a,Q5a,qY,K5a,V5a,W5a,X5a,b6a,c6a,wY,L5a,e6a,i6a,yY,j6a,k6a,g6a,AY,l6a,m6a,d6a,n6a,h6a,o6a,BY,zY,p6a,r6a,q6a,xY,t6a,EY,u6a,CY,FY,DY,GY,v6a,w6a,x6a,A6a,z6a,C6a,D6a,
  99. B6a,JY,IY,F6a,G6a,H6a,I6a,J6a,L6a,K6a,M6a,LY,MY,N6a,NY,O6a,Q6a,T6a,R6a,S6a,TY,XY,V6a,YY,W6a,X6a,Y6a,ZY,$6a,a7a,b7a,Z6a,e7a,f7a,$Y,aZ,g7a,h7a,i7a,gVa,mVa,j7a,l7a,k7a,m7a,cZ,dZ,n7a,o7a,fZ,gZ,eZ,p7a,q7a,r7a,s7a,w7a,hZ,x7a,PY,z7a,A7a,B7a,C7a,D7a,E7a,F7a,jZ,G7a,kZ,H7a,lZ,J7a,K7a,mZ,L7a,M7a,N7a,O7a,P7a,Q7a,R7a,S7a,T7a,U7a,V7a,nZ,X7a,W7a,Z7a,$7a,oZ,pZ,qZ,rZ,sZ,tZ,uZ,a8a,vZ,b8a,c8a,h8a,k8a,l8a,m8a,n8a,zZ,AZ,j8a,g8a,o8a,xZ,d8a,q8a,wZ,yZ,e8a,f8a,BZ,r8a,s8a,i8a,p8a,t8a,u8a,y8a,v8a,z8a,A8a,w8a,x8a,B8a,C8a,D8a,
  100. F8a,E8a,CZ,K8a,I8a,J8a,G8a,L8a,DZ,H8a,EZ,FZ,M8a,N8a,O8a,GZ,Q8a,R8a,HZ,S8a,IZ,T8a,U8a,V8a,W8a,Y8a,Z8a,f9a,b9a,X8a,h9a,i9a,c9a,d9a,a9a,e9a,KZ,$8a,g9a,o9a,m9a,l9a,k9a,j9a,LZ,p9a,OY,q9a,MZ,NZ,r9a,s9a,t9a,OZ,u9a,VY,v9a,PZ,w9a,x9a,RY,SY,B9a,RZ,TZ,C9a,D9a,VZ,SZ,QZ,WZ,z9a,y9a,A9a,XZ,F9a,G9a,E9a,H9a,QY,I9a,UZ,J9a,K9a,L9a,M9a,YZ,N9a,O9a,c7a,d7a,ZZ,P9a,Q9a,R9a,S9a,$Z,W9a,T9a,X9a,Z9a,V9a,a$a,c$a,b$a,e$a,b_,e_,g$a,k$a,i$a,l$a,m$a,h$a,j$a,f$a,n$a,o$a,p$a,f_,q$a,I7a,r$a,s$a,g_,t$a,u$a,v$a,w$a,x$a,i_,E$a,D$a,n_,
  101. F$a,C$a,I$a,J$a,K$a,M$a,N$a,O$a,P$a,Q$a,R$a,T$a,U$a,V$a,S$a,q_,h_,W$a,X$a,o_,Z$a,L$a,p_,$$a,aab,dab,fab,eab,gab,bab,cab,kab,iab,lab,jab,mab,nab,hab,oab,pab,r_,qab,rab,sab,tab,wab,vab,uab,s_,xab,zab,Aab,Bab,w_,x_,Y7a,Cab,Dab,Gab,Fab,Eab,Hab,Jab,Kab,Iab,$9a,y_,Mab,Nab,Oab,Sab,Rab,Uab,Wab,n9a,t_,Qab,Pab,Vab,UY,JZ,a_,Zab,Yab,$ab,abb,bbb,cbb,yab,d_,c_,dbb,ebb,Y9a,fbb,Xab,d$a,A_,B_,hbb,C_,ibb,jbb,kbb,lbb,mbb,nbb,pbb,obb,rbb,sbb,wbb,tbb,vbb,xbb,E_,Bbb,zbb,Abb,Ebb,Fbb,Gbb,Hbb,Ibb,D_,Jbb,Dbb,ybb,F_,Kbb,ubb,
  102. Lbb,G_,Nbb,Obb,Pbb,Mbb,H_,Sbb,Rbb,Vbb,Ubb,Tbb,Wbb,Xbb,I_,Ybb,Zbb,ccb,$bb,acb,bcb,dcb,ecb,fcb,hcb,gcb,icb,jcb,kcb,mcb,ocb,ncb,pcb,lcb,qcb,scb,ucb,rcb,vcb,wcb,ycb,xcb,zcb,tcb,M_,Acb,Bcb,Ccb,Ecb,Gcb,Hcb,Jcb,Lcb,Q_,Ncb,Ocb,Pcb,Qcb,Scb,Rcb,Vcb,Y5a,R_,uY,Tcb,Ucb,Wcb,U_,Ycb,Xcb,Zcb,$cb,adb,ddb,bdb,gdb,W_,cdb,hdb,X_,jdb,Z_,a0,kdb,Y_,ldb,b0,odb,ndb,idb,pdb,qdb,rdb,$_,sdb,c0,tdb,mdb,Mcb,T_,vdb,vY,wdb,$5a,Z5a,xdb,ydb,zdb,Adb,Bdb,Cdb,e0,a6a,Ddb,Fdb,Gdb,Hdb,Edb,Idb,Jdb,Kdb,Ldb,Mdb,Ndb,g0,kEa,Odb,Pdb,Qdb,i0,Tdb,
  103. Udb,k0,Vdb,Wdb,Sdb,j0,h0,Rdb,n0,m0,Xdb,o0,l0,aeb,ceb,eeb,feb,heb,Zdb,deb,ieb,$db,jeb,keb,meb,p0,neb,leb,q0,peb,qeb,beb,oeb,reb,geb,Ydb,s0,xeb,ueb,yeb,veb,teb,zeb,seb,Ceb,t0,Deb,Feb,KK,Heb,Jeb,Keb,Leb,x0,Meb,p5a,Peb,y0,K_,Qeb,Seb,Neb,PX,r0,Teb,Ueb,D0,Y$a,Ieb,C0,u0,Xeb,Yeb,$eb,Zeb,Reb,A0,afb,RX,bfb,B4a,dfb,cfb,Lab,J_,F0,J4a,efb,x5a,dZa,z0,ffb,hfb,gfb,z4a,ifb,kfb,Web,Geb,mfb,lfb,B0,v0,nfb,G0,MX,pfb,qfb,iY,rfb,sfb,tfb,y4a,E0,v_,Oeb,ufb,gbb,Gfb,Bfb,Jfb,zfb,Kfb,yfb,I0,QX,Pfb,Lfb,Nfb,Mfb,Rfb,L0,M0,Ufb,Tfb,
  104. Sfb,O0,Ffb,T0,Wfb,S0,N0,Yfb,agb,bgb,Cfb,Zfb,W0,cgb,Efb,Q0,Vfb,P0,fgb,K0,ggb,hgb,igb,Z0,$0,Xfb,a1,b1,jgb,R0,Qfb,egb,dgb,kgb,lgb,mgb,$fb,ngb,U0,ogb,V0,pgb,rgb,J0,c1,Ofb,sgb,tgb,Dfb,Y0,X0,ugb,y6a,vgb,wgb,xgb,d1,e1,Agb,Dgb,Fgb,zgb,Ngb,Ogb,Pgb,Qgb,Rgb,Sgb,Tgb,Vgb,Ugb,f1,g1,h1,Wgb,Xgb,i1,QEa,Ygb,Zgb,j1,$gb,k1,l1,xEa,ahb,QM,n1,m1,FM,bhb,KM,EIa,chb,dHa,dhb,iL,jL,o1,cJa,ehb,fhb,ghb,p1,ihb,jhb,q1,s1,t1,mhb,nhb,u1,ohb,khb,lhb,phb,qhb,rhb,shb,v1,uhb,sCa,tL,vhb,whb,uL,thb,AJ,xhb,yhb,zhb,w1,Bhb,RJ,Chb,x1,y1,Dhb,
  105. Ehb,r1,Fhb,Ghb,zEa,z1,A1,Hhb,B1,C1,Ihb,D1,Jhb,E1,F1,Khb,Lhb,$Ea,G1,Mhb,Ohb,Nhb,H1,Phb,I1,J1,Qhb,Rhb,Shb,Thb,Uhb,Vhb,Xhb,L1,Whb,Yhb,Zhb,$hb,aib,eib,bib,cib,dib,gib,iib,jib,kib,hib,M1,lib,mib,nib,oib,pib,O1,qib,P1,Q1,R1,rib,sib,uib,vib,wib,xib,zib,yib,Aib,S1,T1,Dib,Bib,Cib,U1,Fib,Gib,V1,W1,Hib,X1,Jib,Y1,Kib,Lib,Mib,Z1,$1,a2,Nib,Oib,Pib,Sib,Rib,b2,Tib,Uib,Vib,BGa,Qib,Xib,Yib,$ib,aaa,ma;da=function(a){return function(){return aaa[a].apply(this,arguments)}};
  106. g.fa=function(a,b){return aaa[a]=b};
  107. baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
  108. caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
  109. oa=function(a,b){if(b)a:{var c=g.ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ma(c,a,{configurable:!0,writable:!0,value:b})}};
  110. daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
  111. return a};
  112. pa=function(a){return a.raw=a};
  113. g.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
  114. eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
  115. g.qa=function(a){return a instanceof Array?a:eaa(g.u(a))};
  116. ra=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
  117. g.y=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ua)ua(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Nf=b.prototype};
  118. va=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
  119. wa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
  120. za=function(a,b){a.C={AX:b,fZ:!0};a.j=a.K||a.G};
  121. g.z=function(a,b,c){a.j=c;return{value:b}};
  122. g.Aa=function(a){a.j=0};
  123. g.Ba=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
  124. g.Ca=function(a,b,c){a.j=b;a.K=c||0};
  125. g.Da=function(a,b){a.K=b||0;b=a.C.AX;a.C=null;return b};
  126. g.Ea=function(a){a.Y=[a.C];a.K=0;a.G=0};
  127. g.Fa=function(a,b){var c=a.Y.splice(0)[0];(c=a.C=a.C||c)?c.fZ?a.j=a.K||a.G:void 0!=c.Ia&&a.G<c.Ia?(a.j=c.Ia,a.C=null):a.j=a.G:a.j=b};
  128. gaa=function(a){this.j=new va;this.B=a};
  129. haa=function(a,b){wa(a.j);var c=a.j.D;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
  130. a.j.return(b);return Ia(a)};
  131. Ga=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,za(a.j,h),Ia(a)}a.j.D=null;d.call(a.j,f);return Ia(a)};
  132. Ia=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,za(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.fZ)throw b.AX;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
  133. iaa=function(a){this.next=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ia(a));return b};
  134. this.throw=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(za(a.j,b),b=Ia(a));return b};
  135. this.return=function(b){return haa(a,b)};
  136. this[Symbol.iterator]=function(){return this}};
  137. jaa=function(a){function b(d){return a.next(d)}
  138. function c(d){return a.throw(d)}
  139. return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
  140. f(a.next())})};
  141. g.G=function(a){return jaa(new iaa(new gaa(a)))};
  142. g.Ja=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
  143. Ka=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
  144. e[Symbol.iterator]=function(){return e};
  145. return e};
  146. kaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,mM:f}}return{i:-1,mM:void 0}};
  147. Ma=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
  148. Na=function(a){return a?a:Array.prototype.fill};
  149. Oa=function(a){return a?a:Array.prototype.copyWithin};
  150. laa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length-1;0<=d;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,mM:e}}return{i:-1,mM:void 0}};
  151. Ra=function(a){return a?a:function(b,c){return laa(this,b,c).i}};
  152. g.Va=function(a,b,c){a=a.split(".");c=c||g.Ta;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
  153. Ya=function(a,b){var c=g.Xa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
  154. g.Xa=function(a,b){a=a.split(".");b=b||g.Ta;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
  155. $a=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
  156. g.bb=function(a){var b=$a(a);return"array"==b||"object"==b&&"number"==typeof a.length};
  157. g.cb=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
  158. g.fb=function(a){return Object.prototype.hasOwnProperty.call(a,db)&&a[db]||(a[db]=++maa)};
  159. naa=function(a,b,c){return a.call.apply(a.bind,arguments)};
  160. oaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
  161. g.gb=function(a,b,c){g.gb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?naa:oaa;return g.gb.apply(null,arguments)};
  162. g.ib=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
  163. g.kb=function(){return Date.now()};
  164. g.nb=function(a,b){function c(){}
  165. c.prototype=b.prototype;a.Nf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
  166. qb=function(a){return a};
  167. paa=function(a){this.j=a};
  168. sb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
  169. tb=function(a,b){sb.call(this,a,3,b)};
  170. ub=function(a,b){sb.call(this,a,2,b)};
  171. g.vb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
  172. g.wb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.bb(d)?g.wb.apply(null,d):g.vb(d)}};
  173. g.I=function(){this.Gy=this.Gy;this.qn=this.qn};
  174. g.N=function(a,b){a.addOnDisposeCallback(g.ib(g.vb,b))};
  175. xb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,xb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
  176. yb=function(a,b){var c=xb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(xb,this,d+a[e])};
  177. qaa=function(){};
  178. g.Ab=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
  179. g.Bb=function(a){return a[a.length-1]};
  180. raa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
  181. g.Db=function(a,b,c){b=Cb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
  182. Cb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
  183. g.Eb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
  184. g.Fb=function(a,b){return 0<=saa(a,b)};
  185. taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
  186. g.Hb=function(a,b){b=saa(a,b);var c;(c=0<=b)&&g.Gb(a,b);return c};
  187. g.Gb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
  188. g.Ib=function(a,b){b=Cb(a,b);0<=b&&g.Gb(a,b)};
  189. uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Gb(a,e)&&c++})};
  190. g.Kb=function(a){return Array.prototype.concat.apply([],arguments)};
  191. g.Lb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
  192. g.Mb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.bb(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
  193. g.Ob=function(a,b,c,d){Array.prototype.splice.apply(a,Nb(arguments,1))};
  194. Nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
  195. vaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.cb(e)?"o"+g.fb(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
  196. g.Sb=function(a,b,c){return waa(a,c||Qb,!1,b)};
  197. Tb=function(a,b){return waa(a,b,!0)};
  198. waa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
  199. g.Vb=function(a,b){a.sort(b||Qb)};
  200. xaa=function(a,b){var c=Qb;g.Vb(a,function(d,e){return c(b(d),b(e))})};
  201. g.Wb=function(a,b){if(!g.bb(a)||!g.bb(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
  202. Qb=function(a,b){return a>b?1:a<b?-1:0};
  203. yaa=function(a,b){return a===b};
  204. g.Yb=function(a,b,c){c=g.Sb(a,b,c);0>c&&g.Ob(a,-(c+1),0,b)};
  205. g.bc=function(a,b,c){var d={};(0,g.ac)(a,function(e,f){d[b.call(c,e,f,a)]=e});
  206. return d};
  207. zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
  208. Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
  209. Baa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
  210. Daa=function(a){var b=g.Xa("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ta.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Caa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
  211. if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,cc[c])c=cc[c];else{c=String(c);if(!cc[c]){var f=/function\s+([^\(]+)/m.exec(c);cc[c]=f?f[1]:"[Anonymous]"}c=cc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
  212. name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
  213. Caa=function(a,b){b||(b={});b[Eaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Eaa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Caa(a,b));return c};
  214. Eaa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
  215. dc=function(a,b){return 0==a.lastIndexOf(b,0)};
  216. Faa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
  217. g.ec=function(a){return/^[\s\xa0]*$/.test(a)};
  218. gc=function(a){if(!Gaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Haa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Iaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Jaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Kaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Laa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Maa,"&#0;"));return a};
  219. g.ic=function(a,b){return-1!=a.indexOf(b)};
  220. jc=function(a,b){return g.ic(a.toLowerCase(),b.toLowerCase())};
  221. g.nc=function(a,b){var c=0;a=kc(String(a)).split(".");b=kc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=lc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||lc(0==f[2].length,0==h[2].length)||lc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
  222. lc=function(a,b){return a<b?-1:a>b?1:0};
  223. g.oc=function(){var a=g.Ta.navigator;return a&&(a=a.userAgent)?a:""};
  224. xc=function(a){return qc||sc?tc?tc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1};
  225. yc=function(a){return g.ic(g.oc(),a)};
  226. zc=function(){return qc||sc?!!tc&&0<tc.brands.length:!1};
  227. Ac=function(){return zc()?!1:yc("Opera")};
  228. Naa=function(){return zc()?!1:yc("Trident")||yc("MSIE")};
  229. Oaa=function(){return zc()?xc("Microsoft Edge"):yc("Edg/")};
  230. Bc=function(){return yc("Firefox")||yc("FxiOS")};
  231. Ic=function(){return yc("Safari")&&!(Cc()||(zc()?0:yc("Coast"))||Ac()||(zc()?0:yc("Edge"))||Oaa()||(zc()?xc("Opera"):yc("OPR"))||Bc()||yc("Silk")||yc("Android"))};
  232. Cc=function(){return zc()?xc("Chromium"):(yc("Chrome")||yc("CriOS"))&&!(zc()?0:yc("Edge"))||yc("Silk")};
  233. Paa=function(){return yc("Android")&&!(Cc()||Bc()||Ac()||yc("Silk"))};
  234. Qaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
  235. return function(c){return b[c.find(function(d){return d in b})]||""}};
  236. Raa=function(a){var b=g.oc();if("Internet Explorer"===a){if(Naa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
  237. b=Qaa(c);switch(a){case "Opera":if(Ac())return b(["Version","Opera"]);if(zc()?xc("Opera"):yc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(zc()?0:yc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(Cc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bc()||"Safari"===a&&Ic()||"Android Browser"===a&&Paa()||"Silk"===a&&yc("Silk")?(b=c[2])&&b[1]||"":""};
  238. Saa=function(a){if(zc()&&"Silk"!==a){var b=tc.brands.find(function(c){return c.brand===a});
  239. if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
  240. Jc=function(){return qc||sc?!!tc&&!!tc.platform:!1};
  241. Taa=function(){return Jc()?"Android"===tc.platform:yc("Android")};
  242. Kc=function(){return yc("iPhone")&&!yc("iPod")&&!yc("iPad")};
  243. Lc=function(){return Kc()||yc("iPad")||yc("iPod")};
  244. Mc=function(){return Jc()?"macOS"===tc.platform:yc("Macintosh")};
  245. Uaa=function(){return Jc()?"Windows"===tc.platform:yc("Windows")};
  246. Nc=function(a){Nc[" "](a);return a};
  247. Oc=function(a,b){try{return Nc(a[b]),!0}catch(c){}return!1};
  248. Waa=function(a,b){var c=Vaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
  249. g.Pc=function(a){return Waa(a,function(){return 0<=g.nc(Xaa,a)})};
  250. Yaa=function(a){return g.Qc?"webkit"+a:a.toLowerCase()};
  251. Rc=function(a,b){g.Ab.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)};
  252. Tc=function(a){return!(!a||!a[Zaa])};
  253. aba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ed=e;this.key=++$aa;this.removed=this.mI=!1};
  254. Uc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Ed=null};
  255. g.Vc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
  256. g.Xc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
  257. Yc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
  258. g.Zc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
  259. bba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
  260. g.$c=function(a){for(var b in a)return b};
  261. cba=function(a){for(var b in a)return a[b]};
  262. g.cd=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
  263. g.dd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
  264. g.ed=function(a,b){return null!==a&&b in a};
  265. g.gd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
  266. id=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
  267. dba=function(a,b){return(b=id(a,b))&&a[b]};
  268. g.jd=function(a){for(var b in a)return!1;return!0};
  269. g.eba=function(a){for(var b in a)delete a[b]};
  270. g.kd=function(a,b,c){return null!==a&&b in a?a[b]:c};
  271. g.ld=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
  272. g.md=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
  273. g.nd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.nd(a[c]);return b};
  274. g.od=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<fba.length;f++)c=fba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
  275. pd=function(a){this.src=a;this.listeners={};this.j=0};
  276. g.qd=function(a,b){var c=b.type;c in a.listeners&&g.Hb(a.listeners[c],b)&&(Uc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
  277. rd=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.Ed==d)return e}return-1};
  278. g.ud=function(a,b,c,d,e){if(d&&d.once)return td(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.ud(a,b[f],c,d,e);return null}c=vd(c);return Tc(a)?a.listen(b,c,g.cb(d)?!!d.capture:!!d,e):gba(a,b,c,!1,d,e)};
  279. gba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.cb(e)?!!e.capture:!!e,l=wd(a);l||(a[xd]=l=new pd(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=hba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)iba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(jba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");kba++;return c};
  280. hba=function(){function a(c){return b.call(a.src,a.listener,c)}
  281. var b=lba;return a};
  282. td=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=vd(c);return Tc(a)?a.oF(b,c,g.cb(d)?!!d.capture:!!d,e):gba(a,b,c,!0,d,e)};
  283. mba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)mba(a,b[f],c,d,e);else d=g.cb(d)?!!d.capture:!!d,c=vd(c),Tc(a)?a.Pc(b,c,d,e):a&&(a=wd(a))&&(b=a.wE(b,c,d,e))&&Ad(b)};
  284. Ad=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Tc(b))g.qd(b.hm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(jba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);kba--;(c=wd(b))?(g.qd(c,a),0==c.j&&(c.src=null,b[xd]=null)):Uc(a)}}};
  285. jba=function(a){return a in Bd?Bd[a]:Bd[a]="on"+a};
  286. lba=function(a,b){if(a.removed)a=!0;else{b=new Rc(b,this);var c=a.listener,d=a.Ed||a.src;a.mI&&Ad(a);a=c.call(d,b)}return a};
  287. wd=function(a){a=a[xd];return a instanceof pd?a:null};
  288. vd=function(a){if("function"===typeof a)return a;a[Cd]||(a[Cd]=function(b){return a.handleEvent(b)});
  289. return a[Cd]};
  290. g.Dd=function(){g.I.call(this);this.hm=new pd(this);this.A6=this;this.RR=null};
  291. Ed=function(a,b,c,d){b=a.hm.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.Ed||h.src;h.mI&&g.qd(a.hm,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
  292. Fd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
  293. nba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
  294. Gd=function(a){return function(){return a}};
  295. g.Hd=function(){};
  296. oba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
  297. Id=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
  298. Nd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
  299. pba=function(a,b){var c=0;return function(d){g.Ta.clearTimeout(c);var e=arguments;c=g.Ta.setTimeout(function(){a.apply(b,e)},50)}};
  300. Od=function(a,b){this.j=a===qba&&b||"";this.B=rba};
  301. Pd=function(a){return a instanceof Od&&a.constructor===Od&&a.B===rba?a.j:"type_error:Const"};
  302. Qd=function(a){return new Od(qba,a)};
  303. Vd=function(){if(void 0===Ud){var a=null,b=g.Ta.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:qb,createScript:qb,createScriptURL:qb})}catch(c){g.Ta.console&&g.Ta.console.error(c.message)}Ud=a}else Ud=a}return Ud};
  304. g.Wd=function(a){this.u0=a};
  305. g.Xd=function(a){return a instanceof g.Wd&&a.constructor===g.Wd?a.u0:"type_error:TrustedResourceUrl"};
  306. $d=function(a){var b=Vd();a=b?b.createScriptURL(a):a;return new g.Wd(a,sba)};
  307. g.ae=function(a){this.w0=a};
  308. g.be=function(a){if(a instanceof g.ae)return a.w0;throw Error("");};
  309. ce=function(a){this.ue=a};
  310. fe=function(a){return new ce(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
  311. g.he=function(a,b){b=void 0===b?tba:b;a:if(b=void 0===b?tba:b,!(a instanceof g.ae)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ce&&d.ue(a)){a=new g.ae(a);break a}}a=void 0}return a||g.ge};
  312. me=function(a){a instanceof g.ae?a=g.be(a):a=uba.test(a)?a:void 0;return a};
  313. g.ne=function(a){this.t0=a};
  314. oe=function(a){return a instanceof g.ne&&a.constructor===g.ne?a.t0:"type_error:SafeStyle"};
  315. Bba=function(a){if(a instanceof g.ae)return'url("'+a.toString().replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Od)a=Pd(a);else{a=String(a);var b=a.replace(vba,"$1").replace(vba,"$1").replace(wba,"url");if(xba.test(b)){if(b=!yba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&zba(a)}a=b?Aba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new yb("Value does not allow [{;}], got: %s.",[a]);return a};
  316. zba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
  317. Aba=function(a){return a.replace(wba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
  318. b=g.he(d).toString();return c+f+b+f+e})};
  319. g.pe=function(a){this.s0=a};
  320. g.qe=function(a){return a instanceof g.pe&&a.constructor===g.pe?a.s0:"type_error:SafeHtml"};
  321. Dba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.pe?e:re(gc(String(e))),d.push(g.qe(e).toString()))}
  322. var c=Cba;c=c instanceof g.pe?c:re(gc(String(c)));var d=[];a.forEach(b);return re(d.join(g.qe(c).toString()))};
  323. Eba=function(a){return Dba(Array.prototype.slice.call(arguments))};
  324. re=function(a){var b=Vd();a=b?b.createHTML(a):a;return new g.pe(a,Fba)};
  325. we=function(){this.j=Gba[0].toLowerCase()};
  326. xe=function(a){this.v0=a};
  327. Hba=function(a){var b=Vd();return new xe(b?b.createScript(a):a)};
  328. ye=function(a){if(a instanceof xe)return a.v0;throw Error("");};
  329. Iba=function(a){return oe(a)};
  330. Jba=function(a){var b=g.Ja.apply(1,arguments);if(0===b.length)return $d(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return $d(c)};
  331. Kba=function(a){for(var b=g.Ja.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.ne(c,ze)};
  332. Mba=function(a,b,c,d){a=Lba(a);b=b||g.Ta;c=c instanceof Od?Pd(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)};
  333. Lba=function(a){a=me(a);return void 0!==a?a:g.ge.toString()};
  334. g.Ce=function(a,b,c){return Math.min(Math.max(a,b),c)};
  335. g.Ge=function(a,b){a%=b;return 0>a*b?a+b:a};
  336. He=function(a,b,c){return a+c*(b-a)};
  337. g.Ie=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
  338. Je=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
  339. g.Ke=function(a,b){this.width=a;this.height=b};
  340. g.Le=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
  341. g.Me=function(a,b){b=me(b);void 0!==b&&(a.href=b)};
  342. Nba=function(a){var b="true".toString(),c=[new we];if(0===c.length)throw Error("");if(c.map(function(d){if(d instanceof we)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="data-loaded".indexOf(d)}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
  343. a.setAttribute("data-loaded",b)};
  344. Ne=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
  345. g.Qe=function(a,b,c){var d=window;a=me(a);return void 0!==a?d.open(a,b,c):null};
  346. Re=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
  347. Ue=function(a){var b=Re(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
  348. g.Ve=function(a,b){a.src=g.Xd(b);Ue(a)};
  349. Oba=function(a,b){return a.parseFromString(g.qe(b),"text/xml")};
  350. g.We=function(a){return encodeURIComponent(String(a))};
  351. Xe=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
  352. Ye=function(a){return a=gc(a)};
  353. g.$e=function(a){return null==a?"":String(a)};
  354. af=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
  355. bf=function(a){var b=Number(a);return 0==b&&g.ec(a)?NaN:b};
  356. Pba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
  357. Qba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
  358. Rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
  359. Sba=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
  360. mf=function(a){return a?new cf(lf(a)):Tba||(Tba=new cf)};
  361. nf=function(a,b){return"string"===typeof b?a.getElementById(b):b};
  362. g.of=function(a,b){return(b||document).getElementsByTagName(String(a))};
  363. g.wf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.rf(document,"*",a,b)};
  364. g.xf=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.rf(c,"*",a,b)[0]||null}return a||null};
  365. g.rf=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
  366. yf=function(a,b){g.Vc(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Uba.hasOwnProperty(d)?a.setAttribute(Uba[d],c):dc(d,"aria-")||dc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
  367. Vba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Ke(a.clientWidth,a.clientHeight)};
  368. Xba=function(a){var b=Wba(a);a=a.parentWindow||a.defaultView;return new g.Ie(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
  369. Wba=function(a){return a.scrollingElement?a.scrollingElement:g.Qc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
  370. zf=function(a){return a?a.parentWindow||a.defaultView:window};
  371. Bf=function(a,b,c){var d=arguments,e=document,f=d[1],h=Af(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):yf(h,f));2<d.length&&Yba(e,h,d,2);return h};
  372. Yba=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
  373. for(;d<c.length;d++){var f=c[d];if(!g.bb(f)||g.cb(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.cb(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.ac(h?g.Lb(f):f,e)}}};
  374. g.Cf=function(a){return Af(document,a)};
  375. Af=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
  376. g.Df=function(a){return document.createTextNode(String(a))};
  377. g.Ff=function(a,b){a.appendChild(b)};
  378. g.Gf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
  379. Hf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
  380. g.Pf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
  381. g.Qf=function(a){var b;if(g.Qc&&(b=a.parentElement))return b;b=a.parentNode;return g.cb(b)&&1==b.nodeType?b:null};
  382. g.Rf=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
  383. lf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
  384. g.Sf=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Gf(a),a.appendChild(lf(a).createTextNode(String(b)))};
  385. $ba=function(a){return"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||Zba(a)):a.hasAttribute("tabindex")&&Zba(a)};
  386. Zba=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
  387. Uf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Tf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
  388. Tf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
  389. cf=function(a){this.j=a||g.Ta.document||document};
  390. Wf=function(a){"function"!==typeof g.Ta.setImmediate||g.Ta.Window&&g.Ta.Window.prototype&&g.Ta.Window.prototype.setImmediate==g.Ta.setImmediate?(Vf||(Vf=aca()),Vf(a)):g.Ta.setImmediate(a)};
  391. aca=function(){var a=g.Ta.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!yc("Presto")&&(a=function(){var e=g.Cf("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.gb)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},
  392. this);
  393. f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
  394. if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.MW;c.MW=null;e()}};
  395. return function(e){d.next={MW:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ta.setTimeout(e,0)}};
  396. Yf=function(a){g.Ta.setTimeout(function(){throw a;},0)};
  397. Zf=function(){this.B=this.j=null};
  398. fg=function(){this.next=this.scope=this.vt=null};
  399. g.ig=function(a,b){gg||bca();hg||(gg(),hg=!0);cca.add(a,b)};
  400. bca=function(){if(g.Ta.Promise&&g.Ta.Promise.resolve){var a=g.Ta.Promise.resolve(void 0);gg=function(){a.then(dca)}}else gg=function(){Wf(dca)}};
  401. dca=function(){for(var a;a=cca.remove();){try{a.vt.call(a.scope)}catch(b){Yf(b)}nba(eca,a)}hg=!1};
  402. g.kg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Hd)try{var b=this;a.call(void 0,function(c){jg(b,2,c)},function(c){jg(b,3,c)})}catch(c){jg(this,3,c)}};
  403. fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
  404. lg=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d};
  405. mg=function(a){if(a instanceof g.kg)return a;var b=new g.kg(g.Hd);jg(b,2,a);return b};
  406. ng=function(a){return new g.kg(function(b,c){c(a)})};
  407. g.ica=function(a,b,c){hca(a,b,c,null)||g.ig(g.ib(b,a))};
  408. jca=function(a){return new g.kg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.ica(e,b,c)})};
  409. lca=function(){var a,b,c=new g.kg(function(d,e){a=d;b=e});
  410. return new kca(c,a,b)};
  411. pg=function(a,b){b=lg(b,b);b.D=!0;og(a,b);return a};
  412. mca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?mca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):nca(c),oca(c,e,3,b)))}a.C=null}else jg(a,3,b)};
  413. og=function(a,b){a.B||2!=a.j&&3!=a.j||pca(a);a.D?a.D.next=b:a.B=b;a.D=b};
  414. qca=function(a,b,c,d){var e=lg(null,null,null);e.j=new g.kg(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
  415. e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof qg?h(l):f(m)}catch(n){h(n)}}:h});
  416. e.j.C=a;og(a,e);return e.j};
  417. jg=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hca(c,a.yea,a.zea,a)||(a.N=c,a.j=b,a.C=null,pca(a),3!=b||c instanceof qg||rca(a,c)))};
  418. hca=function(a,b,c,d){if(a instanceof g.kg)return og(a,lg(b||g.Hd,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.cb(a))try{var f=a.then;if("function"===typeof f)return sca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
  419. sca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
  420. function h(m){l||(l=!0,c.call(e,m))}
  421. var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
  422. pca=function(a){a.K||(a.K=!0,g.ig(a.W7,a))};
  423. nca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
  424. oca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,tca(b,c,d);else try{b.D?b.C.call(b.context):tca(b,c,d)}catch(e){uca.call(null,e)}nba(gca,b)};
  425. tca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
  426. rca=function(a,b){a.G=!0;g.ig(function(){a.G&&uca.call(null,b)})};
  427. qg=function(a){xb.call(this,a)};
  428. kca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
  429. g.rg=function(a,b){g.Dd.call(this);this.Ti=a||1;this.jH=b||g.Ta;this.GW=(0,g.gb)(this.hea,this);this.vZ=g.kb()};
  430. g.Dg=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.gb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.gb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Ta.setTimeout(a,b||0)};
  431. Eg=function(a,b){var c=null;return(new g.kg(function(d,e){c=g.Dg(function(){d(b)},a);
  432. -1==c&&e(Error("Failed to schedule timer."))})).xl(function(d){g.Ta.clearTimeout(c);
  433. throw d;})};
  434. g.Fg=function(a){g.I.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.rg(this.flushInterval);this.j.listen("tick",this.Mm,!1,this);g.N(this,this.j)};
  435. vca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.Mm()};
  436. wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
  437. xca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
  438. yca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/fic",{oe:3,me:"ke"})};
  439. zca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/fiec",{oe:3,me:"rk"},{oe:3,me:"ke"},{oe:2,me:"ec"})};
  440. Aca=function(a){this.j=a;this.j.vD("/client_streamz/bg/fil",{oe:3,me:"rk"},{oe:3,me:"ke"})};
  441. Bca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/fcc",{oe:2,me:"ph"},{oe:3,me:"ke"})};
  442. Cca=function(a){this.j=a;this.j.vD("/client_streamz/bg/fcd",{oe:2,me:"ph"},{oe:3,me:"ke"})};
  443. Dca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/fsc",{oe:3,me:"rk"},{oe:3,me:"ke"})};
  444. Eca=function(a){this.j=a;this.j.vD("/client_streamz/bg/fsl",{oe:3,me:"rk"},{oe:3,me:"ke"})};
  445. Gg=function(a){this.j=a;this.j.vD("/client_streamz/bg/wrl",{oe:3,me:"mn"},{oe:2,me:"ac"},{oe:2,me:"sc"},{oe:3,me:"rk"})};
  446. Hg=function(a){this.j=a;this.j.vD("/client_streamz/bg/el",{oe:3,me:"en"},{oe:3,me:"rk"})};
  447. Fca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/cec",{oe:2,me:"ec"},{oe:3,me:"rk"})};
  448. Gca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/po/csc",{oe:2,me:"cs"},{oe:3,me:"rk"})};
  449. Hca=function(a){this.j=a;this.j.Nj("/client_streamz/bg/po/ctav",{oe:3,me:"av"},{oe:3,me:"rk"})};
  450. Ica=function(a){this.j=a;this.j.Nj("/client_streamz/bg/po/cwsc",{oe:3,me:"su"},{oe:3,me:"rk"})};
  451. Ig=function(){throw Error("Invalid UTF8");};
  452. Jca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
  453. Nca=function(a){var b=!1;b=void 0===b?!1:b;if(Kca){if(b&&(Lca?!a.P9():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Mca||(Mca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;
  454. d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
  455. Oca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
  456. Pca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
  457. g.Jg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
  458. g.Kg=function(a,b){void 0===b&&(b=0);Qca();b=Rca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
  459. g.Lg=function(a,b){if(Sca&&!b)a=g.Ta.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Kg(c,b)}return a};
  460. Uca=function(a){var b=[];Tca(a,function(c){b.push(c)});
  461. return b};
  462. Mg=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ic("=.",a[b-1])&&(c=g.ic("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Tca(a,function(f){d[e++]=f});
  463. return e!==c?d.subarray(0,e):d};
  464. Tca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Ng[n];if(null!=p)return p;if(!g.ec(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
  465. Qca();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
  466. Qca=function(){if(!Ng){Ng={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Rca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Ng[f]&&(Ng[f]=e)}}}};
  467. Wca=function(a){if(!Vca)return g.Kg(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
  468. Yca=function(a){return Xca[a]||""};
  469. $ca=function(a){if(!Vca)return Mg(a);Zca.test(a)&&(a=a.replace(Zca,Yca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
  470. Og=function(a){return ada&&null!=a&&a instanceof Uint8Array};
  471. Pg=function(){return bda||(bda=new Uint8Array(0))};
  472. cda=function(a){if(a!==$g)throw Error("illegal external caller");};
  473. ah=function(a,b){cda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
  474. bh=function(){return dda||(dda=new ah(null,$g))};
  475. eda=function(a){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=Wca(b)};
  476. dh=function(a){return(a=ch(a))?new Uint8Array(a):Pg()};
  477. ch=function(a){cda($g);var b=a.j;b=null==b||Og(b)?b:"string"===typeof b?$ca(b):null;return null==b?b:a.j=b};
  478. fda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
  479. eh=function(){return Error("Failed to read varint, encoding is invalid.")};
  480. gda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
  481. fh=function(a){if("string"===typeof a)return{buffer:$ca(a),Mw:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Mw:!1};if(a.constructor===Uint8Array)return{buffer:a,Mw:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Mw:!1};if(a.constructor===ah)return{buffer:ch(a)||Pg(),Mw:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Mw:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
  482. };
  483. gh=function(){return"function"===typeof BigInt};
  484. kh=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(hh(c,a)),b=c.next().value,a=c.next().value,c=b);ih=c>>>0;jh=a>>>0};
  485. hda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
  486. lh=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else gh()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+ida(c)+ida(a));return c};
  487. ida=function(a){a=String(a);return"0000000".slice(a.length)+a};
  488. jda=function(){var a=ih,b=jh;b&2147483648?gh()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.u(hh(a,b)),a=b.next().value,b=b.next().value,a="-"+lh(a,b)):a=lh(a,b);return a};
  489. mh=function(a){if(16>a.length)kh(Number(a));else if(gh())a=BigInt(a),ih=Number(a&BigInt(4294967295))>>>0,jh=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);jh=ih=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),jh*=1E6,ih=1E6*ih+d,4294967296<=ih&&(jh+=Math.trunc(ih/4294967296),jh>>>=0,ih>>>=0);b&&(b=g.u(hh(ih,jh)),a=b.next().value,b=b.next().value,ih=a,jh=b)}};
  490. hh=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
  491. nh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
  492. Bh=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;oh(a,f);if(128>h)return hda(b>>>0,c>>>0);throw eh();};
  493. oh=function(a,b){a.j=b;if(b>a.C)throw gda(a.C,b);};
  494. Ch=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw eh();oh(a,c);return e};
  495. Dh=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];oh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
  496. Eh=function(a){var b=Dh(a);return 4294967296*Dh(a)+(b>>>0)};
  497. Fh=function(a){var b=Dh(a),c=Dh(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
  498. Gh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return oh(a,c),!!(b&127)}throw eh();};
  499. kda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw gda(b,a.C-c);a.j=d;return c};
  500. mda=function(a,b){if(0==b)return bh();var c=kda(a,b);a.aI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Pg():lda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?bh():new ah(c,$g)};
  501. Ih=function(a,b){if(Hh.length){var c=Hh.pop();c.init(a,void 0,void 0,b);a=c}else a=new nh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;nda(this,b)};
  502. nda=function(a,b){b=void 0===b?{}:b;a.AO=void 0===b.AO?!1:b.AO};
  503. oda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Ch(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw fda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
  504. Jh=function(a){switch(a.B){case 0:0!=a.B?Jh(a):Gh(a.j);break;case 1:a=a.j;oh(a,a.j+8);break;case 2:if(2!=a.B)Jh(a);else{var b=Ch(a.j)>>>0;a=a.j;oh(a,a.j+b)}break;case 5:a=a.j;oh(a,a.j+4);break;case 3:b=a.D;do{if(!oda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Jh(a)}while(1);break;default:throw fda(a.B,a.C);}};
  505. Kh=function(a,b,c){var d=a.j.C,e=Ch(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d};
  506. Nh=function(a){var b=Ch(a.j)>>>0;a=a.j;var c=kda(a,b);a=a.B;if(pda){var d=a,e;(e=Lh)||(e=Lh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Mh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Mh=!0}catch(p){Mh=!1}}!Mh&&(Lh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Ig():(m=a[f++],194>l||128!==(m&192)?(f--,Ig()):c.push((l&31)<<6|m&63)):
  507. 240>l?f>=b-1?Ig():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Ig()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Ig():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Ig()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Ig(),8192<=c.length&&(h=Jca(h,c),c.length=0);f=Jca(h,c)}return f};
  508. qda=function(a){var b=Ch(a.j)>>>0;return mda(a.j,b)};
  509. rda=function(a,b){this.B=a>>>0;this.j=b>>>0};
  510. tda=function(a){if(!a)return sda||(sda=new rda(0,0));if(!/^\d+$/.test(a))return null;mh(a);return new rda(ih,jh)};
  511. uda=function(a,b){this.B=a>>>0;this.j=b>>>0};
  512. wda=function(a){if(!a)return vda||(vda=new uda(0,0));if(!/^-?\d+$/.test(a))return null;mh(a);return new uda(ih,jh)};
  513. Oh=function(){this.j=[]};
  514. xda=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
  515. Ph=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
  516. yda=function(a,b){if(0<=b)Ph(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
  517. Qh=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
  518. zda=function(){this.C=[];this.B=0;this.j=new Oh};
  519. Rh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
  520. Sh=function(a,b,c){Ph(a.j,8*b+c)};
  521. Ada=function(a,b,c){null!=c&&("string"===typeof c&&tda(c),Sh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,ih=b,jh=c,Qh(a,ih),Qh(a,jh)):(c=tda(c),a=a.j,b=c.j,Qh(a,c.B),Qh(a,b)))};
  522. Th=function(a,b,c){Sh(a,b,2);Ph(a.j,c.length);Rh(a,a.j.end());Rh(a,c)};
  523. Uh=function(a,b,c,d){this.sM=a;this.tM=b;this.j=c;this.d3=d};
  524. Wh=function(a){return Array.prototype.slice.call(a)};
  525. Xh=function(a){return"function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():a};
  526. Yh=function(a,b,c){return c?a|b:a&~b};
  527. $h=function(a){Zh(a,34);return a};
  528. Bda=function(a,b){si(b,(a|0)&-14591)};
  529. ti=function(a,b){si(b,(a|34)&-14557)};
  530. Cda=function(a){a=a>>14&1023;return 0===a?536870912:a};
  531. Eda=function(a){return!(!a||"object"!==typeof a||a.i$!==Dda)};
  532. ui=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
  533. vi=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new ah(a,$g):bh();else if(a.constructor!==ah)if(Og(a))a=a.length?new ah(c?a:new Uint8Array(a),$g):bh();else{if(!b)throw Error();a=void 0}return a};
  534. xi=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=wi(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;si(a,d|1);return!0};
  535. yi=function(a){if(a&2)throw Error();};
  536. Fda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
  537. Gda=function(a,b){if("number"!==typeof b||0>b||b>a.length)throw Error();};
  538. zi=function(a,b,c){this.C=0;this.j=a;this.B=b;this.D=c};
  539. Hda=function(a,b){(b=Ai?b[Ai]:void 0)&&(a[Ai]=Wh(b))};
  540. Ida=function(){var a=Error();Baa(a,"incident");Yf(a)};
  541. Bi=function(a){a=Error(a);Baa(a,"warning");return a};
  542. Ci=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
  543. Jda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
  544. Kda=function(a){return a.displayName||a.name||"unknown type name"};
  545. Lda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+$a(a)+": "+a);return a};
  546. Mda=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a};
  547. Di=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Nda.test(a)};
  548. Ei=function(a){if(!Number.isFinite(a))throw Bi("enum");return a|0};
  549. Fi=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0};
  550. Gi=function(a){if("number"!==typeof a)throw Bi("int32");if(!Number.isFinite(a))throw Bi("int32");return a|0};
  551. Hi=function(a){return null==a?a:Gi(a)};
  552. Ii=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0};
  553. Ji=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0};
  554. Pda=function(a,b){b=!!b;if(!Di(a))throw Bi("int64");return"string"===typeof a?Ki(a):b?Oda(a):Li(a)};
  555. Mi=function(a){return null==a?a:Pda(a)};
  556. ej=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))};
  557. Qda=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337<Number(a.substring(0,7)):19>a.length?!0:19===a.length&&922337>Number(a.substring(0,6))};
  558. Rda=function(a){if(0>a){kh(a);var b=lh(ih,jh);a=Number(b);return Number.isSafeInteger(a)?a:b}if(ej(String(a)))return a;kh(a);return 4294967296*jh+(ih>>>0)};
  559. Li=function(a){Di(a);a=Math.trunc(a);Number.isSafeInteger(a)||(kh(a),a=hda(ih,jh));return a};
  560. fj=function(a){Di(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:Rda(a)};
  561. Oda=function(a){Di(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Qda(b)?a=b:(kh(a),a=jda())}return a};
  562. Ki=function(a){Di(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Qda(a)||(mh(a),a=jda());return a};
  563. gj=function(a){Di(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));ej(a)||(mh(a),a=lh(ih,jh));return a};
  564. Sda=function(a){if(null==a)return a;if(Di(a)){if("string"===typeof a)return gj(a);if("number"===typeof a)return fj(a)}};
  565. Tda=function(a){if(null==a||"string"==typeof a||Og(a)||a instanceof ah)return a};
  566. hj=function(a){if("string"!==typeof a)throw Error();return a};
  567. ij=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
  568. jj=function(a){return null==a||"string"===typeof a?a:void 0};
  569. kj=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Kda(b)+" but got "+(a&&Kda(a.constructor)));return a};
  570. mj=function(a,b,c,d){if(null!=a&&"object"===typeof a&&a.qK===lj)return a;if(!Array.isArray(a))return c?d&2?(a=b[Uda])?b=a:(a=new b,$h(a.oa),b=b[Uda]=a):b=new b:b=void 0,b;var e=c=wi(a);0===e&&(e|=d&32);e|=d&2;e!==c&&si(a,e);return new b(a)};
  571. oj=function(a,b){nj=b;a=new a(b);nj=void 0;return a};
  572. qj=function(a){switch(typeof a){case "boolean":return pj||(pj=[0,void 0,!0]);case "number":return 0<a?void 0:0===a?Vda||(Vda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
  573. P=function(a,b,c){null==a&&(a=nj);nj=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=wi(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(ui(c[f])){d|=256;b=f-(+!!(d&512)-1);if(1024<=b)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(1024<b)throw Error("spvt");d=d&-16760833|(b&1023)<<
  574. 14}}}si(a,d);return a};
  575. rj=function(){this.j=new Map};
  576. Wda=function(a){return a};
  577. tj=function(a,b,c,d){c=void 0===c?Wda:c;d=void 0===d?Wda:d;var e=sj.call(this)||this;var f=wi(a);f|=64;si(a,f);e.cI=f;e.nM=b;e.gF=c;e.OT=e.nM?Xda:d;for(var h=0;h<a.length;h++){var l=a[h],m=c(l[0],!1,!0),n=l[1];b?void 0===n&&(n=null):n=d(l[1],!1,!0,void 0,void 0,f);sj.prototype.set.call(e,m,n)}return e};
  578. uj=function(a){if(a.cI&2)throw Error("Cannot mutate an immutable Map");};
  579. $da=function(a,b){b=void 0===b?Yda:b;if(0!==a.size)return Zda(a,b)};
  580. Zda=function(a,b){b=void 0===b?Yda:b;var c=[];a=sj.prototype.entries.call(a);for(var d;!(d=a.next()).done;)d=d.value,d[0]=b(d[0]),d[1]=b(d[1]),c.push(d);return c};
  581. Xda=function(a,b,c,d,e,f){b&&kj(a,d);a=mj(a,d,c,f);e&&(a=Jj(a));return a};
  582. Yda=function(a){return a};
  583. aea=function(a){return[a,this.get(a)]};
  584. cea=function(a,b){return bea(b)};
  585. bea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(xi(a,void 0,0))return}else{if(Og(a))return Wca(a);if(a instanceof ah)return eda(a);if(a instanceof tj)return $da(a)}}return a};
  586. dea=function(a,b,c){var d=Wh(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Hda(d,a);return d};
  587. Lj=function(a,b,c,d,e){if(null!=a){if(Array.isArray(a))a=xi(a,void 0,0)?void 0:e&&wi(a)&2?a:Kj(a,b,c,void 0!==d,e);else if(ui(a)){var f={},h;for(h in a)f[h]=Lj(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
  588. Kj=function(a,b,c,d,e){var f=d||c?wi(a):0;d=d?!!(f&32):void 0;for(var h=Wh(a),l=0;l<h.length;l++)h[l]=Lj(h[l],b,c,d,e);c&&(Hda(h,a),c(f,h));return h};
  589. fea=function(a){return Lj(a,eea,void 0,void 0,!1)};
  590. eea=function(a){return a.qK===lj?a.toJSON():a instanceof tj?$da(a,fea):bea(a)};
  591. Mj=function(a,b,c){c=void 0===c?ti:c;if(null!=a){if(ada&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=wi(a);d&2||(b&&(b=0===d||!!(d&32)&&!(d&64||!(d&16))),a=b?si(a,(d|34)&-12293):Kj(a,Mj,d&4?ti:c,!0,!0));return a}a.qK===lj?(c=a.oa,d=Nj(c),a=d&2?a:oj(a.constructor,Oj(c,d,!0))):a instanceof tj&&!(a.cI&2)&&(c=$h(Zda(a,Mj)),a=new tj(c,a.nM,a.gF,a.OT));return a}};
  592. Oj=function(a,b,c){var d=c||b&2?ti:Bda,e=!!(b&32);a=dea(a,b,function(f){return Mj(f,e,d)});
  593. Zh(a,32|(c?2:0));return a};
  594. Jj=function(a){var b=a.oa,c=Nj(b);return c&2?oj(a.constructor,Oj(b,c,!1)):a};
  595. hea=function(a,b,c,d){if(!(4&b))return!0;if(null==c)return!1;!d&&0===c&&(4096&b||8192&b)&&5>(a.constructor[gea]=(a.constructor[gea]|0)+1)&&Ida();return 0===c?!1:!(c&b)};
  596. Qj=function(a,b){a=a.oa;return Pj(a,Nj(a),b)};
  597. iea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(0>b||b>=a.length||b>=c))return a[b]};
  598. Pj=function(a,b,c,d){if(-1===c)return null;var e=Cda(b);if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],null!=d)){if(iea(a,b,e,c)&&null!=Rj){var h;a=null!=(h=jea)?h:jea={};h=a[Rj]||0;4<=h||(a[Rj]=h+1,Ida())}return d}return iea(a,b,e,c)}};
  599. Tj=function(a,b,c){var d=a.oa,e=Nj(d);yi(e);Sj(d,e,b,c);return a};
  600. Sj=function(a,b,c,d,e){var f=Cda(b);if(c>=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&si(a,h);return h}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
  601. Uj=function(a,b,c){return void 0!==kea(a,b,c,!1)};
  602. Xj=function(a,b,c,d,e){var f=b&2,h=Pj(a,b,c,e);Array.isArray(h)||(h=Vj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=wi(h);0!==n||!m||f||l?n&1||(n|=1,si(h,n)):(n|=33,si(h,n));f?(a=!1,n&2||($h(h),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Wh(h),d=1,m&&!l&&(d|=32),si(h,d),Sj(a,b,c,h,e)):l&&n&32&&!f&&Wj(h,32));return h};
  603. bk=function(a,b,c,d,e,f){var h=a.oa,l=Nj(h);d=2&l?1:d;f=!!f;var m=lea(h,l,b,e),n=wi(m);if(hea(a,n,void 0,f)){if(4&n||Object.isFrozen(m))m=Wh(m),n=Yj(n,l),l=Sj(h,l,b,m,e);for(var p=a=0;a<m.length;a++){var q=c(m[a]);null!=q&&(m[p++]=q)}p<a&&(m.length=p);n=mea(n,l);n=Yh(n,20,!0);n=Yh(n,4096,!1);n=Yh(n,8192,!1);si(m,n);2&n&&Object.freeze(m)}Zj(n)||(c=n,n=(a=1===d||4===d&&!!(32&n))?Yh(n,2,!0):ak(n,l,f),n!==c&&si(m,n),a&&Object.freeze(m));2===d&&Zj(n)&&(m=Wh(m),n=Yj(n,l),n=ak(n,l,f),si(m,n),Sj(h,l,b,m,
  604. e));return m};
  605. lea=function(a,b,c,d){a=Pj(a,b,c,d);return Array.isArray(a)?a:Vj};
  606. mea=function(a,b){0===a&&(a=Yj(a,b));return a=Yh(a,1,!0)};
  607. Zj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
  608. nea=function(a){return vi(a,!0,!0)};
  609. oea=function(a){return vi(a,!0,!1)};
  610. ck=function(a,b){a=a.oa;var c=Nj(a),d=Pj(a,c,b),e=vi(d,!0,!!(c&34));null!=e&&e!==d&&Sj(a,c,b,e);return null==e?bh():e};
  611. dk=function(a,b,c){var d=a.oa,e=Nj(d);yi(e);if(null==b)return Sj(d,e,3),a;if(!Array.isArray(b))throw Bi();var f=wi(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&!1;if(hea(a,f))for(f=21,l&&(b=Wh(b),h=0,f=Yj(f,e),f=ak(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Wh(b),h=0,f=Yj(f,e),f=ak(f,e,!0));f!==h&&si(b,f);Sj(d,e,3,b);return a};
  612. ek=function(a,b,c,d){var e=a.oa,f=Nj(e);yi(f);Sj(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
  613. gk=function(a,b,c,d,e){fk(a.oa,b,c,d,e);return a};
  614. fk=function(a,b,c,d,e){var f=Nj(a);yi(f);a=Xj(a,f,b,2);b=wi(a);d=c(d,!!(4&b)&&!!(4096&b));void 0!=e?a.splice(e,0,d):a.push(d)};
  615. pea=function(a){return a};
  616. qea=function(a,b,c,d,e,f){yi(Nj(a.oa));b=f(a,b,2,void 0,!0);Gda(b,d);f=wi(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
  617. ik=function(a,b,c,d){var e=a.oa,f=Nj(e);yi(f);(c=hk(e,f,c))&&c!==b&&null!=d&&(f=Sj(e,f,c));Sj(e,f,b,d);return a};
  618. jk=function(a,b,c,d){var e=Nj(a);yi(e);(c=hk(a,e,c))&&c!==b&&(e=Sj(a,e,c));Sj(a,e,b,d)};
  619. Ek=function(a,b,c){a=a.oa;return hk(a,Nj(a),b)===c?c:-1};
  620. hk=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Pj(a,b,f)&&(0!==d&&(b=Sj(a,b,d)),d=f)}return d};
  621. Fk=function(a,b,c,d){var e=Nj(a);yi(e);var f=Pj(a,e,c,d),h;if(null!=f&&f.qK===lj)return b=Jj(f),b!==f&&Sj(a,e,c,b,d),b.oa;if(Array.isArray(f)){var l=wi(f);l&2?h=Oj(f,l,!1):h=f;h=P(h,b[0],b[1])}else h=P(void 0,b[0],b[1]);h!==f&&Sj(a,e,c,h,d);return h};
  622. kea=function(a,b,c,d){a=a.oa;var e=Nj(a),f=Pj(a,e,c,d);b=mj(f,b,!1,e);b!==f&&null!=b&&Sj(a,e,c,b,d);return b};
  623. g.Gk=function(a,b,c,d){d=void 0===d?!1:d;b=kea(a,b,c,d);if(null==b)return b;a=a.oa;var e=Nj(a);if(!(e&2)){var f=Jj(b);f!==b&&(b=f,Sj(a,e,c,b,d))}return b};
  624. rea=function(a,b,c,d,e,f,h){var l=!!(2&b),m=l?1:2;f=!!f;h&&(h=!l);l=lea(a,b,d,e);var n=wi(l),p=!!(4&n);if(!p){n=mea(n,b);var q=l,r=b,t=!!(2&n);t&&(r=Yh(r,2,!0));for(var v=!t,w=!0,A=0,D=0;A<q.length;A++){var F=mj(q[A],c,!1,r);if(F instanceof c){if(!t){var H=!!(wi(F.oa)&2);v&&(v=!H);w&&(w=H)}q[D++]=F}}D<A&&(q.length=D);n=Yh(n,4,!0);n=Yh(n,16,w);n=Yh(n,8,v);si(q,n);t&&Object.freeze(q)}if(h&&!(8&n||!l.length&&(1===m||4===m&&32&n))){Zj(n)&&(l=Wh(l),n=Yj(n,b),b=Sj(a,b,d,l,e));c=l;h=n;for(q=0;q<c.length;q++)n=
  625. c[q],r=Jj(n),n!==r&&(c[q]=r);h=Yh(h,8,!0);h=Yh(h,16,!c.length);si(c,h);n=h}Zj(n)||(c=n,n=(h=1===m||4===m&&!!(32&n))?Yh(n,!l.length||16&n&&(!p||32&n)?2:2048,!0):ak(n,b,f),n!==c&&si(l,n),h&&Object.freeze(l));2===m&&Zj(n)&&(l=Wh(l),n=Yj(n,b),n=ak(n,b,f),si(l,n),Sj(a,b,d,l,e));return l};
  626. sea=function(a,b){a=a.oa;var c=Nj(a);return rea(a,c,b,3,void 0,!1,!(2&c))};
  627. Hk=function(a,b,c,d){null!=d?kj(d,b):d=void 0;return Tj(a,c,d)};
  628. Ik=function(a,b,c,d,e){null!=e?kj(e,b):e=void 0;return ik(a,c,d,e)};
  629. Jk=function(a,b,c,d){var e=a.oa,f=Nj(e);yi(f);if(null==d)return Sj(e,f,c),a;if(!Array.isArray(d))throw Bi();for(var h=wi(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&!1,q=!0,r=!0,t=0;t<d.length;t++){var v=d[t];kj(v,b);m||(v=!!(wi(v.oa)&2),q&&(q=!v),r&&(r=v))}m||(h=Yh(h,5,!0),h=Yh(h,8,q),h=Yh(h,16,r));if(p||n&&h!==l)d=Wh(d),l=0,h=Yj(h,f),h=ak(h,f,!0);h!==l&&si(d,h);Sj(e,f,c,d);return a};
  630. Yj=function(a,b){a=Yh(a,2,!!(2&b));a=Yh(a,32,!0);return a=Yh(a,2048,!1)};
  631. ak=function(a,b,c){32&b&&c||(a=Yh(a,32,!1));return a};
  632. tea=function(a,b,c,d,e,f,h){a=a.oa;var l=Nj(a);yi(l);b=rea(a,l,c,b,f,!0);f=null!=d?kj(d,c):new c;h&&(Gda(b,e),kj(d,c));void 0!=e?b.splice(e,h,f):b.push(f);wi(f.oa)&2?Wj(b,8):Wj(b,16)};
  633. Kk=function(a,b,c,d,e){tea(a,b,c,d,e);return a};
  634. Lk=function(a,b){a=Qj(a,b);var c;null==a?c=a:Di(a)?"number"===typeof a?c=Li(a):c=Ki(a):c=void 0;return c};
  635. uea=function(a){a=Qj(a,1);var b=void 0===b?!1:b;b=null==a?a:Di(a)?"string"===typeof a?Ki(a):b?Oda(a):Li(a):void 0;return b};
  636. Mk=function(a,b){return null!=a?a:b};
  637. Nk=function(a,b){return jj(Qj(a,b))};
  638. Ok=function(a,b,c){c=void 0===c?0:c;a=Ii(Qj(a,b));return Mk(a,c)};
  639. Pk=function(a,b){var c=void 0===c?0:c;return Mk(Ji(Qj(a,b)),c)};
  640. vea=function(a,b){var c=void 0===c?0:c;return Mk(Lk(a,b),c)};
  641. Qk=function(a,b){var c=void 0===c?0:c;a=Qj(a,b);var d;null==a?d=a:Di(a)?"number"===typeof a?d=fj(a):d=gj(a):d=void 0;return Mk(d,c)};
  642. wea=function(a,b){var c=void 0===c?0:c;a=a.oa;var d=Nj(a),e=Pj(a,d,b),f=Jda(e);null!=f&&f!==e&&Sj(a,d,b,f);return Mk(f,c)};
  643. Rk=function(a,b){var c=void 0===c?"":c;return Mk(Nk(a,b),c)};
  644. Sk=function(a,b){var c=0;c=void 0===c?0:c;return Mk(Fi(Qj(a,b)),c)};
  645. xea=function(a,b,c,d,e){return bk(a,b,jj,c,d,e)};
  646. yea=function(a,b,c,d,e){return bk(a,b,Fi,c,d,e)};
  647. zea=function(a,b,c){a=yea(a,b,3,void 0,!0);Fda(a,c);return a[c]};
  648. Tk=function(a,b,c){return Tj(a,b,null==c?c:Lda(c))};
  649. Uk=function(a,b,c){return Tj(a,b,Hi(c))};
  650. Vk=function(a,b,c){if(null!=c){if("number"!==typeof c)throw Bi("uint32");if(!Number.isFinite(c))throw Bi("uint32");c>>>=0}Tj(a,b,c)};
  651. Wk=function(a,b,c){return Tj(a,b,Mi(c))};
  652. Xk=function(a,b,c){if(null!=c){var d=!!d;if(!Di(c))throw Bi("uint64");"string"===typeof c?c=gj(c):d?(Di(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),ej(d)?c=d:(kh(c),c=lh(ih,jh)))):c=fj(c)}Tj(a,b,c)};
  653. Yk=function(a,b,c){return Tj(a,b,Ci(c))};
  654. Q=function(a,b,c){return Tj(a,b,ij(c))};
  655. Zk=function(a,b,c){return ek(a,b,ij(c),"")};
  656. $k=function(a,b,c){return Tj(a,b,vi(c,!1,!1))};
  657. S=function(a,b,c){return Tj(a,b,null==c?c:Ei(c))};
  658. al=function(a,b,c,d){ik(a,b,c,null==d?d:Ei(d))};
  659. T=function(a,b,c){this.oa=P(a,b,c)};
  660. Aea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Zh(b,32);return oj(a,b)};
  661. bl=function(a,b,c){var d=Bea?void 0:a.constructor.wb;var e=Nj(c?a.oa:b);a=b.length;if(!a)return b;var f;if(ui(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(xi(p,d,+n)||Eda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0<a;a--){r=a-1;c=b[r];r-=n;if(!(null==c||xi(c,d,r)||Eda(c)&&0===c.size))break;var t=!0}if(!f&&!t)return b;b=Array.prototype.slice.call(b,0,a);h&&b.push(h);
  662. return b};
  663. Dea=function(a){return Array.isArray(a)?a[0]instanceof Uh?a:[Cea,a]:[a,void 0]};
  664. cl=function(a,b,c){if(Array.isArray(b)){var d=wi(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);c&&(si(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
  665. gl=function(a){var b=a[Eea];if(!b){var c=Fea(a),d=dl(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;oda(h)&&4!=h.B;){var l=h.D,m=d[l];
  666. if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Gea(n))}m&&m(h,f,l)||(m=h,l=m.C,Jh(m),m.AO?m=void 0:(n=m.j.j-l,m.j.j=l,m=mda(m.j,n)),l=f,m&&(Ai||(Ai=Symbol()),(n=l[Ai])?n.push(m):l[Ai]=[m]))}c===el||c===fl||c.G||(f[Hea||(Hea=Symbol())]=c)};
  667. a[Eea]=b}return b};
  668. Gea=function(a){a=Dea(a);var b=a[0].sM;if(a=a[1]){var c=gl(a),d=dl(a).RA;return function(e,f,h){return b(e,f,h,d,c)}}return b};
  669. hl=function(){};
  670. Iea=function(a,b,c){var d=c[1];if(d){var e=d[Il];var f=e?e.RA:qj(d[0]);a[b]=null!=e?e:d}f&&f===pj?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
  671. Jea=function(a,b){return[a.j,!b||0<b[0]?void 0:b]};
  672. Fea=function(a){var b=a[Il];if(b)return b;b=Jl(a,a[Il]=new hl,Jea,Jea,Iea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(qj(a[0])===pj?fl?b=fl:(b=new hl,b.RA=qj(!0),b=fl=b):b=el||(el=new hl),b=a[Il]=b):b.G=!0}return b};
  673. Kea=function(a,b,c){a[b]=c};
  674. Jl=function(a,b,c,d,e){e=void 0===e?Kea:e;b.RA=qj(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],"function"===typeof h&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&"number"===typeof h[0]&&0<h[0];){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;void 0!==h;){"number"===typeof h&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Uh)var p=h;else p=Lea,f--;if(p.d3){h=a[++f];n=a;var q=f;"function"==typeof h&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;"number"===typeof h&&
  675. 0>h&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
  676. Oea=function(a){var b=a[Mea];if(!b){var c=Kl(a);b=function(d,e){return Nea(d,e,c)};
  677. a[Mea]=b}return b};
  678. Pea=function(a){return a.tM};
  679. Qea=function(a,b){var c,d,e=a.tM;return function(f,h,l){return e(f,h,l,d||(d=Kl(b).RA),c||(c=Oea(b)))}};
  680. Kl=function(a){var b=a[Ll];if(b)return b;b=Jl(a,a[Ll]={},Pea,Qea);Rea(a);return b};
  681. Sea=function(a,b){var c=a.sM;return b?function(d,e,f){return c(d,e,f,b)}:c};
  682. Tea=function(a,b,c){var d=a.sM,e,f;return function(h,l,m){return d(h,l,m,f||(f=dl(b).RA),e||(e=gl(b)),c)}};
  683. dl=function(a){var b=a[Ml];if(b)return b;Fea(a);b=Jl(a,a[Ml]={},Sea,Tea);Rea(a);return b};
  684. Rea=function(a){Ml in a&&Il in a&&Ll in a&&(a.length=0)};
  685. Uea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Dea(c);var d=c[0].tM;if(c=c[1]){var e=Oea(c),f=Kl(c).RA;c=(c=a.D)?c(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
  686. return a[b]=c}};
  687. Nea=function(a,b,c){for(var d=Nj(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=Uea(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],null!=f&&(h=Uea(c,e))&&h(b,f,e))}if(a=Ai?a[Ai]:void 0)for(Rh(b,b.j.end()),c=0;c<a.length;c++)Rh(b,ch(a[c])||Pg())};
  688. Nl=function(a,b){return new Uh(a,b,!1,!1)};
  689. Ol=function(a,b){return new Uh(a,b,!0,!1)};
  690. Pl=function(a,b,c){Sj(a,Nj(a),b,c)};
  691. Ql=function(a,b,c){b=Jda(b);null!=b&&(Sh(a,c,1),a=a.j,c=Vea||(Vea=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),ih=c.getUint32(0,!0),jh=c.getUint32(4,!0),Qh(a,ih),Qh(a,jh))};
  692. Rl=function(a,b,c){a:if(null!=b){if(Di(b)){if("string"===typeof b){b=Ki(b);break a}if("number"===typeof b){b=Li(b);break a}}b=void 0}null!=b&&("string"===typeof b&&wda(b),null!=b&&(Sh(a,c,0),"number"===typeof b?(a=a.j,kh(b),xda(a,ih,jh)):(c=wda(b),xda(a.j,c.B,c.j))))};
  693. Sl=function(a,b,c){b=Ii(b);null!=b&&null!=b&&(Sh(a,c,0),yda(a.j,b))};
  694. Wea=function(a,b,c){b=Mda(b);null!=b&&(Sh(a,c,0),a.j.j.push(b?1:0))};
  695. Xea=function(a,b,c){b=jj(b);null!=b&&Th(a,c,Nca(b))};
  696. Tl=function(a,b,c,d,e){b=b instanceof T?b.oa:Array.isArray(b)?P(b,d[0],d[1]):void 0;if(null!=b){Sh(a,c,2);c=a.j.end();Rh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
  697. Yea=function(a){return function(){var b=new zda;Nea(this.oa,b,Kl(a));Rh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
  698. Ul=function(a){return function(b){return Aea(a,b)}};
  699. Vl=function(a){this.oa=P(a)};
  700. Wl=function(a){this.oa=P(a)};
  701. Xl=function(a){this.oa=P(a)};
  702. Yl=function(a){this.oa=P(a)};
  703. Zl=function(a){this.oa=P(a)};
  704. $l=function(a){this.oa=P(a)};
  705. g.Zea=function(a){var b=new Zl;b=Q(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].me);b=dk(b,c,hj);c=[];d=[];for(var e=g.u(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.C,l=a.UO(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new Xl;switch(h){case 3:q=Number(q);Number.isFinite(q)&&ik(p,1,am,Mi(q));break;case 2:ik(p,2,am,Ci(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Yl;m=Hk(n,Xl,2,m);n=[];
  706. p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].oe);p=q;for(q=0;q<p.length;q++){var t=p[q],v=f[q];r=new Wl;switch(t){case 3:ik(r,1,bm,ij(String(v)));break;case 2:t=Number(v);Number.isFinite(t)&&ik(r,2,bm,Hi(t));break;case 1:t="true"===v,t=null==t?t:Lda(t),ik(r,3,bm,t)}n.push(r)}Jk(m,Wl,1,n);c.push(m)}}Jk(b,Yl,4,c);return b};
  707. $ea=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";0===a.indexOf("blob:")&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==
  708. c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
  709. afa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
  710. function b(q){for(var r=h,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],w=e[2],A=e[3],D=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(w^A);var H=1518500249}else F=v^w^A,H=1859775393;else 60>t?(F=v&w|A&(v|w),H=2400959708):(F=v^w^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+D+H+r[t]&4294967295;D=A;A=w;w=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
  711. e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+D&4294967295}
  712. function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,w=q.length;v<w;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
  713. function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&255;return q}
  714. for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,F7:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
  715. cfa=function(a,b,c){var d=String(g.Ta.location.href);return d&&a&&b?[b,bfa($ea(d),a,c||null)].join(" "):null};
  716. bfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.ac(d,function(l){e.push(l)}),dfa(e.join(" "));
  717. var f=[],h=[];g.ac(c,function(l){h.push(l.key);f.push(l.value)});
  718. c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.ac(d,function(l){e.push(l)});
  719. a=dfa(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
  720. dfa=function(a){var b=afa();b.update(a);return b.F7().toLowerCase()};
  721. cm=function(a){this.j=a||{cookie:""}};
  722. dm=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=kc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
  723. em=function(a){return!!efa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
  724. ffa=function(a){a=void 0===a?!1:a;var b=g.Ta.__SAPISID||g.Ta.__APISID||g.Ta.__3PSAPISID||g.Ta.__OVERRIDE_SID;em(a)&&(b=b||g.Ta.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new cm(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");em(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
  725. gfa=function(a,b,c,d){(a=g.Ta[a])||"undefined"===typeof document||(a=(new cm(document)).get(b));return a?cfa(a,c,d):null};
  726. hfa=function(a,b){b=void 0===b?!1:b;var c=$ea(String(g.Ta.location.href)),d=[];if(ffa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Ta.__SAPISID:g.Ta.__APISID;e||"undefined"===typeof document||(e=new cm(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?cfa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&em(b)&&((b=gfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=gfa("__3PSAPISID","__Secure-3PAPISID",
  727. "SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
  728. Hm=function(a){this.oa=P(a)};
  729. Im=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.kb()};
  730. this.B=this.j()};
  731. Jm=function(a){this.oa=P(a)};
  732. Km=function(a){this.oa=P(a)};
  733. g.Lm=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.N=d||2};
  734. g.Mm=function(a){a.j=Math.min(a.G,a.j*a.N);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
  735. Nm=function(a){this.oa=P(a)};
  736. Om=function(a){this.oa=P(a)};
  737. Pm=function(a){this.oa=P(a)};
  738. ifa=function(a,b){Jk(a,Om,1,b)};
  739. Qm=function(a){this.oa=P(a)};
  740. kfa=function(a,b){b=void 0===b?jfa:b;if(!Rm){var c;a=null==(c=a.navigator)?void 0:c.userAgentData;if(!a||"function"!==typeof a.getHighEntropyValues||a.brands&&"function"!==typeof a.brands.map)return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Om;f=Q(f,1,e.brand);return Q(f,2,e.version)});
  741. ifa(Tk(Sm,2,a.mobile),c);Rm=a.getHighEntropyValues(b)}var d=new Set(b);return Rm.then(function(e){var f=Sm.clone();d.has("platform")&&Q(f,3,e.platform);d.has("platformVersion")&&Q(f,4,e.platformVersion);d.has("architecture")&&Q(f,5,e.architecture);d.has("model")&&Q(f,6,e.model);d.has("uaFullVersion")&&Q(f,7,e.uaFullVersion);return f}).catch(function(){return Sm.clone()})};
  742. Tm=function(a){this.oa=P(a)};
  743. Um=function(a){this.oa=P(a)};
  744. Vm=function(a){this.oa=P(a,4)};
  745. Wm=function(a){this.oa=P(a,35)};
  746. Xm=function(a){this.oa=P(a,19)};
  747. Ym=function(a){this.oa=P(a,8)};
  748. lfa=function(a){this.oa=P(a)};
  749. an=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.ra="";this.pageId=null;this.Ca=this.Y=-1;this.experimentIds=null;this.Z=this.G=0;this.Ga=1;this.timeoutMillis=0;this.logSource=a.logSource;this.iE=a.iE||function(){};
  750. this.B=new Zm(a.logSource,a.Sw);this.network=a.network;this.AB=a.AB||null;this.K=a.Iea||null;this.sessionIndex=a.sessionIndex||null;this.PD=a.PD||!1;this.logger=null;this.withCredentials=!a.oX;this.Sw=a.Sw||!1;this.N="undefined"!==typeof URLSearchParams&&!!(new URL($m())).searchParams&&!!(new URL($m())).searchParams.set;var c=S(new Tm,1,1);mfa(this.B,c);this.D=new g.Lm(1E4,3E5,.1);a=nfa(this,a.BW);this.j=new Im(this.D.getValue(),a);this.qa=new Im(6E5,a);this.PD||this.qa.start();this.Sw||(document.addEventListener("visibilitychange",
  751. function(){"hidden"===document.visibilityState&&b.KO()}),document.addEventListener("pagehide",this.KO.bind(this)))};
  752. nfa=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
  753. $m=function(){return"https://play.google.com/log?format=json&hasfast=true"};
  754. Zm=function(a,b){this.Sw=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Xm;Number.isInteger(a)&&this.j.MG(a);b||(this.locale=document.documentElement.getAttribute("lang"));mfa(this,new Tm)};
  755. mfa=function(a,b){Hk(a.j,Tm,1,b);Fi(Qj(b,1))||S(b,1,1);a.Sw||(b=bn(a),Nk(b,5)||Q(b,5,a.locale));a.B&&(b=bn(a),g.Gk(b,Pm,9)||Hk(b,Pm,9,a.B))};
  756. ofa=function(a,b){Uj(cn(a),Qm,11)&&(a=dn(a),S(a,1,b))};
  757. pfa=function(a,b){Uj(cn(a),Qm,11)&&(a=dn(a),Tk(a,2,b))};
  758. cn=function(a){return g.Gk(a.j,Tm,1)};
  759. qfa=function(a){var b=void 0===b?jfa:b;var c=a.Sw?void 0:zf();c?kfa(c,b).then(function(d){a.B=d;d=bn(a);Hk(d,Pm,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
  760. bn=function(a){a=cn(a);var b=g.Gk(a,Qm,11);b||(b=new Qm,Hk(a,Qm,11,b));return b};
  761. dn=function(a){a=bn(a);var b=g.Gk(a,Nm,10);b||(b=new Nm,Tk(b,2,!1),Hk(a,Nm,10,b));return b};
  762. en=function(){this.z6="undefined"!==typeof AbortController};
  763. fn=function(a,b){g.I.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.C=!1;this.network=null;this.componentId="";this.pageId=this.Vv=this.AB=null};
  764. gn=function(a,b){a.j=b;return a};
  765. hn=function(a,b){a.network=b;return a};
  766. jn=function(a,b,c,d,e,f,h){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new fn(a,"0"),a.componentId=b,g.N(this,a),""!==c&&(a.B=c),d&&(a.C=!0),e&&gn(a,e),h&&hn(a,h),b=a.build());this.j=b};
  767. kn=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
  768. rfa=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
  769. default:return""}};
  770. ln=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
  771. g.mn=function(a){return(new sfa).Ck(a)};
  772. sfa=function(){};
  773. nn=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),nn(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),tfa(d,c),c.push(":"),nn(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":tfa(b,c);break;case "number":c.push(isFinite(b)&&
  774. !isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
  775. tfa=function(a,b){b.push('"',a.replace(ufa,function(c){var d=vfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),vfa[c]=d);return d}),'"')};
  776. wfa=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
  777. on=function(){};
  778. pn=function(){};
  779. qn=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
  780. rn=function(a){return a?decodeURI(a):a};
  781. g.eo=function(a,b){return b.match(sn)[a]||null};
  782. g.fo=function(a){return rn(g.eo(3,a))};
  783. g.xfa=function(a){a=a.match(sn);return qn(a[1],a[2],a[3],a[4])};
  784. yfa=function(a){a=a.match(sn);return qn(a[1],null,a[3],a[4])};
  785. go=function(a){a=a.match(sn);return qn(null,null,null,null,a[5],a[6],a[7])};
  786. zfa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
  787. ho=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Xe(e):"")}}};
  788. io=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
  789. jo=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)jo(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.We(b)))};
  790. Afa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)jo(a[b],a[b+1],c);return c.join("&")};
  791. g.ko=function(a){var b=[],c;for(c in a)jo(c,a[c],b);return b.join("&")};
  792. Bfa=function(a,b){var c=2==arguments.length?Afa(arguments[1],0):Afa(arguments,1);return io(a,c)};
  793. g.lo=function(a,b){b=g.ko(b);return io(a,b)};
  794. mo=function(a,b,c){c=null!=c?"="+g.We(c):"";return io(a,b+c)};
  795. Cfa=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
  796. no=function(a,b){var c=a.search(Dfa),d=Cfa(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Xe(a.slice(d,-1!==e?e:0))};
  797. oo=function(a,b){for(var c=a.search(Dfa),d=0,e,f=[];0<=(e=Cfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Efa,"$1")};
  798. Ffa=function(a,b,c){return mo(oo(a,b),b,c)};
  799. g.po=function(a){g.Dd.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ca=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ea=this.Z=this.Ga=!1;this.ra=0;this.qa=null;this.La="";this.K=!1};
  800. Hfa=function(a,b,c,d,e,f,h){var l=new g.po;Gfa.push(l);b&&l.listen("complete",b);l.oF("ready",l.f7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
  801. Jfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Ifa(a);qo(a)};
  802. Ifa=function(a){a.Ga||(a.Ga=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
  803. Kfa=function(a){if(a.C&&"undefined"!=typeof ro)if(a.Ca[1]&&4==g.so(a)&&2==a.getStatus())a.getStatus();else if(a.Z&&4==g.so(a))g.Dg(a.G_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(to(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.so(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Ifa(a)}}finally{qo(a)}}};
  804. qo=function(a,b){if(a.j){Lfa(a);var c=a.j,d=a.Ca[0]?function(){}:null;
  805. a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
  806. Lfa=function(a){a.qa&&(g.Ta.clearTimeout(a.qa),a.qa=null)};
  807. to=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.eo(1,String(a.Y)),!a&&g.Ta.self&&g.Ta.self.location&&(a=g.Ta.self.location.protocol.slice(0,-1)),b=!Mfa.test(a?a.toLowerCase():"");c=b}return c};
  808. g.so=function(a){return a.j?a.j.readyState:0};
  809. g.uo=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
  810. g.vo=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
  811. g.Nfa=function(a){var b={};a=(a.j&&2<=g.so(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.ec(a[c])){var d=Sba(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Yc(b,function(h){return h.join(", ")})};
  812. g.wo=function(a,b){return a.j?a.j.getResponseHeader(b):null};
  813. xo=function(){};
  814. yo=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
  815. zo=function(a,b){this.logger=a;this.j=b;this.startMillis=yo()};
  816. Ofa=function(){};
  817. Pfa=function(a,b){this.Zi=a;a=hn(gn(new fn(1828,"0"),"21"),new xo);if(b){var c=new Vl;b=dk(c,b,Gi);a.Vv=b}b=new jn(1828,"","",!1,"",a.build());b=new g.Fg(b);this.clientError=new Fca(b);this.j=new Hg(b);this.G=new Gg(b);this.D=new Gca(b);this.C=new Hca(b);this.B=new Ica(b)};
  818. Qfa=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
  819. Ao=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=Ao(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=Rfa(31,e)+d|0;return e};
  820. Sfa=function(a,b){return[Ao(a,0,a.length>>1,b),Ao(a,a.length>>1)]};
  821. Bo=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
  822. Tfa=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Bo(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bo(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bo(a)):new Bo(a,c,b)};
  823. Ufa=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=Tfa(a))};
  824. Xfa=function(a,b,c,d,e){if(a.index){var f=new zo(a.logger,"W"),h=(4-(Co.length+c.length)%4)%4,l=new Uint8Array(4+h+Co.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set(Co,n);n+=Co.length;m.setUint32(n,e);l.set(c,n+4);Vfa(l,d);b=Wfa(null!=b?b:[]);a.index.Bh(b,function(p){globalThis.sessionStorage.removeItem(p)})?Qfa(b,g.Kg(l))?(a.logger.qF("s"),f.done()):a.logger.qF("t"):a.logger.qF("i")}else a.logger.qF("u")};
  825. Wfa=function(a){var b=g.u(Sfa(a,Co));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
  826. Vfa=function(a,b){var c=Sfa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
  827. $fa=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
  828. a=Yfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Do(a,l),d+=Do(a,l+4),e+=Do(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Zfa.toString(e)};
  829. Yfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
  830. Do=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
  831. Fo=function(a,b,c){this.logger=a;this.event=b;if(void 0===c||c)this.startMillis=Eo()};
  832. Go=function(){};
  833. Ho=function(a,b,c,d){g.I.call(this);this.B=b;this.C=new Map;this.D=new Map;b=hn(gn(new fn(1828,"0"),"21"),new xo);if(d){var e=new Vl;d=dk(e,d,Gi);b.Vv=d}this.K=new jn(1828,"","",!1,"",b.build());this.j=new g.Fg(this.K);c&&(this.j.C=1E5,c=this.j,c.flushInterval=3E4,c.j.setInterval(3E4));this.ra=new Aca(this.j);this.Ca=new Dca(this.j);this.Ga=new Eca(this.j);this.qa=new zca(this.j);this.Z=new Bca(this.j);this.Y=new Cca(this.j);this.errorCount=new Fca(this.j);this.N=new Hg(this.j);new Gg(this.j);new Gca(this.j);
  834. new Hca(this.j);new Ica(this.j);this.G=$fa(a);a=new yca(this.j);this.C.set("h",1);this.C.set("u",2);this.C.set("k",3);this.C.set("P",4);this.C.set("p",5);this.D.set(25,1);this.D.set(26,2);this.D.set(27,3);this.D.set(28,4);a.j.Jk("/client_streamz/bg/fic",this.B);g.N(this,this.K);g.N(this,this.j)};
  835. Eo=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
  836. Io=function(a){this.oa=P(a)};
  837. Jo=function(a){this.oa=P(a)};
  838. Ko=function(a){this.oa=P(a,0,Ko.messageId)};
  839. g.Lo=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
  840. Mo=function(a){function b(t,v,w){Promise.resolve().then(function(){q.done();d.j&&d.Gg.Mm();p.resolve({U6:t,Mda:v,sqb:w})})}
  841. function c(t,v,w){if(l){var A="k";v?A="h":w&&(A="u");"k"!==A?d.Gg.gx(A,t):0>=d.B?(d.Gg.gx(A,t),d.B=Math.floor(200*Math.random())):d.B--}}
  842. g.I.call(this);var d=this;this.j=!1;this.B=Math.floor(200*Math.random());if(a.challenge instanceof Ko){var e=Rk(a.challenge,4);var f=Rk(a.challenge,5)}else e=a.program,f=a.globalName;var h=Math.random(),l=.3>h;null!=a.d7&&(l=h<a.d7);l&&(this.j=!0);var m=new g.I;this.addOnDisposeCallback(function(){d.C.then(function(t){t=t.Mda;d.Gg.Mm();null==t||t();m.dispose()})});
  843. if(!1!==a.D0)if(a.Gg)this.Gg=a.Gg;else{var n;g.N(m,this.Gg=new Ho(f,null!=(n=a.WZ)?n:"_",this.j))}else this.Gg=new Go;var p=new g.Lo;this.C=p.promise;var q=new Fo(this.Gg,"t",!1);if(!g.Ta[f])throw this.Gg.Vp(25),this.Gg.Mm(),Error("EGOU");if(!g.Ta[f].a)throw this.Gg.Vp(26),this.Gg.Mm(),Error("ELIU");try{var r=g.Ta[f].a;q.start();this.D=g.u(r(e,b,!0,a.nrb,c)).next().value;this.WS=p.promise.then(function(){})}catch(t){throw this.Gg.Vp(28),this.Gg.Mm(),t;
  844. }};
  845. aga=function(a){if(!a)return null;a=Nk(a,4);return null===a||void 0===a?null:$d(a)};
  846. No=function(){this.B={};this.j=null};
  847. Oo=function(){No.instance||(No.instance=new No);return No.instance};
  848. dga=function(a){var b=Oo();return cga(b,g.Gk(a,Io,1),g.Gk(a,Jo,2),Rk(a,3))};
  849. cga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return ega(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){ega(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
  850. h(l)})}));
  851. return a.B[d]};
  852. ega=function(a,b){return b?fga(b):a?gga(a):Promise.resolve()};
  853. fga=function(a){return new Promise(function(b,c){var d=g.Cf("SCRIPT"),e=aga(a);g.Ve(d,e);d.onload=function(){g.Pf(d);b()};
  854. d.onerror=function(){g.Pf(d);c(Error("EWLS"))};
  855. (g.of("HEAD")[0]||document.documentElement).appendChild(d)})};
  856. gga=function(a){return new Promise(function(b){var c=g.Cf("SCRIPT");if(a){var d=Nk(a,6);d=null===d||void 0===d?null:Hba(d)}else d=null;c.textContent=ye(d);Ue(c);(g.of("HEAD")[0]||document.documentElement).appendChild(c);g.Pf(c);b()})};
  857. iga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Ta.TextDecoder)b=(new TextDecoder).decode(b);else if(8192>=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return hga(b)};
  858. Po=function(a){this.oa=P(a)};
  859. Qo=function(a){this.oa=P(a)};
  860. Ro=function(a){this.oa=P(a)};
  861. So=function(a,b,c){this.client=a;this.Zi=b;this.j=c};
  862. To=function(a){this.oa=P(a)};
  863. Uo=function(a,b,c){this.j=a;this.C=b;this.B=c};
  864. Vo=function(a,b,c){c=void 0===c?{}:c;this.jda=a;this.j=c;this.B=b};
  865. Wo=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
  866. jga=function(a,b,c){c=void 0===c?{}:c;return new Uo(b,a,c)};
  867. Xo=function(a){this.oa=P(a)};
  868. Yo=function(a){this.oa=P(a)};
  869. Zo=function(a){this.oa=P(a)};
  870. $o=function(a){this.oa=P(a)};
  871. ap=function(a,b){this.N=a.F$;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&kga(this)};
  872. nga=function(a,b){g.ud(a.j,"complete",function(){if(to(a.j)){var c=g.uo(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){bp(a,new ln(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=kn(a.j.getStatus());cp(a,dp(a));0==c?lga(a,d):bp(a,new ln(c,"Xhr succeeded but the status code is not 200"))}else{c=g.uo(a.j);d=dp(a);if(c){var e=mga(a,c);c=e.code;var f=e.details;
  873. e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;cp(a,d);bp(a,new ln(c,f,e))}})};
  874. kga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){bp(a,new ln(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&lga(a,d)}if("2"in b)for(b=mga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
  875. a.N.on("end",function(){cp(a,dp(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
  876. a.N.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||to(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=kn(c);break;default:d=14}cp(a,dp(a));b=wfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);bp(a,new ln(d,b))}})};
  877. dp=function(a){var b={},c=g.Nfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
  878. return b};
  879. mga=function(a,b){var c=2,d={};try{var e=oga(b);c=Ok(e,1);var f=e.getMessage();sea(e,Zo).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
  880. ep=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
  881. lga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
  882. cp=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
  883. bp=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
  884. g.fp=function(a){this.K=a.Uea||null;this.G=a.L1||!1;this.B=void 0};
  885. gp=function(a,b){g.Dd.call(this);this.ra=a;this.K=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.B=null;this.qa="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
  886. pga=function(a){a.C.read().then(a.X8.bind(a)).catch(a.HJ.bind(a))};
  887. dq=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;hp(a)};
  888. hp=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
  889. g.eq=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.B="";this.N=!1;var b;a instanceof g.eq?(this.N=a.N,g.fq(this,a.G),this.Z=a.Z,g.gq(this,a.j),g.hq(this,a.D),this.B=a.B,iq(this,a.C.clone()),this.K=a.K):a&&(b=String(a).match(sn))?(this.N=!1,g.fq(this,b[1]||"",!0),this.Z=jq(b[2]||""),g.gq(this,b[3]||"",!0),g.hq(this,b[4]),this.B=jq(b[5]||"",!0),iq(this,b[6]||"",!0),this.K=jq(b[7]||"")):(this.N=!1,this.C=new kq(null,this.N))};
  890. g.fq=function(a,b,c){a.G=c?jq(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
  891. g.gq=function(a,b,c){a.j=c?jq(b,!0):b};
  892. g.hq=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
  893. iq=function(a,b,c){b instanceof kq?(a.C=b,qga(a.C,a.N)):(c||(b=lq(b,rga)),a.C=new kq(b,a.N))};
  894. g.mq=function(a,b,c){a.C.set(b,c)};
  895. g.nq=function(a){return a instanceof g.eq?a.clone():new g.eq(a)};
  896. jq=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
  897. lq=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,sga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
  898. sga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
  899. kq=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
  900. oq=function(a){a.j||(a.j=new Map,a.B=0,a.C&&ho(a.C,function(b,c){a.add(Xe(b),c)}))};
  901. tga=function(a,b){oq(a);b=pq(a,b);return a.j.has(b)};
  902. g.uga=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(pq(a,b),g.Lb(c)),a.B=a.B+c.length)};
  903. pq=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
  904. qga=function(a,b){b&&!a.D&&(oq(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.uga(this,e,c))},a));
  905. a.D=b};
  906. g.vga=function(a){var b="";g.Vc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
  907. return b};
  908. g.qq=function(a,b,c){if(g.jd(c))return a;c=g.vga(c);if("string"===typeof a)return mo(a,g.We(b),c);g.mq(a,b,c);return a};
  909. g.rq=function(a){g.I.call(this);this.B=a;this.j={}};
  910. wga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)wga(a,b,c[h],d,e,f);else{b=td(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
  911. xga=function(){this.C=!0;this.B=0;this.j=""};
  912. yga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
  913. sq=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
  914. tq=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.Y+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
  915. uq=function(){this.j=null;this.B=0;this.C=new xga;this.D=new sq};
  916. zga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
  917. vq=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
  918. wq=function(a){this.Y=null;this.K=[];this.D="";this.ra=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ca=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.C7)};
  919. xq=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
  920. yq=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
  921. Aga=function(a){var b=g.wo(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new yq:new wq:b.startsWith("application/x-protobuf")?(a=g.wo(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new uq:null:new sq:null};
  922. zq=function(a){this.j=a;this.B=null;this.D=this.C=0;this.Y=!1;this.G=this.N=this.K=null;this.Z=new g.rq(this);this.Z.listen(this.j,"readystatechange",this.qa)};
  923. Aq=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
  924. Bq=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
  925. Bga=function(a){a=this.C=a;var b=(0,g.gb)(this.jaa,this);a.G=b;a=this.C;b=(0,g.gb)(this.Zba,this);a.N=b;this.B={};this.j={}};
  926. Cga=function(a,b){for(var c={},d=0;d<a.length;c={SZ:void 0},d++)c.SZ=a[d],b.forEach(function(e){return function(f){try{f(e.SZ)}catch(h){}}}(c))};
  927. Cq=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
  928. (c=a.j[b])&&c.forEach(function(d){d()});
  929. a.j[b]=[]};
  930. Dga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.crb||g.Xa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Xa("withCredentials",a)||!1;this.D=a.brb||[];this.K=a.irb||[];this.j=a.orb;this.C=a.lrb||!1};
  931. Dq=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Ega(function(h){return new Fga(function(l,m){var n={},p=Gga(a,h,f);p.on("error",function(q){return m(q)});
  932. p.on("metadata",function(q){n=q});
  933. p.on("data",function(q){var r=h.nJ(),t=n;t=void 0===t?{}:t;l(new Vo(q,r,t))})})},a.K).call(a,jga(e,c,d)).then(function(h){return h.jda})};
  934. Gga=function(a,b,c){var d=b.nJ(),e=b.getMetadata(),f=Hga(a,!0);a=Iga(a,e,f,c+d.getName());c=Jga(f,d.B,!1);nga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
  935. Hga=function(a,b){b=a.C&&!b;return a.j||b?new g.po(new g.fp({Uea:a.j,L1:b})):new g.po};
  936. Iga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.B)c.K=!0;if(a.G)d=g.qq(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
  937. Jga=function(a,b,c){if(c){a.isActive();c=new zq(a);var d=new Bga(c)}return new ap({xhr:a,F$:d},b)};
  938. Ega=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
  939. return c};
  940. Eq=function(){this.j=new Dga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
  941. Fq=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.N(a,this)};
  942. Gq=function(a,b,c){var d=Kga;a.signals.has(b);d({signal:b,data:c})};
  943. Hq=function(a){g.I.call(this);this.IW=a;this.slots=new Map;this.JB=new Set;this.CY=!1};
  944. Lga=function(a,b){a.Ma()||a.slots.set(b,{slotId:b,slot:void 0,lX:function(){return a.slots.delete(b)}})};
  945. Mga=function(a,b){return new Promise(function(c){Iq(function(){a.IW&&(a.tZ=b,a.CY=!0);for(var d=g.u(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Yf(h)}}d=g.u(a.JB);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.JB.clear();c()})})};
  946. Kga=function(){var a=g.Ja.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Mga(a.signal,a.data)):Promise.all(a.map(function(b){return Mga(b.signal,b.data)})).then()};
  947. Iq=function(a){Jq.push(a);Nga()};
  948. Nga=function(){var a,b;g.G(function(c){switch(c.j){case 1:if(Kq)return c.return();g.Ba(c,2,3);Kq=!0;a=Oga(0);case 5:if(!(a<Jq.length)){c.Ia(3);break}return g.z(c,Promise.resolve(),8);case 8:a=Oga(a);c.Ia(5);break;case 3:g.Ea(c);Jq.length=0;Kq=!1;g.Fa(c,0);break;case 2:b=g.Da(c),Yf(b),c.Ia(3)}})};
  949. Oga=function(a){for(var b=a+100;a<b&&a<Jq.length;)try{Jq[a++]()}catch(c){Yf(c)}return a};
  950. Pga=function(a,b){if(a.Ma())b();else{var c=Lq.get(a);if(c)c.push(b);else{var d=[b];Lq.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.u([].concat(g.qa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();Lq.delete(a)})}}};
  951. Mq=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Eb=c;this.state=this.D=0};
  952. Qga=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.QK;var d=b.dR}else c=function(){};
  953. return new Mq(!1,a,{QK:c,dR:d})};
  954. Nq=function(a){xb.call(this,a);this.name="TimerCancelledError"};
  955. Oq=function(a){xb.call(this,a);this.name="TimerDisposedError"};
  956. Sga=function(a){return Rga?Array.from(Rga.encode(a)):g.Jg(a)};
  957. Tga=function(a){var b=new Eq,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new So(b,a,function(){return c})};
  958. Pq=function(a,b){if(a.vX)return a.vX;if(void 0===a.Yv)return[];b=new zo(b,"c");var c=Sga(a.Yv);b.done();return a.vX=c};
  959. Uga=function(a,b,c){b=new zo(c,b);a=g.Kg(a,2);b.done();return a};
  960. Qq=function(a,b,c){b.gK(a.code);null==c||c(a)};
  961. Rq=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";null!=c||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=null!=(e=c.stack)?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,Rq.prototype)};
  962. Sq=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.Lo;this.addOnDisposeCallback(function(){return b.D.reject()})};
  963. Tq=function(a,b){b=Qga(b,function(){a.D.resolve()});
  964. g.N(a,b);b.start()};
  965. Uq=function(a,b,c,d,e,f,h){Sq.call(this,a);this.Z=c;this.qa=d;this.N=f;this.onError=h;this.C="m";this.B="x";this.Y=0;g.N(this,b);Tq(this,e);this.K=Math.floor((Date.now()+e)/1E3)};
  966. Vq=function(a,b,c){Sq.call(this,a);this.K=b;this.C="f";this.B="z";Tq(this,c)};
  967. Wq=function(a,b,c){Sq.call(this,a);this.K=b;this.C="w";this.B="z";Tq(this,c)};
  968. Xq=function(a,b){Sq.call(this,a);this.error=b;this.C="e";this.B="y"};
  969. Vga=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(Sga(b)))};
  970. Yq=function(a,b,c){Sq.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
  971. Zq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.Lo;this.state=1;this.C=0;this.cache=this.B=void 0;this.Kz=a.Kz;this.qR=a.qR;this.onError=a.onError;var c;this.onEvent=null!=(c=a.onEvent)?c:function(){};
  972. this.logger=a.Cqb?new Ofa:new Pfa(a.Zi,a.Vv);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})};
  973. Wga=function(a,b,c,d){if(!d)throw new Rq(4,"PMD:Undefined");d=d(dh(ck(b,1)));if(!(d instanceof Function))throw new Rq(16,"APF:Failed");return new Uq(a.logger,c,d,Pk(b,3),1E3*Pk(b,2),function(){return a.cache},a.onError)};
  974. Yga=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L;return g.G(function(M){switch(M.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Lm(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){M.Ia(4);break}g.Ba(M,5);a.state=3;a.C=f-1;return g.z(M,a.B&&1===f?a.B:a.aE(f),7);case 7:return h=M.B,a.B=void 0,a.state=4,l=new zo(a.logger,"b"),g.z(M,dga(h),8);case 8:return a.state=5,a.onEvent(1),e.MN=3,m=new Mo({challenge:h}),n=$q(a,12E4).then(function(ea){return function(){a.onEvent(ea.MN);return Promise.reject(new Rq(15,
  975. "MDA:Timeout"))}}(e)),g.z(M,Promise.race([m.WS,
  976. n]),9);case 9:return a.onEvent(2),p=[],a.onEvent(4),e.MN=6,g.z(M,Promise.race([m.snapshot({S2:p}),n]),10);case 10:return q=M.B,a.onEvent(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(M,Xga(a,a.logger.AQ("g",f,a.Kz.DX(q)),new Rq(10,"BWB:Timeout")),11);case 11:w=M.B;a.state=7;A=new zo(a.logger,"i");if(Rk(w,4)){m.dispose();var R=new Wq(a.logger,Rk(w,4),1E3*Pk(w,2))}else Pk(w,3)?R=Wga(a,w,m,v):(m.dispose(),R=new Vq(a.logger,dh(ck(w,1)),1E3*Pk(w,2)));D=R;A.done();H=F=void 0;null==(H=(F=a).qR)||
  977. H.call(F,dh(ck(w,1)));a.state=8;return M.return(D);case 5:L=g.Da(M);b=L instanceof Rq?L:L instanceof Oq?new Rq(20,"WTO:Disposed",L):L instanceof ln?new Rq(11,"EBH:Error",L):new Rq(12,"BSO:Unknown",L);Qq(b,a.logger,a.onError);a:{if(L instanceof ln)switch(L.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=L instanceof Rq?20!==L.code:!0}if(!R)throw b;return g.z(M,$q(a,d.getValue()),12);case 12:g.Mm(d);case 3:e={MN:void 0};f++;M.Ia(2);break;case 4:throw b;}})};
  978. $q=function(a,b){b=Qga(b);g.N(a,b);b.start();return b.Z};
  979. Xga=function(a,b,c){return Promise.race([b,$q(a,12E4).then(function(){return Promise.reject(c)})])};
  980. Zga=function(a){var b,c,d;g.G(function(e){switch(e.j){case 1:return b=void 0,g.Ba(e,5),g.z(e,Yga(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.gK(13);e.Ia(0);break}a.logger.gK(14);b=new Xq(a.logger,c instanceof Rq?c:new Rq(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ia(0)}})};
  981. $ga=function(a,b){b=Object.assign({},b);var c=22;try{b.kz&&!a.cache&&(a.cache=new Ufa(Math.min(b.kz.k$,150),a.logger));c=23;var d;if(!a.isReady()&&(null==(d=b.kz)?0:d.V6)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=Pq(b,a.logger),l=b.kz.HW;if(e.index){var m=new zo(e.logger,"R"),n=Wfa(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=Mg(p);Vfa(q,l)}catch(A){globalThis.sessionStorage.removeItem(n);e.logger.ex("c");f=void 0;break a}for(d=4;7>d&&0===q[d];)d++;for(h=0;h<Co.length;h++)if(q[d++]!==
  982. Co[h]){globalThis.sessionStorage.removeItem(n);e.logger.ex("d");f=void 0;break a}var r=(new DataView(q.buffer)).getUint32(d);if(Math.floor(Date.now()/1E3)>=r)globalThis.sessionStorage.removeItem(n),e.logger.ex("e");else{var t=new Uint8Array(q.buffer,d+4);m.done();e.logger.ex("a");f=t;break a}}else e.logger.ex("m")}else e.logger.ex("u");f=void 0}if(e=f)return Uga(e,"a",a.logger)}}catch(A){Qq(new Rq(c,22===c?"GBJ:init":"RXO:read",A),a.logger,a.onError)}var v;c=null!=(v=a.j)?v:new Yq(a.logger,a.C,a.state);
  983. v=new zo(a.logger,c.C);try{if(a.Ma())throw new Rq(21,"BNT:disposed");return c.G(b)}catch(A){v=new zo(a.logger,"e");var w=A instanceof Rq?A:new Rq(5,"TVD:error",A);Qq(w,a.logger,a.onError);c=new Xq(a.logger,w);return c.G(b)}finally{v.done()}};
  984. aha=function(a){var b={};g.ac(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c});
  985. uaa(a,function(c){return null===b[c.event]})};
  986. ar=function(){this.De=0;this.j=!1;this.B=-1;this.Nw=!1;this.Bk=0};
  987. br=function(){this.B=null;this.j=!1};
  988. Cr=function(a){br.call(this);this.D=a};
  989. Dr=function(){br.call(this)};
  990. Er=function(){br.call(this)};
  991. Fr=function(){this.j={};this.B=!0;this.C={}};
  992. Gr=function(a,b,c){a.j[b]||(a.j[b]=new Cr(c));return a.j[b]};
  993. bha=function(a){a.j.queryid||(a.j.queryid=new Er)};
  994. Hr=function(a,b,c){(a=a.j[b])&&a.C(c)};
  995. Ir=function(a,b){if(g.ed(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
  996. Jr=function(a){var b={},c=g.Xc(a.j,function(d){return d.j});
  997. g.Vc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0<d.length&&(b[e]=d)},a);
  998. return b};
  999. cha=function(a){a=Jr(a);var b=[];g.Vc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
  1000. return b};
  1001. eha=function(a){Gr(a,"od",dha);Gr(a,"opac",Kr).j=!0;Gr(a,"sbeos",Kr).j=!0;Gr(a,"prf",Kr).j=!0;Gr(a,"mwt",Kr).j=!0;Gr(a,"iogeo",Kr)};
  1002. fha=function(){this.j=this.nu=null};
  1003. Lr=function(){};
  1004. Nr=function(){if(!Mr())throw Error();};
  1005. Mr=function(){return!(!Or||!Or.performance)};
  1006. Pr=function(a){return a?a.passive&&gha()?a:a.capture||!1:!1};
  1007. Qr=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Pr(d)),!0):!1};
  1008. Rr=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
  1009. hha=function(){};
  1010. iha=function(){return(qc||sc)&&tc?tc.mobile:!Sr()&&(yc("iPod")||yc("iPhone")||yc("Android")||yc("IEMobile"))};
  1011. Sr=function(){return(qc||sc)&&tc?!tc.mobile&&(yc("iPad")||yc("Android")||yc("Silk")):yc("iPad")||yc("Android")&&!yc("Mobile")||yc("Silk")};
  1012. Tr=function(a){try{return!!a&&null!=a.location.href&&Oc(a,"foo")}catch(b){return!1}};
  1013. Ur=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
  1014. kha=function(){var a=[];Ur(jha,function(b){a.push(b)});
  1015. return a};
  1016. lha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
  1017. oha=function(){var a=mha("IFRAME"),b={};g.ac(nha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
  1018. return b};
  1019. mha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
  1020. pha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Tr(a)&&(b=a);return b};
  1021. tha=function(a){a=a||Vr();for(var b=new qha(g.Ta.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&rha.test(f.url)&&(c=f);if(f.url&&!f.jQ){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new sha(b,e,c)};
  1022. Vr=function(){var a=g.Ta,b=[],c=null;do{var d=a;if(Tr(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new qha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Ta;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.jQ=!0);return b};
  1023. sha=function(a,b,c){this.j=a;this.B=b;this.C=c};
  1024. qha=function(a,b){this.url=a;this.jQ=!!b;this.depth=null};
  1025. Wr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
  1026. Xr=function(a,b){var c={};c[a]=b;return[c]};
  1027. uha=function(a,b,c,d,e){var f=[];Ur(a,function(h,l){(h=Yr(h,b,c,d,e))&&f.push(l+"="+h)});
  1028. return f.join(b)};
  1029. Yr=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Yr(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(uha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
  1030. vha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
  1031. Zr=function(a,b){this.j=a;this.depth=b};
  1032. xha=function(){function a(l,m){return null==l?m:l}
  1033. var b=Vr(),c=Math.max(b.length-1,0),d=tha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Zr([f.url,f.jQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Zr([e.url,2],0));b.url&&b!=f&&h.push(new Zr([b.url,0],a(b.depth,c)));d=g.$r(h,function(l,m){return h.slice(0,h.length-m)});
  1034. !b.url||(f||e)&&b!=f||(e=lha(b.url))&&d.push([new Zr([e,1],a(b.depth,c))]);d.push([]);return g.$r(d,function(l){return wha(c,l)})};
  1035. wha=function(a,b){g.as(b,function(e){return 0<=e.depth});
  1036. var c=bs(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
  1037. d[0]=a;g.ac(b,function(e){return d[e.depth+1]=e.j});
  1038. return d};
  1039. yha=function(){var a=void 0===a?xha():a;return a.map(function(b){return Yr(b)})};
  1040. zha=function(a){var b=!1;b=void 0===b?!1:b;Or.google_image_requests||(Or.google_image_requests=[]);var c=mha("IMG",Or.document);b&&(c.attributionSrc="");c.src=a;Or.google_image_requests.push(c)};
  1041. cs=function(a){var b="fh";if(a.fh&&a.hasOwnProperty(b))return a.fh;var c=new a;a.fh=c;a.hasOwnProperty(b);return c};
  1042. ds=function(){this.B=new hha;this.j=Mr()?new Nr:new Lr};
  1043. Aha=function(){es();var a=Or.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Or.setInterval&&"function"===typeof Or.clearInterval&&"function"===typeof Or.setTimeout&&"function"===typeof Or.clearTimeout)};
  1044. Bha=function(){es();return yha()};
  1045. Cha=function(){};
  1046. es=function(){var a=cs(Cha);if(!a.j){if(!Or)throw Error("Context has not been set and window is undefined.");a.j=cs(ds)}return a.j};
  1047. fs=function(a){this.oa=P(a)};
  1048. Dha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
  1049. gs=function(a,b){return function(){var c=g.Ja.apply(0,arguments);if(-1<a.j)return b.apply(null,g.qa(c));try{return a.j=a.C.j.now(),b.apply(null,g.qa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
  1050. Eha=function(a,b){this.B=a;this.C=b;this.j=new Dha(a)};
  1051. Fha=function(){this.j={}};
  1052. Hha=function(){var a=hs().flags,b=Gha;a=a.j[b.key];if("proto"===b.valueType){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue};
  1053. Lha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Jc=new Fr;Gr(this.Jc,"mv",Iha).j=!0;Gr(this.Jc,"omid",Kr);Gr(this.Jc,"epoh",Kr).j=!0;Gr(this.Jc,"epph",Kr).j=!0;Gr(this.Jc,"umt",Kr).j=!0;Gr(this.Jc,"phel",Kr).j=!0;Gr(this.Jc,"phell",Kr).j=!0;Gr(this.Jc,"oseid",Jha).j=!0;var a=this.Jc;a.j.sloi||(a.j.sloi=new Dr);a.j.sloi.j=!0;Gr(this.Jc,"mm",is);Gr(this.Jc,"ovms",Kha).j=!0;Gr(this.Jc,"xdi",Kr).j=!0;Gr(this.Jc,"amp",Kr).j=!0;Gr(this.Jc,"prf",Kr).j=!0;Gr(this.Jc,"gtx",Kr).j=!0;Gr(this.Jc,
  1054. "mvp_lv",Kr).j=!0;Gr(this.Jc,"ssmol",Kr).j=!0;Gr(this.Jc,"fmd",Kr).j=!0;Gr(this.Jc,"gen204simple",Kr);this.j=new Eha(es(),this.Jc);this.D=!1;this.flags=new Fha};
  1055. hs=function(){return cs(Lha)};
  1056. Mha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Wr)var e=c;else e=new Wr,Ur(c,function(h,l){var m=e,n=m.D++;h=Xr(l,h);m.j.push(n);m.B[n]=h});
  1057. var f=e.Le(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(es(),zha(f))}catch(h){}};
  1058. Nha=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
  1059. Oha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.kb()};
  1060. Pha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now?a.now():null};
  1061. Qha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
  1062. ks=function(){var a=window;this.events=[];this.B=a||g.Ta;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=js()||(null!=b?b:1>Math.random())};
  1063. Rha=function(a){a&&ls&&js()&&(ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
  1064. Sha=function(){var a=ms;this.j=ns;this.zX="jserror";this.gT=!0;this.AN=null;this.B=this.EQ;this.fd=void 0===a?null:a};
  1065. Tha=function(a,b,c){var d=os;return gs(hs().j.j,function(){try{if(d.fd&&d.fd.j){var e=d.fd.start(a.toString(),3);var f=b();d.fd.end(e)}else f=b()}catch(l){var h=d.gT;try{Rha(e),h=d.B(a,new ps(qs(l)),void 0,c)}catch(m){d.EQ(217,m)}if(!h)throw l;}return f})()};
  1066. rs=function(a,b,c,d){return gs(hs().j.j,function(){var e=g.Ja.apply(0,arguments);return Tha(a,function(){return b.apply(c,e)},d)})};
  1067. qs=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n");break a}catch(e){b=c;break a}b=void 0}return b};
  1068. ps=function(a){Nha.call(this,Error(a),{message:a})};
  1069. Uha=function(){Or&&"undefined"!=typeof Or.google_measure_js_timing&&(Or.google_measure_js_timing||ms.disable())};
  1070. Vha=function(a){os.AN=function(b){g.ac(a,function(c){c(b)})}};
  1071. Wha=function(a,b){return Tha(a,b)};
  1072. ts=function(a,b){return rs(a,b)};
  1073. us=function(a,b,c,d){os.EQ(a,b,c,d)};
  1074. vs=function(){return Date.now()-Xha};
  1075. Yha=function(){var a=hs().C,b=0<=ws?vs()-ws:-1,c=xs?vs()-ys:-1,d=0<=zs?vs()-zs:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];us(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
  1076. As=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
  1077. Bs=function(a){return a.right-a.left};
  1078. Cs=function(a,b,c){b instanceof g.Ie?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
  1079. Zha=function(a,b,c){var d=new As(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
  1080. Ds=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l};
  1081. aia=function(a){var b=a!==a.top,c=a.top===pha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),bba($ha,function(h){return"function"===typeof f[h]})||(e=1));
  1082. return{Yn:f,compatibility:e,Qda:d}};
  1083. bia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
  1084. cia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ke(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Ke(-12245933,-12245933)}};
  1085. Es=function(a,b,c){try{a&&(b=b.top);var d=cia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new As(f,f,f,f);var h=Xba(mf(b.document).j),l=h.x,m=h.y;return new As(m,l+f,m+e,l)}catch(n){return new As(-12245933,-12245933,-12245933,-12245933)}};
  1086. g.Fs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
  1087. Gs=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
  1088. g.Is=function(a,b,c){if("string"===typeof b)(b=Hs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Hs(c,d);f&&(c.style[f]=e)}};
  1089. Hs=function(a,b){var c=dia[b];if(!c){var d=Pba(b);c=d;void 0===a.style[d]&&(d=(g.Qc?"Webkit":Js?"Moz":g.Ks?"ms":null)+Rba(d),void 0!==a.style[d]&&(c=d));dia[b]=c}return c};
  1090. g.Ls=function(a,b){var c=a.style[Pba(b)];return"undefined"!==typeof c?c:a.style[Hs(a,b)]||""};
  1091. Ms=function(a,b){var c=lf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
  1092. Ns=function(a,b){return Ms(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
  1093. g.Ps=function(a,b,c){if(b instanceof g.Ie){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Os(d,!1);a.style.top=g.Os(b,!1)};
  1094. Qs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
  1095. eia=function(a){var b=lf(a),c=Ns(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Ns(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
  1096. g.Rs=function(a){var b=lf(a),c=new g.Ie(0,0);if(a==(b?lf(b):document).documentElement)return c;a=Qs(a);b=Xba(mf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
  1097. gia=function(a,b){var c=new g.Ie(0,0),d=zf(lf(a));if(!Oc(d,"parent"))return c;do{var e=d==b?g.Rs(a):fia(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
  1098. g.Ss=function(a,b){a=hia(a);b=hia(b);return new g.Ie(a.x-b.x,a.y-b.y)};
  1099. fia=function(a){a=Qs(a);return new g.Ie(a.left,a.top)};
  1100. hia=function(a){if(1==a.nodeType)return fia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ie(a.clientX,a.clientY)};
  1101. g.Ts=function(a,b,c){if(b instanceof g.Ke)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Os(b,!0);a.style.height=g.Os(c,!0)};
  1102. g.Os=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
  1103. g.Us=function(a){var b=iia;if("none"!=Ns(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
  1104. iia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Qc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Qs(a),new g.Ke(a.right-a.left,a.bottom-a.top)):new g.Ke(b,c)};
  1105. g.Vs=function(a,b){a.style.display=b?"":"none"};
  1106. Ws=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
  1107. jia=function(a){return new As(a.top,a.right,a.bottom,a.left)};
  1108. kia=function(a){var b=a.top||0,c=a.left||0;return new As(b,c+(a.width||0),b+(a.height||0),c)};
  1109. Xs=function(a){return null!=a&&0<=a&&1>=a};
  1110. lia=function(){var a=g.oc();return a?Ys("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return jc(a,b)})||jc(a,"OMI/")&&!jc(a,"XiaoMi/")?!0:jc(a,"Presto")&&jc(a,"Linux")&&!jc(a,"X11")&&!jc(a,"Android")&&!jc(a,"Mobi"):!1};
  1111. mia=function(){this.C=!Tr(Or.top);this.isMobileDevice=Sr()||iha();var a=Vr();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.fo(a[a.length-1].url)||"":"";this.j=new As(0,0,0,0);this.D=new g.Ke(0,0);this.G=new g.Ke(0,0);this.N=new As(0,0,0,0);this.frameOffset=new g.Ie(0,0);this.K=0;this.Z=!1;this.B=!(!Or||!aia(Or).Yn);this.update(Or)};
  1112. nia=function(a,b){b&&b.screen&&(a.D=new g.Ke(b.screen.width,b.screen.height))};
  1113. oia=function(a,b){a:{var c=a.j?new g.Ke(Bs(a.j),a.j.getHeight()):new g.Ke(0,0);b=void 0===b?Or:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
  1114. m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.Ke(e,d);break a}catch(t){r=new g.Ke(-12245933,-12245933);break a}r=void 0}a.G=r};
  1115. at=function(){var a=Zs();if(0<a.K||a.Z)return!0;a=es().B.isVisible();var b=0===Rr($s);return a||b};
  1116. Zs=function(){return cs(mia)};
  1117. bt=function(a){this.C=a;this.B=0;this.j=null};
  1118. ct=function(a,b,c){this.C=a;this.Sa=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new Zha(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ea="uk";this.Ga=!1;this.K=!0};
  1119. dt=function(a,b){g.Fb(a.G,b)||(a.G.push(b),b.Zz(a.j),b.Lt(a.D),b.lq()&&(a.Y=!0))};
  1120. pia=function(a){a=a.j;a.cV();a.bV();var b=Zs();b.N=Es(!1,a.C,b.isMobileDevice);oia(Zs(),a.C);a.D.j=a.kY()};
  1121. qia=function(a){a.Y=a.G.length?Ys(a.G,function(b){return b.lq()}):!1};
  1122. ria=function(a){var b=g.Lb(a.G);g.ac(b,function(c){c.Lt(a.D)})};
  1123. et=function(a){var b=g.Lb(a.G);g.ac(b,function(c){c.Zz(a.j)});
  1124. a.j!=a||ria(a)};
  1125. pt=function(a,b,c,d){this.element=a;this.j=new As(0,0,0,0);this.D=new As(0,0,0,0);this.B=b;this.Jc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new Ds(b.D,this.element,this.j,new As(0,0,0,0),0,0,vs(),0)};
  1126. qt=function(a){this.G=!1;this.j=a;this.D=function(){}};
  1127. sia=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.j=null==b?"":b};
  1128. tia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
  1129. uia=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
  1130. rt=function(){this.C=0;this.j=[];this.B=!1};
  1131. via=function(a,b){(0,g.ac)(b.j,function(c){a.add(c.B,c.j,tia(c))})};
  1132. tt=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Ur(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
  1133. return a};
  1134. ut=function(a){var b=wia;a.B&&(g.Vb(a.j,function(c,d){return uia(d,c)?1:uia(c,d)?-1:0}),a.B=!1);
  1135. return bs(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
  1136. wia=function(a){var b=a.B;a=a.j;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
  1137. xia=function(a){var b=void 0===b?!0:b;this.j=new rt;void 0!==a&&via(this.j,a);b&&this.j.add("v","unreleased",-16)};
  1138. yia=function(a){var b=[],c=[];g.Vc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
  1139. return b.concat(c)};
  1140. zia=function(a){a=a.toString();es();zha(a)};
  1141. Aia=function(){this.j=0};
  1142. Bia=function(a,b,c){(0,g.ac)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new rt;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=cs(Aia);h.add("i",d.j++);h.add("adk",e);tt(h,f);e=new xia(h);zia(e)}})};
  1143. vt=function(){this.B=this.C=this.D=this.j=0};
  1144. wt=function(a){this.B=a=void 0===a?Cia:a;this.j=g.$r(this.B,function(){return new vt})};
  1145. xt=function(a,b){return Dia(a,function(c){return c.j},void 0===b?!0:b)};
  1146. At=function(a,b){return zt(a,b,function(c){return c.j})};
  1147. Eia=function(a,b){return Dia(a,function(c){return c.C},void 0===b?!0:b)};
  1148. Bt=function(a,b){return zt(a,b,function(c){return c.C})};
  1149. Ct=function(a,b){return zt(a,b,function(c){return c.B})};
  1150. Fia=function(a){g.ac(a.j,function(b){b.B=0})};
  1151. Dia=function(a,b,c){a=g.$r(a.j,function(d){return b(d)});
  1152. return c?a:Gia(a)};
  1153. zt=function(a,b,c){var d=g.Eb(a.B,function(e){return b<=e});
  1154. return-1==d?0:c(a.j[d])};
  1155. Gia=function(a){return g.$r(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
  1156. Dt=function(){this.B=new wt;this.Sa=new vt;this.ra=this.N=-1;this.bb=1E3;this.Za=new wt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ea=this.Ca=-1};
  1157. Et=function(a,b){return Eia(a.B,void 0===b?!0:b)};
  1158. Ft=function(a,b,c,d){var e=void 0===e?!1:e;c=rs(d,c);Qr(a,b,c,{capture:e})};
  1159. Ht=function(a,b){b=Gt(b);return 0===b?0:Gt(a)/b};
  1160. Gt=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
  1161. Hia=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Qf(a)||a){var d=lf(a),e=d&&zf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
  1162. Iia=function(a,b,c){if(!a||!b)return!1;b=Cs(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Tr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!bia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=lf(c))&&b.defaultView&&b.defaultView.frameElement)&&Hia(b,a);var d=a===c;a=!d&&a&&Tf(a,function(e){return e===c});
  1163. return!(b||d||a)};
  1164. Jia=function(a,b,c,d){return Zs().C?!1:0>=Bs(a)||0>=a.getHeight()?!0:c&&d?Wha(208,function(){return Iia(a,b,c)}):!1};
  1165. It=function(a,b,c){g.I.call(this);this.position=Kia.clone();this.nK=this.qJ();this.zQ=-2;this.iea=Date.now();this.Y1=-1;this.Sp=b;this.dK=null;this.TD=!1;this.CK=null;this.opacity=-1;this.requestSource=c;this.qea=!1;this.GQ=function(){};
  1166. this.A2=function(){};
  1167. this.Qj=new fha;this.Qj.nu=a;this.Qj.j=a;this.Qt=!1;this.Zv={QQ:null,PQ:null};this.z1=!0;this.bH=null;this.lA=this.O9=!1;hs().K++;this.Xh=this.lP();this.T1=-1;this.Uf=null;this.hasCompleted=this.L9=!1;this.Jc=new Fr;eha(this.Jc);Lia(this);1==this.requestSource?Hr(this.Jc,"od",1):Hr(this.Jc,"od",0)};
  1168. Lia=function(a){a=a.Qj.nu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Mia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&(Zs().B=!0)};
  1169. Jt=function(a,b){b!=a.lA&&(a.lA=b,a=Zs(),b?a.K++:0<a.K&&a.K--)};
  1170. Nia=function(a,b){if(a.Uf){if(b.getName()===a.Uf.getName())return;a.Uf.dispose();a.Uf=null}b=b.create(a.Qj.j,a.Jc,a.lq());if(b=null!=b&&b.UM()?b:null)a.Uf=b};
  1171. Oia=function(a,b,c){if(!a.dK||-1==a.Sp||-1===b.B||-1===a.dK.B)return 0;a=b.B-a.dK.B;return a>c?0:a};
  1172. Pia=function(a,b,c){if(a.Uf){a.Uf.Qs();var d=a.Uf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.CK=new g.Ie(h.left-f.left,h.top-f.top)}f=a.PL()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.aY(d);a.dK=d;a.Ta(f,b,c,!1,h,e,d.Z)}};
  1173. Qia=function(a){if(a.TD&&a.bH){var b=1==Ir(a.Jc,"od"),c=Zs().j,d=a.bH,e=a.Uf?a.Uf.getName():"ns",f=a.CK,h=new g.Ke(Bs(c),c.getHeight());c=a.PL();a={Yda:e,CK:f,Rea:h,PL:c,De:a.Xh.De,Mea:b};if(b=d.B){b.Qs();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ie(h.left-f.left,h.top-f.top),l=new g.Ke(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Yda:b.getName(),CK:h,Rea:l,PL:c,Mea:!1,De:e}}else c=null;c&&Bia(d,a,c)}};
  1174. Ria=function(a,b,c){b&&(a.GQ=b);c&&(a.A2=c)};
  1175. g.Kt=function(){};
  1176. g.Lt=function(a){return{value:a,done:!1}};
  1177. Sia=function(){this.D=this.j=this.C=this.B=this.G=0};
  1178. Tia=function(a){var b={};var c=g.kb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
  1179. Uia=function(){ar.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
  1180. Mt=function(a){return Xs(a.volume)&&0<a.volume};
  1181. Nt=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
  1182. return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return Via(f,b,c)}};
  1183. Ot=function(a,b){return function(c){return b(c)?c[a]:void 0}};
  1184. Wia=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
  1185. Via=function(a,b,c){return void 0===c||c?g.Pt(a,function(d,e){return g.Fb(b,e)}):g.$r(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
  1186. Xia=function(){this.B=this.j=""};
  1187. Yia=function(){};
  1188. Qt=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.od(c,a);return ut(tt(new rt,c))};
  1189. Zia=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
  1190. Rt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
  1191. $ia=function(a){var b=g.dd(a.B),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.B[d][1],a.j[d]=2);return c};
  1192. aja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.B[c][1]}return b};
  1193. St=function(){this.j=this.B=0};
  1194. Tt=function(){Dt.call(this);this.C=new vt;this.Na=this.Y=this.Ga=0;this.Z=-1;this.gb=new vt;this.G=new vt;this.j=new wt;this.K=this.D=-1;this.qa=new vt;this.bb=2E3;this.La=new St;this.Wa=new St;this.Va=new St};
  1195. Ut=function(a,b,c){var d=a.Na;xs||c||-1==a.Z||(d+=b-a.Z);return d};
  1196. bja=function(){this.C=!1};
  1197. Vt=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
  1198. Wt=function(a,b){Vt.call(this,a,b);this.N=[]};
  1199. cja=function(){};
  1200. Xt=function(){};
  1201. Yt=function(a,b,c,d){pt.call(this,a,b,c,d)};
  1202. Zt=function(a,b,c){pt.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
  1203. $t=function(a){return[a.top,a.left,a.bottom,a.right]};
  1204. au=function(a,b,c,d,e,f){f=void 0===f?new Xt:f;It.call(this,b,c,d);this.UR=e;this.yO=0;this.ai={};this.Fg=new Zia;this.Q2={};this.Xi="";this.bb=null;this.Gb=!1;this.j=[];this.Jr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Sa=this.Y=void 0;this.ra=this.qa=0;this.Ea=-1;this.gb=this.Za=!1;this.Ga=this.Z=this.B=this.mC=this.Jb=0;new wt;this.La=this.Va=0;this.Wa=-1;this.gk=0;this.N=g.Hd;this.Ca=[this.qJ()];this.Ob=2;this.sy={};this.sy.pause="p";this.sy.resume="r";this.sy.skip="s";this.sy.mute="m";this.sy.unmute=
  1205. "um";this.sy.exitfullscreen="ef";this.G=null;this.rb=this.zb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.Na=0};
  1206. bu=function(a){a.hasCompleted=!0;0!=a.gk&&(a.gk=3)};
  1207. cu=function(a){return void 0===a?a:Number(a)?Ws(a,3):0};
  1208. du=function(a,b){return a.Ca[null!=b&&b<a.Ca.length?b:a.Ca.length-1]};
  1209. dja=function(a){var b=!!Ir(hs().Jc,"umt");return a.Y||!b&&!a.Sa?0:1};
  1210. eja=function(a,b){a.Un()?b=0:-1==a.Sp?b=0:(b-=a.Sp,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.qa;var d=c-a.qa,e=0;0<=d?(a.ra+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Wa&&0<d&&(a.Wa=0<=zs?vs()-zs:-1);a.qa=c;return e};
  1211. fja=function(a,b){Ys(a.K,function(c){return c.D==b.D})||a.K.push(b)};
  1212. gja=function(a){var b=At(a.rj().j,1);return eu(a,b)};
  1213. eu=function(a,b,c){return 15E3<=b?!0:a.Za?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Ea?b>=a.Ea:!1:!1};
  1214. hja=function(a){var b=Ws(a.Xh.De,2),c=a.Fg.C,d=a.Xh,e=du(a),f=cu(e.D),h=cu(e.K),l=cu(d.volume),m=Ws(e.N,2),n=Ws(e.ra,2),p=Ws(d.De,2),q=Ws(e.Ca,2),r=Ws(e.Ea,2);d=Ws(d.Bk,2);a=a.Gt().clone();a.round();e=Et(e,!1);return{Qea:b,RE:c,rK:f,iK:h,yD:l,sK:m,kK:n,De:p,uK:q,lK:r,Bk:d,position:a,wK:e}};
  1215. jja=function(a,b){ija(a.j,b,function(){return{Qea:0,RE:void 0,rK:-1,iK:-1,yD:-1,sK:-1,kK:-1,De:-1,uK:-1,lK:-1,Bk:-1,position:void 0,wK:[]}});
  1216. a.j[b]=hja(a)};
  1217. ija=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
  1218. gu=function(a,b,c){var d=a.Q2[b];if(null!=d)return d;d=kja(a,b);var e=id(fu,function(f){return f==b});
  1219. a=lja(a,d,d,c,mja[fu[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
  1220. hu=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
  1221. lja=function(a,b,c,d,e){if(a.Qt)return{"if":0,vs:0};var f=a.Gt().clone();f.round();var h=Zs(),l=hs(),m=a.rj(),n=a.Uf?a.Uf.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.iea;p.p=[f.top,f.left,f.bottom,f.right];p.tos=xt(m.B,!1);p.mtos=Et(m);p.mcvt=m.Sa.C;p.ps=void 0;f=Ut(m,vs(),a.Un());p.vht=f;p.mut=m.gb.C;p.a=cu(a.Xh.volume);p.mv=cu(m.K);p.fs=a.lA?1:0;p.ft=m.qa.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=xt(m.j);p.ssb=xt(m.Za,!1);p.amtos=Eia(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;"nio"==n&&(p.nio=
  1222. 1,p.avms="nio");p.gmm="4";p.gdr=eu(a,m.C.j,!0)?1:0;p.efpf=a.Ob;if("gsv"==n||"nis"==n)n=a.Uf,0<n.G&&(p.nnut=n.G);p.tcm=dja(a);p.nmt=a.Va;p.bt=a.La;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Fg.C;1<=a.j.length&&(p.i0=a.j[0].RE,p.a0=[a.j[0].yD],p.c0=[a.j[0].De],p.ss0=[a.j[0].Bk],n=a.j[0].position,p.p0=n?$t(n):void 0);2<=a.j.length&&(p.i1=a.j[1].RE,p.a1=hu(a.j[1].rK,a.j[1].yD,a.j[1].iK),p.c1=hu(a.j[1].sK,a.j[1].De,a.j[1].kK),p.ss1=hu(a.j[1].uK,a.j[1].Bk,a.j[1].lK),n=a.j[1].position,p.p1=n?
  1223. $t(n):void 0,p.mtos1=a.j[1].wK);3<=a.j.length&&(p.i2=a.j[2].RE,p.a2=hu(a.j[2].rK,a.j[2].yD,a.j[2].iK),p.c2=hu(a.j[2].sK,a.j[2].De,a.j[2].kK),p.ss2=hu(a.j[2].uK,a.j[2].Bk,a.j[2].lK),n=a.j[2].position,p.p2=n?$t(n):void 0,p.mtos2=a.j[2].wK);4<=a.j.length&&(p.i3=a.j[3].RE,p.a3=hu(a.j[3].rK,a.j[3].yD,a.j[3].iK),p.c3=hu(a.j[3].sK,a.j[3].De,a.j[3].kK),p.ss3=hu(a.j[3].uK,a.j[3].Bk,a.j[3].lK),n=a.j[3].position,p.p3=n?$t(n):void 0,p.mtos3=a.j[3].wK);p.cs=aja(a.Fg);b&&(p.ic=$ia(a.Fg),p.dvpt=m.C.B,p.dvs=Ct(m.B,
  1224. .5),p.dfvs=Ct(m.B,1),p.davs=Ct(m.j,.5),p.dafvs=Ct(m.j,1),c&&(m.C.B=0,Fia(m.B),Fia(m.j)),a.Hr()&&(p.dtos=m.Ga,p.dav=m.Y,p.dtoss=a.yO+1,c&&(m.Ga=0,m.Y=0,a.yO++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Bs(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.mC&&(p.vds=a.mC);if(0<a.K.length||a.Jr)b=g.Lb(a.K),a.Jr&&b.push(a.Jr),p.pings=g.$r(b,function(q){return q.toString()});
  1225. b=g.$r(g.Pt(a.K,function(q){return q.K()}),function(q){return q.getId()});
  1226. vaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Ga&&(p.vmiec=a.Ga);p.avms=a.Uf?a.Uf.getName():"ns";a.Uf&&g.od(p,a.Uf.Dt());d?(p.c=Ws(a.Xh.De,2),p.ss=Ws(a.Xh.Bk,2)):p.tth=vs()-nja;p.mc=Ws(m.ra,2);p.nc=Ws(m.N,2);p.mv=cu(m.K);p.nv=cu(m.D);p.lte=Ws(a.zQ,2);d=du(a,e);Et(m);p.qmtos=Et(d);p.qnc=Ws(d.N,2);p.qmv=cu(d.K);p.qnv=cu(d.D);p.qas=0<d.D?1:0;p.qi=a.Xi;p.avms||(p.avms="geo");p.psm=m.La.j;p.psv=m.La.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=cha(l.Jc);l.length&&(p.veid=l);a.G&&g.od(p,
  1227. Tia(a.G));p.avas=a.fJ();p.vs=a.nY();p.co=oja(a);return p};
  1228. kja=function(a,b){if(g.Fb(pja,b))return!0;var c=a.ai[b];return void 0!==c?(a.ai[b]=!0,!c):!1};
  1229. oja=function(a){var b=a.Na.toString(10).padStart(2,"0");b=""+a.Kb+b;99>a.Na&&a.Na++;return b};
  1230. rja=function(){this.j={};var a=zf();iu(this,a,document);var b=qja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)iu(this,c,c.document);iu(this,a.top,a.top.document)}}catch(d){}};
  1231. qja=function(){var a=document.documentElement;try{if(!Tr(zf().top))return"2";var b=[],c=zf(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
  1232. iu=function(a,b,c){Ft(c,"mousedown",function(){return sja(a)},301);
  1233. Ft(b,"scroll",function(){return tja(a)},302);
  1234. Ft(c,"touchmove",function(){return uja(a)},303);
  1235. Ft(c,"mousemove",function(){return vja(a)},304);
  1236. Ft(c,"keydown",function(){return wja(a)},305)};
  1237. sja=function(a){g.Vc(a.j,function(b){1E5<b.C||++b.C})};
  1238. tja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
  1239. uja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
  1240. wja=function(a){g.Vc(a.j,function(b){1E5<b.B||++b.B})};
  1241. vja=function(a){g.Vc(a.j,function(b){1E5<b.D||++b.D})};
  1242. xja=function(){this.j=[];this.B=[]};
  1243. ju=function(a,b){return g.Db(a.j,function(c){return c.Xi==b})};
  1244. yja=function(a,b){return b?g.Db(a.j,function(c){return c.Qj.nu==b}):null};
  1245. zja=function(a,b){return g.Db(a.B,function(c){return 2==c.Dp()&&c.Xi==b})};
  1246. lu=function(){var a=ku;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Kb(a.B,a.j)};
  1247. Aja=function(a,b){a=1==b.Dp()?a.j:a.B;var c=Cb(a,function(d){return d==b});
  1248. return-1!=c?(a.splice(c,1),b.Uf&&b.Uf.NH(),b.dispose(),!0):!1};
  1249. Bja=function(a){var b=ku;if(Aja(b,a)){switch(a.Dp()){case 0:var c=function(){return null};
  1250. case 2:c=function(){return zja(b,a.Xi)};
  1251. break;case 1:c=function(){return ju(b,a.Xi)}}for(var d=c();d;d=c())Aja(b,d)}};
  1252. Cja=function(a){var b=ku;a=g.Pt(a,function(c){return!yja(b,c.Qj.nu)});
  1253. b.j.push.apply(b.j,g.qa(a))};
  1254. Dja=function(a){var b=[];g.ac(a,function(c){Ys(ku.j,function(d){return d.Qj.nu===c.Qj.nu&&d.Xi===c.Xi})||(ku.j.push(c),b.push(c))})};
  1255. mu=function(){this.j=this.B=null};
  1256. Eja=function(a,b){function c(d,e){b(d,e)}
  1257. if(null==a.B)return!1;a.j=g.Db(a.B,function(d){return null!=d&&d.dV()});
  1258. a.j&&(a.j.init(c)?pia(a.j.j):b(a.j.j.Pz(),a.j));return null!=a.j};
  1259. nu=function(a){a=Fja(a);qt.call(this,a.length?a[a.length-1]:new ct(Or,0));this.C=a;this.B=null};
  1260. Fja=function(a){if(!a.length)return[];a=(0,g.Pt)(a,function(c){return null!=c&&c.UC()});
  1261. for(var b=1;b<a.length;b++)dt(a[b-1],a[b]);return a};
  1262. ou=function(a,b,c,d){pt.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
  1263. pu=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
  1264. Hja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=hs().j.j;a.C=new c.IntersectionObserver(gs(d,function(e){return qu(a,e)}),Gja);
  1265. d=gs(d,function(){a.C.unobserve(b);a.C.observe(b);qu(a,pu(a))});
  1266. c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Ta.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);qu(a,pu(a));return!0};
  1267. qu=function(a,b){try{if(b.length){a.Z||(a.Z=vs());var c=Ija(b),d=gia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new As(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=jia(c.intersectionRect);a.D=Cs(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.NH(),us(299,l)}};
  1268. Ija=function(a){return bs(a,function(b,c){return b.time>c.time?b:c},a[0])};
  1269. ru=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))};
  1270. tu=function(){var a=Jja();ct.call(this,Or.top,a,"geo")};
  1271. Jja=function(){hs();var a=Zs();return a.C||a.B?0:2};
  1272. Kja=function(){};
  1273. uu=function(){this.done=!1;this.j={B6:0,kW:0,Eqb:0,rX:0,WP:-1,p7:0,o7:0,q7:0,Vda:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new bt(this)};
  1274. wu=function(){var a=vu;a.K||(a.K=!0,Lja(a,function(){return a.D.apply(a,g.qa(g.Ja.apply(0,arguments)))}),a.D())};
  1275. Mja=function(){cs(Kja);var a=cs(mu);null!=a.j&&a.j.j?pia(a.j.j):Zs().update(Or)};
  1276. xu=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Mja();var d=vs();hs().G=d;if(null!=cs(mu).j)for(var e=0;e<b.length;e++)Pia(b[e],d,c);for(d=0;d<b.length;d++)Qia(b[d]);++a.j.rX}finally{c?g.ac(b,function(f){f.Xh.De=0}):a.B.schedule()}}};
  1277. Lja=function(a,b){if(!a.G){b=rs(142,b);es();var c;$s.visibilityState?c="visibilitychange":$s.mozVisibilityState?c="mozvisibilitychange":$s.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Qr($s,c,b,{capture:!1})&&(a.G=b)}};
  1278. Nja=function(){var a=cs(mu);if(null!=a.j){var b=a.j;g.ac(lu(),function(c){return Nia(c,b)})}};
  1279. Oja=function(a,b){a=a.N;xs&&(a+=b-ys);return a};
  1280. Pja=function(a){a=void 0===a?function(){return{}}:a;
  1281. os.zX="av-js";ns.j=.01;Vha([function(b){var c=hs(),d={};d=(d.bin=c.B,d.type="error",d);c=Jr(c.Jc);if(!vu.C){var e=vu,f=Or.document,h=0<=ws?vs()-ws:-1,l=vs();-1==e.j.WP&&(h=l);var m=Zs(),n=hs(),p=Jr(n.Jc),q=lu();try{if(0<q.length){var r=m.j;r&&(p.bs=[Bs(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Or.screen&&(p.scs=[Or.screen.width,Or.screen.height])}else p.url=encodeURIComponent(Or.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
  1282. p.tt=h;p.pt=ws;p.bin=n.B;void 0!==Or.google_osd_load_pub_page_exp&&(p.olpp=Or.google_osd_load_pub_page_exp);p.deb=[1,e.j.B6,e.j.kW,e.j.rX,e.j.WP,0,e.B.B,e.j.p7,e.j.o7,e.j.q7,e.j.Vda,-1].join(";");p.tvt=Oja(e,l);m.B&&(p.inapp=1);if(null!==Or&&Or!=Or.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Or.location.href.substring(0,512)));var v=m.N;p.is=[Bs(v),v.getHeight()]}}catch(w){p.error=1}vu.C=p}r=g.md(vu.C);t=hs().j;1==Ir(t.C,"prf")?(v=new fs,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=ek(v,1,Ci(e.D+
  1283. f),0),e=t.j,v=ek(v,5,Hi(-1<e.j?e.B+1:e.B),0),v=ek(v,2,Mi(t.B.j.C()),"0"),v=ek(v,3,Mi(t.B.j.B()),"0"),t=ek(v,4,Mi(t.B.j.j()),"0"),v={},t=(v.pf=g.Kg(t.j()),v)):t={};g.od(r,t);g.od(b,d,c,r,a())}])};
  1284. Rja=function(){var a=Qja||Or;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
  1285. yu=function(){var a="youtube.player.web_20240520_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240520_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240520_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240520_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20240520_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
  1286. Sja=function(){return"av.default_js".includes("ima_html5_sdk")?{tp:"ima",xp:null}:"av.default_js".includes("ima_native_sdk")?{tp:"nima",xp:null}:"av.default_js".includes("admob-native-video-javascript")?{tp:"an",xp:null}:"youtube.player.web_20240520_01_RC00".includes("cast_js_sdk")?{tp:"cast",xp:yu()}:"youtube.player.web_20240520_01_RC00".includes("youtube.player.web")?{tp:"yw",xp:yu()}:"youtube.player.web_20240520_01_RC00".includes("outstream_web_client")?{tp:"out",xp:yu()}:"youtube.player.web_20240520_01_RC00".includes("drx_rewarded_web")?
  1287. {tp:"r",xp:yu()}:"youtube.player.web_20240520_01_RC00".includes("gam_native_web_video")?{tp:"n",xp:yu()}:"youtube.player.web_20240520_01_RC00".includes("admob_interstitial_video")?{tp:"int",xp:yu()}:{tp:"j",xp:null}};
  1288. Bu=function(a,b){var c={sv:"962"};null!==zu&&(c.v=zu);c.cb=Tja;c.nas=ku.j.length;c.msg=a;void 0!==b&&(a=Uja(b))&&(c.e=Au[a]);return c};
  1289. Cu=function(a){return dc(a,"custom_metric_viewable")};
  1290. Uja=function(a){var b=Cu(a)?"custom_metric_viewable":a.toLowerCase();return id(fu,function(c){return c==b})};
  1291. Vja=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
  1292. Yja=function(a){try{var b=a.split(",");return b.length>g.dd(Wja).length?null:bs(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Xja[d[0]]||!Xja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
  1293. Zja=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?Bt(b.j,a.j):Bt(b.B,a.j);case "tos":return a.B?At(b.j,a.j):At(b.B,a.j)}return 0};
  1294. Du=function(a,b,c,d){Vt.call(this,b,d);this.N=a;this.Z=c};
  1295. Eu=function(){};
  1296. Fu=function(a){Vt.call(this,"fully_viewable_audible_half_duration_impression",a)};
  1297. Gu=function(a){this.j=a};
  1298. Hu=function(a,b){Vt.call(this,a,b)};
  1299. Iu=function(a){Wt.call(this,"measurable_impression",a)};
  1300. Ju=function(){Gu.apply(this,arguments)};
  1301. Ku=function(a,b,c){Zt.call(this,a,b,c)};
  1302. Lu=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))};
  1303. Mu=function(a,b,c){Zt.call(this,a,b,c)};
  1304. Nu=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))};
  1305. Ou=function(){ct.call(this,Or,2,"mraid");this.La=0;this.ra=this.Ca=!1;this.N=null;this.B=aia(this.C);this.D.j=new As(0,0,0,0);this.Na=!1};
  1306. Pu=function(a,b,c){a.Ku("addEventListener",b,c)};
  1307. cka=function(a){hs().D=!!a.Ku("isViewable");Pu(a,"viewableChange",$ja);"loading"===a.Ku("getState")?Pu(a,"ready",aka):bka(a)};
  1308. bka=function(a){"string"===typeof a.B.Yn.AFMA_LIDAR?(a.Ca=!0,dka(a)):(a.B.compatibility=3,a.N="nc",a.pj("w"))};
  1309. dka=function(a){a.ra=!1;var b=1==Ir(hs().Jc,"rmmt"),c=!!a.Ku("isViewable");(b?!c:1)&&es().setTimeout(ts(524,function(){a.ra||(eka(a),us(540,Error()),a.N="mt",a.pj("w"))}),500);
  1310. fka(a);Pu(a,a.B.Yn.AFMA_LIDAR,gka)};
  1311. fka=function(a){var b=1==Ir(hs().Jc,"sneio"),c=void 0!==a.B.Yn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Yn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Yn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Yn.AFMA_LIDAR_EXP_1=!b)};
  1312. eka=function(a){a.Ku("removeEventListener",a.B.Yn.AFMA_LIDAR,gka);a.Ca=!1};
  1313. hka=function(a,b){if("loading"===a.Ku("getState"))return new g.Ke(-1,-1);b=a.Ku(b);if(!b)return new g.Ke(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Ke(-1,-1):new g.Ke(a,b)};
  1314. aka=function(){try{var a=cs(Ou);a.Ku("removeEventListener","ready",aka);bka(a)}catch(b){us(541,b)}};
  1315. gka=function(a,b){try{var c=cs(Ou);c.ra=!0;var d=a?new As(a.y,a.x+a.width,a.y+a.height,a.x):new As(0,0,0,0);var e=vs(),f=at();var h=new Zha(e,f,c);h.j=d;h.volume=b;c.Lt(h)}catch(l){us(542,l)}};
  1316. $ja=function(a){var b=hs(),c=cs(Ou);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.pj("w",!0))};
  1317. Qu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.t9,a.firstquartile=this.o9,a.midpoint=this.q9,a.thirdquartile=this.u9,a.complete=this.l9,a.error=this.m9,a.pause=this.TR,a.resume=this.O0,a.skip=this.s9,a.viewable_impression=this.Ep,a.mute=this.jC,a.unmute=this.jC,a.fullscreen=this.p9,a.exitfullscreen=this.n9,a.fully_viewable_audible_half_duration_impression=this.Ep,a.measurable_impression=this.Ep,a.abandon=this.TR,a.engagedview=this.Ep,a.impression=this.Ep,a.creativeview=
  1318. this.Ep,a.progress=this.jC,a.custom_metric_viewable=this.Ep,a.bufferstart=this.TR,a.bufferfinish=this.O0,a.audio_measurable=this.Ep,a.audio_audible=this.Ep,a);a={};this.N=(a.overlay_resize=this.r9,a.abandon=this.IP,a.close=this.IP,a.collapse=this.IP,a.overlay_unmeasurable_impression=function(b){return gu(b,"overlay_unmeasurable_impression",at())},a.overlay_viewable_immediate_impression=function(b){return gu(b,"overlay_viewable_immediate_impression",at())},a.overlay_unviewable_impression=function(b){return gu(b,
  1319. "overlay_unviewable_impression",at())},a.overlay_viewable_end_of_session_impression=function(b){return gu(b,"overlay_viewable_end_of_session_impression",at())},a);
  1320. hs().B=3;ika(this)};
  1321. Ru=function(a,b,c,d){a=a.sG(null,d,!0,b);a.D=c;Cja([a]);return a};
  1322. jka=function(a,b,c){aha(b);var d=a.j;g.ac(b,function(e){var f=g.$r(e.criteria,function(h){var l=Yja(h);if(null==l)h=null;else if(h=new Vja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
  1323. Ys(f,function(h){return null==h})||fja(c,new Du(e.id,e.event,f,d))})};
  1324. kka=function(){var a=[],b=hs();a.push(cs(tu));Ir(b.Jc,"mvp_lv")&&a.push(cs(Ou));b=[new Lu,new Nu];b.push(new nu(a));b.push(new ru(Or));return b};
  1325. lka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=vs(),c=hs(),d=Zs();ws=b;c.C=79463069;"o"!==a.B&&(Qja=pha(Or));if(Aha()){vu.j.kW=0;vu.j.WP=vs()-b;var e=kka(),f=cs(mu);f.B=e;Eja(f,function(){Su()})?vu.done||(Nja(),dt(f.j.j,a),wu()):d.C?Su():wu()}else Tu=!0}catch(h){throw ku.reset(),h;
  1326. }}};
  1327. Vu=function(a){vu.B.cancel();Uu=a;vu.done=!0};
  1328. Wu=function(a){if(a.B)return a.B;var b=cs(mu).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
  1329. Xu=function(a,b,c){if(null==a.j)return b.mC|=4,!1;a=mka(a.j,c,b);b.mC|=a;return 0==a};
  1330. Su=function(){var a=[new ru(Or)],b=cs(mu);b.B=a;Eja(b,function(){Vu("i")})?vu.done||(Nja(),wu()):Vu("i")};
  1331. nka=function(a,b){if(!a.Gb){var c=gu(a,"start",at());c=a.UR.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";null!==zu&&(d.v=zu);ho(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
  1332. b=Rja();ho(b,function(e,f){return d[e]=encodeURIComponent(f)});
  1333. b="//pagead2.googlesyndication.com/pagead/gen_204?"+ut(tt(new rt,d));zia(b);a.Gb=!0}};
  1334. Yu=function(a,b,c){xu(vu,[a],!at());jja(a,c);4!=c&&ija(a.Ca,c,a.qJ);return gu(a,b,at())};
  1335. ika=function(a){Pja(function(){var b=oka();null!=a.B&&(b.sdk=a.B);var c=cs(mu);null!=c.j&&(b.avms=c.j.getName());return b})};
  1336. pka=function(a,b,c,d){var e=yja(ku,c);null!==e&&e.Xi!==b&&(a.II(e),e=null);e||(b=a.sG(c,vs(),!1,b),0==ku.B.length&&(hs().C=79463069),Dja([b]),e=b,e.D=Wu(a),d&&(e.bb=d));return e};
  1337. qka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
  1338. oka=function(){var a=Zs(),b={},c={},d={};return Object.assign({},(b.sv="962",b),null!==zu&&(c.v=zu,c),(d["if"]=a.C?"1":"0",d.nas=String(ku.j.length),d))};
  1339. Zu=function(a){Vt.call(this,"audio_audible",a)};
  1340. $u=function(a){Wt.call(this,"audio_measurable",a)};
  1341. av=function(){Gu.apply(this,arguments)};
  1342. bv=function(){};
  1343. rka=function(a){this.j=a};
  1344. mka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==zu&&(d.v=zu,d),(e.sv="962",e.cb=Tja,e.e=ska(b),e));e=gu(c,b,at());g.od(d,e);c.Q2[b]=e;d=2==c.Dp()?yia(d).join("&"):c.UR.j(d).j;try{return a(c.Xi,d,b),0}catch(f){return 2}}else return 1};
  1345. ska=function(a){var b=Cu(a)?"custom_metric_viewable":a;a=id(fu,function(c){return c==b});
  1346. return Au[a]};
  1347. cv=function(){Qu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  1348. tka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&jka(a,c,b)};
  1349. uka=function(a,b,c){var d=ju(ku,b);d||(d=c.opt_nativeTime||-1,d=Ru(a,b,Wu(a),d),c.opt_osdId&&(d.bb=c.opt_osdId));return d};
  1350. vka=function(a,b,c){var d=ju(ku,b);d||(d=Ru(a,b,"n",c.opt_nativeTime||-1));return d};
  1351. wka=function(a,b){var c=ju(ku,b);c||(c=Ru(a,b,"h",-1));return c};
  1352. xka=function(a){hs();switch(Wu(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
  1353. Aka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.od(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.AJ(b,c);c=f?f.UR:a.sO();if(e.opt_bounds)return c.j(Bu("ol",d));if(void 0!==d)if(void 0!==Uja(d))if(Tu)a=Bu("ue",d);else if(lka(a),"i"==Uu)a=Bu("i",d),a["if"]=0;else if(b=a.AJ(b,e)){b:{"i"==Uu&&(b.Qt=!0);f=e.opt_fullscreen;void 0!==f&&Jt(b,!!f);var h;if(f=!Zs().B)(f=jc(g.oc(),"CrKey")&&!(jc(g.oc(),"CrKey")&&jc(g.oc(),"SmartSpeaker"))||jc(g.oc(),"PlayStation")||jc(g.oc(),"Roku")||lia()||jc(g.oc(),
  1354. "Xbox"))||(f=g.oc(),f=jc(f,"AppleTV")||jc(f,"Apple TV")||jc(f,"CFNetwork")||jc(f,"tvOS")),f||(f=g.oc(),f=jc(f,"sdk_google_atv_x86")||jc(f,"Android TV")),f=!f;f&&(es(),f=0===Rr($s));if(h=f){switch(b.Dp()){case 1:nka(b,"pv");break;case 2:a.oS(b)}Vu("pv")}f=d.toLowerCase();if(h=!h)h=Ir(hs().Jc,"ssmol")&&"loaded"===f?!1:g.Fb(yka,f);if(h&&0==b.gk){"i"!=Uu&&(vu.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;zs=h="number"===typeof h?h:vs();b.TD=!0;var l=at();b.gk=1;b.ai={};b.ai.start=!1;b.ai.firstquartile=
  1355. !1;b.ai.midpoint=!1;b.ai.thirdquartile=!1;b.ai.complete=!1;b.ai.resume=!1;b.ai.pause=!1;b.ai.skip=!1;b.ai.mute=!1;b.ai.unmute=!1;b.ai.viewable_impression=!1;b.ai.measurable_impression=!1;b.ai.fully_viewable_audible_half_duration_impression=!1;b.ai.fullscreen=!1;b.ai.exitfullscreen=!1;b.yO=0;l||(b.rj().Z=h);xu(vu,[b],!l)}(h=b.sy[f])&&Rt(b.Fg,h);Ir(hs().Jc,"fmd")||g.Fb(zka,f)&&b.Jr&&b.Jr.B(b,null);switch(b.Dp()){case 1:var m=Cu(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,
  1356. b,e,d),Ir(hs().Jc,"fmd")&&g.Fb(zka,f)&&b.Jr&&b.Jr.B(b,null),void 0!==d)){e=Bu(void 0,f);g.od(e,d);d=e;break b}d=void 0}3==b.gk&&a.II(b);a=d}else a=Bu("nf",d);else a=void 0;else Tu?a=Bu("ue"):f?(a=Bu(),g.od(a,lja(f,!0,!1,!1))):a=Bu("nf");return"string"===typeof a?c.j():c.j(a)};
  1357. Bka=function(a,b){b&&(a.C=b)};
  1358. Cka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
  1359. Dka=function(a,b,c){c=void 0===c?{}:c;a=Aka(cs(cv),b,c,a);return Cka(a)};
  1360. Eka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}};
  1361. Hka=function(a){if(g.ec(g.$e(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.eq(a)}catch(c){return null!=g.Db(Fka,function(d){return 0<a.search(d)})}return b.K.match(Gka)?!0:null!=g.Db(Fka,function(c){return null!=a.match(c)})};
  1362. g.dv=function(a,b){return a.replace(Ika,function(c,d){try{var e=g.kd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.ec(g.$e(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
  1363. fv=function(a){g.Dd.call(this);var b=this;this.G=this.B=0;this.Vn=null!=a?a:{Ni:function(e,f){return setTimeout(e,f)},
  1364. Oj:function(e){clearTimeout(e)}};
  1365. var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.G(function(e){return g.z(e,ev(b),0)})};
  1366. window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.lf()};
  1367. Jka=function(){var a=g.gv;fv.instance||(fv.instance=new fv(a));return fv.instance};
  1368. ev=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.G(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.Ba(l,2,3),d&&(a.B=a.Vn.Ni(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
  1369. signal:f}),5);case 5:h=!0;case 3:g.Ea(l);a.D=void 0;a.B&&(a.Vn.Oj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Fa(l,0);break;case 2:g.Da(l),h=!1,l.Ia(3)}})})};
  1370. hv=function(){this.data=[];this.j=-1};
  1371. Kka=function(a){-1===a.j&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
  1372. return a.j};
  1373. iv=function(a){a.setAttribute("role","link")};
  1374. kv=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(jv||(b={},jv=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=jv,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
  1375. vv=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
  1376. g.wv=function(a,b,c){g.I.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.gb)(this.r5,this)};
  1377. Lka=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
  1378. Mka=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
  1379. g.xv=function(a,b,c){g.I.call(this);this.j=a;this.Ti=b||0;this.B=c;this.C=(0,g.gb)(this.fV,this)};
  1380. g.yv=function(a,b){a.isActive()||a.start(b)};
  1381. g.zv=function(a){a.stop();a.fV()};
  1382. g.Av=function(a){a.isActive()&&g.zv(a)};
  1383. g.Bv=function(a,b){this.j=a[g.Ta.Symbol.iterator]();this.B=b};
  1384. Nka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
  1385. Cv=function(a){return a.classList?a.classList:Nka(a).match(/\S+/g)||[]};
  1386. g.Dv=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
  1387. g.Ev=function(a,b){return a.classList?a.classList.contains(b):g.Fb(Cv(a),b)};
  1388. g.Fv=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Ev(a,b)){var c=Nka(a);g.Dv(a,c+(0<c.length?" "+b:b))}};
  1389. g.Gv=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Fv(a,e)});
  1390. else{var c={};Array.prototype.forEach.call(Cv(a),function(e){c[e]=!0});
  1391. Array.prototype.forEach.call(b,function(e){c[e]=!0});
  1392. b="";for(var d in c)b+=0<b.length?" "+d:d;g.Dv(a,b)}};
  1393. g.Hv=function(a,b){a.classList?a.classList.remove(b):g.Ev(a,b)&&g.Dv(a,Array.prototype.filter.call(Cv(a),function(c){return c!=b}).join(" "))};
  1394. g.Iv=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Hv(a,c)}):g.Dv(a,Array.prototype.filter.call(Cv(a),function(c){return!g.Fb(b,c)}).join(" "))};
  1395. g.Jv=function(a,b,c){c?g.Fv(a,b):g.Hv(a,b)};
  1396. Oka=function(a,b){var c=!g.Ev(a,b);g.Jv(a,b,c)};
  1397. g.Kv=function(){g.Dd.call(this);this.j=0;this.endTime=this.startTime=null};
  1398. Pka=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
  1399. g.Is(a,"transition",b.join(","))};
  1400. Lv=function(a,b,c,d,e){g.Kv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
  1401. Qka=function(a,b,c,d){return new Lv(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
  1402. Ska=function(a){a=kc(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Rka))return null}return a};
  1403. Mv=function(a,b){a=g.Ta[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
  1404. Tka=function(a){var b=g.Ta.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
  1405. Uka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ks&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
  1406. $ka=function(a){if(!a)return Vka;var b=document.createElement("div").style;Wka(a).forEach(function(c){var d=g.Qc&&c in Xka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dc(d,"--")||dc(d,"var")||(c=Uka(Yka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Ska(c),null!=c&&Uka(Zka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
  1407. return new g.ne(b.cssText||"",ze)};
  1408. Wka=function(a){g.bb(a)?a=g.Lb(a):(a=g.dd(a),g.Hb(a,"cssText"));return a};
  1409. g.Ov=function(a){var b,c=b=0,d=!1;a=a.split(ala);for(var e=0;e<a.length;e++){var f=a[e];g.Nv.test(f)?(b++,c++):bla.test(f)?d=!0:dla.test(f)?c++:ela.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
  1410. g.Sv=function(a){if(a instanceof Pv||a instanceof Qv||a instanceof Rv)return a;if("function"==typeof a.next)return new Pv(function(){return a});
  1411. if("function"==typeof a[Symbol.iterator])return new Pv(function(){return a[Symbol.iterator]()});
  1412. if("function"==typeof a.Tl)return new Pv(function(){return a.Tl()});
  1413. throw Error("Not an iterator or iterable.");};
  1414. Pv=function(a){this.B=a};
  1415. Qv=function(a){this.B=a};
  1416. Rv=function(a){Pv.call(this,function(){return a});
  1417. this.C=a};
  1418. Tv=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
  1419. Uv=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=He(a.j,a.x1,b),d=He(a.x1,a.x2,b);a=He(a.x2,a.B,b);c=He(c,d,b);d=He(d,a,b);return He(c,d,b)};
  1420. fla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Uv(a,c);var l=(Uv(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Uv(a,c);return c};
  1421. Vv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
  1422. Wv=function(a){return(a=a.exec(g.oc()))?a[1]:""};
  1423. Xv=function(a){return 0<=g.nc(gla,a)};
  1424. g.Yv=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
  1425. hla=function(a,b,c){g.ig(function(){a.apply(b,c)})};
  1426. g.Zv=function(a){this.j=a};
  1427. $v=function(a){this.j=a};
  1428. ila=function(a){this.data=a};
  1429. jla=function(a){return void 0===a||a instanceof ila?a:new ila(a)};
  1430. aw=function(a){this.j=a};
  1431. g.kla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.kb()||!!b&&b>g.kb()};
  1432. g.bw=function(a){this.j=a};
  1433. lla=function(){};
  1434. cw=function(){};
  1435. dw=function(a){this.j=a;this.B=null};
  1436. ew=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Yf(Error("Storage mechanism: Storage unavailable"))};
  1437. fw=function(){var a=null;try{a=g.Ta.localStorage||null}catch(b){}dw.call(this,a)};
  1438. mla=function(){var a=null;try{a=g.Ta.sessionStorage||null}catch(b){}dw.call(this,a)};
  1439. gw=function(a,b){this.B=a;this.j=b+"::"};
  1440. g.hw=function(a){var b=new fw;return b.isAvailable()?a?new gw(b,a):b:null};
  1441. iw=function(a,b){this.j=a;this.B=b};
  1442. jw=function(a){this.j=[];if(a)a:{if(a instanceof jw){var b=a.En();a=a.nm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new iw(b[d],a[d]));break a}}else b=g.dd(a),a=g.cd(a);for(c=0;c<b.length;c++)this.Bh(b[c],a[c])}};
  1443. kw=function(){jw.apply(this,arguments)};
  1444. lw=function(){};
  1445. nla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new mw.yy(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
  1446. 6&63),l[c++]=128|f&63);return l};
  1447. nw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
  1448. ow=function(a,b,c,d,e){this.K1=a;this.Z7=b;this.Y7=c;this.M7=d;this.o$=e;this.JY=a&&a.length};
  1449. pw=function(a,b){this.sX=a;this.NA=0;this.Ru=b};
  1450. qw=function(a,b){a.jg[a.pending++]=b&255;a.jg[a.pending++]=b>>>8&255};
  1451. rw=function(a,b,c){a.oi>16-c?(a.mj|=b<<a.oi&65535,qw(a,a.mj),a.mj=b>>16-a.oi,a.oi+=c-16):(a.mj|=b<<a.oi&65535,a.oi+=c)};
  1452. tw=function(a,b,c){rw(a,c[2*b],c[2*b+1])};
  1453. ola=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
  1454. pla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=ola(d[e]++,e))};
  1455. qla=function(a){var b;for(b=0;286>b;b++)a.Tj[2*b]=0;for(b=0;30>b;b++)a.gw[2*b]=0;for(b=0;19>b;b++)a.Pi[2*b]=0;a.Tj[512]=1;a.Qr=a.cC=0;a.Bm=a.matches=0};
  1456. rla=function(a){8<a.oi?qw(a,a.mj):0<a.oi&&(a.jg[a.pending++]=a.mj);a.mj=0;a.oi=0};
  1457. sla=function(a,b,c){rla(a);qw(a,c);qw(a,~c);mw.ez(a.jg,a.window,b,c,a.pending);a.pending+=c};
  1458. tla=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
  1459. uw=function(a,b,c){for(var d=a.rg[c],e=c<<1;e<=a.Br;){e<a.Br&&tla(b,a.rg[e+1],a.rg[e],a.depth)&&e++;if(tla(b,d,a.rg[e],a.depth))break;a.rg[c]=a.rg[e];c=e;e<<=1}a.rg[c]=d};
  1460. ula=function(a,b,c){var d=0;if(0!==a.Bm){do{var e=a.jg[a.MD+2*d]<<8|a.jg[a.MD+2*d+1];var f=a.jg[a.rQ+d];d++;if(0===e)tw(a,f,b);else{var h=vw[f];tw(a,h+256+1,b);var l=ww[h];0!==l&&(f-=xw[h],rw(a,f,l));e--;h=256>e?yw[e]:yw[256+(e>>>7)];tw(a,h,c);l=zw[h];0!==l&&(e-=Aw[h],rw(a,e,l))}}while(d<a.Bm)}tw(a,256,b)};
  1461. Bw=function(a,b){var c=b.sX,d=b.Ru.K1,e=b.Ru.JY,f=b.Ru.M7,h,l=-1;a.Br=0;a.cA=573;for(h=0;h<f;h++)0!==c[2*h]?(a.rg[++a.Br]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Br;){var m=a.rg[++a.Br]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.Qr--;e&&(a.cC-=d[2*m+1])}b.NA=l;for(h=a.Br>>1;1<=h;h--)uw(a,c,h);m=f;do h=a.rg[1],a.rg[1]=a.rg[a.Br--],uw(a,c,1),d=a.rg[1],a.rg[--a.cA]=h,a.rg[--a.cA]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.rg[1]=m++,uw(a,c,1);while(2<=
  1462. a.Br);a.rg[--a.cA]=a.rg[1];h=b.sX;m=b.NA;d=b.Ru.K1;e=b.Ru.JY;f=b.Ru.Z7;var n=b.Ru.Y7,p=b.Ru.o$,q,r=0;for(q=0;15>=q;q++)a.Nq[q]=0;h[2*a.rg[a.cA]+1]=0;for(b=a.cA+1;573>b;b++){var t=a.rg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.Nq[q]++;var v=0;t>=n&&(v=f[t-n]);var w=h[2*t];a.Qr+=w*(q+v);e&&(a.cC+=w*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.Nq[q];)q--;a.Nq[q]--;a.Nq[q+1]+=2;a.Nq[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.Nq[q];0!==t;)d=a.rg[--b],d>m||(h[2*d+1]!==q&&(a.Qr+=(q-
  1463. h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}pla(c,l,a.Nq)};
  1464. vla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.Pi[2*n]+=h:0!==n?(n!==e&&a.Pi[2*n]++,a.Pi[32]++):10>=h?a.Pi[34]++:a.Pi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
  1465. wla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do tw(a,n,a.Pi);while(0!==--h)}else 0!==n?(n!==e&&(tw(a,n,a.Pi),h--),tw(a,16,a.Pi),rw(a,h-3,2)):10>=h?(tw(a,17,a.Pi),rw(a,h-3,3)):(tw(a,18,a.Pi),rw(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
  1466. xla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Tj[2*c])return 0;if(0!==a.Tj[18]||0!==a.Tj[20]||0!==a.Tj[26])return 1;for(c=32;256>c;c++)if(0!==a.Tj[2*c])return 1;return 0};
  1467. Cw=function(a,b,c){a.jg[a.MD+2*a.Bm]=b>>>8&255;a.jg[a.MD+2*a.Bm+1]=b&255;a.jg[a.rQ+a.Bm]=c&255;a.Bm++;0===b?a.Tj[2*c]++:(a.matches++,b--,a.Tj[2*(vw[c]+256+1)]++,a.gw[2*(256>b?yw[b]:yw[256+(b>>>7)])]++);return a.Bm===a.pF-1};
  1468. Ew=function(a,b){a.msg=Dw[b];return b};
  1469. Fw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
  1470. Gw=function(a){var b=a.state,c=b.pending;c>a.Ie&&(c=a.Ie);0!==c&&(mw.ez(a.output,b.jg,b.cG,c,a.XA),a.XA+=c,b.cG+=c,a.xT+=c,a.Ie-=c,b.pending-=c,0===b.pending&&(b.cG=0))};
  1471. Jw=function(a,b){var c=0<=a.Ok?a.Ok:-1,d=a.Db-a.Ok,e=0;if(0<a.level){2===a.ye.wO&&(a.ye.wO=xla(a));Bw(a,a.aK);Bw(a,a.HI);vla(a,a.Tj,a.aK.NA);vla(a,a.gw,a.HI.NA);Bw(a,a.FW);for(e=18;3<=e&&0===a.Pi[2*yla[e]+1];e--);a.Qr+=3*(e+1)+14;var f=a.Qr+3+7>>>3;var h=a.cC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)rw(a,b?1:0,3),sla(a,c,d);else if(4===a.strategy||h===f)rw(a,2+(b?1:0),3),ula(a,Hw,Iw);else{rw(a,4+(b?1:0),3);c=a.aK.NA+1;d=a.HI.NA+1;e+=1;rw(a,c-257,5);rw(a,d-1,5);rw(a,e-4,4);for(f=0;f<e;f++)rw(a,
  1472. a.Pi[2*yla[f]+1],3);wla(a,a.Tj,c-1);wla(a,a.gw,d-1);ula(a,a.Tj,a.gw)}qla(a);b&&rla(a);a.Ok=a.Db;Gw(a.ye)};
  1473. Kw=function(a,b){a.jg[a.pending++]=b};
  1474. Lw=function(a,b){a.jg[a.pending++]=b>>>8&255;a.jg[a.pending++]=b&255};
  1475. zla=function(a,b){var c=a.NZ,d=a.Db,e=a.jl,f=a.h_,h=a.Db>a.gj-262?a.Db-(a.gj-262):0,l=a.window,m=a.Zu,n=a.gq,p=a.Db+258,q=l[d+e-1],r=l[d+e];a.jl>=a.pY&&(c>>=2);f>a.ac&&(f=a.ac);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.KA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
  1476. --c);return e<=a.ac?e:a.ac};
  1477. Ow=function(a){var b=a.gj,c;do{var d=a.V2-a.ac-a.Db;if(a.Db>=b+(b-262)){mw.ez(a.window,a.window,b,b,0);a.KA-=b;a.Db-=b;a.Ok-=b;var e=c=a.IJ;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.gq[--e],a.gq[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ye.lj)break;e=a.ye;c=a.window;f=a.Db+a.ac;var h=e.lj;h>d&&(h=d);0===h?c=0:(e.lj-=h,mw.ez(c,e.input,e.nx,h,f),1===e.state.wrap?e.Ud=Mw(e.Ud,c,h,f):2===e.state.wrap&&(e.Ud=Nw(e.Ud,c,h,f)),e.nx+=h,e.ly+=h,c=h);a.ac+=c;if(3<=a.ac+a.Bh)for(d=a.Db-a.Bh,
  1478. a.Ee=a.window[d],a.Ee=(a.Ee<<a.zr^a.window[d+1])&a.yr;a.Bh&&!(a.Ee=(a.Ee<<a.zr^a.window[d+3-1])&a.yr,a.gq[d&a.Zu]=a.head[a.Ee],a.head[a.Ee]=d,d++,a.Bh--,3>a.ac+a.Bh););}while(262>a.ac&&0!==a.ye.lj)};
  1479. Pw=function(a,b){for(var c;;){if(262>a.ac){Ow(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.Ee=(a.Ee<<a.zr^a.window[a.Db+3-1])&a.yr,c=a.gq[a.Db&a.Zu]=a.head[a.Ee],a.head[a.Ee]=a.Db);0!==c&&a.Db-c<=a.gj-262&&(a.Ve=zla(a,c));if(3<=a.Ve)if(c=Cw(a,a.Db-a.KA,a.Ve-3),a.ac-=a.Ve,a.Ve<=a.DQ&&3<=a.ac){a.Ve--;do a.Db++,a.Ee=(a.Ee<<a.zr^a.window[a.Db+3-1])&a.yr,a.gq[a.Db&a.Zu]=a.head[a.Ee],a.head[a.Ee]=a.Db;while(0!==--a.Ve);a.Db++}else a.Db+=a.Ve,a.Ve=0,a.Ee=a.window[a.Db],a.Ee=(a.Ee<<a.zr^
  1480. a.window[a.Db+1])&a.yr;else c=Cw(a,0,a.window[a.Db]),a.ac--,a.Db++;if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=2>a.Db?a.Db:2;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2};
  1481. Qw=function(a,b){for(var c,d;;){if(262>a.ac){Ow(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.Ee=(a.Ee<<a.zr^a.window[a.Db+3-1])&a.yr,c=a.gq[a.Db&a.Zu]=a.head[a.Ee],a.head[a.Ee]=a.Db);a.jl=a.Ve;a.r0=a.KA;a.Ve=2;0!==c&&a.jl<a.DQ&&a.Db-c<=a.gj-262&&(a.Ve=zla(a,c),5>=a.Ve&&(1===a.strategy||3===a.Ve&&4096<a.Db-a.KA)&&(a.Ve=2));if(3<=a.jl&&a.Ve<=a.jl){d=a.Db+a.ac-3;c=Cw(a,a.Db-1-a.r0,a.jl-3);a.ac-=a.jl-1;a.jl-=2;do++a.Db<=d&&(a.Ee=(a.Ee<<a.zr^a.window[a.Db+3-1])&a.yr,a.gq[a.Db&a.Zu]=
  1482. a.head[a.Ee],a.head[a.Ee]=a.Db);while(0!==--a.jl);a.hx=0;a.Ve=2;a.Db++;if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}else if(a.hx){if((c=Cw(a,0,a.window[a.Db-1]))&&Jw(a,!1),a.Db++,a.ac--,0===a.ye.Ie)return 1}else a.hx=1,a.Db++,a.ac--}a.hx&&(Cw(a,0,a.window[a.Db-1]),a.hx=0);a.Bh=2>a.Db?a.Db:2;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2};
  1483. Ala=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.ac){Ow(a);if(258>=a.ac&&0===b)return 1;if(0===a.ac)break}a.Ve=0;if(3<=a.ac&&0<a.Db&&(d=a.Db-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Db+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.Ve=258-(e-d);a.Ve>a.ac&&(a.Ve=a.ac)}3<=a.Ve?(c=Cw(a,1,a.Ve-3),a.ac-=a.Ve,a.Db+=a.Ve,a.Ve=0):(c=Cw(a,0,a.window[a.Db]),a.ac--,a.Db++);if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;return 4===
  1484. b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2};
  1485. Bla=function(a,b){for(var c;;){if(0===a.ac&&(Ow(a),0===a.ac)){if(0===b)return 1;break}a.Ve=0;c=Cw(a,0,a.window[a.Db]);a.ac--;a.Db++;if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2};
  1486. Rw=function(a,b,c,d,e){this.Q8=a;this.n$=b;this.E$=c;this.m$=d;this.func=e};
  1487. Cla=function(){this.ye=null;this.status=0;this.jg=null;this.wrap=this.pending=this.cG=this.Gm=0;this.Nd=null;this.Jn=0;this.method=8;this.AA=-1;this.Zu=this.ST=this.gj=0;this.window=null;this.V2=0;this.head=this.gq=null;this.h_=this.pY=this.strategy=this.level=this.DQ=this.NZ=this.jl=this.ac=this.KA=this.Db=this.hx=this.r0=this.Ve=this.Ok=this.zr=this.yr=this.OP=this.IJ=this.Ee=0;this.Tj=new mw.Dq(1146);this.gw=new mw.Dq(122);this.Pi=new mw.Dq(78);Fw(this.Tj);Fw(this.gw);Fw(this.Pi);this.FW=this.HI=
  1488. this.aK=null;this.Nq=new mw.Dq(16);this.rg=new mw.Dq(573);Fw(this.rg);this.cA=this.Br=0;this.depth=new mw.Dq(573);Fw(this.depth);this.oi=this.mj=this.Bh=this.matches=this.cC=this.Qr=this.MD=this.Bm=this.pF=this.rQ=0};
  1489. Dla=function(a,b){if(!a||!a.state||5<b||0>b)return a?Ew(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.lj||666===c.status&&4!==b)return Ew(a,0===a.Ie?-5:-2);c.ye=a;var d=c.AA;c.AA=b;if(42===c.status)if(2===c.wrap)a.Ud=0,Kw(c,31),Kw(c,139),Kw(c,8),c.Nd?(Kw(c,(c.Nd.text?1:0)+(c.Nd.Nt?2:0)+(c.Nd.extra?4:0)+(c.Nd.name?8:0)+(c.Nd.comment?16:0)),Kw(c,c.Nd.time&255),Kw(c,c.Nd.time>>8&255),Kw(c,c.Nd.time>>16&255),Kw(c,c.Nd.time>>24&255),Kw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Kw(c,c.Nd.os&
  1490. 255),c.Nd.extra&&c.Nd.extra.length&&(Kw(c,c.Nd.extra.length&255),Kw(c,c.Nd.extra.length>>8&255)),c.Nd.Nt&&(a.Ud=Nw(a.Ud,c.jg,c.pending,0)),c.Jn=0,c.status=69):(Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Kw(c,3),c.status=113);else{var e=8+(c.ST-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Db&&(e|=32);c.status=113;Lw(c,e+(31-e%31));0!==c.Db&&(Lw(c,a.Ud>>>16),Lw(c,a.Ud&65535));a.Ud=1}if(69===c.status)if(c.Nd.extra){for(e=
  1491. c.pending;c.Jn<(c.Nd.extra.length&65535)&&(c.pending!==c.Gm||(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending!==c.Gm));)Kw(c,c.Nd.extra[c.Jn]&255),c.Jn++;c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));c.Jn===c.Nd.extra.length&&(c.Jn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Nd.name){e=c.pending;do{if(c.pending===c.Gm&&(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending===c.Gm)){var f=1;break}f=c.Jn<c.Nd.name.length?
  1492. c.Nd.name.charCodeAt(c.Jn++)&255:0;Kw(c,f)}while(0!==f);c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));0===f&&(c.Jn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Nd.comment){e=c.pending;do{if(c.pending===c.Gm&&(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending===c.Gm)){f=1;break}f=c.Jn<c.Nd.comment.length?c.Nd.comment.charCodeAt(c.Jn++)&255:0;Kw(c,f)}while(0!==f);c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));0===f&&(c.status=103)}else c.status=
  1493. 103;103===c.status&&(c.Nd.Nt?(c.pending+2>c.Gm&&Gw(a),c.pending+2<=c.Gm&&(Kw(c,a.Ud&255),Kw(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(0!==c.pending){if(Gw(a),0===a.Ie)return c.AA=-1,0}else if(0===a.lj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return Ew(a,-5);if(666===c.status&&0!==a.lj)return Ew(a,-5);if(0!==a.lj||0!==c.ac||0!==b&&666!==c.status){d=2===c.strategy?Bla(c,b):3===c.strategy?Ala(c,b):Sw[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Ie&&(c.AA=
  1494. -1),0;if(2===d&&(1===b?(rw(c,2,3),tw(c,256,Hw),16===c.oi?(qw(c,c.mj),c.mj=0,c.oi=0):8<=c.oi&&(c.jg[c.pending++]=c.mj&255,c.mj>>=8,c.oi-=8)):5!==b&&(rw(c,0,3),sla(c,0,0),3===b&&(Fw(c.head),0===c.ac&&(c.Db=0,c.Ok=0,c.Bh=0))),Gw(a),0===a.Ie))return c.AA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(Kw(c,a.Ud&255),Kw(c,a.Ud>>8&255),Kw(c,a.Ud>>16&255),Kw(c,a.Ud>>24&255),Kw(c,a.ly&255),Kw(c,a.ly>>8&255),Kw(c,a.ly>>16&255),Kw(c,a.ly>>24&255)):(Lw(c,a.Ud>>>16),Lw(c,a.Ud&65535));Gw(a);0<c.wrap&&
  1495. (c.wrap=-c.wrap);return 0!==c.pending?0:1};
  1496. Tw=function(a){if(!(this instanceof Tw))return new Tw(a);a=this.options=mw.assign({level:-1,method:8,chunkSize:16384,bv:15,t$:8,strategy:0,to:""},a||{});a.raw&&0<a.bv?a.bv=-a.bv:a.S8&&0<a.bv&&16>a.bv&&(a.bv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new Ela;this.ye.Ie=0;var b=this.ye;var c=a.level,d=a.method,e=a.bv,f=a.t$,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=Ew(b,-2);else{8===e&&(e=9);var m=
  1497. new Cla;b.state=m;m.ye=b;m.wrap=l;m.Nd=null;m.ST=e;m.gj=1<<m.ST;m.Zu=m.gj-1;m.OP=f+7;m.IJ=1<<m.OP;m.yr=m.IJ-1;m.zr=~~((m.OP+3-1)/3);m.window=new mw.yy(2*m.gj);m.head=new mw.Dq(m.IJ);m.gq=new mw.Dq(m.gj);m.pF=1<<f+6;m.Gm=4*m.pF;m.jg=new mw.yy(m.Gm);m.MD=1*m.pF;m.rQ=3*m.pF;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.ly=b.xT=0;b.wO=2;c=b.state;c.pending=0;c.cG=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Ud=2===c.wrap?0:1;c.AA=0;if(!Fla){d=Array(16);for(f=h=0;28>f;f++)for(xw[f]=h,e=0;e<
  1498. 1<<ww[f];e++)vw[h++]=f;vw[h-1]=f;for(f=h=0;16>f;f++)for(Aw[f]=h,e=0;e<1<<zw[f];e++)yw[h++]=f;for(h>>=7;30>f;f++)for(Aw[f]=h<<7,e=0;e<1<<zw[f]-7;e++)yw[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)Hw[2*e+1]=8,e++,d[8]++;for(;255>=e;)Hw[2*e+1]=9,e++,d[9]++;for(;279>=e;)Hw[2*e+1]=7,e++,d[7]++;for(;287>=e;)Hw[2*e+1]=8,e++,d[8]++;pla(Hw,287,d);for(e=0;30>e;e++)Iw[2*e+1]=5,Iw[2*e]=ola(e,5);Gla=new ow(Hw,ww,257,286,15);Hla=new ow(Iw,zw,0,30,15);Ila=new ow([],Jla,0,19,7);Fla=!0}c.aK=new pw(c.Tj,Gla);
  1499. c.HI=new pw(c.gw,Hla);c.FW=new pw(c.Pi,Ila);c.mj=0;c.oi=0;qla(c);c=0}else c=Ew(b,-2);0===c&&(b=b.state,b.V2=2*b.gj,Fw(b.head),b.DQ=Sw[b.level].n$,b.pY=Sw[b.level].Q8,b.h_=Sw[b.level].E$,b.NZ=Sw[b.level].m$,b.Db=0,b.Ok=0,b.ac=0,b.Bh=0,b.Ve=b.jl=2,b.hx=0,b.Ee=0);b=c}}else b=-2;if(0!==b)throw Error(Dw[b]);a.header&&(b=this.ye)&&b.state&&2===b.state.wrap&&(b.state.Nd=a.header);if(a.ND){var n;"string"===typeof a.ND?n=nla(a.ND):"[object ArrayBuffer]"===Kla.call(a.ND)?n=new Uint8Array(a.ND):n=a.ND;a=this.ye;
  1500. f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.ac)b=-2;else{1===b&&(a.Ud=Mw(a.Ud,f,h,0));n.wrap=0;h>=n.gj&&(0===b&&(Fw(n.head),n.Db=0,n.Ok=0,n.Bh=0),c=new mw.yy(n.gj),mw.ez(c,f,h-n.gj,n.gj,0),f=c,h=n.gj);c=a.lj;d=a.nx;e=a.input;a.lj=h;a.nx=0;a.input=f;for(Ow(n);3<=n.ac;){f=n.Db;h=n.ac-2;do n.Ee=(n.Ee<<n.zr^n.window[f+3-1])&n.yr,n.gq[f&n.Zu]=n.head[n.Ee],n.head[n.Ee]=f,f++;while(--h);n.Db=f;n.ac=2;Ow(n)}n.Db+=n.ac;n.Ok=n.Db;n.Bh=n.ac;n.ac=0;n.Ve=n.jl=2;n.hx=0;a.nx=
  1501. d;a.input=e;a.lj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(Dw[b]);this.Rnb=!0}};
  1502. Lla=function(a,b){b=b||{};b.S8=!0;b=new Tw(b);b.push(a,!0);if(b.err)throw b.msg||Dw[b.err];return b.result};
  1503. Mla=function(){var a=g.Ja.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.qa(g.Ja.apply(0,arguments))))}})};
  1504. Nla=function(){var a=g.Ja.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
  1505. c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.qa(g.Ja.apply(1,arguments))))}};
  1506. d=a.map(function(h){return h(f)});
  1507. e=Mla.apply(null,g.qa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
  1508. Uw=function(){return Math.random().toString(36).substring(7).split("").join(".")};
  1509. Ola=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Vw}))throw Error('The slice reducer for key "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Uw()}))throw Error('The slice reducer for key "'+
  1510. b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Vw+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
  1511. Pla=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
  1512. function f(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
  1513. v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
  1514. function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
  1515. if("undefined"===typeof t.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}v=n=p;for(var w=0;w<v.length;w++)(0,v[w])();return t}
  1516. if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
  1517. typeof c+"'");return c(Pla)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:Vw});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:Qla});return r},a[Rla]=function(){var t={};
  1518. return t.subscribe=function(v){function w(){v.next&&v.next(e())}
  1519. if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");w();return{unsubscribe:f(w)}},t[Rla]=function(){return this},t},a);
  1520. return r};
  1521. Sla=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Hba(a):null:null};
  1522. Ww=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?$d(a):null:null};
  1523. Ula=function(a){a=Tla(a);return re(a)};
  1524. g.Xw=function(a){a=Tla(a);return $d(a)};
  1525. Tla=function(a){return null===a?"null":void 0===a?"undefined":a};
  1526. Yw=function(a){this.oa=P(a)};
  1527. Vla=function(a){var b=a.split(""),c=[1648446838,822615768,null,-208482682,-1988322339,2001141950,-870262603,355235806,652023346,b,function(d,e){if(0!=e.length){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
  1528. 298686940,"Qm3iIXG",434511922,b,function(d,e,f,h,l,m,n){return d(l,m,n)},
  1529. -2078188209,function(d,e,f,h,l,m,n,p,q,r,t,v,w){return d(l,m,n,p,q,r,t,v,w)},
  1530. function(d,e,f,h,l,m){return e(h,l,m)},
  1531. null,-1898254277,-187288466,776130817,-1723590387,1715573971,-942881529,function(d,e,f,h,l){return e(f,h,l)},
  1532. function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
  1533. function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
  1534. function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
  1535. function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
  1536. -1024719170,1697927674,",50];c[48]=c;",1410324628,-573764202,function(d,e){0!=e.length&&(d=(d%e.length+e.length)%e.length,e.splice(0,1,e.splice(d,1,e[0])[0]))},
  1537. -1909131782,1858722194,-1480427745,"split",-1044233992,function(d){d.reverse()},
  1538. 2055607090,1069643943,1348569125,1727182015,-111072958,-1186366008,-1183278226,1315794252,923955712,-1734711092,-915175471,2078412301,-1172835939,-1161752629,-1018806098,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
  1539. -90710447,function(d,e,f){var h=f.length;e.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+h--)%f.length])},d.split(""))},
  1540. -967254550,-662420470,-967254550,-80051017,function(d,e,f,h,l,m,n,p){return d(m,n,p)},
  1541. 1639419959,']}],("',-582187326,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
  1542. 477822635,-1348812906,null,-1076589740,1920889645,1573712798,b,-1417486177,1783291214,1584277416,1858722194,1403810043,-2134550888,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
  1543. function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
  1544. function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e}];
  1545. c[2]=c;c[19]=c;c[72]=c;try{try{-10!=c[77]&&(3===c[75]||(((0,c[84])(c[9],c[203-41*Math.pow(2,2)]),(0,c[58])(c[-14440-Math.pow(4,2)- -14532],c[82]),c[84])(c[9],c[31]),(0,c[42])(c[9]),0))&&(0,c[30])((0,c[58])(c[72],c[5]),c[18],(0,c[58])(c[9],c[Math.pow(8,4)+-19656+15563]),c[60],(0,c[36])(c[54],c[14]),c[12],c[14],(0,c[69])()),-1===c[43]&&(((((0,c[83])(c[9],c[-141- -148*Math.pow(1,2)]),c[26])((0,c[60])(c[40],c[14],(0,c[28])()),c[60],c[40],c[76],(0,c[85])()),c[83])(c[19],c[47]),(0,c[60])(c[40],c[new Date("1970-01-01T01:31:16.000+01:30")/
  1546. 1E3],(0,c[28])()),c[58])(c[72],c[8]),{})||(0,c[30])((((0,c[84])(c[14],c[51]),c[36])(c[34],c[14]),c[10])(c[79],c[19])<=(0,c[84])(c[9],c[64]),c[26],(0,c[0])(c[16],c[72]),c[60],c[12],c[14],(0,c[69])()),(-10>=c[66]||((0,c[83])(c[76],c[48]),null))&&(0,c[83])(c[76],c[81]),(7!==c[66]||(((0,c[new Date("1970-01-01T04:45:26.000+04:45")/1E3])((0,c[new Date("1970-01-01T07:15:26.000+07:15")/1E3])((0,c[60])(c[40],c[76],(0,c[27])()),c[83],c[9],c[50]),c[29],c[72]),((0,c[26])((0,c[64458+-103*Math.pow(5,4)])(c[9],
  1547. c[35]),c[60],c[12],c[76],(0,c[27])()),(0,c[83])(c[14],c[24]),(0,c[60])(c[12],c[9],(0,c[27])()),c[71])(c[70],c[19]),c[60])(c[40],c[76],(0,c[27])()),0))&&(0,c[17])(c[15],(0,c[71])(c[20],c[14]),(0,c[84])(c[76],c[44]),(((0,c[71])(c[23],c[2]),c[10])(c[22],c[19]),c[10])(c[21],c[72]),c[84],(0,c[84])(c[76],c[61]),(0,c[58])(c[9],c[36]),(0,c[58])(c[2],c[27]),c[19],c[74])}catch(d){(0,c[69])(c[9],c[85],(0,c[78])())===(0,c[51])(c[28]),(0,c[69])(c[9],c[23],(0,c[8])()),(0,c[38])(c[18])}finally{c[10]===new Date("1970-01-01T08:15:08.000+08:15")/
  1548. 1E3?(0,c[6])(c[new Date("1969-12-31T14:31:21.000-09:30")/1E3],c[41]):(0,c[19])(c[50],c[18])}try{(7===c[new Date("1970-01-01T05:00:56.000+05:00")/1E3]||(((0,c[67])(c[81],c[54]),c[80])(c[28]),((0,c[36])(c[28],c[63]),c[36])(c[52],c[14]),(0,c[53])(c[36],(0,c[48])(c[44],c[24]),(0,c[36])(c[40],c[75]),(0,c[43])(c[29],c[44]),c[60],c[69]),""))&&((((((0,c[16])(c[68],c[6]),c[3240-Math.pow(8,3)+-2718])(c[56]),c[16])(c[44],c[46]),c[28])(c[8],c[68],(0,c[37])()),c[28])(c[8],c[63],(0,c[37])()),c[80])((0,c[16])(c[40],
  1549. c[41]),c[10],c[63])|(0,c[28])(c[8],c[68],(0,c[36])()),0!=c[70]&&(-6>c[58]||((((((0,c[16])(c[40],c[43]),c[16])(c[63],c[55]),(0,c[28])(c[54],c[63],(0,c[49])()),c[28])(c[8],c[63],(0,c[49])()),c[80])((0,c[39])(c[34],c[40]),c[26],c[40],c[27]),c[39])(c[11],c[Math.pow(7,1)+2394+-2333]),void 0))&&(0,c[33])(c[83],(0,c[39])(c[82],c[68]),(0,c[80])((0,c[64])(c[17],c[68]),c[39],c[9682-Math.pow(3,3)-9632],c[73]),(0,c[39])(c[24],c[73]),((0,c[26])(c[68],c[21]),c[28])(c[8],c[63],(0,c[36])()),c[73]),-10<c[26]&&(0,c[5])(((0,c[5])((0,c[21])(c[27],
  1550. c[45]),c[59],c[12],c[40]),c[11])(c[69],c[63]),c[24],c[63],c[30])}catch(d){((0,c[4])(c[24],c[55],(0,c[65])()),(0,c[4])(c[64],c[74],(0,c[82])()),c[54])(c[18],c[331%Math.pow(2,5)- -39])}}catch(d){return"enhanced_except_mJsB5-T-_w8_"+a}return b.join("")};
  1551. g.Zw=function(a){this.name=a};
  1552. $w=function(a){this.oa=P(a)};
  1553. ax=function(a){this.oa=P(a)};
  1554. bx=function(a){this.oa=P(a)};
  1555. cx=function(a){this.oa=P(a)};
  1556. dx=function(a){this.oa=P(a)};
  1557. ex=function(a){this.oa=P(a)};
  1558. fx=function(a){this.oa=P(a)};
  1559. gx=function(a){this.oa=P(a)};
  1560. hx=function(a){this.oa=P(a)};
  1561. ix=function(a){this.oa=P(a)};
  1562. jx=function(a){this.oa=P(a)};
  1563. kx=function(a){this.oa=P(a)};
  1564. lx=function(a){this.oa=P(a)};
  1565. mx=function(a){this.oa=P(a)};
  1566. nx=function(a){this.oa=P(a)};
  1567. ox=function(a){this.oa=P(a)};
  1568. px=function(a){this.oa=P(a)};
  1569. qx=function(a){this.oa=P(a)};
  1570. Wla=function(a){this.oa=P(a)};
  1571. rx=function(a){this.oa=P(a)};
  1572. Xla=function(a){this.oa=P(a)};
  1573. Yla=function(a){this.oa=P(a)};
  1574. Zla=function(a){this.oa=P(a)};
  1575. $la=function(a){this.oa=P(a)};
  1576. sx=function(a){this.oa=P(a)};
  1577. tx=function(a){this.oa=P(a)};
  1578. ama=function(a){this.oa=P(a)};
  1579. bma=function(a){this.oa=P(a)};
  1580. cma=function(a){this.oa=P(a)};
  1581. dma=function(a){this.oa=P(a)};
  1582. ema=function(a){this.oa=P(a)};
  1583. fma=function(a){this.oa=P(a)};
  1584. ux=function(a){this.oa=P(a)};
  1585. gma=function(a){this.oa=P(a)};
  1586. vx=function(a){this.oa=P(a)};
  1587. hma=function(a){this.oa=P(a)};
  1588. ima=function(a){this.oa=P(a)};
  1589. jma=function(a){this.oa=P(a)};
  1590. kma=function(a){this.oa=P(a)};
  1591. lma=function(a){this.oa=P(a)};
  1592. mma=function(a){this.oa=P(a)};
  1593. nma=function(a){this.oa=P(a)};
  1594. oma=function(a){this.oa=P(a)};
  1595. pma=function(a){this.oa=P(a)};
  1596. qma=function(a){this.oa=P(a)};
  1597. wx=function(a){this.oa=P(a)};
  1598. rma=function(a){this.oa=P(a)};
  1599. sma=function(a){this.oa=P(a)};
  1600. xx=function(a){this.oa=P(a)};
  1601. yx=function(a){this.oa=P(a)};
  1602. zx=function(a){this.oa=P(a)};
  1603. Ax=function(a){this.oa=P(a)};
  1604. Bx=function(a){this.oa=P(a)};
  1605. tma=function(a){this.oa=P(a)};
  1606. Cx=function(a){this.oa=P(a)};
  1607. Dx=function(a){this.oa=P(a)};
  1608. uma=function(a){this.oa=P(a)};
  1609. Ex=function(a){this.oa=P(a)};
  1610. Fx=function(a){this.oa=P(a)};
  1611. vma=function(a){this.oa=P(a)};
  1612. Gx=function(a){this.oa=P(a)};
  1613. Hx=function(a){this.oa=P(a)};
  1614. Ix=function(a){this.oa=P(a)};
  1615. wma=function(a){this.oa=P(a)};
  1616. xma=function(a){this.oa=P(a)};
  1617. Jx=function(a){this.oa=P(a)};
  1618. yma=function(a){this.oa=P(a)};
  1619. zma=function(a){this.oa=P(a)};
  1620. Ama=function(a){this.oa=P(a)};
  1621. Bma=function(a){this.oa=P(a)};
  1622. Cma=function(a){this.oa=P(a)};
  1623. Kx=function(a){this.oa=P(a)};
  1624. Dma=function(a){this.oa=P(a)};
  1625. Ema=function(a){this.oa=P(a)};
  1626. Fma=function(a){this.oa=P(a)};
  1627. Lx=function(a){this.oa=P(a)};
  1628. Gma=function(a){this.oa=P(a)};
  1629. Hma=function(a){this.oa=P(a)};
  1630. Ima=function(a){this.oa=P(a)};
  1631. Mx=function(a){this.oa=P(a)};
  1632. Jma=function(a){this.oa=P(a)};
  1633. Nx=function(a){this.oa=P(a)};
  1634. Kma=function(a,b){return Uk(a,1,b)};
  1635. Ox=function(a){this.oa=P(a)};
  1636. Wx=function(a){this.oa=P(a)};
  1637. Xx=function(a){this.oa=P(a)};
  1638. Yx=function(a){this.oa=P(a)};
  1639. Zx=function(a){this.oa=P(a)};
  1640. $x=function(a){this.oa=P(a)};
  1641. Lma=function(a){this.oa=P(a)};
  1642. Mma=function(a){this.oa=P(a)};
  1643. ay=function(a){this.oa=P(a)};
  1644. Nma=function(a){this.oa=P(a)};
  1645. by=function(a){this.oa=P(a)};
  1646. cy=function(a){this.oa=P(a)};
  1647. dy=function(a){this.oa=P(a)};
  1648. ey=function(a){this.oa=P(a)};
  1649. fy=function(a){this.oa=P(a)};
  1650. gy=function(a){this.oa=P(a)};
  1651. hy=function(a){this.oa=P(a)};
  1652. iy=function(a){this.oa=P(a)};
  1653. Oma=function(a){this.oa=P(a)};
  1654. Pma=function(a){this.oa=P(a)};
  1655. Qma=function(a){this.oa=P(a)};
  1656. Rma=function(a){this.oa=P(a)};
  1657. Sma=function(a){this.oa=P(a)};
  1658. jy=function(a){this.oa=P(a)};
  1659. Tma=function(a){this.oa=P(a)};
  1660. Uma=function(a){this.oa=P(a)};
  1661. Vma=function(a){this.oa=P(a)};
  1662. Wma=function(a){this.oa=P(a)};
  1663. ky=function(a){this.oa=P(a)};
  1664. Xma=function(a){this.oa=P(a)};
  1665. Yma=function(a){this.oa=P(a)};
  1666. Zma=function(a){this.oa=P(a)};
  1667. ly=function(a){this.oa=P(a)};
  1668. my=function(a){this.oa=P(a)};
  1669. ny=function(a){this.oa=P(a)};
  1670. oy=function(a){this.oa=P(a)};
  1671. py=function(a){this.oa=P(a)};
  1672. qy=function(a){this.oa=P(a)};
  1673. $ma=function(a){this.oa=P(a)};
  1674. ry=function(a){this.oa=P(a)};
  1675. sy=function(a){this.oa=P(a)};
  1676. ty=function(a){this.oa=P(a)};
  1677. uy=function(a){this.oa=P(a)};
  1678. ana=function(a){this.oa=P(a)};
  1679. vy=function(a){this.oa=P(a)};
  1680. wy=function(a){this.oa=P(a)};
  1681. yy=function(a){this.oa=P(a)};
  1682. bna=function(a){this.oa=P(a)};
  1683. cna=function(a){this.oa=P(a)};
  1684. zy=function(a){this.oa=P(a)};
  1685. Ay=function(a){this.oa=P(a)};
  1686. By=function(a){this.oa=P(a)};
  1687. Cy=function(a){this.oa=P(a)};
  1688. Dy=function(a){this.oa=P(a)};
  1689. Ey=function(a){this.oa=P(a)};
  1690. Fy=function(a){this.oa=P(a)};
  1691. Gy=function(a){this.oa=P(a)};
  1692. dna=function(a){this.oa=P(a)};
  1693. ena=function(a){this.oa=P(a)};
  1694. Hy=function(a){this.oa=P(a)};
  1695. fna=function(a){this.oa=P(a)};
  1696. gna=function(a){this.oa=P(a)};
  1697. hna=function(a){this.oa=P(a)};
  1698. Iy=function(a){this.oa=P(a)};
  1699. ina=function(a){this.oa=P(a)};
  1700. jna=function(a){this.oa=P(a)};
  1701. kna=function(a){this.oa=P(a)};
  1702. Jy=function(a){this.oa=P(a)};
  1703. lna=function(a){this.oa=P(a)};
  1704. Ky=function(a){this.oa=P(a)};
  1705. Ly=function(a){this.oa=P(a)};
  1706. My=function(a){this.oa=P(a)};
  1707. mna=function(a){this.oa=P(a)};
  1708. Ny=function(a){this.oa=P(a)};
  1709. nna=function(a){this.oa=P(a)};
  1710. Oy=function(a){this.oa=P(a)};
  1711. Py=function(a){this.oa=P(a)};
  1712. ona=function(a){this.oa=P(a)};
  1713. Qy=function(a){this.oa=P(a)};
  1714. pna=function(a){this.oa=P(a)};
  1715. Ry=function(a){this.oa=P(a)};
  1716. qna=function(a){this.oa=P(a)};
  1717. rna=function(a){this.oa=P(a)};
  1718. sna=function(a){this.oa=P(a)};
  1719. Sy=function(a){this.oa=P(a)};
  1720. tna=function(a){this.oa=P(a)};
  1721. Ty=function(a){this.oa=P(a)};
  1722. Uy=function(a){this.oa=P(a)};
  1723. Vy=function(a){this.oa=P(a)};
  1724. una=function(a){this.oa=P(a)};
  1725. Wy=function(a){this.oa=P(a)};
  1726. vna=function(a){this.oa=P(a)};
  1727. Xy=function(a){this.oa=P(a)};
  1728. Yy=function(a){this.oa=P(a)};
  1729. Zy=function(a){this.oa=P(a)};
  1730. $y=function(a){this.oa=P(a)};
  1731. g.az=function(a){this.oa=P(a)};
  1732. g.bz=function(a){this.oa=P(a)};
  1733. cz=function(a){this.oa=P(a)};
  1734. dz=function(a){this.oa=P(a)};
  1735. ez=function(a){this.oa=P(a)};
  1736. wna=function(a){this.oa=P(a)};
  1737. fz=function(a){this.oa=P(a)};
  1738. gz=function(a){this.oa=P(a)};
  1739. hz=function(a){this.oa=P(a)};
  1740. xna=function(a){this.oa=P(a)};
  1741. iz=function(a){this.oa=P(a)};
  1742. jz=function(a){this.oa=P(a)};
  1743. kz=function(a){this.oa=P(a)};
  1744. lz=function(a){this.oa=P(a)};
  1745. yna=function(a){this.oa=P(a)};
  1746. mz=function(a){this.oa=P(a)};
  1747. nz=function(a){this.oa=P(a)};
  1748. oz=function(a){this.oa=P(a)};
  1749. pz=function(a){this.oa=P(a)};
  1750. qz=function(a){this.oa=P(a)};
  1751. zna=function(a){this.oa=P(a)};
  1752. rz=function(a){this.oa=P(a)};
  1753. Ana=function(a){this.oa=P(a)};
  1754. sz=function(a){this.oa=P(a)};
  1755. Bna=function(a){this.oa=P(a)};
  1756. Cna=function(a){this.oa=P(a)};
  1757. tz=function(a){this.oa=P(a)};
  1758. uz=function(a){this.oa=P(a)};
  1759. Dna=function(a){this.oa=P(a)};
  1760. vz=function(a){this.oa=P(a)};
  1761. wz=function(a){this.oa=P(a)};
  1762. xz=function(a){this.oa=P(a)};
  1763. Ena=function(a){this.oa=P(a)};
  1764. Fna=function(a){this.oa=P(a)};
  1765. Gna=function(a){this.oa=P(a)};
  1766. Hna=function(a){this.oa=P(a)};
  1767. yz=function(a){this.oa=P(a)};
  1768. zz=function(a){this.oa=P(a)};
  1769. Ina=function(a){this.oa=P(a)};
  1770. Az=function(a){this.oa=P(a)};
  1771. Jna=function(a){this.oa=P(a)};
  1772. Kna=function(a){this.oa=P(a)};
  1773. Lna=function(a){this.oa=P(a)};
  1774. Mna=function(a){this.oa=P(a)};
  1775. Nna=function(a){this.oa=P(a)};
  1776. Bz=function(a){this.oa=P(a)};
  1777. Ona=function(a){this.oa=P(a)};
  1778. Pna=function(a){this.oa=P(a)};
  1779. Qna=function(a){this.oa=P(a)};
  1780. Cz=function(a){this.oa=P(a)};
  1781. Dz=function(a){this.oa=P(a)};
  1782. Rna=function(a){this.oa=P(a)};
  1783. Ez=function(a){this.oa=P(a)};
  1784. Sna=function(a){this.oa=P(a)};
  1785. Tna=function(a){this.oa=P(a)};
  1786. Fz=function(a){this.oa=P(a)};
  1787. Una=function(a){this.oa=P(a)};
  1788. Vna=function(a){this.oa=P(a)};
  1789. Wna=function(a){this.oa=P(a)};
  1790. Xna=function(a){this.oa=P(a)};
  1791. Gz=function(a){this.oa=P(a)};
  1792. Hz=function(a){this.oa=P(a)};
  1793. Iz=function(a){this.oa=P(a)};
  1794. Jz=function(a){this.oa=P(a)};
  1795. Yna=function(a){this.oa=P(a)};
  1796. Zna=function(a){this.oa=P(a)};
  1797. Kz=function(a){this.oa=P(a)};
  1798. $na=function(a){this.oa=P(a)};
  1799. aoa=function(a){this.oa=P(a)};
  1800. boa=function(a){this.oa=P(a)};
  1801. coa=function(a){this.oa=P(a)};
  1802. Lz=function(a){this.oa=P(a)};
  1803. doa=function(a){this.oa=P(a)};
  1804. eoa=function(a){this.oa=P(a)};
  1805. foa=function(a){this.oa=P(a)};
  1806. goa=function(a){this.oa=P(a)};
  1807. hoa=function(a){this.oa=P(a)};
  1808. ioa=function(a){this.oa=P(a)};
  1809. joa=function(a){this.oa=P(a)};
  1810. koa=function(a){this.oa=P(a)};
  1811. loa=function(a){this.oa=P(a)};
  1812. Mz=function(a){this.oa=P(a)};
  1813. moa=function(a){this.oa=P(a)};
  1814. Nz=function(a){this.oa=P(a)};
  1815. Oz=function(a){this.oa=P(a)};
  1816. noa=function(a){this.oa=P(a)};
  1817. ooa=function(a){this.oa=P(a)};
  1818. Pz=function(a){this.oa=P(a)};
  1819. poa=function(a){this.oa=P(a)};
  1820. qoa=function(a){this.oa=P(a)};
  1821. roa=function(a){this.oa=P(a)};
  1822. soa=function(a){this.oa=P(a)};
  1823. toa=function(a){this.oa=P(a)};
  1824. uoa=function(a){this.oa=P(a)};
  1825. voa=function(a){this.oa=P(a)};
  1826. woa=function(a){this.oa=P(a)};
  1827. Qz=function(a){this.oa=P(a)};
  1828. xoa=function(a){this.oa=P(a)};
  1829. yoa=function(a){this.oa=P(a)};
  1830. zoa=function(a){this.oa=P(a)};
  1831. Rz=function(a){this.oa=P(a)};
  1832. Aoa=function(a){this.oa=P(a)};
  1833. Boa=function(a){this.oa=P(a)};
  1834. Sz=function(a){this.oa=P(a)};
  1835. Tz=function(a){this.oa=P(a)};
  1836. Coa=function(a){this.oa=P(a)};
  1837. Doa=function(a){this.oa=P(a)};
  1838. Uz=function(a){this.oa=P(a)};
  1839. Vz=function(a){this.oa=P(a)};
  1840. Eoa=function(a){this.oa=P(a)};
  1841. Wz=function(a){this.oa=P(a)};
  1842. Foa=function(a){this.oa=P(a)};
  1843. Xz=function(a){this.oa=P(a)};
  1844. Goa=function(a){this.oa=P(a)};
  1845. Yz=function(a){this.oa=P(a)};
  1846. Zz=function(a){this.oa=P(a)};
  1847. Hoa=function(a){this.oa=P(a)};
  1848. Ioa=function(a){this.oa=P(a)};
  1849. $z=function(a){this.oa=P(a)};
  1850. Joa=function(a){this.oa=P(a)};
  1851. Koa=function(a){this.oa=P(a)};
  1852. aA=function(a){this.oa=P(a)};
  1853. Loa=function(a){this.oa=P(a)};
  1854. Moa=function(a){this.oa=P(a)};
  1855. Noa=function(a){this.oa=P(a)};
  1856. Ooa=function(a){this.oa=P(a)};
  1857. Poa=function(a){this.oa=P(a)};
  1858. Qoa=function(a){this.oa=P(a)};
  1859. Roa=function(a){this.oa=P(a)};
  1860. Soa=function(a){this.oa=P(a)};
  1861. Toa=function(a){this.oa=P(a)};
  1862. Uoa=function(a){this.oa=P(a)};
  1863. bA=function(a){this.oa=P(a)};
  1864. Voa=function(a){this.oa=P(a)};
  1865. Woa=function(a){this.oa=P(a)};
  1866. cA=function(a){this.oa=P(a)};
  1867. Xoa=function(a){this.oa=P(a)};
  1868. dA=function(a){this.oa=P(a)};
  1869. eA=function(a){this.oa=P(a)};
  1870. Yoa=function(a){this.oa=P(a)};
  1871. Zoa=function(a){this.oa=P(a)};
  1872. fA=function(a){this.oa=P(a)};
  1873. $oa=function(a){this.oa=P(a)};
  1874. apa=function(a,b){Hk(a,Hz,1,b)};
  1875. gA=function(a){this.oa=P(a)};
  1876. bpa=function(a,b){return Hk(a,Hz,1,b)};
  1877. hA=function(a){this.oa=P(a)};
  1878. cpa=function(a,b){return Hk(a,Hz,2,b)};
  1879. iA=function(a){this.oa=P(a)};
  1880. jA=function(a){this.oa=P(a)};
  1881. kA=function(a){this.oa=P(a)};
  1882. lA=function(a){this.oa=P(a)};
  1883. dpa=function(a){this.oa=P(a)};
  1884. mA=function(a){this.oa=P(a)};
  1885. nA=function(a){var b=new mA;return Q(b,1,a)};
  1886. oA=function(a,b){return Q(a,2,b)};
  1887. pA=function(a){this.oa=P(a)};
  1888. epa=function(a){this.oa=P(a)};
  1889. qA=function(a){this.oa=P(a)};
  1890. rA=function(a,b){Kk(a,68,mA,b)};
  1891. fpa=function(a){this.oa=P(a)};
  1892. gpa=function(a){this.oa=P(a)};
  1893. sA=function(a){this.oa=P(a)};
  1894. tA=function(a){this.oa=P(a)};
  1895. uA=function(a){this.oa=P(a)};
  1896. hpa=function(a){this.oa=P(a)};
  1897. vA=function(a){this.oa=P(a)};
  1898. ipa=function(a){this.oa=P(a)};
  1899. jpa=function(a){this.oa=P(a)};
  1900. kpa=function(a){this.oa=P(a)};
  1901. wA=function(a){this.oa=P(a)};
  1902. lpa=function(a){this.oa=P(a)};
  1903. mpa=function(a){this.oa=P(a)};
  1904. npa=function(a){this.oa=P(a)};
  1905. xA=function(a){this.oa=P(a)};
  1906. opa=function(a){this.oa=P(a)};
  1907. ppa=function(a){this.oa=P(a)};
  1908. yA=function(a){this.oa=P(a)};
  1909. zA=function(a){this.oa=P(a)};
  1910. qpa=function(a){this.oa=P(a)};
  1911. AA=function(a){this.oa=P(a)};
  1912. rpa=function(a){this.oa=P(a)};
  1913. spa=function(a){this.oa=P(a)};
  1914. BA=function(a){this.oa=P(a,497)};
  1915. tpa=function(a){this.oa=P(a)};
  1916. CA=function(a){this.oa=P(a)};
  1917. upa=function(a){this.oa=P(a)};
  1918. vpa=function(){return g.Xa("yt.ads.biscotti.lastId_")||""};
  1919. wpa=function(a){g.Va("yt.ads.biscotti.lastId_",a)};
  1920. EA=function(){var a=arguments;1<a.length?DA[a[0]]=a[1]:1===a.length&&Object.assign(DA,a[0])};
  1921. g.FA=function(a,b){return a in DA?DA[a]:b};
  1922. GA=function(a){var b=DA.EXPERIMENT_FLAGS;return b?b[a]:void 0};
  1923. xpa=function(a){HA.forEach(function(b){return b(a)})};
  1924. g.JA=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.IA(b)}}:a};
  1925. g.IA=function(a){var b=g.Xa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.FA("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),EA("ERRORS",b));xpa(a)};
  1926. KA=function(a,b,c,d,e){var f=g.Xa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.FA("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),EA("ERRORS",f))};
  1927. LA=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1===f.length&&f[0]||2===f.length)try{var h=ypa(f[0]||""),l=ypa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Mb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(LA);n.args=[{key:p,value:f[1],query:a,method:zpa===q?"unchanged":q}];Apa.hasOwnProperty(p)||KA(n)}}return c};
  1928. MA=function(a){var b=[];g.Vc(a,function(c,d){var e=g.We(d);g.ac(Array.isArray(c)?c:[c],function(f){""==f?b.push(e):b.push(e+"="+g.We(f))})});
  1929. return b.join("&")};
  1930. NA=function(a){"?"===a.charAt(0)&&(a=a.substring(1));return LA(a,"&")};
  1931. Bpa=function(a){return a.split(",").map(function(b){return NA(b)})};
  1932. g.OA=function(a){return-1!==a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),NA(1<a.length?a[1]:a[0])):{}};
  1933. PA=function(a,b){return Cpa(a,b||{},!0)};
  1934. QA=function(a,b){return Cpa(a,b||{},!1)};
  1935. Cpa=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=NA(e[1]||"");for(var f in b)if(c||!g.ed(e,f))e[f]=b[f];return g.lo(a,e)+d};
  1936. RA=function(a){if(!b)var b=window.location.href;var c=g.eo(1,a),d=g.fo(a);c&&d?(a=a.match(sn),b=b.match(sn),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.fo(b)===d&&(Number(g.eo(4,b))||null)===(Number(g.eo(4,a))||null):!0;return a};
  1937. SA=function(a){a||(a=document.location.href);a=g.eo(1,a);return null!==a&&"https"===a};
  1938. TA=function(a){a=Dpa(a);return null===a?!1:"com"===a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
  1939. Dpa=function(a){a=g.fo(a);return null!==a?a.split(".").reverse():null};
  1940. ypa=function(a){return a&&a.match(Epa)?a:Xe(a)};
  1941. UA=function(a){var b=Fpa;a=void 0===a?vpa():a;var c=Object,d=c.assign,e=Gpa(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var r=f.screenLeft;var t=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var v=f.screen.availWidth;var w=f.screen.availTop}catch(D){}f=[r,t,h,l,v,w,m,n,p,q];h=cia(!1,b.j.top);l={};var A=void 0===A?g.Ta:A;m=new hv;"SVGElement"in A&&"createElementNS"in
  1942. A.document&&m.set(0);n=oha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=Kka(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Rr(b.B),l.wgl=!!Or.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
  1943. Gpa=function(a){var b={};b.dt=Hpa;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Or:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Or.screen)?void 0:f.height;var h;b.u_w=null==(h=Or.screen)?void 0:h.width;var l;b.u_ah=null==(l=Or.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Or.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Or.screen)?void 0:
  1944. n.colorDepth}catch(p){}return b};
  1945. Jpa=function(){if(!Ipa)return null;var a=Ipa();return"open"in a?a:null};
  1946. g.WA=function(a){switch(VA(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
  1947. VA=function(a){return a&&"status"in a?a.status:-1};
  1948. g.XA=function(a,b){"function"===typeof a&&(a=g.JA(a));return window.setTimeout(a,b)};
  1949. g.YA=function(a,b){"function"===typeof a&&(a=g.JA(a));return window.setInterval(a,b)};
  1950. g.ZA=function(a){window.clearTimeout(a)};
  1951. g.$A=function(a){window.clearInterval(a)};
  1952. g.aB=function(a){a=Kpa(a);return"string"===typeof a&&"false"===a?!1:!!a};
  1953. g.bB=function(a,b){a=Kpa(a);return void 0===a&&void 0!==b?b:Number(a||0)};
  1954. Lpa=function(){return g.FA("EXPERIMENTS_TOKEN","")};
  1955. Kpa=function(a){return g.FA("EXPERIMENT_FLAGS",{})[a]};
  1956. Mpa=function(){for(var a=[],b=g.FA("EXPERIMENTS_FORCED_FLAGS",{}),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.FA("EXPERIMENT_FLAGS",{});d=g.u(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&void 0===b[e]&&a.push({key:e,value:String(c[e])});return a};
  1957. Ppa=function(a,b,c,d,e,f,h,l){function m(){4===(n&&"readyState"in n?n.readyState:0)&&b&&g.JA(b)(n)}
  1958. c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=Jpa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.aB("debug_forward_web_query_parameters")&&(a=Npa(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c="POST"===c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Opa(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type",
  1959. "application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){KA(q)}}n.send(d);return n};
  1960. Opa=function(a,b){b=void 0===b?{}:b;var c=RA(a),d=g.aB("web_ajax_ignore_global_headers_if_set"),e;for(e in Qpa){var f=g.FA(Qpa[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.FA("VISITOR_DATA"));!f||!c&&g.fo(a)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.FA("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.fo(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.fo(a)){try{var l=
  1961. (new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.fo(a)||(b["X-YouTube-Ad-Signals"]=MA(UA()));return b};
  1962. Spa=function(a,b){var c=g.fo(a);g.aB("debug_handle_relative_url_for_query_forward_killswitch")||!c&&RA(a)&&(c=document.location.hostname);var d=rn(g.eo(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=NA(b),f={};g.ac(Rpa,function(h){e[h]&&(f[h]=e[h])});
  1963. return QA(a,f)};
  1964. Tpa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.cB(a,b)};
  1965. g.cB=function(a,b){var c=b.format||"JSON";a=Upa(a,b);var d=Vpa(a,b),e=!1,f=Wpa(a,function(m){if(!e){e=!0;l&&g.ZA(l);var n=g.WA(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Xpa(a,c,m,b.convertToSafeHtml);n&&(n=Ypa(c,m,p));p=p||{};q=b.context||g.Ta;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
  1966. d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.XA(function(){e||(e=!0,f.abort(),g.ZA(l),h.call(b.context||g.Ta,f))},d)}return f};
  1967. Upa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.FA("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=PA(a,b);return a};
  1968. Vpa=function(a,b){var c=g.FA("XSRF_FIELD_NAME"),d=g.FA("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.FA("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.fo(a)&&!b.withCredentials&&g.fo(a)!==document.location.hostname||"POST"!==b.method||l&&"application/x-www-form-urlencoded"!==l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.aB("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=NA(e),g.od(e,f),e=b.postBodyFormat&&
  1969. "JSON"===b.postBodyFormat?JSON.stringify(e):g.ko(e));f=e||f&&!g.jd(f);!Zpa&&f&&"POST"!==b.method&&(Zpa=!0,g.IA(Error("AJAX request with postData should use POST")));return e};
  1970. Xpa=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,KA(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?$pa(a):null)e={},g.ac(a.getElementsByTagName("*"),function(h){e[h.tagName]=aqa(h)})}d&&bqa(e);
  1971. return e};
  1972. bqa=function(a){if(g.cb(a))for(var b in a)"html_content"===b||Faa(b,"_html")?a[b]=re(a[b]):bqa(a[b])};
  1973. Ypa=function(a,b,c){if(b&&204===b.status)return!0;switch(a){case "JSON":return!!c;case "XML":return 0===Number(c&&c.return_code);case "RAW":return!0;default:return!!c}};
  1974. $pa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
  1975. aqa=function(a){var b="";g.ac(a.childNodes,function(c){b+=c.nodeValue});
  1976. return b};
  1977. eB=function(a,b){var c=g.md(b),d;return(new g.kg(function(e,f){c.onSuccess=function(h){g.WA(h)?e(new cqa(h)):f(new dB("Request failed, status="+VA(h),"net.badstatus",h))};
  1978. c.onError=function(h){f(new dB("Unknown request error","net.unknown",h))};
  1979. c.onTimeout=function(h){f(new dB("Request timed out","net.timeout",h))};
  1980. d=g.cB(a,c)})).xl(function(e){if(e instanceof qg){var f;
  1981. null==(f=d)||f.abort()}return ng(e)})};
  1982. g.fB=function(a,b,c,d){function e(l,m,n){return l.xl(function(p){if(0>=m||403===VA(p.xhr))return ng(new dB("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(eB(a,b),m-1,q)})})}
  1983. function f(l){return new g.kg(function(m){setTimeout(m,l)})}
  1984. var h=void 0===h?-1:h;return e(eB(a,b),c-1,d)};
  1985. dB=function(a,b,c){xb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
  1986. cqa=function(a){this.xhr=a};
  1987. gB=function(a){this.j=void 0===a?null:a;this.C=0;this.B=null};
  1988. hB=function(a){var b=new gB;a=void 0===a?null:a;b.C=2;b.B=void 0===a?null:a;return b};
  1989. iB=function(a){var b=new gB;a=void 0===a?null:a;b.C=1;b.B=void 0===a?null:a;return b};
  1990. g.lB=function(a,b,c,d,e){jB||kB.set(""+a,b,{uF:c,path:"/",domain:void 0===d?"youtube.com":d,secure:void 0===e?!1:e})};
  1991. g.mB=function(a,b){if(!jB)return kB.get(""+a,b)};
  1992. g.dqa=function(a,b,c){jB||kB.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
  1993. eqa=function(){if(g.aB("embeds_web_enable_cookie_detection_fix")){if(!g.Ta.navigator.cookieEnabled)return!1}else if(!kB.isEnabled())return!1;if(!kB.isEmpty())return!0;g.aB("embeds_web_enable_cookie_detection_fix")?kB.set("TESTCOOKIESENABLED","1",{uF:60,tda:"none",secure:!0}):kB.set("TESTCOOKIESENABLED","1",{uF:60});if("1"!==kB.get("TESTCOOKIESENABLED"))return!1;kB.remove("TESTCOOKIESENABLED");return!0};
  1994. g.V=function(a,b){if(a)return a[b.name]};
  1995. fqa=function(a){var b=g.FA("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(go(a)));return a};
  1996. gqa=function(a,b){var c={};g.aB("web_api_key_killswitch")&&(g.FA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.FA("INNERTUBE_API_KEY")));g.aB("json_condensed_response")&&(c.prettyPrint="false");return a=QA(a,c)};
  1997. hqa=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:RA(a)?"same-origin":"cors",credentials:RA(a)?"same-origin":"include"};b={};for(var d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
  1998. iqa=function(){var a=/Chrome\/(\d+)/.exec(g.oc());return a?parseFloat(a[1]):NaN};
  1999. jqa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.oc());if(!a)return NaN;var b=[];a=g.u(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
  2000. oB=function(){return g.nB("android")&&g.nB("chrome")&&!(g.nB("trident/")||g.nB("edge/"))&&!g.nB("cobalt")};
  2001. kqa=function(){return g.nB("armv7")||g.nB("aarch64")||g.nB("android")};
  2002. g.pB=function(){return g.nB("cobalt")};
  2003. qB=function(){return g.nB("cobalt")&&g.nB("appletv")};
  2004. lqa=function(){return g.nB("(ps3; leanback shell)")||g.nB("ps3")&&g.pB()};
  2005. mqa=function(){return g.nB("(ps4; leanback shell)")||g.nB("ps4")&&g.pB()};
  2006. g.nqa=function(){return g.pB()&&(g.nB("ps4 vr")||g.nB("ps4 pro vr"))};
  2007. rB=function(){var a=/WebKit\/([0-9]+)/.exec(g.oc());return!!(a&&600<=parseInt(a[1],10))};
  2008. oqa=function(){var a=/WebKit\/([0-9]+)/.exec(g.oc());return!!(a&&602<=parseInt(a[1],10))};
  2009. pqa=function(){return g.nB("iemobile")||g.nB("windows phone")&&g.nB("edge")};
  2010. qqa=function(){return(sB||tB)&&g.nB("applewebkit")&&!g.nB("version")&&(!g.nB("safari")||g.nB("gsa/"))};
  2011. vB=function(){return g.uB&&g.nB("version/")};
  2012. rqa=function(){return g.nB("smart-tv")&&g.nB("samsung")};
  2013. g.nB=function(a){var b=g.oc();return b?0<=b.toLowerCase().indexOf(a):!1};
  2014. sqa=function(){return ffa()||qqa()||vB()?!0:g.FA("EOM_VISITOR_DATA")?!1:!0};
  2015. wB=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
  2016. xB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
  2017. yB=function(a,b){return void 0===b||null===b?a:Number(b)};
  2018. zB=function(a,b){return void 0===b||null===b?a:b.toString()};
  2019. uqa=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(tqa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
  2020. AB=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
  2021. wqa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===vqa(a,!1)};
  2022. g.FB=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
  2023. vqa=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?xB(b,c.embeddedPlayerMode,xqa):b};
  2024. yqa=function(a){xb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof GB;this.isTimeout=a instanceof dB&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof qg};
  2025. GB=function(){xb.call(this,"Biscotti ID is missing from server")};
  2026. zqa=function(){if(g.aB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!sqa())return Error("User has not consented - not fetching biscotti id.");var a=g.FA("PLAYER_VARS",{});if("1"==g.kd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(wqa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
  2027. Dqa=function(){var a=zqa();if(void 0!==a)return ng(a);HB||(HB=eB("//googleads.g.doubleclick.net/pagead/id",Aqa).then(Bqa).xl(function(b){return Cqa(2,b)}));
  2028. return HB};
  2029. Bqa=function(a){a=a.xhr.responseText;if(!dc(a,")]}'"))throw new GB;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new GB;a=a.id;wpa(a);HB=iB(a);Eqa(18E5,2);return a};
  2030. Cqa=function(a,b){b=new yqa(b);wpa("");HB=hB(b);0<a&&Eqa(12E4,a-1);throw b;};
  2031. Eqa=function(a,b){g.XA(function(){eB("//googleads.g.doubleclick.net/pagead/id",Aqa).then(Bqa,function(c){return Cqa(b,c)}).xl(g.Hd)},a)};
  2032. Fqa=function(){try{var a=g.Xa("yt.ads.biscotti.getId_");return a?a():Dqa()}catch(b){return ng(b)}};
  2033. Hqa=function(a){a&&(a.dataset?a.dataset[Gqa()]="true":Nba(a))};
  2034. Iqa=function(a){return a?a.dataset?a.dataset[Gqa()]:a.getAttribute("data-loaded"):null};
  2035. Gqa=function(){return Jqa.loaded||(Jqa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
  2036. Lqa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Kqa+"VisibilityState";if(b in a)return a[b]};
  2037. IB=function(a,b){var c;Ys(a,function(d){c=b[d];return!!c});
  2038. return c};
  2039. Mqa=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
  2040. LB=function(a){var b;g.JB()?KB()==a&&(b=document):b=a;return b&&(a=IB(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
  2041. Nqa=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
  2042. Oqa=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
  2043. g.JB=function(){return!!IB(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
  2044. KB=function(a){a=void 0===a?!1:a;var b=IB(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
  2045. MB=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Pqa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
  2046. if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}};
  2047. Qqa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
  2048. Rqa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return id(NB,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.cb(e[4])&&g.cb(d)&&g.ld(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
  2049. g.OB=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Rqa(a,b,c,d);if(e)return e;e=++Sqa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new MB(l);if(!Tf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new MB(l);
  2050. l.currentTarget=a;return c.call(a,l)};
  2051. h=g.JA(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Tqa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);NB[e]=[a,b,c,h,d];return e};
  2052. Vqa=function(a){return Uqa(a,function(b){return g.Ev(b,"ytp-ad-has-logging-urls")})};
  2053. Uqa=function(a,b){var c=document.body||document;return g.OB(c,"click",function(d){var e=Tf(d.target,function(f){return f===c||b(f)},!0);
  2054. e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
  2055. g.PB=function(a){a&&("string"==typeof a&&(a=[a]),g.ac(a,function(b){if(b in NB){var c=NB[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Tqa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete NB[b]}}))};
  2056. Wqa=function(a){for(var b in NB)NB[b][0]==a&&g.PB(b)};
  2057. QB=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
  2058. RB=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.ra=g.OB(window,"mousemove",(0,g.gb)(this.Y,this));this.Z=g.YA((0,g.gb)(this.qa,this),25)};
  2059. SB=function(a){g.I.call(this);this.N=[];this.rb=a||this};
  2060. TB=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
  2061. g.UB=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&Xqa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
  2062. VB=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.md(b);this.assets=a.assets||{};this.attrs=a.attrs||g.md(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
  2063. Yqa=function(a){a instanceof VB||(a=new VB(a));return a};
  2064. g.XB=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.WB)():Zqa())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
  2065. g.YB=function(a){var b=Zqa(),c=(0,g.WB)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
  2066. $qa=function(){var a=(0,g.WB)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
  2067. g.ZB=function(a){try{var b=Zqa(),c=(0,g.WB)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
  2068. g.$B=function(){return g.YB("yt-remote-session-screen-id")};
  2069. ira=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
  2070. a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
  2071. jra=function(){if(!g.Ta.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ta.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ta.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ta.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ta.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
  2072. aC=function(){this.O1=!0};
  2073. kra=function(){aC.instance||(aC.instance=new aC);return aC.instance};
  2074. lra=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
  2075. mra=function(){this.j=g.FA("ALT_PREF_COOKIE_NAME","PREF");this.B=g.FA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.mB(this.j);a&&this.parse(a)};
  2076. g.bC=function(){nra||(nra=new mra);return nra};
  2077. g.cC=function(a,b){return!!((ora("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
  2078. pra=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=ora(c)||0;d=b?d|a:d&~a;0===d?delete dC[c]:(b=d.toString(16),dC[c]=b.toString())};
  2079. qra=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
  2080. rra=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
  2081. ora=function(a){a=void 0!==dC[a]?dC[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
  2082. sra=function(){var a=g.Ta.navigator;return a?a.connection:void 0};
  2083. ura=function(){var a=sra();if(a){var b=tra[a.type||"unknown"]||"CONN_UNKNOWN";a=tra[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
  2084. wra=function(){var a=sra();if(null!=a&&a.effectiveType)return vra.hasOwnProperty(a.effectiveType)?vra[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
  2085. g.eC=function(a){var b=g.Ja.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.qa(b))};
  2086. g.gC=function(){try{return g.fC(),!0}catch(a){return!1}};
  2087. g.fC=function(a){if(void 0!==g.FA("DATASYNC_ID"))return g.FA("DATASYNC_ID");throw new g.eC("Datasync ID not set",void 0===a?"unknown":a);};
  2088. hC=function(){this.j=new WeakMap};
  2089. g.jC=function(a,b,c){return iC(b,0,c)};
  2090. xra=function(a){var b=g.Xa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
  2091. kC=function(){hC.apply(this,arguments)};
  2092. g.lC=function(){kC.instance||(kC.instance=new kC);return kC.instance};
  2093. g.mC=function(){return!!g.Xa("yt.scheduler.instance")};
  2094. iC=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Xa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.XA(a,c||0)};
  2095. nC=function(a,b){(a=g.Xa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
  2096. oC=function(a){this.j=(a=g.hw(a))?new aw(a):null;this.B=document.domain||window.location.hostname};
  2097. zra=function(){var a;return null==(a=yra())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
  2098. Cra=function(){var a={};for(pC=new Ara(void 0===a.handleError?Bra:a.handleError,void 0===a.logEvent?g.qC:a.logEvent);0<rC.length;)switch(a=rC.shift(),a.type){case "ERROR":pC.Vp(a.payload);break;case "EVENT":pC.logEvent(a.eventType,a.payload)}};
  2099. tC=function(a){sC||(pC?pC.Vp(a):(rC.push({type:"ERROR",payload:a}),10<rC.length&&rC.shift()))};
  2100. uC=function(a,b){sC||(pC?pC.logEvent(a,b):(rC.push({type:"EVENT",eventType:a,payload:b}),10<rC.length&&rC.shift()))};
  2101. vC=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
  2102. wC=function(a){return a.substr(0,a.indexOf(":"))||a};
  2103. g.xC=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Dra[a]:c;d=void 0===d?Era[a]:d;e=void 0===e?Fra[a]:e;g.eC.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.xC.prototype)};
  2104. Gra=function(a,b){g.xC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Dra.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Gra.prototype)};
  2105. yC=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,yC.prototype)};
  2106. Ira=function(a,b,c,d){b=wC(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.xC)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.xC("QUOTA_EXCEEDED",a);if(g.zC&&"UnknownError"===e.name)return new g.xC("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof yC)return new g.xC("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Hra.some(function(f){return e.message.includes(f)}))return new g.xC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
  2107. a);
  2108. if("AbortError"===e.name)return new g.xC("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",WK:e.name})];e.level="WARNING";return e};
  2109. g.AC=function(a,b,c){var d=zra();return new g.xC("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
  2110. Jra=function(a){if(!a)throw Error();throw a;};
  2111. Kra=function(a){return a};
  2112. BC=function(a){this.j=a};
  2113. g.CC=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
  2114. function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.u(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
  2115. var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
  2116. Mra=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.CC?Lra(a,b,f,d,e):d(f)}catch(h){e(h)}};
  2117. Nra=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.CC?Lra(a,b,f,d,e):d(f)}catch(h){e(h)}};
  2118. Lra=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.CC?Lra(a,b,f,d,e):d(f)},function(f){e(f)})};
  2119. Ora=function(a,b,c){function d(){c(a.error);f()}
  2120. function e(){b(a.result);f()}
  2121. function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
  2122. a.addEventListener("success",e);a.addEventListener("error",d)};
  2123. Pra=function(a){return new Promise(function(b,c){Ora(a,b,c)})};
  2124. DC=function(a){return new g.CC(new BC(function(b,c){Ora(a,b,c)}))};
  2125. Qra=function(a,b){return new g.CC(new BC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
  2126. e()}))};
  2127. Rra=function(a,b){this.request=a;this.cursor=b};
  2128. Sra=function(a){return DC(a).then(function(b){return b?new Rra(a,b):null})};
  2129. g.Tra=function(a){a.cursor.continue(void 0);return Sra(a.request)};
  2130. Ura=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.EC)());this.B=!1};
  2131. g.FC=function(a,b,c){a=a.j.createObjectStore(b,c);return new Vra(a)};
  2132. GC=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
  2133. g.JC=function(a,b,c){return g.HC(a,[b],{mode:"readwrite",Pb:!0},function(d){return g.IC(d.objectStore(b),c)})};
  2134. g.HC=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){switch(A.j){case 1:var D={mode:"readonly",Pb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Pb?3:1;h=0;case 2:if(l){A.Ia(4);break}h++;m=Math.round((0,g.EC)());g.Ba(A,5);n=a.j.transaction(b,e.mode);D=new KC(n);D=Wra(D,d);return g.z(A,D,7);case 7:return p=A.B,q=Math.round((0,g.EC)()),Xra(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.EC)());
  2135. v=Ira(r,a.j.name,b.join(),a.j.version);if((w=v instanceof g.xC&&!v.j)||h>=f)Xra(a,m,t,h,v,b.join(),e),l=v;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})};
  2136. Xra=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.xC&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&uC("QUOTA_EXCEEDED",{dbName:wC(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.xC&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),uC("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Yra(a,!1,d,f,b,h.tag),tC(e)):Yra(a,!0,d,
  2137. f,b,h.tag)};
  2138. Yra=function(a,b,c,d,e,f){uC("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
  2139. Vra=function(a){this.j=a};
  2140. g.LC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
  2141. Zra=function(a,b){return g.MC(a,{query:b},function(c){return c.delete().then(function(){return g.NC(c)})}).then(function(){})};
  2142. $ra=function(a,b,c){var d=[];return g.MC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.NC(e)}).then(function(){return d})};
  2143. bsa=function(a){return"getAllKeys"in IDBObjectStore.prototype?DC(a.j.getAllKeys(void 0,void 0)):asa(a)};
  2144. asa=function(a){var b=[];return g.csa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Tra(c)}).then(function(){return b})};
  2145. g.IC=function(a,b,c){return DC(a.j.put(b,c))};
  2146. g.MC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return dsa(a).then(function(d){return Qra(d,c)})};
  2147. g.csa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return Sra(a).then(function(e){return Qra(e,c)})};
  2148. KC=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
  2149. b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
  2150. b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.xC;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
  2151. Wra=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
  2152. return Promise.all([c,a.done]).then(function(d){return g.u(d).next().value})};
  2153. esa=function(a){this.j=a};
  2154. fsa=function(a,b,c){var d=[];return g.OC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.NC(e)}).then(function(){return d})};
  2155. g.OC=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return dsa(a).then(function(d){return Qra(d,c)})};
  2156. PC=function(a,b){this.request=a;this.cursor=b};
  2157. dsa=function(a){return DC(a).then(function(b){return b?new PC(a,b):null})};
  2158. g.NC=function(a){a.cursor.continue(void 0);return dsa(a.request)};
  2159. gsa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Ura(h.result,{closed:q}));return r}
  2160. var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.eea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&uC("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:wC(a)});var v=f(),w=new KC(h.transaction);
  2161. p&&p(v,function(A){return t.oldVersion<A&&t.newVersion>=A},w);
  2162. w.done.catch(function(A){e(A)})}catch(A){e(A)}});
  2163. h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
  2164. t.addEventListener("close",function(){uC("IDB_UNEXPECTEDLY_CLOSED",{dbName:wC(a),dbVersion:t.version});n&&n()});
  2165. d(f())});
  2166. h.addEventListener("error",function(){e(h.error)});
  2167. l&&h.addEventListener("blocked",function(){l()})})};
  2168. hsa=function(a,b,c){c=void 0===c?{}:c;return gsa(a,b,c)};
  2169. QC=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.G(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Pra(c),4);
  2170. if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw Ira(f,a,"",-1);})};
  2171. RC=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
  2172. isa=function(a,b){return new g.xC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
  2173. g.SC=function(a,b){if(!b)throw g.AC("openWithToken",wC(a.name));return a.open()};
  2174. ksa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,g.SC(jsa,b),2);c=d.B;return d.return(g.HC(c,["databases"],{Pb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.IC(f,a).then(function(){})})}))})};
  2175. TC=function(a,b){var c;return g.G(function(d){if(1==d.j)return a?g.z(d,g.SC(jsa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
  2176. lsa=function(a,b){var c,d;return g.G(function(e){return 1==e.j?(c=[],g.z(e,g.SC(jsa,b),2)):3!=e.j?(d=e.B,g.z(e,g.HC(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.MC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.NC(h)})}),3)):e.return(c)})};
  2177. msa=function(a,b){return lsa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
  2178. osa=function(){var a,b,c,d;return g.G(function(e){switch(e.j){case 1:a=zra();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(UC&&rB()&&!oqa()||g.VC)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
  2179. return g.z(e,ksa(d,nsa),4);case 4:return g.z(e,TC("yt-idb-test-do-not-use",nsa),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
  2180. qsa=function(){if(void 0!==psa)return psa;sC=!0;return psa=osa().then(function(a){sC=!1;var b;if(null!=(b=yra())&&b.j){var c;b={hasSucceededOnce:(null==(c=zra())?void 0:c.hasSucceededOnce)||a};var d;null==(d=yra())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
  2181. WC=function(){return g.Xa("ytglobal.idbToken_")||void 0};
  2182. g.XC=function(){var a=WC();return a?Promise.resolve(a):qsa().then(function(b){(b=b?nsa:void 0)&&g.Va("ytglobal.idbToken_",b);return b})};
  2183. rsa=function(a){if(!g.gC())throw a=new g.xC("AUTH_INVALID",{dbName:a}),tC(a),a;var b=g.fC();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
  2184. ssa=function(a,b,c,d){var e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.XC(),2);case 2:h=p.B;if(!h)throw l=g.AC("openDbImpl",a,b),g.aB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),tC(l),l;vC(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:rsa(a);g.Ba(p,3);return g.z(p,ksa(m,h),5);case 5:return g.z(p,hsa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,TC(m.actualName,
  2185. h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
  2186. tsa=function(a,b,c){c=void 0===c?{}:c;return ssa(a,b,!1,c)};
  2187. usa=function(a,b,c){c=void 0===c?{}:c;return ssa(a,b,!0,c)};
  2188. vsa=function(a,b){b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.XC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vC(a);d=rsa(a);return g.z(e,QC(d.actualName,b),3)}return g.z(e,TC(d.actualName,c),0)})};
  2189. wsa=function(a,b,c){a=a.map(function(d){return g.G(function(e){return 1==e.j?g.z(e,QC(d.actualName,b),2):g.z(e,TC(d.actualName,c),0)})});
  2190. return Promise.all(a).then(function(){})};
  2191. xsa=function(a){var b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.XC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vC(a);return g.z(e,msa(a,c),3)}d=e.B;return g.z(e,wsa(d,b,c),0)})};
  2192. ysa=function(a,b){b=void 0===b?{}:b;var c;return g.G(function(d){if(1==d.j)return g.z(d,g.XC(),2);if(3!=d.j){c=d.B;if(!c)return d.return();vC(a);return g.z(d,QC(a,b),3)}return g.z(d,TC(a,c),0)})};
  2193. YC=function(a,b){RC.call(this,a,b);this.options=b;vC(a)};
  2194. zsa=function(a,b){var c;return function(){c||(c=new YC(a,b));return c}};
  2195. g.ZC=function(a,b){return zsa(a,b)};
  2196. $C=function(a){return g.SC(Asa(),a)};
  2197. Bsa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.EC)()},g.z(l,$C(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.JC(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
  2198. Csa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.EC)()},g.z(m,$C(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.JC(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
  2199. Dsa=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,$C(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.HC(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.OC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
  2200. Esa=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,$C(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.HC(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.OC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
  2201. Fsa=function(){return g.G(function(a){return g.z(a,xsa("ytGcfConfig"),0)})};
  2202. Gsa=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Xa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.qa(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))};
  2203. eD=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Gsa;this.qd={Lpb:function(){a.G=!0},
  2204. Pob:function(){return a.j},
  2205. Pqb:function(b){aD(a,b)},
  2206. Yr:function(b){a.Yr(b)},
  2207. Jqb:function(b){Hsa(a,b)},
  2208. n8:function(){return a.coldHashData},
  2209. v8:function(){return a.hotHashData},
  2210. gpb:function(){return a.B},
  2211. Yob:function(){return bD()},
  2212. apb:function(){return cD()},
  2213. Zob:function(){return g.Xa("yt.gcf.config.coldHashData")},
  2214. bpb:function(){return g.Xa("yt.gcf.config.hotHashData")},
  2215. frb:function(){Isa(a)},
  2216. Dqb:function(){a.Yr(void 0);dD(a);delete eD.instance},
  2217. Mqb:function(b){a.C=b},
  2218. Uob:function(){return a.C}}};
  2219. Jsa=function(){if(!eD.instance){var a=new eD;eD.instance=a}return eD.instance};
  2220. Msa=function(a){var b;g.G(function(c){if(1==c.j)return g.aB("start_client_gcf")||g.aB("delete_gcf_config_db")?g.aB("start_client_gcf")?g.z(c,g.XC(),3):c.Ia(2):c.return();2!=c.j&&((b=c.B)&&g.gC()&&!g.aB("delete_gcf_config_db")?(a.G=!0,Isa(a)):(Ksa(a),Lsa(a)));return g.aB("delete_gcf_config_db")?g.z(c,Fsa(),0):c.Ia(0)})};
  2221. fD=function(){var a;return null!=(a=cD())?a:g.FA("RAW_HOT_CONFIG_GROUP")};
  2222. Nsa=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.B)return l.return(cD());if(!a.G)return b=g.AC("getHotConfig IDB not initialized"),KA(b),l.return(Promise.reject(b));c=WC();d=g.FA("TIME_CREATED_MS");if(!c){e=g.AC("getHotConfig token error");KA(e);l.Ia(2);break}return g.z(l,Esa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return aD(a,f.config),a.Yr(f.hashData),l.return(cD());case 2:Lsa(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.z(l,Bsa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
  2223. l.return(cD()):(h=new g.eC("Config not available in ytConfig"),KA(h),l.return(Promise.reject(h)))}})};
  2224. Psa=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j)return l.return(bD());if(!a.G)return b=g.AC("getColdConfig IDB not initialized"),KA(b),l.return(Promise.reject(b));c=WC();d=g.FA("TIME_CREATED_MS");if(!c){e=g.AC("getColdConfig");KA(e);l.Ia(2);break}return g.z(l,Dsa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Hsa(a,f.config),Osa(a,f.configData),dD(a,f.hashData),l.return(bD());case 2:Ksa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.z(l,Csa(a.j,
  2225. a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(bD()):(h=new g.eC("Config not available in ytConfig"),KA(h),l.return(Promise.reject(h)))}})};
  2226. Isa=function(a){if(!a.B||!a.j){if(!WC()){var b=g.AC("scheduleGetConfigs");KA(b)}a.D||(a.D=g.gv.Ni(function(){return g.G(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,Nsa(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Psa(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}};
  2227. Qsa=function(a,b,c){var d,e,f;return g.G(function(h){switch(h.j){case 1:if(!g.aB("start_client_gcf")){h.Ia(0);break}c&&aD(a,c);a.Yr(b);d=WC();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.z(h,Esa(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Bsa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
  2228. Rsa=function(a,b,c){var d,e,f,h;return g.G(function(l){if(1==l.j){if(!g.aB("start_client_gcf"))return l.Ia(0);dD(a,b);return(d=WC())?c?l.Ia(4):g.z(l,Dsa(d),5):l.Ia(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.z(l,Csa(c,b,h,d),0)})};
  2229. Ssa=function(){var a=Jsa(),b=(0,g.EC)()-a.C;if(!(0!==a.C&&b<g.bB("send_config_hash_timer"))){b=g.Xa("yt.gcf.config.coldConfigData");var c=g.Xa("yt.gcf.config.hotHashData"),d=g.Xa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.EC)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
  2230. Ksa=function(a){Hsa(a,g.FA("RAW_COLD_CONFIG_GROUP"));dD(a,g.FA("SERIALIZED_COLD_HASH_DATA"));var b;Osa(a,null==(b=a.j)?void 0:b.configData)};
  2231. Lsa=function(a){aD(a,g.FA("RAW_HOT_CONFIG_GROUP"));a.Yr(g.FA("SERIALIZED_HOT_HASH_DATA"))};
  2232. aD=function(a,b){a.B=b;g.Va("yt.gcf.config.hotConfigGroup",a.B||null)};
  2233. Hsa=function(a,b){a.j=b;g.Va("yt.gcf.config.coldConfigGroup",a.j||null)};
  2234. dD=function(a,b){a.coldHashData=b;g.Va("yt.gcf.config.coldHashData",a.coldHashData||null)};
  2235. Osa=function(a,b){a.configData=b;g.Va("yt.gcf.config.coldConfigData",a.configData||null)};
  2236. cD=function(){return g.Xa("yt.gcf.config.hotConfigGroup")};
  2237. bD=function(){return g.Xa("yt.gcf.config.coldConfigGroup")};
  2238. Tsa=function(){return"INNERTUBE_API_KEY"in DA&&"INNERTUBE_API_VERSION"in DA};
  2239. g.gD=function(){return{innertubeApiKey:g.FA("INNERTUBE_API_KEY"),innertubeApiVersion:g.FA("INNERTUBE_API_VERSION"),RJ:g.FA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),XP:g.FA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),WY:g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.FA("INNERTUBE_CONTEXT_CLIENT_VERSION"),ZP:g.FA("INNERTUBE_CONTEXT_HL"),YP:g.FA("INNERTUBE_CONTEXT_GL"),XY:g.FA("INNERTUBE_HOST_OVERRIDE")||"",YY:!!g.FA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),aQ:!!g.FA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
  2240. !1),appInstallData:g.FA("SERIALIZED_CLIENT_CONFIG_DATA")}};
  2241. g.$sa=function(a){var b={client:{hl:a.ZP,gl:a.YP,clientName:a.XP,clientVersion:a.innertubeContextClientVersion,configInfo:a.RJ}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ta.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Lpa();""!==c&&(b.client.experimentsToken=c);c=Mpa();0<c.length&&(b.request={internalExperimentFlags:c});Usa(a,void 0,b);Vsa(void 0,b);Wsa(void 0,b);Xsa(a,void 0,b);Ysa(void 0,b);g.aB("start_client_gcf")&&Zsa(void 0,b);g.FA("DELEGATED_SESSION_ID")&&
  2242. !g.aB("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.FA("DELEGATED_SESSION_ID")});!g.aB("fill_delegate_context_in_gel_killswitch")&&(a=g.FA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.u(Object.entries(NA(g.FA("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===
  2243. h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
  2244. Usa=function(a,b,c){a=a.XP;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.Gk(b,ay,96)||new ay;var d=jra();d=Object.keys(ata).indexOf(d);d=-1===d?null:d;null!==d&&S(c,3,d);Hk(b,ay,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=jra())};
  2245. Vsa=function(a,b){var c=g.Xa("yt.embedded_player.embed_url");c&&(a?(b=g.Gk(a,ey,7)||new ey,Q(b,4,c),Hk(a,ey,7,b)):b&&(b.thirdParty={embedUrl:c}))};
  2246. Wsa=function(a,b){var c;if(g.aB("web_log_memory_total_kbytes")&&(null==(c=g.Ta.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Ta.navigator)?void 0:d.deviceMemory;a?Tj(a,95,Mi(1E6*c)):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
  2247. Xsa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.Gk(b,Zx,62))?d:new Zx;Q(c,6,a.appInstallData);Hk(b,Zx,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
  2248. Ysa=function(a,b){var c=ura();c&&(a?S(a,61,bta[c]):b&&(b.client.connectionType=c));g.aB("web_log_effective_connection_type")&&(c=wra())&&(a?S(a,94,cta[c]):b&&(b.client.effectiveConnectionType=c))};
  2249. dta=function(a,b,c){c=void 0===c?{}:c;var d={};g.FA("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.FA("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.FA("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.uW||g.FA("AUTHORIZATION");b||(a?b="Bearer "+g.Xa("gapi.auth.getToken")().access_token:(a=kra().jE(hD),g.aB("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
  2250. Zsa=function(a,b){var c=Ssa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=null!=(f=g.Gk(a,Zx,62))?f:new Zx;d=Q(b,1,d);Q(d,3,e).Yr(c);Hk(a,Zx,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}};
  2251. iD=function(a,b){this.version=a;this.args=b};
  2252. jD=function(a,b){this.topic=a;this.j=b};
  2253. kD=function(a,b){var c=eta();c&&c.publish.call(c,a.toString(),a,b)};
  2254. gta=function(a,b){var c=eta();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Xa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(lD[d])try{if(f&&a instanceof jD&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Yu){var n=new l;l.Yu=n.version}var p=l.Yu}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
  2255. g.Lb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.IA(q)}},fta[a.toString()]?g.mC()?g.gv.Ni(h):g.XA(h,0):h())});
  2256. lD[d]=!0;mD[a.toString()]||(mD[a.toString()]=[]);mD[a.toString()].push(d);return d};
  2257. ita=function(a,b){var c=gta(a,function(d){b.apply(void 0,arguments);hta(c)});
  2258. return c};
  2259. hta=function(a){var b=eta();b&&("number"===typeof a&&(a=[a]),g.ac(a,function(c){b.unsubscribeByKey(c);delete lD[c]}))};
  2260. eta=function(){return g.Xa("ytPubsub2Pubsub2Instance")};
  2261. jta=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&kD("meta_logging_csi_event",{timerName:a,drb:b})};
  2262. lta=function(){kta||(kta=Ww(g.FA("WORKER_SERIALIZATION_URL")));return kta||void 0};
  2263. nD=function(){var a=lta();mta||void 0===a||(mta=new Worker(g.Xd(a),void 0));return mta};
  2264. nta=function(){return"function"===typeof Worker&&lta()?!0:!1};
  2265. qta=function(){if(nta()&&!ota){var a=function(c){c=c.data;if("gzippedGelBatch"===c.op){var d=oD.get(c.key);d&&(pta(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),oD.delete(c.key))}},b=nD();
  2266. b&&(b.addEventListener("message",a),b.onerror=function(){oD.clear()},ota=!0)}};
  2267. qD=function(a,b,c,d,e){e=void 0===e?!1:e;var f={startTime:(0,g.EC)(),ticks:{},infos:{}};if(pD)try{var h=rta(b);if(null!=h&&(h>sta||h<tta))d(a,c);else{if(g.aB("gzip_gel_with_worker")&&(g.aB("initial_gzip_use_main_thread")&&!uta||!g.aB("initial_gzip_use_main_thread"))){ota||qta();var l=nD();if(l&&!e){oD.set(vta,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:vta});vta++;return}}var m=Lla(wta(b));pta(m,f,a,c,d)}}catch(n){KA(n),d(a,c)}else d(a,c)};
  2268. pta=function(a,b,c,d,e){uta=!1;var f=(0,g.EC)();b.ticks.gelc=f;rD++;g.aB("disable_compression_due_to_performance_degredation")&&f-b.startTime>=xta&&(sD++,g.aB("abandon_compression_after_N_slow_zips")?rD===g.bB("compression_disable_point")&&sD>yta&&(pD=!1):pD=!1);zta(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
  2269. Ata=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.EC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Xa("yt.logging.gzipForFetch",!1):!0;if(pD&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=rta(h);if(null!=l&&(l>sta||l<tta))return a;c=b?{level:1}:void 0;f=Lla(wta(h),c);var m=(0,g.EC)();e.ticks.gelc=m;if(b){rD++;if((g.aB("disable_compression_due_to_performance_degredation")||g.aB("disable_compression_due_to_performance_degradation_lr"))&&
  2270. m-d>=xta)if(sD++,g.aB("abandon_compression_after_N_slow_zips")||g.aB("abandon_compression_after_N_slow_zips_lr")){b=sD/rD;var n=yta/g.bB("compression_disable_point");0<rD&&0===rD%g.bB("compression_disable_point")&&b>=n&&(pD=!1)}else pD=!1;zta(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return KA(p),a}}else return a};
  2271. rta=function(a){try{return(new Blob(a.split(""))).size}catch(b){return KA(b),null}};
  2272. zta=function(a){g.aB("gel_compression_csi_killswitch")||!g.aB("log_gel_compression_latency")&&!g.aB("log_gel_compression_latency_lr")||jta("gel_compression",a,{sampleRate:.1})};
  2273. uD=function(a){var b=this;this.iI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
  2274. this.aA=function(){};
  2275. this.now=Date.now;this.RD=!1;this.qd={Lqb:function(p){b.Cf=p},
  2276. hrb:function(){b.gC()},
  2277. Z6:function(){b.VN()},
  2278. PE:function(p){return g.G(function(q){return g.z(q,b.PE(p),0)})},
  2279. AL:function(p,q){return b.AL(p,q)},
  2280. DL:function(){b.DL()}};
  2281. var c;this.S1=null!=(c=a.S1)?c:100;var d;this.R0=null!=(d=a.R0)?d:1;var e;this.J0=null!=(e=a.J0)?e:2592E6;var f;this.C0=null!=(f=a.C0)?f:12E4;var h;this.Q0=null!=(h=a.Q0)?h:5E3;var l;this.Cf=null!=(l=a.Cf)?l:void 0;this.OI=!!a.OI;var m;this.rI=null!=(m=a.rI)?m:.1;var n;this.lL=null!=(n=a.lL)?n:10;a.handleError&&(this.handleError=a.handleError);a.aA&&(this.aA=a.aA);a.RD&&(this.RD=a.RD);a.iI&&(this.iI=a.iI);this.fb=a.fb;this.Vn=a.Vn;this.Fh=a.Fh;this.hh=a.hh;this.sendFn=a.sendFn;this.MR=a.MR;this.YQ=
  2282. a.YQ;tD(this)&&(!this.fb||this.fb("networkless_logging"))&&Bta(this)};
  2283. Bta=function(a){tD(a)&&!a.RD&&(a.j=!0,a.OI&&Math.random()<=a.rI&&a.Fh.e7(a.Cf),a.DL(),a.hh.Eh()&&a.gC(),a.hh.listen(a.MR,a.gC.bind(a)),a.hh.listen(a.YQ,a.VN.bind(a)))};
  2284. Eta=function(a,b){if(!tD(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
  2285. b.options.onError=function(e,f){var h,l,m,n;return g.G(function(p){switch(p.j){case 1:h=Cta(f);(l=Dta(f))&&a.fb&&a.fb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.lL)){p.Ia(2);break}if(!a.hh.HL){p.Ia(3);break}return g.z(p,a.hh.HL(),3);case 3:if(a.hh.Eh()){p.Ia(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(m=
  2286. b)?void 0:m.id)){p.Ia(6);break}return g.z(p,a.Fh.wS(b.id,a.Cf,!1),6);case 6:return p.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.lL)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ia(8);break}return b.sendCount<a.R0?g.z(p,a.Fh.wS(b.id,a.Cf,!0,l?!1:void 0),12):g.z(p,a.Fh.Dz(b.id,a.Cf),8);case 12:a.Vn.Ni(function(){a.hh.Eh()&&a.gC()},a.Q0);
  2287. case 8:c(e,f),g.Aa(p)}})};
  2288. var d=b.options.onSuccess?b.options.onSuccess:function(){};
  2289. b.options.onSuccess=function(e,f){var h;return g.G(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ia(2):g.z(l,a.Fh.Dz(b.id,a.Cf),2);a.hh.lx&&a.fb&&a.fb("vss_network_hint")&&a.hh.lx(!0);d(e,f);g.Aa(l)})};
  2290. return b};
  2291. vD=function(a,b){a.W2&&!a.hh.Eh()?a.W2(b):a.handleError(b)};
  2292. tD=function(a){return!!a.Cf||a.iI};
  2293. Cta=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
  2294. Dta=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
  2295. Fta=function(){if(wD)return wD();var a={};wD=g.ZC("LogsDatabaseV2",{Mr:(a.LogsRequestsStore={hn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.FC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.LC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&GC(b,"sapisid");c(9)&&GC(b,"SWHealthLog")},
  2296. version:9});return wD()};
  2297. xD=function(a){return g.SC(Fta(),a)};
  2298. Hta=function(a,b){var c,d,e,f;return g.G(function(h){if(1==h.j)return c={startTime:(0,g.EC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,xD(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.JC(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.EC)();Gta(c);return h.return(f)})};
  2299. Ita=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j)return c={startTime:(0,g.EC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,xD(b),2);if(3!=p.j)return d=p.B,e=g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.EC)()],l=IDBKeyRange.bound(f,h),m="prev",g.aB("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.HC(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.OC(q.objectStore("LogsRequestsStore").index("newRequestV2"),
  2300. {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),"NEW"===a&&(n.status="QUEUED",r.update(n)))})}),3);
  2301. c.ticks.tc=(0,g.EC)();Gta(c);return p.return(n)})};
  2302. Jta=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,xD(b),2);c=d.B;return d.return(g.HC(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.IC(f,h).then(function(){return h})})}))})};
  2303. Kta=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.G(function(f){if(1==f.j)return g.z(f,xD(b),2);e=f.B;return f.return(g.HC(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.IC(l,m).then(function(){return m})):g.CC.resolve(void 0)})}))})};
  2304. Lta=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,xD(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
  2305. Mta=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,xD(a),2);b=d.B;c=(0,g.EC)()-2592E6;return g.z(d,g.HC(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.MC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.NC(f)})})}),0)})};
  2306. Nta=function(){g.G(function(a){return g.z(a,xsa("LogsDatabaseV2"),0)})};
  2307. Gta=function(a){g.aB("nwl_csi_killswitch")||jta("networkless_performance",a,{sampleRate:1})};
  2308. Pta=function(a){return g.SC(Ota(),a)};
  2309. Qta=function(a){var b,c;g.G(function(d){if(1==d.j)return g.z(d,Pta(a),2);b=d.B;c=(0,g.EC)()-2592E6;return g.z(d,g.HC(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.MC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.NC(f)})})}),0)})};
  2310. Rta=function(a){var b;return g.G(function(c){if(1==c.j)return g.z(c,Pta(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
  2311. g.yD=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.pB()){if(a){a=g.be(g.he(a));if(a===g.ge.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.pe?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.zqb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.yqb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.Aqb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
  2312. l=re(a));a=g.We(g.mn(g.qe(l).toString()))}g.ec(a)||(l=Bf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),lf(l).body.appendChild(l))}}else if(e)Ppa(a,b,"POST",e,d);else if(g.FA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Ppa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Eka({url:a});if(m.C&&m.B||m.D){var n=rn(g.eo(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==no(a,"ri"));break b}}catch(q){}p=!1}p?Sta(a)?(b&&b(),l=!0):l=!1:l=!1;l||Tta(a,b)}};
  2313. Sta=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
  2314. Tta=function(a,b){var c=new Image,d=""+Uta++;Vta[d]=c;c.onload=c.onerror=function(){b&&Vta[d]&&b();delete Vta[d]};
  2315. c.src=a};
  2316. Wta=function(a){var b=g.fo(a);if(!g.aB("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.aB("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
  2317. zD=function(){Xta||(Xta=new oC("yt.offline"));return Xta};
  2318. Yta=function(a){if(g.aB("offline_error_handling")){var b=zD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);zD().set("errors",b,2592E3,!0)}};
  2319. AD=function(){this.j=new Map;this.B=!1};
  2320. BD=function(){if(!AD.instance){var a=g.Xa("yt.networkRequestMonitor.instance")||new AD;g.Va("yt.networkRequestMonitor.instance",a);AD.instance=a}return AD.instance};
  2321. CD=function(){g.Dd.call(this);var a=this;this.B=!1;this.j=Jka();this.j.listen("networkstatus-online",function(){if(a.B&&g.aB("offline_error_handling")){var b=zD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.eC(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.IA(d)}zD().set("errors",{},2592E3,!0)}}})};
  2322. Zta=function(){if(!CD.instance){var a=g.Xa("yt.networkStatusManager.instance")||new CD;g.Va("yt.networkStatusManager.instance",a);CD.instance=a}return CD.instance};
  2323. g.DD=function(a){a=void 0===a?{}:a;g.Dd.call(this);var b=this;this.j=this.D=0;this.B=Zta();var c=g.Xa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){$ta(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){$ta(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
  2324. $ta=function(a,b){a.rateLimit?a.j?(g.gv.Oj(a.D),a.D=g.gv.Ni(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.EC)())},a.rateLimit-((0,g.EC)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.EC)()):a.dispatchEvent(b)};
  2325. ED=function(){var a=uD.call;aua||(aua=new g.DD({Wpb:!0,rob:!0}));a.call(uD,this,{Fh:{e7:Mta,Dz:Lta,bY:Ita,j$:Jta,wS:Kta,set:Hta},hh:aua,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;KA(new g.eC(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.IA(b)},
  2326. aA:KA,sendFn:bua,now:g.EC,W2:Yta,Vn:g.lC(),MR:"publicytnetworkstatus-online",YQ:"publicytnetworkstatus-offline",OI:!0,rI:.1,lL:g.bB("potential_esf_error_limit",10),fb:g.aB,RD:!(g.gC()&&"www.youtube-nocookie.com"!==g.fo(document.location.toString()))});this.C=new g.Lo;g.aB("networkless_immediately_drop_all_requests")&&Nta();ysa("LogsDatabaseV2")};
  2327. FD=function(){var a=g.Xa("yt.networklessRequestController.instance");a||(a=new ED,g.Va("yt.networklessRequestController.instance",a),g.aB("networkless_logging")&&g.XC().then(function(b){a.Cf=b;Bta(a);a.C.resolve();a.OI&&Math.random()<=a.rI&&a.Cf&&Qta(a.Cf);g.aB("networkless_immediately_drop_sw_health_store")&&cua(a)}));
  2328. return a};
  2329. cua=function(a){var b;g.G(function(c){if(!a.Cf)throw b=g.AC("clearSWHealthLogsDb"),b;return c.return(Rta(a.Cf).catch(function(d){a.handleError(d)}))})};
  2330. bua=function(a,b,c,d){d=void 0===d?!1:d;b=g.aB("web_fp_via_jspb")?Object.assign({},b):b;g.aB("use_cfr_monitor")&&dua(a,b);if(g.aB("use_request_time_ms_header"))b.headers&&RA(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.EC)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.EC)())}c&&0===Object.keys(b).length?g.yD(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),qD(a,b.postBody,
  2331. b,g.cB,d)):qD(a,JSON.stringify(b.postParams),b,Tpa,d):g.cB(a,b)};
  2332. eua=function(a,b){g.aB("use_event_time_ms_header")&&RA(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.EC)())));return b};
  2333. dua=function(a,b){var c=b.onError?b.onError:function(){};
  2334. b.onError=function(e,f){BD().requestComplete(a,!1);c(e,f)};
  2335. var d=b.onSuccess?b.onSuccess:function(){};
  2336. b.onSuccess=function(e,f){BD().requestComplete(a,!0);d(e,f)}};
  2337. g.GD=function(a){this.config_=null;a?this.config_=a:Tsa()&&(this.config_=g.gD())};
  2338. g.HD=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?FD().writeThenSend(n,f):FD().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));qD(n,r,f,g.cB,q)}else qD(n,JSON.stringify(f.postParams),f,Tpa,q)}else g.aB("web_all_payloads_via_jspb")?g.cB(n,f):Tpa(n,f)}catch(t){if("InvalidAccessError"===
  2339. t.name)KA(Error("An extension is blocking network request."));else throw t;}}
  2340. !g.FA("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&KA(new g.eC("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.eC("innertube xhrclient not ready",b,c,d),g.IA(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
  2341. onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
  2342. onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
  2343. onError:function(p,q){if(d.onError)d.onError(q)},
  2344. onFetchError:function(p){if(d.onError)d.onError(p)},
  2345. timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.XY;h&&(c=h);var l=a.config_.YY||!1;h=dta(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.aQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=PA(""+c+b,l);g.Xa("ytNetworklessLoggingInitializationOptions")&&
  2346. fua.isNwlInitialized?qsa().then(function(p){e(p)}):e(!1)};
  2347. g.MD=function(a,b,c){var d=g.ID();if(d&&b){var e=d.subscribe(a,function(){function f(){JD[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,h)}
  2348. var h=arguments;try{g.KD[a]?f():g.XA(f,0)}catch(l){g.IA(l)}},c);
  2349. JD[e]=!0;LD[a]||(LD[a]=[]);LD[a].push(e);return e}return 0};
  2350. gua=function(a){var b=g.MD("LOGGED_IN",function(c){a.apply(void 0,arguments);g.ND(b)})};
  2351. g.ND=function(a){var b=g.ID();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.ac(a,function(c){b.unsubscribeByKey(c);delete JD[c]}))};
  2352. g.OD=function(a,b){var c=g.ID();return c?c.publish.apply(c,arguments):!1};
  2353. iua=function(a){var b=g.ID();if(b)if(b.clear(a),a)hua(a);else for(var c in LD)hua(c)};
  2354. g.ID=function(){return g.Ta.ytPubsubPubsubInstance};
  2355. hua=function(a){LD[a]&&(a=LD[a],g.ac(a,function(b){JD[b]&&delete JD[b]}),a.length=0)};
  2356. g.kua=function(a,b,c){jua(a,b,void 0===c?null:c)};
  2357. jua=function(a,b,c){c=void 0===c?null:c;var d=lua(a),e=document.getElementById(d),f=e&&Iqa(e),h=e&&!f;f?b&&b():(b&&(f=g.MD(d,b),b=""+g.fb(b),mua[b]=f),h||(e=nua(a,d,function(){Iqa(e)||(Hqa(e),g.OD(d),g.XA(function(){iua(d)},0))},c)))};
  2358. nua=function(a,b,c,d){d=void 0===d?null:d;var e=g.Cf("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
  2359. e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
  2360. d&&e.setAttribute("nonce",d);g.Ve(e,g.Xw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
  2361. lua=function(a){var b=document.createElement("a");g.Me(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+af(a)};
  2362. QD=function(a){var b=g.Ja.apply(1,arguments);if(!PD(a)||b.some(function(d){return!PD(d)}))throw Error("Only objects may be merged.");
  2363. b=g.u(b);for(var c=b.next();!c.done;c=b.next())oua(a,c.value)};
  2364. oua=function(a,b){for(var c in b)if(PD(b[c])){if(c in a&&!PD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});oua(a[c],b[c])}else if(pua(b[c])){if(c in a&&!pua(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);qua(a[c],b[c])}else a[c]=b[c];return a};
  2365. qua=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,PD(c)?a.push(oua({},c)):pua(c)?a.push(qua([],c)):a.push(c);return a};
  2366. PD=function(a){return"object"===typeof a&&!Array.isArray(a)};
  2367. pua=function(a){return"object"===typeof a&&Array.isArray(a)};
  2368. RD=function(a){g.I.call(this);this.B=a};
  2369. SD=function(a){RD.call(this,!0);this.j=a};
  2370. rua=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.gb)(a,b);this.j=new g.xv(function(){return d(c.qa)},300);
  2371. g.N(this,this.j);this.Y=this.Z=Infinity};
  2372. sua=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
  2373. tua=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(TD)for(c=1,d=0;d<TD.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^TD.charCodeAt(d),c++;return b};
  2374. UD=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(e){}return tua(a)};
  2375. g.VD=function(a){a=UD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
  2376. g.uua=function(){return g.$r(UD(16),function(a){return(a&15).toString(16)}).join("")};
  2377. vua=function(){var a={},b=void 0===a.Hca?!1:a.Hca;a=void 0===a.Q7?!0:a.Q7;if(null==g.Xa("_lact",window)){var c=parseInt(g.FA("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Va("_lact",c,window);g.Va("_fact",c,window);-1==c&&WD();g.OB(document,"keydown",WD);g.OB(document,"keyup",WD);g.OB(document,"mousedown",WD);g.OB(document,"mouseup",WD);b?g.OB(window,"touchmove",function(){XD("touchmove",200)},{passive:!0}):(g.OB(window,"resize",function(){XD("resize",200)}),a&&g.OB(window,"scroll",function(){XD("scroll",
  2378. 200)}));
  2379. new RB(function(){XD("mouse",100)});
  2380. g.OB(document,"touchstart",WD,{passive:!0});g.OB(document,"touchend",WD,{passive:!0})}};
  2381. XD=function(a,b){wua[a]||(wua[a]=!0,g.gv.Ni(function(){WD();wua[a]=!1},b))};
  2382. WD=function(){null==g.Xa("_lact",window)&&(vua(),g.Xa("_lact",window));var a=Date.now();g.Va("_lact",a,window);-1==g.Xa("_fact",window)&&g.Va("_fact",a,window);(a=g.Xa("ytglobal.ytUtilActivityCallback_"))&&a()};
  2383. YD=function(){var a=g.Xa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
  2384. ZD=function(a){this.name=a};
  2385. $D=function(a){this.key=a};
  2386. xua=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.qd={ipb:function(){return new Map(a.j)}}};
  2387. yua=function(a,b){a.j.set(b.jG,b);var c=a.C.get(b.jG);if(c)try{c.yS(a.resolve(b.jG))}catch(d){c.lS(d)}};
  2388. bE=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.NT)var e=d.NT;else if(d.Kea)e=d[aE]?zua(a,d[aE],c):[],e=d.Kea.apply(d,g.qa(e));else if(d.L2){e=d.L2;var f=e[aE]?zua(a,e[aE],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.qa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Zqb||a.B.set(b,e);
  2389. return e};
  2390. zua=function(a,b,c){return b?b.map(function(d){return d instanceof $D?bE(a,d.key,c,!0):bE(a,d,c)}):[]};
  2391. cE=function(){Aua||(Aua=new xua);return Aua};
  2392. Bua=function(){var a,b;return"h5vcc"in dE&&(null==(a=dE.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=dE.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in dE&&dE.performance.mark&&dE.performance.measure?2:0};
  2393. Cua=function(a){var b=Bua();switch(b){case 1:dE.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:dE.performance.mark(a+"-start");break;case 0:break;default:Ne(b,"unknown trace type")}};
  2394. Dua=function(a){var b=Bua();switch(b){case 1:dE.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";dE.performance.mark(c);dE.performance.measure(a,b,c);break;case 0:break;default:Ne(b,"unknown trace type")}};
  2395. Fua=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.lC():d;this.C=c;this.scheduler=d;this.B=new g.Lo;this.j=a;for(a={Ew:0};a.Ew<this.j.length;a={dL:void 0,Ew:a.Ew},a.Ew++)a.dL=this.j[a.Ew],c=function(e){return function(){e.dL.qQ();b.j[e.Ew].oL=!0;b.j.every(function(f){return!0===f.oL})&&b.B.resolve()}}(a),d=iC(c,Eua(this,a.dL)),this.j[a.Ew]=Object.assign({},a.dL,{qQ:c,
  2396. jobId:d})};
  2397. Gua=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Eua(a,a.j[e])-Eua(a,a.j[d])});
  2398. b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],void 0===c.jobId||c.oL||(a.scheduler.Oj(c.jobId),iC(c.qQ,10))};
  2399. Eua=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
  2400. fE=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};eE&&Cua(this.state)};
  2401. Iua=function(a,b){var c=b.filter(function(e){return 10===Hua(a,e)}),d=b.filter(function(e){return 10!==Hua(a,e)});
  2402. return a.D.Vqb?function(){var e=g.Ja.apply(0,arguments);return g.G(function(f){if(1==f.j)return g.z(f,a.mda.apply(a,[c].concat(g.qa(e))),2);a.m1.apply(a,[d].concat(g.qa(e)));g.Aa(f)})}:function(){var e=g.Ja.apply(0,arguments);
  2403. a.nda.apply(a,[c].concat(g.qa(e)));a.m1.apply(a,[d].concat(g.qa(e)))}};
  2404. Hua=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
  2405. Jua=function(a){eE&&a&&Cua(a)};
  2406. gE=function(a){eE&&a&&Dua(a)};
  2407. Lua=function(a,b,c){Kua&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
  2408. hE=function(a){fE.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
  2409. {from:"none",to:"none",action:function(){}}]};
  2410. Nua=function(){Mua||(Mua=new hE);return Mua};
  2411. iE=function(){var a=this;this.store={};this.j=0;this.B={};this.qd={Wob:function(){return a.j}}};
  2412. Pua=function(a,b){var c=Oua(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&Oua(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(jE(b.auth,h[0])){var l=b.isJspb;jE(void 0===l?"undefined":l?"true":"false",h[1])&&jE(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),jE(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
  2413. jE=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
  2414. Oua=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
  2415. kE=function(){this.D=this.j=this.B=0;this.C=!1};
  2416. lE=function(){var a=g.Xa("yt.logging.ims");a||(a=new iE,g.Va("yt.logging.ims",a));return a};
  2417. Sua=function(){if(nta()&&!Qua){var a=function(c){c=c.data;if("serializedGelBatch"===c.op){var d=mE.get(c.key);d&&(Rua(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),mE.delete(c.key))}},b=nD();
  2418. b&&(b.addEventListener("message",a),b.onerror=function(){mE.clear()});
  2419. Qua=!0}};
  2420. Yua=function(a,b){if("log_event"===a.endpoint){nE(a);var c=oE(a),d=Tua(a.payload)||"",e=Uua(d),f=200;if(e){if(!1===e.enabled&&!g.aB("web_payload_policy_disabled_killswitch"))return;f=Vua(e.tier);if(400===f){Wua(a,b);return}}pE[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};lE().storePayload(e,a.payload);Xua(b,c,!1,e,qE(d))}};
  2421. $ua=function(a,b,c){if("log_event"===b.endpoint){nE(void 0,b);var d=oE(b,!0),e=Uua(a),f=200;if(e){if(!1===e.enabled&&!g.aB("web_payload_policy_disabled_killswitch"))return;f=Vua(e.tier);if(400===f){Zua(a,b,c);return}}pE[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};lE().storePayload(e,b.payload.toJSON());Xua(c,d,!0,e,qE(a))}};
  2422. Xua=function(a,b,c,d,e){function f(){ava({writeThenSend:!0},g.aB("flush_only_full_queue")?b:void 0,c,d.tier)}
  2423. c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(rE=new a);a=g.bB("tvhtml5_logging_max_batch_ads_fork")||g.bB("web_logging_max_batch")||100;var h=(0,g.EC)(),l=bva(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=lE().getSequenceCount(d));1E3<=e?f():e>=a?cva||(cva=dva(function(){f();cva=void 0},0)):10<=h-m&&(eva(c,d.tier),l.D=h)};
  2424. Wua=function(a,b){if("log_event"===a.endpoint){nE(a);var c=oE(a),d=new Map;d.set(c,[a.payload]);var e=Tua(a.payload)||"";b&&(rE=new b);return new g.kg(function(f,h){rE&&rE.isReady()?fva(d,rE,f,h,{bypassNetworkless:!0},!0,qE(e)):f()})}};
  2425. Zua=function(a,b,c){if("log_event"===b.endpoint){nE(void 0,b);var d=oE(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(rE=new c);return new g.kg(function(f){rE&&rE.isReady()?gva(e,rE,f,{bypassNetworkless:!0},!0,qE(a)):f()})}};
  2426. oE=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new CA;c.videoId?d.setVideoId(c.videoId):c.playlistId&&ik(d,2,sE,ij(c.playlistId));tE[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),uE[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
  2427. ava=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.kg(function(e,f){var h=bva(c,d),l=h.C;h.C=!1;hva(h.B);hva(h.j);h.j=0;rE&&rE.isReady()?void 0===d&&g.aB("enable_web_tiered_gel")?iva(e,f,a,b,c,300,l):iva(e,f,a,b,c,d,l):(eva(c,d),e())})};
  2428. iva=function(a,b,c,d,e,f,h){var l=rE;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries(q),m.set(d,b),gva(m,l,a,c,!1,h)):(m=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries(q),n.set(d,m),
  2429. fva(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(pE));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.aB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.aB("web_fp_via_jspb_and_json"))&&delete pE[n];gva(m,l,a,c,!1,h)}else{m=g.u(Object.keys(pE));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[{isJspb:!1,
  2430. cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):lE().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.aB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.aB("web_fp_via_jspb_and_json"))&&delete pE[p];fva(n,l,a,b,c,!1,h)}};
  2431. eva=function(a,b){function c(){ava({writeThenSend:!0},void 0,a,b)}
  2432. a=void 0===a?!1:a;b=void 0===b?200:b;var d=bva(a,b),e=d===jva||d===kva?5E3:lva;g.aB("web_gel_timeout_cap")&&!d.j&&(e=dva(function(){c()},e),d.j=e);
  2433. hva(d.B);e=g.FA("LOGGING_BATCH_TIMEOUT",g.bB("web_gel_debounce_ms",1E4));g.aB("shorten_initial_gel_batch_timeout")&&vE&&(e=mva);e=dva(function(){0<g.bB("gel_min_batch_size")?lE().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=nva&&c():c()},e);
  2434. d.B=e};
  2435. fva=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.EC)()),m=a.size,n=ova(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={TQ:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,HR:void 0,jR:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.nd({context:g.$sa(b.config_||g.gD())});if(!g.bb(q)&&!g.aB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=uE[p])&&pva(h.batchRequest,p,q);delete uE[p];h.dangerousLogToVisitorSession=
  2436. "visitorOnlyApprovedKey"===p;qva(h.batchRequest,l,h.dangerousLogToVisitorSession);rva(e);h.HR=function(r){g.aB("start_client_gcf")&&g.gv.Ni(function(){return g.G(function(t){return g.z(t,sva(r),0)})});
  2437. m--;m||c()};
  2438. h.TQ=0;h.jR=function(r){return function(){r.TQ++;if(e.bypassNetworkless&&1===r.TQ)try{g.HD(b,n,r.batchRequest,tva({writeThenSend:!0},r.dangerousLogToVisitorSession,r.HR,r.jR,f)),vE=!1}catch(t){g.IA(t),d()}m--;m||c()}}(h);
  2439. try{g.HD(b,n,h.batchRequest,tva(e,h.dangerousLogToVisitorSession,h.HR,h.jR,f)),vE=!1}catch(r){g.IA(r),d()}}};
  2440. gva=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.EC)()),l={value:a.size},m=new Map([].concat(g.qa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new upa;var r=b.config_||g.gD(),t=new hy,v=new by;Q(v,1,r.ZP);Q(v,2,r.YP);S(v,16,r.WY);Q(v,17,r.innertubeContextClientVersion);if(r.RJ){var w=r.RJ,A=new Zx;w.coldConfigData&&Q(A,1,w.coldConfigData);w.appInstallData&&Q(A,6,w.appInstallData);w.coldHashData&&Q(A,3,w.coldHashData);w.hotHashData&&
  2441. A.Yr(w.hotHashData);Hk(v,Zx,62,A)}(w=g.Ta.devicePixelRatio)&&1!=w&&Yk(v,65,w);w=Lpa();""!==w&&Q(v,54,w);w=Mpa();if(0<w.length){A=new dy;for(var D=0;D<w.length;D++){var F=new cy;Q(F,1,w[D].key);ik(F,2,uva,ij(w[D].value));Kk(A,15,cy,F)}Hk(t,dy,5,A)}Usa(r,v);Vsa(t);Wsa(v);Xsa(r,v);Ysa(v);g.aB("start_client_gcf")&&Zsa(v);g.FA("DELEGATED_SESSION_ID")&&!g.aB("pageid_as_header_web")&&(r=new gy,Q(r,3,g.FA("DELEGATED_SESSION_ID")));!g.aB("fill_delegate_context_in_gel_killswitch")&&(w=g.FA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
  2442. (A=g.Gk(t,gy,3)||new gy,r=t,w=Q(A,18,w),Hk(r,gy,3,w));r=v;w=g.u(Object.entries(NA(g.FA("DEVICE",""))));for(A=w.next();!A.done;A=w.next())D=g.u(A.value),A=D.next().value,D=D.next().value,"cbrand"===A?Q(r,12,D):"cmodel"===A?Q(r,13,D):"cbr"===A?Q(r,87,D):"cbrver"===A?Q(r,88,D):"cos"===A?Q(r,18,D):"cosver"===A?Q(r,19,D):"cplatform"===A&&S(r,42,lra(D));t.Rx(v);Hk(n,hy,1,t);if(v=tE[p])a:{if(v.qe())t=1;else if(v.getPlaylistId())t=2;else break a;Hk(n,CA,4,v);v=g.Gk(n,hy,1)||new hy;r=g.Gk(v,gy,3)||new gy;
  2443. w=new fy;w.setToken(p);S(w,1,t);Kk(r,12,fy,w);Hk(v,gy,3,r)}delete tE[p];p="visitorOnlyApprovedKey"===p;vva()||Wk(n,2,h);!p&&(t=g.FA("EVENT_ID"))&&(v=wva(),r=new tpa,Q(r,1,t),Wk(r,2,v),Hk(n,tpa,5,r));rva(d);if(g.aB("jspb_serialize_with_worker")&&(t=nD())&&d.writeThenSend){mE.set(xva,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:xva});xva++;
  2444. break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new BA(q[v]))}catch(H){g.IA(new g.eC("Transport failed to deserialize "+String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())Kk(n,3,BA,t.value);q={startTime:(0,g.EC)(),ticks:{},infos:{}};n=n.Ck();q.ticks.geljspc=(0,g.EC)();g.aB("log_jspb_serialize_latency")&&jta("gel_jspb_serialize",q,{sampleRate:.1});Rua(n,b,c,d,e,f,p,l)}};
  2445. Rua=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=ova(f);d=tva(d,h,function(m){g.aB("start_client_gcf")&&g.gv.Ni(function(){return g.G(function(n){return g.z(n,sva(m),0)})});
  2446. l.value--;l.value||c()},function(){l.value--;
  2447. l.value||c()},e);
  2448. d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.HD(b,f,"",d);vE=!1};
  2449. rva=function(a){g.aB("always_send_and_write")&&(a.writeThenSend=!1)};
  2450. tva=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,dob:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.aB("compress_gel")||g.aB("compress_gel_lr")};vva()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.EC)())));return a};
  2451. qva=function(a,b,c){vva()||(a.requestTimeMs=String(b));g.aB("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.FA("EVENT_ID"))&&(c=wva(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
  2452. wva=function(){var a=g.FA("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*yva/2));a++;a>yva&&(a=1);EA("BATCH_CLIENT_COUNTER",a);return a};
  2453. pva=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
  2454. nE=function(a,b){if(!g.Xa("yt.logging.transport.enableScrapingForTest")){var c=Kpa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))zva=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",zva),g.Va("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
  2455. g.Va("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Xa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Xa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Xa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Xa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push((null==(f=a)?void 0:f.payload)[d[e]])}g.Va("yt.logging.transport.scrapedPayloadsForTesting",
  2456. c)};
  2457. vva=function(){return g.aB("use_request_time_ms_header")||g.aB("lr_use_request_time_ms_header")};
  2458. dva=function(a,b){return!1===g.aB("transport_use_scheduler")?g.XA(a,b):g.aB("logging_avoid_blocking_during_navigation")||g.aB("lr_logging_avoid_blocking_during_navigation")?g.jC(0,function(){if("none"===Nua().currentState)a();else{var c={};Nua().install((c.none={callback:a},c))}},b):iC(a,0,b)};
  2459. hva=function(a){g.aB("transport_use_scheduler")?g.gv.Oj(a):g.ZA(a)};
  2460. sva=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.V(d,Ava),h=null==(f=d)?void 0:f.hotHashData,l=g.V(d,Bva),n=null==(m=d)?void 0:m.coldHashData,(p=cE().resolve(new $D(eD)))?h?e?g.z(q,Qsa(p,h,e),2):g.z(q,Qsa(p,h),2):q.Ia(2):q.return()):n?l?g.z(q,Rsa(p,n,l),0):g.z(q,Rsa(p,n),0):q.Ia(0)})};
  2461. bva=function(a,b){b=void 0===b?200:b;return a?300===b?jva:Cva:300===b?kva:Dva};
  2462. Uua=function(a){if(g.aB("enable_web_tiered_gel")){a=Eva[a||""];var b,c,d,e=null==cE().resolve(new $D(eD))?void 0:null==(b=fD())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
  2463. Tua=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Eva[b])return b};
  2464. Vua=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
  2465. qE=function(a){return"gelDebuggingEvent"===a};
  2466. ova=function(a){return(void 0===a?0:a)&&g.aB("vss_through_gel_video_stats")?"video_stats":"log_event"};
  2467. xE=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.EC)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=YD();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.aB("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Fva(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete wE[d.sequenceGroup]);(d.sendIsolatedPayload?Wua:Yua)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
  2468. c)};
  2469. Gva=function(a){ava(void 0,void 0,void 0===a?!1:a)};
  2470. Fva=function(a){wE[a]=a in wE?wE[a]+1:0;return wE[a]};
  2471. Kva=function(a,b){Hva||(Hva=!0);Iva=a;yE=b;Jva=!1};
  2472. g.qC=function(a,b,c){c=void 0===c?{}:c;var d=Lva;g.FA("ytLoggingEventsDefaultDisabled",!1)&&Lva===g.GD&&(d=null);if(g.aB("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=YD(),c.timestamp=(0,g.EC)()),Iva&&yE){var e=Iva[a];if(e){e=e(Mva(b));var f=e[1];(e[0]||!g.aB("jspb_translator_return_completion"))&&f&&yE[a]?(yE[a](f,c,d||void 0),Nva()):(KA(new g.eC("Unable to call logFn for payload",a)),xE(a,b,d,c))}else{if(!g.aB("web_translate_player_logs"))KA(new g.eC("Unable to translate payload to JSPB",
  2473. a));else if(!1===Jva){var h=!1;e=ita("app_received_payload",function(){h=!0});
  2474. kD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;hta(e);ita("app_has_initialized",function(){kD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}xE(a,b,d,c)}}else Ova.push({payloadName:a,
  2475. payload:b,options:c});else xE(a,b,d,c)};
  2476. Nva=function(a){a=void 0===a?!1:a;var b=Ova;Ova=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?xE(c.payloadName,c.payload,Lva,c.options):g.qC(c.payloadName,c.payload,c.options)}};
  2477. Mva=function(a){if(!g.aB("jspb_convert_payloads_to_lower_camel")||!g.cb(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Pva(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.bb(a[d]))a[d]=Mva(a[d]);else if(g.bb(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Mva(e[h]));a[d]=f}}return a};
  2478. Pva=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
  2479. zE=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.EC)());Wk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new spa;if(d.lact)Wk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Wk(e,1,-1);else{var f=YD();Wk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.aB("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Fva(f),l=new rpa;Wk(l,2,h);Q(l,1,f);Hk(e,rpa,3,l);d.endOfSequence&&delete Qva[d.sequenceGroup]}Hk(b,spa,33,e);(d.sendIsolatedPayload?Zua:$ua)(a,{endpoint:"log_event",payload:b,
  2480. cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
  2481. AE=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.FA("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);zE(a,b,d?null:g.GD,c)};
  2482. Rva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,kA,72,BE,a);c?zE("visualElementShown",d,c,b):AE("visualElementShown",d,b)};
  2483. Sva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,jA,73,BE,a);c?zE("visualElementHidden",d,c,b):AE("visualElementHidden",d,b)};
  2484. Tva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,iA,78,BE,a);c?zE("visualElementGestured",d,c,b):AE("visualElementGestured",d,b)};
  2485. Uva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,lA,208,BE,a);c?zE("visualElementStateChanged",d,c,b):AE("visualElementStateChanged",d,b)};
  2486. Vva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,gA,156,BE,a);c?zE("screenCreated",d,c,b):AE("screenCreated",d,b)};
  2487. Wva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,eA,202,BE,a);c?zE("playbackAssociated",d,c,b):AE("playbackAssociated",d,b)};
  2488. Xva=function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,hA,215,BE,a);c?zE("visualElementAttached",d,c,b):AE("visualElementAttached",d,b)};
  2489. CE=function(a){this.j=a};
  2490. g.DE=function(a){return new CE({trackingParams:a})};
  2491. Zva=function(a){var b=Yva++;return new CE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
  2492. $va=function(a){return g.FA("client-screen-nonce-store",{})[void 0===a?0:a]};
  2493. awa=function(a,b){b=void 0===b?0:b;var c=g.FA("client-screen-nonce-store");c||(c={},EA("client-screen-nonce-store",c));c[b]=a};
  2494. bwa=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
  2495. cwa=function(a){return g.FA(bwa(void 0===a?0:a))};
  2496. g.EE=function(a){return(a=cwa(void 0===a?0:a))?new CE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
  2497. dwa=function(){var a=g.FA("csn-to-ctt-auth-info");a||(a={},EA("csn-to-ctt-auth-info",a));return a};
  2498. ewa=function(){return Object.values(g.FA("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
  2499. g.FE=function(a){a=$va(void 0===a?0:a);if(!a&&!g.FA("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
  2500. gwa=function(a){for(var b=g.u(Object.values(fwa)),c=b.next();!c.done;c=b.next())if(g.FE(c.value)===a)return!0;return!1};
  2501. hwa=function(a,b,c){var d=dwa();(c=g.FE(c))&&delete d[c];b&&(d[a]=b)};
  2502. GE=function(a){return dwa()[a]};
  2503. jwa=function(a,b,c,d){c=void 0===c?0:c;if(a!==$va(c)||b!==g.FA(bwa(c)))if(hwa(a,d,c),awa(a,c),EA(bwa(c),b),b=function(){setTimeout(function(){if(a)if(g.aB("web_time_via_jspb")){var e=new Soa;Q(e,1,iwa);Q(e,2,a);var f=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(f,Soa,111,BE,e);AE("foregroundHeartbeatScreenAssociated",f)}else g.qC("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:iwa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
  2504. lwa=function(a,b){var c=void 0===c?!0:c;var d=g.FA("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.fo(window.location.href);e&&d.push(e);e=g.fo(a);if(g.Fb(d,e)||!e&&dc(a,"/"))if(d=document.createElement("a"),g.Me(d,a),a=d.href)if(a=go(a),a=zfa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.FE()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&kwa(a,b,f)}else kwa(a,b)};
  2505. kwa=function(a,b,c){a=mwa(a);b=b?g.ko(b):"";c=c||5;sqa()&&g.lB(a,b,c)};
  2506. mwa=function(a){for(var b=g.u(nwa),c=b.next();!c.done;c=b.next())a=oo(a,c.value);return"ST-"+af(a).toString(36)};
  2507. owa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
  2508. pwa=function(){this.Ss=[];this.Kr=[]};
  2509. twa=function(){if(!qwa){var a=qwa=new pwa;a.Kr.length=0;a.Ss.length=0;rwa(a,swa)}return qwa};
  2510. rwa=function(a,b){b.Kr&&a.Kr.push.apply(a.Kr,b.Kr);b.Ss&&a.Ss.push.apply(a.Ss,b.Ss)};
  2511. vwa=function(a){function b(){return a.charCodeAt(d++)}
  2512. var c=a.length,d=0;do{var e=uwa(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=uwa(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=uwa(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
  2513. uwa=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
  2514. xwa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=wwa(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=vwa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?wwa(f+".ve",h,l,m):0;d+=f;d+=wwa(e,a[e],b,c);if(500<d)break}}else c[b]=HE(a),d+=c[b].length;else c[b]=HE(a),d+=c[b].length;return d};
  2515. wwa=function(a,b,c,d){c+="."+a;a=HE(b);d[c]=a;return c.length+a.length};
  2516. HE=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
  2517. Bra=function(a){g.IE(a)};
  2518. g.JE=function(a){g.IE(a,"WARNING")};
  2519. g.IE=function(a,b){var c=void 0===c?{}:c;c.name=g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.FA("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=void 0===b?"ERROR":b,e=!1;d=void 0===d?"ERROR":d;e=void 0===e?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.aB("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
  2520. f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=ywa)){var h=zwa,l=Daa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",v=p,w=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(w=xwa(a.args[A],"params."+A,c,w),500<=w);A++);else if(a.hasOwnProperty("params")&&
  2521. a.params){var D=a.params;if("object"===typeof a.params)for(var F in D){if(D[F]){var H="params."+F,L=HE(D[F]);c[H]=L;w+=H.length+L.length;if(500<w)break}}else c.params=HE(D)}if(h.length)for(var M=0;M<h.length&&!(w=xwa(h[M],"params.context."+M,c,w),500<=w);M++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var R={message:m,name:n,lineNumber:r,fileName:t,stack:v,params:c,sampleWeight:1},ea=Number(a.columnNumber);isNaN(ea)||(R.lineNumber=R.lineNumber+":"+ea);if("IGNORED"===
  2522. a.level)var la=0;else a:{for(var ka=twa(),ia=g.u(ka.Kr),sa=ia.next();!sa.done;sa=ia.next()){var aa=sa.value;if(R.message&&R.message.match(aa.SA)){la=aa.weight;break a}}for(var U=g.u(ka.Ss),Ha=U.next();!Ha.done;Ha=U.next()){var x=Ha.value;if(x.callback(R)){la=x.weight;break a}}la=1}R.sampleWeight=la;for(var ba=g.u(Awa),La=ba.next();!La.done;La=ba.next()){var ab=La.value;if(ab.cL[R.name])for(var lb=g.u(ab.cL[R.name]),Qa=lb.next();!Qa.done;Qa=lb.next()){var Ua=Qa.value,jb=R.message.match(Ua.Cj);if(jb){R.params["params.error.original"]=
  2523. jb[0];for(var rb=Ua.groups,pb={},B=0;B<rb.length;B++)pb[rb[B]]=jb[B+1],R.params["params.error."+rb[B]]=jb[B+1];R.message=ab.JQ(pb);break}}}R.params||(R.params={});var C=twa();R.params["params.errorServiceSignature"]="msg="+C.Kr.length+"&cb="+C.Ss.length;R.params["params.serviceWorker"]="false";g.Ta.document&&g.Ta.document.querySelectorAll&&(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Qd("sample").constructor!==Od&&(R.params["params.fconst"]="true");
  2524. window.yterr&&"function"===typeof window.yterr&&window.yterr(R);if(0!==R.sampleWeight&&!Bwa.has(R.message)){if(e&&g.aB("web_enable_error_204"))Cwa(void 0===d?"ERROR":d,R);else{var E=d;E=void 0===E?"ERROR":E;if("ERROR"===E){KE.publish("handleError",R);if(g.aB("record_app_crashed_web")&&0===Dwa&&1===R.sampleWeight)if(Dwa++,g.aB("errors_via_jspb")){var J=new Ina;var K=S(J,1,1);if(!g.aB("report_client_error_with_app_crash_ks")){var ca=new zz,ta=new qz,na=new pz,O=new oz;var Z=Q(O,1,R.message);var ya=
  2525. Hk(na,oz,3,Z);var xa=Hk(ta,pz,5,ya);var Za=Hk(ca,qz,9,xa);Hk(K,zz,4,Za)}var Wa=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(Wa,Ina,20,BE,K);AE("appCrashed",Wa)}else{var zb={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.aB("report_client_error_with_app_crash_ks")||(zb.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}});g.qC("appCrashed",zb)}Ewa++}else"WARNING"===E&&KE.publish("handleWarning",R);if(g.aB("kevlar_gel_error_routing"))a:{var Rb=E;if(g.aB("errors_via_jspb")){if(Fwa())var eb=
  2526. void 0;else{var Ub=new hz;Q(Ub,1,R.stack);R.fileName&&Q(Ub,4,R.fileName);var hc=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==hc.length&&(1!==hc.length||isNaN(Number(hc[0]))?2!==hc.length||isNaN(Number(hc[0]))||isNaN(Number(hc[1]))||(Uk(Ub,2,Number(hc[0])),Uk(Ub,3,Number(hc[1]))):Uk(Ub,2,Number(hc[0])));var Dc=new oz;Q(Dc,1,R.message);Q(Dc,3,R.name);Uk(Dc,6,R.sampleWeight);"ERROR"===Rb?S(Dc,2,2):"WARNING"===Rb?S(Dc,2,1):S(Dc,2,0);var Zb=new nz;Tk(Zb,1,!0);Ik(Zb,hz,3,LE,Ub);var vc=
  2527. new fz;Q(vc,3,window.location.href);for(var Wc=g.FA("FEXP_EXPERIMENTS",[]),Sc=0;Sc<Wc.length;Sc++)vc.B(Wc[Sc]);var Ec=g.FA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!GA("web_disable_gel_stp_ecatcher_killswitch")&&Ec)for(var Fc=g.u(Object.keys(Ec)),Xb=Fc.next();!Xb.done;Xb=Fc.next()){var yd=Xb.value,fd=new Ry;Q(fd,1,yd);Q(fd,2,String(Ec[yd]));vc.j(fd)}var fc=R.params;if(fc)for(var $b=g.u(Object.keys(fc)),Gc=$b.next();!Gc.done;Gc=$b.next()){var Jb=Gc.value,ad=new Ry;Q(ad,1,"client."+Jb);Q(ad,2,
  2528. String(fc[Jb]));vc.j(ad)}var sd=g.FA("SERVER_NAME"),Pb=g.FA("SERVER_VERSION");if(sd&&Pb){var de=new Ry;Q(de,1,"server.name");Q(de,2,sd);vc.j(de);var Rd=new Ry;Q(Rd,1,"server.version");Q(Rd,2,Pb);vc.j(Rd)}var Sd=new pz;Hk(Sd,fz,1,vc);Hk(Sd,nz,2,Zb);Hk(Sd,oz,3,Dc);eb=Sd}var Ae=eb;if(!Ae)break a;var Be=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(Be,pz,163,BE,Ae);AE("clientError",Be)}else{var Jd=void 0;Jd=void 0===Jd?{}:Jd;if(Fwa())var pf=void 0;else{var Oe={stackTrace:R.stack};R.fileName&&
  2529. (Oe.filename=R.fileName);var Kd=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==Kd.length&&(1!==Kd.length||isNaN(Number(Kd[0]))?2!==Kd.length||isNaN(Number(Kd[0]))||isNaN(Number(Kd[1]))||(Oe.lineNumber=Number(Kd[0]),Oe.columnNumber=Number(Kd[1])):Oe.lineNumber=Number(Kd[0]));var Ef={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};"ERROR"===Rb?Ef.level="ERROR_LEVEL_ERROR":"WARNING"===Rb&&(Ef.level="ERROR_LEVEL_WARNNING");var Td={isObfuscated:!0,
  2530. browserStackInfo:Oe};Jd.pageUrl=window.location.href;Jd.kvPairs=[];g.FA("FEXP_EXPERIMENTS")&&(Jd.experimentIds=g.FA("FEXP_EXPERIMENTS"));var ee=g.FA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!GA("web_disable_gel_stp_ecatcher_killswitch")&&ee)for(var Ld=g.u(Object.keys(ee)),zd=Ld.next();!zd.done;zd=Ld.next()){var bd=zd.value;Jd.kvPairs.push({key:bd,value:String(ee[bd])})}var Md=R.params;if(Md)for(var Ze=g.u(Object.keys(Md)),qf=Ze.next();!qf.done;qf=Ze.next()){var Xf=qf.value;Jd.kvPairs.push({key:"client."+
  2531. Xf,value:String(Md[Xf])})}var se=g.FA("SERVER_NAME"),rc=g.FA("SERVER_VERSION");se&&rc&&(Jd.kvPairs.push({key:"server.name",value:se}),Jd.kvPairs.push({key:"server.version",value:rc}));pf={errorMetadata:Jd,stackTrace:Td,logMessage:Ef}}var Pe=pf;if(!Pe)break a;g.qC("clientError",Pe)}if("ERROR"===Rb||g.aB("errors_flush_gel_always_killswitch"))b:{if(g.aB("web_fp_via_jspb")&&(Nva(!0),Gva(!0),!g.aB("web_fp_via_jspb_and_json")))break b;Gva()}}g.aB("suppress_error_204_logging")||Cwa(E,R)}try{Bwa.add(R.message)}catch(Vh){}ywa++}}}};
  2532. Fwa=function(){for(var a=g.u(Gwa),b=a.next();!b.done;b=a.next())if(g.nB(b.value.toLowerCase()))return!0;return!1};
  2533. Cwa=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:g.FA("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.u(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.FA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
  2534. g.u(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.FA("SERVER_NAME");b=g.FA("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.cB(g.FA("ECATCHER_REPORT_HOST","")+"/error_204",a)};
  2535. Hwa=function(a){var b=g.Ja.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.qa(b))};
  2536. Mwa=function(a){var b=g.V(a,ME);if(b)return b;if((b=g.V(a,Iwa))&&b.commands)return Jwa(b.commands);if((b=g.V(a,Kwa))&&b.commands)return Jwa(b.commands);if((a=g.V(a,Lwa))&&a.identifier&&a.command&&(NE||(NE=[]),!NE.includes(a.identifier)))return NE.push(a.identifier),g.V(a.command,ME)};
  2537. Jwa=function(a){if(0!==a.length){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=Mwa(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
  2538. g.OE=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
  2539. Nwa=function(a){a=void 0===a||a?UD(16):tua(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
  2540. Owa=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
  2541. Pwa=function(a){iD.call(this,1,arguments);this.csn=a};
  2542. Vwa=function(a,b,c,d,e,f,h,l){function m(){g.JE(new g.eC("newScreen() parent element does not have a VE - rootVe",b))}
  2543. var n=Qwa(),p=new CE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=PE({},n);e&&(f.cttAuthInfo=e);if(g.aB("il_via_jspb")){e=bpa((new gA).j(n),p.getAsJspb());c&&c.visualElement?(p=new $oa,c.clientScreenNonce&&Q(p,2,c.clientScreenNonce),apa(p,c.visualElement.getAsJspb()),h&&S(p,4,Rwa[h]),Hk(e,$oa,5,p)):c&&m();d&&Q(e,3,d);if(g.aB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new Wx;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
  2544. d.value,d.screenVeType&&(d=Kma(new Nx,d.screenVeType),c.j(d));Hk(e,Wx,7,c)}Vva(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.aB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?xE("screenCreated",e,a,f):g.qC("screenCreated",e,f);kD(Swa,new Pwa(n));
  2545. QE.clear();Twa.clear();Uwa.clear();return n};
  2546. g.RE=function(a,b,c,d,e){g.Wwa(a,b,c,[d],void 0===e?!1:e)};
  2547. g.Wwa=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=PE({cttAuthInfo:GE(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.jd(m)||!m.trackingParams&&!m.veType)&&g.JE(Error("Child VE logged with no data"));if(g.aB("no_client_ve_attach_unless_shown")){var n=SE(l,b);if(m.veType&&!Twa.has(n)&&!Uwa.has(n)&&!e){if(!g.aB("il_attach_cache_limit")||1E3>QE.size){QE.set(n,[a,b,c,l]);return}g.aB("il_attach_cache_limit")&&1E3<QE.size&&g.JE(new g.eC("IL Attach cache exceeded limit"))}l=
  2548. SE(c,b);QE.has(l)?Xwa(c,b):Uwa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
  2549. if(g.aB("il_via_jspb")){var p=cpa((new hA).j(b),c.getAsJspb());g.$r(d,function(q){q=q.getAsJspb();Kk(p,3,Hz,q)});
  2550. "UNDEFINED_CSN"===b?TE("visualElementAttached",f,void 0,p):Xva(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.$r(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?TE("visualElementAttached",f,c):a?xE("visualElementAttached",c,a,f):g.qC("visualElementAttached",c,f)};
  2551. Zwa=function(a,b,c,d,e,f){Ywa(c,b);d=PE({cttAuthInfo:GE(b)||void 0},b);g.aB("il_via_jspb")?(e=(new kA).j(b),c=c.getAsJspb(),c=Hk(e,Hz,2,c),c=S(c,4,1),f&&Hk(c,fA,3,f),"UNDEFINED_CSN"===b?TE("visualElementShown",d,void 0,c):Rva(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?TE("visualElementShown",d,f):a?xE("visualElementShown",f,a,d):g.qC("visualElementShown",f,d))};
  2552. $wa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=PE({cttAuthInfo:GE(b)||void 0,endOfSequence:d},b);g.aB("il_via_jspb")?(e=(new jA).j(b),c=c.getAsJspb(),c=Hk(e,Hz,2,c),S(c,4,d?16:8),"UNDEFINED_CSN"===b?TE("visualElementHidden",f,void 0,c):Sva(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?TE("visualElementHidden",f,d):a?xE("visualElementHidden",d,a,f):g.qC("visualElementHidden",d,f))};
  2553. bxa=function(a,b,c,d,e){axa(a,b,c,d,e)};
  2554. axa=function(a,b,c,d,e){var f=void 0;Ywa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=PE({cttAuthInfo:GE(b)||void 0},b);g.aB("il_via_jspb")?(d=(new iA).j(b),c=c.getAsJspb(),c=Hk(d,Hz,2,c),S(c,4,Rwa[f]),e&&Hk(c,fA,3,e),"UNDEFINED_CSN"===b?TE("visualElementGestured",h,void 0,c):Tva(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?TE("visualElementGestured",h,e):a?xE("visualElementGestured",e,a,h):g.qC("visualElementGestured",e,h))};
  2555. cxa=function(){var a;g.aB("enable_web_96_bit_csn")?a=Nwa():g.aB("enable_web_96_bit_csn_no_crypto")?a=Nwa(!1):a=g.Kg(g.Jg(Math.random()+""),3);return a};
  2556. TE=function(a,b,c,d){UE.push({payloadName:a,payload:c,Zt:d,options:b});dxa||(dxa=ita(Swa,exa))};
  2557. exa=function(a){if(UE){for(var b=g.u(UE),c=b.next();!c.done;c=b.next())if(c=c.value,g.aB("il_via_jspb")&&c.Zt)switch(c.Zt.j(a.csn),c.payloadName){case "screenCreated":Vva(c.Zt,c.options);break;case "visualElementAttached":Xva(c.Zt,c.options);break;case "visualElementShown":Rva(c.Zt,c.options);break;case "visualElementHidden":Sva(c.Zt,c.options);break;case "visualElementGestured":Tva(c.Zt,c.options);break;case "visualElementStateChanged":Uva(c.Zt,c.options);break;default:g.JE(new g.eC("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
  2558. (c.payload.csn=a.csn,g.qC(c.payloadName,c.payload,c.options));UE.length=0}dxa=0};
  2559. SE=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
  2560. Ywa=function(a,b){if(g.aB("no_client_ve_attach_unless_shown")){var c=SE(a,b);Twa.set(c,!0);Xwa(a,b)}};
  2561. Xwa=function(a,b){a=SE(a,b);QE.has(a)&&(b=QE.get(a)||[],g.RE(b[0],b[1],b[2],b[3],!0),QE.delete(a))};
  2562. PE=function(a,b){g.aB("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
  2563. g.VE=function(a,b,c,d){g.JA(Zwa)(void 0,a,b,c,d,void 0)};
  2564. g.WE=function(a,b){g.JA(function(){g.ac(b,function(c){Ywa(c,a);var d=PE({cttAuthInfo:GE(a)||void 0},a);if(g.aB("il_via_jspb")){var e=(new kA).j(a);c=c.getAsJspb();e=Hk(e,Hz,2,c);e=S(e,4,4);"UNDEFINED_CSN"===a?TE("visualElementShown",d,void 0,e):Rva(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?TE("visualElementShown",d,e):g.qC("visualElementShown",e,d)})})()};
  2565. g.XE=function(a,b){g.JA(function(){g.ac(b,function(c){$wa(void 0,a,c)})})()};
  2566. g.YE=function(a,b,c){g.JA(bxa)(void 0,a,b,c,void 0)};
  2567. $E=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=ZE(a)};
  2568. ZE=function(a){var b=":"+(lw.getInstance().j++).toString(36);return a+b};
  2569. g.aF=function(a){a=void 0===a?!1:a;g.I.call(this);this.sj=new g.Yv(a);g.N(this,this.sj)};
  2570. g.bF=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
  2571. cF=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
  2572. dF=function(){var a="ytp-id-"+fxa.toString();fxa++;return a};
  2573. g.eF=function(a){g.I.call(this);this.Jb={};this.je={};this.element=this.createElement(a)};
  2574. fF=function(a,b,c,d){if("{{"===d.substr(0,2))a.je[d]=[b,c];else return d};
  2575. gxa=function(a,b){var c=[];if(!b)return c;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.I?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.Cf("BR"));c.push(g.Df(f))}):c.push(g.Df(d))}return c};
  2576. gF=function(a,b,c,d){if("child"===c){g.Gf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=gxa(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Is(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.be(g.he(a))),b.setAttribute(c,a))};
  2577. g.W=function(a){g.eF.call(this,a);this.Fb=!0;this.Z=!1;this.listeners=[]};
  2578. g.hF=function(a,b){b?a.show():a.hide()};
  2579. g.iF=function(a){g.W.call(this,a);this.Sa=new g.aF;g.N(this,this.Sa)};
  2580. jF=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.iF.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.zb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.kb=f;this.bb=null;this.BS=new SD(this.element);g.N(this,this.BS);this.rb=this.T(this.element,"click",this.onClick);this.Ga=[];this.Ca=new rua(this.onClick,this);g.N(this,this.Ca);this.Gb=!1;this.La=this.qa=null};
  2581. kF=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.JE(Error("Got null or undefined adText object")),"";var c=g.$e(a.text);if(!a.isTemplated)return c;if(null==b)return g.JE(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
  2582. hxa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.$e(a.thumbnails[0].url):""};
  2583. ixa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.Ke(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Ke(0,0)};
  2584. g.lF=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.u(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
  2585. g.mF=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Bf("B",null,h||l));d.italics&&(h=Bf("I",null,h||l));d.strikethrough&&(h=Bf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Bf("A",null,h||l),g.Me(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Bf("SPAN",null,
  2586. l);f.call(e,l)}}return 1==b.length?b[0]:Bf("SPAN",null,b)};
  2587. g.jxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
  2588. fill:"#fff"}}]}};
  2589. kxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
  2590. g.nF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
  2591. g.oF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
  2592. lxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
  2593. mxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
  2594. nxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
  2595. g.pF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
  2596. oxa=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
  2597. pxa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
  2598. qxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
  2599. rxa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
  2600. fill:"white","fill-rule":"evenodd"}}]}};
  2601. sxa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
  2602. txa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
  2603. uxa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
  2604. qF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
  2605. vxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
  2606. wxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
  2607. g.xxa=function(){return{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
  2608. rF=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
  2609. yxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
  2610. zxa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
  2611. Axa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
  2612. Bxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
  2613. Cxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
  2614. g.Dxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
  2615. g.Exa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
  2616. fill:"#fff"}}]}};
  2617. g.sF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
  2618. Fxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
  2619. Gxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
  2620. tF=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return rF();case "CHECK_BOX":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",
  2621. X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.pF();case "INFO_OUTLINE":return sxa();case "REMOVE_CIRCLE":return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};
  2622. case "SKIP_NEXT":return wxa();case "SKIP_NEXT_NEW":return{I:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return uxa();case "DISLIKE":return pxa();default:return g.JE(new g.eC("Unexpected icon:",a)),null}};
  2623. uF=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",Ka:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});jF.call(this,a,e,void 0===f?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
  2624. Hxa=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
  2625. return b||[]};
  2626. vF=function(){g.I.call(this);var a=this;this.j=new Map;this.B=Vqa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.yD(b[c])})};
  2627. Ixa=function(){null==wF&&(wF=new vF);return wF};
  2628. xF=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Jxa(a))){b=Bf("SPAN",null,b);break a}b=g.Df(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Kxa(e,b))}return 1==c.length?c[0]:Bf("SPAN",null,c)};
  2629. Kxa=function(a,b){var c=null,d=a.text;b&&(d=Jxa(d)||d);a.bold&&(c=Bf("B",null,c||d));a.italics&&(c=Bf("I",null,c||d));a.strikethrough&&(c=Bf("STRIKE",null,c||d));a.navigationEndpoint&&g.V(a.navigationEndpoint,g.yF)&&(b=g.V(a.navigationEndpoint,g.yF),c=Bf("A",null,c||d),g.Me(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Ixa().register(c,a),g.Fv(c,"ytp-ad-has-logging-urls"));
  2630. return c||Bf("SPAN",null,d)};
  2631. Jxa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(Bf("BR")),b.push(a[c]);return b}return null};
  2632. zF=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;jF.call(this,a,{I:"span",Ka:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
  2633. AF=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.$e(a.thumbnails[0].url):""};
  2634. BF=function(a,b,c,d,e,f){f=void 0===f?!1:f;jF.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
  2635. CF=function(a,b,c,d,e,f){e=void 0===e?[]:e;jF.call(this,a,{I:"div",Ka:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ka:["ytp-ad-confirm-dialog"].concat(e),X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-confirm-dialog-messages"},{I:"div",S:"ytp-ad-confirm-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-confirm-dialog-cancel-button",xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
  2636. xa:"{{confirmLabel}}"}]}]}]},{I:"button",Ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.pF()]}]}]},void 0===f?"confirm-dialog":f,b,c,d);this.Y=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.G=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.ra=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new SB;g.N(this,this.j);this.B=null;this.hide()};
  2637. Lxa=function(a,b){if(b.title){var c=g.lF(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.u(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=xF(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.lF(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.WM(e)}));
  2638. b.confirmLabel&&(b=g.lF(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.fR(e)}));
  2639. a.j.T(a.Y,"click",function(e){return a.eR(e)})};
  2640. DF=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=ZE("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.fb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");jF.call(this,a,{I:"div",Ka:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",X:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",X:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
  2641. xa:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",xa:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",X:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",xa:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",xa:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Fa("ytp-ad-toggle-button");this.j=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.B=this.Fa("ytp-ad-toggle-button-icon");this.Y=this.Fa("ytp-ad-toggle-button-untoggled-icon");
  2642. this.G=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Ea=this.Fa("ytp-ad-toggle-button-text");this.C=null;this.ra=!1;this.hide()};
  2643. Mxa=function(a){a.ra&&(a.isToggled()?(g.Vs(a.Y,!1),g.Vs(a.G,!0),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Vs(a.Y,!0),g.Vs(a.G,!1),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
  2644. Nxa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
  2645. return c||[]};
  2646. Oxa=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
  2647. EF=function(a){SB.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
  2648. Pxa=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",xa:"{{reasonsTitle}}"},{I:"div",S:"ytp-ad-info-dialog-feedback-options"},{I:"div",S:"ytp-ad-feedback-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-feedback-dialog-cancel-button",
  2649. xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",xa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.Y=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.ra=this.Fa("ytp-ad-info-dialog-feedback-options");this.Ea=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
  2650. Txa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new uF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-close-button"],"button"),g.N(a,a.j),a.j.init(ZE("button"),c,a.macros),a.j.listen("click",a.p_,a),a.j.Ja(a.element));b.title&&(c=g.lF(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.lF(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Qxa(a,b.reasons);b.cancelLabel&&(c=g.lF(b.cancelLabel),a.updateValue("cancelLabel",
  2651. c),g.OB(a.G,"click",function(){return a.p_()}));
  2652. b.confirmLabel&&(c=g.lF(b.confirmLabel),a.updateValue("confirmLabel",c),g.OB(a.Y,"click",function(){return Rxa(a)}));
  2653. b.undoRenderer&&Sxa(a,b.undoRenderer)};
  2654. Qxa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(null==c)g.JE(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,null==d)g.JE(Error("AdFeedbackReason.endpoint was not set."));else{c=new FF(c,d);g.N(a,c);d=a.ra;var e=c.Hb();d.appendChild(e);a.D.push(c)}}};
  2655. Sxa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new uF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.N(a,a.B),a.B.init(ZE("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.kca,a),a.B.Ja(a.Ea)):g.JE(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
  2656. Rxa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
  2657. 0!==b.length&&(b=b[0].getCommand(),a.layoutId?a.kb.executeCommand(b,a.layoutId):g.IE(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
  2658. FF=function(a,b){this.B=b;this.j=new g.iF({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",xa:g.lF(a)}]});this.C=this.j.Fa("ytp-ad-feedback-dialog-reason-input")};
  2659. GF=function(a,b,c,d){CF.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
  2660. Uxa=function(a,b,c,d,e){jF.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",xa:"{{title}}"},{I:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{I:"div",S:"ytp-ad-info-dialog-message"},{I:"div",S:"ytp-ad-info-dialog-mute-container"},{I:"div",S:"ytp-ad-info-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-info-dialog-confirm-button",xa:"{{confirmLabel}}"}]}]}]}]},
  2661. "ad-info-dialog",b,c,d);this.j=this.B=null;this.Y=this.Fa("ytp-ad-info-dialog-confirm-button");this.Za=this.Fa("ytp-ad-info-dialog-mute-container");this.Wa=this.Fa("ytp-ad-info-dialog-message");this.Na=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ea=e;this.G=null;this.Va=!1;this.ra=null;this.hide()};
  2662. Vxa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Pxa(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.N(a,a.B),a.B.init(ZE("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Ea),a.B.subscribe("a",function(){return a.publish("c")})};
  2663. Wxa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new GF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.N(a,a.D),a.D.init(ZE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Ea),a.D.subscribe("b",function(){return a.publish("c")})};
  2664. Xxa=function(a){a.j&&a.j.listen("click",a.hV,a);g.OB(a.Y,"click",function(){return a.hV()})};
  2665. HF=function(a,b,c,d,e,f){zF.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
  2666. Zxa=function(a,b,c){b=b.dialog&&g.V(b.dialog,Yxa)||null;null==b?g.IE(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Uxa(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.C),g.N(a,a.j),a.j.init(ZE("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
  2667. bya=function(a,b,c){null==a.button?g.IE(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Fv(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.V(b.serviceEndpoint,$xa)||null)?(Zxa(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Fb&&(a.j.show(),aya(a))})):a.button.listen("click",function(){return aya(a)}))};
  2668. aya=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
  2669. IF=function(a,b,c,d,e,f){jF.call(this,a,{I:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
  2670. cya=function(a,b){b&&g.Sf(a.element,kF(a.j,b))};
  2671. JF=function(a,b,c,d,e,f,h){jF.call(this,a,b,c,d,e,f);this.j=h;g.N(this,this.j);this.Va=this.Y=-1};
  2672. KF=function(a){a.j&&-1===a.Y&&(a.Y=a.j.subscribe("h",a.Ao,a),a.Va=a.j.subscribe("g",a.hq,a),a.Ao())};
  2673. LF=function(a){null!=a.j&&-1!==a.Y&&(a.j.Nh(a.Y),a.j.Nh(a.Va),a.Va=-1,a.Y=-1)};
  2674. g.MF=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.onHidden=e;this.delay=new g.xv(this.PH,0,this);g.N(this,this.delay)};
  2675. NF=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
  2676. OF=function(a,b,c,d,e,f){JF.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Za=-1;this.D=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.B=new g.iF({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.N(this,this.B);this.C=this.D?new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-preview-text-modern"):new IF(this.api,this.layoutId,this.interactionLoggingClientData,
  2677. this.kb,"ytp-ad-preview-text");g.N(this,this.C);this.C.Ja(this.B.element);this.ra=this.D?new g.iF({I:"span",S:"ytp-ad-preview-image-modern"}):new g.iF({I:"span",S:"ytp-ad-preview-image"});g.N(this,this.ra);this.G=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.G);this.G.Ja(this.ra.element);this.ra.Ja(this.B.element);this.B.Ja(this.element);this.Ea=new g.MF(this.B,400,!1,100,function(){return h.hide()});
  2678. g.N(this,this.Ea);this.Na=0;this.Wa=!1;this.gb=f;this.hide()};
  2679. dya=function(a){a.Ea.show(100);a.show()};
  2680. eya=function(a,b,c,d,e,f){JF.call(this,a,{I:"div",Ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{I:"div",S:"ytp-flyout-cta-icon-container"},{I:"div",S:"ytp-flyout-cta-body",V:[{I:"div",S:"ytp-flyout-cta-text-container",V:[{I:"div",S:"ytp-flyout-cta-headline-container"},{I:"div",S:"ytp-flyout-cta-description-container"}]},{I:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-icon");
  2681. g.N(this,this.C);this.C.Ja(this.Fa("ytp-flyout-cta-icon-container"));this.api.U().L("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-headline");g.N(this,this.G);this.G.Ja(this.Fa("ytp-flyout-cta-headline-container"));this.D=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-description");g.N(this,this.D);this.D.Ja(this.Fa("ytp-flyout-cta-description-container"));
  2682. a=["ytp-flyout-cta-action-button"];this.api.U().L("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,a);g.N(this,this.B);this.B.Ja(this.Fa("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");iv(this.B.element);this.ra=null;this.Ea=0;this.Na=f;this.hide()};
  2683. fya=function(a,b,c,d,e){jF.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.C=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-like-button"]);g.N(this,this.C);this.C.Ja(this.element);this.B=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.N(this,this.B);this.B.Ja(this.element);
  2684. this.D=new g.MF(this,400,!1,500,function(){return f.hide()});
  2685. g.N(this,this.D);this.hide()};
  2686. PF=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.qa=f;this.K=!1;this.j=null;0<b&&(this.j=new g.xv(this.vW,b,this),g.N(this,this.j));this.G=new g.xv(this.vW,c,this);g.N(this,this.G);this.Z=Qka(this.B,e,1,d);g.N(this,this.Z);this.N=Qka(this.B,0,d,1);g.N(this,this.N);this.D=new SB;g.N(this,this.D)};
  2687. gya=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ne(a,"unknown result type")}};
  2688. hya=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Ne(a,"Unknown method type")}};
  2689. jya=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?"none"===getComputedStyle(e).display?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}!0===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):!1===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
  2690. d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);EA("ISDSTAT",c);iya(c,"i.s_",{sea:"sk",metadata:b,states:d});return c};
  2691. kya=function(a,b){var c=[];b?!0===b.isTrusted?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):!1===b.isTrusted?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");iya(0,"a.s_",{metadata:a,states:c},!1);EA("ASDSTAT",0)};
  2692. iya=function(a,b,c,d){d=void 0===d?!0:d;var e,f,h={detected:0===a,source:""+b+(null!=(e=c.sea)?e:"")+(null!=(f=c.E6)?f:""),detectionStates:c.states,durationMs:c.D6};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.qC("biscottiBasedDetection",h);d&&(a=gya(a),b=hya(b),EA("CATSTAT",Number(g.FA("CATSTAT",0))&~(3<<b)|a<<b))};
  2693. lya=function(a){return a?"layout: "+a.layoutType:""};
  2694. mya=function(a){.1>Math.random()&&g.JE(Error(a))};
  2695. QF=function(a,b,c){return a?!0:(g.JE(new g.eC(b,c)),!1)};
  2696. RF=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.eC(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=lya(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.JE(a)}};
  2697. g.SF=function(a,b){this.state=a;this.bB=b};
  2698. UF=function(a,b){return g.TF(a.state,b)&&!g.TF(a.bB,b)?1:!g.TF(a.state,b)&&g.TF(a.bB,b)?-1:0};
  2699. g.VF=function(a,b){return 0<UF(a,b)};
  2700. WF=function(a,b,c,d,e,f){JF.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ea=!1;this.Wa=f;this.G=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.Za=!1;this.D=new g.iF({I:"span",Ka:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.N(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.gb=new g.MF(this.D,500,!1,100,function(){return h.hide()});
  2701. g.N(this,this.gb);this.Na=new PF(this.D.element,15E3,5E3,.5,.5,this.G);g.N(this,this.Na);this.hide()};
  2702. oya=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.V(a.clickCommand,g.XF)&&g.V(a.clickCommand,g.XF).commands||[]).some(function(b){return b.adLifecycleCommand?nya(b.adLifecycleCommand):!1})};
  2703. nya=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
  2704. YF=function(a,b,c,d,e,f){JF.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
  2705. pya=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ea.hide():a.B.hide()),b?(a=a.C,a.gb.show(),a.show()):a.C.show())};
  2706. qya=function(a,b,c,d){uF.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
  2707. ZF=function(a,b,c,d,e,f){jF.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Fa("ytp-ad-simple-ad-badge");this.hide()};
  2708. $F=function(a,b,c,d,e){e=void 0===e?!1:e;$E.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.NL=e};
  2709. aG=function(a,b){g.aF.call(this);this.api=a;this.durationMs=b;this.j=null;this.Ed=new SB(this);g.N(this,this.Ed);this.B=rya;this.Ed.T(this.api,"presentingplayerstatechange",this.v5);this.j=this.Ed.T(this.api,"onAdPlaybackProgress",this.Sc)};
  2710. bG=function(a){g.aF.call(this);this.j=!1;this.cj=0;this.Ed=new SB(this);g.N(this,this.Ed);this.durationMs=a;this.We=new g.rg(100);g.N(this,this.We);this.Ed.T(this.We,"tick",this.Sc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
  2711. g.cG=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
  2712. g.dG=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
  2713. eG=function(a,b,c,d,e,f){JF.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
  2714. sya=function(a,b,c,d){IF.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
  2715. fG=function(a,b){this.B=a;this.j=b};
  2716. tya=function(a,b){return a.B+b*(a.j-a.B)};
  2717. gG=function(a,b,c){return a.j-a.B?g.Ce((b-a.B)/(a.j-a.B),0,1):null!=c?c:Infinity};
  2718. hG=function(a,b){g.iF.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.N(this,this.B);this.progressBar=this.Fa("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
  2719. iG=function(a,b,c,d,e,f){jF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Fa("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
  2720. this.j=this.Fa("ytp-ad-player-overlay-instream-info");this.D=null;uya(this)&&(a=Bf("div"),g.Fv(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new sya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(ZE("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.D=a);this.G=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ea=this.Fa("ytp-ad-player-overlay-progress-bar");
  2721. this.ra=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.N(this,this.B);this.hide()};
  2722. uya=function(a){a=a.api.U();return g.jG(a)&&a.B};
  2723. vya=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.lo("/sharing_services",a);g.yD(d)};
  2724. g.kG=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
  2725. lG=function(a){this.j=new aw(a)};
  2726. wya=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return("WEB"===g.FA("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.FA("INNERTUBE_CLIENT_NAME"))&&a};
  2727. mG=function(a){if(g.FA("LOGGED_IN",!0)&&wya()){var b=g.FA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.fo(window.location.href);c&&b.push(c);c=g.fo(a);g.Fb(b,c)||!c&&dc(a,"/")?(b=go(a),(b=zfa(b))?(b=mwa(b),b=(b=g.mB(b)||null)?NA(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;wya()?(d||(d=g.FA("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&lwa(a,b)}};
  2728. g.xya=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.lo(a,b);mG(a);c=g.he(a+c);d=d.location;c=me(c);void 0!==c&&(d.href=c)};
  2729. g.yya=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.FA("EVENT_ID");d&&(b.ei||(b.ei=d));b&&lwa(a,b);c||(mG(a),g.xya(a))};
  2730. g.nG=function(a,b,c,d,e){e=void 0===e?!1:e;c&&lwa(a,c);c=g.he(a);var f=g.be(c);a!=f&&KA(Error("Unsafe window.open URL: "+a));a=f;b=b||af(a).toString(36);try{var h=NA(a);if(g.aB("replace_client_url_parsing_with_server_signal")){if(e){zya(a,b);return}}else if("2"===(null==h?void 0:h.ase)){zya(a,b);return}}catch(l){g.IA(l)}mG(a);g.Qe(c,b,d)};
  2731. zya=function(a,b){a=Wta(a);mG(a);g.Qe(a,b,"attributionsrc")};
  2732. Bya=function(a){Aya=a&&a.data};
  2733. Dya=function(a){Cya=a&&a.data};
  2734. Fya=function(a){Eya=a&&a.data};
  2735. Hya=function(){Gya=Eya=Cya=Aya=null};
  2736. Jya=function(){var a=void 0===a?window.location.href:a;if(g.aB("kevlar_disable_theme_param"))return null;rn(g.eo(5,a));try{var b=g.OA(a).theme;return Iya.get(b)||null}catch(c){}return null};
  2737. oG=function(){this.j={};if(this.B=eqa()){var a=g.mB("CONSISTENCY");a&&Kya(this,{encryptedTokenJarContents:a})}};
  2738. Kya=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
  2739. a.B&&g.lB("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
  2740. pG=function(){var a=g.FA("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.FA("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Lya(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
  2741. Lya=function(a){return void 0===a.localStorage?new oC("yt-client-location"):a.localStorage};
  2742. g.qG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.FA("INNERTUBE_CONTEXT");if(!d)return g.IE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.nd(d);g.aB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.FA("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=
  2743. window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.bC();var h="USER_INTERFACE_THEME_LIGHT";g.cC(0,165)?h="USER_INTERFACE_THEME_DARK":g.cC(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.aB("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
  2744. (h="USER_INTERFACE_THEME_DARK");f=f?h:Jya()||h;e.userInterfaceTheme=f;if(!b){if(f=ura())e.connectionType=f;g.aB("web_log_effective_connection_type")&&(f=wra())&&(d.client.effectiveConnectionType=f)}var l;if(g.aB("web_log_memory_total_kbytes")&&(null==(l=g.Ta.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ta.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.aB("web_gcf_hashes_innertube")&&(f=Ssa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||
  2745. {},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.OA(g.Ta.location.href);!g.aB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ta.location.href},g.aB("kevlar_woffle")&&ira.instance&&(m=ira.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
  2746. "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=jra(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.aB("web_lr_app_quality_killswitch")&&(m=g.FA("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.FA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.aB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==
  2747. typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=Lpa())?e.experimentsToken=n:delete e.experimentsToken;n=Mpa();oG.instance||(oG.instance=new oG);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.cd(oG.instance.j)});!g.aB("web_prequest_context_killswitch")&&(n=g.FA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.bC();n=g.cC(0,58);e=e.get("gsml","");d.user=
  2748. Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.aB("warm_op_csn_cleanup")?c&&(b=g.FE())&&(d.clientScreenNonce=b):!b&&(b=g.FE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Xa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;pG.getInstance().setLocationOnInnerTubeContext(d);try{var p=UA(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),
  2749. w=v.next().value,A=v.next().value;p=w;q=A;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}var D;if(g.aB("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(D=d.client)?void 0:D.clientName)){var F=g.FA("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.IE(H)}return d};
  2750. Oya=function(a,b){if(!a)return!1;var c,d=null==(c=g.V(a,Mya))?void 0:c.signal;if(d&&b.Wx)return!!b.Wx[d];var e;if((c=null==(e=g.V(a,Nya))?void 0:e.request)&&b.nO)return!!b.nO[c];for(var f in a)if(b.gO[f])return!0;return!1};
  2751. Pya=function(a){var b={"Content-Type":"application/json"};g.FA("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.FA("EOM_VISITOR_DATA"):g.FA("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.FA("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.FA("LOGGED_IN",!1);g.FA("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.FA("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.FA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.FA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
  2752. a),(a=g.FA("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.FA("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
  2753. Qya=function(){this.j={}};
  2754. rG=function(){this.mappings=new Qya};
  2755. sG=function(a){return function(){return new a}};
  2756. Sya=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Rya[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Rya).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
  2757. c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
  2758. d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
  2759. g.tG=function(a){return"/youtubei/v1/"+Sya(a)};
  2760. Tya=function(){};
  2761. uG=function(){};
  2762. vG=function(){};
  2763. wG=function(a){return g.Xa("ytcsi."+(a||"")+"data_")||Uya(a)};
  2764. Vya=function(){var a=wG();a.info||(a.info={});return a.info};
  2765. xG=function(a){a=wG(a);a.metadata||(a.metadata={});return a.metadata};
  2766. yG=function(a){a=wG(a);a.tick||(a.tick={});return a.tick};
  2767. zG=function(a){a=wG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
  2768. Wya=function(a){a=zG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
  2769. AG=function(a){var b=wG(a).nonce;b||(b=g.VD(16),wG(a).nonce=b);return b};
  2770. Uya=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b};
  2771. Xya=function(){var a=g.Xa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a};
  2772. BG=function(a){a=a||"";var b=Yya();if(b[a])return b[a];var c=Xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
  2773. Zya=function(a){a=a||"";var b=Yya();b[a]&&delete b[a];var c=Xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
  2774. Yya=function(){var a=g.Xa("ytcsi.reference");if(a)return a;Xya();return g.Xa("ytcsi.reference")};
  2775. CG=function(a){return $ya[a]||"LATENCY_ACTION_UNKNOWN"};
  2776. aza=function(a,b){iD.call(this,1,arguments);this.We=b};
  2777. DG=function(){this.j=0};
  2778. IG=function(){DG.instance||(DG.instance=new DG);return DG.instance};
  2779. KG=function(a,b){JG[b]=JG[b]||{count:0};var c=JG[b];c.count++;c.time=(0,g.EC)();a.j||(a.j=g.jC(0,function(){var d=(0,g.EC)(),e;for(e in JG)JG[e]&&6E4<d-JG[e].time&&delete JG[e];a&&(a.j=0)},5E3));
  2780. return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.eC("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.JE(c)),!0):!1};
  2781. bza=function(){this.timing={};this.clearResourceTimings=function(){};
  2782. this.webkitClearResourceTimings=function(){};
  2783. this.mozClearResourceTimings=function(){};
  2784. this.msClearResourceTimings=function(){};
  2785. this.oClearResourceTimings=function(){}};
  2786. cza=function(){var a;if(g.aB("csi_use_performance_navigation_timing")||g.aB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==LG?void 0:null==(a=LG.getEntriesByType)?void 0:null==(b=a.call(LG,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=MG(e.requestStart),e.responseEnd=MG(e.responseEnd),e.redirectStart=MG(e.redirectStart),e.redirectEnd=MG(e.redirectEnd),e.domainLookupEnd=MG(e.domainLookupEnd),e.connectStart=MG(e.connectStart),
  2787. e.connectEnd=MG(e.connectEnd),e.responseStart=MG(e.responseStart),e.secureConnectionStart=MG(e.secureConnectionStart),e.domainLookupStart=MG(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=LG.timing}else a=g.aB("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(LG.timing)):LG.timing;return a};
  2788. MG=function(a){return Math.round(NG()+a)};
  2789. NG=function(){return(g.aB("csi_use_time_origin")||g.aB("csi_use_time_origin_tvhtml5"))&&LG.timeOrigin?Math.floor(LG.timeOrigin):LG.timing.navigationStart};
  2790. PG=function(a,b){OG("_start",a,b)};
  2791. aH=function(a,b,c){c=void 0===c?!1:c;if(!g.aB("web_csi_action_sampling_enabled")||!wG(b).actionDisabled)if(g.aB("web_csi_via_jspb")&&!c){c=new qA;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":S(c,1,X[a[e]]);break;case "clientActionNonce":Q(c,2,a[e]);break;case "clientScreenNonce":Q(c,4,a[e]);break;case "loadType":Q(c,3,a[e]);break;case "isPrewarmedLaunch":Tk(c,92,a[e]);break;case "isFirstInstall":Tk(c,55,a[e]);break;case "networkType":S(c,
  2792. 5,QG[a[e]]);break;case "connectionType":S(c,26,RG[a[e]]);break;case "detailedConnectionType":S(c,27,SG[a[e]]);break;case "isVisible":Tk(c,6,a[e]);break;case "playerType":S(c,7,TG[a[e]]);break;case "clientPlaybackNonce":Q(c,8,a[e]);break;case "adClientPlaybackNonce":Q(c,28,a[e]);break;case "previousCpn":Q(c,77,a[e]);break;case "targetCpn":Q(c,76,a[e]);break;case "isMonetized":Tk(c,9,a[e]);break;case "isPrerollAllowed":Tk(c,16,a[e]);break;case "isPrerollShown":Tk(c,17,a[e]);break;case "adType":Q(c,
  2793. 12,a[e]);break;case "adTypesAllowed":Q(c,36,a[e]);break;case "adNetworks":Q(c,37,a[e]);break;case "previousAction":S(c,13,X[a[e]]);break;case "isRedSubscriber":Tk(c,14,a[e]);break;case "serverTimeMs":Uk(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":Q(c,20,a[e]);break;case "targetVideoId":Q(c,78,a[e]);break;case "adBreakType":S(c,21,UG[a[e]]);break;case "isNavigation":Tk(c,25,a[e]);break;case "viewportHeight":Uk(c,29,a[e]);break;case "viewportWidth":Uk(c,30,a[e]);break;
  2794. case "screenHeight":Uk(c,84,a[e]);break;case "screenWidth":Uk(c,85,a[e]);break;case "browseId":Q(c,31,a[e]);break;case "isCacheHit":Tk(c,32,a[e]);break;case "isSsdai":Tk(c,125,a[e]);break;case "httpProtocol":Q(c,33,a[e]);break;case "transportProtocol":Q(c,34,a[e]);break;case "searchQuery":Q(c,41,a[e]);break;case "isContinuation":Tk(c,42,a[e]);break;case "availableProcessors":Uk(c,43,a[e]);break;case "sdk":Q(c,44,a[e]);break;case "isLocalStream":Tk(c,45,a[e]);break;case "navigationRequestedSameUrl":Tk(c,
  2795. 64,a[e]);break;case "shellStartupDurationMs":Uk(c,70,a[e]);break;case "appInstallDataAgeMs":Uk(c,73,a[e]);break;case "latencyActionError":S(c,71,VG[a[e]]);break;case "actionStep":Uk(c,79,a[e]);break;case "jsHeapSizeLimit":Wk(c,80,a[e]);break;case "totalJsHeapSize":Wk(c,81,a[e]);break;case "usedJsHeapSize":Wk(c,82,a[e]);break;case "sourceVideoDurationMs":Wk(c,90,a[e]);break;case "videoOutputFrames":Wk(c,93,a[e]);break;case "isResume":Tk(c,104,a[e]);break;case "debugTicksExcluded":Tk(c,105,a[e]);break;
  2796. case "abandonedPing":Tk(c,113,a[e]);break;case "retries":Uk(c,123,a[e]);break;case "adPrebufferedTimeSecs":Uk(c,39,a[e]);break;case "isLivestream":Tk(c,47,a[e]);break;case "liveStreamMode":S(c,91,WG[a[e]]);break;case "adCpn2":Q(c,48,a[e]);break;case "adDaiDriftMillis":Wk(c,49,a[e]);break;case "videoStreamType":S(c,53,XG[a[e]]);break;case "playbackRequiresTap":Tk(c,56,a[e]);break;case "performanceNavigationTiming":Tk(c,67,a[e]);break;case "transactionType":S(c,74,YG[a[e]]);break;case "playerRotationType":S(c,
  2797. 101,ZG[a[e]]);break;case "allowedPreroll":Tk(c,10,a[e]);break;case "shownPreroll":Tk(c,11,a[e]);break;case "getHomeRequestId":Q(c,57,a[e]);break;case "getSearchRequestId":Q(c,60,a[e]);break;case "getPlayerRequestId":Q(c,61,a[e]);break;case "getWatchNextRequestId":Q(c,62,a[e]);break;case "getBrowseRequestId":Q(c,63,a[e]);break;case "getLibraryRequestId":Q(c,66,a[e]);break;case "isTransformerEnabledForFeature":Tk(c,106,a[e]);break;case "sourceVideoFrameCount":Wk(c,109,a[e]);break;default:dza.includes(f)&&
  2798. g.IA(new g.eC("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.IA(Error("Codegen laipb translator failed to set "+f))}}$G(c,b)}else c=BG(b||""),QD(c.info,a),a.loadType&&(c=a.loadType,xG(b).loadType=c),QD(Wya(b),a),c=AG(b),b=wG(b).cttAuthInfo,IG().info(a,c,b)};
  2799. $G=function(a,b){if(!g.aB("web_csi_action_sampling_enabled")||!wG(b).actionDisabled){var c=Rk(a,3);c&&(xG(b).loadType=c);BG(b||"").jspbInfo.push(a);c=AG(b);b=wG(b).cttAuthInfo;IG().jspbInfo(a,c,b)}};
  2800. eza=function(){var a,b,c,d;return(null!=(d=null==cE().resolve(new $D(eD))?void 0:null==(a=fD())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
  2801. OG=function(a,b,c){if(!g.aB("web_csi_action_sampling_enabled")||!wG(c).actionDisabled){var d=AG(c),e;if(e=g.aB("web_csi_debug_sample_enabled")&&d){(null==cE().resolve(new $D(eD))?0:fD())&&!fza&&(fza=!0,OG("gcfl",(0,g.EC)(),c));var f,h,l;e=(null==cE().resolve(new $D(eD))?void 0:null==(f=fD())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=eza();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=0!==Owa(d)%e,wG(c).debugTicksExcludedLogged||
  2802. (g.aB("web_csi_via_jspb")?(f=new qA,f=Tk(f,105,e),$G(f,c)):(f={},f.debugTicksExcluded=e,aH(f,c))),wG(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if("_"!==a[0]&&(e=a,f=b,LG.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),void 0===f||g.aB("web_csi_disable_alt_time_performance_mark"))LG.mark(e);else{f-=LG.timeOrigin||LG.timing.navigationStart;try{LG.mark(e,{startTime:f})}catch(m){}}e=BG(c||"");e.tick[a]=b||(0,g.EC)();if(e.callback&&e.callback[a])for(e=g.u(e.callback[a]),f=e.next();!f.done;f=
  2803. e.next())f=f.value,f();e=zG(c);e.gelTicks&&(e.gelTicks[a]=!0);f=yG(c);e=b||(0,g.EC)();g.aB("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=wG(c).cttAuthInfo;"_start"===a?(a=IG(),KG(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.aB("web_csi_via_jspb")?(a=new dpa,Q(a,1,d),d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA,Ik(d,dpa,6,BE,a),AE("latencyActionBaselined",d,b)):g.qC("latencyActionBaselined",{clientActionNonce:d},b))):IG().tick(a,d,b,f);gza(c);return e}}};
  2804. hza=function(){var a,b=null==(a=LG.getEntriesByType)?void 0:a.call(LG,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=LG.clearMarks)||d.call(LG,c.name)}})};
  2805. iza=function(){switch(Lqa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
  2806. lza=function(a){var b=cza(),c=NG(),d=g.FA("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.aB("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(OG("srt",b.responseStart),1!==a.prerender&&PG(c));a=jza();0<a&&OG("fpt",a);a=cza();a.isPerformanceNavigationTiming&&aH({performanceNavigationTiming:!0},void 0);OG("nreqs",a.requestStart,void 0);OG("nress",a.responseStart,void 0);OG("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(OG("nrs",a.redirectStart,void 0),OG("nre",a.redirectEnd,void 0));
  2807. 0<a.domainLookupEnd-a.domainLookupStart&&(OG("ndnss",a.domainLookupStart,void 0),OG("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(OG("ntcps",a.connectStart,void 0),OG("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=NG()&&0<a.connectEnd-a.secureConnectionStart&&(OG("nstcps",a.secureConnectionStart,void 0),OG("ntcpe",a.connectEnd,void 0));LG&&"getEntriesByType"in LG&&kza()};
  2808. mza=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
  2809. var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
  2810. nza=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);Re(window)&&a.setAttribute("nonce",Re(window));return c?(a=LG.getEntriesByName(c))&&a[0]&&(a=a[0],c=NG(),OG("rsf_"+b,c+Math.round(a.fetchStart)),OG("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
  2811. pza=function(){var a=[];if(document.querySelector&&LG&&LG.getEntriesByName)for(var b in oza)if(oza.hasOwnProperty(b)){var c=oza[b];nza(b,c)&&a.push(c)}return a};
  2812. kza=function(){var a=window.location.protocol,b=LG.getEntriesByType("resource");b=g.Pt(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
  2813. (b=bs(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(OG("wffs",MG(b.startTime)),OG("wffe",MG(b.responseEnd)))};
  2814. qza=function(a,b,c){LG&&LG.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?LG.measure(a,b,c):b?LG.measure(a,b):LG.measure(a))};
  2815. rza=function(a){var b=bH("aft",a);if(b)return b;b=g.FA((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=bH(b[d],a);if(e)return e}return NaN};
  2816. sza=function(a,b){g.Va("ytglobal.timing"+(b||"")+"ready_",a)};
  2817. bH=function(a,b){if(a=yG(b)[a])return"number"===typeof a?a:a[a.length-1]};
  2818. gza=function(a){var b=bH("_start",a),c=rza(a);b&&c&&!tza&&(kD(uza,new aza(Math.round(c-b),a)),tza=!0)};
  2819. jza=function(){if(LG.getEntriesByType){var a=LG.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return MG(a.startTime)}a=LG.timing;
  2820. return a.B$?Math.max(0,a.B$):0};
  2821. cH=function(a){Uya(a);vza();hza();a||(g.FA("TIMING_ACTION")&&EA("PREVIOUS_ACTION",g.FA("TIMING_ACTION")),EA("TIMING_ACTION",""))};
  2822. wza=function(){var a=["pbs","pbu"];g.JA(function(){BG("").info.actionType="watch";a&&EA("TIMING_AFT_KEYS",a);EA("TIMING_ACTION","watch");if(g.aB("web_csi_via_jspb")){var b=g.FA("TIMING_INFO",{}),c=new qA;b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":rA(c,oA(nA(d),String(e)));break;case "GetGuide_rid":rA(c,oA(nA(d),String(e)));break;case "GetHome_rid":rA(c,oA(nA(d),String(e)));break;case "GetPlayer_rid":rA(c,
  2823. oA(nA(d),String(e)));break;case "GetSearch_rid":rA(c,oA(nA(d),String(e)));break;case "GetSettings_rid":rA(c,oA(nA(d),String(e)));break;case "GetTrending_rid":rA(c,oA(nA(d),String(e)));break;case "GetWatchNext_rid":rA(c,oA(nA(d),String(e)));break;case "yt_red":Tk(c,14,!!e);break;case "yt_ad":Tk(c,9,!!e)}}$G(c);c=new qA;c=Tk(c,25,!0);c=S(c,1,X[CG(g.FA("TIMING_ACTION"))]);(b=g.FA("PREVIOUS_ACTION"))&&S(c,13,X[CG(b)]);(b=g.FA("CLIENT_PROTOCOL"))&&Q(c,33,b);(b=g.FA("CLIENT_TRANSPORT"))&&Q(c,34,b);(b=g.FE())&&
  2824. "UNDEFINED_CSN"!==b&&Q(c,4,b);b=iza();1!==b&&-1!==b||Tk(c,6,!0);b=Vya();(d="cold"===xG().loadType)||(d="cold"===b.yt_lt);if(d&&(Q(c,3,"cold"),lza(b),b=pza(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new epa,Q(e,1,d),Kk(c,83,epa,e);$G(c)}else{c=mza(g.FA("TIMING_INFO",{}));0<Object.keys(c).length&&aH(c);c={isNavigation:!0,actionType:CG(g.FA("TIMING_ACTION"))};if(b=g.FA("PREVIOUS_ACTION"))c.previousAction=CG(b);if(b=g.FA("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.FA("CLIENT_TRANSPORT"))c.transportProtocol=
  2825. b;(b=g.FE())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=iza();if(1===b||-1===b)c.isVisible=!0;b="cold"===xG().loadType;d=Vya();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",lza(Vya()),b=pza(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});aH(c)}c=zG();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=Wya();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if("cold"===xG().loadType&&
  2826. ("cold"===c.loadType||"cold"===d)){d=yG();e=zG();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===typeof d[h])OG(h,bH(h));else if(g.aB("log_repeated_ytcsi_ticks")){f=g.u(d[h]);for(var l=f.next();!l.done;l=f.next())OG(h.slice(1),l.value)}h={};d=!1;b=g.u(b);for(e=b.next();!e.done;e=b.next())d=e.value,QD(c,d),QD(h,d),d=!0;d&&aH(h)}sza(!0);h=g.FA("TIMING_ACTION");g.Xa("ytglobal.timingready_")&&h&&dH()&&rza()&&gza()})()};
  2827. xza=function(){var a=void 0===a?{}:a;g.JA(function(){dH()&&eH("aa",void 0,void 0);Zya();cH();sza(!1);a.cttAuthInfo&&(wG().cttAuthInfo=a.cttAuthInfo);EA("TIMING_AFT_KEYS",[]);a.Ppb?g.fH({loadType:"hot"}):g.fH({loadType:"warm"});EA("TIMING_ACTION","");delete g.FA("TIMING_INFO",{}).yt_lt;g.JA(PG)(a.startTime,void 0)})()};
  2828. gH=function(a,b){b=void 0===b?{}:b;g.JA(function(){yza(a);var c=b.sampleRate;if(!g.aB("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=AG(a);c=0!==Owa(d)%c}c&&(wG(a).actionDisabled=!0);BG(a||"").info.actionType=a;b.cttAuthInfo&&(wG(a).cttAuthInfo=b.cttAuthInfo);EA(a+"TIMING_ACTION",a);g.JA(PG)(b.startTime,a);c={actionType:CG(a)};b.Xpb&&(c.previousAction=CG(g.FA("TIMING_ACTION")));(d=g.FE())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.fH(c,a);sza(!0,a)})()};
  2829. yza=function(a){g.JA(function(){dH(a)&&eH("aa",void 0,a);Zya(a);cH(a)})()};
  2830. dH=function(a){return g.JA(function(){return hH("_start",a)})()};
  2831. g.fH=function(a,b,c){g.JA(aH)(a,b,void 0===c?!1:c)};
  2832. eH=function(a,b,c){return g.JA(OG)(a,b,c)};
  2833. zza=function(a){g.JA(qza)("action_finished",a,void 0)};
  2834. hH=function(a,b){return g.JA(function(){var c=yG(b);return a in c})()};
  2835. Bza=function(a){if(!g.aB("universal_csi_network_ticks"))return"";a=rn(g.eo(5,a))||"";for(var b=Object.keys(Aza),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
  2836. Eza=function(a){if(!g.aB("universal_csi_network_ticks"))return function(){};
  2837. var b=Aza[a];return b?(Cza(b),function(){var c=g.aB("universal_csi_network_ticks")?(c=Dza[a])?Cza(c):!1:!1;return c}):function(){}};
  2838. Cza=function(a,b){return g.JA(function(){if(hH(a,b))return!1;eH(a,void 0,b);return!0})()};
  2839. iH=function(a,b,c){g.JA(function(){if(!dH(c)||hH(a,c))return!1;eH(a,b,c);return!0})()};
  2840. Fza=function(){g.JA(function(){var a=AG();requestAnimationFrame(function(){setTimeout(function(){a===AG()&&eH("ftl",void 0,void 0)},0)})})()};
  2841. jH=function(a,b,c,d){this.EO=a;this.hh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Wx||(a.Wx={});a.Wx=Object.assign({},Gza,a.Wx)};
  2842. Hza=function(a,b,c,d){if(void 0!==jH.instance){if(d=jH.instance,a=[a!==d.EO,b!==d.hh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.eC("InnerTubeTransportService is already initialized",a);
  2843. }else jH.instance=new jH(a,b,c,d)};
  2844. kH=function(a,b,c){var d=void 0===d?hD:d;var e=Iza(a,b);return e?new g.kg(function(f,h){var l,m,n,p,q;return g.G(function(r){switch(r.j){case 1:return g.z(r,e,2);case 2:l=r.B;m=l.G(b,c,d);if(!m){h(new g.eC("Error: Failed to build request for command.",b));r.Ia(0);break}mG(m.input);p="cors"===(null==(n=m.Ju)?void 0:n.mode)?"cors":void 0;if(a.j.O1){q=Jza(a,m.config,p);r.Ia(4);break}return g.z(r,Kza(a,m.config,p),5);case 5:q=r.B;case 4:f(Lza(a,m,q)),g.Aa(r)}})}):ng(new g.eC("Error: No request builder found for command.",
  2845. b))};
  2846. g.lH=function(a,b,c,d,e){function f(){}
  2847. e=void 0===e?{Ov:{identity:hD}}:e;var h=void 0===h?!0:h;f=Eza(Bza(c));b.context||(b.context=g.qG(d,h));return new g.kg(function(l){var m,n,p,q,r,t,v,w,A,D;return g.G(function(F){switch(F.j){case 1:m=fqa(c);n=RA(m)?"same-origin":"cors";if(a.j.O1){p=Jza(a,e,n);F.Ia(2);break}return g.z(F,Kza(a,e,n),3);case 3:p=F.B;case 2:if(!g.aB("owl_pl_await")){F.Ia(4);break}r=!(null==(q=b)||!q.playbackContext);v=null==(t=b)?void 0:t.videoId;if(!r||!v){F.Ia(4);break}w=g.Xa("yt.jnn.mod");if(!w){g.IE(Error("owl_pl not found"));
  2848. F.Ia(4);break}if(w.isr()){F.Ia(7);break}return g.z(F,w.rea(),7);case 7:w.mawst(v);case 4:var H=p;A=gqa(fqa(c),H);D={input:A,Ju:hqa(A),Jp:b,config:e};l(Lza(a,D,p,f));g.Aa(F)}})})};
  2849. Nza=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(Mza);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
  2850. Lza=function(a,b,c,d){d=void 0===d?function(){}:d;
  2851. var e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L,M,R,ea,la,ka,ia,sa,aa,U,Ha,x,ba;return g.G(function(La){switch(La.j){case 1:La.Ia(2);break;case 3:if((e=La.B)&&!e.isExpired())return La.return(Promise.resolve(e.j()));case 2:if(!(null==(f=b)?0:null==(h=f.Jp)?0:h.context)){La.Ia(4);break}l=b.Jp.context;La.Ia(5);break;case 5:m=g.u([]),n=m.next();case 7:if(n.done){La.Ia(4);break}p=n.value;return g.z(La,p.Bqb(l),8);case 8:n=m.next();La.Ia(7);break;case 4:if(null==(q=a.C)||!q.Uqb(b.input,b.Jp)){La.Ia(11);break}return g.z(La,
  2852. a.C.Vpb(b.input,b.Jp),12);case 12:return r=La.B,g.aB("kevlar_process_local_innertube_responses_killswitch")||Nza(a,r,b),La.return(r);case 11:return(w=null==(v=b.config)?void 0:v.Zi)&&a.B.has(w)?t=a.B.get(w):(A=JSON.stringify(b.Jp),H=null!=(F=null==(D=b.Ju)?void 0:D.headers)?F:{},b.Ju=Object.assign({},b.Ju,{headers:Object.assign({},H,c)}),L=Object.assign({},b.Ju),"POST"===b.Ju.method&&(L=Object.assign({},L,{body:A})),(null==(M=b.config)?0:M.gda)&&eH(b.config.gda),R=function(){return a.hh.fetch(b.input,
  2853. L,b.config)},t=R(),w&&a.B.set(w,t)),g.z(La,t,13);
  2854. case 13:if((ea=La.B)&&"error"in ea&&(null==(la=ea)?0:null==(ka=la.error)?0:ka.details))for(ia=ea.error.details,sa=g.u(ia),aa=sa.next();!aa.done;aa=sa.next())U=aa.value,(Ha=U["@type"])&&-1<Oza.indexOf(Ha)&&(delete U["@type"],ea=U);w&&a.B.has(w)&&a.B.delete(w);(null==(x=b.config)?0:x.kda)&&eH(b.config.kda);if(ea||null==(ba=a.C)||!ba.fob(b.input,b.Jp)){La.Ia(14);break}return g.z(La,a.C.Upb(b.input,b.Jp),15);case 15:ea=La.B;case 14:return Nza(a,ea,b),d(),La.return(ea||void 0)}})};
  2855. Iza=function(a,b){a:{a=a.EO;var c,d=null==(c=g.V(b,Mya))?void 0:c.signal;if(d&&a.Wx&&(c=a.Wx[d])){var e=c();break a}var f;if((c=null==(f=g.V(b,Nya))?void 0:f.request)&&a.nO&&(f=a.nO[c])){e=f();break a}for(e in b)if(a.gO[e]&&(b=a.gO[e])){e=b();break a}e=void 0}if(void 0!==e)return Promise.resolve(e)};
  2856. Kza=function(a,b,c){var d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Ov)?void 0:e.identity)||hD;m=null==(h=b)?void 0:null==(l=h.Ov)?void 0:l.sessionIndex;var q=mg(a.j.jE(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Pya(c),n)))})};
  2857. Jza=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Ov)?void 0:d.identity)||hD,f;b=null==b?void 0:null==(f=b.Ov)?void 0:f.sessionIndex;a=a.j.jE(e,{sessionIndex:b});return Object.assign({},Pya(c),a)};
  2858. mH=function(){};
  2859. nH=function(){};
  2860. oH=function(){};
  2861. pH=function(){};
  2862. qH=function(){};
  2863. rH=function(){};
  2864. g.sH=function(a,b){var c=g.Ja.apply(2,arguments);a=void 0===a?0:a;g.eC.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
  2865. tH=function(a){this.j=a};
  2866. Pza=function(a,b,c){if(a.j){var d=rn(g.eo(5,oo(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.aB("wug_networking_gzip_request")&&(a=Ata(c));return new window.Request(b,a)};
  2867. g.uH=function(a,b){if(!Qza){var c=cE();yua(c,{jG:Rza,L2:tH});var d={gO:{feedbackEndpoint:sG(oH),modifyChannelNotificationPreferenceEndpoint:sG(pH),playlistEditEndpoint:sG(qH),subscribeEndpoint:sG(mH),unsubscribeEndpoint:sG(nH),webPlayerShareEntityServiceEndpoint:sG(rH)}},e=pG.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=kra());void 0===b&&(b=c.resolve(Rza));Hza(d,b,a,f);yua(c,{jG:Sza,NT:jH.instance});Qza=c.resolve(Sza)}return Qza};
  2868. Vza=function(){if(!g.aB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.aB("disable_biscotti_fetch_entirely_for_all_web_clients")&&sqa()){var a=g.FA("PLAYER_VARS",{});if("1"!=g.kd(a,"privembed",!1)&&!wqa(a)){var b=function(){Tza=!0;"google_ad_status"in window?EA("DCLKSTAT",1):EA("DCLKSTAT",2)};
  2869. try{g.kua("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Uza.push(g.gv.Ni(function(){if(!(Tza||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=mua[c];d&&g.ND(d)}}catch(e){}Tza=!0;EA("DCLKSTAT",3)}},5E3))}}};
  2870. vH=function(){var a=Number(g.FA("DCLKSTAT",0));return isNaN(a)?0:a};
  2871. xH=function(a,b,c){this.network=a;this.B=c;this.j=null;b&&(this.j=wH(this,0))};
  2872. wH=function(a,b,c){c=void 0===c?0:c;var d,e,f,h,l,m,n,p,q,r,t,v;return g.G(function(w){switch(w.j){case 1:return g.z(w,new Promise(function(A){iC(A,0,b)}),2);
  2873. case 2:d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(e=Oo().j)d.interpreterHash=e;g.Ba(w,3);return g.z(w,Wza(a,d),5);case 5:f=w.B;if(!f)throw Error("Fetching Attestation challenge returned falsy");if(!f.challenge)throw Error("Missing Attestation challenge");h=f.challenge;l=Xza(h);if("c1a"in l&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ca(w,4);break;case 3:m=g.Da(w);g.JE(m);c++;if(5<=c)return g.JE(Error("Failed to fetch attestation challenge after "+
  2874. (c+" attempts; not retrying for 24h."))),Yza(a,864E5),w.return({challenge:"",Oq:{},Cq:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,c-1)+1E3*Math.random();return w.return(wH(a,n,c));case 4:p=Number(l.t)||7200;Yza(a,1E3*p);q=void 0;if(!("c1a"in l&&f.bgChallenge)){w.Ia(6);break}r=Zza(f.bgChallenge);g.Ba(w,7);return g.z(w,dga(r),9);case 9:g.Ca(w,8);break;case 7:return t=g.Da(w),g.JE(t),w.return({challenge:h,Oq:l,Cq:q,bgChallenge:r});case 8:return g.Ba(w,10),q=new Mo({challenge:r,D0:!0,WZ:"aGIf"}),g.z(w,
  2875. q.WS,12);case 12:g.Ca(w,6);break;case 10:v=g.Da(w),g.JE(v),q=void 0;case 6:return w.return({challenge:h,Oq:l,Cq:q,bgChallenge:r})}})};
  2876. Wza=function(a,b){var c;return g.G(function(d){c=a.B;return!c||c.Eh()?d.return(Wza(a.network,b)):d.return(new Promise(function(e){c.oF("publicytnetworkstatus-online",function(){Wza(a.network,b).then(e)})}))})};
  2877. $za=function(a,b){a.j=b};
  2878. Xza=function(a){var b={};a=a.split("&");a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),2===c.length&&(b[c[0]]=c[1]);return b};
  2879. Zza=function(a){var b=new Ko;if(a.interpreterJavascript){var c=Sla(a.interpreterJavascript);c=ye(c).toString();var d=new Io;Q(d,6,c);Hk(b,Io,1,d)}else a.interpreterUrl&&(c=Ww(a.interpreterUrl),c=g.Xd(c).toString(),d=new Jo,Q(d,4,c),Hk(b,Jo,2,d));a.interpreterHash&&Zk(b,3,a.interpreterHash);a.program&&Zk(b,4,a.program);a.globalName&&Zk(b,5,a.globalName);return b};
  2880. Yza=function(a,b){wH(a,b).then(function(c){Promise.race([a.j,null]).then(function(d){var e;null==d||null==(e=d.Cq)||e.dispose()}).finally(function(){var d=Promise.resolve(c);
  2881. a.j=d})})};
  2882. aAa=function(a,b){return new Promise(function(c){g.jC(0,function(){c(b())},a)})};
  2883. g.bAa=function(a){var b;return g.G(function(c){var d=g.Xa("yt.aba.att");return(b=d?d:void 0!==xH.instance?xH.instance.C.bind(xH.instance):null)?c.return(b("ENGAGEMENT_TYPE_PLAYBACK",a,1500)):c.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
  2884. g.cAa=function(){var a;return(a=(a=g.Xa("yt.aba.att2"))?a:void 0!==xH.instance?xH.instance.D.bind(xH.instance):null)?a():Promise.resolve(!1)};
  2885. eAa=function(a,b){var c=g.Xa("ytDebugData.callbacks");c||(c={},g.Va("ytDebugData.callbacks",c));if(g.aB("web_dd_iu")||dAa.includes(a))c[a]=b};
  2886. gAa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(0===c)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=fAa(a[c-1],a[c-2],d),f=fAa(d,a[c-1],a[c+1],!0);d=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))}b+=d}return b};
  2887. fAa=function(a,b,c,d){d=void 0===d?!1:d;b=new hAa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.B:b.B)}};
  2888. hAa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
  2889. iAa=function(a,b,c){if(!b)return 1<=a.length?a[a.length-1]:null;for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
  2890. jAa=function(){this.state=1;this.Cq=null};
  2891. lAa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Gc(2),g.kua(c,function(){if(window[h])kAa(a,d,h,e);else{a.Gc(3);var l=lua(c),m=document.getElementById(l);m&&(iua(l),m.parentNode.removeChild(m));g.JE(new g.eC("Unable to load Botguard","from "+c))}},f)):b?(f=g.Cf("SCRIPT"),b instanceof xe?(f.textContent=ye(b),Ue(f)):f.textContent=b,f.nonce=Re(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?kAa(a,d,h,e):(a.Gc(4),g.JE(new g.eC("Unable to load Botguard from JS")))):
  2892. g.JE(new g.eC("Unable to load VM; no url or JS provided"))};
  2893. kAa=function(a,b,c,d){a.Gc(5);try{var e=new Mo({program:b,globalName:c,D0:g.aB("att_web_record_metrics"),WZ:"aGIf"});e.WS.then(function(){a.Gc(6);d&&d(b)});
  2894. a.US(e)}catch(f){a.Gc(7),f instanceof Error&&g.JE(f)}};
  2895. mAa=function(){var a=g.Xa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
  2896. yH=function(){jAa.apply(this,arguments)};
  2897. nAa=function(){};
  2898. oAa=function(a,b,c){for(var d=!1,e=g.u(a.aj.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Xa&&(d=!0);if(d){a:if(!c){a=g.u(a.aj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Xa){c=d.layoutId;break a}c=void 0}c?b.EP(c):RF("No triggering layout ID available when attempting to mute.")}};
  2899. pAa=function(a,b){this.Yk=a;this.Zn=b};
  2900. qAa=function(){};
  2901. rAa=function(){};
  2902. tAa=function(a){g.I.call(this);var b=this;this.Xc=a;this.j=new Map;zH(this,"commandExecutorCommand",function(c,d,e){sAa(b,c.commands,d,e)});
  2903. zH(this,"clickTrackingParams",function(){})};
  2904. uAa=function(a,b){zH(a,b.gr(),function(c,d,e){b.Jt(c,d,e)})};
  2905. zH=function(a,b,c){a.Ma();a.j.get(b)&&g.IE(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
  2906. sAa=function(a,b,c,d){b=void 0===b?[]:b;a.Ma();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,vAa)||g.V(h,wAa)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())AH(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())AH(a,e.value,c,d)};
  2907. AH=function(a,b,c,d){a.Ma();b.loggingUrls&&xAa(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.Xc.get().Gu("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.Xc.get().Gu("innertubeCommand",{confirmDialogEndpoint:f}):yAa.hasOwnProperty(e)||xAa(a,e,f,c,d)}};
  2908. xAa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.IE(f)}else b=new g.eC("Unhandled field",b),g.JE(b)};
  2909. zAa=function(a,b,c){this.Lf=a;this.j=b;this.Oa=c};
  2910. BH=function(a){this.value=a};
  2911. CH=function(a){this.value=a};
  2912. DH=function(a){this.value=a};
  2913. AAa=function(a){this.value=a};
  2914. BAa=function(a){this.value=a};
  2915. EH=function(a){this.value=a};
  2916. FH=function(a){this.value=a};
  2917. CAa=function(){BH.apply(this,arguments)};
  2918. DAa=function(a){this.value=a};
  2919. EAa=function(a){this.value=a};
  2920. FAa=function(a){this.value=a};
  2921. GAa=function(a){this.value=a};
  2922. HAa=function(a){this.value=a};
  2923. GH=function(a){this.value=a};
  2924. HH=function(a){this.value=a};
  2925. IH=function(a){this.value=a};
  2926. JH=function(a){this.value=a};
  2927. KH=function(a){this.value=a};
  2928. LH=function(){BH.apply(this,arguments)};
  2929. MH=function(a){this.value=a};
  2930. NH=function(a){this.value=a};
  2931. OH=function(a){this.value=a};
  2932. PH=function(a){this.value=a};
  2933. QH=function(a){this.value=a};
  2934. IAa=function(a){this.value=a};
  2935. JAa=function(a){this.value=a};
  2936. RH=function(a){this.value=a};
  2937. KAa=function(a){this.value=a};
  2938. LAa=function(a){this.value=a};
  2939. MAa=function(a){this.value=a};
  2940. NAa=function(a){this.value=a};
  2941. SH=function(a){this.value=a};
  2942. TH=function(a){this.value=a};
  2943. UH=function(a){this.value=a};
  2944. VH=function(a){this.value=a};
  2945. OAa=function(a){this.value=a};
  2946. WH=function(a){this.value=a};
  2947. XH=function(a){this.value=a};
  2948. YH=function(a){this.value=a};
  2949. PAa=function(a){this.value=a};
  2950. ZH=function(a){this.value=a};
  2951. $H=function(a){this.value=a};
  2952. aI=function(a){this.value=a};
  2953. bI=function(a){this.value=a};
  2954. cI=function(a){this.value=a};
  2955. dI=function(a){this.value=a};
  2956. eI=function(a){this.value=a};
  2957. fI=function(a){this.value=a};
  2958. gI=function(a){this.value=a};
  2959. QAa=function(a){this.value=a};
  2960. hI=function(a){this.value=a};
  2961. iI=function(a){this.value=a};
  2962. jI=function(a){this.value=a};
  2963. RAa=function(a){this.value=a};
  2964. kI=function(a){this.value=a};
  2965. lI=function(a){this.value=a};
  2966. mI=function(a){this.value=a};
  2967. nI=function(){BH.apply(this,arguments)};
  2968. SAa=function(a){this.value=a};
  2969. oI=function(){BH.apply(this,arguments)};
  2970. pI=function(){BH.apply(this,arguments)};
  2971. TAa=function(){BH.apply(this,arguments)};
  2972. qI=function(){BH.apply(this,arguments)};
  2973. UAa=function(){BH.apply(this,arguments)};
  2974. VAa=function(a){this.value=a};
  2975. rI=function(a){this.value=a};
  2976. WAa=function(a){this.value=a};
  2977. sI=function(a){this.value=a};
  2978. uI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tI(a.Ba,c.value))return!1;return!0};
  2979. vI=function(){return""};
  2980. XAa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
  2981. wI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Mk=c;this.Nv=d;this.args=[];b&&this.args.push(b)};
  2982. xI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Mk=c;this.Nv=d;this.args=[];b&&this.args.push(b)};
  2983. yI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
  2984. this.j=b};
  2985. tI=function(a,b){return a.j.has(b)};
  2986. zI=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
  2987. AI=function(a){return Array.from(a.j.keys())};
  2988. BI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tI(a.Ba,c.value))return!1;return!0};
  2989. ZAa=function(a){var b;return(null==(b=YAa.get(a))?void 0:b.ey)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
  2990. aBa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:$Aa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=CI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(CI(d.value));
  2991. b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(CI(a.value))}return c};
  2992. bBa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:$Aa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
  2993. CI=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
  2994. cBa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.$r(d||[],function(e){return aBa(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
  2995. return b};
  2996. DI=function(a,b){return function(c){return dBa(eBa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Xa,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Xa)}};
  2997. dBa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:aBa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Xa:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new yI([])}),layoutData:bBa(a,{layoutId:m,layoutType:n,Xa:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Cb:new Map,Ba:new yI([]),Yb:{}})}}};
  2998. FI=function(a){this.Aa=a;a=Math.random();var b=this.Aa.get();b=g.EI(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
  2999. eBa=function(a){return a.j||a.Aa.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
  3000. fBa=function(a,b,c,d){g.I.call(this);this.B=b;this.Qb=c;this.Aa=d;this.j=a(this,this,this,this,this);g.N(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.N(this,b.value)};
  3001. GI=function(a,b){a.B.add(b)};
  3002. HI=function(a,b){a.B.delete(b)};
  3003. gBa=function(a,b,c,d){RF(c,b,void 0,void 0,c.Nv);c.Mk?a.Qb.Sl(d,c.Mk,b):RF("adsClientErrorMessage is missing.",b);II(a,b,!0)};
  3004. jBa=function(a,b,c){if(JI(a.j,b))if(KI(a.j,b).D=c?"filled":"not_filled",null===c){a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Ih(b);II(a,b,!1)}else{a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=null!=(e=c.Zx)?e:zI(c.Ba,"metadata_type_sub_layouts");if(f)for(e=g.u(f),f=e.next();!f.done;f=e.next())a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
  3005. e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f.value.Jh(b);if(JI(a.j,b))if(KI(a.j,b).G)II(a,b,!1);else{a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!KI(d,b))throw new wI("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.nh.fu.get(b.slotType))throw new wI("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(0==c.layoutExitNormalTriggers.length&&
  3006. 0==c.layoutExitSkipTriggers.length&&0==c.layoutExitMuteTriggers.length&&0==c.layoutExitUserInputSubmittedTriggers.length&&0==c.Tc.length)throw new wI("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");LI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);LI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);LI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);LI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
  3007. c.layoutExitUserInputSubmittedTriggers);LI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){n instanceof wI?a.jf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.jf(b,c,new wI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");II(a,b,!0);return}KI(a.j,b).K=!0;try{var h=a.j,l=KI(h,b),m=h.nh.fu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new wI("Already had LayoutRenderingAdapter registered for slot",
  3008. void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;MI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);MI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);MI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);MI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);MI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){hBa(a,b);n instanceof wI?a.jf(b,
  3009. c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.jf(b,c,new wI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");II(a,b,!0);return}a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.u(a.B);for(h=d.next();!h.done;h=d.next())h.value.ih(b,c);hBa(a,b);iBa(a,b)}else a=a.Aa.get(),g.NI(a.J.U())||OI(a.J.U())||g.PI(a.J.U())?a=!0:(RF("Composite VOD on legacy path."),a=!1),a&&RF("slot is unscheduled after been fulfilled.",b,
  3010. c)}};
  3011. kBa=function(a,b,c){"core"!==b.Xa&&a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
  3012. lBa=function(a,b,c){a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.ih(b,c)};
  3013. mBa=function(a,b,c){a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.gg(b,c)};
  3014. nBa=function(a,b,c){a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.vc(b,c)};
  3015. oBa=function(a,b,c,d){a.Qb.Ph(ZAa(d),b,c,void 0);a=g.u(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Ec(b,c,d)};
  3016. hBa=function(a,b){if(JI(a.j,b)){KI(a.j,b).K=!1;var c=QI;b=KI(a.j,b);var d=[].concat(g.qa(b.Z));taa(b.Z);c(a,d)}};
  3017. QI=function(a,b){b.sort(function(f,h){function l(m){RF("TriggerCategoryOrder enum does not contain trigger category: "+m)}
  3018. return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):XAa(f.category,l)-XAa(h.category,l)});
  3019. var c=new Map;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,JI(a.j,d.slot))if(KI(a.j,d.slot).K)KI(a.j,d.slot).Z.push(d);else{a.Qb.YM("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(pBa);for(d=b.next();!d.done;d=b.next())e=g.u(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&qBa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&rBa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&sBa(a,
  3020. b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&tBa(a,c)};
  3021. qBa=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&uBa(a.j,d.slot)&&vBa(a,d.slot,d.layout,c)};
  3022. rBa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())II(a,c.value.slot,!1)};
  3023. sBa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(KI(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.bE(c.slot))}};
  3024. tBa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())e.value.Hh(c.slot);try{var f=a.j,h=c.slot,l=KI(f,h);if(!l)throw new xI("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new xI("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new xI("Tried to enter a slot from stage: "+
  3025. l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(RI(l))throw new xI("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(SI(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&RI(p))throw new xI("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(q){q instanceof xI&&q.Mk?(a.Qb.Sl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
  3026. q.Mk,c.slot),RF(q,c.slot,TI(a.j,c.slot),void 0,q.Nv)):(a.Qb.Sl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),RF(q,c.slot));II(a,c.slot,!0);continue}c=KI(a.j,c.slot);"scheduled"!==c.j&&UI(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.UI()}};
  3027. iBa=function(a,b){if(JI(a.j,b)&&RI(KI(a.j,b))&&TI(a.j,b)&&!uBa(a.j,b)){var c;a.Qb.Ph("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=TI(a.j,b))?c:void 0);a=KI(a.j,b);"entered"!==a.j&&UI(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
  3028. vBa=function(a,b,c,d){if(JI(a.j,b)){var e=a.Qb,f=e.Ph,h;var l=(null==(h=YAa.get(d))?void 0:h.Qx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=KI(a.j,b);"rendering"!==a.j&&UI(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Gd(c,d)}};
  3029. II=function(a,b,c){if(JI(a.j,b)){a:switch(KI(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(KI(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(KI(a.j,b).G=!0,!c))return;if(RI(KI(a.j,b)))KI(a.j,b).G=!0,wBa(a,b,c);else{a:switch(KI(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)KI(a.j,b).G=!0,JI(a.j,b)&&(a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=KI(a.j,b),b.D="fill_cancel_requested",b.N.UN());else{c=
  3030. TI(a.j,b);(d=a.Aa.get().J.U().experiments.fb("h5_enable_layout_unscheduling_events"))&&(c?a.gg(b,c):RF(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=KI(a.j,b),f=b.slotEntryTrigger,h=e.Ca.get(f.triggerId);h&&(h.Al(f),e.Ca.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.Al(h),e.qa.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
  3031. for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Al(h),e.Y.delete(h.triggerId);null!=e.layout&&(f=e.layout,VI(e,f.layoutExitNormalTriggers),VI(e,f.layoutExitSkipTriggers),VI(e,f.layoutExitMuteTriggers),VI(e,f.layoutExitUserInputSubmittedTriggers),VI(e,f.Tc));e.N=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;KI(e,b)&&(e=SI(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
  3032. b);a=g.u(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Kh(b),c&&!d&&e.gg(b,c)}}}};
  3033. wBa=function(a,b,c){if(JI(a.j,b)&&RI(KI(a.j,b))){var d=TI(a.j,b);if(d&&uBa(a.j,b))vBa(a,b,d,c?"error":"abandoned");else{a.Qb.Kj("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=KI(a.j,b);if(!e)throw new xI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&UI(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new xI("Cannot exit slot because adapter is not defined",
  3034. void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.XI()}catch(f){f instanceof xI&&f.Mk?(a.Qb.Sl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Mk,b),RF(f,b,void 0,void 0,f.Nv)):(a.Qb.Sl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),RF(f,b))}}}};
  3035. xBa=function(a){this.slot=a;this.Ca=new Map;this.qa=new Map;this.Y=new Map;this.ra=new Map;this.C=this.layout=this.B=this.N=void 0;this.K=this.G=!1;this.Z=[];this.j="not_scheduled";this.D="not_filled"};
  3036. RI=function(a){return"enter_requested"===a.j||a.isActive()};
  3037. yBa=function(a,b,c,d,e,f){g.I.call(this);this.nh=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Aa=f;this.j=new Map};
  3038. SI=function(a,b){return(a=a.j.get(b))?a:new Map};
  3039. KI=function(a,b){return SI(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
  3040. zBa=function(a){var b=[];a.j.forEach(function(c){c=g.u(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
  3041. return b};
  3042. JI=function(a,b){return null!=KI(a,b)};
  3043. uBa=function(a,b){a=KI(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
  3044. TI=function(a,b){(a=KI(a,b))?null!=a.layout&&!a.layout&&RF("Unexpected empty layout",b):RF("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
  3045. CBa=function(a,b,c){if(0==c.length)throw new xI("No "+ABa.get(b)+" triggers found for slot.",void 0,BBa(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.nh.Qm.get(d.triggerType))throw new xI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  3046. BBa=function(a){switch(a){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
  3047. LI=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.nh.Qm.get(d.triggerType))throw new wI("No trigger adapter registered for "+ABa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
  3048. MI=function(a,b,c,d){d=g.u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.nh.Qm.get(e.triggerType);f.ll(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
  3049. VI=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.Al(c),a.ra.delete(c.triggerId))}};
  3050. UI=function(a,b,c){RF("Slot stage was "+b+" when calling method "+c,a)};
  3051. DBa=function(a){return WI(a.mB).concat(WI(a.Qm)).concat(WI(a.At)).concat(WI(a.Pu)).concat(WI(a.fu))};
  3052. WI=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.gh&&b.push(c);return b};
  3053. EBa=function(a){g.I.call(this);var b=this;this.E9=a;this.instance=null;this.addOnDisposeCallback(function(){g.vb(b.instance);b.instance=null})};
  3054. XI=function(a){return new EBa(a)};
  3055. GBa=function(a){g.I.call(this);this.Wg=a;this.j=FBa(this)};
  3056. FBa=function(a){var b=new fBa(function(c,d,e,f){return new yBa(a.Wg.nh,c,d,e,f,a.Wg.Aa)},new Set(DBa(a.Wg.nh).concat(a.Wg.listeners)),a.Wg.Qb,a.Wg.Aa);
  3057. g.N(a,b);return b};
  3058. YI=function(a){this.j=a};
  3059. ZI=function(a,b,c){sAa(a.j(),b,c)};
  3060. $I=function(a,b,c,d){(a=a.j())||RF("Could not initiate a command router instance.");AH(a,b,c,d)};
  3061. aJ=function(){this.listeners=new Set};
  3062. bJ=function(){};
  3063. IBa=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//pagead2.googlesyndication.com/bg/"+Ye(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=mf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Jba(HBa,Ye(a)+".js");g.Ve(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
  3064. JBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Ne=d;this.Aa=e;this.j=null};
  3065. LBa=function(a,b,c,d){a.j&&RF("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.fC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=DI(a.Ne.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Xa:a.slot.Xa,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
  3066. n=cJ(h.B.get(),f,l),p={layoutId:n,layoutType:f,Xa:"core"};e={layoutId:n,layoutType:f,Cb:new Map,layoutExitNormalTriggers:[new KBa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new RAa(e)]),Yb:m(p)};jBa(a.callback,a.slot,e)},function(e){a.j=null;
  3067. c&&c();e instanceof qg||gBa(a.callback,a.slot,new xI(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
  3068. MBa=function(a){if(null==a.j)a.callback.PK(a.slot);else try{a.j.cancel(),a.j=null,a.callback.PK(a.slot)}catch(b){a.j=null,gBa(a.callback,a.slot,new xI(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
  3069. dJ=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.JE(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
  3070. eJ=function(a,b,c){return b&&b.test(a)||NBa&&c&&c.test(a)?!0:!1};
  3071. PBa=function(a){return(a=OBa&&OBa.exec(a))?a[0]:""};
  3072. fJ=function(a){var b=void 0===b?!1:b;return dJ(eJ(a,QBa,null),a,b,"Trusted Stream URL")};
  3073. g.gJ=function(a){var b=void 0===b?!1:b;return dJ(eJ(a,RBa,null),a,b,"Trusted Image URL")};
  3074. TBa=function(a){var b=void 0===b?!1:b;return dJ(eJ(a,SBa,null),a,b,"Trusted Promoted Video Domain URL")};
  3075. VBa=function(a){var b=void 0===b?!1:b;return dJ(eJ(a,UBa,null),a,b,"Drm Licensor URL")};
  3076. XBa=function(a,b){b=void 0===b?!1:b;return dJ(eJ(a,WBa,null),a,b,"Captions URL")};
  3077. YBa=function(a){a=new g.eq(a);g.fq(a,document.location.protocol);g.gq(a,document.location.hostname);document.location.port&&g.hq(a,document.location.port);return a.toString()};
  3078. hJ=function(a){a=new g.eq(a);g.fq(a,document.location.protocol);return a.toString()};
  3079. g.jJ=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.bl=0;this.B=ZBa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||iJ.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.as(d.thumbnails,function(e){return g.gJ(e.url)})}):null;
  3080. this.visible=this.visible;this.style=this.style;this.start=this.start};
  3081. $Ba=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
  3082. aCa=function(a,b){switch(a.style){case iJ.CHAPTER_MARKER:return b?8:5;case iJ.AD_MARKER:return 6;case iJ.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
  3083. g.bCa=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
  3084. g.kJ=function(a){return"crn_"+a};
  3085. g.lJ=function(a){return"crx_"+a};
  3086. cCa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Oa=h;this.Ha=l;this.Mc=m;this.j=new JBa(a,b,d,e,f)};
  3087. dCa=function(a){var b;null==(b=a.Mc)||b.get().Du(zI(a.slot.Ba,"metadata_type_cue_point").identifier)};
  3088. eCa=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new JBa(a,b,d,e,f)};
  3089. fCa=function(a,b){this.callback=a;this.slot=b};
  3090. gCa=function(a,b){return BI(a,b.Kd,b.slotType)?!0:!1};
  3091. hCa=function(){};
  3092. mJ=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Ne=c;this.Aa=d;this.Oa=e;this.Ha=f;this.Mc=h};
  3093. nJ=function(){};
  3094. iCa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.C=e;this.j=f};
  3095. kCa=function(a){if(zI(a.slot.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=jCa(a,a.slot);oJ(a.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
  3096. jCa=function(a,b){var c=pJ(a.j.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=null!=h.triggeringSlotId&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:lCa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:lCa(b.slotId,c,b.slotExpirationTriggers)})};
  3097. lCa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;var l=a;var m=b;e=e.value;l=null!=e.triggeringSlotId&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
  3098. g.qJ=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
  3099. return a};
  3100. mCa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
  3101. nCa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.jf(a.slot,b,new wI("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):c()};
  3102. rJ=function(a,b,c,d){g.aF.call(this);this.callback=a;this.C=d;this.j=[];this.B=new mCa(a,b,c)};
  3103. tJ=function(a,b,c,d,e,f,h,l){d=d||zI(c.Ba,f);a=sJ(a);var m=Nd(function(){e.vc(b,c)});
  3104. l.push(h(d,a,c.layoutId,{adsClientData:c.Yb},function(){m()}))};
  3105. uJ=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():RF("Tried to call engagePingCallback but it is null",h,l)}}else RF("Companion AdUxClick received without a layoutId",h,l)};
  3106. vJ=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
  3107. wJ=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
  3108. xJ=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["swipe",a.swipePings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",
  3109. a.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",
  3110. a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",
  3111. a.unmutedClickthroughPings||[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
  3112. oCa=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
  3113. case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
  3114. case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
  3115. default:return null}};
  3116. yJ=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
  3117. this.N={adPlacementConfig:c,RZ:e}};
  3118. zJ=function(){return["metadata_type_ad_placement_config"]};
  3119. sJ=function(a){var b=a.Oa.get();return AJ(b,a.N)};
  3120. qCa=function(a,b,c){c=void 0===c?!1:c;a.j.has(b)?pCa(a,b,[]):a.Ub(b,c)};
  3121. BJ=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)pCa(a,"progress",[d]),a.D++;else break}};
  3122. CJ=function(a,b){return a.j.has(b)};
  3123. DJ=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
  3124. rCa=function(a,b,c){a.K=b;a.G=c};
  3125. pCa=function(a,b,c){var d;sCa(a.Oa.get(),a.layoutId,b,c,null!=(d=a.K)?d:void 0,a.G)};
  3126. tCa=function(a,b,c,d,e){$E.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
  3127. uCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3128. vCa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3129. return{Kd:a,Ge:["LAYOUT_TYPE_PANEL"]}};
  3130. wCa=function(a,b,c,d,e){$E.call(this,"banner-image",a,b,c,d,e)};
  3131. xCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);this.adPlacementConfig=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,this.adPlacementConfig,c.layoutId)};
  3132. yCa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3133. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  3134. zCa=function(a,b,c,d,e){$E.call(this,"action-companion",a,b,c,d,e)};
  3135. ACa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3136. BCa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3137. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  3138. CCa=function(a,b,c,d,e){$E.call(this,"image-companion",a,b,c,d,e)};
  3139. DCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3140. ECa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3141. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
  3142. FCa=function(a,b,c,d,e){$E.call(this,"shopping-companion",a,b,c,d,e)};
  3143. GCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3144. HCa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3145. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
  3146. ICa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
  3147. JCa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
  3148. KCa=function(a,b,c,d){this.Lb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.u(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":ICa(b)?this.B.push(b):RF("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":JCa(b)?this.j.push(b):RF("Invalid AdVideoProgressMillisecondsCommand");break;default:RF("Unknown or invalid AdVideoProgressOffSet kind")}this.B.sort(function(e,
  3149. f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
  3150. this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
  3151. LCa=function(a,b,c){c=void 0===c?!1:c;var d=a.G();if(d){for(;a.D<a.B.length;){var e=a.B[a.D];if(e.adVideoOffset.percent*d<=b)a.Lb.get().executeCommand(e.command,a.layoutId),a.D++;else break}for(;a.C<a.j.length;)if(d=a.j[a.C],Number(d.adVideoOffset.milliseconds)<=b||c)a.Lb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
  3152. MCa=function(a,b,c,d,e,f){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.gh=!0;GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3153. NCa=function(){var a=["metadata_type_action_companion_ad_renderer"];zJ().forEach(function(b){a.push(b)});
  3154. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  3155. OCa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Aa=f;this.ub=h;this.j=!1;a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3156. PCa=function(a,b,c,d,e,f){rJ.call(this,a,b,c,d);this.Ha=e;this.G=f;this.D=!1};
  3157. QCa=function(a,b,c,d,e){$E.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
  3158. RCa=function(a,b,c,d,e,f){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.gh=!0;GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3159. SCa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];zJ().forEach(function(b){a.push(b)});
  3160. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  3161. EJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;$E.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.eT=e;this.NL=f};
  3162. FJ=function(a,b,c,d,e){rJ.call(this,a,b,c,d);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,e,a,c.layoutId)};
  3163. TCa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];zJ().forEach(function(b){a.push(b)});
  3164. return{Kd:a,Ge:["LAYOUT_TYPE_ENDCAP"]}};
  3165. GJ=function(a,b){return uI(a,b.Kd,b.Ge)?!0:!1};
  3166. HJ=function(a,b,c){this.B=a;this.C=b;this.j=c};
  3167. UCa=function(a,b,c,d,e){$E.call(this,"ads-engagement-panel",a,b,c,d,e)};
  3168. VCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3169. WCa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3170. return{Kd:a,Ge:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
  3171. XCa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Oa=e;this.wc=f;this.K=l;this.gh=!0;this.D=null;this.G=zI(c.Ba,"metadata_type_linked_player_bytes_layout_id");GI(this.wc(),this);this.adPlacementConfig=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,this.adPlacementConfig,c.layoutId)};
  3172. YCa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zJ().forEach(function(b){a.push(b)});
  3173. return{Kd:a,Ge:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
  3174. ZCa=function(a,b,c,d,e){this.Cc=a;this.Oa=b;this.wc=c;this.j=d;this.ub=e};
  3175. $Ca=function(a,b,c){$E.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
  3176. IJ=function(a,b,c,d){rJ.call(this,a,b,c,d)};
  3177. aDa=function(a){this.Cc=a};
  3178. bDa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Yh=e;a=zI(this.layout.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3179. cDa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];zJ().forEach(function(b){a.push(b)});
  3180. return{Kd:a,Ge:["LAYOUT_TYPE_FORECASTING"]}};
  3181. dDa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Yh=e;a=zI(this.layout.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3182. JJ=function(a,b,c,d){this.Aa=a;this.Oa=b;this.Yh=c;this.ub=d};
  3183. eDa=function(a,b){return tI(a.Ba,"metadata_type_ad_info_ad_metadata")?zI(a.Ba,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Cl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(RF("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
  3184. fDa=function(a,b){return tI(a.Ba,"metadata_ad_video_is_listed")?zI(a.Ba,"metadata_ad_video_is_listed"):b?b.isListed:(RF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
  3185. gDa=function(a,b,c,d){$E.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
  3186. hDa=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=zI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
  3187. iDa=function(a){if(a.layout.renderingContent){var b;return null==(b=zI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return zI(a.layout.Ba,"metadata_type_player_bytes_callback")};
  3188. KJ=function(a,b,c,d,e,f,h,l){rJ.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=zI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
  3189. jDa=function(){return{Kd:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Ge:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
  3190. kDa=function(a){if(a.layout.renderingContent){var b;return null==(b=zI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return zI(a.layout.Ba,"metadata_type_player_bytes_callback")};
  3191. lDa=function(a,b,c){$E.call(this,"ad-message",a,void 0,b,c)};
  3192. LJ=function(a,b,c,d,e,f){rJ.call(this,c,a,b,d);this.Ha=e;this.Aa=f};
  3193. mDa=function(){return{Kd:["metadata_type_valid_ad_message_renderer"],Ge:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
  3194. OJ=function(a,b,c,d,e,f,h,l,m){return GJ(c,jDa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,MJ)?new KJ(a,b,c,d,e,f,h,l):GJ(c,{Kd:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Ge:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,nDa)?
  3195. new hDa(a,b,c,d,e,f,h,l):GJ(c,TCa())||"LAYOUT_TYPE_ENDCAP"===c.layoutType&&void 0!==g.V(c.renderingContent,NJ)?new FJ(a,b,c,d,f):GJ(c,mDa())?new LJ(b,c,a,d,e,m):GJ(c,{Kd:["metadata_type_instream_ad_player_overlay_renderer"],Ge:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new PCa(a,b,c,d,e,l):null};
  3196. oDa=function(a,b,c,d,e,f){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.j=e;this.Aa=f};
  3197. PJ=function(a){return!a.bB.isPlaying()&&a.state.isPlaying()};
  3198. QJ=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
  3199. pDa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Aa=f;this.ub=h;this.j=!1;a=zI(c.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId)};
  3200. qDa=function(a,b){a.j||(a.Ya.Ub(b),a.j=!0)};
  3201. rDa=function(a,b,c,d){this.Ha=a;this.Oa=b;this.Aa=c;this.ub=d};
  3202. sDa=function(){this.currentState=1;this.j="unknown"};
  3203. tDa=function(a,b){if(1<a.currentState){g.JE(new g.eC("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
  3204. uDa=function(a,b){var c=new Map;a=g.u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if("LAYOUT_TYPE_MEDIA"===d.layoutType)var e="v";else"LAYOUT_TYPE_MEDIA_BREAK"===d.layoutType?(e=zI(d.Ba,"metadata_type_linked_in_player_layout_type"),e="LAYOUT_TYPE_ENDCAP"===e||"LAYOUT_TYPE_VIDEO_INTERSTITIAL"===e?"e":"LAYOUT_TYPE_SURVEY"===e?"s":"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"===e?"si":"u"):e="u";c.set(d.layoutId,e);"u"===e&&(e={},RJ(b,"uct",(e.c=d.layoutId,e)))}a=b.Jg();SJ={contentCpn:a,Us:c};
  3205. d={};RJ(b,"acc",(d.ct=c.size,d.c=a,d))};
  3206. vDa=function(){SJ={contentCpn:"",Us:new Map}};
  3207. TJ=function(a){var b;return null!=(b=SJ.Us.get(a))?b:"u"};
  3208. UJ=function(a,b,c){RJ(a,b,c);wDa(a)};
  3209. xDa=function(a){var b=a.layoutId,c=a.Op;if(a.Tw){var d={};UJ(a.Lf,"slso",(d.ec=b,d.is=c,d.ctp=TJ(b),d))}};
  3210. yDa=function(a){var b=a.layoutId,c=a.Op,d=a.Lf;a.Tw&&(a={},UJ(d,"sleo",(a.xc=b,a.is=c,a.ctp=TJ(b),a)),wDa(d))};
  3211. zDa=function(a){var b=a.layoutId,c=a.Op;if(a.Tw){var d={};UJ(a.Lf,"slhe",(d.xc=b,d.is=c,d.ctp=TJ(b),d))}};
  3212. ADa=function(a){var b=a.cpn,c=a.Lf;a=a.Op;var d=c.Jg(),e={};UJ(c,"ce",(e.ec=b,e.ia=b!==d,e.r=SJ.Us.has(b),e.is=a,e.ctp=TJ(b),e))};
  3213. wDa=function(a){if(a.Jg()!==SJ.contentCpn){var b={};RJ(a,"ccm",(b.c=SJ.contentCpn,b))}};
  3214. BDa=function(a){var b=a.cpn,c=a.Lf;a=a.Op;var d=c.Jg(),e={};UJ(c,"cx",(e.xc=b,e.ia=b!==d,e.r=SJ.Us.has(b),e.is=a,e.ctp=TJ(b),e))};
  3215. CDa=function(a){this.Lf=a};
  3216. VJ=function(a){var b=[];if(a){a=g.u(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
  3217. WJ=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
  3218. XJ=function(a){return 1===a||2===a};
  3219. YJ=function(a,b){b=void 0===b?0:b;if(a instanceof WJ)return a;a=a&&a instanceof Error?a:Error(""+a);XJ(b)?g.IE(a):g.JE(a);return new WJ(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
  3220. g.EDa=function(a){return(a=DDa[a.toString()])?a:"LICENSE"};
  3221. FDa=function(a,b){function c(){var d=g.Ja.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.qa(d))}
  3222. a.addEventListener("playing",c)};
  3223. ZJ=function(){var a=g.Xa("yt.player.utils.videoElement_");a||(a=g.Cf("VIDEO"),g.Va("yt.player.utils.videoElement_",a));return a};
  3224. $J=function(a){var b=ZJ();return!!(b&&b.canPlayType&&b.canPlayType(a))};
  3225. bK=function(a){if(/opus/.test(a)&&g.aK&&!Xv("38")&&!g.pB())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!mqa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!$J(a)};
  3226. GDa=function(a){try{var b=bK('video/mp4; codecs="avc1.42001E"')||bK('video/webm; codecs="vp9"');return(bK('audio/mp4; codecs="mp4a.40.2"')||bK('audio/webm; codecs="opus"'))&&(b||!a)||$J('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
  3227. HDa=function(){var a=ZJ();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
  3228. IDa=function(){var a=ZJ();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
  3229. g.cK=function(){SB.apply(this,arguments)};
  3230. dK=function(a,b,c,d,e,f){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.C=void 0===e?0:e;this.B=void 0===f?0:f};
  3231. fK=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||JDa(a,b);this.j=g.eK[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.eK[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
  3232. this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
  3233. JDa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=gK[0];for(var d=0;d<gK.length;d++){var e=gK[d],f=g.eK[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
  3234. jK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.sb||(c.sb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=hK(b);this.qb=iK[this.itag]||""};
  3235. kK=function(a){return"9"===a.qb||"("===a.qb||"9h"===a.qb||"(h"===a.qb};
  3236. KDa=function(a){return"H"===a.qb||"h"===a.qb};
  3237. LDa=function(a){return"9h"===a.qb||"(h"===a.qb};
  3238. lK=function(a){return"1"===a.qb||"1h"===a.qb};
  3239. MDa=function(a){return"mac3"===a.qb||"meac3"===a.qb||"m"===a.qb};
  3240. mK=function(a){return"MAC3"===a.qb||"MEAC3"===a.qb||"M"===a.qb};
  3241. g.nK=function(a){return 1===a.containerType};
  3242. NDa=function(a){return"("===a.qb||"(h"===a.qb||"H"===a.qb};
  3243. oK=function(a){return"application/x-mpegURL"===a.mimeType};
  3244. pK=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
  3245. qK=function(a,b){a=pK(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
  3246. ODa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.qb)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.sb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.sb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
  3247. PDa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
  3248. QDa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
  3249. rK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
  3250. hK=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
  3251. sK=function(a,b,c,d,e,f){var h=new dK;b in g.eK||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.eK[b],d=Math.round(16*e/9));f=new fK(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new jK(c,a,{audio:h,video:f})};
  3252. tK=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Pv)?void 0:c.toFixed(0))+", "+(null==(d=a.sb)?void 0:d.toFixed(0))+")"};
  3253. uK=function(a,b){return{start:function(c){return a[c]},
  3254. end:function(c){return b[c]},
  3255. length:a.length}};
  3256. RDa=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)d.push(a.start(f)),e.push(a.end(f));d.push(b);e.push(c);d.sort(function(h,l){return h-l});
  3257. e.sort(function(h,l){return h-l});
  3258. return uK(d,e)};
  3259. vK=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
  3260. wK=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
  3261. xK=function(a,b){return 0<=wK(a,b)};
  3262. SDa=function(a,b){if(!a)return NaN;b=wK(a,b);return 0<=b?a.start(b):NaN};
  3263. yK=function(a,b){if(!a)return NaN;b=wK(a,b);return 0<=b?a.end(b):NaN};
  3264. zK=function(a){return a&&a.length?a.end(a.length-1):NaN};
  3265. AK=function(a,b){a=yK(a,b);return 0<=a?a-b:0};
  3266. BK=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return uK(d,e)};
  3267. CK=function(a,b,c,d){g.aF.call(this);var e=this;this.Qd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.xY={error:function(){!e.Ma()&&e.isActive&&e.publish("error",e)},
  3268. updateend:function(){!e.Ma()&&e.isActive&&e.publish("updateend",e)}};
  3269. g.bF(this.Qd,this.xY);this.TT=this.isActive};
  3270. DK=function(a,b,c,d,e,f){g.aF.call(this);var h=this;this.Sb=a;this.pg=b;this.id=c;this.containerType=d;this.qb=e;this.vg=f;this.uQ=this.iF=this.If=null;this.tI=!1;this.appendWindowStart=this.timestampOffset=0;this.QN=uK([],[]);this.FD=!1;this.hF=[];this.KB=TDa?[]:void 0;this.Ed=function(m){return h.publish(m.type,h)};
  3271. var l;if(null==(l=this.Sb)?0:l.addEventListener)this.Sb.addEventListener("updateend",this.Ed),this.Sb.addEventListener("error",this.Ed)};
  3272. EK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
  3273. FK=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
  3274. GK=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.pg=this.mediaElement.Hb());this.events=new g.cK(this);g.N(this,this.events);this.C=new FK(this.Qa?window.URL.createObjectURL(this.Qa):this.pg.webkitMediaSourceURL,!0);a=this.Qa||this.pg;TB(this.events,a,["sourceopen","webkitsourceopen"],this.Xba);TB(this.events,a,["sourceclose","webkitsourceclose"],this.Wba);this.D={updateend:this.w5}};
  3275. UDa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
  3276. VDa=function(a,b){HK(a)?g.ig(function(){b(a)}):a.callback=b};
  3277. WDa=function(a,b,c){if(IK){var d;JK(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.ea)?void 0:KK(d)},!1);g.bF(b,a.D,a);g.bF(c,a.D,a)}a.j=b;a.B=c;g.N(a,b);g.N(a,c)};
  3278. XDa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.qb;c=c.qb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.pg&&(a.pg.webkitSourceAddId("0",e),a.pg.webkitSourceAddId("1",d));f=new DK(a.Z,a.pg,"0",hK(e),c,!1);d=new DK(a.Y,a.pg,"1",hK(d),b,!0);WDa(a,f,d)};
  3279. LK=function(a){return!!a.j||!!a.B};
  3280. HK=function(a){try{return"open"===MK(a)}catch(b){return!1}};
  3281. MK=function(a){if(a.Qa)return a.Qa.readyState;switch(a.pg.webkitSourceState){case a.pg.SOURCE_OPEN:return"open";case a.pg.SOURCE_ENDED:return"ended";default:return"closed"}};
  3282. YDa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
  3283. ZDa=function(a){HK(a)&&(a.Qa?a.Qa.endOfStream():a.pg.webkitSourceEndOfStream(a.pg.EOS_NO_ERROR))};
  3284. $Da=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Qd:a.j,f=a.B.isView()?a.B.Qd:a.B,h=new GK(a.mediaElement,a.Qa,!0);h.C=a.C;WDa(h,new CK(e,b,c,d),new CK(f,b,c,d));HK(a)||a.j.rq(a.j.Kc());return h};
  3285. aEa=function(a){var b;null==(b=a.j)||b.nz();var c;null==(c=a.B)||c.nz();a.K=!1};
  3286. NK=function(){var a=this;this.lS=this.yS=qaa;this.promise=new g.kg(function(b,c){a.yS=b;a.lS=c})};
  3287. OK=function(){g.I.call(this);this.OJ=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Dd;this.ea=null;g.N(this,this.D)};
  3288. bEa=function(a){a=a.CE();return 1>a.length?NaN:a.end(a.length-1)};
  3289. cEa=function(a){!a.B&&UDa()&&(a.C?a.C.then(function(){return cEa(a)}):a.Df()||(a.B=a.lr()))};
  3290. dEa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
  3291. JK=function(a,b,c){var d;(null==(d=a.ea)?0:d.zc())&&a.ea.ma("rms",b,void 0===c?!1:c)};
  3292. eEa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.XA(function(){eEa(a,a.getCurrentTime(),c+1)},500))};
  3293. fEa=function(a,b){a.resource&&null!==b&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
  3294. PK=function(a){return AK(a.Sh(),a.getCurrentTime())};
  3295. gEa=function(a,b){if(0===a.Kk()||a.hasError())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.CE(),a.length||!c)?xK(a,b):c};
  3296. iEa=function(a){a.Df()&&(hEa&&a.ea&&a.ea.Tu("rs_s"),UC&&0<a.getCurrentTime()&&a.seekTo(0),a.wL(),a.load(),fEa(a,null));delete a.C};
  3297. jEa=function(a){switch(a.Yg()){case 2:return"progressive.net.retryexhausted";case 3:var b;return(null==(b=a.qf())?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
  3298. g.QK=function(a,b,c){this.Ig=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
  3299. RK=function(a,b){return kEa(a,b.getCurrentTime(),(0,g.EC)(),PK(b))};
  3300. SK=function(a,b,c,d){if(!(b===a.state&&c===a.Ig&&d===a.seekSource||void 0!==b&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.QK(b,c,e?d?d:a.seekSource:null)}return a};
  3301. TK=function(a,b,c){return SK(a,a.state|b,null,void 0===c?null:c)};
  3302. UK=function(a,b){return SK(a,a.state&~b,null,null)};
  3303. VK=function(a,b,c,d){return SK(a,(a.state|b)&~c,null,void 0===d?null:d)};
  3304. g.TF=function(a,b){return!!(a.state&b)};
  3305. g.lEa=function(a,b){return b.state===a.state&&b.Ig===a.Ig};
  3306. mEa=function(a){return a.isPlaying()&&!g.TF(a,16)&&!g.TF(a,32)};
  3307. WK=function(a){return g.TF(a,128)?-1:g.TF(a,2)?0:g.TF(a,2048)?3:g.TF(a,64)?-1:g.TF(a,1)&&!g.TF(a,32)?3:g.TF(a,8)?1:g.TF(a,4)?2:-1};
  3308. YK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){g.I.call(this);var w=this;this.Io=a;this.slot=b;this.layout=c;this.Oa=d;this.ub=e;this.Ra=f;this.Ha=h;this.yc=l;this.Lb=m;this.iq=n;this.position=q;this.G=r;this.Aa=t;this.Gr=v;this.gh=!0;this.D=!1;this.hc="not_rendering";this.j=!1;this.B=new sDa;a=zI(this.layout.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(c.Cb,this.Oa,a,c.layoutId);var A;a=(null==(A=XK(this))?void 0:A.progressCommands)||[];this.C=new KCa(m,a,c.layoutId,function(){return w.Rz()})};
  3309. ZK=function(a){return{layoutId:a.pw(),Op:a.Gr,Lf:a.Ra.get(),Tw:a.uf()}};
  3310. XK=function(a){return zI(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
  3311. nEa=function(a){RF("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
  3312. oEa=function(a){a.uf()&&RF("Unexpected ad player in SSAP",a.slot,a.layout)};
  3313. $K=function(a,b){switch(b){case "normal":a.Ub("complete");break;case "skipped":a.Ub("skip");break;case "abandoned":CJ(a.Ya,"impression")&&a.Ub("abandon")}};
  3314. aL=function(a,b){a.D||(b=new g.SF(b.state,new g.QK),a.D=!0);return b};
  3315. bL=function(a,b){PJ(b)?a.iq(1):g.VF(b,4)&&!g.VF(b,2)&&a.j2();0>UF(b,4)&&!(0>UF(b,2))&&a.l2()};
  3316. pEa=function(a){0===a.position&&(a.yc.get(),a=zI(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:cL(a)},eH("ad_bl"),g.fH(a))};
  3317. dL=function(a,b){qCa(a.Ya,b,!a.j)};
  3318. rEa=function(a){var b;return-1!==((null==(b=XK(a))?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(null==c?void 0:c.command,qEa)})};
  3319. eL=function(a,b){var c=zI(a.Ba,"metadata_type_eligible_for_ssap");return void 0===c?(RF("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.uf(c)};
  3320. fL=function(a,b,c){hH(a,c)||iH(a,b,c);hH(a,"video_to_ad")||iH(a,b,"video_to_ad");hH(a,"ad_to_video")||iH(a,b,"ad_to_video");hH(a,"ad_to_ad")||iH(a,b,"ad_to_ad")};
  3321. gL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){YK.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,w);var A=this;this.Xc=m;this.Mn=q;this.VJ=!0;this.xQ=this.cj=0;this.xz=Nd(function(){xDa(ZK(A));A.Io.vc(A.slot,A.layout)});
  3322. this.Xs=Nd(function(){yDa(ZK(A));"rendering_stop_requested"!==A.hc&&A.Mn(A);A.jO()});
  3323. this.We=new g.rg(200);this.We.listen("tick",function(){A.Sc()});
  3324. g.N(this,this.We)};
  3325. tEa=function(a){a.xQ=Date.now();sEa(a,a.cj);a.We.start()};
  3326. uEa=function(a){a.cj=a.Rz();a.Xz(a.cj/1E3,!0);sEa(a,a.cj)};
  3327. sEa=function(a,b){b={current:b/1E3,duration:a.Rz()/1E3};a.Xc.get().Gu("onAdPlaybackProgress",b)};
  3328. vEa=function(a){gL.call(this,a.Io,a.slot,a.Mf,a.Oa,a.ub,a.Ra,a.Ha,a.yc,a.Xc,a.Lb,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr)};
  3329. hL=function(a){gL.call(this,a.Io,a.slot,a.Mf,a.Oa,a.ub,a.Ra,a.Ha,a.yc,a.Xc,a.Lb,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr)};
  3330. wEa=function(){hL.apply(this,arguments)};
  3331. yEa=function(a){return eL(a.slot,a.Aa.get())?xEa(a.Aa.get())?new wEa(a):new hL(a):new vEa(a)};
  3332. kL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L){YK.call(this,a,b,c,d,e,l,m,p,r,v,w,A,D,F,H);var M=this;this.df=f;this.ud=h;this.Oc=n;this.Xc=q;this.Tf=t;this.Mn=w;this.context=L;this.adCpn="";this.mW=0;this.BY=!1;this.xz=Nd(function(){xDa(ZK(M));M.Io.vc(M.slot,M.layout)});
  3333. this.Xs=Nd(function(){yDa(ZK(M));"rendering_stop_requested"!==M.hc&&M.Mn(M);M.jO()});
  3334. this.uf()||(this.pK=new g.xv(function(){M.YA("load_timeout",new wI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=iL(this.Aa.get()),F=jL(F.get()),a&&F&&(this.QA=new g.xv(function(){var R=zI(c.Ba,"metadata_type_preload_player_vars");
  3335. R&&M.ud.get().J.preloadVideoByPlayerVars(R,2,300)})))};
  3336. AEa=function(a,b){var c=zI(b.Ba,"metadata_type_ad_video_id"),d=zI(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Tf.get().J.U().Na.add(c,{qI:d});(b=zI(b.Ba,"metadata_type_sodar_extension_data"))&&IBa(a.df.get(),b);zEa(a.Ha.get(),!1)};
  3337. BEa=function(a){zEa(a.Ha.get(),!0);var b;(null==(b=a.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ha.get().WB(!1)};
  3338. DEa=function(a){return xEa(a.context.Aa.get())?new CEa(a):new lL(a)};
  3339. lL=function(a){kL.call(this,a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)};
  3340. CEa=function(){lL.apply(this,arguments)};
  3341. EEa=function(a){return yEa(Object.assign({},a,{Io:a.callback,iq:function(){}}))};
  3342. FEa=function(a){return new kL(a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,function(b){a.Xc.get().Gu("onAdIntroStateChange",b)},a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)};
  3343. GEa=function(a){function b(c){a.Xc.get().kG(c)}
  3344. return eL(a.slot,a.Aa.get())?DEa(Object.assign({},a,{iq:b})):new kL(a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,b,a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)};
  3345. HEa=function(a){for(var b=a.Mf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.u(zJ()),e=d.next();!e.done;e=d.next())c.push(e.value);if(GJ(b,{Kd:c,Ge:["LAYOUT_TYPE_MEDIA_BREAK"]}))return EEa(a);b=a.Mf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.u(zJ());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(GJ(b,{Kd:c,Ge:["LAYOUT_TYPE_MEDIA"]}))return tI(a.Mf.Ba,"metadata_type_ad_intro")?FEa(a):GEa(a)};
  3346. JEa=function(a){var b=zI(a.Ba,"metadata_type_ad_placement_config").kind,c=zI(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:IEa(c),adBreakType:cL(b)}};
  3347. cL=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
  3348. IEa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
  3349. LEa=function(){var a=g.Ja.apply(0,arguments);try{return new (Function.prototype.bind.apply(KEa,[null].concat(g.qa(a))))}catch(b){}};
  3350. KEa=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.As=a;this.slot=b;this.layout=c;this.ze=d;this.rf=e;this.Ra=f;this.Mc=h;this.ud=l;this.wc=m;this.Ha=n;this.gh=!0;this.j=void 0;this.B=!1;a=HEa(p);if(!a)throw Error("Invalid params for sublayout");this.Hd=a};
  3351. mL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.I.call(this);this.callback=a;this.Ra=b;this.Mc=c;this.ud=d;this.Ha=e;this.yc=f;this.xs=h;this.slot=l;this.layout=m;this.ze=n;this.Yh=p;this.wc=q;this.Aa=r;this.gh=!0;this.Iw=!1;this.xd=[];this.jd=-1;this.eQ=this.LP=!1;this.hO=new sDa};
  3352. MEa=function(a){var b;return null!=(b=a.layout.Zx)?b:zI(a.layout.Ba,"metadata_type_sub_layouts")};
  3353. nL=function(a){return{Lf:a.Ra.get(),Op:!1,Tw:a.uf()}};
  3354. OEa=function(a,b,c){var d=a.xd[a.jd];a.jd===a.xd.length-1&&RF("Unexpected skip with target requested during the last sublayout",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c});if(void 0===c.renderingContent&&c.layoutId!==oL(d,b,c))RF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c});else{var e=zI(d.eb().Ba,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.xd.length){a:{for(var f=e;f<a.xd.length;){if(e===
  3355. zI(a.xd[f].eb().Ba,"metadata_type_ad_pod_skip_index")){e=f;break a}f++}e=void 0}void 0===e?RF("Skip-to-index was requested but target index was not found",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c}):a.uf()?a.yI(d.eb(),e,"skipped"):NEa(a,d.Vb(),d.eb(),e)}else RF("Invalid ad pod skip target index",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c})}};
  3356. oL=function(a,b,c){var d=zI(a.eb().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(RF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Vb(),a.eb(),{requestingSlot:b,requestingLayout:c}),null)};
  3357. NEa=function(a,b,c,d){pL(a,b,c,"skipped",function(){PEa(a,d)})};
  3358. pL=function(a,b,c,d,e){if(!a.eQ){var f=a.xd[a.jd];if(f){f.eb().layoutId!==c.layoutId&&RF("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.eb().layoutId});a.eQ=!0;f.Gd(f.eb(),d);f=Object.assign({},nL(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.Tw){var m={};UJ(f.Lf,"wrsx",(m.xc=h,m.ler=l,m.ctp=TJ(h),m))}a.kO(b,c,d);a.eQ=!1;a.UP?(a.UP(),a.uf()||QEa(a.yc.get())):e()}else RF("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
  3359. b,c)}};
  3360. PEa=function(a,b){a.jd===a.xd.length-1?(a.jd++,qL(a.Yh,a.layout,"normal"),a.uf()||QEa(a.yc.get())):REa(a,b)};
  3361. REa=function(a,b){if(-1===a.jd&&(a.callback.vc(a.slot,a.layout),0<b)){RF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.jd=b;b=a.xd[a.jd];if(0<a.jd&&!a.uf()){var c=a.yc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});gH("ad_to_ad",d)}a.I1(b)};
  3362. SEa=function(a){mL.call(this,a.As,a.Ra,a.Mc,a.ud,a.Ha,a.yc,a.xs,a.slot,a.layout,a.ze,a.Yh,a.wc,a.Aa)};
  3363. rL=function(a){mL.call(this,a.As,a.Ra,a.Mc,a.ud,a.Ha,a.yc,a.xs,a.slot,a.layout,a.ze,a.Yh,a.wc,a.Aa)};
  3364. TEa=function(a,b,c){pL(a,a.slot,b,c,function(){var d=a.SW;d?(a.SW=void 0,d(b)):RF("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
  3365. UEa=function(){rL.apply(this,arguments);this.Ri=void 0};
  3366. WEa=function(a,b,c){2>b.cP().currentState&&(c=VEa(c),b.Gd(b.eb(),c));c=b.cP().j;a.kO(a.slot,b.eb(),c)};
  3367. VEa=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:return RF("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ne(a,"unexpected transition reason")}};
  3368. XEa=function(a){return eL(a.slot,a.Aa.get())?xEa(a.Aa.get())?new UEa(a):new rL(a):new SEa(a)};
  3369. YEa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.ud=b;this.Ha=c;this.yc=d;this.Hd=e;this.wc=f;this.Aa=h;this.gh=!0;this.Iw=!1};
  3370. ZEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L){function M(){var ka=HEa(Object.assign({},la,{callback:{vc:a.vc.bind(a),Ec:a.Ec.bind(a),HB:function(){},
  3371. jf:a.jf.bind(a)},slot:c,Mf:d,Mn:function(){qL(h,d,"normal")},
  3372. uq:0,jy:1,Gr:!0}));return ka?new YEa(a,p,r,v,ka,e,F):ka}
  3373. function R(){var ka=Object.assign({},la,{callback:{vc:function(){},
  3374. Ec:function(){},
  3375. HB:function(){return void qL(h,d,"normal")},
  3376. jf:function(){}},
  3377. slot:c,Mf:d,Mn:function(){},
  3378. uq:0,jy:1,Gr:!0});return LEa(a,c,d,f,h,q,H,p,e,r,ka)}
  3379. function ea(){var ka,ia=null!=(ka=d.Zx)?ka:zI(d.Ba,"metadata_type_sub_layouts");ka=XEa({As:a,Ra:q,Mc:H,ud:p,Ha:r,yc:v,xs:b,slot:c,layout:d,ze:f,Yh:h,wc:e,Aa:F});for(var sa=[],aa={Fw:0};aa.Fw<ia.length;aa={Fw:aa.Fw},aa.Fw++){var U=HEa(Object.assign({},la,{callback:{vc:ka.aca.bind(ka),Ec:ka.O_.bind(ka),HB:ka.HB.bind(ka),jf:ka.N_.bind(ka)},slot:c,Mf:ia[aa.Fw],Mn:function(Ha){return function(x){x.Gd(ia[Ha.Fw],"normal")}}(aa),
  3380. uq:aa.Fw,jy:ia.length,Gr:!1}));if(!U)return;sa.push(U)}ka.xd=sa;return ka}
  3381. var la={Oa:l,ub:m,df:n,ud:p,Ra:q,Ha:r,Oc:t,yc:v,Xc:w,Lb:A,Tf:D,Aa:F,context:L};l=GJ(d,{Kd:["metadata_type_sub_layouts"],Ge:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.Zx&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType;m=eL(c,F.get())&&GJ(d,{Kd:[],Ge:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=GJ(d,{Kd:[],Ge:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return ea();if(m)return R();if(n)return M()};
  3382. sL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.Mc=e;this.Af=f;this.Ha=h;this.Ya=l;this.Oa=m;this.D=n;this.driftRecoveryMs=zI(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
  3383. aFa=function(a){var b=zI(a.layout.Ba,"metadata_type_layout_enter_ms"),c=zI(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.Af.get();b=$Ea(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
  3384. bFa=function(a,b){var c;tL(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ra.get().dw)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Yb.adClientDataEntry},b)})};
  3385. cFa=function(a,b,c,d,e,f,h,l,m,n,p){sL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,tI(b.eb().Ba,"metadata_type_survey_overlay")&&(this.B=b.eb().layoutId)};
  3386. eFa=function(a,b){var c=dFa(a,b);a.j={Vl:c};c?c.startRendering(c.eb()):b===a.B&&RF("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
  3387. dFa=function(a,b){return null==b?null:a.C.find(function(c){return c.eb().layoutId===b})||null};
  3388. fFa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=tI(b.Ba,"metadata_type_survey_overlay"),r,t=(null==(r=zI(a.Ba,"metadata_type_fulfilled_layout"))?void 0:zI(r.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.QE(c,t,2,f,d,e,a.slotId),uL(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.wD(c,t,2,f,d,e,a.slotId);uL(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return RF("Unexpected failure to add to playback timeline",
  3389. a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&RF("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):RF("Invalid timeline playback ID");d+f>e&&h.qH(p,e-d);return p};
  3390. gFa=function(a,b){var c=zI(b.Ba,"metadata_type_sodar_extension_data");if(c)try{IBa(0,c)}catch(d){RF("Unexpected error when loading Sodar",a,b,{error:d})}};
  3391. iFa=function(a,b,c,d,e,f){hFa(a,b,new g.SF(c,new g.QK),d,e,!1,f)};
  3392. hFa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;PJ(c)&&QJ(e,0,null)&&(!CJ(a,"impression")&&h&&h(),a.Ub("impression"));CJ(a,"impression")&&(g.VF(c,4)&&!g.VF(c,2)&&a.Mh("pause"),0>UF(c,4)&&!(0>UF(c,2))&&a.Mh("resume"),g.VF(c,16)&&.5<=e&&a.Mh("seek"),f&&g.VF(c,2)&&jFa(a,c.state,b,d,e))};
  3393. jFa=function(a,b,c,d,e,f,h){if(CJ(a,"impression")){var l=1>=Math.abs(d-e);kFa(a,b,l?d:e,c,d,f,h&&l);l&&a.Ub("complete")}};
  3394. kFa=function(a,b,c,d,e,f,h){BJ(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.TF(b,16))||(null==b?0:g.TF(b,32))||(QJ(c,.25*e,d)&&(f&&!CJ(a,"first_quartile")&&f("first"),a.Ub("first_quartile")),QJ(c,.5*e,d)&&(f&&!CJ(a,"midpoint")&&f("second"),a.Ub("midpoint")),QJ(c,.75*e,d)&&(f&&!CJ(a,"third_quartile")&&f("third"),a.Ub("third_quartile")))};
  3395. lFa=function(a,b){CJ(a,"impression")&&a.Mh(b?"fullscreen":"end_fullscreen")};
  3396. mFa=function(a){CJ(a,"impression")&&a.Mh("clickthrough")};
  3397. nFa=function(a){a.Mh("active_view_measurable")};
  3398. oFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("active_view_fully_viewable_audible_half_duration")};
  3399. pFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("active_view_viewable")};
  3400. qFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("audio_audible")};
  3401. rFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("audio_measurable")};
  3402. sFa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Mc=d;this.Ya=e;this.Ha=f;this.ys=h;this.ub=l;this.df=m;this.Aa=n;this.Oa=p;this.Ra=q;this.VJ=!0;this.bd=this.hc=null;this.adCpn=void 0};
  3403. tFa=function(a,b,c){var d;uL(a.Oa.get(),"ads_qua","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Yd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
  3404. uFa=function(a,b){var c,d;uL(a.Oa.get(),"ads_imp","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ra.get().Yd(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V(null==(d=zI(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,vL))};
  3405. vFa=function(a){return{enterMs:zI(a.Ba,"metadata_type_layout_enter_ms"),exitMs:zI(a.Ba,"metadata_type_layout_exit_ms")}};
  3406. wFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){sL.call(this,a,b,c,d,e,h,l,m,n,q);this.ys=f;this.df=p;this.ub=r;this.Aa=t;this.bd=this.hc=null};
  3407. xFa=function(a,b){var c;uL(a.Oa.get(),"ads_imp","acpn."+(null==(c=a.Ra.get().Yd(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
  3408. yFa=function(a,b,c){var d;uL(a.Oa.get(),"ads_qua","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Yd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
  3409. zFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H){this.wc=a;this.ze=b;this.Yh=c;this.Ra=d;this.Mc=e;this.Ha=f;this.Oa=h;this.ys=l;this.Af=m;this.ub=n;this.df=p;this.ud=q;this.Oc=r;this.yc=t;this.Xc=v;this.Lb=w;this.Tf=A;this.Aa=D;this.j=F;this.context=H};
  3410. wL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){this.wc=a;this.ze=b;this.Yh=c;this.Oa=d;this.ub=e;this.df=f;this.ud=h;this.Ra=l;this.Ha=m;this.Oc=n;this.yc=p;this.Xc=q;this.Lb=r;this.Tf=t;this.Aa=v;this.Mc=w;this.context=A};
  3411. AFa=function(a,b,c,d){$E.call(this,"survey-interstitial",a,b,c,d)};
  3412. xL=function(a,b,c,d,e){rJ.call(this,c,a,b,d);this.Oa=e;a=zI(b.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(b.Cb,e,a,b.layoutId)};
  3413. yL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
  3414. CFa=function(a,b,c){c=void 0===c?BFa:c;c.width<BFa.width&&(c=BFa);if(a.width<c.width||a.height<c.height)return{rM:3,tH:501,errorMessage:"ad("+yL(c)+") larger than container("+yL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{rM:3,tH:501,errorMessage:"ad("+yL(c)+") to container("+yL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{rM:3,tH:501,errorMessage:"ad("+yL(c)+") covers container("+yL(a)+") center."}};
  3415. DFa=function(a,b){var c=zI(a.Ba,"metadata_type_ad_placement_config");return new yJ(a.Cb,b,c,a.layoutId)};
  3416. zL=function(a){return zI(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
  3417. EFa=function(a,b,c,d){$E.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
  3418. AL=function(a,b,c,d,e,f,h,l,m,n,p,q){rJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ha=l;this.Lb=m;this.Aa=n;this.K=p;this.G=q;this.Ya=DFa(b,c)};
  3419. FFa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];zJ().forEach(function(b){a.push(b)});
  3420. return{Kd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
  3421. BL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){rJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ha=m;this.Lb=n;this.Aa=p;this.K=q;this.G=r;this.Ya=DFa(b,c)};
  3422. GFa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(zJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Kd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
  3423. CL=function(a){this.Ha=a;this.j=!1};
  3424. HFa=function(a,b,c){$E.call(this,"survey",a,{},b,c)};
  3425. IFa=function(a,b,c,d,e,f,h){rJ.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Aa=h};
  3426. JFa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
  3427. KFa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
  3428. DL=function(a,b,c,d,e,f,h,l,m,n){KJ.call(this,a,b,c,d,e,f,h,m);this.dn=l;this.Ra=n};
  3429. LFa=function(){var a=jDa();a.Kd.push("metadata_type_ad_info_ad_metadata");return a};
  3430. MFa=function(a,b,c,d,e,f,h){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.dn=e;this.j=f;this.Ra=h};
  3431. NFa=function(a,b,c,d,e,f,h,l){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.dn=e;this.j=f;this.Aa=h;this.Ra=l};
  3432. EL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
  3433. FL=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
  3434. var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
  3435. GL=function(a,b,c){this.Wu=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
  3436. HL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
  3437. IL=function(a,b,c,d){this.Wu=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
  3438. OFa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
  3439. JL=function(a,b,c){this.triggeringLayoutId=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
  3440. KL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
  3441. LL=function(a,b,c,d){this.triggeringLayoutId=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=d||a(this.triggerType)};
  3442. PFa=function(a){switch(a){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new xI("Invalid layout exit reason: "+
  3443. a)}};
  3444. ML=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
  3445. QFa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
  3446. RFa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
  3447. SFa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
  3448. TFa=function(a,b,c,d,e){this.Wu=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
  3449. NL=function(a,b,c,d,e){this.Wu=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
  3450. UFa=function(a,b,c){this.Wu=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
  3451. OL=function(a,b,c,d,e){this.j=b;this.slotType=c;this.layoutType=d;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=e||a(this.triggerType)};
  3452. VFa=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
  3453. PL=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
  3454. QL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
  3455. KBa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
  3456. WFa=function(a,b){this.ping=a;this.index=b};
  3457. XFa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
  3458. YFa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
  3459. ZFa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
  3460. $Fa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
  3461. RL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
  3462. SL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
  3463. TL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
  3464. UL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
  3465. VL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
  3466. WL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
  3467. XL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
  3468. YL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
  3469. ZL=function(a,b,c,d){this.durationMs=b;this.triggeringLayoutId=c;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d||a(this.triggerType)};
  3470. $L=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
  3471. aM=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
  3472. dGa=function(a){if(!aM(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,bM)||g.V(a,cM)||g.V(a,dM)||g.V(a,aGa)||g.V(a,bGa)||g.V(a,cGa)?!0:!1};
  3473. eGa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
  3474. fGa=function(a){return!!(a.I9&&a.slot&&a.layout)};
  3475. gGa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
  3476. hGa=function(a){if(!aM(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,NJ)||g.V(a,MJ)||g.V(a,nDa)?!0:!1};
  3477. eM=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
  3478. jM=function(a){if(!aM(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.V(a,iGa);return b?jGa(b):(b=g.V(a,fM))?eM(b):(b=g.V(a,gM))?void 0!==b.playerVars:(b=g.V(a,NJ))?void 0!==b.durationMilliseconds:g.V(a,hM)||g.V(a,iM)?!0:!1};
  3479. jGa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.V(b,kGa)});
  3480. return 0<a.length&&a.every(jM)};
  3481. oGa=function(a){if(!aM(a.adLayoutMetadata))return!1;if(g.V(a.renderingContent,lGa))return!0;a=g.V(a.renderingContent,kM);return g.V(null==a?void 0:a.sidePanel,mGa)||g.V(null==a?void 0:a.sidePanel,nGa)?!0:!1};
  3482. tGa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(pGa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.V(a,kGa))?jM(c):(c=g.V(a,lM))?oGa(c):(c=g.V(a,qGa))?hGa(c):(c=g.V(a,rGa))?dGa(c):(a=g.V(a,sGa))?aM(a.adLayoutMetadata)?g.V(a.renderingContent,bM)?!0:!1:!1:!1};
  3483. pGa=function(a){var b;a=g.V(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,lM);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
  3484. vGa=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.u(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.V(b,mM))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.V(b,nM))?void 0:d.surveyAdQuestionCommon);if(!uGa(e))return!1}return!0};
  3485. wGa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.V(a.questions[0],mM))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.V(a.questions[0],nM))?void 0:c.surveyAdQuestionCommon);b=uGa(d)}else b=!1;else b=!1;return b};
  3486. uGa=function(a){if(!a)return!1;a=g.V(a.instreamAdPlayerOverlay,xGa);var b=g.V(null==a?void 0:a.skipOrPreviewRenderer,vL),c=g.V(null==a?void 0:a.adInfoRenderer,oM);return(g.V(null==a?void 0:a.skipOrPreviewRenderer,pM)||b)&&c?!0:!1};
  3487. yGa=function(a){return null!=a.linearAds&&aM(a.adLayoutMetadata)};
  3488. zGa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
  3489. AGa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.V(a.ctaButton,g.qM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.V(a.backgroundImage,rM)&&(null==(b=g.V(a.backgroundImage,rM))?0:b.landscape)?!0:!1};
  3490. sM=function(a,b,c,d,e,f,h){g.I.call(this);this.Aa=a;this.j=b;this.C=d;this.Ra=e;this.D=f;this.B=h};
  3491. DGa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.V(f,tM)});
  3492. c.fC?zI(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?oJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Aa.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Lv.filter(function(f){var h;
  3493. return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?BGa(a.B,d,e,b.slotId,c.ssdaiAdsConfig):oJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):oJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),CGa(a.D,b)):BGa(a.B,c.Lv,e,b.slotId,c.ssdaiAdsConfig)};
  3494. FGa=function(a,b,c,d,e,f){var h=a.Ra.get().Yd(1);oJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return EGa(a.C.get(),c,d,e,h.clientPlaybackNonce,h.wp,h.daiEnabled,h,f)},b)};
  3495. IGa=function(a,b,c,d,e,f,h){b=GGa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof xI?b:HGa(a,d,e,b,c);return a instanceof xI?a:[a]};
  3496. JGa=function(a,b,c,d,e){var f=pJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new jI({getAdBreakUrl:d.getAdBreakUrl,jS:0,iS:0}),new WAa(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new WL(a.j,f),slotFulfillmentTriggers:[new OFa(a.j)],slotExpirationTriggers:[new QL(a.j,e),new TL(a.j,f)],Xa:"core",Ba:new yI(d),adSlotLoggingData:c}:new xI("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new xI("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
  3497. return a instanceof xI?a:[a]};
  3498. KGa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
  3499. uM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new GL(vI,b,a.id):new xI("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=null!=(d=a.layoutIdExitedTrigger)&&d.triggeringLayoutId?new ML(vI,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new xI("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;(null==(e=a.layoutExitedForReasonTrigger)?0:e.triggeringLayoutId)&&
  3500. (null==(f=a.layoutExitedForReasonTrigger)?0:f.layoutExitReason)?(b=PFa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof xI?b:new LL(vI,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new xI("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=null!=(h=a.onLayoutSelfExitRequestedTrigger)&&h.triggeringLayoutId?new PL(vI,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new xI("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
  3501. a.onNewPlaybackAfterContentVideoIdTrigger?new QL(vI,b,a.id):new xI("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=null!=(l=a.skipRequestedTrigger)&&l.triggeringLayoutId?new RL(vI,a.skipRequestedTrigger.triggeringLayoutId,a.id):new xI("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=null!=(m=a.slotIdEnteredTrigger)&&m.triggeringSlotId?new SL(vI,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new xI("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
  3502. b=null!=(n=a.slotIdExitedTrigger)&&n.triggeringSlotId?new TL(vI,a.slotIdExitedTrigger.triggeringSlotId,a.id):new xI("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=null!=(p=a.surveySubmittedTrigger)&&p.triggeringLayoutId?new YL(vI,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new xI("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new SFa(a.id):new xI("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
  3503. b=null!=(q=a.closeRequestedTrigger)&&q.triggeringLayoutId?new HL(vI,a.closeRequestedTrigger.triggeringLayoutId,a.id):new xI("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=null!=(r=a.slotIdScheduledTrigger)&&r.triggeringSlotId?new WL(vI,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new xI("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetStartMilliseconds);var v;h=Number(null==
  3504. (v=a.mediaTimeRangeTrigger)?void 0:v.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(v=h,-1===v&&(v=c),c=d>v?new xI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new Vv(d,v),a=c instanceof xI?c:new NL(vI,b,c,!1,a.id)):a=new xI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new IL(vI,b,!1,a.id):new xI("Not able to create ContentVideoIdEndedTrigger");
  3505. else{if(a.layoutIdEnteredTrigger){var w;b=null!=(w=a.layoutIdEnteredTrigger)&&w.triggeringLayoutId?new KL(vI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new xI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=null!=(A=a.timeRelativeToLayoutEnterTrigger)&&A.triggeringLayoutId?new ZL(vI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new xI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var D;
  3506. b=null!=(D=a.onDifferentLayoutIdEnteredTrigger)&&D.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new OL(vI,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new xI("Not able to create CloseRequestedTrigger")}else b=new xI("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a};
  3507. MGa=function(a,b,c,d,e,f,h,l){return null===b?new xI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[LGa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yI([new CH(d),new GH(e)]);n=cJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Cb:new Map,
  3508. layoutExitNormalTriggers:[new QL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:q,Yb:m(r),adLayoutLoggingData:p}})]};
  3509. NGa=function(a,b,c,d,e,f,h,l){return null===b?new xI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[LGa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yI([new DH(d),new GH(e)]);n=cJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3510. Cb:new Map,layoutExitNormalTriggers:[new QL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:q,Yb:m(r),adLayoutLoggingData:p}})]};
  3511. RGa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,vM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return OGa(p)});
  3512. b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={Tv:void 0},h=f.next()){l.Tv=h.value;h=g.u(l.Tv.xN);for(var m=h.next(),n={};!m.done;n={fn:void 0},m=h.next())n.fn=m.value,m=function(p,q){return function(r){return p.fn.rO(r,q.Tv.instreamVideoAdRenderer.elementId,p.fn.wN)}}(n,l),n.fn.isContentVideoCompanion?b.push(PGa(c,d,e,l.Tv.instreamVideoAdRenderer.elementId,n.fn.associatedCompositePlayerBytesLayoutId,n.fn.adSlotLoggingData,m)):1<a.length?b.push(QGa(c,d,e,l.Tv.instreamVideoAdRenderer.elementId,n.fn.adSlotLoggingData,
  3513. function(p,q){return function(r){return p.fn.rO(r,q.Tv.instreamVideoAdRenderer.elementId,p.fn.wN,p.fn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(QGa(c,d,e,l.Tv.instreamVideoAdRenderer.elementId,n.fn.adSlotLoggingData,m))}return b};
  3514. vM=function(a,b,c){if(b=SGa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=TGa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.SE=c)}else RF("InstreamVideoAdRenderer without externalVideoId")}};
  3515. SGa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.V(a.sandwichedLinearAdRenderer.linearAd,fM);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.u(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.V(c,fM)&&b.push(g.V(c,fM));return b}return null};
  3516. OGa=function(a){if(void 0===a.instreamVideoAdRenderer)return RF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.xN),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.rO)return!1;if(void 0===c.wN)return RF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.SE||void 0===c.YH||a.SE!==c.YH&&"AD_PLACEMENT_KIND_SELF_START"!==c.YH)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return RF("InstreamVideoAdRenderer has no elementId",
  3517. void 0,void 0,{kind:a.SE,"matching APSR kind":c.YH}),!1}return!0};
  3518. TGa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,SE:void 0,adVideoId:b,xN:[]});return a.get(b)};
  3519. wM=function(a,b,c,d,e,f,h,l,m){e?TGa(a,e).xN.push({Snb:b,YH:c,isContentVideoCompanion:d,wN:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,rO:m}):RF("Companion AdPlacementSupportedRenderer without adVideoId")};
  3520. UGa=function(a){var b,c=null==(b=zI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=zI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=zI(a.Ba,"metadata_type_content_cpn"),f=zI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=zI(a.Ba,"metadata_type_player_underlay_renderer"),l=zI(a.Ba,"metadata_type_ad_placement_config"),m=zI(a.Ba,"metadata_type_video_length_seconds");var n=tI(a.Ba,"metadata_type_layout_enter_ms")&&tI(a.Ba,
  3521. "metadata_type_layout_exit_ms")?(zI(a.Ba,"metadata_type_layout_exit_ms")-zI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xq:d,contentCpn:e,YR:c,yN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,oK:n,inPlayerLayoutId:zI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:zI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
  3522. XGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=pJ(d,"SLOT_TYPE_PLAYER_BYTES");a=VGa(e,a,h,c,d,m,n);if(a instanceof xI)return a;var w;n=null==(w=zI(a.Ba,"metadata_type_fulfilled_layout"))?void 0:w.layoutId;if(!n)return new xI("Invalid adNotify layout");b=WGa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof xI?b:[a].concat(g.qa(b))};
  3523. WGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=YGa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof xI)return c;a=ZGa(b,a,h,e,c);return a instanceof xI?a:[].concat(g.qa(a.hg),[a.Fx])};
  3524. aHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=YGa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof xI)return b;a=$Ga(a,c,f,h,d,l.Zb,b);return a instanceof xI?a:a.hg.concat(a.Fx)};
  3525. YGa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=xM(d,c,n);return r instanceof wI?new xI(r):n.J.U().experiments.fb("html5_refactor_in_player_slot_generation")?function(t){var v=new FL(0,[r.ip]);t=bHa(b,r.layoutId,r.Lo,c,yM(r.playerVars,r.CB,f,m,v),r.ip,e,v,h(t),l.get(r.Lo.externalVideoId),q);v=[];if(r.Lo.playerOverlay.instreamAdPlayerOverlayRenderer){var w=UGa(t);if(!w)return RF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,hg:[]};
  3526. v=[cHa(a,w.contentCpn,w.xq,function(D){return zM(b,D.slotId,"core",w,DI(p,D))},w.inPlayerSlotId)].concat(g.qa(v));
  3527. if(w.instreamAdPlayerUnderlayRenderer&&dHa(n)){var A=w.instreamAdPlayerUnderlayRenderer;v=[eHa(a,w.contentCpn,w.xq,function(D){return fHa(b,D.slotId,A,w.adPlacementConfig,w.xq,DI(p,D))})].concat(g.qa(v))}}return{layout:t,
  3528. hg:v}}:function(t){var v=new FL(0,[r.ip]);
  3529. return{layout:bHa(b,r.layoutId,r.Lo,c,yM(r.playerVars,r.CB,f,m,v),r.ip,e,v,h(t),l.get(r.Lo.externalVideoId),q),hg:[]}}};
  3530. xM=function(a,b,c){if(!a.playerVars)return new wI("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new wI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=NA(a.playerVars);e=Number(d.length_seconds);
  3531. isNaN(e)&&(e=0,RF("Expected valid length seconds in player vars but got NaN"));if(c.uf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new wI("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Lo:a,playerVars:d,CB:a.playerVars,ip:e}};
  3532. yM=function(a,b,c,d,e){a.iv_load_policy=d;b=NA(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){RF(f)}c.Yi&&(a.ctrl=c.Yi);c.Dj&&(a.ytr=c.Dj);c.Xv&&(a.ytrcc=c.Xv);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Rm&&(a.vss_credentials_token_type=c.Rm),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.j);a.autoplay="1";return a};
  3533. gHa=function(a){var b=new Map;a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b};
  3534. hHa=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.adSlotMetadata.slotType};
  3535. lHa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.u(a),t=r.next();!t.done;t=r.next()){t=t.value;var v;if(v=!pGa(t)){var w=void 0;v="SLOT_TYPE_IN_PLAYER"!==(null==t?void 0:null==(w=t.adSlotMetadata)?void 0:w.slotType)}if(v){w=hHa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.uf(w),D=iHa(t,n,d,c.wp,A);if(D instanceof xI)return D;var F=void 0;v={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=(F=t.adSlotMetadata.slotPhysicalPosition)?
  3536. F:1,Xa:"core",slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers};if(D=g.V(t.fulfillmentContent.fulfilledLayout,kGa)){if(!jM(D))return new xI("Invalid PlayerBytesAdLayoutRenderer");A=jHa(v,t.adSlotMetadata.triggerEvent,D,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof xI)return A;D=[];hHa(t)&&D.push(new sI({Ut:hHa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.Zb&&D.push(new pI({}));D.push(new rI(w));t=Object.assign({},
  3537. v,{Ba:new yI(D),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.qa(A.hg));q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,lM),D=A=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(A=w)?void 0:null==(D=A.adLayoutMetadata)?void 0:D.layoutType))if(w){if(!oGa(w))return new xI("Invalid PlayerUnderlayAdLayoutRenderer");A=w;F=d;var H=c.wp,L=f;D=v;w=t.adSlotMetadata.triggerEvent;if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===A.adLayoutMetadata.layoutType){var M=
  3538. g.V(A.renderingContent,kM);if(M)if(M=g.V(M.sidePanel,nGa)){var R={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Xa:"core"};F=AM(A,F,H);w=F instanceof xI?F:Object.assign({},R,{renderingContent:A.renderingContent,Cb:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},F,{Yb:DI(L,D)(R),Ba:new yI([new GH(BM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else w=new xI("DismissablePanelTextPortraitImageRenderer is missing");else w=
  3539. new xI("SqueezebackPlayerSidePanelRenderer is missing")}else"LAYOUT_TYPE_DISPLAY_TRACKING"===A.adLayoutMetadata.layoutType?g.V(A.renderingContent,lGa)?(M={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Xa:"core"},F=AM(A,F,H),w=F instanceof xI?F:Object.assign({},M,{renderingContent:A.renderingContent,Cb:new Map},F,{Yb:DI(L,D)(M),Ba:new yI([new GH(BM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):w=new xI("CounterfactualRenderer is missing"):w=new xI("LayoutType ["+
  3540. A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(w instanceof xI)return w;t=Object.assign({},v,{Ba:new yI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,rGa)){if(!dGa(w))return new xI("Invalid AboveFeedAdLayoutRenderer");w=kHa(w,d,c.wp,f,v,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof xI)return w;t=Object.assign({},v,{Ba:new yI([]),fulfilledLayout:w,
  3541. adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,sGa)){if(!aM(w.adLayoutMetadata)||!g.V(w.renderingContent,bM))return new xI("Invalid BelowPlayerAdLayoutRenderer");w=kHa(w,d,c.wp,f,v,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof xI)return w;t=Object.assign({},v,{Ba:new yI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new xI("Unable to retrieve a client slot ["+
  3542. v.slotType+"] from a given AdSlotRenderer")}}return q};
  3543. kHa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"};b=AM(a,b,c);if(b instanceof xI)return b;c=[];c.push(new GH(BM(f)));"SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"===f&&void 0!==h&&c.push(new SH(h));return Object.assign({},l,{renderingContent:a.renderingContent,Cb:new Map([["impression",mHa(a)]])},b,{Yb:DI(d,e)(l),Ba:new yI(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
  3544. jHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){var w=AM(c,f,e.wp);if(w instanceof xI)return w;if(g.V(c.renderingContent,fM)){m=nHa([c],e,m);if(m instanceof xI)return m;if(1!==m.length)return new xI("Only expected one media layout.");a=oHa(a,b,c,w,m[0],void 0,"core",d,f,h,l,n,r,t,v,e.wp,q);return a instanceof xI?a:{layout:a.layout,hg:a.kf?[a.kf]:[]}}var A=g.V(c.renderingContent,iGa);if(A){if(!aM(c.adLayoutMetadata))return new xI("Invalid ad layout metadata");if(!jGa(A))return new xI("Invalid sequential layout");
  3545. A=A.sequentialLayouts.map(function(D){return D.playerBytesAdLayoutRenderer});
  3546. a=pHa(a,b,c.adLayoutMetadata,w,A,d,f,e,m,h,l,n,p,q,v,r,t);return a instanceof xI?a:{layout:a.l7,hg:a.hg}}return new xI("Not able to convert a sequential layout")};
  3547. pHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){var D=new KH({current:null}),F=nHa(e,l,m);if(F instanceof xI)return F;m=[];for(var H=[],L=void 0,M=0;M<e.length;M++){var R=e[M];if(g.V(R.renderingContent,fM)){L=oHa(a,b,R,qHa,F[M],iL(r)&&jL(r)?F[M+1]:void 0,"adapter",f,h,n,p,q,w,A,v,l.wp,t,D);if(L instanceof xI)return L;m.push(L.layout);L.kf&&H.push(L.kf);L=F[M]}else if(g.V(R.renderingContent,gM)){var ea=a,la=p;if(jM(R)){var ka=g.V(R.renderingContent,gM);if(ka&&void 0!==ka.playerVars){var ia={layoutId:R.adLayoutMetadata.layoutId,
  3548. layoutType:R.adLayoutMetadata.layoutType,Xa:"adapter"};ka=NA(ka.playerVars);ka.autoplay="1";R=Object.assign({},ia,qHa,{renderingContent:R.renderingContent,Ba:new yI([new gI({}),new GH({kind:"AD_PLACEMENT_KIND_START"}),new WH({current:null}),new $H(ka)]),Cb:new Map,Yb:DI(la,ea)(ia),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R=new xI("Invalid ad intro renderer")}else R=new xI("Invalid PlayerBytesAdLayoutRenderer");if(R instanceof xI)return R;m.push(R)}else if(g.V(R.renderingContent,
  3549. NJ))if(A){R=rHa(a,R,p,BM(b),L);if(R instanceof xI)return R;m.push(R);R=sHa(w,R,h,l.wp,p,t,v,D);if(R instanceof xI)return R;if(R)H.push(R);else return new xI("Not able to retrieve InPlayer slot for endcap")}else{a:{ea=R.adLayoutMetadata.layoutId;la=g.u(f);for(ia=la.next();!ia.done;ia=la.next()){ia=ia.value;var sa=ka=void 0,aa=(null==(ka=ia.renderer)?void 0:null==(sa=ka.linearAdSequenceRenderer)?void 0:sa.linearAds)||[];ka=g.u(aa);for(sa=ka.next();!sa.done;sa=ka.next())if((sa=g.V(sa.value,NJ))&&void 0!==
  3550. sa.inPlayerSlotId&&void 0!==sa.inPlayerLayoutId&&void 0!==sa.associatedPlayerBytesLayoutId&&sa.associatedPlayerBytesLayoutId===ea){ea={SI:sa,adPlacementConfig:ia.config.adPlacementConfig};break a}}ea=new xI("Not able to find associated InPlayer slot for endcap")}if(ea instanceof xI)return ea;R=rHa(a,R,p,ea.adPlacementConfig,L);if(R instanceof xI)return R;m.push(R);R=tHa(R.layoutId,t,h,ea,D,p);if(R instanceof xI)return R;H.push(R)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Xa:"core"};return{l7:Object.assign({},
  3551. b,d,{Zx:m,Cb:new Map,Ba:new yI([D]),Yb:DI(p,a)(b)}),hg:H}};
  3552. oHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D){if(!jM(c))return new xI("Invalid PlayerBytesAdLayoutRenderer");var F=g.V(c.renderingContent,fM);(null==F?0:F.pings)?F=xJ(F.pings):(F=g.V(c.renderingContent,NJ),F=(null==F?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map);if(F instanceof xI)return F;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:h};a:{var H=c.adLayoutMetadata.layoutId,L=g.V(c.renderingContent,fM);if(L&&eM(L)){var M=[];if(t)M.push(new GH(BM(b)));
  3553. else{b:{l=g.u(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var R=SGa(b.renderer)||[],ea=g.u(R);for(R=ea.next();!R.done;R=ea.next())if(R=R.value,R.associatedPlayerBytesLayoutId===H){R.associatedPlayerBytesLayoutId?(l=R.playerOverlay,ea=void 0!==l&&void 0!==l.playerOverlayLayoutRenderer&&void 0!==l.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==l.playerOverlayLayoutRenderer.inPlayerLayoutId,l=void 0!==l&&void 0!==l.instreamAdPlayerOverlayRenderer&&void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&
  3554. void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||ea):l=!1;b=l?{instreamVideoAdRenderer:R,adPlacementConfig:b.config.adPlacementConfig}:new xI("Invalid InPlayer shim");break b}}b=new xI("Not able to find associated InPlayer slot")}if(b instanceof xI){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;R=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var la;ea=null!=(la=null==l?void 0:l.inPlayerSlotId)?la:null==R?void 0:R.inPlayerSlotId;
  3555. var ka;la=null!=(ka=null==l?void 0:l.inPlayerLayoutId)?ka:null==R?void 0:R.inPlayerLayoutId;if(void 0===ea){f=new xI("InPlayer shim slot id is undefined");break a}if(void 0===la){f=new xI("InPlayer shim layout id is undefined");break a}M.push(new TH(la),new VH(ea),new eI(e.Mv.j),new GH(b.adPlacementConfig));l&&M.push(new NH(l));R&&M.push(new OH(R))}M.push(new HH(e.Mv),new LH(L.externalVideoId),new MH(m),new oI({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,
  3556. progressCommands:L.adVideoProgressCommands}),new $H(e.zD),new WH({current:null}),new ZH(e.Dca.ip),new qI(wJ(L.pings)),new IH(e.Mv.j));(e=uHa(H,r))&&M.push(new QH(e));f&&M.push(new aI(f.zD));L.adNextParams&&M.push(new EH(L.adNextParams));L.clickthroughEndpoint&&M.push(new FH(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&M.push(new nI(L.legacyInfoCardVastExtension));L.sodarExtensionData&&M.push(new bI(L.sodarExtensionData));D&&L.adPodSkipTarget&&0<L.adPodSkipTarget&&(M.push(D),M.push(new JH(L.adPodSkipTarget)));
  3557. (f=n.get(L.externalVideoId))&&M.push(new kI(f));f=M}else f=new xI("Invalid vod media renderer")}if(f instanceof xI)return f;a=Object.assign({},h,d,{Cb:F,renderingContent:c.renderingContent,Ba:new yI(f),Yb:DI(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.V(c.renderingContent,fM);if(!c||!eM(c))return new xI("Invalid meida renderer");q=TGa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.SE="AD_PLACEMENT_KIND_START";return t?(m=sHa(r,a,m,w,p,A,v,D),m instanceof xI?m:uHa(a.layoutId,
  3558. r)&&m?{layout:Object.assign({},a,{Ba:new yI(f.concat(new IAa(m)))})}:{layout:a,kf:m}):{layout:a}};
  3559. rHa=function(a,b,c,d,e){if(!jM(b))return new xI("Invalid PlayerBytesAdLayoutRenderer");var f=g.V(b.renderingContent,NJ);if(!f||void 0===f.durationMilliseconds)return new xI("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Xa:"adapter"};d=[new mI(f.durationMilliseconds),new oI({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new GH(d),
  3560. new UH("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new IH(e.Mv.j-1));d.push(new eI(e.Mv.j));var l;d.push(new JH(null!=(l=e.adPodSkipTarget)?l:-1))}return Object.assign({},h,qHa,{renderingContent:b.renderingContent,Ba:new yI(d),Cb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Yb:DI(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
  3561. sHa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return"SLOT_TYPE_IN_PLAYER"===n.adSlotMetadata.slotType&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
  3562. if(0!==a.length){if(1!==a.length)return new xI("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=iHa(a,f,c,d,h);if(h instanceof xI)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:null!=(m=a.adSlotMetadata.slotPhysicalPosition)?m:1,Xa:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.V(a.fulfillmentContent.fulfilledLayout,
  3563. qGa);if(!m||!hGa(m))return new xI("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Xa:"core"};c=AM(m,c,d);if(c instanceof xI)return c;d=[];if("LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===m.adLayoutMetadata.layoutType)d.push.apply(d,g.qa(vHa(a.adSlotMetadata.triggerEvent,b)));else if("LAYOUT_TYPE_ENDCAP"===m.adLayoutMetadata.layoutType)d.push(new GH(BM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new xI("Not able to parse an SDF InPlayer layout");
  3564. e=Object.assign({},h,c,{renderingContent:m.renderingContent,Cb:new Map,Yb:DI(e,f)(h),Ba:new yI(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new yI([])})}};
  3565. vHa=function(a,b){var c=[];c.push(new GH(BM(a)));c.push(new SH(b.layoutId));(a=zI(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new WH(a));(a=zI(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new KH(a));(a=zI(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new kI(a));(a=zI(b.Ba,"metadata_type_ad_next_params"))&&c.push(new EH(a));(a=zI(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new FH(a));(a=zI(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new HH(a));(b=
  3566. zI(b.Ba,"metadata_type_ad_video_id"))&&c.push(new LH(b));return c};
  3567. tHa=function(a,b,c,d,e,f){function h(n){return CM(b,n)}
  3568. var l=d.SI.inPlayerSlotId,m={layoutId:d.SI.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Xa:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:new KL(h,a),slotFulfillmentTriggers:[new SL(h,l)],slotExpirationTriggers:[new TL(h,l),new QL(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new ML(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Cb:new Map,Ba:new yI([new RH(d.SI),new GH(d.adPlacementConfig),
  3569. e]),Yb:DI(f,c)(m),adLayoutLoggingData:d.SI.adLayoutLoggingData});return Object.assign({},c,{Ba:new yI([new iI(a)])})};
  3570. uHa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"SLOT_TYPE_PLAYER_UNDERLAY"===c.adSlotMetadata.slotType){var d=g.V(c.fulfillmentContent.fulfilledLayout,lM);if(d&&(d=g.V(d.renderingContent,kM))&&d.associatedPlayerBytesLayoutId===a)return c}};
  3571. iHa=function(a,b,c,d,e){var f=wHa(uM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof xI)return f;for(var h=[],l=g.u(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=uM(m.value,c,d);if(m instanceof xI)return m;h.push(m)}h=xHa(h,e,a,b);b=[];a=g.u(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=uM(e.value,c,d);if(e instanceof xI)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
  3572. wHa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof GL?new EL(function(e){return CM(d,e)},c.adSlotMetadata.slotId):a};
  3573. xHa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof SL?new WL(function(f){return CM(d,f)},c.adSlotMetadata.slotId):e}):a};
  3574. AM=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=uM(f.value,b,c);if(f instanceof xI)return f;d.push(f)}e=[];f=g.u(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=uM(h.value,b,c);if(h instanceof xI)return h;e.push(h)}f=[];h=g.u(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=uM(l.value,b,c);if(l instanceof xI)return l;f.push(l)}h=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
  3575. a.next()){l=uM(l.value,b,c);if(l instanceof xI)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Tc:[]}};
  3576. nHa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.V(f.value.renderingContent,fM)){if(!eM(f))return new xI("Invalid vod media renderer");d.push(yHa(f))}e=d.map(function(q){return q.ip});
  3577. f=[];for(var h=0,l=0;l<a.length;l++){var m=g.V(a[l].renderingContent,fM);if(m){var n=new FL(h,e),p=yM(d[h].playerVars,d[h].CB,b,c,n);f[l]={Mv:n,adPodSkipTarget:m.adPodSkipTarget,Dca:d[h],zD:p};h++}}return f};
  3578. yHa=function(a){var b=NA(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,RF("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,CB:a.playerVars,ip:c}};
  3579. BM=function(a){switch(a){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
  3580. mHa=function(a){if(g.V(a.renderingContent,dM)){var b;return(null==(b=g.V(a.renderingContent,dM))?void 0:b.impressionPings)||[]}if(g.V(a.renderingContent,bM)){var c;return(null==(c=g.V(a.renderingContent,bM))?void 0:c.impressionPings)||[]}if(g.V(a.renderingContent,cM)){var d;return(null==(d=g.V(a.renderingContent,cM))?void 0:d.impressionPings)||[]}return[]};
  3581. zHa=function(a){var b=0;a=g.u(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.V(c,mM)||g.V(c,nM)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
  3582. AHa=function(a){var b,c,d,e,f=(null==(c=g.V(null==(b=a.questions)?void 0:b[0],mM))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.V(null==(d=a.questions)?void 0:d[0],nM))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.qa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.qa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,w,A,D,F,H,L,M,R,ea,la,ka,ia;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
  3583. void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(w=a.playbackCommands)?void 0:w.progressCommands,iob:null==
  3584. (A=a.playbackCommands)?void 0:A.clickthroughCommands,fullscreenCommands:null==(D=a.playbackCommands)?void 0:D.fullscreenCommands,activeViewViewableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null==(H=a.playbackCommands)?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(M=a.playbackCommands)?
  3585. void 0:null==(R=M.activeViewTracking)?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ea=a.playbackCommands)?void 0:null==(la=ea.activeViewTracking)?void 0:la.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ka=a.playbackCommands)?void 0:ka.endFullscreenCommands,abandonCommands:null==(ia=a.playbackCommands)?void 0:ia.abandonCommands,completeCommands:b}};
  3586. DHa=function(a,b,c,d,e,f,h){return function(l,m){return BHa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return CHa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new MAa(c),d],c.adLayoutLoggingData)})}};
  3587. GHa=function(a,b,c,d,e,f,h){if(!EHa(a))return new xI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[FHa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=cJ(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xa:"core"},q=new ML(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[q],
  3588. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new NAa(l)]),Yb:m(p)}})]};
  3589. EHa=function(a){a=g.V(null==a?void 0:a.additionalPlayerOverlay,HHa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
  3590. JHa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
  3591. if(!wGa(a))return function(){return new xI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
  3592. var h=a.playerOverlay.instreamSurveyAdRenderer,l=zHa(h);return 0>=l?function(){return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=IHa(m,c,d,function(q){var r=q.slotId;
  3593. q=n(q);var t=AHa(h);r=cJ(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},w=new ML(e.j,d),A=new RL(e.j,r),D=new YL(e.j,r),F=new XFa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Cb:new Map,layoutExitNormalTriggers:[w,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[D],Tc:[],Xa:"core",Ba:new yI([new LAa(h),new GH(b),new lI(l/1E3),new oI(t)]),Yb:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
  3594. m=GHa(a,c,p.slotId,d,e,m,n);return m instanceof xI?m:[p].concat(g.qa(m))}};
  3595. RHa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=KHa(w.slotId,c,b,e(w),d,f,h);m=w.cea;return w.z7};
  3596. else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var D=h,F=c.config.adPlacementConfig,H=LHa(F),L=H.xX,M=H.BX;H=c.renderer.instreamVideoAdRenderer;var R;if(null==H?0:null==(R=H.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ea=MHa(H,D);R=Math.min(L+1E3*ea.videoLengthSeconds,M);D=new FL(0,[ea.videoLengthSeconds]);M=ea.videoLengthSeconds;var la=ea.playerVars,ka=ea.instreamAdPlayerOverlayRenderer,ia=
  3597. ea.playerOverlayLayoutRenderer,sa=ea.adVideoId,aa=NHa(c),U=ea.Cb;ea=ea.jW;var Ha=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;A=cJ(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var x={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Cb:U,layoutExitNormalTriggers:[new QFa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new MH(d),new ZH(M),new $H(la),new cI(L),
  3598. new dI(R),ka&&new NH(ka),ia&&new OH(ia),new GH(F),new LH(sa),new HH(D),new hI(aa),H&&new bI(H),new WH({current:null}),new fI({}),new qI(ea)].filter(OHa)),Yb:w(x),adLayoutLoggingData:Ha}};
  3599. else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=PHa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof xI)return v;l.push.apply(l,g.qa(v))}}catch(w){return new xI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:QHa(c)})}return l};
  3600. QHa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.V(b,fM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
  3601. KHa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=LHa(l),n=m.xX,p=m.BX;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={M1:n,uq:0,Zda:q};m=m.map(function(v){return SHa(a,v,r,c,d,l,e,p,h)}).map(function(v,w){w=new FL(w,q);
  3602. return v(w)});
  3603. var t=m.map(function(v){return v.A7});
  3604. return{z7:THa(c,a,n,t,l,NHa(b),d,p,f),cea:m.map(function(v){return v.bea})}};
  3605. SHa=function(a,b,c,d,e,f,h,l,m){var n=MHa(g.V(b,fM),m),p=c.M1,q=c.uq,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.M1=r;c.uq++;c.Zda.push(n.videoLengthSeconds);var t,v,w=null==(t=g.V(b,fM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==w)throw new TypeError("Survey slate media has no survey overlay");return function(A){var D=n.playerVars;2<=A.B&&(D.slot_pos=A.j);D.autoplay="1";var F,H;D=n.videoLengthSeconds;var L=n.playerVars,M=n.Cb,R=n.jW,ea=
  3606. n.instreamAdPlayerOverlayRenderer,la=n.playerOverlayLayoutRenderer,ka=n.adVideoId,ia=null==(F=g.V(b,fM))?void 0:F.adLayoutLoggingData;F=null==(H=g.V(b,fM))?void 0:H.sodarExtensionData;H=cJ(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var sa={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Cb:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"adapter",Ba:new yI([new MH(h),new ZH(D),
  3607. new $H(L),new cI(p),new dI(r),new eI(q),new WH({current:null}),ea&&new NH(ea),la&&new OH(la),new GH(f),new LH(ka),new HH(A),F&&new bI(F),w&&new TAa(w),new fI({}),new qI(R)].filter(OHa)),Yb:e(sa),adLayoutLoggingData:ia};D=JHa(g.V(b,fM),f,h,A.layoutId,d);return{A7:A,bea:D}}};
  3608. MHa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=NA(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay||
  3609. {};f=void 0===f.playerOverlayLayoutRenderer?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var l;b=null!=(l=UHa[h])?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Cb:a.pings?xJ(a.pings):new Map,jW:wJ(a.pings)}};
  3610. NHa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
  3611. LHa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{xX:b,BX:a}};
  3612. WHa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[VHa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=cJ(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"},v=xJ(n),w=[new QL(b.j,f)],A;var D=null==n?void 0:null==(A=n.activeViewTracking)?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Cb:v,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],
  3613. layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new GH(d),new qI(wJ(n)),new UAa(D),new ZH(h/1E3)]),Yb:p(t),adLayoutLoggingData:r}})]:new xI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
  3614. YHa=function(a,b,c,d,e,f,h,l){a=XHa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=cJ(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Cb:q,layoutExitNormalTriggers:[new PL(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new QAa(e),new GH(c)]),Yb:m(p)}});
  3615. return a instanceof xI?a:[a]};
  3616. $Ha=function(a,b,c,d,e,f,h){return[ZHa(a,f,d,function(l){var m=l.slotId;l=h(l);m=cJ(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[new QL(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new NH(e),new GH(c)]),Yb:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
  3617. dIa=function(a,b,c,d,e,f,h,l){a=aIa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,cIa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,cIa(b,n,p))):q.imageOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
  3618. p),n=cIa(b,n,p),n.push(new ZL(b.j,45E3,q)),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new wI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new wI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
  3619. return a instanceof xI?a:[a]};
  3620. gIa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new xI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return eIa(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return fIa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=cJ(b.B.get(),"LAYOUT_TYPE_ENDCAP",
  3621. v);return CHa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new RH(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
  3622. hIa=function(a,b,c,d){if(!c.playerVars)return new xI("No playerVars available in AdIntroRenderer.");var e=NA(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=cJ(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Mf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"adapter",Ba:new yI([new gI({}),
  3623. new GH(b),new WH({current:null}),new $H(e)]),Yb:f(l)},Zl:[new LL(a.j,h,["error"])],Pj:[],vz:[],sz:[]}}};
  3624. jIa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=zHa(e);if(!vGa(e,n))return new xI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=DHa(a,b,e,f,c,d,h);return q instanceof xI?q:function(r){return iIa(b,r.slotId,c,p,e,AHa(e),h(r),q,l,m)}};
  3625. lIa=function(a,b,c,d,e,f,h,l){function m(q){return fIa(a,q,d,n)}
  3626. function n(q,r){var t=q.slotId;q=h(q);t=cJ(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return CHa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new KAa(e),f],e.adLayoutLoggingData)}
  3627. if(!AGa(e))return new xI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=kIa(b,r,c,p,t,new Map,q,m,void 0,DM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new TH(r.XK);q=new IH(l);return{Mf:{layoutId:r.layoutId,layoutType:r.layoutType,Cb:r.Cb,layoutExitNormalTriggers:[],
  3628. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:r.Xa,Ba:new yI([].concat(g.qa(r.pz),[t,q])),Yb:r.Yb,adLayoutLoggingData:r.adLayoutLoggingData},Zl:[],Pj:r.layoutExitMuteTriggers,vz:r.layoutExitUserInputSubmittedTriggers,sz:r.Tc,kf:r.kf}}};
  3629. nIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){a=pJ(a,"SLOT_TYPE_PLAYER_BYTES");d=VGa(b,h,d,e,a,n,p);if(d instanceof xI)return d;var A;h=null==(A=zI(d.Ba,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new xI("Invalid adNotify layout");b=mIa(h,b,c,e,f,m,l,n,q,r,t,v,w);return b instanceof xI?b:[d].concat(g.qa(b))};
  3630. mIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=oIa(b,c,d,f,h,l,m,n,p,q,r);pIa(f)?(d=qIa(b,a),a=pJ(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=cJ(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=rIa(b,d,l),b=[].concat(g.qa(l.slotExpirationTriggers),[new HL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Xa:l.Xa},{slotId:a,layoutId:f}),e=a instanceof xI?a:{Fx:Object.assign({},
  3631. l,{slotExpirationTriggers:b,Ba:new yI([new iI(a.layout)]),adSlotLoggingData:e}),hg:a.hg}):e=ZGa(b,a,l,e,c);return e instanceof xI?e:[].concat(g.qa(e.hg),[e.Fx])};
  3632. vIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=oIa(a,b,c,e,f,h,m,n,p,q,r,t);pIa(e)?(e=sIa(a,c,h,l),e instanceof xI?a=e:(l=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=cJ(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.qa(e.slotExpirationTriggers),[new HL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Xa:e.Xa,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof xI?l:
  3633. {Fx:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:tIa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:uIa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Xa:e.Xa,Ba:new yI([new rI(EM(c)),new iI(l.layout),new sI({Ut:a.Ut(c)})]),adSlotLoggingData:d},hg:l.hg})):a=$Ga(a,c,h,l,d,m.Zb,b);return a instanceof xI?a:a.hg.concat(a.Fx)};
  3634. pIa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,hM))return!0;return!1};
  3635. oIa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(iL(p)&&jL(p))a:{var v=wIa(d,c,p);if(v instanceof xI)t=v;else{for(var w=0,A=[],D=[],F=[],H=[],L=[],M=[],R=new XH({current:null}),ea=new KH({current:null}),la=!1,ka=[],ia=0,sa=[],aa=0;aa<d.length;aa++){var U=d[aa],Ha=g.V(U,fM);if(Ha){Ha=xM(Ha,c,p);if(Ha instanceof wI){t=new xI(Ha);break a}var x=new FL(ia,v),ba=yM(Ha.playerVars,Ha.CB,h,n,x);ia++;sa[aa]={renderer:U,data:Ha,Mv:x,zD:ba}}}ia=-1;for(v=0;v<d.length;v++)if(aa=d[v],U=g.V(aa,gM)){aa=
  3636. hIa(b,c,U,l);if(aa instanceof xI){t=aa;break a}aa=aa(r);A.push(aa.Mf);D=[].concat(g.qa(aa.Zl),g.qa(D));F=[].concat(g.qa(aa.Pj),g.qa(F));aa.kf&&(ka=[aa.kf].concat(g.qa(ka)))}else if(g.V(aa,fM))U=sa[v],ia=U.data,aa=U.Mv,U=U.zD,Ha=sa[v+1],x=void 0,Ha&&(x=Ha.zD),aa=xIa(b,ia.layoutId,ia.Lo,c,U,ia.ip,f,aa,l(r),ea,m.get(ia.Lo.externalVideoId),x,q),w++,A.push(aa.Mf),D=[].concat(g.qa(aa.Zl),g.qa(D)),F=[].concat(g.qa(aa.Pj),g.qa(F)),la||(M.push(ea),la=!0),ia=(ia=ia.Lo.adPodSkipTarget)&&0<ia?ia:-1;else if(U=
  3637. g.V(aa,NJ)){aa=gIa(a,b,c,U,f,w,l,ea,ia);if(aa instanceof xI){t=aa;break a}aa=aa(r);A.push(aa.Mf);D=[].concat(g.qa(aa.Zl),g.qa(D));F=[].concat(g.qa(aa.Pj),g.qa(F));aa.kf&&(ka=[aa.kf].concat(g.qa(ka)))}else if(U=g.V(aa,hM)){if(void 0===t){t=new xI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:U});break a}aa=jIa(a,b,c,f,U,R,l,t,w,FM(p,"supports_multi_step_on_desktop"));if(aa instanceof xI){t=aa;break a}aa=aa(r);A.push(aa.Mf);aa.kf&&ka.push(aa.kf);
  3638. D=[].concat(g.qa(aa.Zl),g.qa(D));F=[].concat(g.qa(aa.Pj),g.qa(F));H=[].concat(g.qa(aa.vz),g.qa(H));L=[].concat(g.qa(aa.sz),g.qa(L));M=[R].concat(g.qa(M))}else if(aa=g.V(aa,iM)){aa=lIa(a,b,c,f,aa,R,l,w);if(aa instanceof xI){t=aa;break a}aa=aa(r);A.push(aa.Mf);aa.kf&&ka.push(aa.kf);F=[].concat(g.qa(aa.Pj),g.qa(F))}else{t=new xI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Zx:A,layoutExitSkipTriggers:D,layoutExitUserInputSubmittedTriggers:H,Tc:L,layoutExitMuteTriggers:F,pz:M,
  3639. hg:ka}}}else a:if(w=wIa(d,c,p),w instanceof xI)t=w;else{A=0;D=[];F=[];H=[];L=[];M=[];R=[];ea=new XH({current:null});la=new KH({current:null});ka=!1;sa=[];ia=-1;v=g.u(d);for(aa=v.next();!aa.done;aa=v.next())if(aa=aa.value,g.V(aa,gM)){aa=hIa(b,c,g.V(aa,gM),l);if(aa instanceof xI){t=aa;break a}aa=aa(r);D.push(aa.Mf);F=[].concat(g.qa(aa.Zl),g.qa(F));H=[].concat(g.qa(aa.Pj),g.qa(H));aa.kf&&(sa=[aa.kf].concat(g.qa(sa)))}else if(g.V(aa,fM)){ia=xM(g.V(aa,fM),c,p);if(ia instanceof wI){t=new xI(ia);break a}aa=
  3640. new FL(A,w);aa=xIa(b,ia.layoutId,ia.Lo,c,yM(ia.playerVars,ia.CB,h,n,aa),ia.ip,f,aa,l(r),la,m.get(ia.Lo.externalVideoId),void 0,q);A++;D.push(aa.Mf);F=[].concat(g.qa(aa.Zl),g.qa(F));H=[].concat(g.qa(aa.Pj),g.qa(H));ka||(R.push(la),ka=!0);ia=(ia=ia.Lo.adPodSkipTarget)&&0<ia?ia:-1}else if(g.V(aa,NJ)){aa=gIa(a,b,c,g.V(aa,NJ),f,A,l,la,ia);if(aa instanceof xI){t=aa;break a}aa=aa(r);D.push(aa.Mf);F=[].concat(g.qa(aa.Zl),g.qa(F));H=[].concat(g.qa(aa.Pj),g.qa(H));aa.kf&&(sa=[aa.kf].concat(g.qa(sa)))}else if(g.V(aa,
  3641. hM)){if(void 0===t){t=new xI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.V(aa,hM)});break a}aa=jIa(a,b,c,f,g.V(aa,hM),ea,l,t,A,FM(p,"supports_multi_step_on_desktop"));if(aa instanceof xI){t=aa;break a}aa=aa(r);D.push(aa.Mf);aa.kf&&sa.push(aa.kf);F=[].concat(g.qa(aa.Zl),g.qa(F));H=[].concat(g.qa(aa.Pj),g.qa(H));L=[].concat(g.qa(aa.vz),g.qa(L));M=[].concat(g.qa(aa.sz),g.qa(M));R=[ea].concat(g.qa(R))}else if(g.V(aa,iM)){aa=lIa(a,b,c,f,g.V(aa,
  3642. iM),ea,l,A);if(aa instanceof xI){t=aa;break a}aa=aa(r);D.push(aa.Mf);aa.kf&&sa.push(aa.kf);H=[].concat(g.qa(aa.Pj),g.qa(H))}else{t=new xI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Zx:D,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:L,Tc:M,layoutExitMuteTriggers:H,pz:R,hg:sa}}t instanceof xI?r=t:(M=r.slotId,w=t.Zx,A=t.layoutExitSkipTriggers,D=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.pz,r=l(r),L=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
  3643. M=e?e.layoutId:cJ(b.B.get(),L,M),R={layoutId:M,layoutType:L,Xa:"core"},r={layout:{layoutId:M,layoutType:L,Cb:new Map,layoutExitNormalTriggers:[new PL(b.j,M)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:D,layoutExitUserInputSubmittedTriggers:F,Tc:[],Xa:"core",Ba:new yI([new YH(w)].concat(g.qa(H))),Yb:r(R)},hg:t.hg});return r}};
  3644. wIa=function(a,b,c){var d=[];a=g.u(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.V(e,fM)){e=xM(g.V(e,fM),b,c);if(e instanceof wI)return new xI(e);d.push(e.ip)}return d};
  3645. zIa=function(a,b,c,d,e,f,h,l){if(!vGa(c,void 0===l?!1:l))return new xI("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=zHa(c);if(0>=m)return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new XH({current:null}),p=DHa(a,b,c,n,d,f,h);return yIa(a,d,f,m,e,function(q,r){var t=q.slotId,v=AHa(c);q=h(q);var w,A=null!=(w=DM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
  3646. w:cJ(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"};w=p(A,r);var D=zI(w.Ba,"metadata_type_fulfilled_layout");D||RF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new GH(d),new mI(m),new oI(v),n];D&&v.push(new UH(D.layoutType));return{r$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cb:new Map,layoutExitNormalTriggers:[new PL(b.j,A)],layoutExitSkipTriggers:[new RL(b.j,r.layoutId)],
  3647. layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new YL(b.j,r.layoutId)],Tc:[],Xa:"core",Ba:new yI(v),Yb:q(t)},C9:w}})};
  3648. AIa=function(a){if(!zGa(a))return!1;var b=g.V(a.adVideoStart,GM);return b?g.V(a.linearAd,fM)&&fGa(b)?!0:(RF("Invalid Sandwich with notify"),!1):!1};
  3649. BIa=function(a){if(null==a.linearAds)return!1;a=g.V(a.adStart,GM);return a?fGa(a)?!0:(RF("Invalid LASR with notify"),!1):!1};
  3650. CIa=function(a){if(!yGa(a))return!1;a=g.V(a.adStart,GM);return a?fGa(a)?!0:(RF("Invalid LASR with notify"),!1):!1};
  3651. HM=function(a,b,c,d,e,f,h,l){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Ne=e;this.C=f;this.Rj=h;this.loadPolicy=void 0===l?1:l};
  3652. EGa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(gGa);var p=c.filter(tGa),q=d.filter(gGa),r=new Map,t=gHa(b),v=c.some(function(aa){var U;return"SLOT_TYPE_PLAYER_BYTES"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),w=c.some(function(aa){var U;
  3653. return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),A=c.some(function(aa){var U;
  3654. return"SLOT_TYPE_IN_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)});
  3655. c=c.some(function(aa){var U,Ha;return"SLOT_TYPE_BELOW_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)||"SLOT_TYPE_ABOVE_FEED"===(null==aa?void 0:null==(Ha=aa.adSlotMetadata)?void 0:Ha.slotType)});
  3656. if(v||w||A||c)c=lHa(p,b,l,e,t,a.Ne.get(),a.loadPolicy,r,a.Aa.get(),a.D.get(),A),c instanceof xI?RF(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.qa(c));c=g.u(b);for(w=c.next();!w.done;w=c.next())w=w.value,A=DIa(a,r,w,e,f,h,v,l,t,m,p),A instanceof xI?RF(A,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.qa(A));EIa(a.Aa.get())||(f=FIa(a,q,e,l,t,r),n.push.apply(n,g.qa(f)));if(null===a.C||h&&!l.jX){var D,
  3657. F,H;a=l.Zb&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(D=b[0].config)?void 0:null==(F=D.adPlacementConfig)?void 0:F.kind)&&(null==(H=b[0].renderer)?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var L,M,R,ea;RF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(L=b[0])?void 0:null==(M=L.config)?void 0:null==(R=M.adPlacementConfig)?void 0:R.kind,renderer:null==(ea=b[0])?void 0:ea.renderer})}return n}D=
  3658. d.filter(gGa);n.push.apply(n,g.qa(RGa(r,D,a.B.get(),a.C,e,v)));if(!n.length){var la,ka,ia,sa;RF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(la=b[0])?void 0:null==(ka=la.config)?void 0:null==(ia=ka.adPlacementConfig)?void 0:ia.kind,renderer:null==(sa=b[0])?void 0:sa.renderer})}return n};
  3659. FIa=function(a,b,c,d,e,f){function h(r){return DI(a.Ne.get(),r)}
  3660. var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&AIa(p)?(RF("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,GM),p=g.V(p.linearAd,fM),vM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=WGa(null==(n=q)?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Aa.get(),a.Ne.get()),q instanceof xI?RF(q):l.push.apply(l,g.qa(q))):
  3661. q&&(!q.adLayoutMetadata&&BIa(q)||q.adLayoutMetadata&&CIa(q))&&(RF("Found AdNotify with LinearAdSequenceRenderer"),vM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=mIa(null==(n=g.V(q.adStart,GM))?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,aM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof xI?RF(p):l.push.apply(l,g.qa(p)))}return l};
  3662. DIa=function(a,b,c,d,e,f,h,l,m,n,p){function q(D){return DI(a.Ne.get(),D)}
  3663. var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,w=c.adSlotLoggingData,A=l.jX&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return wM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.adsEngagementPanelRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
  3664. new AAa(ea),F,H,ea.impressionPings,D,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[];
  3665. if(r.adsEngagementPanelLayoutViewModel)return wM(b,c.elementId,v,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.adsEngagementPanelLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_PANEL",new BAa(ea),F,H,D,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,L)}),[];
  3666. if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return MGa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);wM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.actionCompanionAdRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
  3667. new CH(ea),F,H,ea.impressionPings,D,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return NGa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q);
  3668. wM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.topBannerImageTextIconButtonedLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new DH(ea),F,H,D,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)wM(b,
  3669. c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.imageCompanionAdRenderer;
  3670. D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new DAa(ea),F,H,ea.impressionPings,D,r.imageCompanionAdRenderer.adLayoutLoggingData,L)});
  3671. else if(r.bannerImageLayoutViewModel)wM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.bannerImageLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new EAa(ea),F,H,D,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)});
  3672. else if(r.shoppingCompanionCarouselRenderer)wM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.shoppingCompanionCarouselRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new FAa(ea),F,H,ea.impressionPings,D,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)});
  3673. else if(r.adBreakServiceRenderer){if(!KGa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return JGa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return IGa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Rj)return new xI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Zb||RF("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
  3674. daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Zb),clientPlaybackNonce:l.clientPlaybackNonce});HIa(a.Rj,{adPlacementRenderer:c,contentCpn:d,wp:e})}else{if(r.clientForecastingAdRenderer)return YHa(a.B.get(),a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return dIa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return $Ha(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
  3675. r.instreamVideoAdRenderer)&&A)return RHa(a.B.get(),a.j.get(),c,d,q,n,!a.Aa.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];vM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!yGa(r.linearAdSequenceRenderer))return new xI("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new xI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,GM)){RF("Found AdNotify in LinearAdSequenceRenderer");
  3676. b=g.V(r.linearAdSequenceRenderer.adStart,GM);if(!eGa(b))return new xI("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return nIa(a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),t,w,b,aM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Aa.get())}return vIa(a.B.get(),a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,aM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,
  3677. d,e,l,q,m,a.loadPolicy,a.Aa.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];vM(b,r,v);return aHa(a.B.get(),a.j.get(),t,w,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Aa.get(),a.Ne.get(),p)}if(r.instreamSurveyAdRenderer)return zIa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,w,d,q,FM(a.Aa.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return zGa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart,
  3678. GM)?(RF("Found AdNotify in SandwichedLinearAdRenderer"),b=g.V(r.sandwichedLinearAdRenderer.adVideoStart,GM),eGa(b)?(c=g.V(r.sandwichedLinearAdRenderer.linearAd,fM))?XGa(b,c,t,a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),w,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new xI("Missing IVAR from Sandwich"):new xI("Invalid AdMessageRenderer.")):vIa(a.B.get(),a.j.get(),t,w,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new xI("Received invalid SandwichedLinearAdRenderer.");
  3679. if(null!=r.videoAdTrackingRenderer)return l=FM(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&l.Yj,WHa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]};
  3680. JM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Af=d;this.Ha=e;this.Aa=f;this.Oa=h;this.Mc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(m)});
  3681. d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(m)})};
  3682. HIa=function(a,b){if(a.j)RF("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Af.get().eM);for(var c=b.next();!c.done;c=b.next())IIa(a,a.j,c.value)}};
  3683. IIa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Aa.get().J.U().zc()&&uL(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Ah.toFixed(3));oJ(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=KM(a.Aa.get()),n=a.Oa;if(e.Aa.get().J.U().experiments.fb("enable_smearing_expansion_dai")){var p=g.EI(e.Aa.get().J.U().experiments,
  3684. "max_prefetch_window_sec_for_livestream_optimization");var q=g.EI(e.Aa.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Bo:JIa(c),oG:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.Ah;if(0===d)m.Bp=new Vv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.Bp=0>=t?new Vv(1E3*q,1E3*r):new Vv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={Bo:JIa(c),oG:!1},r=c.startSecs+c.Ah,c.startSecs<=d?m=new Vv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new Vv(1E3*
  3685. Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.Bp=m;f=HGa(e,f,h,p,l,[new PAa(c)]);e.Aa.get().J.U().experiments.fb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Bp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.Wc())&&(h=h.uc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.LM(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):uL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Bp.start/
  3686. 1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
  3687. KIa=function(a){var b,c=null==(b=zI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=zI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=zI(a.Ba,"metadata_type_content_cpn"),f=zI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=zI(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=zI(a.Ba,"metadata_type_player_underlay_renderer"),m=zI(a.Ba,"metadata_type_ad_placement_config"),n=zI(a.Ba,"metadata_type_video_length_seconds");
  3688. var p=tI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?zI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):tI(a.Ba,"metadata_type_layout_enter_ms")&&tI(a.Ba,"metadata_type_layout_exit_ms")?(zI(a.Ba,"metadata_type_layout_exit_ms")-zI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xq:d,contentCpn:e,YR:c,yN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,oK:p,inPlayerLayoutId:zI(a.Ba,"metadata_type_linked_in_player_layout_id"),
  3689. inPlayerSlotId:zI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
  3690. MIa=function(a,b){return LIa(a,b)};
  3691. NIa=function(a,b){b=LIa(a,b);if(!b)return null;var c;b.oK=null==(c=zI(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
  3692. LIa=function(a,b){var c,d=null==(c=zI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=fDa(a,b);return{C6:eDa(a,b),adPlacementConfig:zI(a.Ba,"metadata_type_ad_placement_config"),F6:c,contentCpn:zI(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:zI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:zI(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:zI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
  3693. instreamAdPlayerUnderlayRenderer:void 0,oK:void 0,YR:d,xq:a.layoutId,videoLengthSeconds:zI(a.Ba,"metadata_type_video_length_seconds")}};
  3694. MM=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Ne=h;this.Aa=l;this.Ra=m;this.gh=!0};
  3695. OIa=function(a,b,c){return eHa(a.j.get(),b.contentCpn,b.xq,function(d){return fHa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.xq,DI(a.Ne.get(),d))})};
  3696. NM=function(a,b,c,d,e,f,h,l){g.I.call(this);this.B=a;this.j=b;this.C=c;this.Aa=d;this.D=e;this.Ra=f;this.Ha=h;this.yc=l};
  3697. OM=function(a){g.I.call(this);this.j=a};
  3698. oJ=function(a,b,c,d){a.j().Mg(b,d);c=c();a=a.j();a.Qb.TH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ec(c.slotId))throw new xI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(KI(e,c))throw new xI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
  3699. "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.nh.At.has(c.slotType))throw new xI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.nh.Pu.has(c.slotType))throw new xI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");CBa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);CBa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
  3700. c.slotFulfillmentTriggers);CBa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=SI(f,h);if(KI(f,c))throw new xI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new xBa(c));f.j.set(h,l)}catch(la){la instanceof xI&&la.Mk?(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",la.Mk,c),RF(la,c,void 0,void 0,la.Nv)):(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
  3701. c),RF(la,c));break a}KI(d.j,c).K=!0;try{var m=d.j,n=KI(m,c),p=c.slotEntryTrigger,q=m.nh.Qm.get(p.triggerType);q&&(q.ll("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,w=m.nh.Qm.get(v.triggerType);w&&(w.ll("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.qa.set(v.triggerId,w))}for(var A=g.u(c.slotExpirationTriggers),D=A.next();!D.done;D=A.next()){var F=D.value,H=m.nh.Qm.get(F.triggerType);H&&(H.ll("TRIGGER_CATEGORY_SLOT_EXPIRATION",
  3702. F,c,null),n.Y.set(F.triggerId,H))}var L=m.nh.At.get(c.slotType).get().build(m.C,c);n.N=L;var M=m.nh.Pu.get(c.slotType).get().build(m.G,c);M.init();n.B=M}catch(la){la instanceof xI&&la.Mk?(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",la.Mk,c),RF(la,c,void 0,void 0,la.Nv)):(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),RF(la,c));II(d,c,!0);break a}d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ng(c);for(var R=g.u(d.B),ea=R.next();!ea.done;ea=
  3703. R.next())ea.value.Ng(c);hBa(d,c)}};
  3704. PM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.C=b;this.Oc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(f)})};
  3705. CGa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof NL?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):RF("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Vv(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Oc.get().addCueRange(c,d.start,d.end,!1,a);QM(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.Pq.Dm("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
  3706. RM=function(){g.I.apply(this,arguments);this.gh=!0;this.aj=new Map;this.j=new Map};
  3707. PIa=function(a,b){a=g.u(a.aj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
  3708. QIa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}RF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ec(b)),layoutId:b})};
  3709. RIa=function(a,b){this.callback=a;this.slot=b};
  3710. SM=function(){};
  3711. SIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
  3712. TIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0};
  3713. UIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
  3714. TM=function(a){this.Ha=a};
  3715. UM=function(a){g.I.call(this);this.XM=a;this.Wb=new Map};
  3716. VIa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof YL&&f.triggeringLayoutId===b&&c.push(e)}c.length?QI(a.XM(),c):RF("Survey is submitted but no registered triggers can be activated.")};
  3717. VM=function(a,b,c){UM.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})};
  3718. WM=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
  3719. XM=function(a){g.I.call(this);this.j=a;this.Wb=new Map};
  3720. YM=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&QI(a.j(),c)};
  3721. ZM=function(a,b,c){g.I.call(this);var d=this;this.j=a;this.context=c;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})};
  3722. $M=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.Oc=b;this.Ha=c;this.Ra=d;this.context=e;this.gh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(f)})};
  3723. WIa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ra.get().Yd(1).clientPlaybackNonce!==m)throw new xI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{DD:new $L(b,c,d,e),GI:f});a.Oc.get().addCueRange(f,h,l,n,a);QM(a.context.Aa.get())&&(m={},a.context.Pq.Dm("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=null==e?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))};
  3724. XIa=function(a,b){a=g.u(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.GI)return c}return""};
  3725. aN=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(c)});
  3726. var d;this.j=(null==(d=b.get().dw)?void 0:d.slotId)||null};
  3727. YIa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
  3728. bN=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map};
  3729. qL=function(a,b,c){b=b.layoutId;for(var d=[],e=g.u(a.Wb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof PL){var h;if(h=f.trigger.layoutId===b){h=c;var l=pBa.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&QI(a.j(),d)};
  3730. cN=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map};
  3731. dN=function(a){g.I.call(this);this.C=a;this.gh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map};
  3732. ZIa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
  3733. eN=function(a){g.I.call(this);this.j=a;this.Wb=new Map};
  3734. $Ia=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof EL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&QI(a.j(),c)};
  3735. aJa=function(a,b){var c={slotId:pJ(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xa:"surface",Ba:new yI([])},d=Object,e=d.assign;b=cJ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"surface",Ba:new yI([]),
  3736. Yb:dBa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Xa,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{I9:!0,slot:c,layout:b})};
  3737. GGa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Bo:new Vv(-0x8000000000000,-0x8000000000000),oG:d},null!=c&&(d.Bp=new Vv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Bo:new Vv(0x7ffffffffffff,0x8000000000000),oG:d},null!=c&&(d.Bp=new Vv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||RF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
  3738. e.offsetEndMilliseconds||RF("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new xI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Bo:new Vv(a,e),oG:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Bp=new Vv(a,e)}return d;
  3739. default:return new xI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
  3740. JIa=function(a){var b=1E3*a.startSecs;return new Vv(b,b+1E3*a.Ah)};
  3741. bJa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.V(b.value,tM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1};
  3742. fN=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map};
  3743. pJ=function(a,b){if(cJa(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.VD(16)};
  3744. cJ=function(a,b,c){if(cJa(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.VD(16)};
  3745. CM=function(a,b){if(cJa(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.VD(16)};
  3746. dJa=function(a){var b=[new SH(a.xq),new OAa(a.YR),new GH(a.adPlacementConfig),new ZH(a.videoLengthSeconds),new lI(a.oK)];a.instreamAdPlayerOverlayRenderer&&b.push(new NH(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new OH(a.playerOverlayLayoutRenderer));a.yN&&b.push(new KH(a.yN));return b};
  3747. eJa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:cJ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[new ML(function(n){return CM(f,
  3748. n)},c.xq)],
  3749. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:b,Ba:d,Yb:e(h),adLayoutLoggingData:m}};
  3750. gN=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return CM(c.B.get(),d)}};
  3751. fHa=function(a,b,c,d,e,f){c=new yI([new PH(c),new GH(d)]);b=cJ(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Cb:new Map,layoutExitNormalTriggers:[new ML(function(h){return CM(a.B.get(),h)},e)],
  3752. layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:c,Yb:f(d),adLayoutLoggingData:void 0}};
  3753. zM=function(a,b,c,d,e){var f=dJa(d);return eJa(b,c,d,new yI(f),e,a.B.get())};
  3754. fJa=function(a,b,c,d,e){var f=dJa(d);f.push(new GAa(d.C6));f.push(new HAa(d.F6));return eJa(b,c,d,new yI(f),e,a.B.get())};
  3755. IM=function(a,b,c,d,e,f,h,l,m,n){b=cJ(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new OL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new LL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Cb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([d,new GH(f),new SH(e)]),Yb:l(p),adLayoutLoggingData:m}};
  3756. GIa=function(a,b,c,d,e,f,h,l,m){b=cJ(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=[new OL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new LL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([d,new GH(f),new SH(e)]),Yb:h(n),adLayoutLoggingData:l}};
  3757. cIa=function(a,b,c){var d=[];d.push(new VFa(a.j,c));b&&d.push(b);return d};
  3758. bIa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new HL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new CAa(d),new GH(e)]),Yb:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
  3759. CHa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,Cb:new Map,layoutExitNormalTriggers:[new ML(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new GH(d)].concat(g.qa(h))),Yb:e(m),adLayoutLoggingData:l}};
  3760. DM=function(a,b,c,d){if(a.Aa.get().uf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)RF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
  3761. eIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=kIa(a,b,c,e,f,h,l,m,q,DM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.pz;c=new TH(a.XK);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new JH(n)),d=[]);b.push(new IH(p));return{Mf:{layoutId:a.layoutId,layoutType:a.layoutType,Cb:a.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:a.Xa,Ba:new yI(b),Yb:a.Yb,adLayoutLoggingData:a.adLayoutLoggingData},
  3762. Zl:d,Pj:a.layoutExitMuteTriggers,vz:a.layoutExitUserInputSubmittedTriggers,sz:a.Tc,kf:a.kf}};
  3763. iIa=function(a,b,c,d,e,f,h,l,m,n){b=kIa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,DM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
  3764. a=new YL(a.j,b.XK);c=new TH(b.XK);n=new IH(n);return{Mf:{layoutId:b.layoutId,layoutType:b.layoutType,Cb:b.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:b.Xa,Ba:new yI([].concat(g.qa(b.pz),[c,n])),Yb:b.Yb,adLayoutLoggingData:b.adLayoutLoggingData},Zl:b.layoutExitSkipTriggers,Pj:b.layoutExitMuteTriggers,vz:[].concat(g.qa(b.layoutExitUserInputSubmittedTriggers),[a]),sz:b.Tc,kf:b.kf}};
  3765. kIa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:cJ(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};l=l(b);var q=zI(l.Ba,"metadata_type_fulfilled_layout");q||RF("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new GH(c),new mI(d),new oI(e)];q&&c.push(new UH(q.layoutType));p&&c.push(new eI(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cb:f,layoutExitNormalTriggers:[],
  3766. layoutExitSkipTriggers:[new RL(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"adapter",pz:c,Yb:h(n),adLayoutLoggingData:m,kf:l,XK:r}};
  3767. bHa=function(a,b,c,d,e,f,h,l,m,n,p){a=gJa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Cb:a.Cb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Tc:a.Tc,Xa:a.Xa,Ba:new yI(a.WW),Yb:a.Yb,adLayoutLoggingData:a.adLayoutLoggingData}};
  3768. xIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=gJa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.WW;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new JH(c.adPodSkipTarget)),d=[]);e.push(new IH(l.j));c.isCritical&&(d=[new LL(a.j,b.layoutId,["error"])].concat(g.qa(d)));return{Mf:{layoutId:b.layoutId,layoutType:b.layoutType,Cb:b.Cb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:b.Xa,Ba:new yI(e),
  3769. Yb:b.Yb,adLayoutLoggingData:b.adLayoutLoggingData},Zl:d,Pj:b.layoutExitMuteTriggers,vz:b.layoutExitUserInputSubmittedTriggers,sz:b.Tc}};
  3770. gJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Xa:c};e=[new GH(e),new HH(m),new LH(d.externalVideoId),new MH(l),new oI({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new $H(f),new WH({current:null}),new ZH(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new NH(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new OH(h));
  3771. q&&e.push(new aI(q));(q=d.playerUnderlay)&&e.push(new PH(q));l=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:cJ(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new TH(q));e.push(new VH(l));e.push(new eI(m.j));d.adNextParams&&e.push(new EH(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new JAa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new FH(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new nI(d.legacyInfoCardVastExtension));
  3772. d.sodarExtensionData&&e.push(new bI(d.sodarExtensionData));p&&e.push(new kI(p));e.push(new qI(wJ(d.pings)));m=xJ(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.V(p.fulfillmentContent.fulfilledLayout,lM))&&(f=g.V(f.renderingContent,kM))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new QH(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Cb:m,layoutExitNormalTriggers:[new PL(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
  3773. [new RL(a.j,q)]:[],layoutExitMuteTriggers:[new RL(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:c,WW:e,Yb:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
  3774. THa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return uI(p,[],["LAYOUT_TYPE_MEDIA"])})||RF("Unexpect subLayout type for DAI composite layout");
  3775. b=cJ(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Cb:new Map,layoutExitNormalTriggers:[new QFa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new cI(c),new dI(l),new YH(d),new GH(e),new hI(f),new fI({}),new VAa(m)]),Yb:h(n)}};
  3776. OHa=function(a){return null!=a};
  3777. hN=function(a,b,c){var d=this;this.B=a;this.C=b;this.Aa=c;this.j=function(e){return CM(d.B.get(),e)}};
  3778. HGa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=pJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Bp&&d.Bp.start!==d.Bo.start&&l.push(new NL(a.j,c,new Vv(d.Bp.start,d.Bo.start),!1));l.push(new NL(a.j,c,new Vv(d.Bo.start,d.Bo.end),d.oG));d={getAdBreakUrl:b.getAdBreakUrl,jS:d.Bo.start,iS:d.Bo.end,cueProcessedMs:d.cueProcessedMs};b=new VL(a.j,h);f=[new jI(d)].concat(g.qa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new QL(a.j,
  3779. c),new TL(a.j,h),new UL(a.j,h)],Xa:"core",Ba:new yI(f),adSlotLoggingData:e}};
  3780. iJa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(hJa(a,b,e.value));return d};
  3781. hJa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
  3782. BHa=function(a,b,c,d,e){return jJa(a,b,c,d,e)};
  3783. fIa=function(a,b,c,d){var e=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");return jJa(a,e,b,c,d)};
  3784. jJa=function(a,b,c,d,e){var f=new KL(a.j,c),h=[new SL(a.j,b)];a=[new TL(a.j,b),new QL(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
  3785. yIa=function(a,b,c,d,e,f){var h=pJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=cJ(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=iN(a,b,c,d);var n=[new SL(a.j,h)];c=[new TL(a.j,h),new QL(a.j,c),new HL(a.j,m)];if(d instanceof xI)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.r$;l=l.C9;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
  3786. slotEntryTrigger:tIa(a,b,h,d),slotFulfillmentTriggers:uIa(a,b,h,n),slotExpirationTriggers:c,Xa:"core",Ba:new yI([new iI(f),new rI(EM(b)),new sI({Ut:a.Ut(b)})]),adSlotLoggingData:e},l]};
  3787. EM=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
  3788. cHa=function(a,b,c,d,e){e=e?e:pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new KL(a.j,c);var f=[new SL(a.j,e)];a=[new QL(a.j,b),new TL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
  3789. eHa=function(a,b,c,d){var e=pJ(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new KL(a.j,c);var f=[new SL(a.j,e)];a=[new QL(a.j,b),new TL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
  3790. VGa=function(a,b,c,d,e,f,h){var l=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=cJ(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=kJa(a,d,f,h,m);if(d instanceof xI)return d;h=[new SL(a.j,l)];e=[new QL(a.j,f),new SL(a.j,e),new XL(a.j,e)];c=DI(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xa:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
  3791. Cb:new Map,layoutExitNormalTriggers:[new YFa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new $Fa(a.j,m,b.durationMs)],Tc:[new ZFa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xa:"core",Ba:new yI([new SAa(b)]),Yb:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new yI([new iI(b)])}};
  3792. aIa=function(a,b,c,d,e,f){b=iN(a,b,c,d);if(b instanceof xI)return b;var h=b instanceof NL?new UFa(a.j,c,b.j):null;d=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new SL(a.j,d)];a=[new QL(a.j,c),new TL(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof wI?new xI(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
  3793. Xa:"core",Ba:new yI([new iI(f)]),adSlotLoggingData:e}};
  3794. ZHa=function(a,b,c,d){var e=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new GL(a.j,b),h=[new WL(a.j,e)];a=[new QL(a.j,b),new TL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
  3795. IHa=function(a,b,c,d){var e=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new KL(a.j,c);var f=[new SL(a.j,e)],h=[new TL(a.j,e),new QL(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new SL(a.j,e)],slotExpirationTriggers:[new QL(a.j,b),new TL(a.j,e)],Xa:"core",Ba:new yI([new iI(d(f))])}};
  3796. FHa=function(a,b,c,d,e){var f=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new JL(a.j,d,c);d=[new SL(a.j,f)];a=[new QL(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
  3797. QGa=function(a,b,c,d,e,f){var h=pJ(a.B.get(),b);return lJa(a,h,b,new KL(a.j,d),[new QL(a.j,c),new TL(a.j,h),new LL(a.j,d,["error"])],e,f)};
  3798. PGa=function(a,b,c,d,e,f,h){var l=pJ(a.B.get(),b);return lJa(a,l,b,new LL(a.j,e,["normal"]),[new QL(a.j,c),new TL(a.j,l),new LL(a.j,d,["error"])],f,h)};
  3799. LGa=function(a,b,c,d,e){var f=pJ(a.B.get(),b);return lJa(a,f,b,new GL(a.j,c),[new QL(a.j,c),new TL(a.j,f)],d,e)};
  3800. VHa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=pJ(a.B.get(),c);b=new GL(a.j,b);var h=[new SL(a.j,f)];a=[new TL(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(e({slotId:f,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
  3801. PHa=function(a,b,c,d){var e=pJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new RFa(a.j),h=[new WL(a.j,e)];b=[new QL(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Aa.get();return!g.PI(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5")||g.PI(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
  3802. slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Xa:"core",Ba:new yI([new iI(d(l)),new fI({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Xa:"core",Ba:new yI([new iI(d(l)),new fI({})])}};
  3803. qIa=function(a,b){return EIa(a.Aa.get())?new LL(a.j,b,["normal","error","skipped"]):new LL(a.j,b,["normal"])};
  3804. ZGa=function(a,b,c,d,e){b=qIa(a,b);a=rIa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Xa:a.Xa});return e instanceof xI?e:{Fx:Object.assign({},a,{Ba:new yI([new iI(e.layout)]),adSlotLoggingData:d}),hg:e.hg}};
  3805. $Ga=function(a,b,c,d,e,f,h){c=sIa(a,b,c,d);if(c instanceof xI)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Xa:c.Xa});if(h instanceof xI)return h;d=[new rI(EM(b)),new iI(h.layout),new sI({Ut:a.Ut(b)})];f&&d.push(new pI({}));return{Fx:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:tIa(a,
  3806. b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:uIa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Xa:c.Xa,Ba:new yI(d),adSlotLoggingData:e},hg:h.hg}};
  3807. tIa=function(a,b,c,d){return a.Aa.get().uf(EM(b))?new EL(a.j,c):d};
  3808. uIa=function(a,b,c,d){return a.Aa.get().uf(EM(b))?[new WL(a.j,c)]:d};
  3809. rIa=function(a,b,c){var d=pJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new SL(a.j,d)];a=[new TL(a.j,d),new QL(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Xa:"core"}};
  3810. sIa=function(a,b,c,d){b=iN(a,b,c,d);return b instanceof xI?b:rIa(a,b,c)};
  3811. XHa=function(a,b,c,d,e,f){var h=pJ(a.B.get(),"SLOT_TYPE_FORECASTING");b=iN(a,b,c,d);if(b instanceof xI)return b;d=[new SL(a.j,h)];a=[new TL(a.j,h),new QL(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",Ba:new yI([new iI(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
  3812. mJa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new GL(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=GGa(b,d),a instanceof xI?a:e(a.Bo,f);case "AD_PLACEMENT_KIND_END":return new IL(a.j,c,f);default:return new xI("Cannot construct entry trigger",{kind:b.kind})}};
  3813. kJa=function(a,b,c,d,e){return mJa(a,b,c,d,function(f,h){return new TFa(a.j,c,f,h,e)})};
  3814. iN=function(a,b,c,d){return mJa(a,b,c,d,function(e,f){return new NL(a.j,c,e,f)})};
  3815. lJa=function(a,b,c,d,e,f,h){a=[new WL(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Xa:"core",Ba:new yI([new iI(h({slotId:b,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
  3816. jN=function(a,b){g.I.call(this);this.Aa=a;this.j=b;this.eventCount=0};
  3817. nJa=function(a,b,c,d){jN.call(this,a,b);this.Aa=a;this.Ra=c;this.context=d};
  3818. kN=function(){this.j=new Map};
  3819. lN=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
  3820. rN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!oJa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);mN=new Uint8Array(256);nN=lN(256);oN=lN(256);pN=lN(256);qN=lN(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;mN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;nN[f]=b<<24|e<<16|e<<8|h;oN[f]=h<<24|nN[f]>>>8;pN[f]=e<<24|oN[f]>>>8;qN[f]=e<<24|pN[f]>>>8}oJa=!0}e=lN(44);for(c=
  3821. 0;4>c;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(mN[a>>16&255]^d)<<24|mN[a>>8&255]<<16|mN[a&255]<<8|mN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
  3822. pJa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=nN[c>>>24]^oN[d>>16&255]^pN[e>>8&255]^qN[f&255]^b[n++],l=nN[d>>>24]^oN[e>>16&255]^pN[f>>8&255]^qN[c&255]^b[n++],m=nN[e>>>24]^oN[f>>16&255]^pN[c>>8&255]^qN[d&255]^b[n++],f=nN[f>>>24]^oN[c>>16&255]^pN[d>>8&255]^qN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=mN[c>>>24]^h>>>24;a[1]=mN[d>>16&255]^h>>16&255;a[2]=mN[e>>8&255]^
  3823. h>>8&255;a[3]=mN[f&255]^h&255;h=b[41];a[4]=mN[d>>>24]^h>>>24;a[5]=mN[e>>16&255]^h>>16&255;a[6]=mN[f>>8&255]^h>>8&255;a[7]=mN[c&255]^h&255;h=b[42];a[8]=mN[e>>>24]^h>>>24;a[9]=mN[f>>16&255]^h>>16&255;a[10]=mN[c>>8&255]^h>>8&255;a[11]=mN[d&255]^h&255;h=b[43];a[12]=mN[f>>>24]^h>>>24;a[13]=mN[c>>16&255]^h>>16&255;a[14]=mN[d>>8&255]^h>>8&255;a[15]=mN[e&255]^h&255};
  3824. tN=function(){if(!qJa&&!g.VC){if(sN)return sN;var a;sN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=sN)?0:b.importKey)&&(null==(c=sN)?0:c.sign)&&(null==(d=sN)?0:d.encrypt))return sN;sN=void 0}};
  3825. rJa=function(){this.B=this.Rs=0;this.j=Array.from({length:uN.length}).fill(0)};
  3826. sJa=function(){};
  3827. tJa=function(){this.startTimeMs=(0,g.EC)();this.j=!1};
  3828. uJa=function(){this.j=new sJa};
  3829. vJa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new rJa),a.j[b].lh(c,d))};
  3830. wJa=function(a,b,c,d,e){var f=(0,g.EC)(),h=e?e(b):void 0,l;e=null!=(l=null==h?void 0:h.Rs)?l:1;if(0!==e){var m;l=null!=(m=null==h?void 0:h.profile)?m:c;vJa(a,l,f-d,e)}return b};
  3831. xJa=function(a,b,c,d,e){return b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then?b.then(function(f){return wJa(a,f,c,d,e)},void 0):wJa(a,b,c,d,e)};
  3832. yJa=function(){};
  3833. vN=function(a,b){this.Id=a;this.cipher=this.Id.exports.AES128CTRCipher_create(b.byteOffset)};
  3834. g.wN=function(a){this.D=a};
  3835. g.xN=function(a){g.I.call(this);this.B=a};
  3836. yN=function(a,b){this.j=new vN(a,b)};
  3837. zJa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
  3838. AJa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,w=0;64>w;)16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=q+zN[w]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
  3839. d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=p+zN[w]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=n+zN[w]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
  3840. ~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=m+zN[w]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,w++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
  3841. l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
  3842. CJa=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;BJa(a);return b};
  3843. BJa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
  3844. DJa=function(a){this.j=a};
  3845. EJa=function(a,b,c){a=new zJa(a.j);a.update(b);a.update(c);b=CJa(a);a.update(a.G);a.update(b);b=CJa(a);a.reset();return b};
  3846. FJa=function(a){this.B=a};
  3847. GJa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j){l.Ia(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
  3848. HJa=function(a,b,c){a.C||(a.C=new DJa(a.B));return EJa(a.C,b,c)};
  3849. IJa=function(a,b,c){var d,e;return g.G(function(f){if(1==f.j){d=tN();if(!d)return f.return(HJa(a,b,c));g.Ba(f,3);return g.z(f,GJa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.JE(e);qJa=!0;return f.return(HJa(a,b,c))})};
  3850. AN=function(){var a=JJa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Mla.apply(null,[Nla.apply(null,g.qa(b))].concat(g.qa(c)));this.store=Pla(a,void 0,b)};
  3851. g.KJa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.qa(h),g.qa(l)):l;else if(!Array.isArray(l)&&g.cb(l)&&!Array.isArray(h)&&g.cb(h))d[f]=g.KJa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.eC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,mqb:h,updateValue:l}),
  3852. g.IE(b),a}return d};
  3853. BN=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
  3854. LJa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
  3855. CN=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
  3856. DN=function(a,b,c){return a.split(b).Om.split(c).LJ};
  3857. MJa=function(a){a.D=void 0;a.B=0;a.C=0};
  3858. NJa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
  3859. OJa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
  3860. PJa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!NJa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);MJa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
  3861. EN=function(a,b,c){a=PJa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
  3862. FN=function(a,b,c){a=EN(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
  3863. GN=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
  3864. QJa=function(a,b){a.focus(b);return NJa(a,b,4)?OJa(a).getUint32(b-a.C):256*(256*(256*GN(a,b)+GN(a,b+1))+GN(a,b+2))+GN(a,b+3)};
  3865. RJa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
  3866. HN=function(a){return String.fromCharCode.apply(null,a)};
  3867. JN=function(a){return a.length?IN?IN.decode(a):HN(a):""};
  3868. g.LN=function(a){if(!a.length)return"";try{if(IN)return IN.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)KN[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;KN[e++]=55296|f>>10;f=56320|f&1023}KN[e++]=f}}f=String.fromCharCode.apply(String,KN);
  3869. 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
  3870. NN=function(a,b){var c;if(null==(c=MN)?0:c.encodeInto)return b=MN.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
  3871. SJa=function(a){if(MN)return MN.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=NN(a,b);b.length<c&&(b=new Uint8Array(c),c=NN(a,b));b.length>c&&(b=b.subarray(0,c));return b};
  3872. ON=function(a){this.j=a;this.pos=0;this.B=-1};
  3873. PN=function(a){var b=GN(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=GN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
  3874. QN=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=PN(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:PN(a);break;case 1:a.pos+=8;break;case 2:d=PN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
  3875. RN=function(a,b){if(QN(a,b))return PN(a)};
  3876. SN=function(a,b){if(QN(a,b))return!!PN(a)};
  3877. TN=function(a,b){if(QN(a,b)){b=PN(a);var c=EN(a.j,a.pos,b);a.pos+=b;return c}};
  3878. UN=function(a,b){if(a=TN(a,b))return g.LN(a)};
  3879. VN=function(a,b,c){if(a=TN(a,b))return c(new ON(new BN([a])))};
  3880. WN=function(a,b){for(var c=[];QN(a,b);)c.push(PN(a));return c.length?c:void 0};
  3881. XN=function(a,b,c){for(var d=[],e;e=TN(a,b);)d.push(c(new ON(new BN([e]))));return d.length?d:void 0};
  3882. YN=function(a,b){a=a instanceof Uint8Array?new BN([a]):a;return b(new ON(a))};
  3883. TJa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
  3884. UJa=function(a,b){this.Id=b;this.pos=0;this.B=[];this.j=TJa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
  3885. ZN=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;a.j=TJa(c,a.Id,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
  3886. $N=function(a,b){if(268435455<b){ZN(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(ZN(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
  3887. hO=function(a,b,c){void 0!==c&&($N(a,8*b),$N(a,c))};
  3888. iO=function(a,b,c){void 0!==c&&hO(a,b,c?1:0)};
  3889. jO=function(a,b,c){void 0!==c&&($N(a,8*b+2),b=c.length,$N(a,b),ZN(a,b),a.j.set(c,a.pos),a.pos+=b)};
  3890. kO=function(a,b,c){void 0!==c&&(VJa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),ZN(a,1.2*c.length),b=NN(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(ZN(a,b),b=NN(c,a.j.subarray(a.pos))),a.pos+=b,WJa(a))};
  3891. VJa=function(a,b,c){c=void 0===c?2:c;$N(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
  3892. WJa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
  3893. lO=function(a,b,c,d,e){c&&(VJa(a,b,void 0===e?3:e),d(a,c),WJa(a))};
  3894. g.mO=function(a,b,c){c=new UJa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
  3895. g.nO=function(a){var b=new ON(new BN([Mg(decodeURIComponent(a))]));a=UN(b,2);b=RN(b,4);var c=XJa[b];if("undefined"===typeof c)throw a=new g.eC("Failed to recognize field number",{name:"EntityKeyHelperError",Eob:b}),g.IE(a),a;return{V7:b,entityType:c,entityId:a}};
  3896. g.oO=function(a,b){var c=new UJa;jO(c,2,SJa(a));a=YJa[b];if("undefined"===typeof a)throw b=new g.eC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.IE(b),b;hO(c,4,a);hO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Kg(b))};
  3897. pO=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
  3898. ZJa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.KJa(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
  3899. $Ja=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.IE(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.IE(new g.eC("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.$c(e.payload);
  3900. return pO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){a:{e=e.entityKey;try{var m=g.nO(e).entityType;l=pO(d,m,e);break a}catch(q){if(q instanceof Error){g.IE(new g.eC("Failed to deserialize entity key",{entityKey:e,NR:q.message}));l=d;break a}throw q;}l=void 0}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.IE(new g.eC("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.$c(e.payload);var n,p;return ZJa(d,l,e.entityKey,
  3901. e.payload[l],null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
  3902. case "REPLACE_ENTITY":var c=b.payload;return pO(a,c.entityType,c.key,c.U7);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return pO(h,e,l,f[l])},d)},a);
  3903. case "UPDATE_ENTITY":return c=b.payload,ZJa(a,c.entityType,c.key,c.U7,c.bqb);default:return a}};
  3904. qO=function(a,b,c){return a[b]?a[b][c]||null:null};
  3905. bKa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
  3906. e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(rO)?e.replace(",","\u00a0"):f.includes(rO)?e.replace(",","\u202f"):h.includes(rO)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(rO)||d)&&10>c?aKa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=aKa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(rO)&&(c=".");return b.join(c)};
  3907. aKa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
  3908. cKa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
  3909. dKa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
  3910. sO=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.IE(b)}}:a};
  3911. tO=function(a,b,c){if(!g.aB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
  3912. uO=function(a,b,c){if(!g.aB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
  3913. Y=function(a){g.aB("jspb_translator_log_errors")&&g.IA(a)};
  3914. fKa=function(a){var b=new mna,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,eKa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(Uk(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(Uk(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(Uk(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(Uk(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(Uk(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(Uk(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(Uk(b,8,p),c++);var q=a.withDiskSpaceMs;
  3915. void 0!==q&&(Wk(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(Wk(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(Wk(b,11,t),c++);var v=a.activeMs;void 0!==v&&(Wk(b,12,v),c++);var w=a.condensedPageBcSlackCount;void 0!==w&&(Uk(b,13,w),c++);var A=a.persistedDeleteUsedCount;void 0!==A&&(Uk(b,14,A),c++);var D=a.persistedDeleteCount;void 0!==D&&(Uk(b,15,D),c++);var F=a.eventDisabledCount;void 0!==F&&(Uk(b,16,F),c++);var H=a.identityResolutionErrorCount;void 0!==H&&(Uk(b,17,H),c++);var L=a.exceededMaxRetryCount;
  3916. void 0!==L&&(Uk(b,18,L),c++);var M=a.condensedPageBcPersistFailCount;void 0!==M&&(Uk(b,19,M),c++);var R=a.couldNotUnloadPageCount;void 0!==R&&(Uk(b,20,R),c++);var ea=a.pageWasCorruptedCount;void 0!==ea&&(Uk(b,24,ea),c++);var la=a.badEventIndexCount;void 0!==la&&(Uk(b,27,la),c++);var ka=a.serializeErrorCount;void 0!==ka&&(Uk(b,25,ka),c++);var ia=a.payloadInfoNotSetCount;void 0!==ia&&(Uk(b,21,ia),c++);var sa=a.requestEmptyErrorCount;void 0!==sa&&(Uk(b,22,sa),c++);var aa=a.clientEventNotSetCount;void 0!==
  3917. aa&&(Uk(b,23,aa),c++);var U=a.differentIdCount;void 0!==U&&(Uk(b,26,U),c++);var Ha=a.failedWriteCount;void 0!==Ha&&(Uk(b,28,Ha),c++);var x=a.failedReadCount;void 0!==x&&(Uk(b,29,x),c++);var ba=a.failedDispatchCount;void 0!==ba&&(Uk(b,30,ba),c++);var La=a.failedFetchCount;void 0!==La&&(Uk(b,31,La),c++);var ab=a.loggingliteLogsMoved;void 0!==ab&&(Uk(b,32,ab),c++);var lb=a.loggingliteLogsDropped;void 0!==lb&&(Uk(b,33,lb),c++);return[c===Object.keys(a).length,b]}catch(Qa){return Y(Qa),[!1,void 0]}};
  3918. vO=function(a){var b=new Hz,c=0;try{var d=a.trackingParams;void 0!==d&&(b.setTrackingParams(d),c++);var e=a.veType;void 0!==e&&(Uk(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(Uk(b,3,f),c++);var h=a.veCounter;void 0!==h&&(Uk(b,6,h),c++);var l=a.dataElement;if(l){var m=vO(l);m[0]&&(Hk(b,Hz,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(Tk(b,5,n),c++);var p=a.youtubeData;if(p){a:{var q=new Yx,r=0;try{var t=p.channelData;if(t){b:{var v=new jma,w=0;try{var A=t.externalId;void 0!==A&&($k(v,1,A),w++);
  3919. var D=[w===Object.keys(t).length,v];break b}catch(Pa){Y(Pa);D=[!1,void 0];break b}}var F=D;F[0]&&(Hk(q,jma,2,F[1]),r++)}var H=p.channelItem;if(H){b:{var L=new kma,M=0;try{var R=H.externalId;void 0!==R&&($k(L,1,R),M++);var ea=[M===Object.keys(H).length,L];break b}catch(Pa){Y(Pa);ea=[!1,void 0];break b}}var la=ea;la[0]&&(Hk(q,kma,5,la[1]),r++)}var ka=p.playlistItem;if(ka){b:{var ia=new yma,sa=0;try{var aa=ka.externalPlaylistId;void 0!==aa&&($k(ia,5,aa),sa++);var U=[sa===Object.keys(ka).length,ia];break b}catch(Pa){Y(Pa);
  3920. U=[!1,void 0];break b}}var Ha=U;Ha[0]&&(Hk(q,yma,6,Ha[1]),r++)}var x=p.analyticsData;if(x){b:{var ba=new hma,La=0;try{var ab=x.tabName;void 0!==ab&&(S(ba,1,gKa[ab]),La++);var lb=x.analysisVariant;if(lb){c:{var Qa=new Zla,Ua=0;try{var jb=lb.analysisSummary;if(jb){d:{var rb=new ex,pb=0;try{var B=jb.type;void 0!==B&&(S(rb,1,hKa[B]),pb++);var C=jb.eligibility;void 0!==C&&(S(rb,2,iKa[C]),pb++);var E=jb.sentiment;void 0!==E&&(S(rb,3,jKa[E]),pb++);var J=[pb===Object.keys(jb).length,rb];break d}catch(Pa){Y(Pa);
  3921. J=[!1,void 0];break d}}var K=J;K[0]&&(Hk(Qa,ex,1,K[1]),Ua++)}var ca=lb.videoPerformanceVariant;if(ca){var ta=kKa(ca);ta[0]&&(Ik(Qa,rx,2,wO,ta[1]),Ua++)}var na=lb.videoOverviewVariant;if(na){d:{var O=new Xla,Z=0;try{var ya=na.timePeriod;void 0!==ya&&(S(O,1,xO[ya]),Z++);var xa=na.videoPerformanceVariant;if(xa){var Za=kKa(xa);Za[0]&&(Hk(O,rx,2,Za[1]),Z++)}var Wa=na.durationTimePeriod;void 0!==Wa&&(S(O,3,lKa[Wa]),Z++);var zb=[Z===Object.keys(na).length,O];break d}catch(Pa){Y(Pa);zb=[!1,void 0];break d}zb=
  3922. void 0}var Rb=zb;Rb[0]&&(Ik(Qa,Xla,3,wO,Rb[1]),Ua++)}var eb=lb.channelFluctuationVariant;if(eb){d:{var Ub=new hx,hc=0;try{var Dc=eb.views;void 0!==Dc&&(S(Ub,1,yO[Dc]),hc++);var Zb=eb.driver;void 0!==Zb&&(S(Ub,2,mKa[Zb]),hc++);var vc=eb.ctr;void 0!==vc&&(S(Ub,3,yO[vc]),hc++);var Wc=eb.impressions;void 0!==Wc&&(S(Ub,4,yO[Wc]),hc++);var Sc=eb.viewsPerVideo;void 0!==Sc&&(S(Ub,5,yO[Sc]),hc++);var Ec=[hc===Object.keys(eb).length,Ub];break d}catch(Pa){Y(Pa);Ec=[!1,void 0];break d}}var Fc=Ec;Fc[0]&&(Ik(Qa,
  3923. hx,4,wO,Fc[1]),Ua++)}var Xb=lb.artistOverviewVariant;if(Xb){d:{var yd=new fx,fd=0;try{var fc=Xb.timePeriod;void 0!==fc&&(S(yd,1,xO[fc]),fd++);var $b=Xb.variantType;void 0!==$b&&(S(yd,2,nKa[$b]),fd++);var Gc=[fd===Object.keys(Xb).length,yd];break d}catch(Pa){Y(Pa);Gc=[!1,void 0];break d}}var Jb=Gc;Jb[0]&&(Ik(Qa,fx,5,wO,Jb[1]),Ua++)}var ad=lb.monthlySubsVariant;if(ad){var sd=oKa(ad);sd[0]&&(Ik(Qa,mx,6,wO,sd[1]),Ua++)}var Pb=lb.monthlyRevenueVariant;if(Pb){var de=pKa(Pb);de[0]&&(Ik(Qa,lx,7,wO,de[1]),
  3924. Ua++)}var Rd=lb.holisticMonthlyOverviewVariant;if(Rd){d:{var Sd=new nx,Ae=0;try{var Be=Rd.viewsPerformance;if(Be){var Jd=qKa(Be);Jd[0]&&(Hk(Sd,kx,1,Jd[1]),Ae++)}var pf=Rd.subsPerformance;if(pf){var Oe=oKa(pf);Oe[0]&&(Hk(Sd,mx,2,Oe[1]),Ae++)}var Kd=Rd.revenuePerformance;if(Kd){var Ef=pKa(Kd);Ef[0]&&(Hk(Sd,lx,3,Ef[1]),Ae++)}var Td=[Ae===Object.keys(Rd).length,Sd];break d}catch(Pa){Y(Pa);Td=[!1,void 0];break d}Td=void 0}var ee=Td;ee[0]&&(Ik(Qa,nx,8,wO,ee[1]),Ua++)}var Ld=lb.personalizedChannelOverviewVariant;
  3925. if(Ld){d:{var zd=new Wla,bd=0;try{var Md=Ld.timePeriod;void 0!==Md&&(S(zd,1,xO[Md]),bd++);var Ze=Ld.viewsPerformance;if(Ze){var qf=qKa(Ze);qf[0]&&(Hk(zd,kx,2,qf[1]),bd++)}var Xf=[bd===Object.keys(Ld).length,zd];break d}catch(Pa){Y(Pa);Xf=[!1,void 0];break d}Xf=void 0}var se=Xf;se[0]&&(Ik(Qa,Wla,9,wO,se[1]),Ua++)}var rc=lb.channelNewReturningVariant;if(rc){d:{var Pe=new ix,Vh=0;try{var ie=rc.uniqueViewers;void 0!==ie&&(S(Pe,1,yO[ie]),Vh++);var ph=rc.newViewers;void 0!==ph&&(S(Pe,2,yO[ph]),Vh++);var Ni=
  3926. rc.returningViewers;void 0!==Ni&&(S(Pe,3,yO[Ni]),Vh++);var sf=[Vh===Object.keys(rc).length,Pe];break d}catch(Pa){Y(Pa);sf=[!1,void 0];break d}}var df=sf;df[0]&&(Ik(Qa,ix,10,wO,df[1]),Ua++)}var te=lb.lowReturningViewersDataStoryVariant;if(te){d:{var ai=new ox,uc=0;try{var wc=te.videoListType;void 0!==wc&&(S(ai,1,rKa[wc]),uc++);var Hc=[uc===Object.keys(te).length,ai];break d}catch(Pa){Y(Pa);Hc=[!1,void 0];break d}}var vj=Hc;vj[0]&&(Ik(Qa,ox,11,wO,vj[1]),Ua++)}var If=lb.weeklyDataStoryVariant;if(If){d:{var Qg=
  3927. new Yla,sg=0;try{var Oi=If.dateId;void 0!==Oi&&(Vk(Qg,1,Oi),sg++);var bi=[sg===Object.keys(If).length,Qg];break d}catch(Pa){Y(Pa);bi=[!1,void 0];break d}}var Pi=bi;Pi[0]&&(Ik(Qa,Yla,12,wO,Pi[1]),Ua++)}var tf=lb.monthlyDataStoryVariant;if(tf){d:{var hd=new px,uf=0;try{var ci=tf.dateId;void 0!==ci&&(Vk(hd,1,ci),uf++);var ef=tf.highlightType;void 0!==ef&&(S(hd,2,sKa[ef]),uf++);var $f=tf.adviceType;void 0!==$f&&(S(hd,3,tKa[$f]),uf++);var ag=tf.revenueInsightType;void 0!==ag&&(S(hd,4,uKa[ag]),uf++);var di=
  3928. [uf===Object.keys(tf).length,hd];break d}catch(Pa){Y(Pa);di=[!1,void 0];break d}}var Jf=di;Jf[0]&&(Ik(Qa,px,13,wO,Jf[1]),Ua++)}var tg=lb.otherFormatsDataStoryVariant;if(tg){d:{var qh=new qx,Rg=0;try{var ug=tg.overlapShorts;void 0!==ug&&(Vk(qh,1,ug),Rg++);var ue=tg.overlapChannels;void 0!==ue&&(Vk(qh,2,ue),Rg++);var Se=[Rg===Object.keys(tg).length,qh];break d}catch(Pa){Y(Pa);Se=[!1,void 0];break d}}var je=Se;je[0]&&(Ik(Qa,qx,14,wO,je[1]),Ua++)}var rh=lb.audienceWatchesLongformDataStoryVariant;if(rh){d:{var ff=
  3929. new gx,gf=0;try{var Kf=rh.hasOverlapVideo;void 0!==Kf&&(Tk(ff,1,Kf),gf++);var bg=rh.hasOverlapLivestream;void 0!==bg&&(Tk(ff,2,bg),gf++);var Sg=rh.overlapChannels;void 0!==Sg&&(Vk(ff,3,Sg),gf++);var ke=[gf===Object.keys(rh).length,ff];break d}catch(Pa){Y(Pa);ke=[!1,void 0];break d}}var vg=ke;vg[0]&&(Ik(Qa,gx,15,wO,vg[1]),Ua++)}var Lf=lb.contentInspirationDataStoryVariant;if(Lf){d:{var Qi=new jx,sh=0;try{var fm=Lf.hasVideoOverlapData;void 0!==fm&&(Tk(Qi,1,fm),sh++);var gm=Lf.hasChannelOverlapData;
  3930. void 0!==gm&&(Tk(Qi,2,gm),sh++);var kk=Lf.hasSearchTermsData;void 0!==kk&&(Tk(Qi,3,kk),sh++);var lk=[sh===Object.keys(Lf).length,Qi];break d}catch(Pa){Y(Pa);lk=[!1,void 0];break d}}var wj=lk;wj[0]&&(Ik(Qa,jx,16,wO,wj[1]),Ua++)}var Te=[Ua===Object.keys(lb).length,Qa];break c}catch(Pa){Y(Pa);Te=[!1,void 0];break c}Te=void 0}var De=Te;De[0]&&(Hk(ba,Zla,12,De[1]),La++)}var Yd=x.cardConfig;if(Yd){c:{var Tg=new ama,ei=0;try{var hm=Yd.cardType;void 0!==hm&&(S(Tg,3,vKa[hm]),ei++);var il=Yd.legacyMobileCardType;
  3931. void 0!==il&&(S(Tg,5,wKa[il]),ei++);var xj=Yd.entityType;void 0!==xj&&(S(Tg,4,xKa[xj]),ei++);var th=Yd.tableCardConfig;if(th){d:{var Ug=new tx,hf=0;try{var fi=th.dimension;void 0!==fi&&(S(Ug,1,zO[fi]),hf++);var mk=th.metrics;void 0!==mk&&(uO(Ug.j.bind(Ug),mk,zO),hf++);var jl=[hf===Object.keys(th).length,Ug];break d}catch(Pa){Y(Pa);jl=[!1,void 0];break d}}var gi=jl;gi[0]&&(Ik(Tg,tx,1,yKa,gi[1]),ei++)}var Ri=Yd.keyMetricCardConfig;if(Ri){d:{var Vg=new sx,wg=0;try{var hi=Ri.metricTabConfigs;hi&&(tO(Vg.j.bind(Vg),
  3932. hi,zKa),wg++);var ii=[wg===Object.keys(Ri).length,Vg];break d}catch(Pa){Y(Pa);ii=[!1,void 0];break d}}var nk=ii;nk[0]&&(Ik(Tg,sx,2,yKa,nk[1]),ei++)}var kl=[ei===Object.keys(Yd).length,Tg];break c}catch(Pa){Y(Pa);kl=[!1,void 0];break c}kl=void 0}var ok=kl;ok[0]&&(Hk(ba,ama,13,ok[1]),La++)}var Si=x.externalVideoId;void 0!==Si&&(Q(ba,15,Si),La++);var im=x.videoSid;void 0!==im&&(Wk(ba,16,im),La++);var vf=x.exploreConfig;if(vf){c:{var cg=new vx,Mf=0;try{var Nf=vf.metrics;void 0!==Nf&&(uO(cg.j.bind(cg),
  3933. Nf,zO),Mf++);var ll=vf.dimension;void 0!==ll&&(S(cg,2,zO[ll]),Mf++);var jm=vf.timePeriodType;void 0!==jm&&(S(cg,3,xO[jm]),Mf++);var mc=[Mf===Object.keys(vf).length,cg];break c}catch(Pa){Y(Pa);mc=[!1,void 0];break c}}var ip=mc;ip[0]&&(Hk(ba,vx,18,ip[1]),La++)}var yj=x.contentInspirationEntity;if(yj){c:{var ml=new dx,ji=0;try{var jp=yj.video;if(jp){d:{var zj=new cx,nl=0;try{var km=jp.externalVideoId;void 0!==km&&(Q(zj,1,km),nl++);var tn=[nl===Object.keys(jp).length,zj];break d}catch(Pa){Y(Pa);tn=[!1,
  3934. void 0];break d}}var lm=tn;lm[0]&&(Ik(ml,cx,1,AO,lm[1]),ji++)}var ol=yj.kgTopic;if(ol){d:{var kp=new bx,mm=0;try{var un=ol.kgTopicMid;void 0!==un&&(Q(kp,1,un),mm++);var vn=[mm===Object.keys(ol).length,kp];break d}catch(Pa){Y(Pa);vn=[!1,void 0];break d}}var wn=vn;wn[0]&&(Ik(ml,bx,2,AO,wn[1]),ji++)}var Aj=yj.freeformTopic;if(Aj){d:{var ki=new $w,Wg=0;try{var pk=Aj.freeformTopic;void 0!==pk&&(Q(ki,1,pk),Wg++);var cr=Aj.languageCode;void 0!==cr&&(Q(ki,4,cr),Wg++);var xn=Aj.isContentGap;void 0!==xn&&(Tk(ki,
  3935. 2,xn),Wg++);var dr=Aj.isShortsContentGap;void 0!==dr&&(Tk(ki,3,dr),Wg++);var lp=Aj.isInVideoIdeaShelf;void 0!==lp&&(Tk(ki,5,lp),Wg++);var yn=[Wg===Object.keys(Aj).length,ki];break d}catch(Pa){Y(Pa);yn=[!1,void 0];break d}}var er=yn;er[0]&&(Ik(ml,$w,3,AO,er[1]),ji++)}var Xg=yj.generatedOutline;if(Xg){d:{var Ti=new ax,li=0;try{var fr=Xg.feedbackToken;void 0!==fr&&(Q(Ti,1,fr),li++);var xg=[li===Object.keys(Xg).length,Ti];break d}catch(Pa){Y(Pa);xg=[!1,void 0];break d}}var Zd=xg;Zd[0]&&(Ik(ml,ax,4,AO,
  3936. Zd[1]),ji++)}var Ee=[ji===Object.keys(yj).length,ml];break c}catch(Pa){Y(Pa);Ee=[!1,void 0];break c}Ee=void 0}var zn=Ee;zn[0]&&(Hk(ba,dx,19,zn[1]),La++)}var An=[La===Object.keys(x).length,ba];break b}catch(Pa){Y(Pa);An=[!1,void 0];break b}An=void 0}var gr=An;gr[0]&&(Hk(q,hma,20,gr[1]),r++)}var Bn=p.promotionData;if(Bn){b:{var nm=new zma,pl=0;try{var hr=Bn.promotionId;void 0!==hr&&(Q(nm,1,hr),pl++);var Ui=Bn.placementType;void 0!==Ui&&(S(nm,9,AKa[Ui]),pl++);var Vi=[pl===Object.keys(Bn).length,nm];
  3937. break b}catch(Pa){Y(Pa);Vi=[!1,void 0];break b}}var qk=Vi;qk[0]&&(Hk(q,zma,21,qk[1]),r++)}var ql=p.backstageItem;if(ql){b:{var rl=new ima,om=0;try{var mp=ql.stanzaId;void 0!==mp&&(Q(rl,1,mp),om++);var np=ql.likeCount;void 0!==np&&(Wk(rl,7,np),om++);var op=ql.backstageId;void 0!==op&&(Q(rl,9,op),om++);var Cn=ql.wasPostScheduled;void 0!==Cn&&(Tk(rl,14,Cn),om++);var Dn=[om===Object.keys(ql).length,rl];break b}catch(Pa){Y(Pa);Dn=[!1,void 0];break b}}var pp=Dn;pp[0]&&(Hk(q,ima,32,pp[1]),r++)}var yg=p.adminSelfieData;
  3938. if(yg){b:{var mi=new fma,pc=0;try{var uh=yg.componentId;void 0!==uh&&(Q(mi,1,uh),pc++);var qp=yg.componentType;void 0!==qp&&(Q(mi,2,qp),pc++);var pm=yg.payload;if(pm){c:{var qm=new ema,sl=0;try{var rp=pm.include;if(rp){d:{var sp=new bma,tp=0;try{var Bj=rp.fragmentName;void 0!==Bj&&(Q(sp,1,Bj),tp++);var Wi=[tp===Object.keys(rp).length,sp];break d}catch(Pa){Y(Pa);Wi=[!1,void 0];break d}}var rk=Wi;rk[0]&&(Ik(qm,bma,1,BKa,rk[1]),sl++)}var rm=pm.toolboxPage;if(rm){d:{var sm=new dma,up=0;try{var sk=rm.fragmentName;
  3939. void 0!==sk&&(Q(sm,1,sk),up++);var Cj=[up===Object.keys(rm).length,sm];break d}catch(Pa){Y(Pa);Cj=[!1,void 0];break d}}var tk=Cj;tk[0]&&(Ik(qm,dma,2,BKa,tk[1]),sl++)}var En=pm.reviewQueuePage;if(En){d:{var ir=new cma,vp=0;try{var tl=En.queueId;void 0!==tl&&(Uk(ir,1,tl),vp++);var ul=[vp===Object.keys(En).length,ir];break d}catch(Pa){Y(Pa);ul=[!1,void 0];break d}}var ni=ul;ni[0]&&(Ik(qm,cma,3,BKa,ni[1]),sl++)}var wp=[sl===Object.keys(pm).length,qm];break c}catch(Pa){Y(Pa);wp=[!1,void 0];break c}wp=
  3940. void 0}var xp=wp;xp[0]&&(Hk(mi,ema,3,xp[1]),pc++)}var yp=[pc===Object.keys(yg).length,mi];break b}catch(Pa){Y(Pa);yp=[!1,void 0];break b}yp=void 0}var Fn=yp;Fn[0]&&(Hk(q,fma,41,Fn[1]),r++)}var tm=p.notificationState;if(tm){b:{var uk=new Jma,vl=0;try{var Gn=tm.inboxInteractionData;if(Gn){c:{var um=new Mx,zp=0;try{var Ap=Gn.notifications;Ap&&(tO(um.j.bind(um),Ap,CKa),zp++);var Bp=[zp===Object.keys(Gn).length,um];break c}catch(Pa){Y(Pa);Bp=[!1,void 0];break c}}var wl=Bp;wl[0]&&(Hk(uk,Mx,9,wl[1]),vl++)}var xl=
  3941. [vl===Object.keys(tm).length,uk];break b}catch(Pa){Y(Pa);xl=[!1,void 0];break b}xl=void 0}var zg=xl;zg[0]&&(Hk(q,Jma,59,zg[1]),r++)}var vh=p.delegationContext;if(vh){b:{var oi=new xma,jf=0;try{var Hn=vh.externalChannelId;void 0!==Hn&&(Q(oi,1,Hn),jf++);var Cp=vh.externalOwnerId;void 0!==Cp&&(Q(oi,3,Cp),jf++);var In=vh.artistId;void 0!==In&&(Q(oi,4,In),jf++);var yl=vh.roleType;if(yl){c:{var Ag=new wma,Bg=0;try{var vk=yl.channelRoleType;void 0!==vk&&(al(Ag,1,DKa,EKa[vk]),Bg++);var Dp=yl.artistRoleType;
  3942. void 0!==Dp&&(al(Ag,2,DKa,FKa[Dp]),Bg++);var wk=yl.contentOwnerRoleType;void 0!==wk&&(al(Ag,3,DKa,GKa[wk]),Bg++);var Dj=[Bg===Object.keys(yl).length,Ag];break c}catch(Pa){Y(Pa);Dj=[!1,void 0];break c}}var zl=Dj;zl[0]&&(Hk(oi,wma,5,zl[1]),jf++)}var vm=vh.oacChannelId;void 0!==vm&&(Q(oi,6,vm),jf++);var Jn=vh.isInternalUser;void 0!==Jn&&(Tk(oi,8,Jn),jf++);var Ep=vh.user;void 0!==Ep&&(Tk(oi,10,Ep),jf++);var Fp=vh.delegationContextSerialized;void 0!==Fp&&($k(oi,9,Fp),jf++);var wm=[jf===Object.keys(vh).length,
  3943. oi];break b}catch(Pa){Y(Pa);wm=[!1,void 0];break b}wm=void 0}var Al=wm;Al[0]&&(Hk(q,xma,63,Al[1]),r++)}var Bl=p.campaignData;if(Bl){b:{var Gp=new Hma,Cl=0;try{var Kn=Bl.campaignName;void 0!==Kn&&(Q(Gp,1,Kn),Cl++);var Ln=Bl.campaignVersion;void 0!==Ln&&(Q(Gp,2,Ln),Cl++);var Mn=[Cl===Object.keys(Bl).length,Gp];break b}catch(Pa){Y(Pa);Mn=[!1,void 0];break b}}var ft=Mn;ft[0]&&(Hk(q,Hma,64,ft[1]),r++)}var xm=p.scoringEventInfo;if(xm){b:{var Hp=new Ama,Ip=0;try{var Jp=xm.scoringTrackingParams;void 0!==
  3944. Jp&&($k(Hp,1,Jp),Ip++);var Nn=[Ip===Object.keys(xm).length,Hp];break b}catch(Pa){Y(Pa);Nn=[!1,void 0];break b}}var ym=Nn;ym[0]&&(Hk(q,Ama,77,ym[1]),r++)}var Dl=p.servletData;if(Dl){b:{var On=new Bma,Pn=0;try{var Kp=Dl.serializedServletEventId;void 0!==Kp&&(Q(On,1,Kp),Pn++);var Qn=[Pn===Object.keys(Dl).length,On];break b}catch(Pa){Y(Pa);Qn=[!1,void 0];break b}}var jr=Qn;jr[0]&&(Hk(q,Bma,83,jr[1]),r++)}var Lp=p.yoodleData;if(Lp){b:{var Rn=new Gma,kr=0;try{var le=Lp.promoId;void 0!==le&&(Q(Rn,1,le),
  3945. kr++);var ve=[kr===Object.keys(Lp).length,Rn];break b}catch(Pa){Y(Pa);ve=[!1,void 0];break b}}var Fe=ve;Fe[0]&&(Hk(q,Gma,85,Fe[1]),r++)}var Sn=p.videoRestrictionData;if(Sn){b:{var Tn=new Lx,Mp=0;try{var lr=Sn.restrictions;lr&&(tO(Tn.j.bind(Tn),lr,HKa),Mp++);var Np=Sn.prechecksPending;void 0!==Np&&(Tk(Tn,2,Np),Mp++);var Op=[Mp===Object.keys(Sn).length,Tn];break b}catch(Pa){Y(Pa);Op=[!1,void 0];break b}}var Pp=Op;Pp[0]&&(Hk(q,Lx,92,Pp[1]),r++)}var Xi=p.creatorMusicData;if(Xi){b:{var wh=new Ex,pi=0;
  3946. try{var Qp=Xi.entity;if(Qp){var mr=IKa(Qp);mr[0]&&(Hk(wh,Dx,1,mr[1]),pi++)}var zm=Xi.entities;zm&&(tO(wh.j.bind(wh),zm,IKa),pi++);var Am=Xi.track;if(Am){var Bm=JKa(Am);Bm[0]&&(Ik(wh,Cx,3,BO,Bm[1]),pi++)}var Rp=Xi.artist;if(Rp){c:{var Ej=new rma,Cm=0;try{var Yi=Rp.details;if(Yi){d:{var Un=new wx,Vn=0;try{var Sp=Yi.kgMid;void 0!==Sp&&(Q(Un,1,Sp),Vn++);var nr=Yi.name;void 0!==nr&&(Q(Un,2,nr),Vn++);var Zi=[Vn===Object.keys(Yi).length,Un];break d}catch(Pa){Y(Pa);Zi=[!1,void 0];break d}}var El=Zi;El[0]&&
  3947. (Hk(Ej,wx,1,El[1]),Cm++)}var Fj=[Cm===Object.keys(Rp).length,Ej];break c}catch(Pa){Y(Pa);Fj=[!1,void 0];break c}Fj=void 0}var or=Fj;or[0]&&(Ik(wh,rma,5,BO,or[1]),pi++)}var Wn=Xi.licensePurchase;if(Wn){c:{var Tp=new uma,Xn=0;try{var pr=Wn.assetId;void 0!==pr&&(Q(Tp,1,pr),Xn++);var Yn=Wn.artTrackId;void 0!==Yn&&(Q(Tp,2,Yn),Xn++);var Up=[Xn===Object.keys(Wn).length,Tp];break c}catch(Pa){Y(Pa);Up=[!1,void 0];break c}}var xk=Up;xk[0]&&(Ik(wh,uma,6,BO,xk[1]),pi++)}var Fl=Xi.claim;if(Fl){c:{var Dm=new sma,
  3948. qr=0;try{var Yg=Fl.assetId;void 0!==Yg&&(Q(Dm,1,Yg),qr++);var Of=[qr===Object.keys(Fl).length,Dm];break c}catch(Pa){Y(Pa);Of=[!1,void 0];break c}}var dg=Of;dg[0]&&(Ik(wh,sma,7,BO,dg[1]),pi++)}var rr=Xi.collection;if(rr){var yk=KKa(rr);yk[0]&&(Ik(wh,Bx,4,BO,yk[1]),pi++)}var $i=[pi===Object.keys(Xi).length,wh];break b}catch(Pa){Y(Pa);$i=[!1,void 0];break b}$i=void 0}var xh=$i;xh[0]&&(Hk(q,Ex,96,xh[1]),r++)}var eg=p.creatorData;if(eg){b:{var Cg=new qma,qi=0;try{var gt=eg.ttWizardTargetFeature;void 0!==
  3949. gt&&(al(Cg,1,LKa,MKa[gt]),qi++);var Zg=eg.ttWizardTargetLevel;void 0!==Zg&&(al(Cg,2,LKa,NKa[Zg]),qi++);var sr=eg.simpleWizardDetails;if(sr){var Vp=new pma;try{var zk=[0===Object.keys(sr).length,Vp]}catch(Pa){Y(Pa),zk=[!1,void 0]}var tr=zk;tr[0]&&(Ik(Cg,pma,3,OKa,tr[1]),qi++)}var yh=eg.advancedWizardDetails;if(yh){c:{var Zn=new nma,Wp=0;try{var ht=yh.isDoubleHop;void 0!==ht&&(Tk(Zn,1,ht),Wp++);var Xp=[Wp===Object.keys(yh).length,Zn];break c}catch(Pa){Y(Pa);Xp=[!1,void 0];break c}}var ur=Xp;ur[0]&&
  3950. (Ik(Cg,nma,4,OKa,ur[1]),qi++)}var $n=eg.blockedWizardDetails;if($n){c:{var vr=new oma,Em=0;try{var zh=$n.loggableBlockedReason;void 0!==zh&&(S(vr,1,PKa[zh]),Em++);var Gj=[Em===Object.keys($n).length,vr];break c}catch(Pa){Y(Pa);Gj=[!1,void 0];break c}}var Ak=Gj;Ak[0]&&(Ik(Cg,oma,5,OKa,Ak[1]),qi++)}var Hj=[qi===Object.keys(eg).length,Cg];break b}catch(Pa){Y(Pa);Hj=[!1,void 0];break b}Hj=void 0}var Yp=Hj;Yp[0]&&(Hk(q,qma,98,Yp[1]),r++)}var Fm=p.adstubeData;if(Fm){b:{var it=new gma,jt=0;try{var Ij=Fm.countryTargetingPrefill;
  3951. if(Ij){c:{var aj=new ux,Ah=0;try{var Bk=Ij.prefilledCodes;Bk&&(tO(aj.B.bind(aj),Bk),Ah++);var Ck=Ij.finalCodes;Ck&&(tO(aj.j.bind(aj),Ck),Ah++);var Dk=Ij.source;void 0!==Dk&&(Q(aj,3,Dk),Ah++);var wr=[Ah===Object.keys(Ij).length,aj];break c}catch(Pa){Y(Pa);wr=[!1,void 0];break c}}var kt=wr;kt[0]&&(Hk(it,ux,1,kt[1]),jt++)}var Zp=[jt===Object.keys(Fm).length,it];break b}catch(Pa){Y(Pa);Zp=[!1,void 0];break b}Zp=void 0}var $p=Zp;$p[0]&&(Hk(q,gma,104,$p[1]),r++)}var Gl=p.loggingExpectations;if(Gl){var bj=
  3952. QKa(Gl);bj[0]&&(Hk(q,Xx,106,bj[1]),r++)}var cj=p.channelPageVeData;if(cj){b:{var Gm=new lma,xr=0;try{var aq=cj.isForYouShelf;void 0!==aq&&(Tk(Gm,2,aq),xr++);var ao=[xr===Object.keys(cj).length,Gm];break b}catch(Pa){Y(Pa);ao=[!1,void 0];break b}}var yr=ao;yr[0]&&(Hk(q,lma,107,yr[1]),r++)}var bo=p.shoppingAffiliateData;if(bo){b:{var bq=new Cma,cq=0;try{var Hl=bo.affiliateDeepLinkSource;void 0!==Hl&&(S(bq,1,RKa[Hl]),cq++);var kf=[cq===Object.keys(bo).length,bq];break b}catch(Pa){Y(Pa);kf=[!1,void 0];
  3953. break b}}var ri=kf;ri[0]&&(Hk(q,Cma,109,ri[1]),r++)}var dj=p.hashtagSuggestionData;if(dj){b:{var co=new Jx,lv=0;try{var Px=dj.hashtagId;void 0!==Px&&(Q(co,1,Px),lv++);var mv=dj.suggestionSources;void 0!==mv&&(uO(co.j.bind(co),mv,SKa),lv++);var nv=[lv===Object.keys(dj).length,co];break b}catch(Pa){Y(Pa);nv=[!1,void 0];break b}}var ov=nv;ov[0]&&(Hk(q,Jx,111,ov[1]),r++)}var lt=p.componentData;if(lt){b:{var Qx=new mma,zr=0;try{var mt=lt.standardComponentType;void 0!==mt&&(S(Qx,1,TKa[mt]),zr++);var Ar=
  3954. [zr===Object.keys(lt).length,Qx];break b}catch(Pa){Y(Pa);Ar=[!1,void 0];break b}}var Rx=Ar;Rx[0]&&(Hk(q,mma,121,Rx[1]),r++)}var nt=p.creatorShoppingTaggingData;if(nt){b:{var Br=new Ix,ot=0;try{var Sx=nt.products;Sx&&(tO(Br.j.bind(Br),Sx,UKa),ot++);var pv=nt.taggedVideos;pv&&(tO(Br.B.bind(Br),pv,VKa),ot++);var qv=[ot===Object.keys(nt).length,Br];break b}catch(Pa){Y(Pa);qv=[!1,void 0];break b}}var Tx=qv;Tx[0]&&(Hk(q,Ix,122,Tx[1]),r++)}var rv=[r===Object.keys(p).length,q];break a}catch(Pa){Y(Pa);rv=
  3955. [!1,void 0];break a}rv=void 0}var Ux=rv;Ux[0]&&(Hk(b,Yx,8,Ux[1]),c++)}var tv=a.loggingExpectations;if(tv){var Vx=QKa(tv);Vx[0]&&(Hk(b,Xx,9,Vx[1]),c++)}return[c===Object.keys(a).length,b]}catch(Pa){return Y(Pa),[!1,void 0]}};
  3956. kKa=function(a){var b=new rx,c=0;try{var d=a.views;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.driver;void 0!==e&&(S(b,2,WKa[e]),c++);var f=a.ctr;void 0!==f&&(S(b,3,yO[f]),c++);var h=a.avd;void 0!==h&&(S(b,4,yO[h]),c++);var l=a.impressions;void 0!==l&&(S(b,5,yO[l]),c++);var m=a.videoLength;void 0!==m&&(S(b,6,yO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  3957. oKa=function(a){var b=new mx,c=0;try{var d=a.subsGrowth;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.nonSubViews;void 0!==e&&(S(b,2,yO[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(S(b,3,yO[f]),c++);var h=a.accountsClosed;void 0!==h&&(S(b,4,yO[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(S(b,5,yO[l]),c++);var m=a.videosPublished;void 0!==m&&(S(b,6,yO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  3958. pKa=function(a){var b=new lx,c=0;try{var d=a.revenue;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.revenueSource;void 0!==e&&(S(b,2,XKa[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(uO(b.j.bind(b),f,YKa),c++);var h=a.revenueChangeReason;void 0!==h&&(S(b,4,ZKa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(S(b,5,$Ka[l]),c++);var m=a.driverCountryCode;void 0!==m&&(Q(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  3959. qKa=function(a){var b=new kx,c=0;try{var d=a.views;void 0!==d&&(S(b,1,yO[d]),c++);var e=a.drivers;void 0!==e&&(uO(b.j.bind(b),e,aLa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  3960. zKa=function(a){var b=new $la,c=0;try{var d=a.metric;void 0!==d&&(S(b,1,zO[d]),c++);var e=a.comparisonMetric;void 0!==e&&(S(b,2,zO[e]),c++);var f=a.includeCumulative;void 0!==f&&(Tk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  3961. CKa=function(a){var b=new Ima,c=0;try{var d=a.attributionTag;void 0!==d&&(Q(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3962. HKa=function(a){var b=new Fma,c=0;try{var d=a.limitedAds;if(d){a:{var e=new Ema,f=0;try{var h=d.imposer;void 0!==h&&(S(e,1,bLa[h]),f++);var l=[f===Object.keys(d).length,e];break a}catch(D){Y(D);l=[!1,void 0];break a}}d=l;d[0]&&(Ik(b,Ema,1,cLa,d[1]),c++)}var m=a.copyright;if(m){a:{var n=new Dma;d=0;try{var p=m.policyType;void 0!==p&&(S(n,1,dLa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(Tk(n,2,q),d++);var r=[d===Object.keys(m).length,n];break a}catch(D){Y(D);r=[!1,void 0];break a}}m=r;m[0]&&(Ik(b,
  3963. Dma,2,cLa,m[1]),c++)}var t=a.communityGuidelines;if(t){a:{var v=new Kx;m=0;try{var w=t.policyVerticals;void 0!==w&&(uO(v.j.bind(v),w,eLa),m++);var A=[m===Object.keys(t).length,v];break a}catch(D){Y(D);A=[!1,void 0];break a}}t=A;t[0]&&(Ik(b,Kx,3,cLa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(D){return Y(D),[!1,void 0]}};
  3964. IKa=function(a){var b=new Dx,c=0;try{var d=a.featuredCollection;if(d){var e=fLa(d);e[0]&&(Ik(b,xx,1,CO,e[1]),c++)}var f=a.mood;if(f){var h=gLa(f);h[0]&&(Ik(b,zx,2,CO,h[1]),c++)}var l=a.genre;if(l){var m=hLa(l);m[0]&&(Ik(b,yx,3,CO,m[1]),c++)}var n=a.track;if(n){var p=JKa(n);p[0]&&(Ik(b,Cx,4,CO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
  3965. fLa=function(a){var b=new xx,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3966. gLa=function(a){var b=new zx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,iLa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3967. hLa=function(a){var b=new yx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,jLa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3968. JKa=function(a){var b=new Cx,c=0;try{var d=a.artTrackId;void 0!==d&&(Q(b,1,d),c++);var e=a.assetId;void 0!==e&&(Q(b,2,e),c++);var f=a.details;if(f){var h=new tma;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(Hk(b,tma,3,d[1]),c++)}var m=a.parent;if(m){var n=KKa(m);n[0]&&(Hk(b,Bx,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
  3969. KKa=function(a){var b=new Bx,c=0;try{var d=a.featuredCollection;if(d){var e=fLa(d);e[0]&&(Ik(b,xx,1,DO,e[1]),c++)}var f=a.mood;if(f){var h=gLa(f);h[0]&&(Ik(b,zx,2,DO,h[1]),c++)}var l=a.genre;if(l){var m=hLa(l);m[0]&&(Ik(b,yx,3,DO,m[1]),c++)}var n=a.section;if(n){a:{var p=new Ax;d=0;try{var q=n.type;void 0!==q&&(S(p,1,kLa[q]),d++);var r=[d===Object.keys(n).length,p];break a}catch(v){Y(v);r=[!1,void 0];break a}}n=r;n[0]&&(Ik(b,Ax,4,DO,n[1]),c++)}var t=a.dimension;void 0!==t&&(S(b,5,lLa[t]),c++);return[c===
  3970. Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}};
  3971. QKa=function(a){var b=new Xx,c=0;try{var d=a.attachLoggingExpectations;if(d){a:{var e=new Ox,f=0;try{var h=d.attachScreenExpectations;h&&(tO(e.j.bind(e),h,mLa),f++);var l=[f===Object.keys(d).length,e];break a}catch(r){Y(r);l=[!1,void 0];break a}}d=l;d[0]&&(Hk(b,Ox,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){a:{var n=new Wx;d=0;try{var p=m.expectedParentScreens;p&&(tO(n.j.bind(n),p,mLa),d++);var q=[d===Object.keys(m).length,n];break a}catch(r){Y(r);q=[!1,void 0];break a}}m=q;m[0]&&
  3972. (Hk(b,Wx,2,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}};
  3973. mLa=function(a){var b=new Nx,c=0;try{var d=a.screenVeType;void 0!==d&&(Kma(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3974. UKa=function(a){var b=new Gx,c=0;try{var d=a.taggingSource;void 0!==d&&(S(b,1,nLa[d]),c++);var e=a.id;if(e){a:{var f=new Fx;d=0;try{var h=e.docid;void 0!==h&&(Xk(f,1,h),d++);var l=[d===Object.keys(e).length,f];break a}catch(A){Y(A);l=[!1,void 0];break a}}e=l;e[0]&&(Hk(b,Fx,2,e[1]),c++)}var m=a.skuId;if(m){a:{var n=new vma;e=0;try{var p=m.merchantId;void 0!==p&&(ik(n,1,oLa,Mi(p)),e++);var q=m.youtubeGroupId;void 0!==q&&(ik(n,2,oLa,ij(q)),e++);var r=m.rawMerchantOfferId;void 0!==r&&(Q(n,3,r),e++);var t=
  3975. [e===Object.keys(m).length,n];break a}catch(A){Y(A);t=[!1,void 0];break a}}m=t;m[0]&&(Hk(b,vma,3,m[1]),c++)}var v=a.userInputUrl;void 0!==v&&(Q(b,4,v),c++);var w=a.userSearchQuery;void 0!==w&&(Q(b,5,w),c++);return[c===Object.keys(a).length,b]}catch(A){return Y(A),[!1,void 0]}};
  3976. VKa=function(a){var b=new Hx,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.products;e&&(tO(b.j.bind(b),e,UKa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  3977. rLa=function(a){var b=new Zy,c=0;try{var d=a.segments;d&&(tO(b.j.bind(b),d,pLa),c++);var e=a.transitions;e&&(tO(b.B.bind(b),e,qLa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  3978. pLa=function(a){var b=new Xy,c=0;try{var d=a.type;void 0!==d&&(S(b,1,sLa[d]),c++);var e=a.effects;e&&(tO(b.K6.bind(b),e,tLa),c++);var f=a.videoInfo;if(f){var h=uLa(f);h[0]&&(Hk(b,Wy,3,h[1]),c++)}var l=a.audioInfo;if(l){a:{var m=new una;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(Wk(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(Uk(m,2,p),d++);var q=l.channelCount;void 0!==q&&(Uk(m,3,q),d++);var r=l.isRemote;void 0!==r&&(Tk(m,4,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(F){Y(F);t=[!1,
  3979. void 0];break a}}l=t;l[0]&&(Hk(b,una,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(Wk(b,5,v),c++);var w=a.durationMs;void 0!==w&&(Xk(b,6,w),c++);var A=a.playbackRate;void 0!==A&&(b.setPlaybackRate(A),c++);var D=a.enabled;void 0!==D&&(b.setEnabled(D),c++);return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
  3980. tLa=function(a){var b=new vna,c=0;try{var d=a.effectBaseName;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  3981. uLa=function(a){var b=new Wy,c=0;try{var d=a.resolutionWidth;void 0!==d&&(Uk(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(Uk(b,2,e),c++);var f=a.frameRate;void 0!==f&&(Yk(b,3,f),c++);var h=a.durationMs;void 0!==h&&(Xk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  3982. qLa=function(a){var b=new Yy,c=0;try{var d=a.incomingSegment;if(d){var e=pLa(d);e[0]&&(Hk(b,Xy,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=pLa(f);h[0]&&(Hk(b,Xy,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(Xk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
  3983. vLa=function(a){var b=new sna,c=0;try{var d=a.previewWidth;void 0!==d&&(Uk(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(Uk(b,2,e),c++);var f=a.fps;void 0!==f&&(Uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  3984. xMa=function(a){var b=new Pz,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.cotn;void 0!==e&&(Q(b,20,e),c++);var f=a.cpn;void 0!==f&&(Q(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(S(b,38,wLa[h]),c++);var l=a.statusType;void 0!==l&&(S(b,2,xLa[l]),c++);var m=a.failureReason;void 0!==m&&(S(b,3,yLa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(S(b,41,zLa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(Q(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(Wk(b,4,
  3985. q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(Wk(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(Wk(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(Wk(b,22,v),c++);var w=a.fetchedFromCacheKbytes;void 0!==w&&(Wk(b,23,w),c++);var A=a.systemHealth;if(A){a:{var D=new zz,F=0;try{var H=A.tag;void 0!==H&&(S(D,1,ALa[H]),F++);var L=A.staticContext;if(L){b:{var M=new Ena,R=0;try{var ea=L.displayDensityDpi;void 0!==ea&&(Uk(M,1,ea),R++);var la=L.heightPixels;void 0!==la&&(Uk(M,2,la),R++);var ka=
  3986. L.widthPixels;void 0!==ka&&(Uk(M,3,ka),R++);var ia=L.memoryTotalKbytes;void 0!==ia&&(Wk(M,4,ia),R++);var sa=L.osSdkVersion;void 0!==sa&&(Uk(M,5,sa),R++);var aa=L.osIncrementalVersion;void 0!==aa&&(Q(M,6,aa),R++);var U=L.hardwareArchitecture;void 0!==U&&(Q(M,7,U),R++);var Ha=L.appVersionCode;void 0!==Ha&&(Uk(M,8,Ha),R++);var x=L.devicePixelRatio;void 0!==x&&(Yk(M,9,x),R++);var ba=L.buildFingerprint;void 0!==ba&&(Q(M,10,ba),R++);var La=L.socManufacturer;void 0!==La&&(Q(M,11,La),R++);var ab=L.socModel;
  3987. void 0!==ab&&(Q(M,12,ab),R++);var lb=L.availableProcessors;void 0!==lb&&(Uk(M,13,lb),R++);var Qa=L.cpuCores;void 0!==Qa&&(Uk(M,14,Qa),R++);var Ua=L.heightPoints;void 0!==Ua&&(Uk(M,15,Ua),R++);var jb=L.widthPoints;void 0!==jb&&(Uk(M,16,jb),R++);var rb=L.androidMediaPerformanceClass;void 0!==rb&&(Uk(M,17,rb),R++);var pb=[R===Object.keys(L).length,M];break b}catch(ob){Y(ob);pb=[!1,void 0];break b}}var B=pb;B[0]&&(Hk(D,Ena,2,B[1]),F++)}var C=A.dynamicContext;if(C){b:{var E=new tz,J=0;try{var K=C.screenOn;
  3988. void 0!==K&&(Tk(E,1,K),J++);var ca=C.deviceRotation;void 0!==ca&&(Uk(E,2,ca),J++);var ta=C.networkType;void 0!==ta&&(Uk(E,3,ta),J++);var na=C.networkCoarseState;void 0!==na&&(Uk(E,4,na),J++);var O=C.chargingStatus;void 0!==O&&(S(E,5,BLa[O]),J++);var Z=C.isInForeground;void 0!==Z&&(Tk(E,6,Z),J++);var ya=C.viewportHeightPixels;void 0!==ya&&(Uk(E,7,ya),J++);var xa=C.viewportWidthPixels;void 0!==xa&&(Uk(E,8,xa),J++);var Za=C.hasCoarsePointer;void 0!==Za&&(Tk(E,9,Za),J++);var Wa=C.hasFinePointer;void 0!==
  3989. Wa&&(Tk(E,10,Wa),J++);var zb=C.hasHoverSupport;void 0!==zb&&(Tk(E,11,zb),J++);var Rb=C.deviceFreeStorageMbytes;void 0!==Rb&&(Wk(E,12,Rb),J++);var eb=C.deviceStorageQuotaMbytes;void 0!==eb&&(Wk(E,13,eb),J++);var Ub=C.deviceStorageUsageMbytes;void 0!==Ub&&(Wk(E,14,Ub),J++);var hc=C.processUptimeMs;void 0!==hc&&(Wk(E,15,hc),J++);var Dc=C.hasAppShell;void 0!==Dc&&(Tk(E,16,Dc),J++);var Zb=C.glVersion;void 0!==Zb&&(Q(E,17,Zb),J++);var vc=C.glRenderer;void 0!==vc&&(Q(E,18,vc),J++);var Wc=C.srsDatapushBuildIds;
  3990. Wc&&(tO(E.B.bind(E),Wc,CLa),J++);var Sc=C.playerDatapushBuildIds;Sc&&(tO(E.j.bind(E),Sc,DLa),J++);var Ec=C.creationContext;if(Ec){c:{var Fc=new sz,Xb=0;try{var yd=Ec.activeFrontendUploadId;void 0!==yd&&(Q(Fc,1,yd),Xb++);var fd=Ec.inShortsCreation;void 0!==fd&&(Tk(Fc,2,fd),Xb++);var fc=Ec.activeEffectLoggingIds;fc&&(tO(Fc.j.bind(Fc),fc,ELa),Xb++);var $b=Ec.activePages;void 0!==$b&&(uO(Fc.B.bind(Fc),$b,FLa),Xb++);var Gc=[Xb===Object.keys(Ec).length,Fc];break c}catch(ob){Y(ob);Gc=[!1,void 0];break c}}var Jb=
  3991. Gc;Jb[0]&&(Hk(E,sz,21,Jb[1]),J++)}var ad=C.kimonoContext;if(ad){c:{var sd=new Cna,Pb=0;try{var de=ad.cobaltUserAgent;void 0!==de&&(Q(sd,1,de),Pb++);var Rd=ad.webAppVersion;void 0!==Rd&&(Q(sd,2,Rd),Pb++);var Sd=ad.cobaltVersion;void 0!==Sd&&(Q(sd,3,Sd),Pb++);var Ae=ad.webAppInterface;void 0!==Ae&&(S(sd,4,GLa[Ae]),Pb++);var Be=ad.clientDocumentNonce;void 0!==Be&&(Q(sd,5,Be),Pb++);var Jd=ad.applicationState;void 0!==Jd&&(S(sd,6,HLa[Jd]),Pb++);var pf=[Pb===Object.keys(ad).length,sd];break c}catch(ob){Y(ob);
  3992. pf=[!1,void 0];break c}}var Oe=pf;Oe[0]&&(Hk(E,Cna,22,Oe[1]),J++)}var Kd=[J===Object.keys(C).length,E];break b}catch(ob){Y(ob);Kd=[!1,void 0];break b}Kd=void 0}var Ef=Kd;Ef[0]&&(Hk(D,tz,3,Ef[1]),F++)}var Td=A.serializedPrimesMetric;void 0!==Td&&($k(D,4,Td),F++);var ee=A.serializedIosPrimesMetric;void 0!==ee&&($k(D,6,ee),F++);var Ld=A.webMetric;if(Ld){b:{var zd=new Gna,bd=0;try{var Md=Ld.currentHeapKbytes;void 0!==Md&&(Uk(zd,1,Md),bd++);var Ze=Ld.navigationCount;void 0!==Ze&&(Uk(zd,2,Ze),bd++);var qf=
  3993. [bd===Object.keys(Ld).length,zd];break b}catch(ob){Y(ob);qf=[!1,void 0];break b}}var Xf=qf;Xf[0]&&(Hk(D,Gna,7,Xf[1]),F++)}var se=A.crashData;if(se){b:{var rc=new qz,Pe=0;try{var Vh=se.stackTrace;void 0!==Vh&&(Q(rc,1,Vh),Pe++);var ie=se.screenVeType;void 0!==ie&&(Uk(rc,2,ie),Pe++);var ph=se.compactStackTrace;if(ph){var Ni=EO(ph);Ni[0]&&(Hk(rc,My,3,Ni[1]),Pe++)}var sf=se.crashTimeMs;void 0!==sf&&(Wk(rc,4,sf),Pe++);var df=se.clientError;if(df){c:{var te=new pz,ai=0;try{var uc=df.errorMetadata;if(uc){d:{var wc=
  3994. new fz,Hc=0;try{var vj=uc.exceptionCategory;void 0!==vj&&(S(wc,1,ILa[vj]),Hc++);var If=uc.serviceTrackingData;if(If){e:{var Qg=new qna,sg=0;try{var Oi=If.innertubeBuildChangelist;void 0!==Oi&&(Wk(Qg,1,Oi),sg++);var bi=If.innertubeBuildExperimentsSourceVersion;void 0!==bi&&(Wk(Qg,2,bi),sg++);var Pi=If.innertubeBuildLabel;void 0!==Pi&&(Q(Qg,3,Pi),sg++);var tf=If.innertubeBuildTimestampSec;void 0!==tf&&(Wk(Qg,4,tf),sg++);var hd=If.innertubeBuildVariantsChecksum;void 0!==hd&&(Q(Qg,5,hd),sg++);var uf=
  3995. If.innertubeJobName;void 0!==uf&&(Q(Qg,6,uf),sg++);var ci=[sg===Object.keys(If).length,Qg];break e}catch(ob){Y(ob);ci=[!1,void 0];break e}}var ef=ci;ef[0]&&(Hk(wc,qna,2,ef[1]),Hc++)}var $f=uc.pageUrl;void 0!==$f&&(Q(wc,3,$f),Hc++);var ag=uc.kvPairs;ag&&(tO(wc.j.bind(wc),ag,JLa),Hc++);var di=uc.experimentIds;di&&(tO(wc.B.bind(wc),di),Hc++);var Jf=uc.playerMetadata;if(Jf){e:{var tg=new dz,qh=0;try{var Rg=Jf.error;void 0!==Rg&&(uO(tg.j.bind(tg),Rg,KLa),qh++);var ug=Jf.stackTrace;void 0!==ug&&(Q(tg,2,
  3996. ug),qh++);var ue=[qh===Object.keys(Jf).length,tg];break e}catch(ob){Y(ob);ue=[!1,void 0];break e}}var Se=ue;Se[0]&&(Hk(wc,dz,6,Se[1]),Hc++)}var je=uc.exceptionType;void 0!==je&&(S(wc,7,LLa[je]),Hc++);var rh=uc.clientScreenNonce;void 0!==rh&&(Q(wc,8,rh),Hc++);var ff=uc.blocksMethodExecutionInfo;if(ff){e:{var gf=new pna,Kf=0;try{var bg=ff.methodId;void 0!==bg&&(Vk(gf,1,bg),Kf++);var Sg=ff.blockTypeId;void 0!==Sg&&(Vk(gf,2,Sg),Kf++);var ke=ff.methodType;void 0!==ke&&(S(gf,3,MLa[ke]),Kf++);var vg=ff.requestSize;
  3997. void 0!==vg&&(Vk(gf,4,vg),Kf++);var Lf=ff.responseSize;void 0!==Lf&&(Vk(gf,5,Lf),Kf++);var Qi=ff.statusCode;void 0!==Qi&&(Vk(gf,6,Qi),Kf++);var sh=ff.containerId;void 0!==sh&&(Vk(gf,7,sh),Kf++);var fm=ff.moduleIdentifier;void 0!==fm&&(Q(gf,8,fm),Kf++);var gm=ff.datapushBuildId;void 0!==gm&&(Xk(gf,9,gm),Kf++);var kk=ff.attribution;void 0!==kk&&(S(gf,10,NLa[kk]),Kf++);var lk=[Kf===Object.keys(ff).length,gf];break e}catch(ob){Y(ob);lk=[!1,void 0];break e}}var wj=lk;wj[0]&&(Hk(wc,pna,9,wj[1]),Hc++)}var Te=
  3998. uc.mediaEngineMetadata;if(Te){e:{var De=new g.bz,Yd=0;try{var Tg=Te.client;void 0!==Tg&&(De.Rx(OLa[Tg]),Yd++);var ei=Te.mdeErrorType;void 0!==ei&&(S(De,2,PLa[ei]),Yd++);var hm=Te.uploadId;void 0!==hm&&(Q(De,3,hm),Yd++);var il=Te.composition;il&&(tO(De.H6.bind(De),il,rLa),Yd++);var xj=Te.player;if(xj){f:{var th=new $y,Ug=0;try{var hf=xj.state;void 0!==hf&&(th.Gc(QLa[hf]),Ug++);var fi=xj.playbackPositionTimeMs;void 0!==fi&&(Wk(th,2,fi),Ug++);var mk=[Ug===Object.keys(xj).length,th];break f}catch(ob){Y(ob);
  3999. mk=[!1,void 0];break f}}var jl=mk;jl[0]&&(Hk(De,$y,5,jl[1]),Yd++)}var gi=Te.exporter;if(gi){f:{var Ri=new Vy,Vg=0;try{var wg=gi.settings;if(wg){g:{var hi=new Uy,ii=0;try{var nk=wg.audioChannelCount;void 0!==nk&&(Uk(hi,1,nk),ii++);var kl=wg.resolutionWidth;void 0!==kl&&(Uk(hi,2,kl),ii++);var ok=wg.resolutionHeight;void 0!==ok&&(Uk(hi,3,ok),ii++);var Si=[ii===Object.keys(wg).length,hi];break g}catch(ob){Y(ob);Si=[!1,void 0];break g}}var im=Si;im[0]&&(Ri.ph(im[1]),Vg++)}var vf=gi.state;void 0!==vf&&
  4000. (Ri.Gc(RLa[vf]),Vg++);var cg=gi.durationMs;void 0!==cg&&(Xk(Ri,3,cg),Vg++);var Mf=gi.progressMs;void 0!==Mf&&(Xk(Ri,4,Mf),Vg++);var Nf=[Vg===Object.keys(gi).length,Ri];break f}catch(ob){Y(ob);Nf=[!1,void 0];break f}Nf=void 0}var ll=Nf;ll[0]&&(Hk(De,Vy,6,ll[1]),Yd++)}var jm=Te.projectId;void 0!==jm&&(Q(De,7,jm),Yd++);var mc=Te.deviceInfo;if(mc){f:{var ip=new Ty,yj=0;try{var ml=mc.audioOutputLatencyMs;void 0!==ml&&(Uk(ip,1,ml),yj++);var ji=[yj===Object.keys(mc).length,ip];break f}catch(ob){Y(ob);ji=
  4001. [!1,void 0];break f}}var jp=ji;jp[0]&&(Hk(De,Ty,8,jp[1]),Yd++)}var zj=Te.preprocessor;if(zj){f:{var nl=new g.az,km=0;try{var tn=zj.originalVideo;if(tn){var lm=uLa(tn);lm[0]&&(Hk(nl,Wy,1,lm[1]),km++)}var ol=zj.processedVideo;if(ol){var kp=uLa(ol);kp[0]&&(Hk(nl,Wy,2,kp[1]),km++)}var mm=[km===Object.keys(zj).length,nl];break f}catch(ob){Y(ob);mm=[!1,void 0];break f}mm=void 0}var un=mm;un[0]&&(Hk(De,g.az,9,un[1]),Yd++)}var vn=Te.clientSurface;void 0!==vn&&(S(De,10,SLa[vn]),Yd++);var wn=[Yd===Object.keys(Te).length,
  4002. De];break e}catch(ob){Y(ob);wn=[!1,void 0];break e}wn=void 0}var Aj=wn;Aj[0]&&(Hk(wc,g.bz,10,Aj[1]),Hc++)}var ki=uc.cameraMetadata;if(ki){e:{var Wg=new Sy,pk=0;try{var cr=ki.uploadFrontendId;void 0!==cr&&(Q(Wg,1,cr),pk++);var xn=ki.cameraApiClient;void 0!==xn&&(S(Wg,2,TLa[xn]),pk++);var dr=ki.cameraConfigs;dr&&(tO(Wg.j.bind(Wg),dr,vLa),pk++);var lp=ki.canFindCamera;void 0!==lp&&(Tk(Wg,4,lp),pk++);var yn=[pk===Object.keys(ki).length,Wg];break e}catch(ob){Y(ob);yn=[!1,void 0];break e}}var er=yn;er[0]&&
  4003. (Hk(wc,Sy,11,er[1]),Hc++)}var Xg=uc.miniAppMetadata;if(Xg){e:{var Ti=new cz,li=0;try{var fr=Xg.externalPostId;void 0!==fr&&(Q(Ti,1,fr),li++);var xg=Xg.postPlayNonce;void 0!==xg&&(Q(Ti,2,xg),li++);var Zd=Xg.localReleaseId;void 0!==Zd&&(Uk(Ti,3,Zd),li++);var Ee=Xg.source;void 0!==Ee&&(S(Ti,4,ULa[Ee]),li++);var zn=Xg.sdkErrorType;void 0!==zn&&(S(Ti,5,VLa[zn]),li++);var An=Xg.sdkApi;void 0!==An&&(S(Ti,6,WLa[An]),li++);var gr=Xg.sdkVersion;void 0!==gr&&(Q(Ti,7,gr),li++);var Bn=Xg.rpcErrorCode;void 0!==
  4004. Bn&&(Uk(Ti,8,Bn),li++);var nm=[li===Object.keys(Xg).length,Ti];break e}catch(ob){Y(ob);nm=[!1,void 0];break e}}var pl=nm;pl[0]&&(Hk(wc,cz,12,pl[1]),Hc++)}var hr=uc.appVersionCode;void 0!==hr&&(Uk(wc,13,hr),Hc++);var Ui=uc.hatsMetadata;if(Ui){e:{var Vi=new rna,qk=0;try{var ql=Ui.hatsSessionId;void 0!==ql&&(Q(Vi,1,ql),qk++);var rl=Ui.csn;void 0!==rl&&(Q(Vi,2,rl),qk++);var om=Ui.hatsTriggerId;void 0!==om&&(Q(Vi,3,om),qk++);var mp=Ui.hatsStatus;void 0!==mp&&(S(Vi,4,XLa[mp]),qk++);var np=[qk===Object.keys(Ui).length,
  4005. Vi];break e}catch(ob){Y(ob);np=[!1,void 0];break e}}var op=np;op[0]&&(Hk(wc,rna,14,op[1]),Hc++)}var Cn=uc.reelPlaybackError;if(Cn){e:{var Dn=new wna,pp=0;try{var yg=Cn.reelPlaybackContext;if(yg){f:{var mi=new ez,pc=0;try{var uh=yg.videoId;void 0!==uh&&(mi.setVideoId(uh),pc++);var qp=yg.playlistId;void 0!==qp&&(Q(mi,2,qp),pc++);var pm=yg.playlistIndex;void 0!==pm&&(Vk(mi,3,pm),pc++);var qm=yg.cpn;void 0!==qm&&(Q(mi,4,qm),pc++);var sl=yg.playerType;void 0!==sl&&(S(mi,5,YLa[sl]),pc++);var rp=yg.audioFmt;
  4006. void 0!==rp&&(Uk(mi,6,rp),pc++);var sp=yg.videoFmt;void 0!==sp&&(Uk(mi,7,sp),pc++);var tp=[pc===Object.keys(yg).length,mi];break f}catch(ob){Y(ob);tp=[!1,void 0];break f}}var Bj=tp;Bj[0]&&(Hk(Dn,ez,1,Bj[1]),pp++)}var Wi=Cn.errorType;void 0!==Wi&&(S(Dn,2,ZLa[Wi]),pp++);var rk=[pp===Object.keys(Cn).length,Dn];break e}catch(ob){Y(ob);rk=[!1,void 0];break e}rk=void 0}var rm=rk;rm[0]&&(Hk(wc,wna,15,rm[1]),Hc++)}var sm=[Hc===Object.keys(uc).length,wc];break d}catch(ob){Y(ob);sm=[!1,void 0];break d}sm=void 0}var up=
  4007. sm;up[0]&&(Hk(te,fz,1,up[1]),ai++)}var sk=df.stackTrace;if(sk){d:{var Cj=new nz,tk=0;try{var En=sk.isObfuscated;void 0!==En&&(Tk(Cj,1,En),tk++);var ir=sk.androidStackInfo;if(ir){var vp=$La(ir);vp[0]&&(Ik(Cj,gz,2,LE,vp[1]),tk++)}var tl=sk.browserStackInfo;if(tl){e:{var ul=new hz,ni=0;try{var wp=tl.stackTrace;void 0!==wp&&(Q(ul,1,wp),ni++);var xp=tl.lineNumber;void 0!==xp&&(Uk(ul,2,xp),ni++);var yp=tl.columnNumber;void 0!==yp&&(Uk(ul,3,yp),ni++);var Fn=tl.filename;void 0!==Fn&&(Q(ul,4,Fn),ni++);var tm=
  4008. [ni===Object.keys(tl).length,ul];break e}catch(ob){Y(ob);tm=[!1,void 0];break e}}var uk=tm;uk[0]&&(Ik(Cj,hz,3,LE,uk[1]),tk++)}var vl=sk.iosStackInfo;if(vl){e:{var Gn=new xna,um=0;try{var zp=vl.stackTrace;void 0!==zp&&(Q(Gn,1,zp),um++);var Ap=vl.compactStackTrace;if(Ap){var Bp=EO(Ap);Bp[0]&&(Hk(Gn,My,2,Bp[1]),um++)}var wl=[um===Object.keys(vl).length,Gn];break e}catch(ob){Y(ob);wl=[!1,void 0];break e}wl=void 0}var xl=wl;xl[0]&&(Ik(Cj,xna,4,LE,xl[1]),tk++)}var zg=sk.multiLanguageStackInfo;if(zg){e:{var vh=
  4009. new mz,oi=0;try{var jf=zg.languageStackTraces;jf&&(tO(vh.j.bind(vh),jf,aMa),oi++);var Hn=[oi===Object.keys(zg).length,vh];break e}catch(ob){Y(ob);Hn=[!1,void 0];break e}}var Cp=Hn;Cp[0]&&(Ik(Cj,mz,5,LE,Cp[1]),tk++)}var In=[tk===Object.keys(sk).length,Cj];break d}catch(ob){Y(ob);In=[!1,void 0];break d}In=void 0}var yl=In;yl[0]&&(Hk(te,nz,2,yl[1]),ai++)}var Ag=df.logMessage;if(Ag){d:{var Bg=new oz,vk=0;try{var Dp=Ag.message;void 0!==Dp&&(Q(Bg,1,Dp),vk++);var wk=Ag.level;void 0!==wk&&(S(Bg,2,bMa[wk]),
  4010. vk++);var Dj=Ag.errorClassName;void 0!==Dj&&(Q(Bg,3,Dj),vk++);var zl=Ag.sourceMethodName;void 0!==zl&&(Q(Bg,4,zl),vk++);var vm=Ag.sampleWeight;void 0!==vm&&(Uk(Bg,6,vm),vk++);var Jn=[vk===Object.keys(Ag).length,Bg];break d}catch(ob){Y(ob);Jn=[!1,void 0];break d}}var Ep=Jn;Ep[0]&&(Hk(te,oz,3,Ep[1]),ai++)}var Fp=[ai===Object.keys(df).length,te];break c}catch(ob){Y(ob);Fp=[!1,void 0];break c}Fp=void 0}var wm=Fp;wm[0]&&(Hk(rc,pz,5,wm[1]),Pe++)}var Al=[Pe===Object.keys(se).length,rc];break b}catch(ob){Y(ob);
  4011. Al=[!1,void 0];break b}Al=void 0}var Bl=Al;Bl[0]&&(Hk(D,qz,9,Bl[1]),F++)}var Gp=A.delayedEventMetrics;Gp&&(tO(D.j.bind(D),Gp,fKa),F++);var Cl=A.iosBatteryMetric;if(Cl){b:{var Kn=new nna,Ln=0;try{var Mn=Cl.sampleDurationMs;void 0!==Mn&&(Wk(Kn,1,Mn),Ln++);var ft=Cl.startSample;if(ft){var xm=cMa(ft);xm[0]&&(Hk(Kn,Ny,2,xm[1]),Ln++)}var Hp=Cl.endSample;if(Hp){var Ip=cMa(Hp);Ip[0]&&(Hk(Kn,Ny,3,Ip[1]),Ln++)}var Jp=[Ln===Object.keys(Cl).length,Kn];break b}catch(ob){Y(ob);Jp=[!1,void 0];break b}Jp=void 0}var Nn=
  4012. Jp;Nn[0]&&(Hk(D,nna,11,Nn[1]),F++)}var ym=A.androidBatteryMetric;if(ym){b:{var Dl=new ina,On=0;try{var Pn=ym.sampleDurationMs;void 0!==Pn&&(Wk(Dl,1,Pn),On++);var Kp=ym.startSample;if(Kp){var Qn=dMa(Kp);Qn[0]&&(Hk(Dl,Iy,2,Qn[1]),On++)}var jr=ym.endSample;if(jr){var Lp=dMa(jr);Lp[0]&&(Hk(Dl,Iy,3,Lp[1]),On++)}var Rn=[On===Object.keys(ym).length,Dl];break b}catch(ob){Y(ob);Rn=[!1,void 0];break b}Rn=void 0}var kr=Rn;kr[0]&&(Hk(D,ina,12,kr[1]),F++)}var le=A.webApiSupport;if(le){b:{var ve=new Fna,Fe=0;try{var Sn=
  4013. le.intersectionObserverPresent;void 0!==Sn&&(Tk(ve,1,Sn),Fe++);var Tn=le.indexedDbPresent;void 0!==Tn&&(Tk(ve,2,Tn),Fe++);var Mp=le.serviceWorkerPresent;void 0!==Mp&&(Tk(ve,3,Mp),Fe++);var lr=le.webSharePresent;void 0!==lr&&(Tk(ve,4,lr),Fe++);var Np=le.fullScreenApiPresent;void 0!==Np&&(Tk(ve,5,Np),Fe++);var Op=le.cacheStoragePresent;void 0!==Op&&(Tk(ve,6,Op),Fe++);var Pp=le.storageEstimatePresent;void 0!==Pp&&(Tk(ve,7,Pp),Fe++);var Xi=le.storagePersistPresent;void 0!==Xi&&(Tk(ve,8,Xi),Fe++);var wh=
  4014. le.webkitTemporaryStoragePresent;void 0!==wh&&(Tk(ve,9,wh),Fe++);var pi=le.idb2Present;void 0!==pi&&(Tk(ve,10,pi),Fe++);var Qp=le.promiseRejectionEventPresent;void 0!==Qp&&(Tk(ve,11,Qp),Fe++);var mr=le.subtleCryptoPresent;void 0!==mr&&(Tk(ve,12,mr),Fe++);var zm=le.broadcastChannelPresent;void 0!==zm&&(Tk(ve,13,zm),Fe++);var Am=le.webLocksApiPresent;void 0!==Am&&(Tk(ve,14,Am),Fe++);var Bm=le.supportsP3Color;void 0!==Bm&&(Tk(ve,15,Bm),Fe++);var Rp=le.supportsRec2020Color;void 0!==Rp&&(Tk(ve,16,Rp),
  4015. Fe++);var Ej=[Fe===Object.keys(le).length,ve];break b}catch(ob){Y(ob);Ej=[!1,void 0];break b}}var Cm=Ej;Cm[0]&&(Hk(D,Fna,13,Cm[1]),F++)}var Yi=A.cpuProfiling;if(Yi){b:{var Un=new Qy,Vn=0;try{var Sp=Yi.profilingSamples;if(Sp){var nr=EO(Sp);nr[0]&&(Hk(Un,My,1,nr[1]),Vn++)}var Zi=Yi.config;if(Zi){c:{var El=new ona,Fj=0;try{var or=Zi.profilingIntervalSec;void 0!==or&&(Yk(El,1,or),Fj++);var Wn=Zi.profilingDurationSec;void 0!==Wn&&(Yk(El,2,Wn),Fj++);var Tp=Zi.timerType;void 0!==Tp&&(S(El,3,eMa[Tp]),Fj++);
  4016. var Xn=Zi.profilingStartTimeSec;void 0!==Xn&&(Yk(El,4,Xn),Fj++);var pr=Zi.fractionOfRunsToSample;void 0!==pr&&(Yk(El,5,pr),Fj++);var Yn=[Fj===Object.keys(Zi).length,El];break c}catch(ob){Y(ob);Yn=[!1,void 0];break c}}var Up=Yn;Up[0]&&(Un.setConfig(Up[1]),Vn++)}var xk=[Vn===Object.keys(Yi).length,Un];break b}catch(ob){Y(ob);xk=[!1,void 0];break b}xk=void 0}var Fl=xk;Fl[0]&&(Hk(D,Qy,14,Fl[1]),F++)}var Dm=A.stallStackTrace;if(Dm){var qr=EO(Dm);qr[0]&&(Hk(D,My,15,qr[1]),F++)}var Yg=A.memoryUsage;if(Yg){b:{var Of=
  4017. new vz,dg=0;try{var rr=Yg.totalMemoryUsageBytes;void 0!==rr&&(Wk(Of,1,rr),dg++);var yk=Yg.classMemoryUsage;yk&&(tO(Of.j.bind(Of),yk,fMa),dg++);var $i=Yg.config;if($i){c:{var xh=new Dna,eg=0;try{var Cg=$i.maxStartTimeSec;void 0!==Cg&&(Wk(xh,1,Cg),eg++);var qi=$i.durationTimeSec;void 0!==qi&&(Wk(xh,2,qi),eg++);var gt=$i.intervalSec;void 0!==gt&&(Wk(xh,3,gt),eg++);var Zg=$i.maxLogCount;void 0!==Zg&&(Wk(xh,4,Zg),eg++);var sr=$i.fractionOfRunsToSample;void 0!==sr&&(Yk(xh,5,sr),eg++);var Vp=[eg===Object.keys($i).length,
  4018. xh];break c}catch(ob){Y(ob);Vp=[!1,void 0];break c}}var zk=Vp;zk[0]&&(Of.setConfig(zk[1]),dg++)}var tr=Yg.processUptimeMs;void 0!==tr&&(Wk(Of,4,tr),dg++);var yh=Yg.foregroundUptimeMs;void 0!==yh&&(Wk(Of,8,yh),dg++);var Zn=Yg.viewAllocation;Zn&&(tO(Of.C.bind(Of),Zn,fMa),dg++);var Wp=Yg.entityStoreCount;void 0!==Wp&&(Uk(Of,6,Wp),dg++);var ht=Yg.entityStoreBytes;void 0!==ht&&(Wk(Of,7,ht),dg++);var Xp=Yg.emlTemplateStoreBytes;void 0!==Xp&&(Wk(Of,10,Xp),dg++);var ur=Yg.jsVmStatistics;ur&&(tO(Of.B.bind(Of),
  4019. ur,gMa),dg++);var $n=[dg===Object.keys(Yg).length,Of];break b}catch(ob){Y(ob);$n=[!1,void 0];break b}$n=void 0}var vr=$n;vr[0]&&(Hk(D,vz,16,vr[1]),F++)}var Em=A.networkEvents;Em&&(tO(D.B.bind(D),Em,hMa),F++);var zh=A.threadUtilization;if(zh){b:{var Gj=new yz,Ak=0;try{var Hj=zh.userJourney;void 0!==Hj&&(Q(Gj,1,Hj),Ak++);var Yp=zh.type;void 0!==Yp&&(S(Gj,2,iMa[Yp]),Ak++);var Fm=zh.threadPoolStats;Fm&&(tO(Gj.j.bind(Gj),Fm,jMa),Ak++);var it=zh.totalThreadCount;void 0!==it&&(Uk(Gj,4,it),Ak++);var jt=zh.statsGenerateDurationMs;
  4020. void 0!==jt&&(Wk(Gj,5,jt),Ak++);var Ij=[Ak===Object.keys(zh).length,Gj];break b}catch(ob){Y(ob);Ij=[!1,void 0];break b}}var aj=Ij;aj[0]&&(Hk(D,yz,18,aj[1]),F++)}var Ah=A.androidBackgroundTask;if(Ah){b:{var Bk=new Oy,Ck=0;try{var Dk=Ah.tag;void 0!==Dk&&(Q(Bk,1,Dk),Ck++);var wr=Ah.isKnownTask;void 0!==wr&&(Tk(Bk,2,wr),Ck++);var kt=Ah.result;void 0!==kt&&(S(Bk,3,kMa[kt]),Ck++);var Zp=Ah.durationMs;void 0!==Zp&&(Wk(Bk,4,Zp),Ck++);var $p=[Ck===Object.keys(Ah).length,Bk];break b}catch(ob){Y(ob);$p=[!1,
  4021. void 0];break b}}var Gl=$p;Gl[0]&&(Hk(D,Oy,19,Gl[1]),F++)}var bj=A.distributiveProfilingSpan;if(bj){b:{var cj=new rz,Gm=0;try{var xr=bj.spanId;void 0!==xr&&(S(cj,1,lMa[xr]),Gm++);var aq=bj.sampleRate;void 0!==aq&&(Yk(cj,2,aq),Gm++);var ao=bj.spanDurationMs;void 0!==ao&&(Wk(cj,3,ao),Gm++);var yr=bj.sampleFailureCount;void 0!==yr&&(Uk(cj,4,yr),Gm++);var bo=bj.sample;bo&&(tO(cj.Oi.bind(cj),bo,mMa),Gm++);var bq=[Gm===Object.keys(bj).length,cj];break b}catch(ob){Y(ob);bq=[!1,void 0];break b}}var cq=bq;
  4022. cq[0]&&(Hk(D,rz,20,cq[1]),F++)}var Hl=A.appExitInfo;if(Hl){b:{var kf=new Py,ri=0;try{var dj=Hl.reason;void 0!==dj&&(S(kf,1,nMa[dj]),ri++);var co=Hl.status;void 0!==co&&(Uk(kf,2,co),ri++);var lv=Hl.importance;void 0!==lv&&(Uk(kf,3,lv),ri++);var Px=Hl.description;void 0!==Px&&(Q(kf,4,Px),ri++);var mv=[ri===Object.keys(Hl).length,kf];break b}catch(ob){Y(ob);mv=[!1,void 0];break b}}var nv=mv;nv[0]&&(Hk(D,Py,21,nv[1]),F++)}var ov=[F===Object.keys(A).length,D];break a}catch(ob){Y(ob);ov=[!1,void 0];break a}ov=
  4023. void 0}var lt=ov;lt[0]&&(Hk(b,zz,6,lt[1]),c++)}var Qx=a.detailedNetworkType;void 0!==Qx&&(S(b,7,FO[Qx]),c++);var zr=a.isAd;void 0!==zr&&(Tk(b,8,zr),c++);var mt=a.offlineModeType;void 0!==mt&&(S(b,9,oMa[mt]),c++);var Ar=a.storageFormat;void 0!==Ar&&(S(b,24,pMa[Ar]),c++);var Rx=a.offlineSourceVeType;void 0!==Rx&&(Uk(b,32,Rx),c++);var nt=a.listId;void 0!==nt&&(Q(b,10,nt),c++);var Br=a.offlineabilityFormatType;void 0!==Br&&(S(b,11,qMa[Br]),c++);var ot=a.offlineAudioQuality;void 0!==ot&&(S(b,29,rMa[ot]),
  4024. c++);var Sx=a.softErrorCount;void 0!==Sx&&(Uk(b,12,Sx),c++);var pv=a.pendingStateFlags;void 0!==pv&&(Vk(b,13,pv),c++);var qv=a.unusedOfflineVideoPendingState;void 0!==qv&&(S(b,14,sMa[qv]),c++);var Tx=a.isRefresh;void 0!==Tx&&(Tk(b,15,Tx),c++);var rv=a.isNewPlayerResponse;void 0!==rv&&(Tk(b,16,rv),c++);var Ux=a.isOfflineShareable;void 0!==Ux&&(Tk(b,17,Ux),c++);var tv=a.hasContentVerificationSignature;void 0!==tv&&(Tk(b,18,tv),c++);var Vx=a.isOfflineInterleaving;void 0!==Vx&&(Tk(b,19,Vx),c++);var Pa=
  4025. a.blockSizeBytes;void 0!==Pa&&(Uk(b,25,Pa),c++);var aO=a.streamVerificationStrategy;void 0!==aO&&(S(b,26,GO[aO]),c++);var bO=a.streamVerificationFailedBlocks;bO&&(tO(b.j.bind(b),bO,tMa),c++);var BB=a.spacecastInfo;if(BB){a:{var CB=new noa,EG=0;try{var DB=BB.applianceId;void 0!==DB&&(Q(CB,1,DB),EG++);var FG=BB.transferredFromCache;void 0!==FG&&(S(CB,2,uMa[FG]),EG++);var EB=[EG===Object.keys(BB).length,CB];break a}catch(ob){Y(ob);EB=[!1,void 0];break a}}var cO=EB;cO[0]&&(Hk(b,noa,28,cO[1]),c++)}var GG=
  4026. a.transferType;void 0!==GG&&(S(b,33,vMa[GG]),c++);var dO=a.onlyDownloadOnWifi;void 0!==dO&&(Tk(b,34,dO),c++);var eO=a.appLifecycleStatus;void 0!==eO&&(S(b,35,wMa[eO]),c++);var HG=a.isDefaultDownloadToSdCard;void 0!==HG&&(Tk(b,36,HG),c++);var fO=a.serializedLoggingParams;void 0!==fO&&($k(b,39,fO),c++);var gO=a.transferServiceStartedFromBackground;void 0!==gO&&(Tk(b,40,gO),c++);var uv=a.transferFirstStarted;void 0!==uv&&(Tk(b,42,uv),c++);return[c===Object.keys(a).length,b]}catch(ob){return Y(ob),[!1,
  4027. void 0]}};
  4028. CLa=function(a){var b=new Mma,c=0;try{var d=a.datapushBuild;if(d){var e=yMa(d);e[0]&&(Hk(b,$x,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4029. yMa=function(a){var b=new $x,c=0;try{var d=a.buildId;void 0!==d&&(Wk(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(Uk(b,2,e),c++);var f=a.accessType;void 0!==f&&(S(b,3,zMa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  4030. DLa=function(a){var b=new Lma,c=0;try{var d=a.datapushBuild;if(d){var e=yMa(d);e[0]&&(Hk(b,$x,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4031. ELa=function(a){var b=new Ana,c=0;try{var d=a.assetLoggingId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  4032. EO=function(a){var b=new My,c=0;try{var d=a.stackTraces;d&&(tO(b.B.bind(b),d,AMa),c++);var e=a.allModules;e&&(tO(b.j.bind(b),e,BMa),c++);var f=a.appVersionCode;void 0!==f&&(Uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  4033. AMa=function(a){var b=new Ly,c=0;try{var d=a.mainThread;if(d){var e=CMa(d);e[0]&&(Hk(b,Ky,1,e[1]),c++)}var f=a.backgroundThreads;f&&(tO(b.j.bind(b),f,CMa),c++);var h=a.metaData;h&&(tO(b.B.bind(b),h,DMa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  4034. CMa=function(a){var b=new Ky,c=0;try{var d=a.stackFrames;d&&(tO(b.j.bind(b),d,EMa),c++);var e=a.androidStack;void 0!==e&&(Q(b,6,e),c++);var f=a.threadName;void 0!==f&&(Q(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(Yk(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(Wk(b,4,l),c++);var m=a.iosThreadInfo;if(m){a:{var n=new Jy;d=0;try{var p=m.state;void 0!==p&&(n.Gc(FMa[p]),d++);var q=m.flag;void 0!==q&&(S(n,2,GMa[q]),d++);var r=m.currentPriority;void 0!==r&&(Uk(n,3,r),d++);var t=m.priority;void 0!==t&&(Uk(n,
  4035. 4,t),d++);var v=m.maxPriority;void 0!==v&&(Uk(n,5,v),d++);var w=m.isCrashedThread;void 0!==w&&(Tk(n,6,w),d++);var A=[d===Object.keys(m).length,n];break a}catch(D){Y(D);A=[!1,void 0];break a}}m=A;m[0]&&(Hk(b,Jy,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(D){return Y(D),[!1,void 0]}};
  4036. EMa=function(a){var b=new lna,c=0;try{var d=a.instructionOffset;void 0!==d&&(Wk(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4037. DMa=function(a){var b=new kna,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(Wk(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(Yk(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(Uk(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(Uk(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(S(b,5,HMa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(Wk(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(Wk(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(Yk(b,8,p),c++);var q=a.exceptionName;
  4038. void 0!==q&&(Q(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(Q(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(Uk(b,11,t),c++);var v=a.signalCode;void 0!==v&&(Uk(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
  4039. BMa=function(a){var b=new jna,c=0;try{var d=a.moduleUuid;void 0!==d&&($k(b,1,d),c++);var e=a.moduleName;void 0!==e&&(Q(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(Wk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  4040. JLa=function(a){var b=new Ry,c=0;try{var d=a.key;void 0!==d&&(Q(b,1,d),c++);var e=a.value;void 0!==e&&(Q(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4041. $La=function(a){var b=new gz,c=0;try{var d=a.serializedThrowable;void 0!==d&&($k(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  4042. aMa=function(a){var b=new yna,c=0;try{var d=a.jsStack;if(d){a:{var e=new lz,f=0;try{var h=d.stackTrace;h&&(tO(e.j.bind(e),h,IMa),f++);var l=d.moduleSetVersion;void 0!==l&&(Xk(e,4,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(w){Y(w);m=[!1,void 0];break a}}d=m;d[0]&&(Ik(b,lz,1,JMa,d[1]),c++)}var n=a.javaStack;if(n){var p=$La(n);p[0]&&(Ik(b,gz,2,JMa,p[1]),c++)}var q=a.ccStack;if(q){a:{var r=new jz;n=0;try{var t=q.stackTrace;t&&(tO(r.j.bind(r),t,KMa),n++);var v=[n===Object.keys(q).length,
  4043. r];break a}catch(w){Y(w);v=[!1,void 0];break a}}q=v;q[0]&&(Ik(b,jz,3,JMa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
  4044. IMa=function(a){var b=new kz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Uk(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(Uk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  4045. KMa=function(a){var b=new iz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  4046. cMa=function(a){var b=new Ny,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Uk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,FO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Yk(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(Tk(b,4,h),c++);var l=a.isBackground;void 0!==l&&(Tk(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(Tk(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(Tk(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(Tk(b,8,p),c++);return[c===
  4047. Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
  4048. dMa=function(a){var b=new Iy,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Uk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,FO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Uk(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(S(b,4,LMa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(S(b,5,MMa[l]),c++);var m=a.batteryHealth;void 0!==m&&(S(b,6,NMa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  4049. fMa=function(a){var b=new uz,c=0;try{var d=a.className;void 0!==d&&(Q(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(Wk(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(Wk(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(Wk(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(Wk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
  4050. gMa=function(a){var b=new Qma,c=0;try{var d=a.v8Stats;if(d){a:{var e=new Pma,f=0;try{var h=d.totalHeapSize;void 0!==h&&(Xk(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(Xk(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(Xk(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(Xk(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(Xk(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(Xk(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(Xk(e,7,r),f++);var t=d.heapSizeLimit;void 0!==
  4051. t&&(Xk(e,8,t),f++);var v=d.mallocedMemory;void 0!==v&&(Xk(e,9,v),f++);var w=d.externalMemory;void 0!==w&&(Xk(e,10,w),f++);var A=d.peakMallocedMemory;void 0!==A&&(Xk(e,11,A),f++);var D=d.numberOfNativeContexts;void 0!==D&&(Xk(e,12,D),f++);var F=d.numberOfDetachedContexts;void 0!==F&&(Xk(e,13,F),f++);var H=[f===Object.keys(d).length,e];break a}catch(aa){Y(aa);H=[!1,void 0];break a}}d=H;d[0]&&(Ik(b,Pma,1,OMa,d[1]),c++)}var L=a.quickjsStats;if(L){a:{var M=new Oma;d=0;try{var R=L.mallocSize;void 0!==R&&
  4052. (Xk(M,1,R),d++);var ea=L.mallocLimit;void 0!==ea&&(Xk(M,2,ea),d++);var la=L.memoryUsedSize;void 0!==la&&(Xk(M,3,la),d++);var ka=L.mallocCount;void 0!==ka&&(Xk(M,4,ka),d++);var ia=L.memoryUsedCount;void 0!==ia&&(Xk(M,5,ia),d++);var sa=[d===Object.keys(L).length,M];break a}catch(aa){Y(aa);sa=[!1,void 0];break a}}L=sa;L[0]&&(Ik(b,Oma,2,OMa,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}};
  4053. hMa=function(a){var b=new xz,c=0;try{var d=a.index;void 0!==d&&(Wk(b,1,d),c++);var e=a.networkEventType;void 0!==e&&(S(b,2,PMa[e]),c++);var f=a.path;void 0!==f&&(Q(b,3,f),c++);var h=a.failureReason;void 0!==h&&(S(b,4,QMa[h]),c++);var l=a.startTimeMs;void 0!==l&&(Wk(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(Wk(b,6,m),c++);var n=a.requestSize;void 0!==n&&(Wk(b,7,n),c++);var p=a.responseSize;void 0!==p&&(Wk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(tO(b.j.bind(b),q,RMa),c++);var r=a.httpMethod;
  4054. void 0!==r&&(S(b,10,SMa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
  4055. RMa=function(a){var b=new wz,c=0;try{var d=a.failureReason;void 0!==d&&(S(b,1,QMa[d]),c++);var e=a.startTimeMs;void 0!==e&&(Wk(b,5,e),c++);var f=a.durationMs;void 0!==f&&(Wk(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(S(b,3,TMa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  4056. jMa=function(a){var b=new Hna,c=0;try{var d=a.threadPoolName;void 0!==d&&(Q(b,1,d),c++);var e=a.threadCount;void 0!==e&&(Uk(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(Uk(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(Uk(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(Wk(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(Wk(b,6,m),c++);var n=a.runCount;void 0!==n&&(Wk(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(Uk(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
  4057. mMa=function(a){var b=new zna,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(Wk(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(Yk(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(Wk(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(Wk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=EO(l);m[0]&&(Hk(b,My,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  4058. tMa=function(a){var b=new ooa,c=0;try{var d=a.itag;void 0!==d&&(Uk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Wk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4059. $Ma=function(a){var b=new yA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoState;void 0!==e&&(S(b,2,UMa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(Vk(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(Wk(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(Wk(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(S(b,5,qMa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(S(b,6,oMa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(Wk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
  4060. q&&(Wk(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(Wk(b,9,r),c++);var t=a.durationInS;void 0!==t&&(Wk(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(Tk(b,11,v),c++);var w=a.addedNetworkType;void 0!==w&&(S(b,12,FO[w]),c++);var A=a.downloadCompletedNetworkType;void 0!==A&&(S(b,13,FO[A]),c++);var D=a.captions;D&&(tO(b.j.bind(b),D,VMa),c++);var F=a.unusedOfflineVideoPendingState;void 0!==F&&(S(b,15,sMa[F]),c++);var H=a.lastPlaybackTimestampMs;void 0!==H&&(Wk(b,16,H),c++);var L=a.offlineSuspendedStates;
  4061. L&&(tO(b.B.bind(b),L,WMa),c++);var M=a.streamInLocalStorage;void 0!==M&&(Tk(b,18,M),c++);var R=a.streamInInternalStorage;void 0!==R&&(Tk(b,19,R),c++);var ea=a.storageIdStates;if(ea){a:{var la=new ppa;d=0;try{var ka=ea.storageId;void 0!==ka&&(Vk(la,1,ka),d++);var ia=ea.storageIdSourceType;void 0!==ia&&(S(la,2,XMa[ia]),d++);var sa=[d===Object.keys(ea).length,la];break a}catch(ya){Y(ya);sa=[!1,void 0];break a}}ea=sa;ea[0]&&(Hk(b,ppa,20,ea[1]),c++)}var aa=a.cotn;void 0!==aa&&(Q(b,22,aa),c++);var U=a.additionalVideoClientState;
  4062. if(U){a:{var Ha=new mpa;aa=0;try{var x=U.musicAppAdditionalVideoClientState;if(x){b:{var ba=new lpa;ea=0;try{var La=x.episodePublishedTimeMs;void 0!==La&&(Wk(ba,1,La),ea++);var ab=[ea===Object.keys(x).length,ba];break b}catch(ya){Y(ya);ab=[!1,void 0];break b}}x=ab;x[0]&&(Hk(Ha,lpa,1,x[1]),aa++)}var lb=[aa===Object.keys(U).length,Ha];break a}catch(ya){Y(ya);lb=[!1,void 0];break a}lb=void 0}U=lb;U[0]&&(Hk(b,mpa,23,U[1]),c++)}var Qa=a.offlineVideoEntityMigrationState;if(Qa){a:{var Ua=new xA;U=0;try{var jb=
  4063. Qa.isInOfflineStore;void 0!==jb&&(Tk(Ua,1,jb),U++);var rb=Qa.isPlaybackDataEntityPresent;void 0!==rb&&(Tk(Ua,2,rb),U++);var pb=Qa.wasPlaybackDataEntityUsedToFillVideoState;void 0!==pb&&(Tk(Ua,3,pb),U++);var B=Qa.isTransferEntityPresent;void 0!==B&&(Tk(Ua,4,B),U++);var C=Qa.wasTransferEntityUsedToFillVideoState;void 0!==C&&(Tk(Ua,5,C),U++);var E=Qa.offlineStoreCaptionTrackCount;void 0!==E&&(Uk(Ua,6,E),U++);var J=Qa.entityStoreCaptionTrackCount;void 0!==J&&(Uk(Ua,7,J),U++);var K=Qa.isMetadataEntityPresent;
  4064. void 0!==K&&(Tk(Ua,8,K),U++);var ca=Qa.transferDiffFields;void 0!==ca&&(uO(Ua.j.bind(Ua),ca,YMa),U++);var ta=[U===Object.keys(Qa).length,Ua];break a}catch(ya){Y(ya);ta=[!1,void 0];break a}}Qa=ta;Qa[0]&&(Hk(b,xA,24,Qa[1]),c++)}var na=a.lastProgressTimeMs;void 0!==na&&(Wk(b,25,na),c++);var O=a.initialProgressTimeMs;void 0!==O&&(Wk(b,26,O),c++);var Z=a.offlinePlaybackDisabledReason;void 0!==Z&&(S(b,27,ZMa[Z]),c++);return[c===Object.keys(a).length,b]}catch(ya){return Y(ya),[!1,void 0]}};
  4065. VMa=function(a){var b=new npa,c=0;try{var d=a.format;void 0!==d&&(Uk(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4066. WMa=function(a){var b=new opa,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(Wk(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(Wk(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(Wk(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(Wk(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(Uk(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(Vk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
  4067. bNa=function(a){var b=new wA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoIds;e&&(tO(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(Uk(b,3,f),c++);var h=a.successCount;void 0!==h&&(Uk(b,4,h),c++);var l=a.failCount;void 0!==l&&(Uk(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(Uk(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(Uk(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(Uk(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(S(b,9,qMa[q]),c++);var r=a.isPlaylistOwner;void 0!==
  4068. r&&(Tk(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(Wk(b,11,t),c++);var v=a.requestSource;void 0!==v&&(S(b,12,aNa[v]),c++);var w=a.additionalPlaylistClientState;if(w){a:{var A=new kpa;d=0;try{var D=w.musicAppAdditionalPlaylistClientState;if(D){b:{var F=new jpa;e=0;try{var H=D.isPodcastShow;void 0!==H&&(Tk(F,1,H),e++);var L=[e===Object.keys(D).length,F];break b}catch(R){Y(R);L=[!1,void 0];break b}}D=L;D[0]&&(Hk(A,jpa,1,D[1]),d++)}var M=[d===Object.keys(w).length,A];break a}catch(R){Y(R);M=[!1,
  4069. void 0];break a}M=void 0}w=M;w[0]&&(Hk(b,kpa,13,w[1]),c++)}return[c===Object.keys(a).length,b]}catch(R){return Y(R),[!1,void 0]}};
  4070. eNa=function(a){var b=new sA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(Vk(b,6,e),c++);var f=a.failureReason;void 0!==f&&(S(b,2,cNa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(Tk(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(S(b,4,cNa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(Xk(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(S(b,7,GO[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(Uk(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
  4071. q&&(tO(b.j.bind(b),q,dNa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(S(b,10,GO[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(S(b,11,GO[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(S(b,12,cNa[v]),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
  4072. dNa=function(a){var b=new gpa,c=0;try{var d=a.itag;void 0!==d&&(Uk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Wk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4073. fNa=function(a){var b=new uA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(Wk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4074. gNa=function(a){var b=new hpa,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.videoSid;void 0!==e&&(Wk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4075. oNa=function(a){var b=new uy,c=0;try{var d=a.opportunityData;if(d){a:{var e=new $ma,f=0;try{var h=d.debugData;if(h){b:{var l=new qy,m=0;try{var n=h.slots;n&&(tO(l.j.bind(l),n,hNa),m++);var p=h.associatedSlotId;void 0!==p&&(Q(l,2,p),m++);var q=[m===Object.keys(h).length,l];break b}catch(Xb){Y(Xb);q=[!1,void 0];break b}}h=q;h[0]&&(Hk(e,qy,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(S(e,3,iNa[r]),f++);var t=[f===Object.keys(d).length,e];break a}catch(Xb){Y(Xb);t=[!1,void 0];break a}t=void 0}d=
  4076. t;d[0]&&(Hk(b,$ma,1,d[1]),c++)}var v=a.slotData;if(v){var w=hNa(v);w[0]&&(Hk(b,py,2,w[1]),c++)}var A=a.layoutData;if(A){a:{var D=new ny;v=0;try{var F=A.type;void 0!==F&&(S(D,2,jNa[F]),v++);var H=A.debugData;if(H){b:{var L=new my;F=0;try{var M=H.layoutId;void 0!==M&&(Q(L,1,M),F++);var R=H.exitNormalTriggerData;R&&(tO(L.P6.bind(L),R,HO),F++);var ea=H.exitSkipTriggerData;ea&&(tO(L.Q6.bind(L),ea,HO),F++);var la=H.exitMuteTriggerData;la&&(tO(L.O6.bind(L),la,HO),F++);var ka=H.exitUserInputSubmittedTriggerData;
  4077. ka&&(tO(L.S6.bind(L),ka,HO),F++);var ia=H.exitUserCancelledTriggerData;ia&&(tO(L.R6.bind(L),ia,HO),F++);var sa=[F===Object.keys(H).length,L];break b}catch(Xb){Y(Xb);sa=[!1,void 0];break b}}H=sa;H[0]&&(Hk(D,my,3,H[1]),v++)}var aa=A.controlFlowManagerLayer;void 0!==aa&&(S(D,4,kNa[aa]),v++);var U=A.pingTriggerTypes;void 0!==U&&(uO(D.j.bind(D),U,IO),v++);var Ha=[v===Object.keys(A).length,D];break a}catch(Xb){Y(Xb);Ha=[!1,void 0];break a}Ha=void 0}A=Ha;A[0]&&(Hk(b,ny,3,A[1]),c++)}var x=a.triggerData;if(x){var ba=
  4078. HO(x);ba[0]&&(Hk(b,ly,4,ba[1]),c++)}var La=a.pingData;if(La){a:{var ab=new ty;x=0;try{var lb=La.sourceTriggerType;void 0!==lb&&(S(ab,1,IO[lb]),x++);var Qa=La.debugData;Qa&&(tO(ab.j.bind(ab),Qa,lNa),x++);var Ua=La.pingCount;void 0!==Ua&&(Uk(ab,3,Ua),x++);var jb=La.pingDispatchStatus;void 0!==jb&&(S(ab,4,mNa[jb]),x++);var rb=La.serializedAdPingMetadata;void 0!==rb&&($k(ab,5,rb),x++);var pb=La.pingDebugData;if(pb){b:{var B=new sy;lb=0;try{var C=pb.substitutedMacros;void 0!==C&&(uO(B.j.bind(B),C,nNa),
  4079. lb++);var E=pb.unsubstitutedMacros;void 0!==E&&(uO(B.B.bind(B),E,nNa),lb++);var J=[lb===Object.keys(pb).length,B];break b}catch(Xb){Y(Xb);J=[!1,void 0];break b}}pb=J;pb[0]&&(Hk(ab,sy,6,pb[1]),x++)}var K=La.pingIndex;void 0!==K&&(Uk(ab,8,K),x++);var ca=[x===Object.keys(La).length,ab];break a}catch(Xb){Y(Xb);ca=[!1,void 0];break a}ca=void 0}La=ca;La[0]&&(Hk(b,ty,6,La[1]),c++)}var ta=a.externalContext;if(ta){a:{var na=new Xma;La=0;try{var O=ta.organicPlaybackContext;if(O){b:{var Z=new ky;ca=0;try{var ya=
  4080. O.contentCpn;void 0!==ya&&(Q(Z,1,ya),ca++);var xa=O.isLivePlayback;void 0!==xa&&(Tk(Z,2,xa),ca++);var Za=O.isOfflinePlayback;void 0!==Za&&(Tk(Z,3,Za),ca++);var Wa=O.isMdxPlayback;void 0!==Wa&&(Tk(Z,4,Wa),ca++);var zb=O.isDaiContent;void 0!==zb&&(Tk(Z,5,zb),ca++);var Rb=O.isPrefetchedPlayback;void 0!==Rb&&(Tk(Z,6,Rb),ca++);var eb=[ca===Object.keys(O).length,Z];break b}catch(Xb){Y(Xb);eb=[!1,void 0];break b}}O=eb;O[0]&&(Hk(na,ky,1,O[1]),La++)}var Ub=ta.html5ExperimentContext;if(Ub){b:{var hc=new Wma;
  4081. O=0;try{var Dc=Ub.ytExperimentId;void 0!==Dc&&(Uk(hc,1,Dc),O++);var Zb=[O===Object.keys(Ub).length,hc];break b}catch(Xb){Y(Xb);Zb=[!1,void 0];break b}}Ub=Zb;Ub[0]&&(Hk(na,Wma,2,Ub[1]),La++)}var vc=ta.adVideoPlaybackContext;if(vc){b:{var Wc=new Vma;Ub=0;try{var Sc=vc.adVideoCpn;void 0!==Sc&&(Q(Wc,1,Sc),Ub++);var Ec=[Ub===Object.keys(vc).length,Wc];break b}catch(Xb){Y(Xb);Ec=[!1,void 0];break b}}vc=Ec;vc[0]&&(Hk(na,Vma,3,vc[1]),La++)}var Fc=[La===Object.keys(ta).length,na];break a}catch(Xb){Y(Xb);Fc=
  4082. [!1,void 0];break a}Fc=void 0}ta=Fc;ta[0]&&(Hk(b,Xma,5,ta[1]),c++)}return[c===Object.keys(a).length,b]}catch(Xb){return Y(Xb),[!1,void 0]}};
  4083. hNa=function(a){var b=new py,c=0;try{var d=a.type;void 0!==d&&(S(b,2,pNa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(S(b,6,IO[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(Uk(b,8,f),c++);var h=a.debugData;if(h){a:{var l=new oy;d=0;try{var m=h.slotId;void 0!==m&&(Q(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(uO(l.B.bind(l),n,IO),d++);var p=h.unscheduledDueToError;void 0!==p&&(Tk(l,3,p),d++);var q=h.entryTriggerData;q&&(tO(l.j.bind(l),q,HO),d++);var r=h.slotEntryTriggerData;if(r){var t=
  4084. HO(r);t[0]&&(Hk(l,ly,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(tO(l.D.bind(l),v,HO),d++);var w=h.expirationTriggerData;w&&(tO(l.C.bind(l),w,HO),d++);var A=[d===Object.keys(h).length,l];break a}catch(H){Y(H);A=[!1,void 0];break a}A=void 0}h=A;h[0]&&(Hk(b,oy,3,h[1]),c++)}var D=a.externallyManaged;void 0!==D&&(Tk(b,4,D),c++);var F=a.controlFlowManagerLayer;void 0!==F&&(S(b,5,kNa[F]),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}};
  4085. HO=function(a){var b=new ly,c=0;try{var d=a.type;void 0!==d&&(S(b,1,IO[d]),c++);var e=a.category;void 0!==e&&(S(b,2,qNa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){a:{var h=new Yma;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(Q(h,1,l),d++);var m=[d===Object.keys(f).length,h];break a}catch(w){Y(w);m=[!1,void 0];break a}}f=m;f[0]&&(Ik(b,Yma,3,rNa,f[1]),c++)}var n=a.triggerSourceData;if(n){a:{var p=new Zma;f=0;try{var q=n.associatedSlotId;void 0!==q&&(ik(p,1,sNa,ij(q)),f++);var r=n.associatedLayoutId;
  4086. void 0!==r&&(ik(p,2,sNa,ij(r)),f++);var t=[f===Object.keys(n).length,p];break a}catch(w){Y(w);t=[!1,void 0];break a}}n=t;n[0]&&(Ik(b,Zma,4,rNa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(Tk(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
  4087. lNa=function(a){var b=new ry,c=0;try{var d=a.macros;void 0!==d&&(uO(b.j.bind(b),d,nNa),c++);var e=a.success;void 0!==e&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4088. uNa=function(a){var b=new Sma,c=0;try{var d=a.cui;if(d){var e=new Rma;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(Hk(b,Rma,1,d[1]),c++)}var h=a.step;void 0!==h&&(S(b,2,tNa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  4089. vNa=function(a){var b=new Gy,c=0;try{var d=a.startMs;void 0!==d&&(Yk(b,1,d),c++);var e=a.endMs;void 0!==e&&(Yk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4090. wNa=function(a){var b=new ana,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(Wk(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(Wk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
  4091. xNa=function(a){var b=new Nz,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  4092. yNa=function(a){var b=new Vz,c=0;try{var d=a.answerId;void 0!==d&&(Uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
  4093. BNa=function(a){var b=new Rz,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(S(b,1,zNa[d]),c++);var e=a.useCase;void 0!==e&&(S(b,2,ANa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
  4094. GNa=function(a){var b=new $z,c=0;try{var d=a.itemId;if(d){a:{var e=new iy,f=0;try{var h=d.type;void 0!==h&&(S(e,1,JO[h]),f++);var l=d.externalId;void 0!==l&&(Q(e,2,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(D){Y(D);m=[!1,void 0];break a}}d=m;d[0]&&(Hk(b,iy,1,d[1]),c++)}var n=a.productType;void 0!==n&&(S(b,2,KO[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(S(b,4,GLa[p]),c++);var q=a.alcLoggingParams;if(q){a:{var r=new Ioa;n=0;try{var t=q.purchaseOriginEntityType;void 0!==
  4095. t&&(S(r,1,CNa[t]),n++);var v=q.purchaseOriginPageType;void 0!==v&&(S(r,2,DNa[v]),n++);var w=q.purchaseOriginComponent;void 0!==w&&(S(r,3,ENa[w]),n++);var A=[n===Object.keys(q).length,r];break a}catch(D){Y(D);A=[!1,void 0];break a}}q=A;q[0]&&(Ik(b,Ioa,3,FNa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(D){return Y(D),[!1,void 0]}};
  4096. jOa=function(a){var b=new Dz,c=0;try{var d=a.dimensions;if(d){a:{var e=new Qna,f=0;try{var h=d.csn;void 0!==h&&(Q(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(Uk(e,2,l),f++);var m=d.studio;if(m){b:{var n=new Bz,p=0;try{var q=m.route;void 0!==q&&(Q(n,1,q),p++);var r=m.feature;void 0!==r&&(S(n,2,HNa[r]),p++);var t=m.topEntityType;void 0!==t&&(S(n,3,INa[t]),p++);var v=m.availability;void 0!==v&&(S(n,4,JNa[v]),p++);var w=m.isChannelDelegation;void 0!==w&&(Tk(n,5,w),p++);var A=m.isArtistDelegation;
  4097. void 0!==A&&(Tk(n,6,A),p++);var D=m.environment;void 0!==D&&(S(n,7,KNa[D]),p++);var F=m.networkConnectionStatus;void 0!==F&&(S(n,8,LNa[F]),p++);var H=[p===Object.keys(m).length,n];break b}catch(rc){Y(rc);H=[!1,void 0];break b}}var L=H;L[0]&&(Hk(e,Bz,3,L[1]),f++)}var M=d.mweb;if(M){b:{var R=new Nna,ea=0;try{var la=M.pageType;void 0!==la&&(S(R,1,MNa[la]),ea++);var ka=M.navType;void 0!==ka&&(S(R,2,NNa[ka]),ea++);var ia=[ea===Object.keys(M).length,R];break b}catch(rc){Y(rc);ia=[!1,void 0];break b}}var sa=
  4098. ia;sa[0]&&(Hk(e,Nna,4,sa[1]),f++)}var aa=d.mainAppWeb;if(aa){b:{var U=new Mna,Ha=0;try{var x=aa.pageType;void 0!==x&&(S(U,1,ONa[x]),Ha++);var ba=aa.requestType;void 0!==ba&&(S(U,2,PNa[ba]),Ha++);var La=aa.isShellLoad;void 0!==La&&(Tk(U,3,La),Ha++);var ab=[Ha===Object.keys(aa).length,U];break b}catch(rc){Y(rc);ab=[!1,void 0];break b}}var lb=ab;lb[0]&&(Hk(e,Mna,5,lb[1]),f++)}var Qa=d.survivalSli;if(Qa){b:{var Ua=new Kna,jb=0;try{var rb=Qa.partitionMinute;void 0!==rb&&(Uk(Ua,1,rb),jb++);var pb=Qa.survivalStatus;
  4099. void 0!==pb&&(S(Ua,2,QNa[pb]),jb++);var B=Qa.survivalSessionType;void 0!==B&&(S(Ua,3,RNa[B]),jb++);var C=[jb===Object.keys(Qa).length,Ua];break b}catch(rc){Y(rc);C=[!1,void 0];break b}}var E=C;E[0]&&(Hk(e,Kna,6,E[1]),f++)}var J=d.tvhtml5;if(J){b:{var K=new Ona,ca=0;try{var ta=J.authRefreshTokenFailureType;void 0!==ta&&(S(K,1,SNa[ta]),ca++);var na=J.networkErrorEndpoint;void 0!==na&&(S(K,2,TNa[na]),ca++);var O=J.networkErrorResponseCode;void 0!==O&&(Uk(K,3,O),ca++);var Z=J.sessionSurvivalLengthMin;
  4100. void 0!==Z&&(Uk(K,4,Z),ca++);var ya=J.accountChangeType;void 0!==ya&&(S(K,5,UNa[ya]),ca++);var xa=J.accountChangeTrigger;void 0!==xa&&(S(K,6,VNa[xa]),ca++);var Za=J.cpn;void 0!==Za&&(Q(K,7,Za),ca++);var Wa=J.sessionSurvivalDidUserAgentChange;void 0!==Wa&&(Tk(K,8,Wa),ca++);var zb=J.adShownToPremiumUserCondition;void 0!==zb&&(S(K,9,WNa[zb]),ca++);var Rb=J.identityType;void 0!==Rb&&(S(K,10,XNa[Rb]),ca++);var eb=J.identityDelegationType;void 0!==eb&&(S(K,11,YNa[eb]),ca++);var Ub=J.botguardServerEnvironment;
  4101. void 0!==Ub&&(S(K,12,ZNa[Ub]),ca++);var hc=J.accountEventTrigger;void 0!==hc&&(S(K,13,$Na[hc]),ca++);var Dc=J.signInMethodType;void 0!==Dc&&(S(K,14,aOa[Dc]),ca++);var Zb=J.accountEventErrorType;void 0!==Zb&&(S(K,15,bOa[Zb]),ca++);var vc=J.hadRemoteDeviceConnected;void 0!==vc&&(Tk(K,16,vc),ca++);var Wc=J.hadVoiceInitiatedPlayback;void 0!==Wc&&(Tk(K,17,Wc),ca++);var Sc=J.restartLengthMin;void 0!==Sc&&(Uk(K,18,Sc),ca++);var Ec=J.restartReason;void 0!==Ec&&(S(K,19,cOa[Ec]),ca++);var Fc=J.numberOfPersonaAccountsDelta;
  4102. void 0!==Fc&&(Uk(K,20,Fc),ca++);var Xb=J.accountEventCancellationType;void 0!==Xb&&(S(K,21,dOa[Xb]),ca++);var yd=J.maxJsMemoryPerAppLifecycleBytes;void 0!==yd&&(Uk(K,22,yd),ca++);var fd=J.appLifecycleLengthMin;void 0!==fd&&(Uk(K,23,fd),ca++);var fc=[ca===Object.keys(J).length,K];break b}catch(rc){Y(rc);fc=[!1,void 0];break b}}var $b=fc;$b[0]&&(Hk(e,Ona,7,$b[1]),f++)}var Gc=d.unpluggedWeb;if(Gc){b:{var Jb=new Pna,ad=0;try{var sd=Gc.unpluggedWebEntitlementType;void 0!==sd&&(S(Jb,1,eOa[sd]),ad++);var Pb=
  4103. Gc.unpluggedWebPurchaseType;void 0!==Pb&&(S(Jb,2,fOa[Pb]),ad++);var de=[ad===Object.keys(Gc).length,Jb];break b}catch(rc){Y(rc);de=[!1,void 0];break b}}var Rd=de;Rd[0]&&(Hk(e,Pna,8,Rd[1]),f++)}var Sd=d.logEventStatus;void 0!==Sd&&(Uk(e,9,Sd),f++);var Ae=d.kids;if(Ae){b:{var Be=new Lna,Jd=0;try{var pf=Ae.userType;void 0!==pf&&(S(Be,1,gOa[pf]),Jd++);var Oe=[Jd===Object.keys(Ae).length,Be];break b}catch(rc){Y(rc);Oe=[!1,void 0];break b}}var Kd=Oe;Kd[0]&&(Hk(e,Lna,10,Kd[1]),f++)}var Ef=d.screen;void 0!==
  4104. Ef&&(Uk(e,11,Ef),f++);var Td=d.navigation;if(Td){b:{var ee=new Jna,Ld=0;try{var zd=Td.destinationScreen;void 0!==zd&&(Uk(ee,1,zd),Ld++);var bd=Td.navType;void 0!==bd&&(S(ee,2,hOa[bd]),Ld++);var Md=[Ld===Object.keys(Td).length,ee];break b}catch(rc){Y(rc);Md=[!1,void 0];break b}}var Ze=Md;Ze[0]&&(Hk(e,Jna,12,Ze[1]),f++)}var qf=[f===Object.keys(d).length,e];break a}catch(rc){Y(rc);qf=[!1,void 0];break a}qf=void 0}var Xf=qf;Xf[0]&&(Hk(b,Qna,1,Xf[1]),c++)}var se=a.records;se&&(tO(b.j.bind(b),se,iOa),c++);
  4105. return[c===Object.keys(a).length,b]}catch(rc){return Y(rc),[!1,void 0]}};
  4106. iOa=function(a){var b=new Cz,c=0;try{var d=a.name;void 0!==d&&(S(b,1,kOa[d]),c++);var e=a.status;void 0!==e&&(S(b,2,lOa[e]),c++);var f=a.state;void 0!==f&&(b.Gc(mOa[f]),c++);var h=a.sliId;void 0!==h&&(Q(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
  4107. LO=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
  4108. MO=function(){LO.instance||(LO.instance=new LO);return LO.instance};
  4109. NO=function(){};
  4110. OO=function(){this.N=[];this.Z=[];this.j=[];this.ra=[];this.G=[];this.Y=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ca=new Map};
  4111. PO=function(){OO.instance||(OO.instance=new OO);return OO.instance};
  4112. QO=function(a,b,c,d){d=void 0===d?{}:d;g.JA(function(){nOa.includes(b)||(g.JE(new g.eC("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.kX?oOa(a,b,c,d):pOa(a,b,c,d)})()};
  4113. qOa=function(a,b,c){c=void 0===c?0:c;g.JA(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.FE(c),f=g.EE(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.RE(a.client,e,f,g.DE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.RE(a.client,e,f,g.DE(d.playerResponse.trackingParams))}})})()};
  4114. SO=function(a){var b=PO();g.JA(function(){var c=g.DE(a);RO(b,c);return c})()};
  4115. RO=function(a,b,c,d){d=void 0===d?0:d;g.JA(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.FE(d),f=c||g.EE(d);if(e&&f){if(g.aB("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.jC(0,function(){rOa(a,e)},1200))}else g.RE(a.client,e,f,b);
  4116. return!0}return!1})()};
  4117. sOa=function(a,b,c,d){d=void 0===d?0:d;var e=g.FE(d);d=b||g.EE(d);e&&d&&(a=a.client,b=PE({cttAuthInfo:GE(e)||void 0},e),g.aB("il_via_jspb")?(c=new lA,c.j(e),d=d.getAsJspb(),Hk(c,Hz,2,d),"UNDEFINED_CSN"===e?TE("visualElementStateChanged",b,void 0,c):Uva(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?TE("visualElementStateChanged",b,c):a?xE("visualElementStateChanged",c,a,b):g.qC("visualElementStateChanged",c,b)))};
  4118. oOa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){pOa(a,b,c,d);var h=g.EE(d.layer);if(h){for(var l=g.u(a.N),m=l.next();!m.done;m=l.next())m=m.value,RO(a,m[0],m[1]||h,d.layer);h=g.u(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,sOa(a,l[0],l[1])}};
  4119. c||g.FE(d.layer)||a.D();if(d.kX)for(var e=g.u(d.kX),f=e.next();!f.done;f=e.next())qOa(a,f.value,d.layer);else g.IE(Error("Delayed screen needs a data promise."))};
  4120. pOa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.FE(e);e=g.EE(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.FA("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.aB("combine_ve_grafts")&&f&&rOa(a,f);g.aB("no_client_ve_attach_unless_shown")&&h&&f&&Xwa(h,f);try{var p=
  4121. Vwa(a.client,b,l,d.gX,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Hwa(t,{EG:b,rootVe:e,pqb:c,oob:f,oqb:l,gX:d.gX});g.IE(t);return}jwa(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!gwa(f)&&$wa(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=p||"");g.fH({clientScreenNonce:p});NO.instance||(NO.instance=new NO);g.JA(MO().j).bind(MO())();var q=g.EE(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.aB("web_mark_root_visible")||g.aB("music_web_mark_root_visible"))&&
  4122. g.VE(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ca.get(d.layer))||r.forEach(function(t,v){t?RO(a,v,t,d.layer):q&&RO(a,v,q,d.layer)});
  4123. tOa(a)};
  4124. tOa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.IE(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.IE(d)}}};
  4125. rOa=function(a,b){if(void 0===b)for(var c=ewa(),d=0;d<c.length;d++)void 0!==c[d]&&rOa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Wwa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
  4126. TO=function(){};
  4127. uOa=function(){TO.instance||(TO.instance=new TO);return TO.instance};
  4128. vOa=function(a,b,c){var d=new XMLHttpRequest;if(null==c?0:c.gB)d.onreadystatechange=function(f){c.gB(d,f)};
  4129. var e;d.open(null!=(e=b.method)?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.u(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.u(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
  4130. UO=function(){};
  4131. wOa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
  4132. Ara=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
  4133. this.C=.2>=Math.random()};
  4134. yOa=function(a,b){UO.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:xOa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:xOa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
  4135. xOa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
  4136. AOa=function(){g.bC();return g.cC(0,192)?g.cC(0,190):!(g.aB("web_watch_cinematics_disabled_by_default")||g.aB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&zOa())};
  4137. COa=function(a){return!BOa||(0,g.EC)()-BOa>a};
  4138. EOa=function(a,b){DOa(a.program,b.Vca)&&(iH("bg_i",void 0,"player_att"),g.VO.initialize(a,function(){iH("bg_l",void 0,"player_att");BOa=(0,g.EC)()},b.cspNonce))};
  4139. FOa=function(a){a=void 0===a?{}:a;return g.VO.invoke(a)};
  4140. DOa=function(a,b){return a?g.VO.isLoading()?!1:COa(b):!1};
  4141. GOa=function(a){a=a.split("");WO.FQ(a,3);WO.mD(a,5);WO.Wm(a,31);WO.FQ(a,1);return a.join("")};
  4142. g.HOa=function(a,b){return a.Ga+"timedtext_video?ref=player&v="+b.videoId};
  4143. g.XO=function(a,b){a.feature=b;return a};
  4144. g.IOa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.VO.isInitialized()){var d="";b.videoData&&b.videoData.Mq&&(d=b.videoData.Mq+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);iH("bg_v",void 0,"player_att");(d=FOa(d))?(iH("bg_s",void 0,"player_att"),c.push("r1a="+d)):(iH("bg_e",void 0,"player_att"),c.push("r1c=2"))}else iH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.VO.getState());
  4145. return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^vH())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.FA("CATSTAT",0)))},a);
  4146. this.videoData&&this.videoData.Mq?this.Oq=NA(this.videoData.Mq):this.Oq={}};
  4147. g.JOa=function(a){if(a.videoData&&a.videoData.Mq){for(var b=[a.videoData.Mq],c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.Oq[d]&&a.j[d]&&(d=a.j[d](a.Oq))&&b.push(d);return b.join("&")}return null};
  4148. g.KOa=function(a,b){EOa(a,{Vca:g.EI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
  4149. LOa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
  4150. YO=function(a){a=void 0===a?2592E3:a;if(0<a&&!($qa()>(0,g.EC)()-1E3*a))return 0;a=g.YB("yt-player-quality");if("string"===typeof a){if(a=g.eK[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
  4151. MOa=function(){var a=g.YB("yt-player-proxima-pref");return null==a?null:a};
  4152. NOa=function(){var a=g.YB("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
  4153. OOa=function(){var a={values:{},xr:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
  4154. POa=function(a,b,c){c=void 0===c?!1:c;var d=ZO();0<+d[a]&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.XB("yt-player-performance-cap",d,c?2592E3:604800))};
  4155. QOa=function(a,b){b=void 0===b?!0:b;var c=ZO();return b?+c[a]||8192:c[a]};
  4156. ZO=function(){return g.YB("yt-player-performance-cap")||{}};
  4157. ROa=function(){var a;return null!=(a=g.YB("yt-player-performance-cap-active-set"))?a:[]};
  4158. SOa=function(a){(void 0===a?0:a)?(a=ROa().filter(function(b){return b.startsWith("1")}),g.XB("yt-player-performance-cap-active-set",a,2592E3)):g.XB("yt-player-performance-cap-active-set",[],2592E3)};
  4159. TOa=function(a){g.XB("yt-player-watch-later-pending",a)};
  4160. UOa=function(){return!!g.YB("yt-player-headers-readable")};
  4161. VOa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
  4162. g.WOa=function(){var a=g.YB("yt-player-caption-language-preferences");return a?a:[]};
  4163. aPa=function(a,b){lO(a,2,b.Ts,XOa,3);lO(a,3,b.bQ,YOa,3);jO(a,4,b.onesieUstreamerConfig);jO(a,9,b.Oo);lO(a,10,b.dC,ZOa,3);lO(a,15,b.reloadPlaybackParams,$Oa,3)};
  4164. dPa=function(a,b){lO(a,1,b.formatId,$O,3);hO(a,2,b.startTimeMs);hO(a,3,b.durationMs);hO(a,4,b.Nm);hO(a,5,b.Si);lO(a,9,b.Vnb,bPa,3);lO(a,11,b.qqb,cPa,1);lO(a,12,b.bL,cPa,1)};
  4165. ePa=function(a,b){kO(a,1,b.videoId);hO(a,2,b.lmt)};
  4166. bPa=function(a,b){if(b.lW)for(var c=0;c<b.lW.length;c++)lO(a,1,b.lW[c],ePa,3)};
  4167. $O=function(a,b){hO(a,1,b.itag);hO(a,2,b.lmt);kO(a,3,b.xtags)};
  4168. fPa=function(a){return{itag:RN(a,1),lmt:RN(a,2),xtags:UN(a,3)}};
  4169. cPa=function(a,b){hO(a,1,b.Og);hO(a,2,b.Gz);hO(a,3,b.zs)};
  4170. gPa=function(a){return{Og:RN(a,1),Gz:RN(a,2),zs:RN(a,3)}};
  4171. XOa=function(a,b){hO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&($N(a,112),$N(a,c<<1^c>>31));hO(a,16,b.U9);hO(a,17,b.detailedNetworkType);hO(a,18,b.i7);hO(a,19,b.h7);hO(a,21,b.Uda);hO(a,23,b.X6);hO(a,28,b.aS);hO(a,29,b.lea);hO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for($N(a,285),ZN(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}hO(a,36,b.L7);
  4172. lO(a,38,b.mediaCapabilities,hPa,3);hO(a,39,b.jea);hO(a,40,b.hw);hO(a,44,b.playerState);iO(a,46,b.I7);hO(a,48,b.wda);hO(a,50,b.Sv);hO(a,51,b.gy);hO(a,54,b.kq);iO(a,56,b.w$);hO(a,57,b.n7);iO(a,58,b.zo);hO(a,59,b.jj);hO(a,60,b.mx);iO(a,61,b.isPrefetch);hO(a,62,b.qz);jO(a,63,b.sabrLicenseConstraint);hO(a,64,b.W9);hO(a,66,b.V9);hO(a,67,b.TA);hO(a,68,b.LA)};
  4173. hPa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)lO(a,1,b.videoFormatCapabilities[c],iPa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)lO(a,2,b.audioFormatCapabilities[c],jPa,1);hO(a,5,b.hdrModeBitmask)};
  4174. iPa=function(a,b){hO(a,1,b.videoCodec);hO(a,3,b.maxHeight);hO(a,4,b.maxWidth);hO(a,11,b.maxFramerate);hO(a,12,b.maxBitrateBps);iO(a,15,b.is10BitSupported)};
  4175. jPa=function(a,b){hO(a,1,b.audioCodec);hO(a,2,b.numChannels);hO(a,3,b.maxBitrateBps);hO(a,6,b.spatialCapabilityBitmask)};
  4176. ZOa=function(a,b){lO(a,1,b.clientInfo,kPa,3);jO(a,2,b.gS);jO(a,3,b.playbackCookie);jO(a,4,b.Oo);if(b.EL)for(var c=0;c<b.EL.length;c++)lO(a,5,b.EL[c],lPa,3);if(b.iM)for(c=0;c<b.iM.length;c++)hO(a,6,b.iM[c]);kO(a,7,b.Nda);lO(a,8,b.yca,mPa,3)};
  4177. nPa=function(a,b){var c=b.code;void 0!==c&&($N(a,8),$N(a,c<<1^c>>31));kO(a,2,b.message)};
  4178. mPa=function(a,b){jO(a,1,b.rB);lO(a,2,b.tqb,nPa,3)};
  4179. lPa=function(a,b){hO(a,1,b.type);jO(a,2,b.value)};
  4180. kPa=function(a,b){kO(a,12,b.deviceMake);kO(a,13,b.deviceModel);hO(a,16,b.clientName);kO(a,17,b.clientVersion);kO(a,18,b.osName);kO(a,19,b.osVersion)};
  4181. oPa=function(a,b){kO(a,1,b.name);kO(a,2,b.value)};
  4182. pPa=function(a,b){kO(a,1,b.url);if(b.SP)for(var c=0;c<b.SP.length;c++)lO(a,2,b.SP[c],oPa,3);jO(a,3,b.postBody);iO(a,4,b.Qca);iO(a,6,b.aC)};
  4183. YOa=function(a,b){jO(a,2,b.wX);jO(a,5,b.encryptedClientKey);jO(a,6,b.iv);jO(a,7,b.LY);iO(a,10,b.Z0);iO(a,13,b.uX);iO(a,14,b.DO);jO(a,16,b.Aea);iO(a,17,b.M2)};
  4184. qPa=function(a){return{U_:RN(a,1),OY:RN(a,2),body:TN(a,4)}};
  4185. rPa=function(a){return{bitrate:RN(a,6),width:RN(a,7),height:RN(a,8),fps:RN(a,25),averageBitrate:RN(a,31),audioSampleRate:RN(a,45),audioChannels:RN(a,46)}};
  4186. $Oa=function(a,b){kO(a,1,b.token)};
  4187. sPa=function(a){return{bj:RN(a,1),H0:RN(a,2)}};
  4188. wPa=function(a,b){lO(a,1,b.Ts,XOa,3);if(b.Kw)for(var c=0;c<b.Kw.length;c++)lO(a,2,b.Kw[c],$O,3);if(b.md)for(c=0;c<b.md.length;c++)lO(a,3,b.md[c],dPa,3);jO(a,5,b.videoPlaybackUstreamerConfig);if(b.uo)for(c=0;c<b.uo.length;c++)lO(a,6,b.uo[c],tPa,3);if(b.JG)for(c=0;c<b.JG.length;c++)lO(a,16,b.JG[c],$O,3);if(b.KG)for(c=0;c<b.KG.length;c++)lO(a,17,b.KG[c],$O,3);lO(a,19,b.dC,ZOa,3);lO(a,21,b.Im,uPa,3);hO(a,22,b.fK);hO(a,23,b.cK);if(b.aH)for(c=0;c<b.aH.length;c++)lO(a,1E3,b.aH[c],vPa,3)};
  4189. tPa=function(a,b){lO(a,1,b.formatId,$O,3);hO(a,2,b.Fj);hO(a,3,b.sequenceNumber);lO(a,4,b.cJ,cPa,1);hO(a,5,b.xZ)};
  4190. uPa=function(a,b){if(b.XH)for(var c=0;c<b.XH.length;c++)kO(a,1,b.XH[c]);jO(a,2,b.pW);kO(a,3,b.kt);hO(a,4,b.B1);hO(a,5,b.O2);kO(a,6,b.P2)};
  4191. vPa=function(a,b){if(b.Kw)for(var c=0;c<b.Kw.length;c++)lO(a,1,b.Kw[c],$O,3);if(b.md)for(c=0;c<b.md.length;c++)lO(a,2,b.md[c],dPa,3);kO(a,3,b.clipId)};
  4192. g.xPa=function(a,b){lO(a,1,b.Ts,XOa,3);jO(a,3,b.videoPlaybackUstreamerConfig);lO(a,5,b.dC,ZOa,3);lO(a,6,b.Im,uPa,3)};
  4193. APa=function(a,b){kO(a,1,b.cpn);hO(a,2,b.sequenceNumber);kO(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)lO(a,6,b.decoderInfo[c],yPa,3);kO(a,9,b.playerResponseCpn);hO(a,10,b.transitionStitchType);hO(a,12,b.timestampOffsetMsecs);hO(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)lO(a,16,b.remoteConnectedDevices[c],zPa,3)};
  4194. yPa=function(a,b){hO(a,1,b.elapsedTimeMs);kO(a,3,b.videoDecoderName)};
  4195. zPa=function(a,b){hO(a,1,b.deviceInterface);kO(a,2,b.deviceVersion);iO(a,3,b.isSleeping)};
  4196. BPa=function(a){return{first:RN(a,1),nZ:RN(a,2)}};
  4197. CPa=function(a){return{itagDenylist:WN(a,1)}};
  4198. EPa=function(a){return{cqb:XN(a,1,DPa)}};
  4199. DPa=function(a){return{conditions:WN(a,1),fqb:RN(a,2)}};
  4200. HPa=function(a){return{uca:RN(a,1),itag:UN(a,3),h0:VN(a,4,FPa),lmt:RN(a,5),Bob:RN(a,7),xtags:UN(a,15),s$:VN(a,23,GPa),CA:VN(a,34,CPa)}};
  4201. FPa=function(a){return{iv:TN(a,5),K9:SN(a,7)}};
  4202. IPa=function(a){return{W6:WN(a,2),videoId:UN(a,3),PT:RN(a,4)}};
  4203. GPa=function(a){return{videoId:UN(a,2)}};
  4204. JPa=function(a){return{JJ:RN(a,3),KJ:RN(a,4),Gca:SN(a,8),Ipb:RN(a,10),dqb:RN(a,12),eqb:RN(a,13),Zpb:RN(a,14),aqb:RN(a,15)}};
  4205. KPa=function(a){return{targetAudioReadaheadMs:RN(a,1),targetVideoReadaheadMs:RN(a,2),backoffTimeMs:RN(a,4),playbackCookie:TN(a,7),videoId:UN(a,8)}};
  4206. LPa=function(a){return{minBandwidthBytesPerSec:RN(a,1),minReadaheadMs:RN(a,2)}};
  4207. MPa=function(a){return{startMinReadaheadPolicy:XN(a,1,LPa),resumeMinReadaheadPolicy:XN(a,2,LPa)}};
  4208. NPa=function(a){return{MQ:RN(a,1),tK:RN(a,2),minReadaheadMs:RN(a,3)}};
  4209. OPa=function(a){return{l0:RN(a,1),items:XN(a,2,NPa),Wp:RN(a,3)}};
  4210. PPa=function(a){return{token:UN(a,1),videoId:UN(a,2)}};
  4211. QPa=function(a){return{Ap:RN(a,1)}};
  4212. RPa=function(a){return{Sca:UN(a,1),action:RN(a,2),T0:VN(a,3,QPa)}};
  4213. SPa=function(a){return{DS:RN(a,1),ES:RN(a,2),seekSource:RN(a,3)}};
  4214. UPa=function(a){return{W1:XN(a,1,TPa),Pda:UN(a,2)}};
  4215. VPa=function(a){return{Z2:UN(a,1),j0:RN(a,2),d$:RN(a,3),FZ:RN(a,4),GZ:RN(a,5),k0:RN(a,6)}};
  4216. WPa=function(a){return{jK:RN(a,1)}};
  4217. TPa=function(a){return{clipId:UN(a,1),Bq:VN(a,2,VPa),WQ:VN(a,3,WPa)}};
  4218. XPa=function(a){return{type:RN(a,1),scope:RN(a,2),value:TN(a,3),sendByDefault:SN(a,4)}};
  4219. YPa=function(a){var b=[];a=g.u(a.split(","));for(var c=a.next();!c.done;c=a.next()){var d=c.value;d&&((c=d.startsWith("!"))&&(d=d.substring(1)),d=d.split("-"),3>d.length||b.push({E1:d[0],platform:d[1],deviceVersion:d[2],QY:c}))}return b};
  4220. aQa=function(a){return YPa(a).map(function(b){return{deviceInterface:ZPa[$Pa[b.E1]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.QY}})};
  4221. g.aP=function(a,b){this.id=a;this.lc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.lc.id.split(".");1<a.length&&(this.G="2"===a[1])};
  4222. bP=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.sb=void 0===e?0:e};
  4223. bQa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!cP||a.sb===b.sb)};
  4224. g.dP=function(a,b,c,d){return new bP(g.eK[a]||0,g.eK[b]||0,c,d)};
  4225. eP=function(a){if(cP&&a.sb)return!1;var b=g.eK.auto;return a.B===b&&a.j===b};
  4226. gP=function(a){return fP[a.j||a.B]||"auto"};
  4227. cQa=function(a,b){b=g.eK[b];return a.B<=b&&(!a.j||a.j>=b)};
  4228. hP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
  4229. iP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.lc||a.has(d.lc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.lc,itag:d.itag,xtag:d.j,lang:(null==(e=d.lc)?void 0:e.name)||"",langid:(null==(f=d.lc)?void 0:f.id)||""})}else e=new g.aP(d.id,d.lc),a.add(d.lc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
  4230. dQa=function(){g.I.apply(this,arguments);this.j=null};
  4231. hQa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(jP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.qb]=[a.info]);return n}p=eQa(b,d,l);f&&e({aftsrt:kP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),w=v.next();!w.done;w=v.next()){w=w.value;var A=w.itag,D=void 0,F=t+"_"+((null==(D=w.video)?void 0:D.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(w):l[A]=q[F]:(D=lP(b,w,c,d.isLive,m),!0!==D?(h.add(t),l[A]=D,
  4232. "disablevp9hfr"===D&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[F]=!0))}}f&&e({bfflt:kP(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].vg()&&(n[d]=n[d],n[d]=fQa(b,n[d],l),n[d]=gQa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.P0;f&&e({aftflt:kP(n)});a.j=g.Xc(n,function(L){return!!L.length});
  4233. return a.j};
  4234. jQa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Qc&&h&&1<h.length&&!(0<b.jj||b.Y)){for(var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=eQa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var w=h[v],A=d.N.get(w);if(A&&A.info){var D=A.info;A=D.qb;if(lP(b,D,c,d.isLive)){w=D.vg()?q:r;D=g.u(p[A]);for(var F=D.next();!F.done;F=D.next()){F=F.value;var H=void 0,L=A+"_"+((null==(H=F.video)?void 0:H.fps)||0);t.hasOwnProperty(L)?!0===t[L]&&w.push(F):lP(b,F,c,d.isLive)&&(w.push(F),t[L]=!0)}}else m&&f({opfu:w})}}if(q.length&&
  4235. r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),iB(new iP(q,r,n))}return iQa(a,b,c,d,e,f,l)};
  4236. iQa=function(a,b,c,d,e,f,h){function l(D){return!!q[D]}
  4237. var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=new Set,q=hQa(a,b,c,d,f,m,p);mP(d)&&(q=kQa(c,q,e,m,f,b),m&&f({enflt:kP(q)}));b.rb=lQa(q);if(jP(d))return f=g.Db(Object.values(q),function(D){return!!D.length&&!!D[0].audio}),a=g.Db(Object.values(q),function(D){return!!D.length&&!!D[0].video}),f&&a||hB(),iB(new iP(a,f,n));
  4238. e=mQa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.Sd){e=g.Pt(e,l);for(var r=new Set,t=g.u(e),v=t.next();!v.done;v=t.next()){v=g.u(q[v.value]);for(var w=v.next();!w.done;w=v.next())w=w.value,w.lc&&!r.has(w.lc.id)&&(r.add(w.lc.id),a.push(w))}if(0===a.length){if(0===e.length)return m&&f({noaudio:1}),hB();a=q[e[0]]}}else{a=g.Db(e,l);if(!a)return m&&f({noaudio:1}),hB();a=q[a]}q["9"]&&q.h&&d.Zb&&!b.Va&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:kP(q),bfsflta:nP(c)});nQa(c,p);m&&f({bfsfltb:nP(c)});
  4239. for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!("f"===h||0===b.Rf&&oQa.has(h))))for(p=g.u(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Jd?pQa(c,h,e):qQa(c,h,e);m&&f({aftsflt:nP(c)})}h=q["1h"]?"1h":"1";c=q["9h"]?"9h":"9";e=q[h];r=q[c];e&&e.length&&(b.j.highestAv1Resolution=e[e.length-1].video.j);r&&r.length&&(b.j.highestVp9Resolution=r[r.length-1].video.j);A=[];p=[];if(b.je&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.zo)for(p=rQa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
  4240. e=g.u(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(D){return D});
  4241. else 0<b.jj&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(D){return D}));
  4242. if(A.length&&!b.zo){oP(A,p);if(m){m=[];b=g.u(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return iB(new iP(A,a,n))}A=sQa(b);A=g.Db(A,l);if(!A){if(q[h])return f=q[h],oP(f),iB(new iP(f,a,n));m&&f({novideo:1});return hB()}b.Bc&&("1"===A||"1h"===A)&&q[c]&&(h=pP(q[A]),p=pP(q[c]),p>h?A=c:b.yd&&p===h&&tQa(q[c])&&(A=c));"9"===A&&q.h&&pP(q.h)>pP(q["9"])&&(A="h");b.Jb&&d.isLive&&"("===A&&q.H&&1440>pP(q["("])&&(A="H");m&&f({vfmly:uQa(A)});b=q[A];if(!b.length)return m&&f({novfmly:uQa(A)}),
  4243. hB();oP(b);return iB(new iP(b,a,n))};
  4244. lQa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
  4245. tQa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&vQa.has(b.itag))return!0;return!1};
  4246. uQa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
  4247. kP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(uQa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
  4248. kQa=function(a,b,c,d,e,f){var h={},l={};g.Vc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Gb&&"(h"===p.qb&&f.zb)return l[q]="lichdr",!1;if("("===p.qb||"(h"===p.qb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!qP(a,rP.CRYPTOBLOCKFORMAT)&&!a.Ca||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]?
  4249. "unspt":"noflv":"nosys",!1)});
  4250. m.length&&(h[n]=m)});
  4251. d&&Object.entries(l).length&&e(l);return h};
  4252. gQa=function(a,b){var c=bs(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
  4253. Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
  4254. lqa()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
  4255. return a};
  4256. fQa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Tb)return!0;c[d.itag]="maxquality";return!1})};
  4257. eQa=function(a,b,c){var d={},e;for(e in b.j)if(b.j.hasOwnProperty(e)){var f=b.j[e].info;if(a.N&&f.video&&f.video.j<a.N)c&&(c[f.itag]="min"+a.N);else{var h=f.qb;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())oP(d[b.value]);return d};
  4258. pP=function(a){return bs(a,function(b,c){return Math.max(b,c.video.j)},0)};
  4259. lP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.qb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ga)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.gb&&"h"===b.qb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.qb&&!c.K)return"enchdr";if((void 0===d?0:d)&&mK(b)&&!a.Sa)return"blk51live";if(("MAC3"===b.qb||"mac3"===b.qb)&&!a.D)return"blkac3";if(("MEAC3"===b.qb||"meac3"===b.qb)&&!a.G)return"blkeac3";if(("M"===b.qb||"m"===b.qb)&&!a.ra)return"blkaac51";if(("so"===
  4260. b.qb||"sa"===b.qb)&&!a.Ca)return"blkamb";if(!a.Gb&&b.le&&b.le.fairplay&&("("===b.qb||"(h"===b.qb||"A"===b.qb||"MEAC3"===b.qb))return"cbc";if("i"===b.qb&&!a.Kb)return"blkiamf";var f,h;if(a.bb&&("1"===b.qb||"1h"===b.qb)&&(null==(f=b.video)?0:f.j)&&(null==(h=b.video)?void 0:h.j)>a.bb)return"av1cap";if((d=c.C.get(b.qb))&&0<d.P0)return e.add(b.qb),"byerr";var l;if(null==(l=b.video)?0:32<l.fps){if(!c.ra&&!qP(c,rP.FRAMERATE))return"capHfr";if(a.Za&&4320<=b.video.j)return"blk8khfr";if(kK(b)&&a.pd&&b.le&&
  4261. 1440<=b.video.j)return"disablevp9hfr"}if(a.sb&&b.sb>a.sb)return"ratecap";a=wQa(c,b);return!0!==a?a:!0};
  4262. oP=function(a,b){b=void 0===b?[]:b;g.Vb(a,function(c,d){var e=d.sb-c.sb;if(!c.vg()||!d.vg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.qb)+1,d=b.indexOf(d.qb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
  4263. g.sP=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
  4264. uP=function(a){tP(a);return a.C};
  4265. vP=function(a){return a.B?a.B.startsWith("local"):"local"===a.scheme};
  4266. xQa=function(a){tP(a);return g.Zc(a.j,function(b){return null!==b})};
  4267. yQa=function(a){tP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
  4268. wP=function(a,b){b=void 0===b?!1:b;tP(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Le();c=new g.eq(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.gq(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.sP(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
  4269. (g.gq(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.gq(c,"www.youtube.com"),d=c.toString()):(c=YBa(d),fJ(c)&&(d=c));c=new g.sP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
  4270. tP=function(a){if(a.B){if(!fJ(a.B)&&!a.B.startsWith("local"))throw new g.eC("Untrusted URL",a.B);var b=g.nq(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=zQa(c);Object.assign(a.j,
  4271. AQa(b.C.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=BQa[0](b),a.set("n",b),BQa.length||Vla(""))}};
  4272. CQa=function(a){tP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(xQa(a)){var c=[];g.Vc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
  4273. b+="?"+c.join("&")}return b};
  4274. zQa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&DQa(c,a[b],a[b+1]);return c};
  4275. AQa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?DQa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
  4276. DQa=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c};
  4277. xP=function(a){var b=g.V(a,EQa)||a.signatureCipher;a={zY:!1,GD:"",ZG:"",s:""};if(!b)return a;b=NA(b);a.zY=!0;a.GD=b.url;a.ZG=b.sp;a.s=b.s;return a};
  4278. yP=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Vg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Vg=m||null};
  4279. g.zP=function(){this.segments=[];this.j=null;this.B=!0};
  4280. FQa=function(a,b){if(b>a.Cd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
  4281. 0<c&&a.segments.splice(0,c)}};
  4282. GQa=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j};
  4283. AP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
  4284. BP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
  4285. CP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
  4286. DP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
  4287. EP=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
  4288. HQa=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return JN(b)};
  4289. IQa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
  4290. JQa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
  4291. FP=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
  4292. GP=function(a,b,c,d,e,f){this.startSecs=a;this.Ah=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
  4293. IP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.rl=HP(this,"Sequence-Number");this.G=HP(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=HP(this,"Ingestion-Walltime-Us")/1E6;this.j=(HP(this,"First-Frame-Time-Us")+HP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Gj=HP(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=HP(this,"Crypto-Period-Index");
  4294. this.B=HP(this,"Crypto-Period-Seconds")};
  4295. LQa=function(a){return a.data["Cuepoint-Type"]?new GP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",KQa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
  4296. MQa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
  4297. HP=function(a,b){return Number(a.data[b])||0};
  4298. NQa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
  4299. g.OQa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
  4300. g.PQa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
  4301. QQa=function(a,b){this.j=a;this.duration=b};
  4302. RQa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.crc=e.getUint32(4)};
  4303. JP=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
  4304. SQa=function(a,b){var c=g.KP(a,0,1952868452);a=g.KP(a,0,1953658222);if(c&&a){c.skip(1);var d=AP(c)<<16|BP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=DP(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=AP(a)<<16|BP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=DP(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=DP(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
  4305. MP=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.KP(a,0,1836476516))?g.LP(a):NaN};
  4306. TQa=function(a){var b=g.KP(a,0,1937011556);if(!b)return null;b=NP(a,b.dataOffset+8,1635148593)||NP(a,b.dataOffset+8,1635135537);if(!b)return null;var c=NP(a,b.dataOffset+78,1936995172),d=NP(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),AP(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=NP(a,d.dataOffset,1886547818)){var h=NP(a,d.dataOffset,1886546020),l=NP(a,d.dataOffset,2037673328);if(!l&&(l=NP(a,d.dataOffset,1836279920),
  4307. !l))return null;h&&(h.skip(4),c=CP(h)/65536,f=CP(h)/65536,e=CP(h)/65536);a=IQa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new RQa(b,c,f,e,a)}return null};
  4308. NP=function(a,b,c){for(;OP(a,b);){var d=PP(a,b);if(d.type===c)return d;b+=d.size}return null};
  4309. g.KP=function(a,b,c){for(;OP(a,b);){var d=PP(a,b);if(d.type===c)return d;b=QP(d.type)?b+8:b+d.size}return null};
  4310. g.UQa=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
  4311. PP=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new GQa(a,b,c,d)};
  4312. g.LP=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
  4313. VQa=function(a){a=new GQa(a.data,a.offset,a.size,a.type,a.B);var b=AP(a);a.skip(7);var c=DP(a);if(0===b){b=DP(a);var d=DP(a)}else b=EP(a),d=EP(a);a.skip(2);for(var e=BP(a),f=[],h=[],l=0;l<e;l++){var m=DP(a);f.push(m);h.push(DP(a));a.skip(4)}return{zs:c,K7:b,c8:d,Tca:f,oT:h}};
  4314. OP=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
  4315. QP=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
  4316. WQa=function(a){a.skip(4);return{uda:HQa(a,0),value:HQa(a,0),zs:DP(a),xqb:DP(a),uob:DP(a),id:DP(a),UZ:HQa(a),offset:a.offset}};
  4317. g.XQa=function(a){var b=NP(a,0,1701671783);if(!b)return null;var c=WQa(b),d=c.uda;c=JP(c.UZ);if(a=NP(a,b.offset+b.size,1701671783))if(a=WQa(a),a=JP(a.UZ),c&&a){b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new IP(c,d):null};
  4318. YQa=function(a,b){for(var c=NP(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=NP(a,c.offset+c.size,b)}};
  4319. g.RP=function(a,b){for(var c=0,d=[];OP(a,c);){var e=PP(a,c);e.type===b&&d.push(e);c=QP(e.type)?c+8:c+e.size}return d};
  4320. ZQa=function(a,b){var c=g.KP(a,0,1937011556),d=g.KP(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.KP(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new JQa(a.byteLength+b);FP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;FP(d,a,c.offset+16,c.size-16);FP(d,e,e.byteOffset+f.dataOffset+8,b);FP(d,a,c.offset+c.size,a.byteLength-
  4321. (c.offset+c.size));c=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.KP(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.KP(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
  4322. $Qa=function(a){var b=g.KP(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=NP(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=NP(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=NP(a,b.offset+8,1935894633);if(!b)return null;b=NP(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
  4323. SP=function(a,b){this.j=a;this.pos=0;this.start=b||0};
  4324. TP=function(a){return a.pos>=a.j.byteLength};
  4325. YP=function(a,b,c){var d=new SP(c);if(!UP(d,a))return!1;d=VP(d);if(!WP(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=XP(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?aRa(d-9,8):aRa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
  4326. cRa=function(a){var b=new SP(a);b.Qn();if(UP(b,[408125543,374648427,174,224]))b=VP(b);else return null;for(var c=a=null;!TP(b);){var d=XP(b,!1);if(21432===d)switch(ZP(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=VP(b):$P(b)}if(!c)return null;for(var e,f=d=b=null;!TP(c);)switch(XP(c,!1)){case 30321:if(3!==ZP(c))return null;break;case 30324:b=aQ(c);break;case 30323:f=aQ(c);break;case 30325:d=aQ(c);break;case 30322:e=XP(c,!0);e=bRa(c,e);e=new DataView(e.buffer,
  4327. e.byteOffset,e.byteLength);break;default:$P(c)}return e?new RQa(a,b,f,d,e):null};
  4328. VP=function(a){var b=XP(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new SP(c,a.start+a.pos);a.pos+=b;return c};
  4329. ZP=function(a){for(var b=XP(a,!0),c=bQ(a),d=1;d<b;d++)c=256*c+bQ(a);return c};
  4330. aQ=function(a){var b=XP(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
  4331. dRa=function(a){var b=XP(a,!0);return JN(bRa(a,b))};
  4332. bQ=function(a){return a.j.getUint8(a.pos++)};
  4333. XP=function(a,b){var c=bQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+bQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+bQ(a),d*=128;return b?c-d:c};
  4334. $P=function(a){var b=XP(a,!0);a.pos+=b};
  4335. eRa=function(a){if(!WP(a,440786851,!0))return null;var b=a.pos;XP(a,!1);var c=XP(a,!0)+a.pos-b;a.pos=b+c;if(!WP(a,408125543,!1))return null;XP(a,!0);if(!WP(a,357149030,!0))return null;var d=a.pos;XP(a,!1);var e=XP(a,!0)+a.pos-d;a.pos=d+e;if(!WP(a,374648427,!0))return null;var f=a.pos;XP(a,!1);var h=XP(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
  4336. l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
  4337. cQ=function(a){var b=a.pos;a.pos=0;var c=1E6;UP(a,[408125543,357149030,2807729])&&(c=ZP(a));a.pos=b;return c};
  4338. fRa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!dQ(a)||!WP(a,160))return a.pos=c,NaN;XP(a,!0);var d=a.pos;if(!WP(a,161))return a.pos=c,NaN;XP(a,!0);bQ(a);var e=bQ(a)<<8|bQ(a);a.pos=d;if(!WP(a,155))return a.pos=c,NaN;d=ZP(a);a.pos=c;return(e+d)*b/1E9};
  4339. dQ=function(a){if(!gRa(a)||!WP(a,524531317))return!1;XP(a,!0);return!0};
  4340. gRa=function(a){if(a.Qn()){if(!WP(a,408125543))return!1;XP(a,!0)}return!0};
  4341. UP=function(a,b){for(var c=0;c<b.length;c++){if(!WP(a,b[c]))return!1;c!==b.length-1&&XP(a,!0)}return!0};
  4342. WP=function(a,b,c){c=void 0===c?!1:c;if(TP(a))return!1;for(var d=a.pos;XP(a,!1)!==b;)if($P(a),d=a.pos,TP(a))return!1;c&&(a.pos=d);return!0};
  4343. aRa=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
  4344. bRa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
  4345. eQ=function(a){this.base=a;this.j={};this.url=""};
  4346. hRa=function(a,b){var c=b.indexOf("?");if(0<c){var d=AQa(b.substr(c+1));g.Vc(d,function(e,f){this.set(f,e)},a);
  4347. b=b.substr(0,c)}b=zQa(b);g.Vc(b,function(e,f){this.set(f,e)},a)};
  4348. iRa=function(a){var b=a.base.Le(),c=[];g.Vc(a.j,function(e,f){c.push(f+"="+e)});
  4349. if(!c.length)return b;var d=c.join("&");a=xQa(a.base)?"&":"?";return b+a+d};
  4350. jRa=function(a,b){var c=new g.sP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Vc(a.j,function(d,e){c.set(e,null)});
  4351. return c};
  4352. kRa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
  4353. lRa=function(a){a.G=(0,g.EC)();a.started=0;a.timedOut=0;a.j=0};
  4354. mRa=function(a,b){var c=a.started+4*a.j;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
  4355. fQ=function(a,b){a[b]||(a[b]=new kRa);return a[b]};
  4356. gQ=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
  4357. oRa=function(a,b,c){a=b?nRa(a,c):a.j;return new eQ(a)};
  4358. nRa=function(a,b){b=b?b.Kl:!1;a.D||(a.D=wP(a.C,b));return a.D};
  4359. pRa=function(a,b,c){return uP(b?nRa(a,c):a.j)};
  4360. qRa=function(a,b,c){c=fQ(c,pRa(a,a.Jj(b,c),b));b=Math.max(a.G,c.timedOut)+b.lF*(a.B-a.G)+.25*a.K;b=3<b?1E3*Math.pow(1.6,b-3):0;return 0===b?!0:a.Z+b<(0,g.EC)()};
  4361. rRa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
  4362. sRa=function(a,b,c,d,e){++a.B;b&&++a.G;uP(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.dF&&delete e[uP(a.j)])};
  4363. hQ=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new gQ(a)};
  4364. iQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
  4365. jQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new iQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
  4366. kQ=function(a,b){return new iQ(a,a+b-1)};
  4367. tRa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
  4368. lQ=function(a){if(!a)return new iQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new iQ(b,a),0<b.length))return b};
  4369. mQ=function(a,b,c,d,e,f,h,l,m,n,p,q){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Fj=p;this.clipId=void 0===q?"":q;this.N=[];this.G="";this.Pa=-1;this.Z=0;this.G=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Rb=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.Ue=this.range?this.Rb+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Rb/this.range.length,this.K=this.duration*this.B/this.range.length,
  4370. this.D=this.C+this.K):uRa(this)};
  4371. uRa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
  4372. nQ=function(a){return a.Ue&&a.j.index.mQ(a.Pa)};
  4373. vRa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Rb+b.B===a.Rb+a.B:d};
  4374. oQ=function(a){return 1===a.type||2===a.type};
  4375. pQ=function(a){return 3===a.type||6===a.type};
  4376. qQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Rb+a.B===b.range.start+b.Rb:a.Pa===b.Pa?a.Rb+a.B===b.Rb:a.Pa+1===b.Pa&&0===b.Rb&&a.Ue:!1};
  4377. wRa=function(a,b){return qQ(a,b)||1E-6>=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Rb&&a.Ue?!0:!1};
  4378. xRa=function(a){return a.Pa+(a.Ue?1:0)};
  4379. yRa=function(a){1===a.length||g.as(a,function(c){return!!c.range});
  4380. for(var b=1;b<a.length;b++);b=a[a.length-1];return new iQ(a[0].range.start+a[0].Rb,b.range.start+b.Rb+b.B-1)};
  4381. zRa=function(a){for(var b=1;b<a.length;b++)if(!qQ(a[b-1],a[b]))return!1;return!0};
  4382. ARa=function(a){var b=0;a=g.u(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
  4383. rQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Rb+"-"+(a.range.start+a.Rb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Rb);b.len=String(a.B);a.Ue&&(b.end="1");nQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
  4384. BRa=function(a){return new mQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Rb,0)};
  4385. CRa=function(a){return new mQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Rb+a.B,0)};
  4386. DRa=function(a,b,c,d){return new mQ(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Fj,a.clipId)};
  4387. ERa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Rb>=b.range.start+b.Rb&&a.range.start+a.Rb+a.B<=b.range.start+b.Rb+b.B:a.Pa===b.Pa&&a.Rb>=b.Rb&&(a.Rb+a.B<=b.Rb+b.B||b.Ue)};
  4388. FRa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.fg()?(a=a.j.IB(a),Ys(a,function(c){return FRa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Rb+b.B>a.Rb&&b.Rb+b.B<=a.Rb+a.B};
  4389. GRa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.Z,a.duration=b.duration,uRa(a)};
  4390. sQ=function(a,b){var c=this;this.ib=a;this.D=this.j=null;this.G=this.eh=NaN;this.Jj=this.requestId=null;this.qd={vpb:function(){return c.range}};
  4391. this.resource=a[0].j.resource;this.B=b||"";this.ib[0].range&&0<this.ib[0].B&&(zRa(a)?(this.range=yRa(a),this.C=this.range.length):(this.range=this.ib[this.ib.length-1].range,this.C=ARa(a)))};
  4392. HRa=function(a){return!oQ(a.ib[a.ib.length-1])};
  4393. tQ=function(a){return 4===a.ib[a.ib.length-1].type};
  4394. g.IRa=function(a,b,c){c=null===a.Jj?a.resource.Jj(b,c,a.ib[0].type):a.Jj;if(a.j){b=c?wP(a.j,b.Kl):a.j;var d=new eQ(b);d.get("alr")||d.set("alr","yes");a.B&&hRa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new eQ(new g.sP(a.B)):(d=oRa(a.resource,c,b),a.B&&hRa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.ib[0].j.Pw()&&1===a.ib.length&&a.ib[0].Rb&&d.set("range",a.ib[0].Rb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.eh)||d.set("headm",a.eh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
  4395. g.Vc(a.urlParams,function(e,f){d.set(f,e)});
  4396. return d};
  4397. JRa=function(a){if(a.range)return a.C;a=a.ib[0];return Math.round(a.K*a.j.info.sb)};
  4398. KRa=function(a,b){return Math.max(0,a.ib[0].C-b)};
  4399. uQ=function(a,b,c,d,e,f){f=void 0===f?0:f;hQ.call(this,a,b,d,void 0);this.G=c;this.Gj=f;this.index=e||new g.zP};
  4400. LRa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Ah=c;this.j=d||NaN;this.B=e||NaN};
  4401. vQ=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
  4402. wQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
  4403. MRa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
  4404. NRa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
  4405. xQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
  4406. ORa=function(a){var b=a.C;a.C=[];return b};
  4407. PRa=function(){this.D=[];this.j=null;this.B={};this.C={}};
  4408. TRa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=QRa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=RRa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=SRa(a,e));if(null==f)return;f.update(d);g.Mb(c,ORa(f))}g.Mb(a.D,c);xaa(a.D,function(h){return 1E3*h.startSecs+h.j})};
  4409. URa=function(a){a.j&&(a.j.j=[]);g.Vc(a.B,function(b){b.j=[]});
  4410. g.Vc(a.C,function(b){b.j=[]})};
  4411. QRa=function(a){a.j||(a.j=new xQ);return a.j};
  4412. RRa=function(a,b){a.B[b]||(a.B[b]=new xQ);return a.B[b]};
  4413. SRa=function(a,b){a.C[b]||(a.C[b]=new xQ);return a.C[b]};
  4414. VRa=function(a){var b=void 0===a?{}:a;a=void 0===b.Gj?0:b.Gj;var c=void 0===b.jn?!1:b.jn,d=void 0===b.Rq?0:b.Rq,e=void 0===b.cf?0:b.cf,f=void 0===b.Gh?Infinity:b.Gh,h=void 0===b.MA?0:b.MA;b=void 0===b.Zd?!1:b.Zd;g.zP.call(this);this.Ar=this.Hp=-1;this.Hj=a;this.Rq=d;this.jn=c;this.cf=e;this.Gh=f;this.MA=h;this.Zd=b};
  4415. yQ=function(a,b){return Tb(a.segments,function(c){return b-c.Pa})};
  4416. zQ=function(a,b,c){c=void 0===c?{}:c;uQ.call(this,a,b,"",void 0,void 0,c.Gj||0);this.index=new VRa(c)};
  4417. AQ=function(a,b,c){hQ.call(this,a,b);this.G=c;this.index=new g.zP;this.index.B=!1};
  4418. WRa=function(a,b,c){var d=a.index.vJ(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.sb*f;return new sQ([new mQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
  4419. XRa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.split(",").filter(function(p){return 0<p.length});
  4420. for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new yP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
  4421. BQ=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.vA()&&!this.info.Rb};
  4422. CQ=function(a){return PJa(a.j)};
  4423. YRa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Om;c=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,b,!1,a.info.Fj,a.info.clipId),c.LJ);c.D=a.D;c.C=a.C;b=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb+b,a.info.B-b,a.info.Ue,a.info.Fj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
  4424. DQ=function(a,b,c){var d;if(!(d=!qQ(a.info,b.info)||a.info.Ue)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?LJa(c,d.j[0]):1);d=c}if(d)return null;c=new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,a.info.B,a.info.Ue,a.info.Fj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.Ue=d.Ue;d=new BN;CN(d,a.j);CN(d,b.j);c=new BQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c};
  4425. ZRa=function(a){g.nK(a.info.j.info)||a.info.j.info.Me();if(-1!==a.C)return a.C;if(a.B&&MQa(a.B))return a.C=MQa(a.B),a.C;if(g.nK(a.info.j.info)){var b=CQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;OP(b,f);){var h=PP(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.LP(h):1952867444===h.type&&isNaN(d)&&(d=g.UQa(h));f=QP(h.type)?f+8:f+h.size}!e&&c&&(e=MP(c));b=d/e}else b=new SP(CQ(a)),c=a.G?b:new SP(new DataView(a.info.j.j.buffer)),d=cQ(c),c=b.pos,b.pos=0,dQ(b)?WP(b,231)?
  4426. (d=ZP(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
  4427. aSa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=ZRa(a)+b;$Ra(a,c);a.timestampOffset=b};
  4428. $Ra=function(a,b){g.nK(a.info.j.info)||a.info.j.info.Me();a.C=b;if(g.nK(a.info.j.info)){var c=CQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;OP(c,f);){var h=PP(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.LP(h)));if(1952867444===h.type){!d&&a&&(d=MP(a));var l=g.UQa(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+
  4429. 4,l)}f=QP(h.type)?f+8:f+h.size}return!0}c=new SP(CQ(a));a=a.G?c:new SP(new DataView(a.info.j.j.buffer));d=cQ(a);a=c.pos;c.pos=0;if(dQ(c)&&WP(c,231))if(e=XP(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
  4430. EQ=function(a,b){b=void 0===b?!1:b;var c=bSa(a);a=b?0:a.info.K;return c||a};
  4431. bSa=function(a){g.nK(a.info.j.info)||a.info.j.info.Me();if(a.B&&6===a.info.type)return a.B.Gj;if(g.nK(a.info.j.info)){var b=CQ(a);var c=0;b=g.RP(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=VQa(d.value),c+=d.oT[0]/d.zs;c=c||NaN;if(!(0<=c))a:{c=CQ(a);b=a.info.j.j;for(var e=d=0,f=0;OP(c,d);){var h=PP(c,d);if(1836476516===h.type)e=g.LP(h);else if(1836019558===h.type){!e&&b&&(e=MP(b));if(!e){c=NaN;break a}var l=NP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=NP(m.data,m.dataOffset,
  4432. 1952868452);m=NP(m.data,m.dataOffset,1953658222);var p=CP(n);CP(n);p&2&&CP(n);n=p&8?CP(n):0;var q=CP(m),r=q&1;p=q&4;var t=q&256,v=q&512,w=q&1024;q&=2048;var A=DP(m);r&&CP(m);p&&CP(m);for(var D=r=0;D<A;D++){var F=t?CP(m):n;v&&CP(m);p&&0===D||!w||CP(m);q&&CP(m);r+=F}f+=r/l}d=QP(h.type)?d+8:d+h.size}c=f||NaN}c||g.JE(new g.eC("Missing duration while parsing bmff",a.info.zd()))}else c=new SP(CQ(a)),a=a.G?c:new SP(new DataView(a.info.j.j.buffer)),c=fRa(c,cQ(a));return c};
  4433. cSa=function(a){var b=CQ(a);var c=(c=g.KP(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.KP(b,0,1836476516))?g.LP(b):a?MP(a):NaN);return c};
  4434. dSa=function(a){return a.info.j.info.Me()&&160===GN(a.j,0)};
  4435. eSa=function(a){if(!a.B){g.nK(a.info.j.info)||a.info.j.info.Me();if(g.nK(a.info.j.info))var b=g.XQa(CQ(a));else{b=new SP(CQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(UP(b,[408125543,307544935]))for(var f=b.pos+XP(b,!0);b.pos<f;)if(29555!==XP(b,!1))$P(b);else for(var h=b.pos+XP(b,!0);b.pos<h;)if(26568!==XP(b,!1))$P(b);else for(var l=b.pos+XP(b,!0);b.pos<l;){var m=XP(b,!1);if(17543===m){if(m=dRa(b),m=JP(m))if(e)for(var n=g.u(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
  4436. m}else 17827===m?(m=dRa(b),d||(d=m)):$P(b)}b.pos=c;b=e?new IP(e,d):null}a.B=b}};
  4437. fSa=function(a){if(g.nK(a.info.j.info))YQa(CQ(a),1836019574),YQa(CQ(a),1718909296);else{var b=new SP(CQ(a));gRa(b);WP(b,524531317,!0);a.j=a.j.split(b.start+b.pos).Om}a.G=!1};
  4438. gSa=function(a){if(!a.K){if(g.nK(a.info.j.info)){var b=CQ(a);var c=NP(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=eRa(new SP(CQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
  4439. g.hSa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Og=new Float64Array(128)};
  4440. iSa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
  4441. jSa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
  4442. FQ=function(a,b,c,d){hQ.call(this,a,b,c,d);var e=this;this.G=null;this.qd={BE:function(f,h,l,m){return e.BE(f,h,l,m)}};
  4443. this.index=new g.hSa};
  4444. kSa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
  4445. mSa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return lSa[a];return null};
  4446. g.GQ=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
  4447. oSa=function(a){return nSa(function(b,c){return g.fB(b,c,4,1E3)},a,{format:"RAW",
  4448. method:"GET",withCredentials:!0})};
  4449. g.pSa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=JN(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
  4450. nSa=function(a,b,c){b.match(qSa);return a(b,c).then(function(d){var e=g.pSa(d.xhr);return e?nSa(a,e,c):d.xhr})};
  4451. IQ=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.aF.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Wa=this.duration=0;this.isPremiere=this.Zd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Gh=this.cf=0;this.isOtf=this.Zb=!1;this.Na=(0,g.EC)();this.qa=Infinity;this.j={};this.N=new Map;this.state=this.wg=0;this.timeline=null;this.isManifestless=!1;this.ra=[];this.G=null;this.Ca=0;this.D="";this.Ga=NaN;this.qc=this.Za=this.Ob=this.timestampOffset=
  4452. this.K=0;this.Sa=this.Va=this.Y=!1;this.Ea=[];this.La={};this.qd={Tnb:function(m){HQ(d,m)}};
  4453. var e;this.bb=null==(e=b)?void 0:e.fb("html5_use_network_error_code_enums");rSa=!!b&&b.fb("html5_modern_vp9_mime_type");var f;sSa=!(null==(f=b)||!f.fb("html5_enable_flush_during_seek"))&&g.pB();var h;tSa=!(null==(h=b)||!h.fb("html5_enable_reset_audio_decoder"))&&g.pB();var l;this.gb=!(null==(l=b)||!l.fb("html5_windowed_post_live_prevent_seek_to_max_sq"))};
  4454. uSa=function(a){return g.Zc(a.j,function(b){return!!b.info.video&&2160<=b.info.video.j})};
  4455. rQa=function(a){return g.Zc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
  4456. mP=function(a){return g.Zc(a.j,function(b){return!!b.info.le})};
  4457. vSa=function(a){return g.Zc(a.j,function(b){return rK(b.info.mimeType)})};
  4458. wSa=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
  4459. xSa=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
  4460. ySa=function(a){return g.Zc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
  4461. zSa=function(a){return g.Zc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
  4462. ASa=function(a){return bba(a.j,function(b){return b.info.video?b.VR():!0})};
  4463. jP=function(a){return g.Zc(a.j,function(b){return vP(b.resource.j)})};
  4464. HQ=function(a,b){a.j[b.info.id]=b;a.N.set(qK(b.info,a.Zb),b)};
  4465. BSa=function(a,b){return(b.itag||"")+";"+((a.Zb?0:b.lmt||0)||0)+";"+(b.xtags||"")};
  4466. JQ=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(QDa(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=CSa[a.stereoLayout]);var r=mSa(a)||void 0;if(null==n?0:n.primaries)var t=DSa[n.primaries]||void 0;h=new fK(h,e,l,p,q,void 0,m,r,t);d=ESa(d,h,iK[a.itag||""]);sSa&&(d+="; enableflushduringseek=true");tSa&&(d+="; enableresetaudiodecoder=true")}var v;if(PDa(d)){var w=
  4467. a.audioSampleRate;q=a.audioTrack;w=new dK(w?+w:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(v=new g.GQ(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new kSa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&
  4468. m){var D={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=FSa[n.value])&&(D[n]=b[n])}return new jK(f,d,{audio:w,video:h,lc:v,le:D,sb:q,Pv:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
  4469. GSa=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(QDa(d)){var h=(a.size||"640x360").split("x");h=new fK(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=ESa(d,h,iK[a.itag]);sSa&&(d+="; enableflushduringseek=true");tSa&&(d+="; enableresetaudiodecoder=true")}var l;if(PDa(d)){var m=new dK(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.GQ(a.name,a.audio_track_id,
  4470. "1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new kSa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new jK(e,d,{audio:m,video:h,lc:l,le:r,sb:f,Pv:c,contentLength:p,lastModified:q,captionTrack:n,
  4471. streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
  4472. HSa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4473. ISa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
  4474. JSa=function(a,b){return a.timeline?Nb(a.timeline.D,b):a.ra.length?Nb(a.ra,b):[]};
  4475. KQ=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.sP(a,!0);a.set("alr","yes");c&&(c=GOa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
  4476. NSa=function(a,b){var c=vQ(b,"id");c=c.replace(":",";");var d=vQ(b,"mimeType"),e=vQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(vQ(b,"bandwidth"))/8;var f=Number(wQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(QDa(d)){var l=Number(vQ(b,"width"));var m=Number(vQ(b,"height")),n=Number(vQ(b,"frameRate")),p=KSa(vQ(b,a.D+":projectionType"));a:switch(vQ(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
  4477. 0}l=new fK(l,m,n,p,q)}if(PDa(d)){var r=Number(vQ(b,"audioSamplingRate"));var t=Number(vQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=LSa(vQ(b,a.D+":spatialAudioType"));r=new dK(r,t,m);a:{t=vQ(b,"lang")||"und";if(m=wQ(b,"Role"))if(p=vQ(m,"value")||"",g.ed(MSa,p)){m=t+"."+MSa[p];n="main"===p;a=vQ(b,a.D+":langName")||t+" - "+p;t=new g.GQ(a,m,n);break a}t=void 0}}if(b=wQ(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};for(b=
  4478. b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(v[a]=m.trim()))}else v=void 0;return new jK(c,d,{audio:r,video:l,lc:t,le:v,sb:e,Pv:h,contentLength:f})};
  4479. KSa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
  4480. LSa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
  4481. PSa=function(a,b){b=void 0===b?"":b;a.state=1;a.Na=(0,g.EC)();return oSa(b||a.sourceUrl).then(function(c){if(!a.Ma()){a.wg=c.status;c=c.responseText;var d=new DOMParser;c=Oba(d,Ula(c)).getElementsByTagName("MPD")[0];a.qa=1E3*MRa(vQ(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.u(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=Infinity>a.qa&&a.isLivePlayback;a.Wa=Number(vQ(c,
  4482. a.D+":earliestMediaSequence"))||0;if(d=Date.parse(NRa(vQ(c,a.D+":mpdResponseTime"))))a.Ca=((0,g.EC)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.as(c.getElementsByTagName("Period"),a.tca,a);a.state=2;a.publish("loaded");OSa(a)}return a}).xl(function(c){if(c instanceof dB){var d=c.xhr;
  4483. a.wg=d.status}a.state=3;a.publish("loaderror");return ng(d)})};
  4484. QSa=function(a,b,c){return PSa(new IQ(a,b,c),a)};
  4485. RSa=function(a){return a.isLive&&(0,g.EC)()-a.Na>=a.qa};
  4486. SSa=function(a){a.G&&a.G.stop()};
  4487. OSa=function(a){var b=a.qa;isFinite(b)&&(RSa(a)?a.refresh():(b=Math.max(0,a.Na+b-(0,g.EC)()),a.G||(a.G=new g.xv(a.refresh,b,a),g.N(a,a.G)),a.G.start(b)))};
  4488. TSa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Cd()+1}return 0};
  4489. LQ=function(a){return a.Ob?a.Ob-(a.K||a.timestampOffset):0};
  4490. MQ=function(a){return a.Za?a.Za-(a.K||a.timestampOffset):0};
  4491. NQ=function(a){if(!isNaN(a.Ga))return a.Ga;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!rK(b[c].info.mimeType)){b=0;for(c=d.Dn();c<=d.Cd();c++)b+=d.getDuration(c);b/=d.Vz();b=.5*Math.round(b/.5);10<d.Vz()&&(a.Ga=b);return b}if(a.isLive&&(d=b[c],d.Gj))return d.Gj}return NaN};
  4492. USa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()});
  4493. if(!a)return NaN;a=a.index;var c=a.Di(b);return a.getStartTime(c)===b?b:c<a.Cd()?a.getStartTime(c+1):NaN};
  4494. VSa=function(a,b){if(!a.j["0"]){var c=new jK("0","fakesb",{video:new fK(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new uQ(new g.sP("http://www.youtube.com/videoplayback"),c,"fake"):new FQ(new g.sP("http://www.youtube.com/videoplayback"),c,new iQ(0,0),new iQ(0,0))}};
  4495. OQ=function(a,b,c){for(var d in a.j){var e=rK(a.j[d].info.mimeType)||a.j[d].info.vg();if(c===e){e=a.j[d].index;var f=yQ(e,b);0<=f&&e.segments.splice(f,1)}}};
  4496. WSa=function(a){for(var b in a.j)rK(a.j[b].info.mimeType)||FQa(a.j[b].index,Infinity)};
  4497. XSa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.jn&&(f&&(e.Hp=Math.max(e.Hp,f)),h&&(e.Ar=Math.max(e.Ar||0,h)))}};
  4498. YSa=function(a){a.Za=0;a.Ob=0;a.qc=0};
  4499. PQ=function(a){return a.Va&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
  4500. ESa=function(a,b,c){null===QQ&&(QQ=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(rSa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return QQ||"9"!==c&&"("!==c?QQ||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!QQ&&!ZSa||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
  4501. a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
  4502. g.RQ=function(a){this.tag=a};
  4503. aTa=function(a,b){$Sa.apply(null,[6,a,b].concat(g.qa(g.Ja.apply(2,arguments))))};
  4504. bTa=function(a,b){$Sa.apply(null,[5,a,b].concat(g.qa(g.Ja.apply(2,arguments))))};
  4505. $Sa=function(a,b,c){var d=g.Ja.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.IE(new (Function.prototype.bind.apply(g.eC,[null,f].concat(g.qa(d)))),e);d.unshift(f);d=d.join(", ");e=cTa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}cTa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
  4506. TQ=function(a,b,c,d){b=""+b+(49<c?"p60":32<c?"p48":"");if(!a.L("html5_gradual_perf_cap"))return QOa(b);a=QOa(b,!1);if(null!=a&&0<a)return a;a=SQ.get(b);if(null!=a&&0<a)return a;d=null==d?void 0:d.get(b);return null!=d&&0<d?d:8192};
  4507. dTa=function(a){this.Da=a;this.qc=this.zo=this.Na=this.G=this.D=this.ra=this.La=this.Wa=this.Ca=!1;this.N=this.K=0;this.gb=!1;this.Ga=!0;this.Za=!1;this.jj=0;this.Ea=!1;this.Tb=Infinity;this.CN=!1;this.Bc=!0;this.Va=this.Sa=!1;this.j={};this.B=this.Y=!1;this.Ob=this.Da.zc();this.Jb=!1;this.Gb=this.Da.experiments.fb("html5_enable_vp9_fairplay");this.je=this.Da.L("html5_force_av1_for_testing");this.bb=g.EI(this.Da.experiments,"html5_av1_ordinal_cap");this.pd=this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
  4508. this.Qc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.yd=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.Rf=0;this.disableAv1=this.zb=this.rb=!1;this.sb=g.EI(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.Sd=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Jd=this.Da.experiments.fb("html5_allow_capability_merge")};
  4509. sQa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ea&&(b.unshift("1"),b.unshift("1h"));a.zo&&b.unshift("h");a.qa&&(b=(eTa[a.qa]||[a.qa]).concat(b));return b};
  4510. mQa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");1===a.Rf&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ca&&(b=["so","sa"].concat(b));!a.qc||a.Na||a.C||b.unshift("a");!a.Z&&a.La&&b.unshift("ah");a.C&&(b=(eTa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b};
  4511. fTa=function(a,b,c,d){b=void 0===b?{}:b;if(void 0===d?0:d)return b.disabled=1,0;if(qP(a.G,rP.AV1_CODECS)&&qP(a.G,rP.HEIGHT)&&qP(a.G,rP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=VOa();if(e)return b.localPref=e}catch(l){}d=1080;2>=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;kqa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return lK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
  4512. c=c.videoInfos[0].video;a=Math.min(TQ(a,"1",c.fps),TQ(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=TQ(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=TQ(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
  4513. UQ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Wa=this.keySystemAccess=null;this.Ly=this.My=-1;this.Nl=null;this.C=!!d&&d.fb("edge_nonprefixed_eme")};
  4514. WQ=function(a){return a.C?!1:!a.keySystemAccess&&!!VQ()&&"com.microsoft.playready"===a.keySystem};
  4515. XQ=function(a){return"com.microsoft.playready"===a.keySystem};
  4516. YQ=function(a){return!a.keySystemAccess&&!!VQ()&&"com.apple.fps.1_0"===a.keySystem};
  4517. ZQ=function(a){return"com.youtube.fairplay"===a.keySystem};
  4518. $Q=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
  4519. g.aR=function(a){return"fairplay"===a.flavor};
  4520. VQ=function(){var a=window,b=a.MSMediaKeys;rB()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
  4521. gTa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.aK&&!g.pB())return Xv("45");if(g.VC||g.Ks)return a.fb("edge_nonprefixed_eme");if(g.bR)return Xv("47");if(g.zC){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.EI(a,"html5_safari_desktop_eme_min_version"))return Xv(a)}return!0};
  4522. iTa=function(a,b,c,d){var e=qB(),f=(c=e||c&&rB())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.qa(f),g.qa(hTa.playready)):[].concat(g.qa(hTa.playready),g.qa(f))};
  4523. cR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Da=b;this.useCobaltWidevine=d;this.ma=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
  4524. lTa=function(a,b){a.callback=b;a.D=[];gTa(a.Da.experiments)?jTa(a):kTa(a)};
  4525. jTa=function(a){if(!a.Ma())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=mTa(a,c);if(eR&&eR.keySystem===b&&eR.hda===JSON.stringify(d))a.ma("remksa",{re:!0}),nTa(a,c,eR.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:null!=(f=null==(e=eR)?void 0:e.keySystem)?f:""});eR=void 0;(fR.isActive()?fR.Co("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(sO(function(h){nTa(a,c,h,d)}),sO(function(){a.G=!a.G&&"widevine"===
  4526. a.C[a.B[0]].flavor;
  4527. a.G||a.B.shift();jTa(a)}))}}};
  4528. nTa=function(a,b,c,d){if(!a.Ma()){d&&(eR={keySystem:b.keySystem,keySystemAccess:c,hda:JSON.stringify(d)});b.keySystemAccess=c;if(XQ(b)){c=ZJ();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())oTa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())oTa(a,b,d.value)}a.D.push(b);
  4529. a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&$Q(b)?(a.B.shift(),jTa(a)):a.callback(a.D)}};
  4530. oTa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
  4531. mTa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&ZQ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];XQ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
  4532. b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.aK&&g.nB("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.gR(a.Da)&&(vB()||oB())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
  4533. kTa=function(a){if(VQ()&&g.zC)a.D.push(new UQ("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=pTa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
  4534. c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
  4535. pTa=function(){var a=VQ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=ZJ();
  4536. return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
  4537. qTa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.fb("html5_consider_end_stall"))&&hR;this.B=this.experiments.fb("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")};
  4538. rTa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=LA(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
  4539. g.EI=function(a,b){return Number(a.flags[b])||0};
  4540. iR=function(a,b){return(a=a.flags[b])?a.toString():""};
  4541. sTa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
  4542. tTa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.qa(a.experimentIds)).map(function(d){return Number(d)});
  4543. b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
  4544. a.j.unshift("v1");return a.j};
  4545. vTa=function(a){return uTa.then(a)};
  4546. wTa=function(a,b,c){this.experiments=a;this.ra=b;this.Ca=void 0===c?!1:c;this.Z=!!g.Xa("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.qa=this.experiments.fb("html5_disable_vp9_encrypted");this.j=new Map;a=g.Xa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
  4547. wQa=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.Me()&&qB()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(lK(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(qP(a,rP.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.aK?Xv(53):g.bR&&Xv(64)))return"dopus";
  4548. var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[rP.WIDTH.name]=b.video.width),b.video.height&&(c[rP.HEIGHT.name]=b.video.height),b.video.fps&&(c[rP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[rP.EOTF.name]=b.video.B),b.sb&&(c[rP.BITRATE.name]=8*b.sb*f),"("===b.qb&&(c[rP.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[rP.DECODETOTEXTURE.name]="true");b.audio&&
  4549. b.audio.numChannels&&(c[rP.CHANNELS.name]=b.audio.numChannels);a.D&&kK(b)&&(c[rP.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(rP));for(var h=f.next();!h.done;h=f.next())if(h=rP[h.value],c[h.name]&&!(h===rP.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.fb("html5_ignore_h264_framerate_cap")&&h===rP.FRAMERATE&&KDa(b)))if(qP(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(LDa(b)&&h===rP.EOTF)return"dvp92";a.Z&&b.video&&1080<b.video.j&&b.le&&(e+=
  4550. "; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
  4551. jR=function(){var a=oB()&&!Xv(29),b=g.nB("google tv")&&g.nB("chrome")&&!Xv(30);return a||b?!1:UDa()};
  4552. xTa=function(a,b,c){var d=480;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===wQa(a,e,c)&&(d=f)}return d};
  4553. g.yTa=function(a,b){b=void 0===b?!1:b;return jR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(ZJ(),"application/x-mpegURL")?!0:!1};
  4554. ATa=function(a){zTa(function(){for(var b=g.u(Object.keys(rP)),c=b.next();!c.done;c=b.next())qP(a,rP[c.value])})};
  4555. qP=function(a,b){b.name in a.N||(a.N[b.name]=BTa(a,b));return a.N[b.name]};
  4556. BTa=function(a,b){if(a.G)return!!a.G[b.name];if(b===rP.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===rP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.On);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"',
  4557. a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.On)};
  4558. CTa=function(a){a.D||(a.D=!0,a.B=!0)};
  4559. DTa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).a8);a.C.set(b,{a8:c+1,P0:Math.pow(2,c+1)});a.B=!0};
  4560. nP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")};
  4561. nQa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
  4562. pQa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,qb:b,Ch:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=null==l?void 0:l.width;h.maxHeight=null==l?void 0:l.height;h.maxFramerate=e;qP(a,rP.BITRATE)&&(h.maxBitrateBps=8*c.sb);h.VE=null==l?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,qb:b,Ch:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
  4563. 0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,VE:c.VE},qP(a,rP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
  4564. qQa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,qb:b,Ch:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,qP(a,rP.BITRATE)&&(b.maxBitrateBps=8*c.sb),
  4565. b.VE=null==f?void 0:f.isHdr()),a.j.set(d,b))};
  4566. kR=function(){g.aF.call(this);this.items={}};
  4567. lR=function(){g.wN.apply(this,arguments)};
  4568. mR=function(){g.xN.apply(this,arguments)};
  4569. nR=function(a,b){var c=a.zI(b);yN.call(this,a,c||b);this.Id=a;c&&this.Id.exports.free(c.byteOffset)};
  4570. ETa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
  4571. FTa=function(a){a.B||(a.B=new lR(a.j));return a.B};
  4572. oR=function(a){try{return Mg(a)}catch(b){return null}};
  4573. GTa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?oR(b.clientKey):null;var c=b.encryptedClientKey?oR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.EC)():null;a&&c&&d&&(this.j=new ETa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=oR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
  4574. pR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
  4575. qR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.gm=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.G=HTa(this);this.D=c;this.K=d};
  4576. HTa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
  4577. rR=function(a,b){if(!a.C&&0===a.B)return 0;a.gm&&(g.Vb(a.G,function(c,d){return a.values[c]-a.values[d]}),a.gm=!1);
  4578. return a.values[a.G[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
  4579. ITa=function(a,b,c){g.I.call(this);this.policy=a;this.Sa=b;this.kd=c;this.Y=this.Na=0;this.Z=-1;this.qa=this.C=0;this.Ea=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Ga=this.D=(0,g.EC)();this.K=new qR(4,1,.6,.4);this.ra=new qR(4,1,.6,.4);this.G=new qR(20,1,.5,.4);this.B=a.D?new pR(a.j):new qR(a.j,20,.5,.4);this.Ca=new qR(5,1,.25);this.N=new qR(30,1,.5);a=g.YB("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.Ea=!0);this.B.Oi(this.policy.G,b);0<a.delay&&this.K.Oi(1,
  4580. Math.min(a.delay,2));0<a.stall&&this.G.Oi(1,a.stall);0<a.init&&(this.Ga=Math.min(a.init,this.Ga));a.interruptions&&(this.j=this.j.concat(a.interruptions),16<this.j.length&&this.j.pop());this.Z=(0,g.EC)();0<this.policy.K&&(this.La=new g.xv(this.Va,this.policy.K,this),g.N(this,this.La),this.La.start())};
  4581. sR=function(a,b,c,d){a.B.Oi(void 0===d?b:d,c/b);a.D=(0,g.EC)()};
  4582. JTa=function(a){a.C||(a.C=(0,g.EC)());a.policy.Z&&(a.D=(0,g.EC)())};
  4583. KTa=function(a,b){if(a.C){var c=b-a.C;if(1E3<c){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
  4584. 16<d.length&&d.pop()}a.qa+=c}a.C=b};
  4585. tR=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.Ca.Oi(b,c/b);a.D=(0,g.EC)();e||a.N.Oi(1,b-d);f||(a.C=0);-1<a.Z&&3E4<(0,g.EC)()-a.Z&&LTa(a)};
  4586. uR=function(a,b,c){b=Math.max(b,2048);a.G.Oi(1,c/b)};
  4587. vR=function(a){a=a.K.Zg()+a.ra.Zg()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
  4588. MTa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.Na+=b)};
  4589. NTa=function(a){a=a.B.Zg();return 0<a?a:1};
  4590. wR=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=NTa(a);d=1/((a.G.Zg()||0)*a.policy.Y+1/d);var e=a.Ca.Zg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+vR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((rR(a.N,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
  4591. OTa=function(a){var b={delay:vR(a),stall:a.G.Zg()||0,byterate:NTa(a),init:a.Ga},c=a.j[0];c.stamp=36E5*Math.round(a.D/36E5);c.net=Math.ceil(a.qa);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b};
  4592. LTa=function(a){g.XB("yt-player-bandwidth",OTa(a),2592E3);a.Z=(0,g.EC)();a.Ea=!0};
  4593. xR=function(a){return 4E3<=(0,g.EC)()-a.D};
  4594. PTa=function(a,b){b.Cs=a.Y;b.Uu=a.Na;b.bandwidthEstimate=wR(a);b.j={ttr:(1E3*a.K.Zg()).toFixed(),ttm:(1E3*a.ra.Zg()).toFixed(),d:vR(a).toFixed(2),st:(1E9*(a.G.Zg()||0)).toFixed(2),bw:a.B.Zg().toFixed(0),abw:a.Ca.Zg().toFixed(0),v50:rR(a.N,.5).toFixed(2),v92:rR(a.N,.92).toFixed(2),v96:rR(a.N,.96).toFixed(2),v98:rR(a.N,.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.qa);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")};
  4595. QTa=function(a){this.experiments=a;this.j=17;this.Y=g.EI(this.experiments,"html5_stall_factor")||1;this.B=13E4;this.G=.5;this.C=this.D=!1;this.K=g.EI(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.fb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.fb("html5_sabr_fetch_on_idle_network_preloaded_players")};
  4596. STa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.xr=b;this.B={};this.C=this.j=0;this.D=new g.xv(function(){RTa(c)},1E4);
  4597. g.N(this,this.D)};
  4598. UTa=function(a,b){TTa(a,b);return a.values[b]&&a.xr[b]?a.values[b]/Math.pow(2,a.j/a.xr[b]):0};
  4599. TTa=function(a,b){a.values[b]||(b=OOa(),a.values=b.values||{},a.xr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
  4600. RTa=function(a){var b=OOa();if(b.values){b=b.values;for(var c={},d=g.u(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=UTa(a,e);a.B=c}b=a.xr;c={};c.values=a.B;c.halfLives=b;g.XB("yt-player-memory",c,2592E3)};
  4601. gUa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Kl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.tj=this.nf=this.gb=this.qj=this.userDisplayName=this.userDisplayImage=this.Mi="";this.j={};this.Ob={};this.controlsType="0";this.Jd=NaN;this.rb=!1;this.Rf=(0,g.EC)();this.Kb=0;this.Ml=this.To=!1;this.Xm=!0;this.preferGapless=this.Il=this.Qf=this.C=this.Jl=this.Pf=!1;this.rh=[];this.Sm=!0;this.Sf=!1;a=a?g.md(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);
  4602. b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new rTa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:zB("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:zB("",a.csp_nonce);NBa=this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(R){f=""}this.yf=f;this.ancestorOrigins=
  4603. (d=window.location.ancestorOrigins)?Array.from(d):[];this.D=wB(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=
  4604. d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=iR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),"all"===f||"once"===f)d.chipset&&(this.Ob.cchip=d.chipset),d.cobaltAppVersion&&(this.Ob.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Ob.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Ob.crqyear=d.deviceYear)}else this.j.c=
  4605. a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||VTa(this)&&b.loaderUrl?b.loaderUrl||"":this.yf:this.D||VTa(this)&&a.loaderUrl?zB("",a.loaderUrl):this.yf;this.D&&g.Va("yt.embedded_player.embed_url",this.loaderUrl);this.N=eJ(this.loaderUrl,WTa,XTa);d=this.loaderUrl;var h=void 0===h?!1:h;this.hp=dJ(eJ(d,YTa,null),d,h,"Trusted Ad Domain URL");this.Bc=wB(!1,a.privembed);this.protocol=0===this.yf.indexOf("http:")?"http":"https";this.Ga=PBa((b?b.customBaseYoutubeUrl:
  4606. a.BASE_YT_URL)||"")||PBa(this.yf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.N?d=xB(d,h,ZTa):h&&(d="embedded");this.La=d;vua();h=null;d=b?b.playerStyle:a.ps;f=g.Fb($Ta,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.qa=(this.K=g.Fb($Ta,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.gp=!this.qa;this.Sa=wB(!1,a.disableplaybackui);this.disablePaidContentOverlay=wB(!1,
  4607. null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=wB(!1,null==b?void 0:b.disableSeek);this.enableSpeedOptions=(null==b?void 0:b.enableSpeedOptions)||(ZJ().defaultPlaybackRate?yR||g.uB||zR?g.bR&&Xv("20")||g.aK&&Xv("4")||g.AR&&Xv("11")||oqa():!(g.AR&&!g.nB("chrome")||yR||g.nB("android")||g.nB("silk")):!1);this.Vo=wB(!1,a.enable_faster_speeds);this.B=wB("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=qqa()||vB();this.fp=this.L("mweb_allow_background_playback")?
  4608. !1:this.B&&!this.K;this.Va=IDa();this.Qp=g.aUa;var l;this.Nl=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.optOutApiDeprecation);var m;this.Wo=!!(null==b?0:null==(m=b.embedsHostFlags)?0:m.allowPfpImaIntegration);this.Yo=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Um=g.BR(this)&&!this.Nl||wB(!CR(this)&&!DR(this)&&!this.K,n);this.Ol=b?!!b.mobileIphoneSupportsInlinePlayback:wB(!1,a.playsinline);l=this.B&&bUa&&
  4609. null!=ER&&0<ER&&2.3>=ER;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.BR(this)&&this.B;n=this.B&&!this.Z;m=g.FR(this)||!l&&wB(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Gl=this.B;this.color=xB("red",b?b.progressBarColor:a.color,cUa);this.Gp="3"===this.controlsType;this.qc=!this.D;this.Vm=(m=!this.qc&&!DR(this)&&!this.qa&&!this.K&&!CR(this))&&!this.Gp&&"1"===this.controlsType;this.Sd=g.GR(this)&&m&&"0"===this.controlsType&&!this.Vm;this.jq=this.Pp=
  4610. l;this.pd=("3"===this.controlsType||this.B||wB(!1,a.use_media_volume))&&!this.Z;this.Ym=sB&&!g.Pc(601)?!1:!0;this.Zo=this.D||!1;this.Qc=DR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=zB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||wB(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.wj=this.L("enable_cast_for_web_unplugged")&&g.HR(this)&&l||this.L("enable_cast_on_music_web")&&g.jG(this)&&l||p&&l&&"1"===
  4611. this.controlsType&&!this.B&&(DR(this)||g.GR(this)||g.IR(this));this.bq=!!window.document.pictureInPictureEnabled||HDa();p=b?!!b.supportsAutoplayOverride:wB(!1,a.autoplayoverride);this.Ki=!(this.B&&!g.BR(this))&&!g.nB("nintendo wiiu")||p;this.Li=(b?!!b.enableMutedAutoplay:wB(!1,a.mutedautoplay))&&!1;p=(DR(this)||CR(this))&&"blazer"===this.playerStyle;this.zk=b?!!b.disableFullscreen:!wB(!0,a.fs);l=g.FB(g.JR(this))&&g.BR(this);this.Gb=!this.zk&&(p||g.JB())&&!l;this.Hl=this.L("uniplayer_block_pip")&&
  4612. (oB()&&Xv(58)&&!vB()||UC);p=g.BR(this)&&!this.Nl;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.yd=p||wB(!this.K,q);this.Tm=wB(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=vB()&&0<ER&&4.4>=ER?"_top":"_blank";this.Sg=g.IR(this);this.Fl=wB("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q=
  4613. "gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.ra=q;this.Ca=zB("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.BR(this)&&(this.Bc||!eqa()||this.Wa);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.je=((q=!this.Tb)||!!this.Ca&&q)&&wB(!this.qa,this.N?r:void 0);
  4614. this.xf=b?b.isMobileDevice||!!b.disableKeyboardControls:wB(!1,a.disablekb);this.loop=wB(!1,a.loop);this.pageId=zB("",b?b.initialDelegatedSessionId:a.pageid);this.Tp=wB(!0,a.canplaylive);this.zb=wB(!1,a.livemonitor);this.disableSharing=wB(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||0>=r*q?null:new g.Ke(r,q))):
  4615. r=null;this.Zm=r;this.mute=b?!!b.startMuted:wB(!1,a.mute);this.storeUserVolume=!this.mute&&wB("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:xB(void 0,r,KR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":zB("",a.cc_lang_pref);r=xB(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,KR);"3"===this.controlsType&&2===r&&(r=3);this.Jb=r;this.nj=b?b.hl||"en_US":zB("en_US",
  4616. a.hl);this.region=b?b.contentRegion||"US":zB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":zB("en",a.host_language);this.Uo=!this.Bc&&Math.random()<g.EI(this.experiments,"web_player_api_logging_fraction");this.Za=!this.Bc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Jd=yB(this.Jd,a.ismb);this.gp?(r=a.vss_host||"s.youtube.com","s.youtube.com"===r&&(r=LR(this.Ga)||"www.youtube.com")):r="video.google.com";this.cn=r;dUa(this,a,!0);this.Na=new kR;g.N(this,
  4617. this.Na);q=b?b.innertubeApiKey:zB("",a.innertube_api_key);p=b?b.innertubeApiVersion:zB("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:zB("",a.innertube_context_client_version);q=g.FA("INNERTUBE_API_KEY")||q;p=g.FA("INNERTUBE_API_VERSION")||p;l=g.FA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.gR(this);n="number"===typeof this.j.c?Number(this.j.c):Object.keys(GLa).indexOf(this.j.c);this.Fk={innertubeApiKey:q,innertubeApiVersion:p,RJ:l,XP:m,WY:n,innertubeContextClientVersion:g.FA("INNERTUBE_CONTEXT_CLIENT_VERSION")||
  4618. r,ZP:this.hostLanguage,YP:this.region,XY:g.FA("INNERTUBE_HOST_OVERRIDE")||"",YY:!!g.FA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),aQ:!!g.FA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Pl=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new wTa(this.experiments,this.L("html5_force_hfr_support")?!0:OI(this)||lqa()||mqa()||eUa(this),g.aK&&g.Pc(56)||g.bR&&g.Pc(54)||this.L("html5_force_vp9_subsample_encryption_support")||eUa(this));r=this.Jd;q=new QTa(this.experiments);g.PI(this)&&
  4619. (q.D=!0,q.G=.1);r&&(q.B=r/8);q.C=480<=YO();this.schedule=new ITa(q,new qTa(this.experiments),e);g.N(this,this.schedule);var t;this.enableSafetyMode=null!=(t=null==b?void 0:b.initialEnableSafetyMode)?t:wB(!1,a.enable_safety_mode);e=this.Sa?!1:DR(this)&&"blazer"!==this.playerStyle;var v;b?null!=b.disableAutonav&&(v=!b.disableAutonav):v=a.allow_autonav;this.Be=wB(e,!this.qa&&v);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:wB(!1,a.send_visitor_id_header);var w;"docs"===this.playerStyle&&(b?w=b.disableNativeContextMenu:
  4620. w=a.disable_native_context_menu);this.disableNativeContextMenu=wB(!1,w);this.Xo=OI(this)&&this.L("enable_skip_intro_button");this.embedConfig=zB("",b?b.serializedEmbedConfig:a.embed_config);this.Ea=vqa(a,g.BR(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Ea;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Ak=wB(!1,a.full_window);var A;this.bb=!(null==(A=this.webPlayerContextConfig)?0:A.chromeless);var D;this.livingRoomAppMode=xB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||
  4621. (null==b?void 0:null==(D=b.device)?void 0:D.livingRoomAppMode),fUa);var F;v=yB(NaN,null==b?void 0:null==(F=b.device)?void 0:F.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=b?!!b.transparentBackground:wB(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:wB(!1,a.show_miniplayer_button);var H;g.BR(this)&&!(null==b?0:null==(H=b.embedsHostFlags)?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:
  4622. wB(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:wB(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var L;this.Xm=null!=(L=a.show_loop_video_toggle)?L:!0;this.yp=1E-4>Math.random();this.Gk=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new GTa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:
  4623. b.canaryStage;this.Of=new STa;g.N(this,this.Of);this.Jl=wB(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.FA("DATASYNC_ID");this.Ll=g.FA("LOGGED_IN",!1);this.sj=(null==b?void 0:b.allowWoffleManagement)||!1;this.El=this.Dl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Qf=!0:this.Qf=100*Math.random()<g.EI(this.experiments,"html5_high_res_logging_percent");var M;this.Il=!!(null==b?0:null==(M=b.embedsHostFlags)?0:
  4624. M.allowRcat);this.Bj=!g.HR(this)&&!MR(this)};
  4625. g.JR=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Bc||a.K||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ea)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.EI(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<hUa.length?hUa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
  4626. dUa=function(a,b,c){c=void 0===c?!1:c;a.nf=zB(a.nf,b.video_id);a.gb=zB(a.gb,b.eventid);a.gb&&(TD=a.gb);for(var d=[],e=g.u(Object.keys(iUa)),f=e.next();!f.done;f=e.next()){f=iUa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.yp&&(d.sort(),g.JE(new g.eC("Player client parameters changed after startup",d)));a.userAge=yB(a.userAge,b.user_age);a.Mi=zB(a.Mi,b.user_display_email);a.userDisplayImage=zB(a.userDisplayImage,b.user_display_image);g.gJ(a.userDisplayImage)||(a.userDisplayImage=
  4627. "");a.userDisplayName=zB(a.userDisplayName,b.user_display_name);a.qj=zB(a.qj,b.user_gender);a.csiPageType=zB(a.csiPageType,b.csi_page_type);a.csiServiceName=zB(a.csiServiceName,b.csi_service_name);a.Fl=wB(a.Fl,b.enablecsi);a.pageId=zB(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.cg=b.living_room_session_po_token.toString())};
  4628. jUa=function(a,b){return!a.K&&oB()&&Xv(55)&&"3"===a.controlsType&&!b};
  4629. g.NR=function(a){a=LR(a.Ga);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
  4630. OR=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
  4631. PR=function(a){return DR(a)&&!g.HR(a)};
  4632. g.FR=function(a){return a.L("html5_local_playsinline")?sB&&!g.Pc(602)&&!("playsInline"in ZJ()):sB&&!a.Ol||g.nB("nintendo wiiu")?!0:!1};
  4633. g.gR=function(a){return a.j.c};
  4634. g.PI=function(a){return/^TVHTML5/.test(g.gR(a))};
  4635. VTa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.gR(a)};
  4636. eUa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
  4637. g.QR=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
  4638. OI=function(a){return/web/i.test(g.gR(a))};
  4639. g.RR=function(a){return"WEB"===g.gR(a).toUpperCase()};
  4640. MR=function(a){return"WEB_KIDS"===g.gR(a)};
  4641. g.HR=function(a){return"WEB_UNPLUGGED"===g.gR(a)};
  4642. SR=function(a){return"TVHTML5_UNPLUGGED"===g.gR(a)};
  4643. g.NI=function(a){return g.HR(a)||"TV_UNPLUGGED_CAST"===g.gR(a)||SR(a)};
  4644. g.jG=function(a){return"WEB_REMIX"===g.gR(a)};
  4645. g.TR=function(a){return"WEB_EMBEDDED_PLAYER"===g.gR(a)};
  4646. g.VR=function(a){return(a.deviceIsAudioOnly||!g.aK||UC||"3"===a.controlsType?!1:g.uB?a.D&&g.Pc(51):!0)||(a.deviceIsAudioOnly||!g.bR||UC||"3"===a.controlsType?!1:g.uB?a.D&&g.Pc(48):g.Pc(38))||(a.deviceIsAudioOnly||!g.AR||UC||"3"===a.controlsType?!1:g.uB?a.D&&g.Pc(37):g.Pc(27))||!a.deviceIsAudioOnly&&g.UR&&!pqa()&&g.Pc(11)||!a.deviceIsAudioOnly&&g.zC&&g.Pc("604.4")};
  4647. kUa=function(a){if(g.GR(a)&&bUa)return!1;if(g.bR){if(!g.Pc(47)||!g.Pc(52)&&g.Pc(51))return!1}else if(g.zC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
  4648. WR=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.PI(a)};
  4649. mUa=function(a,b){return a.enabledEngageTypes.has(b.toString())||lUa.includes(b)};
  4650. DR=function(a){return"detailpage"===a.La};
  4651. g.GR=function(a){return"embedded"===a.La};
  4652. YR=function(a){return"leanback"===a.La};
  4653. CR=function(a){return"adunit"===a.La||"gvn"===a.playerStyle};
  4654. g.IR=function(a){return"profilepage"===a.La};
  4655. g.BR=function(a){return a.D&&g.GR(a)&&!CR(a)&&!a.K};
  4656. nUa=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.JE(new g.eC("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
  4657. g.ZR=function(a){var b=g.NR(a);oUa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
  4658. g.$R=function(a,b){b=void 0===b?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Kl){var c=new NK,d,e=a.Kl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.JE(new g.eC("b189348328_oauth_callback_failed",{error:f}));
  4659. c.resolve(b)});
  4660. return void 0!==d?iB(d):new gB(c)}return iB(b)};
  4661. LR=function(a){var b=g.fo(a);return(a=Number(g.eo(4,a))||null)?b+":"+a:b};
  4662. aS=function(a){this.j=a};
  4663. bS=function(a,b,c,d){if(c)return hB();c={};var e=ZJ();b=g.u(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Me())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.u(gK);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?iB(a):hB()};
  4664. pUa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
  4665. qUa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.lc)?void 0:d.getId())===b});
  4666. a.j=b};
  4667. rUa=function(a,b,c){a.cpn&&(b=g.lo(b,{cpn:a.cpn}));c&&(b=g.lo(b,{paired:c}));return b};
  4668. sUa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
  4669. tUa=function(a){for(var b=[],c=[],d=g.u(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
  4670. c.sort(function(f,h){return f.bitrate-h.bitrate});
  4671. a.B=b.concat(c)};
  4672. uUa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.oC=a.oC;this.le=a.le||"";this.lc=a.lc;this.audioChannels=a.audioChannels;this.j=""};
  4673. vUa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
  4674. m=m?m[1]:"";f.audio_track_id&&(h=new g.GQ(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new uUa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,oC:n?l[n]:void 0,le:f.drm_families,lc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
  4675. cS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
  4676. wUa=function(a,b){if(!(UC||rB()||qB()))return null;a=vUa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.lc&&(f=h.lc.getId(),c[f]||(h=new g.aP(f,h.lc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
  4677. BUa=function(a,b,c,d,e,f,h){if(!(UC||rB()||qB()))return hB();var l={},m=xUa(c),n=vUa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),hB();yUa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new uUa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,lc:new g.GQ("English","en",!1)}):null;for(var A=g.u(Object.keys(n)),D=A.next();!D.done;D=A.next())if(D=D.value,!a.L("html5_disable_drm_hfr_1080")||
  4678. "383"!==D&&"373"!==D){D=g.u(n[D]);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.width){for(var H=g.u(F.B),L=H.next();!L.done;L=H.next())if(L=L.value,n[L]){F.j=L;break}F.j||(F.j=zUa(n,F));if(H=n[F.j])if(c.push(F),"fairplay"===F.le&&(q=p),L="","PQ"===F.oC?L="smpte2084":"HLG"===F.oC&&(L="arib-std-b67"),L&&(w=L),t.push(AUa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,L)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else r.push(F)}else l[D]="disdrmhfr";t.reduce(function(M,
  4679. R){return R.getInfo().isEncrypted()&&M},!0)&&(q=p);
  4680. e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(AUa(r,c,d,f,"93",v,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return bS(a.G,t,jUa(a,b),!1)};
  4681. AUa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,w="",A=g.u(a),D=A.next();!D.done;D=A.next())D=D.value,w||(w=D.itag),D.audioChannels&&D.audioChannels>v&&(v=D.audioChannels,w=D.itag);e=new jK(e,"application/x-mpegURL",{audio:new dK(0,v),video:new fK(f,h,l,null,void 0,n,void 0,r),le:q,a_:w});a=new pUa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new cS(e,a,m)};
  4682. xUa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
  4683. zUa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""};
  4684. yUa=function(a){for(var b=new Set,c=g.u(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.u(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
  4685. dS=function(a,b){this.j=a;this.B=b};
  4686. CUa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.sP(h.url,!0);if(h.s){var l=f,m=h.sp,n=GOa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=sK(h.type,h.quality,h.itag,h.width,h.height);e.push(new dS(h,f))}}return bS(a.G,e,jUa(a,b),!1)};
  4687. eS=function(a,b){this.j=a;this.B=b};
  4688. DUa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=sK(e.type,"medium","0");d.push(new eS(f,e.url))}return bS(a.G,d,jUa(a,b),!1)};
  4689. EUa=function(a,b){var c=[],d=sK(b.type,"auto",b.itag);c.push(new eS(d,b.url));return bS(a.G,c,!1,!0)};
  4690. GUa=function(a){return a&&FUa[a]?FUa[a]:null};
  4691. HUa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Oo=oR(a.ustreamerConfig)||void 0)};
  4692. IUa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.T_=new HUa(b)};
  4693. g.fS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
  4694. g.hS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.gS(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
  4695. g.iS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
  4696. g.JUa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.iS(a));return b};
  4697. g.gS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
  4698. NUa=function(a,b,c,d){a||(a=b&&KUa.hasOwnProperty(b)&&LUa.hasOwnProperty(b)?LUa[b]+"_"+KUa[b]:void 0);b=a;if(!b)return null;a=b.match(MUa);if(!a||5!==a.length)return null;if(a=b.match(MUa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
  4699. jS=function(a,b){for(var c={},d=g.u(Object.keys(OUa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.gJ(f)&&(c[OUa[e]]=f)}return c};
  4700. kS=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
  4701. a.sort(function(l,m){return l.width-m.width||l.height-m.height});
  4702. for(var c=g.u(Object.keys(PUa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=PUa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=QUa(h.url);g.gJ(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=QUa(a.url),g.gJ(a)&&(b["maxresdefault.jpg"]=a));return b};
  4703. QUa=function(a){return a.startsWith("//")?"https:"+a:a};
  4704. lS=function(a){return a&&a.baseUrl||""};
  4705. mS=function(a){a=g.OA(a);for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
  4706. RUa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Mq=b)};
  4707. UUa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.V(h,SUa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,TUa))return Object.assign({is_yto_interstitial:!0},NA(h))});
  4708. d=g.u(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Mo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Mo:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
  4709. Mo:0===f?5:7})}}};
  4710. VUa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
  4711. WUa=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)};
  4712. XUa=function(a,b){null!=b?(a.zp=b,a.Hf=!0):(a.zp="",a.Hf=!1)};
  4713. nS=function(a,b){this.type=a||"";this.id=b||""};
  4714. g.YUa=function(a){return new nS(a.substr(0,2),a.substr(2))};
  4715. g.oS=function(a,b){this.Da=a;this.author="";this.WD=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=LA(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=jS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new nS("UU","PLAYER_"+c)).toString();break;default:if(a=
  4716. b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.YUa(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
  4717. g.pS=function(a,b){this.Da=a;this.Os=this.author="";this.WD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Xw=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Os=b.Os||"";if(a=b.endscreen_autoplay_session_data)this.WD=LA(a,"&");this.XD=b.XD;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
  4718. b.lengthText||"";this.Xw=b.Xw||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=LA(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=jS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
  4719. ZUa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
  4720. g.bVa=function(a){var b,c,d;a=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,$Ua);return g.V(null==a?void 0:a.playerBar,aVa)};
  4721. cVa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
  4722. dVa=function(){if(void 0===qS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.hw(g.fC()+"::yt-player"))){qS=new lG(a);break a}qS=void 0}}return qS};
  4723. g.rS=function(){var a=dVa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
  4724. g.eVa=function(a){var b=dVa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
  4725. g.sS=function(a){return g.rS()[a]||0};
  4726. g.tS=function(a,b){var c=g.rS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.eVa(c))};
  4727. g.uS=function(a){return g.G(function(b){return b.return(g.SC(fVa(),a))})};
  4728. kVa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:return m=g.sS(a),4===m?v.return(4):g.z(v,g.XC(),2);case 2:n=v.B;if(!n)throw g.AC("wiac");if(!l||void 0===h){v.Ia(3);break}return g.z(v,gVa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.uS(n),5);case 5:return q=v.B,g.Ba(v,6),vS++,g.z(v,g.HC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(w){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
  4729. "0");A=g.IC(w.objectStore("media"),h,A)}else A=g.CC.resolve(void 0);var D=hVa(a,b.vg()),F=hVa(a,!b.vg()),H={fmts:iVa(d),format:c||{}};D=g.IC(w.objectStore("index"),H,D);var L=-1===d.downloadedEndTime;H=L?w.objectStore("index").get(F):g.CC.resolve(void 0);var M={fmts:"music",format:{}};w=L&&e&&!b.vg()?g.IC(w.objectStore("index"),M,F):g.CC.resolve(void 0);return g.CC.all([w,H,A,D]).then(function(R){R=g.u(R);R.next();R=R.next().value;vS--;var ea=g.sS(a);if(4!==ea&&L&&e||void 0!==R&&g.jVa(R.fmts))ea=
  4730. 1,g.tS(a,ea);return ea})}),8);
  4731. case 8:return v.return(v.B);case 6:r=g.Da(v);vS--;t=g.sS(a);if(4===t)return v.return(t);g.tS(a,4);throw r;}})};
  4732. g.lVa=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,g.XC(),2);if(3!=d.j){b=d.B;if(!b)throw g.AC("ri");return g.z(d,g.uS(b),3)}c=d.B;return d.return(g.HC(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
  4733. nVa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){if(1==m.j)return g.z(m,g.XC(),2);if(3!=m.j){f=m.B;if(!f)throw g.AC("rc");return g.z(m,g.uS(f),3)}h=m.B;l=g.HC(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
  4734. return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return mVa(e,n)}).catch(function(n){throw new g.eC("Error while reading chunk: "+n.name+", "+n.message);
  4735. })):m.return(l)})};
  4736. g.jVa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
  4737. hVa=function(a,b){return""+a+"|"+(b?"v":"a")};
  4738. iVa=function(a){var b={};return MA((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
  4739. pVa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.oVa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.u(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
  4740. return c};
  4741. wS=function(a){g.aF.call(this);this.j=null;this.C=new kw;this.j=null;this.K=new Set;this.crossOrigin=a||""};
  4742. qVa=function(a,b,c){for(c=xS(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(yS(d,b))&&(d=g.zS(d,b)))return d;c--}return g.zS(a.levels[0],b)};
  4743. sVa=function(a,b,c){c=xS(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=yS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{yZ:f,ZZ:e}))}rVa(a)};
  4744. rVa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=tVa(a,b)}};
  4745. tVa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.yZ].Le(b.ZZ);c.onload=function(){var d=b.yZ,e=b.ZZ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);rVa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.iJ()-1);e=[e,d];a.publish("l",e[0],e[1])};
  4746. return c};
  4747. g.AS=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d};
  4748. yS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
  4749. g.zS=function(a,b){b>=a.aN()&&a.Iy();var c=yS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Iy()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Le(c),column:b,columns:h,row:e,rows:d,xF:a.width*h,jx:a.height*d}};
  4750. BS=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;wS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
  4751. uVa=function(a,b,c){return(a=a.levels[b])?a.UH(c):-1};
  4752. xS=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
  4753. vVa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.AS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
  4754. CS=function(a,b,c,d){BS.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].oV(c)};
  4755. wVa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.lo(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
  4756. g.ES=function(a,b){g.aF.call(this);this.Da=a;this.adModule=!1;this.adaptiveFormats="";this.YV=this.hv=this.adQueryId=this.fv=null;this.xC={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.le=null;this.FC=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.oy=void 0;this.Dl=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.CC=this.ov=!1;this.XT=null;this.cg=this.Bj=this.Qp=this.cF=
  4757. !1;this.D=null;this.eW=this.Fk=!1;this.Of=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.XZ=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Il=!1;this.fN=this.cycToken=null;this.author="";this.yH=0;this.Um=!1;this.wH=null;this.lN=[];this.mp=this.cD=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Bc=this.Sd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
  4758. this.endSeconds=this.Gb=0;this.Nl=this.Wa=this.B=null;this.iD="";this.loading=!1;this.Jd=this.Sm=0;this.aW=this.pipable=this.mq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.zb=this.isPrivate=this.isListed=this.pD=this.Sf=this.mutedAutoplay=this.fl=!1;this.lF="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.rD=this.bb=this.Zd=!1;this.latencyClass="UNKNOWN";this.g_=this.b3=this.oD=this.cW=this.eD=this.enablePreroll=
  4759. this.Y2=this.enableServerStitchedDai=this.Gf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Tb=0;this.reloadReason="";this.fE=this.VT=this.Sg=!1;this.keywords={};this.Jb="";this.To=0;this.bA=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Gl=null;this.uy=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.A0=this.paygated=!1;this.Cm=[];this.Tm=!1;this.Ea=[];this.ji=null;this.dW=this.racyCheckOk=
  4760. !1;this.xV={};this.isProximaLatencyEligible=!1;this.EG=0;this.C=null;this.autonavState=1;this.xW=null;this.shortDescription="";this.Ga=this.qW=!1;this.uj=this.Kb=this.startSeconds=0;this.xA=this.mX=this.yA=DS;this.qv=this.suggestions=null;this.vy=this.wy=void 0;this.isExternallyHostedPodcast=!1;this.Ml=null;this.wM=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Fv=void 0;this.Be=[];this.zk=[];this.hlsFormats=this.Qf="";this.Py=this.gz=this.Ak=this.pd=this.gb=this.Zo=
  4761. this.Oy=null;this.Rm="vvt";this.Ki=!1;this.oN=null;this.EX="";this.bq=NaN;this.jq=this.DB=this.Pp=this.BB=this.oB=this.Ol=this.Gp=this.qC=this.Tp=this.iC="";this.Pl=null;this.bW=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.S0=!1;this.heartbeatToken="";this.R1=this.q1=NaN;this.nj=this.cn=this.Li=this.X2=this.s2=!1;this.Jl=!0;this.Z={};this.captionTracks=[];this.HC=[];this.oY=0;this.IC=[];this.uv=[];this.tv=!1;this.aD={};this.Gk=new g.aP("und",new g.GQ("Default","und",!0));this.dF=0;this.K=
  4762. null;this.Vo=[];this.hD=!1;this.PA=this.yd="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Na=this.CF=this.jD=this.playerResponse=this.lZ=this.Sy=this.Xm=this.wi=this.gD=this.zC=this.vC=null;this.Hv=!1;this.qa=null;this.isInlinePlaybackNoAd=this.El=this.dD=this.useCobaltWidevine=this.fW=this.sA=!1;this.mZ=!0;this.yf=this.Mi=NaN;this.defraggedFromSubfragments=this.OE=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.Wy="";this.zZ=
  4763. !1;this.gatewayExperimentGroup="";this.BH=this.nN=this.wj=!1;this.interstitials=[];this.Hf=this.qD=!1;this.zp="";this.allowImaMonetization=!1;this.aU="";this.uM=!1;this.rh="";this.Wo=[];this.lG=[];this.bd="";this.jN=this.Y=this.U2=!1;this.Rf=0;this.yp="";this.zH=this.nH=this.lD=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.gp=!1;this.Ll=this.je=!0;this.errorDetail=this.userGenderAge="";this.hN=this.iN=this.getSharePanelCommand=
  4764. this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.An=this.errorReason=this.errorCode=null;this.xv=this.wv="";this.Vm=!1;this.py=[];this.qc=this.Za=this.Ob=this.Gh=this.cf=0;this.fetchType=null;this.zV=!0;this.transitionEndpointAtEndOfStream=void 0;this.GC=this.EW=-1;this.Kl=this.Pf=!1;this.nf=null;this.Sa="";this.Ym=!1;this.watchUrl=null;this.Qy=[];this.visibleOnLoadKeys=[];this.UV=[];this.inlineMetricEnabled=this.Hl=
  4765. !1;this.embedsRctn=this.embedsRct="";this.kD=NaN;this.iU=(0,g.EC)();this.aB=this.hp=0;this.Oo=null;this.tj=0;this.RV=this.nX=this.sD=!1;this.WV=0;this.Uo={};this.Pf=this.L("web_new_autonav_countdown");this.Kl=this.L("web_new_big_thumbnail_endscreen");xVa(this,b);this.Gv=new dQa;g.N(this,this.Gv)};
  4766. g.HS=function(a,b,c){b&&b.cpn&&g.JE(new g.eC("CPN provided in VideoData update",{hqb:b.cpn,Hg:a.clientPlaybackNonce,v9:c}));c?(AB(b),xVa(a,b),FS(a)&&GS(a)):(b=b||{},yVa(a,b),zVa(a,b),AVa(a,b),a.publish("dataupdated"))};
  4767. AVa=function(a,b){a.fflags=zB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=hJ(c));a.ov=wB(a.ov,b.iv_ads_only);a.CC=wB(a.CC,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.Q9=c;a.isPharma=wB(a.isPharma,b.is_pharma);a.author=zB(a.author,b.author);a.Sd=BVa(b.ttsurl)||a.Sd;a.Um=wB(a.Um,b.cc_asr);a.Bc=zB(a.Bc,b.channel_path);if(c=b.profile_picture)a.profilePicture=zB(a.profilePicture,c);a.videoCountText=zB(a.videoCountText,b.video_count_text);a.autonavState=xB(a.autonavState,b.autonav_state,
  4768. CVa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!(null==(d=a.playerResponse)||!d.cotn);d=g.EI(a.Da.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=DVa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.EB("ssei","uhdc"),a.clientPlaybackNonce=zB(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=zB(a.clientPlaybackNonce,b.cpn);a.subscribed=wB(a.subscribed,b.subscribed);a.rawViewCount=yB(a.rawViewCount,
  4769. b.view_count);a.shortViewCount=zB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=zB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=zB(a.lengthText||"",b.lengthText);a.Xw=zB(a.Xw||"",b.Xw);a.Os=zB(a.Os||"",b.Os);a.title=zB(a.title,b.title);a.subtitle=zB(a.subtitle,b.subtitle);a.expandedTitle=zB(a.expandedTitle,b.expanded_title);a.expandedSubtitle=zB(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=zB(a.ariaLabel,b.aria_label);a.ypcPreview=zB(a.ypcPreview,b.ypc_preview);
  4770. a.pN=zB(a.pN,b.ypc_origin);a.Ki=wB(a.Ki,b.ypc_is_premiere_trailer);a.yp=zB(a.yp,b.ypc_clickwrap_message);a.paygated=wB(a.paygated,b.paygated);a.bW=wB(a.bW,b.requires_purchase);a.showShareButton=!wB(!a.showShareButton,b.ss);a.je=wB(a.je,b.showwatchlater);a.Ll=wB(a.Ll,b.shownotifybutton);a.gp=wB(a.gp,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=EVa(d.split(","));if(d=b.rvs)a.suggestions=Bpa(d).map(function(e){return e.playlist||e.list||e.api?new g.oS(a.Da,e):new g.pS(a.Da,e)});
  4771. a.contentCheckOk=wB(a.contentCheckOk,b.cco);a.racyCheckOk=wB(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=wB(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=zB(a.oauthToken,b.oauth_token);a.Jb=zB(a.Jb,b.kpt);a.visitorData=zB(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=LA(d,"&");a.Jv=zB(a.Jv,b.endscreen_ad_tracking_data);a.tX=wB(a.tX,b.wait_for_vast_info_cards_xml);a.vM=wB(a.vM,b.suppress_creator_endscreen);a.UT=wB(a.UT,b.is_trueview_action);a.RW=zB(a.RW,b.tracking_list);
  4772. a.wv=zB(a.wv,b.clip);a.xv=zB(a.xv,b.clipt);FVa(a,b)};
  4773. xVa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.An=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.VD(16));a.zb=wB(a.Da.zb,b.livemonitor);yVa(a,b);var h=b.raw_player_response;if(h)a.CF=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}if(a.L("html5_enable_ssap_entity_id")){var m=
  4774. b.cached_load;m&&(a.mp=wB(a.mp,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.EB("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.VD(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.u(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.ov=!0);t.allowInPlaceSwitch&&(a.CC=!0);var v=t.loadPolicy;v&&(a.annotationsLoadPolicy=GVa[v]);var w=t.invideoUrl;w&&(a.Va=hJ(w));a.cF=!0;break}}var A=
  4775. a.playerResponse.attestation;A&&RUa(a,A);var D=a.playerResponse.cotn;D&&(a.cotn=D);var F=a.playerResponse.heartbeatParams;if(F){HVa(a)&&(a.S0=!0);var H=F.heartbeatToken;H&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=H,a.q1=Number(F.intervalMilliseconds),a.R1=Number(F.maxRetries),a.s2=!!F.softFailOnError,a.X2=!!F.useInnertubeHeartbeatsForDrm,a.Qp=!0);a.heartbeatServerData=F.heartbeatServerData;var L;a.Il=!(null==(L=F.heartbeatAttestationConfig)||!L.requiresAttestation)}var M=a.playerResponse.messages;
  4776. M&&VUa(a,M);var R=a.playerResponse.overlay;if(R){var ea=R.playerControlsOverlayRenderer;if(ea)if(XUa(a,ea.controlBgHtml),ea.mutedAutoplay){var la=g.V(ea.mutedAutoplay,IVa);if(la&&la.endScreen){var ka=g.V(la.endScreen,JVa);ka&&ka.text&&(a.aU=g.lF(ka.text))}}else a.mutedAutoplay=!1}var ia=a.playerResponse.playabilityStatus;if(ia){var sa=ia.backgroundability;sa&&sa.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var aa,U;if(null==(aa=ia.offlineability)?0:null==(U=aa.offlineabilityRenderer)?
  4777. 0:U.offlineable)a.offlineable=!0;var Ha=ia.contextParams;Ha&&(a.contextParams=Ha);var x=ia.pictureInPicture;x&&x.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ia.playableInEmbed&&(a.allowEmbed=!0);var ba=ia.ypcClickwrap;if(ba){var La=ba.playerLegacyDesktopYpcClickwrapRenderer,ab=ba.ypcRentalActivationRenderer;if(La)a.yp=La.durationMessage||"",a.cg=!0;else if(ab){var lb=ab.durationMessage;a.yp=lb?g.lF(lb):"";a.cg=!0}}var Qa=ia.errorScreen;if(Qa){if(Qa.playerLegacyDesktopYpcTrailerRenderer){var Ua=
  4778. Qa.playerLegacyDesktopYpcTrailerRenderer;a.jq=Ua.trailerVideoId||"";var jb=Qa.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var rb=jb&&jb.ypcTrailerRenderer}else if(Qa.playerLegacyDesktopYpcOfferRenderer)Ua=Qa.playerLegacyDesktopYpcOfferRenderer;else if(Qa.ypcTrailerRenderer){rb=Qa.ypcTrailerRenderer;var pb=rb.fullVideoMessage;a.Gp=pb?g.lF(pb):"";var B,C;a.jq=(null==(B=g.V(rb,KVa))?void 0:null==(C=B.videoDetails)?void 0:C.videoId)||""}Ua&&(a.Pp=Ua.itemTitle||"",Ua.itemUrl&&(a.DB=Ua.itemUrl),Ua.itemBuyUrl&&
  4779. (a.oB=Ua.itemBuyUrl),a.BB=Ua.itemThumbnail||"",a.qC=Ua.offerHeadline||"",a.Tp=Ua.offerDescription||"",a.Ol=Ua.offerId||"",a.iC=Ua.offerButtonText||"",a.oN=Ua.offerButtonFormattedText||null,a.bq=Ua.overlayDurationMsec||NaN,a.Gp=Ua.fullVideoMessage||"",a.Bj=!0);if(rb){var E=g.V(rb,KVa);if(E)a.Pl={raw_player_response:E};else{var J=g.V(rb,LVa);a.Pl=J?NA(J):null}a.Bj=!0}}}var K=a.playerResponse.playbackTracking;if(K){var ca=b,ta=lS(K.googleRemarketingUrl);ta&&(a.googleRemarketingUrl=ta);var na=lS(K.youtubeRemarketingUrl);
  4780. na&&(a.youtubeRemarketingUrl=na);var O=lS(K.ptrackingUrl);if(O){var Z=mS(O),ya=Z.oid;ya&&(a.gU=ya);var xa=Z.pltype;xa&&(a.hU=xa);var Za=Z.ptchn;Za&&(a.fU=Za);var Wa=Z.ptk;Wa&&(a.Ry=encodeURIComponent(Wa));var zb=Z.m;zb&&(a.Iv=zb)}if(!a.L("html5_remarketing_urls_cleanup")){var Rb=lS(K.ppvRemarketingUrl);Rb&&(a.ppvRemarketingUrl=Rb)}var eb=lS(K.qoeUrl);if(eb){for(var Ub=g.OA(eb),hc=g.u(Object.keys(Ub)),Dc=hc.next();!Dc.done;Dc=hc.next()){var Zb=Dc.value,vc=Ub[Zb];Ub[Zb]=Array.isArray(vc)?vc.join(","):
  4781. vc}a.QW=Ub;var Wc=Ub.cat;Wc&&(a.L("html5_enable_qoe_cat_list")?a.Wo=a.Wo.concat(Wc.split(",")):a.rh=Wc);var Sc=Ub.live;Sc&&(a.lF=Sc);var Ec=Ub.drm_product;Ec&&(a.Dl=Ec)}if(!a.L("html5_remarketing_urls_cleanup")){var Fc=lS(K.remarketingUrl);if(Fc){a.remarketingUrl=Fc;var Xb=mS(Fc);Xb.foc_id&&(a.N.focEnabled=!0);var yd=Xb.data;yd&&(a.N.rmktEnabled=!0,yd.engaged&&(a.N.engaged="1"));a.N.baseUrl=yfa(Fc)+rn(g.eo(5,Fc))}}var fd=lS(K.videostatsPlaybackUrl);if(fd){var fc=mS(fd);a.rb=fc;var $b=fc.adformat;
  4782. if($b){ca.adformat=$b;var Gc=a.U(),Jb=NUa($b,a.PA,Gc.D,Gc.N);Jb&&(a.adFormat=Jb)}var ad=fc.aqi;ad&&(ca.ad_query_id=ad);var sd=fc.autoplay;sd&&(a.fl="1"==sd,a.mq="1"==sd);var Pb=fc.autonav;Pb&&(a.isAutonav="1"==Pb);var de=fc.delay;de&&(a.Gb=bf(de));var Rd=fc.ei;Rd&&(a.eventId=Rd);"adunit"===fc.el&&(a.fl=!0);var Sd=fc.feature;Sd&&(a.Xo=Sd);var Ae=fc.list;Ae&&(a.playlistId=Ae);var Be=fc.of;Be&&(a.xH=Be);var Jd=fc.osid;Jd&&(a.osid=Jd);var pf=fc.referrer;pf&&(a.referrer=pf);var Oe=fc.sdetail;Oe&&(a.Vy=
  4783. Oe);var Kd=fc.sourceid;Kd&&(a.TEa=Kd);var Ef=fc.ssrt;Ef&&(a.fp="1"==Ef);var Td=fc.subscribed;Td&&(a.subscribed="1"==Td,a.N.subscribed=Td);var ee=fc.uga;ee&&(a.userGenderAge=ee);var Ld=fc.upt;Ld&&(a.Jz=Ld);var zd=fc.vm;zd&&(a.videoMetadata=zd)}var bd=lS(K.videostatsWatchtimeUrl);if(bd){var Md=mS(bd).ald;Md&&(a.ev=Md)}if(a.L("html5_add_per_destination_base_query_for_video_stats_urls")){var Ze={};if(fd){var qf=mS(fd);Ze.playback=qf}if(bd){var Xf=mS(bd);Ze.watchtime=Xf}var se=lS(K.atrUrl);if(se){var rc=
  4784. mS(se);Ze.atr=rc}var Pe=lS(K.engageUrl);if(Pe){var Vh=mS(Pe);Ze.engage=Vh}a.Uo=Ze}if(K.promotedPlaybackTracking){var ie=K.promotedPlaybackTracking;ie.startUrls&&(a.Ty=ie.startUrls);ie.firstQuartileUrls&&(a.wC=ie.firstQuartileUrls);ie.secondQuartileUrls&&(a.yC=ie.secondQuartileUrls);ie.thirdQuartileUrls&&(a.AC=ie.thirdQuartileUrls);ie.completeUrls&&(a.uC=ie.completeUrls);ie.engagedViewUrls&&(1<ie.engagedViewUrls.length&&g.JE(new g.eC("There are more than one engaged_view_urls.")),a.qj=ie.engagedViewUrls[0])}}var ph=
  4785. a.playerResponse.playerCueRanges;ph&&0<ph.length&&(a.cueRanges=ph);var Ni=a.playerResponse.playerCueRangeSet;Ni&&g.MVa(a,Ni);a:{var sf=a.playerResponse.adPlacements;if(sf)for(var df=g.u(sf),te=df.next();!te.done;te=df.next()){var ai=void 0,uc=void 0,wc=null==(ai=te.value.adPlacementRenderer)?void 0:null==(uc=ai.renderer)?void 0:uc.videoAdTrackingRenderer;if(wc){var Hc=wc;break a}}Hc=null}var vj=Hc;K&&K.promotedPlaybackTracking&&vj&&g.JE(new g.eC("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
  4786. vj&&(a.A0=!0);var If=a.playerResponse.playerAds;if(If)for(var Qg=b,sg=g.u(If),Oi=sg.next();!Oi.done;Oi=sg.next()){var bi=Oi.value;if(bi){var Pi=bi.playerLegacyDesktopWatchAdsRenderer;if(Pi){var tf=Pi.playerAdParams;if(tf){"1"==tf.autoplay&&(a.fl=!0,a.mq=!0);a.hv=tf.encodedAdSafetyReason||null;void 0!==tf.showContentThumbnail&&(a.Jl=!!tf.showContentThumbnail);Qg.enabled_engage_types=tf.enabledEngageTypes;break}}}}var hd=a.playerResponse.playerConfig;if(hd){var uf=hd.manifestlessWindowedLiveConfig;
  4787. if(uf){var ci=Number(uf.minDvrSequence),ef=Number(uf.maxDvrSequence),$f=Number(uf.minDvrMediaTimeMs),ag=Number(uf.maxDvrMediaTimeMs),di=Number(uf.startWalltimeMs);ci&&(a.cf=ci);$f&&(a.Za=$f/1E3);ef&&(a.Gh=ef);ag&&(a.Ob=ag/1E3);di&&(a.qc=di/1E3);(ci||$f)&&(ef||ag)&&(a.bb=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Zd=!1)}var Jf=hd.daiConfig;if(Jf){if(Jf.enableDai){a.Gf=!0;var tg=Jf.enableServerStitchedDai;tg&&(a.enableServerStitchedDai=tg);var qh=Jf.enablePreroll;qh&&(a.enablePreroll=qh)}var Rg;if("DAI_TYPE_SS_DISABLED"===
  4788. Jf.daiType||(null==(Rg=Jf.debugInfo)?0:Rg.isDisabledUnpluggedChannel))a.oD=!0;"DAI_TYPE_CLIENT_STITCHED"===Jf.daiType&&(a.Y2=!0)}var ug=hd.audioConfig;if(ug){var ue=ug.loudnessDb;null!=ue&&(a.Of=ue);var Se=ug.trackAbsoluteLoudnessLkfs;null!=Se&&(a.XZ=Se);var je=ug.loudnessTargetLkfs;null!=je&&(a.loudnessTargetLkfs=je);ug.audioMuted&&(a.Fk=!0);ug.muteOnStart&&(a.eW=!0);var rh=ug.loudnessNormalizationConfig;if(rh){rh.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);rh.preserveStatefulLoudnessTarget&&
  4789. (a.preserveStatefulLoudnessTarget=!0);var ff=rh.minimumLoudnessTargetLkfs;null!=ff&&(a.minimumLoudnessTargetLkfs=ff);var gf=rh.maxStatefulTimeThresholdSec;null!=gf&&(a.maxStatefulTimeThresholdSec=gf)}}var Kf=hd.playbackEndConfig;if(Kf){var bg=Kf.endSeconds,Sg=Kf.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(bg&&(a.endSeconds=bg),Sg&&(a.limitedPlaybackDurationInSeconds=Sg))}var ke=hd.fairPlayConfig;if(ke){var vg=ke.certificate;vg&&(a.Wa=oR(vg));var Lf=Number(ke.keyRotationPeriodMs);0<Lf&&(a.My=
  4790. Lf);var Qi=Number(ke.keyPrefetchMarginMs);0<Qi&&(a.Ly=Qi)}var sh=hd.playbackStartConfig;if(sh){a.zH=Number(sh.startSeconds);var fm=sh.liveUtcStartSeconds,gm=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;fm&&!gm&&(a.liveUtcStartSeconds=Number(fm));var kk=sh.startPosition;if(kk){var lk=kk.utcTimeMillis;lk&&!gm&&(a.liveUtcStartSeconds=.001*Number(lk));var wj=kk.streamTimeMillis;wj&&(a.uj=.001*Number(wj))}a.progressBarStartPosition=sh.progressBarStartPosition;a.progressBarEndPosition=sh.progressBarEndPosition}else{var Te=
  4791. hd.skippableSegmentsConfig;if(Te){var De=Te.introSkipDurationMs;De&&(a.lD=Number(De)/1E3);var Yd=Te.outroSkipDurationMs;Yd&&(a.nH=Number(Yd)/1E3)}}var Tg=hd.skippableIntroConfig;if(Tg){var ei=Number(Tg.startMs),hm=Number(Tg.endMs);isNaN(ei)||isNaN(hm)||(a.Mi=ei,a.yf=hm)}var il=hd.streamSelectionConfig;il&&(a.Jd=Number(il.maxBitrate));var xj=hd.vrConfig;xj&&(a.sA="1"==xj.partialSpherical);var th=hd.webDrmConfig;if(th){th.skipWidevine&&(a.fW=!0);var Ug=th.widevineServiceCert;Ug&&(a.Nl=oR(Ug));th.useCobaltWidevine&&
  4792. (a.useCobaltWidevine=!0);th.startWithNoQualityConstraint&&(a.El=!0)}var hf=hd.mediaCommonConfig;if(hf){var fi=hf.dynamicReadaheadConfig;if(fi){a.maxReadAheadMediaTimeMs=fi.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=fi.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=fi.readAheadGrowthRateMs||NaN;var mk,jl=null==hf?void 0:null==(mk=hf.mediaUstreamerRequestConfig)?void 0:mk.videoPlaybackUstreamerConfig;jl&&(a.ji=oR(jl));var gi=null==hf?void 0:hf.sabrContextUpdates;if(gi&&0<gi.length)for(var Ri=
  4793. g.u(gi),Vg=Ri.next();!Vg.done;Vg=Ri.next()){var wg=Vg.value;if(wg.type&&wg.value){var hi={type:wg.type,scope:wg.scope,value:oR(wg.value)||void 0,sendByDefault:wg.sendByDefault};a.sabrContextUpdates.set(wg.type,hi)}}}var ii=hf.serverPlaybackStartConfig;ii&&(a.serverPlaybackStartConfig=ii);hf.useServerDrivenAbr&&(a.nX=!0);var nk=hf.requestPipeliningConfig;nk&&(a.requestPipeliningConfig=nk)}var kl=hd.inlinePlaybackConfig;kl&&(a.mZ=!!kl.showAudioControls);var ok=hd.embeddedPlayerConfig;if(ok){a.embeddedPlayerConfig=
  4794. ok;var Si=ok.embeddedPlayerMode;if(Si){var im=a.U();im.Ea=Si;im.C="EMBEDDED_PLAYER_MODE_PFL"===Si}var vf=ok.permissions;vf&&(a.allowImaMonetization=!!vf.allowImaMonetization)}var cg=hd.ssapConfig;cg&&(a.zZ=cg.ssapPrerollEnabled||!1);var Mf=hd.webPlayerConfig;Mf&&(Mf.gatewayExperimentGroup&&(a.gatewayExperimentGroup=Mf.gatewayExperimentGroup),Mf.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Nf=a.playerResponse.streamingData;if(Nf){var ll=Nf.adaptiveFormats;if(ll){var jm=Nf.streamingUrlTemplate;
  4795. if(a.L("enable_streaming_url_template")&&jm)for(var mc=g.u(ll),ip=mc.next();!ip.done;ip=mc.next()){var yj=ip.value;!yj.url&&yj.distinctParams&&(yj.url=jm+"&"+yj.distinctParams)}}var ml=Nf.formats;if(ml){for(var ji=[],jp=g.u(ml),zj=jp.next();!zj.done;zj=jp.next()){var nl=zj.value;ji.push(nl.itag+"/"+nl.width+"x"+nl.height)}a.iD=ji.join(",");ji=[];for(var km=g.u(ml),tn=km.next();!tn.done;tn=km.next()){var lm=tn.value,ol={itag:lm.itag,type:lm.mimeType,quality:lm.quality},kp=lm.url;kp&&(ol.url=kp);var mm=
  4796. xP(lm),un=mm.GD,vn=mm.ZG,wn=mm.s;mm.zY&&(ol.url=un,ol.sp=vn,ol.s=wn);ji.push(g.ko(ol))}a.Qf=ji.join(",")}var Aj=Nf.hlsFormats;if(Aj){var ki=hd||null,Wg={};if(ki){var pk=ki.audioPairingConfig;if(pk&&pk.pairs)for(var cr=g.u(pk.pairs),xn=cr.next();!xn.done;xn=cr.next()){var dr=xn.value,lp=dr.videoItag;Wg[lp]||(Wg[lp]=[]);Wg[lp].push(dr.audioItag)}}for(var yn={},er=g.u(Aj),Xg=er.next();!Xg.done;Xg=er.next()){var Ti=Xg.value;yn[Ti.itag]=Ti.bitrate}for(var li=[],fr=g.u(Aj),xg=fr.next();!xg.done;xg=fr.next()){var Zd=
  4797. xg.value,Ee={itag:Zd.itag,type:Zd.mimeType,url:Zd.url,bitrate:Zd.bitrate,width:Zd.width,height:Zd.height,fps:Zd.fps},zn=Zd.audioTrack;if(zn){var An=zn.displayName;An&&(Ee.name=An,Ee.audio_track_id=zn.id,zn.audioIsDefault&&(Ee.is_default="1"))}if(Zd.drmFamilies){for(var gr=[],Bn=g.u(Zd.drmFamilies),nm=Bn.next();!nm.done;nm=Bn.next())gr.push(FSa[nm.value]);Ee.drm_families=gr.join(",")}var pl=Wg[Zd.itag];if(pl&&pl.length){Ee.audio_itag=pl.join(",");var hr=yn[pl[0]];hr&&(Ee.bitrate+=hr)}var Ui=mSa(Zd);
  4798. Ui&&(Ee.eotf=Ui);Zd.audioChannels&&(Ee.audio_channels=Zd.audioChannels);li.push(g.ko(Ee))}a.hlsFormats=li.join(",")}var Vi=Nf.licenseInfos;if(Vi&&0<Vi.length){for(var qk={},ql=g.u(Vi),rl=ql.next();!rl.done;rl=ql.next()){var om=rl.value,mp=om.drmFamily,np=om.url;mp&&np&&(qk[FSa[mp]]=np)}a.le=qk}var op=Nf.drmParams;op&&(a.drmParams=op);var Cn=Nf.dashManifestUrl;Cn&&(a.Qc=g.lo(Cn,{cpn:a.clientPlaybackNonce}));var Dn=Nf.hlsManifestUrl;Dn&&(a.hlsvp=Dn);var pp=Nf.probeUrl;pp&&(a.probeUrl=hJ(g.lo(pp,{cpn:a.clientPlaybackNonce})));
  4799. var yg=Nf.serverAbrStreamingUrl;yg&&(a.Yo=new g.sP(yg,!0))}var mi=a.playerResponse.trackingParams;mi&&(a.ra=mi);var pc=a.playerResponse.videoDetails;if(pc){var uh=b,qp=pc.videoId;qp&&(a.videoId=qp,uh.video_id||(uh.video_id=qp));var pm=pc.channelId;pm&&(a.N.uid=pm.substr(2));var qm=pc.title;qm&&(a.title=qm,uh.title||(uh.title=qm));var sl=pc.lengthSeconds;sl&&(a.lengthSeconds=Number(sl),uh.length_seconds||(uh.length_seconds=sl));var rp=pc.keywords;rp&&(a.keywords=EVa(rp));var sp=pc.channelId;sp&&(a.Cl=
  4800. sp,uh.ucid||(uh.ucid=sp));var tp=pc.viewCount;tp&&(a.rawViewCount=Number(tp));var Bj=pc.author;Bj&&(a.author=Bj,uh.author||(uh.author=Bj));var Wi=pc.shortDescription;Wi&&(a.shortDescription=Wi);var rk=pc.isCrawlable;rk&&(a.isListed=rk);var rm=pc.musicVideoType;rm&&(a.musicVideoType=rm);var sm=pc.isLive;null!=sm&&(a.isLivePlayback=sm);if(sm||pc.isUpcoming)a.isPremiere=!pc.isLiveContent;var up=pc.thumbnail;up&&(a.Z=kS(up));var sk=pc.isExternallyHostedPodcast;sk&&(a.isExternallyHostedPodcast=sk);var Cj=
  4801. pc.viewerLivestreamJoinPosition;if(null==Cj?0:Cj.utcTimeMillis)a.aB=bf(Cj.utcTimeMillis);var tk=hd||null,En=b;pc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);pc.isUpcoming&&(a.isUpcoming=!0);if(pc.isPostLiveDvr){a.Zd=!0;var ir=pc.latencyClass;ir&&(a.latencyClass=NVa[ir]||"UNKNOWN");pc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var vp=!1;if(a.zb)a.allowLiveDvr=jR()?!0:tB&&5>IS?!1:!0,a.isLivePlayback=!0;else if(pc.isLive){En.livestream="1";a.allowLiveDvr=pc.isLiveDvrEnabled?
  4802. jR()?!0:tB&&5>IS?!1:!0:!1;a.La=27;pc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var tl=pc.latencyClass;tl&&(a.latencyClass=NVa[tl]||"UNKNOWN");var ul=pc.liveChunkReadahead;ul&&(a.liveChunkReadahead=ul);var ni=tk&&tk.livePlayerConfig;if(ni){ni.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);ni.hasSubfragmentedWebm&&(a.OE=!0);ni.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var wp=ni.liveExperimentalContentId;wp&&(a.liveExperimentalContentId=Number(wp));var xp=ni.isLiveHeadPlayable;
  4803. a.L("html5_live_head_playable")&&null!=xp&&(a.isLiveHeadPlayable=xp)}vp=!0}else pc.isUpcoming&&(vp=!0);vp&&(a.isLivePlayback=!0,En.adformat&&"8"!==En.adformat.split("_")[1]||a.Ea.push("heartbeat"),a.Qp=!0)}var yp=pc.isPrivate;void 0!==yp&&(a.isPrivate=wB(a.isPrivate,yp))}if(ia){var Fn=pc||null,tm=!1,uk=ia.errorScreen;tm=uk&&(uk.playerLegacyDesktopYpcOfferRenderer||uk.playerLegacyDesktopYpcTrailerRenderer||uk.ypcTrailerRenderer)?!0:Fn&&Fn.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ia.status);
  4804. if(!tm){a.errorCode=GUa(ia.errorCode)||"auth";var vl=uk&&uk.playerErrorMessageRenderer;if(vl){a.playerErrorMessageRenderer=vl;var Gn=vl.reason;Gn&&(a.errorReason=g.lF(Gn));var um=vl.subreason;um&&(a.An=g.lF(um),a.Ny=um)}else a.errorReason=ia.reason||null;var zp=ia.status;if("LOGIN_REQUIRED"===zp)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===zp)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===zp){var Ap=ia.errorScreen,Bp=Ap&&Ap.playerKavRenderer;a.errorDetail=Bp&&Bp.kavUrl?"4":"3"}else a.errorDetail=
  4805. ia.isBlockedInRestrictedMode?"5":"0"}}var wl=a.playerResponse.interstitialPods;wl&&UUa(a,wl);a.Va&&a.eventId&&(a.Va=QA(a.Va,{ei:a.eventId}));var xl=a.playerResponse.captions;if(xl&&xl.playerCaptionsTracklistRenderer)a:{var zg=xl.playerCaptionsTracklistRenderer;a.captionTracks=[];if(zg.captionTracks)for(var vh=g.u(zg.captionTracks),oi=vh.next();!oi.done;oi=vh.next()){var jf=oi.value,Hn=BVa(jf.baseUrl);if(!Hn)break a;var Cp={is_translateable:!!jf.isTranslatable,languageCode:jf.languageCode,languageName:jf.name&&
  4806. g.lF(jf.name),url:Hn,vss_id:jf.vssId,kind:jf.kind};Cp.name=jf.trackName;Cp.displayName=jf.name&&g.lF(jf.name);a.captionTracks.push(new g.fS(Cp))}a.HC=zg.audioTracks||[];a.oY=zg.defaultAudioTrackIndex||0;a.uv=[];if(zg.translationLanguages)for(var In=g.u(zg.translationLanguages),yl=In.next();!yl.done;yl=In.next()){var Ag=yl.value,Bg={};Bg.languageCode=Ag.languageCode;Bg.languageName=g.lF(Ag.languageName);if(Ag.translationSourceTrackIndices){Bg.translationSourceTrackIndices=[];for(var vk=g.u(Ag.translationSourceTrackIndices),
  4807. Dp=vk.next();!Dp.done;Dp=vk.next())Bg.translationSourceTrackIndices.push(Dp.value)}if(Ag.excludeAudioTrackIndices){Bg.excludeAudioTrackIndices=[];for(var wk=g.u(Ag.excludeAudioTrackIndices),Dj=wk.next();!Dj.done;Dj=wk.next())Bg.excludeAudioTrackIndices.push(Dj.value)}a.uv.push(Bg)}a.IC=[];if(zg.defaultTranslationSourceTrackIndices)for(var zl=g.u(zg.defaultTranslationSourceTrackIndices),vm=zl.next();!vm.done;vm=zl.next())a.IC.push(vm.value);a.tv=!!zg.contribute&&!!zg.contribute.captionsMetadataRenderer}a.clipConfig=
  4808. a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.zH=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&WUa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Jn;a.compositeLiveIngestionOffsetToken=null==(Jn=a.playerResponse.playbackTracking)?void 0:Jn.compositeLiveIngestionOffsetToken;var Ep;
  4809. a.compositeLiveStatusToken=null==(Ep=a.playerResponse.playbackTracking)?void 0:Ep.compositeLiveStatusToken}zVa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Fp=b.hlsdvr;null!=Fp&&(a.allowLiveDvr="1"==Fp?jR()?!0:tB&&5>IS?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.hv||(a.hv=b.encoded_ad_safety_reason||null);a.YV=b.agcid||null;a.vC=b.ad_id||null;a.zC=b.ad_sys||null;a.gD=b.encoded_ad_playback_context||null;a.Fk=wB(a.Fk,b.infringe||b.muted);a.xca=b.authkey;a.P8=b.authuser;a.mutedAutoplay=wB(a.mutedAutoplay,
  4810. b&&b.playmuted);a.uM=wB(a.uM,b&&b.mutedautoplay);var wm=b.length_seconds;wm&&(a.lengthSeconds="string"===typeof wm?bf(wm):wm);if(a.isAd()||a.Tm||!g.FB(g.JR(a.Da)))a.endSeconds=yB(a.endSeconds,a.nH||b.end||b.endSeconds);else{var Al=a.lengthSeconds;switch(g.JR(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<Al?a.limitedPlaybackDurationInSeconds=30:30>Al&&10<Al&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=
  4811. .2*Al}}a.ra=zB(a.ra,b.itct);a.pD=wB(a.pD,b.noiba);a.rD=wB(a.rD,b.is_live_destination);a.isLivePlayback=wB(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Zb();b.isUpcoming&&(a.isUpcoming=wB(a.isUpcoming,b.isUpcoming));a.Zd=wB(a.Zd,b.post_live_playback);a.bb&&(a.Zd=!1);a.isMdxPlayback=wB(a.isMdxPlayback,b.mdx);var Bl=b.mdx_control_mode;Bl&&(a.mdxControlMode="number"===typeof Bl?Bl:bf(Bl));a.isInlinePlaybackNoAd=wB(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);
  4812. a.Tb=yB(a.Tb,b.reload_count);a.reloadReason=zB(a.reloadReason,b.reload_reason);a.Jl=wB(a.Jl,b.show_content_thumbnail);a.fE=wB(a.fE,b.utpsa);a.wM=wB(a.wM,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.fN=b.tkn||null;var Gp=jS(b);0<Object.keys(Gp).length&&(a.Z=Gp);a.Ca=zB(a.Ca,b.vvt);a.mdxEnvironment=zB(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);
  4813. a.Vea=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=zB(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?yB(0,b.index):yB(a.playlistIndex,b.index));a.IV=b.pyv_view_beacon_url;a.NV=b.pyv_quartile25_beacon_url;a.SV=b.pyv_quartile50_beacon_url;a.VV=b.pyv_quartile75_beacon_url;a.LV=b.pyv_quartile100_beacon_url;if(!a.L("html5_remarketing_urls_cleanup")){var Cl=b.remarketing_url;Cl&&(a.remarketingUrl=Cl);var Kn=b.ppv_remarketing_url;Kn&&(a.ppvRemarketingUrl=
  4814. Kn)}var Ln=b.session_data;!a.XV&&Ln&&(a.XV=LA(Ln,"&").feature);a.isFling=1==yB(a.isFling?1:0,b.is_fling);a.vnd=yB(a.vnd,b.vnd);a.forceAdsUrl=zB(a.forceAdsUrl,b.force_ads_url);a.Yi=zB(a.Yi,b.ctrl);a.Dj=zB(a.Dj,b.ytr);a.Xv=b.ytrcc;a.ZV=b.ytrexp;a.DC=b.ytrext;a.yd=zB(a.yd,b.adformat);a.PA=zB(a.PA,b.attrib);a.slotPosition=yB(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.fp=wB(a.fp,b.ssrt);a.videoId=AB(b)||a.videoId;a.G=zB(a.G,b.vss_credentials_token);a.Rm=zB(a.Rm,b.vss_credentials_token_type);
  4815. a.wj=wB(a.wj,b.audio_only);a.nN=wB(a.nN,b.aac_high);a.BH=wB(a.BH,b.prefer_low_quality_audio);a.jN=wB(a.jN,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.Wo=a.Wo.concat(b.qoe_cat.split(","))):a.rh=zB(a.rh,b.qoe_cat);a.Vm=wB(a.Vm,b.download_media);var Mn=b.prefer_gapless;var ft=null!=Mn?wB(a.Y,Mn):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=ft;bJa(a.playerResponse)&&(a.adModule=!0,a.Ea.push("ad"));var xm=b.adaptive_fmts;xm&&(a.adaptiveFormats=xm,a.ma("adpfmts",
  4816. {},!0));var Hp=b.allow_embed;Hp&&(a.allowEmbed="1"==Hp);var Ip=b.backgroundable;Ip&&(a.backgroundable="1"==Ip);var Jp=b.autonav;Jp&&(a.isAutonav="1"==Jp);var Nn=b.autoplay;Nn&&(a.mq="1"==Nn,a.fl="1"==Nn);var ym=b.iv_load_policy;ym&&(a.annotationsLoadPolicy=xB(a.annotationsLoadPolicy,ym,KR));var Dl=b.cc_lang_pref;Dl&&(a.captionsLanguagePreference=zB(Dl,a.captionsLanguagePreference));var On=b.cc_load_policy;On&&(a.wH=xB(a.wH,On,KR));var Pn;a.deviceCaptionsOn=null!=(Pn=b.device_captions_on)?Pn:void 0;
  4817. var Kp;a.KY=null!=(Kp=b.device_captions_lang_pref)?Kp:"";var Qn;a.lN=null!=(Qn=b.viewer_selected_caption_langs)?Qn:[];if(!a.L("html5_enable_ssap_entity_id")){var jr=b.cached_load;jr&&(a.mp=wB(a.mp,jr))}"0"==b.dash&&(a.cD=!0);var Lp=b.dashmpd;Lp&&(a.Qc=g.lo(Lp,{cpn:a.clientPlaybackNonce}));var Rn=b.delay;Rn&&(a.Gb=bf(Rn));var kr=a.nH||b.end;void 0!=kr&&(a.clipEnd=yB(a.clipEnd,kr));var le=b.fmt_list;le&&(a.iD=le);b.heartbeat_preroll&&a.Ea.push("heartbeat");a.Sm=-Math.floor(10*Math.random());a.uy=-Math.floor(40*
  4818. Math.random());var ve=b.is_listed;ve&&(a.isListed=wB(a.isListed,ve));var Fe=b.is_private;Fe&&(a.isPrivate=wB(a.isPrivate,Fe));var Sn=b.is_dni;Sn&&(a.Hf=wB(a.Hf,Sn));var Tn=b.dni_color;Tn&&(a.zp=zB(a.zp,Tn));var Mp=b.pipable;Mp&&(a.pipable=wB(a.pipable,Mp));a.aW=a.pipable&&a.Da.bq;a.qW=a.aW&&!a.Da.showMiniplayerButton;var lr=b.paid_content_overlay_duration_ms;lr&&(a.paidContentOverlayDurationMs=bf(lr));var Np=b.paid_content_overlay_text;Np&&(a.paidContentOverlayText=Np);var Op=b.url_encoded_fmt_stream_map;
  4819. Op&&(a.Qf=Op);var Pp=b.hls_formats;Pp&&(a.hlsFormats=Pp);var Xi=b.hlsvp;Xi&&(a.hlsvp=Xi);var wh=b.live_start_walltime;wh&&(a.vF="number"===typeof wh?wh:bf(wh));var pi=b.live_manifest_duration;pi&&(a.Gl="number"===typeof pi?pi:bf(pi));var Qp=b.player_params;Qp&&(a.playerParams=Qp);var mr=b.partnerid;mr&&(a.La=yB(a.La,mr));var zm=b.probe_url;zm&&(a.probeUrl=hJ(g.lo(zm,{cpn:a.clientPlaybackNonce})));var Am=b.pyv_billable_url;Am&&TBa(Am)&&(a.qj=Am);var Bm=b.pyv_conv_url;Bm&&TBa(Bm)&&(a.JV=Bm);FVa(a,b);
  4820. 0<a.startSeconds||(a.startSeconds=yB(a.startSeconds,a.zH||a.lD||b.start||b.startSeconds),a.Kb=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Rp=b.live_utc_start;if(null!=Rp)a.liveUtcStartSeconds=Number(Rp);else{var Ej=a.startSeconds;Ej&&isFinite(Ej)&&1E9<Ej&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Cm=b.utc_start_millis;Cm&&(a.liveUtcStartSeconds=.001*Number(Cm))}var Yi=b.stream_time_start_millis;Yi&&(a.uj=.001*Number(Yi));
  4821. var Un=a.lD||b.start;void 0==Un||"1"==b.resume||a.isLivePlayback||(a.clipStart=yB(a.clipStart,Un));var Vn=b.url_encoded_third_party_media;Vn&&(a.Ml=Bpa(Vn));var Sp=b.ypc_offer_button_formatted_text;if(Sp){var nr=JSON.parse(Sp);a.oN=null!=nr?nr:null;a.EX=Sp}var Zi=b.ypc_offer_button_text;Zi&&(a.iC=Zi);var El=b.ypc_offer_description;El&&(a.Tp=El);var Fj=b.ypc_offer_headline;Fj&&(a.qC=Fj);var or=b.ypc_full_video_message;or&&(a.Gp=or);var Wn=b.ypc_offer_id;Wn&&(a.Ol=Wn);var Tp=b.ypc_buy_url;Tp&&(a.oB=
  4822. Tp);var Xn=b.ypc_item_thumbnail;Xn&&(a.BB=Xn);var pr=b.ypc_item_title;pr&&(a.Pp=pr);var Yn=b.ypc_item_url;Yn&&(a.DB=Yn);var Up=b.ypc_vid;Up&&(a.jq=Up);b.ypc_overlay_timeout&&(a.bq=Number(b.ypc_overlay_timeout));var xk=b.ypc_trailer_player_vars;xk&&(a.Pl=NA(xk));var Fl=b.ypc_original_itct;Fl&&(a.E3=Fl);a.Cl=zB(a.Cl,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&
  4823. (a.N.subscribed=b.subscribed);a.N.focEnabled=wB(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=wB(a.N.rmktEnabled,b.rmktEnabled);a.gz=b.storyboard_spec||null;a.Py=b.live_storyboard_spec||null;a.XT=b.iv_endscreen_url||null;a.cF=wB(a.cF,b.iv3_module);a.Qp=wB(a.Qp,b.ypc_license_checker_module);a.Bj=wB(a.Bj,b.ypc_module);a.cg=wB(a.cg,b.ypc_clickwrap_module);a.Bj&&a.Ea.push("ypc");a.cg&&a.Ea.push("ypc_clickwrap");a.xV={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,
  4824. cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};AVa(a,b);var Dm=b.cotn;Dm&&(a.cotn=Dm);if(OVa(a))JS(a)&&(a.isLivePlayback&&a.Qc&&(a.Li=!0),a.Wa&&(a.cn=!0));else if(PVa(a))a.Li=
  4825. !0;else{var qr,Yg,Of=(null==(qr=a.playerResponse)?void 0:null==(Yg=qr.streamingData)?void 0:Yg.adaptiveFormats)||[];if(0<Of.length)var dg=QVa(a,Of);else{var rr=a.adaptiveFormats;if(rr&&!JS(a)){KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(ZSa=!0);var yk=LS(rr),$i=a.le,xh=a.lengthSeconds,eg=a.isLivePlayback,Cg=a.Zd,qi=a.Da,gt=HSa(yk);if(eg||Cg){var Zg=new IQ("",null==qi?void 0:qi.experiments,!0);Zg.Zb=!0;Zg.isManifestless=!0;Zg.B=!Cg;Zg.isLive=!Cg;Zg.Zd=Cg;for(var sr=g.u(yk),Vp=sr.next();!Vp.done;Vp=
  4826. sr.next()){var zk=Vp.value,tr=GSa(zk,$i),yh=KQ(zk.url,zk.sp,zk.s),Zn=yh.get("id");Zn&&Zn.includes("%7E")&&(Zg.Y=!0);var Wp=Number(zk.target_duration_sec)||5,ht=Number(zk.max_dvr_duration_sec)||14400,Xp=Number(yh.get("mindsq")||yh.get("min_sq")||"0"),ur=Number(yh.get("maxdsq")||yh.get("max_sq")||"0")||Infinity;Zg.cf=Zg.cf||Xp;Zg.Gh=Zg.Gh||ur;var $n=!rK(tr.mimeType);yh&&HQ(Zg,new zQ(yh,tr,{Gj:Wp,jn:$n,Rq:ht,cf:Xp,Gh:ur,MA:300,Zd:Cg}))}var vr=Zg}else{if("FORMAT_STREAM_TYPE_OTF"===gt){var Em=xh;Em=void 0===
  4827. Em?0:Em;var zh=new IQ("",null==qi?void 0:qi.experiments,!1);zh.duration=Em||0;for(var Gj=g.u(yk),Ak=Gj.next();!Ak.done;Ak=Gj.next()){var Hj=Ak.value,Yp=GSa(Hj,$i,zh.duration),Fm=KQ(Hj.url,Hj.sp,Hj.s);if(Fm)if("FORMAT_STREAM_TYPE_OTF"===Yp.streamType)HQ(zh,new AQ(Fm,Yp,"sq/0"));else{var it=jQ(Hj.init),jt=jQ(Hj.index);HQ(zh,new FQ(Fm,Yp,it,jt))}}zh.isOtf=!0;var Ij=zh}else{var aj=xh;aj=void 0===aj?0:aj;var Ah=new IQ("",null==qi?void 0:qi.experiments,!1);Ah.duration=aj||0;for(var Bk=g.u(yk),Ck=Bk.next();!Ck.done;Ck=
  4828. Bk.next()){var Dk=Ck.value,wr=GSa(Dk,$i,Ah.duration),kt=jQ(Dk.init),Zp=jQ(Dk.index),$p=KQ(Dk.url,Dk.sp,Dk.s);$p&&HQ(Ah,new FQ($p,wr,kt,Zp))}Ij=Ah}vr=Ij}var Gl=vr;if(0<yk.length){var bj=yk[0];if("hangouts-meet"===a.U().playerStyle&&bj.url){var cj=g.OA(bj.url);a.hp=a.hp||Number(cj.expire)}}var Gm=a.isLivePlayback&&!a.Zd&&!a.bb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!MS(a)&&Gm&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Da.ra&&(Gl.Va=!0));Gl.Sa=NS(a);dg=Gl}else dg=null;a.ma("pafmts",{isManifestFilled:!!dg})}if(dg){RVa(a,
  4829. dg);var xr=!0}else xr=!1;xr?a.enableServerStitchedDai=a.enableServerStitchedDai&&OS(a):!a.Qc||"yt"===a.Da.ra&&a.Zb()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.Li=!0)}var aq=b.adpings;aq&&(a.fv=aq?NA(aq):null);var ao=b.feature;ao&&(a.Xo=ao);var yr=b.referrer;yr&&(a.referrer=yr);a.clientScreenNonce=zB(a.clientScreenNonce,b.csn);a.EG=yB(a.EG,b.root_ve_type);a.To=yB(a.To,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.bA=wB(a.bA,
  4830. b.upg_content_filter_mode);a.unpluggedFilterModeType=yB(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var bo=b.unplugged_location_info;bo&&(a.qa=bo);var bq=b.unplugged_partner_opt_out;bq&&(a.tC=zB("",bq));a.Hv=wB(a.Hv,b.disable_watch_next);a.Zm=zB(a.Zm,b.internal_ip_override);a.qD=!!b.is_yto_interstitial;(a.interstitials.length||a.qD)&&a.Ea.push("yto");var cq=b.Cm;cq&&(a.Cm=cq);b.RL&&(a.RL=b.RL);var Hl;a.Sa=null!=(Hl=b.csi_timer)?Hl:"";a.Ym=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);
  4831. var kf=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&kf&&IUa(a,kf);if(null==kf?0:kf.ustreamerConfig)a.Oo=oR(kf.ustreamerConfig);var ri,dj,co=null==kf?void 0:null==(ri=kf.loggingContext)?void 0:null==(dj=ri.qoeLoggingContext)?void 0:dj.serializedContextData;co&&(a.u3=co);g.BR(a.Da)&&a.Da.Il&&(a.embedsRct=zB(a.embedsRct,b.rct),a.embedsRctn=zB(a.embedsRctn,b.rctn));a.Hl=a.Hl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
  4832. DVa=function(a,b,c){var d,e=null==(d=b.cpnInfo)?void 0:d.cpn;a.playerResponseCpn=null!=e?e:"";var f;return(null==(f=b.cacheMetadata)?0:f.isCacheHit)||a.mp||!e?"":(SVa.has(e)?c="":(b=TVa.push(e),SVa.add(e),b>(null!=c?c:50)&&(c=TVa.shift())&&SVa.delete(c),c=e),e!==c&&a.EB("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
  4833. zVa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Na=c;var e=a.Na.playerCueRangeSet;e&&g.MVa(a,e);var f=a.Na.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,UVa),a.L("web_player_autonav_use_server_provided_state")&&VVa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=
  4834. m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.lF(p.title)),p.subtitle&&(b.subtitle=g.lF(p.subtitle)))}g.GR(a.Da)&&(a.je=!!h.addToMenu);WVa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.w9=g.V(q,XVa));var r,t,v,w=g.V(null==
  4835. (r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,YVa);if(w){a.kD=Number(null==w?void 0:w.durationMs)||NaN;if(null==w?0:w.infoPanelOverviewViewModel)a.xf=null==w?void 0:w.infoPanelOverviewViewModel;if(null==w?0:w.infoPanelDetailsViewModel)a.Fl=null==w?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,D,F=null==(A=a.getWatchNextResponse())?void 0:null==(D=A.contents)?void 0:D.twoColumnWatchNextResults;
  4836. if(F){var H=F.desktopOverlay&&g.V(F.desktopOverlay,ZVa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.je=!1))}n&&$Va(a,b,n);var L=yB(0,b.autoplay_count),M=a.getWatchNextResponse(),R,ea=null==(R=M.contents)?void 0:R.twoColumnWatchNextResults,la,ka,ia,sa=null==(la=M.playerOverlays)?void 0:null==(ka=la.playerOverlayRenderer)?void 0:null==(ia=ka.autoplay)?void 0:ia.playerOverlayAutoplayRenderer,aa=ZUa(a),U,Ha=null==(U=M.contents)?void 0:U.singleColumnWatchNextResults;
  4837. if(Ha){var x;if((null==(x=Ha.autoplay)?0:x.autoplay)&&!Ha.playlist){var ba=Ha.autoplay.autoplay.sets,La={},ab=new g.pS(a.U()),lb=null,Qa;if(ba){for(var Ua=g.u(ba),jb=Ua.next();!jb.done;jb=Ua.next()){var rb=jb.value.autoplayVideoRenderer;if(rb&&rb.compactVideoRenderer){lb=rb.compactVideoRenderer;break}}if(Qa=ba[0].autoplayVideo){var pb=Qa.clickTrackingParams;pb&&(La.itct=pb);La.autonav="1";La.playnext=String(L)}}else La.feature="related-auto";var B=g.V(Qa,g.PS);if(lb){ab.videoId=lb.videoId;var C=lb.shortBylineText;
  4838. C&&(ab.author=g.lF(C));var E=lb.title;E&&(ab.title=g.lF(E))}else null!=B&&B.videoId&&(ab.videoId=B.videoId);ab.WD=La;a.suggestions=[];a.qv=ab}}if(aa){for(var J=[],K=g.u(aa),ca=K.next();!ca.done;ca=K.next()){var ta=ca.value,na=void 0,O=null;if(ta.endScreenVideoRenderer){var Z=ta.endScreenVideoRenderer,ya=Z.title;O=new g.pS(a.U());O.videoId=Z.videoId;O.lengthSeconds=Z.lengthInSeconds||0;var xa=Z.publishedTimeText;xa&&(O.publishedTimeText=g.lF(xa));var Za=Z.shortBylineText;Za&&(O.author=g.lF(Za));var Wa=
  4839. Z.shortViewCountText;Wa&&(O.shortViewCount=g.lF(Wa));if(ya){O.title=g.lF(ya);var zb=ya.accessibility;if(zb){var Rb=zb.accessibilityData;Rb&&Rb.label&&(O.ariaLabel=Rb.label)}}var eb=Z.navigationEndpoint;if(eb){na=eb.clickTrackingParams;var Ub=g.V(eb,g.PS),hc=g.V(eb,g.yF);Ub?O.XD=Ub:null!=hc&&(O.watchUrl=hc.url)}var Dc=Z.thumbnailOverlays;if(Dc)for(var Zb=g.u(Dc),vc=Zb.next();!vc.done;vc=Zb.next()){var Wc=vc.value.thumbnailOverlayTimeStatusRenderer;if(Wc)if("LIVE"===Wc.style){O.isLivePlayback=!0;break}else if("UPCOMING"===
  4840. Wc.style){O.isUpcoming=!0;break}}O.Z=kS(Z.thumbnail)}else if(ta.endScreenPlaylistRenderer){var Sc=ta.endScreenPlaylistRenderer,Ec=Sc.navigationEndpoint;if(!Ec)continue;var Fc=g.V(Ec,g.PS);if(!Fc)continue;var Xb=Fc.videoId;O=new g.oS(a.U());O.playlistId=Sc.playlistId;O.playlistLength=Number(Sc.videoCount)||0;O.j=Xb||null;O.videoId=Xb;var yd=Sc.title;yd&&(O.title=g.lF(yd));var fd=Sc.shortBylineText;fd&&(O.author=g.lF(fd));na=Ec.clickTrackingParams;O.Z=kS(Sc.thumbnail)}O&&(na&&(O.sessionData={itct:na}),
  4841. J.push(O))}a.suggestions=J}if(sa){a.zV=!!sa.preferImmediateRedirect;a.Pf=a.Pf||!!sa.webShowNewAutonavCountdown;a.Kl=a.Kl||!!sa.webShowBigThumbnailEndscreen;if(a.Pf||a.Kl){var fc=ea||null,$b=new g.pS(a.U());$b.videoId=sa.videoId;var Gc=sa.videoTitle;if(Gc){$b.title=g.lF(Gc);var Jb=Gc.accessibility;if(Jb){var ad=Jb.accessibilityData;ad&&ad.label&&($b.ariaLabel=ad.label)}}var sd=sa.byline;sd&&($b.author=g.lF(sd));var Pb=sa.publishedTimeText;Pb&&($b.publishedTimeText=g.lF(Pb));var de=sa.shortViewCountText;
  4842. de&&($b.shortViewCount=g.lF(de));var Rd=sa.thumbnailOverlays;if(Rd)for(var Sd=g.u(Rd),Ae=Sd.next();!Ae.done;Ae=Sd.next()){var Be=Ae.value.thumbnailOverlayTimeStatusRenderer;if(Be)if("LIVE"===Be.style){$b.isLivePlayback=!0;break}else if("UPCOMING"===Be.style){$b.isUpcoming=!0;break}else if("DEFAULT"===Be.style&&Be.text){$b.lengthText=g.lF(Be.text);var Jd=Be.text.accessibility;if(Jd){var pf=Jd.accessibilityData;pf&&pf.label&&($b.Xw=pf.label||"")}break}}$b.Z=kS(sa.background);var Oe=sa.nextButton;if(Oe){var Kd=
  4843. Oe.buttonRenderer;if(Kd){var Ef=Kd.navigationEndpoint;if(Ef){var Td=g.V(Ef,g.PS);Td&&($b.XD=Td)}}}if(sa.topBadges){var ee=sa.topBadges[0];if(ee){var Ld=g.V(ee,aWa);Ld&&"BADGE_STYLE_TYPE_PREMIUM"===Ld.style&&($b.RL=!0)}}var zd=sa.alternativeTitle;zd&&($b.Os=g.lF(zd));var bd={autonav:"1",playnext:String(L)};$b.playlistId&&(bd.autoplay="1");if(fc){var Md,Ze,qf,Xf,se=null==(Md=fc.autoplay)?void 0:null==(Ze=Md.autoplay)?void 0:null==(qf=Ze.sets)?void 0:null==(Xf=qf[0])?void 0:Xf.autoplayVideo;if(se){var rc=
  4844. se.clickTrackingParams;rc&&(bd.itct=rc);var Pe=g.V(se,g.PS);Pe&&($b.xW=Pe)}}else if(sa){var Vh,ie,ph,Ni=null==(Vh=sa.nextButton)?void 0:null==(ie=Vh.buttonRenderer)?void 0:null==(ph=ie.navigationEndpoint)?void 0:ph.clickTrackingParams;Ni&&(bd.itct=Ni)}bd.itct||(bd.feature="related-auto");$b.WD=bd;a.suggestions||(a.suggestions=[]);a.qv=$b}null!=sa.countDownSecs&&(a.EW=1E3*sa.countDownSecs);null!=sa.countDownSecsForFullscreen&&(a.GC=0<=sa.countDownSecsForFullscreen?1E3*sa.countDownSecsForFullscreen:
  4845. -1);if(a.L("web_player_autonav_next_button_renderer")){var sf;a.lda=null==(sf=sa.nextButton)?void 0:sf.buttonRenderer}var df;a.Rca=null==(df=sa.cancelButton)?void 0:df.buttonRenderer;a.L("web_autonav_color_transition")&&sa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(sa.watchToWatchTransitionRenderer,bWa))}var te=ZUa(a);if(te){var ai,uc,wc,Hc=null==te?void 0:null==(ai=te[0])?void 0:null==(uc=ai.endScreenVideoRenderer)?void 0:null==(wc=uc.navigationEndpoint)?void 0:wc.clickTrackingParams,
  4846. vj=g.QS(a);Hc&&vj&&(vj.sessionData={itct:Hc})}a.Na.currentVideoThumbnail&&(a.Z=kS(a.Na.currentVideoThumbnail));var If,Qg,sg,Oi,bi,Pi=null==(If=a.Na)?void 0:null==(Qg=If.contents)?void 0:null==(sg=Qg.twoColumnWatchNextResults)?void 0:null==(Oi=sg.results)?void 0:null==(bi=Oi.results)?void 0:bi.contents;if(Pi&&Pi[1]){var tf,hd,uf,ci,ef=null==(tf=Pi[1].videoSecondaryInfoRenderer)?void 0:null==(hd=tf.owner)?void 0:null==(uf=hd.videoOwnerRenderer)?void 0:null==(ci=uf.thumbnail)?void 0:ci.thumbnails;ef&&
  4847. ef.length&&(a.profilePicture=ef[ef.length-1].url)}var $f=AB(b),ag,di=null==(ag=a.getWatchNextResponse())?void 0:ag.onResponseReceivedEndpoints;if(di)for(var Jf=g.u(di),tg=Jf.next();!tg.done;tg=Jf.next()){var qh=tg.value;g.V(qh,RS)&&(a.ZT=g.V(qh,RS));var Rg=g.V(qh,cWa),ug=void 0;if(null==(ug=Rg)?0:ug.entityKeys)a.Qy=Rg.entityKeys||[],Rg.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Rg.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var ue=g.SS.getState().entities,Se=g.oO("visibility_override","markersVisibilityOverrideEntity");
  4848. var je=qO(ue,"markersVisibilityOverrideEntity",Se);a.Be=(null==je?void 0:je.videoId)===(a.videoId||$f)&&(null==je?0:je.visibilityOverrideMarkersKey)?je.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.qa(a.Be))}}};
  4849. VVa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
  4850. dWa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
  4851. VS=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&TS(a)&&(b=!1);var c=!!a.j&&a.j.Zb,d=a.Da,e=a.hQ(),f=US(a),h=a.nN,l=b,m=a.isOtf();b=a.CN();var n=a.zb,p=a.Rf,q=eWa(a),r=new dTa(d);if(d.zc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.La=h&&d.N;r.Rf=p;g.nB("windows nt 5.1")&&!g.bR&&(r.zo=!0);if(f=e)f=g.VR(d)?kUa(d):!1;f&&(r.Ca=!0);l&&(r.zo=!0,r.qc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.zo=!0);"picasaweb"===d.playerStyle&&(m&&(r.zo=!1),r.Ga=!1);n&&(r.zo=!0);qP(d.G,
  4852. rP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.EI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.EI(d.experiments,"html5_min_selectable_quality_ordinal");zR&&(r.Tb=480);if(c||e)r.Ga=!1;r.gb=!1;r.disableAv1=q;c=fTa(d,r.j,void 0,r.disableAv1);0<c&&2160>c&&(EK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+EK(),
  4853. r.jj=c);2160<=c&&(r.Ea=!0);VOa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Bc=!1);r.CN=b;r.Va=g.VC||rqa()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");qB()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.wy&&(r.qa=a.wy),a.vy&&(r.C=a.vy));r.Sa=a.isLivePlayback&&a.Ui()&&a.Da.L("html5_drm_live_audio_51");
  4854. r.zb=a.dD;return a.nf=r};
  4855. eWa=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&TS(a)?!0:!1};
  4856. gWa=function(a){eH("drm_pb_s",void 0,a.Sa);a.Wa||a.j&&mP(a.j);var b={};a.j&&(b=hQa(a.Gv,VS(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
  4857. b=new cR(b,a.Da,a.fW,a.useCobaltWidevine?qB()?fWa(a):!1:!1,function(c,d){a.ma(c,d)});
  4858. g.N(a,b);a.cn=!1;a.loading=!0;lTa(b,function(c){eH("drm_pb_f",void 0,a.Sa);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Wa=a.Wa;e.My=a.My;e.Ly=a.Ly;break;case "widevine":e.Nl=a.Nl}a.Vo=c;if(0<a.Vo.length&&(a.K=a.Vo[0],a.Da.zc())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ma("drmProbe",c)}GS(a)})};
  4859. QVa=function(a,b){if(0===b.length||JS(a))return null;KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(ZSa=!0);var c=a.le;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Zd,h=a.Da,l=ISa(b);if(e||f){h=new IQ("",h.experiments,!0);h.B=!f;h.Zb=!0;h.isManifestless=!0;h.isLive=!f;h.Zd=f;b=g.u(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=JQ(m,c);e=xP(m);e=KQ(e.GD||m.url||"",e.ZG,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Y=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
  4860. var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.cf=h.cf||n;h.Gh=h.Gh||p;var q=!rK(d.mimeType);e&&HQ(h,new zQ(e,d,{Gj:l,jn:q,Rq:m,cf:n,Gh:p,MA:300,Zd:f}))}c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new IQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=JQ(b,c,f.duration),e=xP(b),(e=KQ(e.GD||b.url||"",e.ZG,e.s))&&("FORMAT_STREAM_TYPE_OTF"===d.streamType?HQ(f,new AQ(e,d,"sq/0")):
  4861. HQ(f,new FQ(e,d,lQ(b.initRange),lQ(b.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new IQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=JQ(l,c,f.duration),d=lQ(l.initRange),e=lQ(l.indexRange),m=xP(l),(l=KQ(m.GD||l.url||"",m.ZG,m.s))&&HQ(f,new FQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Zd&&!a.bb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!MS(a)&&f&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Da.ra&&(c.Va=!0));c.Sa=NS(a);return c};
  4862. JS=function(a){return qB()?!fWa(a):rB()?!(!a.Wa||!a.L("html5_enable_safari_fairplay")):!1};
  4863. fWa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
  4864. g.MVa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.FC.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
  4865. OS=function(a){return!(!a.j||!a.j.isManifestless)};
  4866. WS=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=NQ(a.j)};
  4867. OVa=function(a){return qB()&&fWa(a)?!1:JS(a)&&g.NI(a.Da)&&!a.isLivePlayback||!jR()||a.cD?!0:!1};
  4868. iWa=function(a){a.loading=!0;a.Li=!1;if(PVa(a))g.lVa(a.videoId).then(function(c){hWa(a,c)}).then(function(){GS(a)});
  4869. else{fJ(a.Qc)||g.JE(new g.eC("DASH MPD Origin invalid: ",a.Qc));var b=a.Qc;b=g.lo(b,{mpd_version:g.EI(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.lo(b,{pacing:0}));QSa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.Ma()||(RVa(a,c,!0),eH("mrc",void 0,a.Sa),GS(a))},function(c){a.Ma()||(a.loading=!1,a.publish("dataloaderror",new WJ("manifest.net.retryexhausted",{backend:"manifest",
  4870. rc:c.status},1)))});
  4871. eH("mrs",void 0,a.Sa)}};
  4872. hWa=function(a,b){var c=b.map(function(l){return l.itag}),d;
  4873. if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e=g.u(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={ut:void 0},f=e.next())h.ut=f.value,c.includes(h.ut.itag)&&(h.ut=Object.assign({},h.ut),h.ut.url=b.find(function(l){return function(m){return m.itag===l.ut.itag}}(h)).url,h.ut.signatureCipher="",d.push(h.ut));
  4874. b=QVa(a,d);US(a)&&a.L("music_web_woffle")&&VSa(b,!1);RVa(a,b);a.ma("dlr",{})}else a.ma("offsdm",{cotn:a.CF?a.CF.cotn:"0",cpn:a.clientPlaybackNonce})};
  4875. XS=function(a){if(!a.isProximaLatencyEligible)return!1;var b=MOa();return null!=b?1===b:a.L("html5_enable_proxima")};
  4876. GS=function(a){a.Ma()||(a.loading=!1,a.publish("dataloaded"))};
  4877. RVa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.N(a,b);b.cf=a.cf;b.Gh=a.Gh;b.Za=a.Za;b.Ob=a.Ob;b.qc=a.qc;a.Yo&&(b.Z=new gQ(a.Yo));(a.hQ()||g.YS(a))&&a.Ea.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Gl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.t_,a):b.subscribe("cuepointsadded",a.TW,a));mP(b)?a.cn=!0:eR=void 0;a.bb&&(b.C=a.bb,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
  4878. a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
  4879. kWa=function(a,b){var c=b||OVa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.cD,mss:jR(),"3pp":a.isExternallyHostedPodcast}),hB();US(a)&&VSa(a.j,a.isLivePlayback);KS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&CTa(a.Da.G);return iB().then(function(){return jQa(a.Gv,VS(a),a.Da.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.lG,NS(a)&&a.L("html5_enable_server_format_filter")).then(function(d){jWa(a,d);
  4880. a.Gv.j=null;/^av/.test(a.clientPlaybackNonce)&&a.nf&&a.ma("av1",a.nf.j)})})};
  4881. lWa=function(a,b){if(b&&a.hlsvp)return hB();if(a.hlsFormats){b=LS(a.hlsFormats);var c;if((null==(c=a.nf)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ma("hlsfmt",{itags:c.join(".")})}a.Oy=wUa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return BUa(a.Da,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Jd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
  4882. 0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
  4883. var v=void 0;q.push(null==(v=t.getInfo())?void 0:v.itag);var w=v=void 0;(null==(v=t.getInfo())?void 0:null==(w=v.audio)?void 0:w.numChannels)>p&&(p=t.getInfo().audio.numChannels)}2<p&&a.ma("hlschl",{mn:p});var A;(null==(A=a.nf)?0:A.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});var D;if(a.L("html5_enable_vp9_fairplay")&&(null==(D=a.K)?0:$Q(D)))for(a.ma("drm",{sbdlfbk:1}),p=g.u(a.Vo),q=p.next();!q.done;q=p.next())if(q=q.value,ZQ(q)){a.K=q;break}ZS(a,n)})}return hB()};
  4884. mWa=function(a){if(a.isExternallyHostedPodcast&&a.Qf){var b=LS(a.Qf);if(!b[0])return hB();a.C3=b[0];return EUa(a.Da,b[0]).then(function(c){ZS(a,c)})}return a.Ml&&a.VT?DUa(a.Da,a.isAd(),a.Ml).then(function(c){ZS(a,c)}):hB()};
  4885. oWa=function(a){if(a.isExternallyHostedPodcast)return hB();var b=LS(a.Qf,a.iD);if(a.hlsvp){var c=wVa(a.hlsvp,a.clientPlaybackNonce,a.Jd);b.push(c)}return CUa(a.Da,a.isAd(),b,nWa(a)).then(function(d){ZS(a,d)})};
  4886. jWa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.aD[d]=c.id)}}pWa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=oK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Vo),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
  4887. ZS=function(a,b){a.pd=b;jWa(a,new iP(g.$r(a.pd,function(c){return c.getInfo()})))};
  4888. nWa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Ry&&(b.ptk=a.Ry,b.oid=a.gU,b.ptchn=a.fU,b.pltype=a.hU,a.Iv&&(b.m=a.Iv));return b};
  4889. g.$S=function(a){return JS(a)&&a.Wa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null};
  4890. rWa=function(a){var b=qWa(a);return b&&b.text?g.lF(b.text):a.paidContentOverlayText};
  4891. sWa=function(a){var b=qWa(a);return b&&b.durationMs?bf(b.durationMs):a.paidContentOverlayDurationMs};
  4892. qWa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V(null==(b=a.Na)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.playerDisclosure,tWa)||null};
  4893. aT=function(a){var b="";if(a.lF)return a.lF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.bb?"window":"live");a.Zd&&(b="post");return b};
  4894. g.bT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
  4895. uWa=function(a){return!!a.qj||!!a.CH||!!a.Ty||!!a.Uy||a.A0||a.N.focEnabled||a.N.rmktEnabled};
  4896. g.cT=function(a){return!!(a.Qc||a.Qf||a.Ml||a.hlsvp||a.Dw())};
  4897. FS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.cT(a)||g.Fb(a.Ea,"heartbeat")||b)};
  4898. LS=function(a,b){a=Bpa(a);var c={};if(b){b=g.u(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.u(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
  4899. pWa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Gk);for(var c=0;c<a.HC.length;c++)for(var d=a.HC[c],e=0;e<b.length;e++){var f=b[e],h=f.lc.id==d.audioTrackId;if(f.lc.isDefault&&c==a.oY||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
  4900. f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
  4901. WVa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.V(b,g.qM))?void 0:c.navigationEndpoint)||(null==(d=g.V(b,g.qM))?void 0:d.command);e&&(a.gp=!!g.V(e,vWa))};
  4902. yVa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.wi=c);if(a.wi){a.embeddedPlayerConfig=a.wi.embeddedPlayerConfig||null;if(c=a.wi.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.wi.embedPreview){c=c.thumbnailPreviewRenderer;XUa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
  4903. kS(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.V(c.searchButton,g.qM))&&(a.q3=g.V(d.navigationEndpoint,g.dT));(d=g.V(null==c?void 0:c.videoDetails,wWa))&&$Va(a,b,d);d=g.V(null==c?void 0:c.videoDetails,xWa);a.je=!!c.addToWatchLaterButton;WVa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.V(null==(e=a.getEmbeddedPlayerResponse())?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?
  4904. void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.PS))IUa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=bf(c.videoDurationSeconds));c.webPlayerActionsPorting&&WUa(a,c.webPlayerActionsPorting);if(e=g.V(null==c?void 0:c.playlist,yWa)){a.Tm=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m=e.contents.length;l<m;l++)if(c=e.contents[l].playlistPanelVideoRenderer){d=c.shortBylineText?g.lF(c.shortBylineText):"";var n=c.title?g.lF(c.title):"";f.push({author:d,
  4905. encrypted_id:c.videoId,title:n,channel_path:l===h?b.channel_path:"",profile_picture:l===h?b.profile_picture:"",is_private:l===h?a.isPrivate:!0,is_dni:l===h?a.Hf:!1,dni_color:l===h?a.zp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.lF(e.titleText));e.shortBylineText&&(b.author=g.lF(e.shortBylineText));a.lZ=b}var p,q,r;if(b=g.V(null==(p=a.getEmbeddedPlayerResponse())?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?
  4906. void 0:r.infoPanel,YVa)){a.kD=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.xf=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Fl=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.wi.previewPlayabilityStatus){if(a.Sy=a.wi.previewPlayabilityStatus,p=a.Sy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=GUa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.fD=r;if(b=r.reason)a.errorReason=
  4907. g.lF(b);if(r=r.subreason)a.An=g.lF(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.wi.playabilityStatus&&(a.Xm=a.wi.playabilityStatus,zWa(a)&&(a.errorDetail="0",a.Xm&&((t=a.Xm.embeddedPlayerErrorMessageRenderer)?
  4908. a.fD=g.V(t,AWa):a.errorReason=a.Xm.reason||null)));(t=a.wi.attestation)&&RUa(a,t);(t=a.wi.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
  4909. $Va=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.V(null==(e=g.V(null==c?void 0:c.channelThumbnailEndpoint,BWa))?void 0:e.urlEndpoint,g.yF))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.V(e,CWa)){if(d=e.title)b.title=g.lF(d);if(e=e.subtitle)b.subtitle=g.lF(e)}if(c=c.expandedRenderer)if(c=g.V(c,DWa)){if(e=c.title)b.expanded_title=g.lF(e);if(e=c.subtitle)b.expanded_subtitle=g.lF(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
  4910. g.V(c,g.eT),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Ll=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.iN=b.toggledServiceEndpoint||null,a.hN=b.defaultServiceEndpoint||
  4911. null):(a.iN=b.defaultServiceEndpoint||null,a.hN=b.toggledServiceEndpoint||null)))}};
  4912. g.fT=function(a){return MS(a)&&!a.allowLiveDvr};
  4913. gT=function(a){return MS(a)&&a.allowLiveDvr};
  4914. MS=function(a){return a.L("html5_live_head_playable")&&OS(a)&&"yt"===a.Da.ra?a.isLiveHeadPlayable:a.isLivePlayback};
  4915. g.hT=function(a){return!!a.j&&wSa(a.j)};
  4916. g.iT=function(a){return!!a.j&&xSa(a.j)};
  4917. g.jT=function(a){return!!a.j&&ySa(a.j)};
  4918. g.YS=function(a){return!!a.j&&zSa(a.j)};
  4919. g.EWa=function(a){if(a.vM)return null;var b=a.XT;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
  4920. g.FWa=function(a){return a.vM?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
  4921. g.kT=function(a){return a.L("enable_wn_infocards")};
  4922. g.lT=function(a){var b,c,d,e;return(g.kT(a)?null==(b=a.Na)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer:null==(d=a.playerResponse)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
  4923. g.GWa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.u(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
  4924. mT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Da.La};
  4925. g.nT=function(a){return"shortspage"===mT(a)};
  4926. TS=function(a){return a.Yj()&&a.U().supportsGaplessShorts()};
  4927. oT=function(a){if(a.isAd()&&a.videoId!=a.Da.nf)return a.Da.nf};
  4928. pT=function(a){return a.fl||"detailpage"==mT(a)||"shortspage"==mT(a)||a.mutedAutoplay};
  4929. HWa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==mT(a)?a.mq:pT(a)?"detailpage"==mT(a)||"shortspage"==mT(a)?a.isAutonav||0<a.Tb:b||"17_8"!==a.adFormat||a.isAutonav||g.TR(a.Da)||a.mq?a.Sf?!1:a.Da.Ki||a.Da.Li||!g.BR(a.Da)?!b&&"adunit"==mT(a)&&a.qj?!1:!0:!1:!1:(a.Sf?0:a.Sg)&&g.BR(a.Da)?!0:!1};
  4930. g.qT=function(a){return a.oauthToken||a.Da.tj};
  4931. IWa=function(a){var b=1,c=g.EI(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=(null==(d=a.D)?void 0:d.audio.B)||a.XZ){var e;d=c-(null!=(e=a.loudnessTargetLkfs)?e:0)}else d=a.Of;else{var f;d=(null==(f=a.D)?void 0:f.audio.C)||a.Of}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Da.El>1E3*a.maxStatefulTimeThresholdSec&&
  4932. (a.Da.Dl=Infinity,a.Da.El=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Da.Dl)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Da.Dl=c+e,a=a.Da,c=Date.now(),a.El=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
  4933. US=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.gR(a.Da)&&"MUSIC"===a.Da.j.ctheme;a.wj||!g.jG(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.wj=!0);if(b=g.pB())b=/Starboard\/([0-9]+)/.exec(g.oc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Da;c=("TVHTML5_CAST"===g.gR(c)||"TVHTML5"===g.gR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Da.j.ctheme;var d;if(d=!a.wj)c||(c=a.Da,c=
  4934. "TVHTML5"===g.gR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.wj=!0);return a.Da.deviceIsAudioOnly||a.wj&&a.Da.N};
  4935. JWa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
  4936. rT=function(a){return!(!a.Vm||!a.Da.N)&&a.Dw()};
  4937. KWa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
  4938. NS=function(a){if(a.g_||a.cotn||!a.j||a.j.isOtf||a.Y2&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.nX&&!!a.Yo;var b=!a.j.Zb&&!a.Ui(),c=b&&hR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!hR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=LWa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Ui()&&!a.j.Zb&&hR&&("1"===a.Dl?!1:!0);(c=c||b||d||e)&&!a.Yo&&a.ma("sabr",{loc:"m"},!0);
  4939. return c&&!!a.Yo};
  4940. LWa=function(a){var b;if(!(b=a.Zb()&&a.Ui()&&hR&&("1"===a.Dl?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Zb()&&!a.Ui()&&hR;var c=a.Zb()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e="ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr");
  4941. c=!a.enableServerStitchedDai&&c;a=a.Zb()&&!hR&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
  4942. g.sT=function(a){return a.zZ&&NS(a)};
  4943. PVa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sS(b);return b&&!a.Vm};
  4944. g.tT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&vP(b[a.B.id].resource.j);b=!!b[a.D.id]&&vP(b[a.D.id].resource.j);return("0"===a.B.itag||c)&&b};
  4945. MWa=function(a){return a.Sy?["OK","LIVE_STREAM_OFFLINE"].includes(a.Sy.status):!0};
  4946. zWa=function(a){return(a=a.Xm)&&a.showError?a.showError:!1};
  4947. KS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
  4948. HVa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
  4949. NWa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
  4950. FVa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Uy=new cVa(b));if(b=b.video_masthead_ad_quartile_urls)a.CH=b.quartile_0_url,a.BV=b.quartile_25_url,a.GV=b.quartile_50_url,a.HV=b.quartile_75_url,a.AV=b.quartile_100_url,a.Ty=b.quartile_0_urls,a.wC=b.quartile_25_urls,a.yC=b.quartile_50_urls,a.AC=b.quartile_75_urls,a.uC=b.quartile_100_urls};
  4951. EVa=function(a){var b={};a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
  4952. BVa=function(a){if(a){if(XBa(a))return a;a=YBa(a);if(XBa(a,!0))return a}return""};
  4953. g.OWa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.bT(a,"yt:cc_default_lang")||a.Da.nj};
  4954. uT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
  4955. g.QS=function(a){var b;return a.qv||(null==(b=a.suggestions)?void 0:b[0])||null};
  4956. PWa=function(a){var b={isSabr:NS(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
  4957. g.vT=function(a){return a.Hf&&a.Da.Wo};
  4958. g.wT=function(a){var b,c;return!!(null==(b=a.embeddedPlayerConfig)?0:null==(c=b.embeddedPlayerFlags)?0:c.enableMusicUx)};
  4959. g.xT=function(a){var b=a.U(),c=g.QWa(b),d=a.ra;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=mT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.zb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.To)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:RWa[e]}});if(b=a.bA)d.unpluggedAppInfo=
  4960. {enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:SWa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.nj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=TWa[b];c.request=d;d=c.user||{};if(b=a.Ca)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];
  4961. if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
  4962. g.QWa=function(a){var b=g.qG(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
  4963. {deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Qc)b.thirdParty={embedUrl:a};return b};
  4964. YWa=function(a,b,c){var d=a.videoId,e=g.xT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(YD()),referer:document.location.toString(),signatureTimestamp:19864};g.bC();a.isAutonav&&(h.autonav=!0);g.cC(0,141)&&(h.autonavState=g.cC(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.cC(0,66);HWa(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=
  4965. l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
  4966. String(v));else if("video_ad"===p.adtype){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=UWa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);v&&(w.viralCampaignId=String(v));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.vF;if(null!=m){m={startWalltime:String(m)};if(n=a.Gl)m.manifestDuration=String(n||14400);
  4967. h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Sf?0:a.Sg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Xv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Dj){n=a.DC;l=[];p=g.u(YPa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.QY?"INACTIVE":"ACTIVE",clientFormFactor:VWa[r]||"UNKNOWN_FORM_FACTOR",clientName:$Pa[q.E1]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:WWa[r]||"UNKNOWN_PLATFORM"};
  4968. r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.JE(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p=
  4969. {},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.BR(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags=
  4970. f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);XWa&&0<a.startSeconds&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.cC(g.bC(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.RR(e)&&
  4971. (d.captionParams.deviceCaptionsOn=null!=h?!h:!1);a.KY&&(d.captionParams.deviceCaptionsLangPref=a.KY);a.lN.length?d.captionParams.viewerSelectedCaptionLangs=a.lN:g.RR(e)&&(h=g.WOa(),null==h?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h="onesie"===a.fetchType&&a.L("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(h||f)a=a.U(),a.cg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.cg);e.L("fetch_att_independently")&&
  4972. (d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities={supportXhr:hR});return d};
  4973. $Wa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j)return c={context:g.QWa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.tG(ZWa),g.z(f,g.lH(b,c,d),2);e=f.B;return f.return(e)})};
  4974. aXa=function(a,b,c){COa(g.EI(b.experiments,"bg_vm_reinit_threshold"))&&$Wa(a,c).then(function(d){d&&(d=d.botguardData)&&g.KOa(d,b)},function(d){a.Ma()||(d=YJ(d),a.ma("attf",d.details))})};
  4975. yT=function(a,b){g.I.call(this);this.app=a;this.state=b};
  4976. AT=function(a,b,c){a.state.Y[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
  4977. a.state.B.hasOwnProperty(b)||zT(a,b,c);a.state.Z.add(b)};
  4978. BT=function(a,b,c){a.state.qa[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
  4979. a.state.B.hasOwnProperty(b)||zT(a,b,c);a.state.Z.add(b)};
  4980. zT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))}};
  4981. g.CT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.qa(c))};
  4982. DT=function(){g.Yv.call(this);this.G=new Map};
  4983. bXa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.qa={};this.B={};this.K={};this.G=void 0;this.ra=new Set;this.C=new DT;this.j=new DT;this.D=new DT;this.N=new DT};
  4984. cXa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return ET(a)};
  4985. ET=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(dXa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
  4986. eXa=function(a,b,c,d){if(g.cb(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
  4987. FT=function(a,b,c){yT.call(this,a,b);this.playerType=c};
  4988. gXa=function(a){AT(a,"cueVideoById",a.u7);AT(a,"loadVideoById",a.Z9);AT(a,"cueVideoByUrl",a.x7);AT(a,"loadVideoByUrl",a.c$);AT(a,"playVideo",a.Aca);AT(a,"pauseVideo",a.pauseVideo);AT(a,"stopVideo",a.Wda);AT(a,"clearVideo",a.clearVideo);AT(a,"getVideoBytesLoaded",a.G8);AT(a,"getVideoBytesTotal",a.H8);AT(a,"getVideoLoadedFraction",a.mY);AT(a,"getVideoStartBytes",a.K8);AT(a,"cuePlaylist",a.cuePlaylist);AT(a,"loadPlaylist",a.Y9);AT(a,"nextVideo",a.D$);AT(a,"previousVideo",a.Mca);AT(a,"playVideoAt",a.zca);
  4989. AT(a,"setShuffle",a.setShuffle);AT(a,"setLoop",a.setLoop);AT(a,"getPlaylist",a.D8);AT(a,"getPlaylistIndex",a.getPlaylistIndex);AT(a,"getPlaylistId",a.getPlaylistId);AT(a,"loadModule",a.BZ);AT(a,"unloadModule",a.z2);AT(a,"setOption",a.PS);AT(a,"getOption",a.x8);AT(a,"getOptions",a.mP);AT(a,"mute",a.C$);AT(a,"unMute",a.xea);AT(a,"isMuted",a.isMuted);AT(a,"setVolume",a.Lda);AT(a,"getVolume",a.getVolume);AT(a,"seekTo",a.xda);AT(a,"getPlayerMode",a.getPlayerMode);AT(a,"getPlayerState",a.B8);AT(a,"getAvailablePlaybackRates",
  4990. a.getAvailablePlaybackRates);AT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
  4991. AT(a,"setPlaybackQuality",a.Gda);AT(a,"getAvailableQualityLevels",a.l8);AT(a,"getCurrentTime",a.o8);AT(a,"getDuration",a.s8);AT(a,"addEventListener",a.M6);AT(a,"removeEventListener",a.Yca);AT(a,"getDebugText",a.q8);AT(a,"getVideoData",function(){return fXa(a)});
  4992. AT(a,"addCueRange",a.I6);AT(a,"removeCueRange",a.removeCueRange);AT(a,"setSize",a.setSize);AT(a,"getApiInterface",a.getApiInterface);AT(a,"destroy",a.destroy);AT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(AT(a,"getVideoEmbedCode",a.getVideoEmbedCode),AT(a,"getVideoUrl",a.M8));AT(a,"getMediaReferenceTime",a.w8);AT(a,"getSize",a.getSize);AT(a,"setFauxFullscreen",a.Dda);b.K||AT(a,"logImaAdEvent",a.logImaAdEvent);AT(a,"preloadVideoById",a.Ica)};
  4993. hXa=function(a){var b=g.JR(a.app.U()),c,d=null==(c=a.app.getVideoData())?void 0:c.Tm;a=g.GT(a.app);return g.FB(b)&&!d||a?!1:!0};
  4994. fXa=function(a,b){var c={};if(b=g.HT(a.app,void 0===b?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=MWa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
  4995. iXa=function(a,b,c){FT.call(this,a,b,c)};
  4996. nXa=function(a,b){var c={};if(a.app.U().qa){a=g.u(jXa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="","string"===typeof b&&0<b.length&&(a=b.split(",").filter(function(e){return kXa.includes(e)}).join(",")),c.qoe_cat=a;
  4997. lXa(c)}else for(a=g.u(mXa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
  4998. lXa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;b&&(a.raw_player_response={streamingData:b.streamingData})};
  4999. g.IT=function(a){return(a=oXa(a.app.yb()))?a.zi():null};
  5000. pXa=function(a,b,c){var d=a.app.Ze(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
  5001. rXa=function(a){var b=void 0===b?5:b;return a?qXa[a]||b:b};
  5002. g.JT=function(a,b,c,d){FT.call(this,a,b,d);c&&(sXa(this),a.U().N&&(BT(this,"addEventListener",this.N6),BT(this,"removeEventListener",this.Zca),BT(this,"cueVideoByPlayerVars",this.w7),BT(this,"loadVideoByPlayerVars",this.b$),BT(this,"preloadVideoByPlayerVars",this.Kca),BT(this,"loadVideoById",this.DZ),BT(this,"loadVideoByUrl",this.EZ),BT(this,"playVideo",this.WR),BT(this,"loadPlaylist",this.loadPlaylist),BT(this,"nextVideo",this.nextVideo),BT(this,"previousVideo",this.previousVideo),BT(this,"playVideoAt",
  5003. this.playVideoAt),BT(this,"getVideoData",this.lY),BT(this,"seekBy",this.vda),BT(this,"seekTo",this.yda),BT(this,"showControls",this.showControls),BT(this,"hideControls",this.hideControls),BT(this,"cancelPlayback",this.cancelPlayback),BT(this,"getProgressState",this.getProgressState),BT(this,"isInline",this.isInline),BT(this,"setInline",this.setInline),BT(this,"setLoopVideo",this.setLoopVideo),BT(this,"getLoopVideo",this.getLoopVideo),BT(this,"getVideoContentRect",this.getVideoContentRect),BT(this,
  5004. "getVideoStats",this.L8),BT(this,"getCurrentTime",this.p8),BT(this,"getDuration",this.t8),BT(this,"getPlayerState",this.C8),BT(this,"getVideoLoadedFraction",this.J8),BT(this,"mute",this.xK),BT(this,"unMute",this.hM),BT(this,"setVolume",this.ML),BT(this,"loadModule",this.loadModule),BT(this,"unloadModule",this.unloadModule),BT(this,"getOption",this.getOption),BT(this,"getOptions",this.getOptions),BT(this,"setOption",this.setOption),BT(this,"addCueRange",this.addCueRange),BT(this,"getDebugText",this.getDebugText),
  5005. BT(this,"getStoryboardFormat",this.getStoryboardFormat),BT(this,"toggleFullscreen",this.toggleFullscreen),BT(this,"isFullscreen",this.isFullscreen),BT(this,"getPlayerSize",this.getPlayerSize),BT(this,"toggleSubtitles",this.toggleSubtitles),BT(this,"setCenterCrop",this.setCenterCrop),BT(this,"setFauxFullscreen",this.setFauxFullscreen),BT(this,"setSizeStyle",this.setSizeStyle),BT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),BT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),BT(this,"wakeUpControls",
  5006. this.wakeUpControls)),gXa(this))};
  5007. sXa=function(a){zT(a,"getInternalApiInterface",a.getInternalApiInterface);zT(a,"addEventListener",a.L6);zT(a,"removeEventListener",a.Xca);zT(a,"cueVideoByPlayerVars",a.v7);zT(a,"loadVideoByPlayerVars",a.a$);zT(a,"preloadVideoByPlayerVars",a.Jca);zT(a,"getAdState",a.getAdState);zT(a,"sendAbandonmentPing",a.sendAbandonmentPing);zT(a,"setLoopRange",a.setLoopRange);zT(a,"getLoopRange",a.getLoopRange);zT(a,"setAutonavState",a.setAutonavState);zT(a,"seekTo",a.seekTo);zT(a,"seekBy",a.seekBy);zT(a,"seekToLiveHead",
  5008. a.seekToLiveHead);zT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);zT(a,"seekToStreamTime",a.seekToStreamTime);zT(a,"startSeekCsiAction",a.startSeekCsiAction);zT(a,"getStreamTimeOffset",a.getStreamTimeOffset);zT(a,"getVideoData",a.I8);zT(a,"setInlinePreview",a.setInlinePreview);zT(a,"getAppState",a.getAppState);zT(a,"updateLastActiveTime",a.updateLastActiveTime);zT(a,"setBlackout",a.setBlackout);zT(a,"setUserEngagement",a.setUserEngagement);zT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
  5009. zT(a,"getPresentingPlayerType",a.tJ);zT(a,"canPlayType",a.canPlayType);zT(a,"updatePlaylist",a.updatePlaylist);zT(a,"updateVideoData",a.updateVideoData);zT(a,"updateEnvironmentData",a.updateEnvironmentData);zT(a,"sendVideoStatsEngageEvent",a.Bda);zT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);zT(a,"setSafetyMode",a.setSafetyMode);zT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
  5010. zT(a,"getVideoAspectRatio",a.getVideoAspectRatio);zT(a,"getPreferredQuality",a.getPreferredQuality);zT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);zT(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);zT(a,"onAdUxClicked",a.onAdUxClicked);zT(a,"getFeedbackProductData",a.getFeedbackProductData);zT(a,"getStoryboardFrame",a.getStoryboardFrame);zT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);zT(a,"getStoryboardLevel",a.getStoryboardLevel);zT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
  5011. zT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);zT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);zT(a,"addCueRange",a.addCueRange);zT(a,"addUtcCueRange",a.addUtcCueRange);zT(a,"showAirplayPicker",a.showAirplayPicker);zT(a,"dispatchReduxAction",a.dispatchReduxAction);zT(a,"getPlayerResponse",a.z8);zT(a,"getWatchNextResponse",a.N8);zT(a,"getHeartbeatResponse",a.u8);zT(a,"changeMarkerVisibility",a.changeMarkerVisibility);zT(a,"getCurrentTime",a.getCurrentTime);zT(a,"getDuration",
  5012. a.getDuration);zT(a,"getPlayerState",a.getPlayerState);zT(a,"getPlayerStateObject",a.A8);zT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);zT(a,"getProgressState",a.getProgressState);zT(a,"getVolume",a.getVolume);zT(a,"setVolume",a.ML);zT(a,"isMuted",a.isMuted);zT(a,"mute",a.xK);zT(a,"unMute",a.hM);zT(a,"loadModule",a.loadModule);zT(a,"unloadModule",a.unloadModule);zT(a,"getOption",a.getOption);zT(a,"getOptions",a.getOptions);zT(a,"setOption",a.setOption);zT(a,"loadVideoById",a.DZ);zT(a,"loadVideoByUrl",
  5013. a.EZ);zT(a,"playVideo",a.WR);zT(a,"loadPlaylist",a.loadPlaylist);zT(a,"nextVideo",a.nextVideo);zT(a,"previousVideo",a.previousVideo);zT(a,"playVideoAt",a.playVideoAt);zT(a,"getDebugText",a.getDebugText);zT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);zT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);zT(a,"getVideoContentRect",a.getVideoContentRect);zT(a,"setSqueezeback",a.setSqueezeback);zT(a,"setAutonav",a.setAutonav);zT(a,"isNotServable",a.isNotServable);zT(a,"channelSubscribed",
  5014. a.channelSubscribed);zT(a,"channelUnsubscribed",a.channelUnsubscribed);zT(a,"togglePictureInPicture",a.togglePictureInPicture);zT(a,"supportsGaplessAudio",a.supportsGaplessAudio);zT(a,"supportsGaplessShorts",a.supportsGaplessShorts);zT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
  5015. zT(a,"clearQueue",a.clearQueue);zT(a,"getAudioTrack",a.h8);zT(a,"setAudioTrack",a.setAudioTrack);zT(a,"getAvailableAudioTracks",a.k8);zT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);zT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);zT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);zT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);zT(a,"setMinimized",a.setMinimized);zT(a,"setOverlayVisibility",a.setOverlayVisibility);zT(a,"confirmYpcRental",a.confirmYpcRental);
  5016. zT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);zT(a,"isSubtitlesOn",a.isSubtitlesOn);zT(a,"queueNextVideo",a.queueNextVideo);zT(a,"handleExternalCall",a.handleExternalCall);zT(a,"logApiCall",a.logApiCall);zT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);zT(a,"setScreenLayer",a.setScreenLayer);zT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);zT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);zT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);zT(a,
  5017. "syncVolume",a.syncVolume);zT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);zT(a,"openSettingsMenuItem",a.openSettingsMenuItem);zT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);zT(a,"getVisibilityState",a.getVisibilityState);zT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);zT(a,"setGlobalCrop",a.setGlobalCrop);zT(a,"setInternalSize",a.setInternalSize);zT(a,"setFauxFullscreen",a.setFauxFullscreen)};
  5018. uXa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){tXa(a,b,c)},
  5019. removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.fb(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}});
  5020. return a.state.G};
  5021. tXa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.fb(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
  5022. a.state.K[d]=e;a.state.j.subscribe(b,e)}};
  5023. LT=function(a,b,c){a=g.KT(a.Te(),b);return c?(c.addOnDisposeCallback(a),null):a};
  5024. g.MT=function(a,b,c){return a.app.U().xf?b:g.qJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
  5025. vXa=function(a){a.Te().element.setAttribute("aria-live","polite")};
  5026. g.NT=function(a,b){g.JT.call(this,a,b,!1)};
  5027. g.OT=function(a){a=a.yb();var b=a.He.get("endscreen");return b&&b.Mu()?!0:a.TG()};
  5028. g.PT=function(a,b){3===a.getPresentingPlayerType()?a.publish("mdxautoplaycancel"):a.jb("onAutonavCancelled",b)};
  5029. g.RT=function(a){var b=QT(a.yb());return a.app.xi&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Wk()&&b.Fp()||!!a.getPlaylist()};
  5030. g.wXa=function(a,b,c){g.CT(a,"addEmbedsConversionTrackingParams",[b]);g.XO(b,c)};
  5031. g.TT=function(a){return(a=g.ST(a.yb()))?a.wJ():{}};
  5032. g.xXa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
  5033. g.UT=function(a,b,c){a=a.ob().element;var d=Tb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
  5034. 0>d&&(d=-(d+1));Hf(a,b,d);b.setAttribute("data-layer",String(c))};
  5035. g.VT=function(a){var b=a.U();if(!b.Be)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!uT(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Wk();var f=c.Na&&c.Na.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Hf&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ea,"ypc")&&
  5036. !a&&(!g.BR(b)||f)};
  5037. yXa=function(a){a=g.HT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.U2)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1};
  5038. zXa=function(){aC.apply(this,arguments);this.requestHeaders={}};
  5039. WT=function(){AXa||(AXa=new zXa);return AXa};
  5040. XT=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
  5041. g.ZT=function(a,b,c,d){d=void 0===d?!1:d;g.iF.call(this,b);var e=this;this.J=a;this.Ga=d;this.N=new g.cK(this);this.qa=new g.MF(this,c,!0,void 0,void 0,function(){e.JX()});
  5042. g.N(this,this.N);g.N(this,this.qa)};
  5043. BXa=function(a){a.B&&(document.activeElement&&g.Rf(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.UB(a.N);a.Y=void 0};
  5044. $T=function(a,b,c){a.Zj()?a.Nb():a.od(b,c)};
  5045. CXa=function(a,b,c,d){d=new g.W({I:"div",Ka:["ytp-linked-account-popup-button"],xa:d,X:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",xa:b},{I:"div",S:"ytp-linked-account-popup-description",xa:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.ZT.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.N(this,this.dialog);
  5046. d.listen("click",function(){e.Nb()});
  5047. g.N(this,d);g.UT(this.J,this.element,4);this.hide()};
  5048. g.aU=function(a,b,c,d){g.iF.call(this,a);this.priority=b;c&&this.Dk(c);d&&this.Md(d)};
  5049. g.bU=function(a,b,c,d){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;d=void 0===d?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Ka:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",xa:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",xa:"{{label}}"},{I:"div",S:"ytp-menuitem-content",xa:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",xa:"{{secondaryIcon}}"});return a};
  5050. cU=function(a){g.aU.call(this,g.bU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Bb=a.Fn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Lc(c)});
  5051. this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
  5052. dU=function(a){return a?g.lF(a):""};
  5053. eU=function(a){g.I.call(this);this.api=a};
  5054. fU=function(a){eU.call(this,a);var b=this;zT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
  5055. zT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
  5056. a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
  5057. a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new cU(b.api);g.N(b,b.menuItem)})};
  5058. DXa=function(a){this.api=a;this.j={}};
  5059. gU=function(a,b,c,d){b in a.j||(c=new g.jJ(c,d,{id:b,priority:2,namespace:"appad"}),a.api.gf([c],1),a.j[b]=c)};
  5060. EXa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(this);g.N(this,this.events);this.j=new DXa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
  5061. this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;gU(d,"part2viewed",1,0x8000000000000);gU(d,"engagedview",Math.max(1,1E3*c.Gb),0x8000000000000);c.isLivePlayback||(c=1E3*c.lengthSeconds,gU(d,"videoplaytime25",.25*c,c),gU(d,"videoplaytime50",.5*c,c),gU(d,"videoplaytime75",.75*c,c),gU(d,"videoplaytime100",c,0x8000000000000),gU(d,"conversionview",c,0x8000000000000),gU(d,"videoplaybackstart",1,c),gU(d,"videoplayback2s",2E3,c),gU(d,"videoplayback10s",1E4,c))});
  5062. this.events.T(this.api,g.kJ("appad"),this.B);this.events.T(this.api,g.lJ("appad"),this.B)};
  5063. IXa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.dv(c,d);d=void 0;d=void 0===d?!1:d;(d=dJ(eJ(c,FXa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=dJ(eJ(c,GXa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=dJ(eJ(c,HXa,null),c,d,"Nielsen OCR URL"));g.yD(c,void 0,d)}return!0};
  5064. hU=function(a,b){JXa(a,b).then(function(c){g.yD(b,void 0,void 0,c)})};
  5065. iU=function(a,b){b.forEach(function(c){hU(a,c)})};
  5066. JXa=function(a,b){return g.PI(a.api.U())&&TA(b)&&SA(b)?g.$R(a.api.U(),g.qT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):iB()};
  5067. KXa=function(a){eU.call(this,a);this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
  5068. contentCpn:b.clientPlaybackNonce}};g.qC("adsClientStateChange",e)}})};
  5069. MXa=function(a){g.W.call(this,{I:"button",Ka:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.ZC);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
  5070. LXa(this);LT(a,this.element,this);this.ZC()};
  5071. LXa=function(a){a.B.push(a.T(a.J,"videodatachange",a.ZC));a.B.push(a.T(a.J,"videoplayerreset",a.ZC));a.B.push(a.T(a.J,"onPlaylistUpdate",a.ZC));a.B.push(a.T(a.J,"autonavchange",a.pV))};
  5072. NXa=function(a){a.isChecked=a.isChecked;a.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Rh()};
  5073. OXa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&VVa(a.Ld())};
  5074. PXa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new MXa(a);g.N(b,c);a.cz(c)})};
  5075. jU=function(a,b){g.aU.call(this,g.bU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
  5076. kU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
  5077. QXa=function(a){var b=!a.U().zk&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
  5078. g.lU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.dG(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.yya(a,d,!0);return!1};
  5079. g.mU=function(a,b,c){if(PR(b.U())&&2!==b.getPresentingPlayerType()){if(g.dG(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.dG(c);d&&b.pauseVideo();g.yya(a,void 0,!0);d&&(g.nG(a),c.preventDefault())}return!1};
  5080. SXa=function(){var a=RXa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
  5081. fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
  5082. TXa=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}};
  5083. UXa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
  5084. oU=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";jU.call(this,b,g.nU.w3);var c=this;this.J=a;this.j=!1;this.B=new g.xv(function(){g.Hv(c.element,"ytp-menuitem-highlighted")},0);
  5085. this.Bb=a.Fn();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(VXa,this.D);g.N(this,this.B)};
  5086. XXa=function(a){eU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){WXa(b)});
  5087. a.addEventListener("highlightSettingsMenu",function(c){WXa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.Fv(d.element,"ytp-menuitem-highlighted"),g.Fv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
  5088. zT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
  5089. WXa=function(a){a.menuItem||(a.menuItem=new oU(a.api),g.N(a,a.menuItem),a.menuItem.Ta(a.j))};
  5090. pU=function(a,b,c,d){jU.call(this,"Stable Volume",g.nU.o6);g.Fv(this.element,"ytp-drc-menu-item");this.Bb=a.Fn();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=1===this.j()&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
  5091. fill:"white"}}]});this.subscribe("select",this.B,this);kU(this,a);this.Bb.Rc(this)};
  5092. qU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new pU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.N(b,b.menuItem))});
  5093. zT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
  5094. zT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
  5095. zT(this.api,"hasDrcAudioTrack",function(){return b.B()});
  5096. var c;this.j=null!=(c=g.YB("yt-player-drc-pref"))?c:1;this.updateEnvironmentData()};
  5097. rU=function(a){eU.call(this,a);var b=this;this.j={};this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
  5098. this.events.T(a,g.kJ("embargo"),function(c){b.api.Do(!0);var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Zf("auth",2,"This video isn't available in your current playback area",VJ({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.jb("innertubeCommand",f)}})};
  5099. YXa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
  5100. ZXa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
  5101. $Xa=function(a){eU.call(this,a);var b=this;this.j=[];this.events=new g.cK(a);g.N(this,this.events);zT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Yo&&b.addEmbedsConversionTrackingParams(c)});
  5102. this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Ok(c.visualElement.getAsJspb(),2),b.j.push(c))})};
  5103. aYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){QO(PO(),16623);b.j=g.FE();var d=a.U().Ki&&!c.Sf;if(pT(c)&&d){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&SO(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&SO(c)}}else QO(PO(),
  5104. 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&SO(h)});
  5105. this.events.T(a,"loadvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
  5106. this.events.T(a,"cuevideo",function(){QO(PO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
  5107. this.events.T(a,"largeplaybuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
  5108. this.events.T(a,"playlistnextbuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
  5109. this.events.T(a,"playlistprevbuttonclicked",function(c){QO(PO(),27240,c.visualElement)});
  5110. this.events.T(a,"playlistautonextvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
  5111. bYa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
  5112. sU=function(a){g.W.call(this,{I:"div",Ka:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",xa:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",xa:"\u2022"},{I:"span",xa:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
  5113. dYa=function(a,b){a.j||(a.B=b,a.C=(0,g.EC)(),a.j=new g.wv(function(){cYa(a)},null),cYa(a))};
  5114. cYa=function(a){var b=Math,c=b.round,d=Math.min((0,g.EC)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",bKa({seconds:b}));0>=b&&a.j?eYa(a):a.j&&a.j.start()};
  5115. eYa=function(a){a.j&&(a.j.dispose(),a.j=null)};
  5116. fYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new sU(a);g.N(b,b.j);g.UT(a,b.j.element,4);b.j.hide()})};
  5117. tU=function(a){g.W.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],xa:"Scroll for details"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.MF(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.N(this,
  5118. this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()};
  5119. uU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
  5120. zT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
  5121. var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&PR(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new tU(a);g.N(b,b.j);a.cz(b.j)})};
  5122. gYa=function(a){g.W.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.pF()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle",
  5123. xa:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Fa("ytp-gated-actions-overlay-background");this.B=this.Fa("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Fa("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.jb("onCloseMiniplayer")});
  5124. this.hide()};
  5125. iYa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={hI:void 0},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.W({I:"button",S:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",xa:"{{buttonText}}"}]}),g.N(a,h),h.Ja(a.B),e={element:h});d.hI=g.V(b[c],hYa);var l=f=void 0,m=void 0,n=(null==(f=d.hI)?void 0:f.title)||(null==(l=d.hI)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
  5126. h.Pc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.V(null==(q=p.hI)?void 0:q.onTap,ME);r&&a.api.jb("innertubeCommand",r)}}(d));
  5127. a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
  5128. jYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.j=new gYa(this.api);g.N(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.w9;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.u(h.sources);for(var l=h.next();!l.done;l=h.next())l=l.value,l.width&&l.url&&l.width>
  5129. e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;iYa(c,d.actionButtons||[]);c.show()}else c.hide()});
  5130. g.UT(this.api,this.j.element,4)};
  5131. kYa=function(a){eU.call(this,a);var b=a.U();b.Bj=!1;b.bb=!1;b.Sm=!1;BT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
  5132. BT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
  5133. BT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)});
  5134. BT(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
  5135. BT(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
  5136. BT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
  5137. BT(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})};
  5138. lYa=function(a){eU.call(this,a);a=a.U();a.rh.push("flix");a.bb=!1;a.Bj=!1};
  5139. vU=function(a){eU.call(this,a);var b=this;BT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
  5140. BT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.qa(g.Ja.apply(0,arguments)))});
  5141. AT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
  5142. AT(this.api,"setSphericalProperties",function(){var c=g.Ja.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.qa(c))})};
  5143. mYa=function(a){eU.call(this,a);zT(a,"createClientVe",this.createClientVe.bind(this));zT(a,"createServerVe",this.createServerVe.bind(this));zT(a,"destroyVe",this.destroyVe.bind(this));zT(a,"hasVe",this.hasVe.bind(this));zT(a,"logClick",this.logClick.bind(this));zT(a,"logVisibility",this.logVisibility.bind(this));zT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
  5144. wU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
  5145. zT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
  5146. zT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
  5147. nYa=function(a,b,c){var d=1E3*a.api.getCurrentTime()<b?1:-1;a.api.uG(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
  5148. qYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){oYa(b)});
  5149. this.events.T(a,"presentingplayerstatechange",function(){pYa(b)})};
  5150. xU=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
  5151. oYa=function(a){var b=a.api.getVideoData();if(null!=b&&b.ue()){var c=a.api.U(),d=[],e="";if(!c.qa){var f=rYa(a);g.jG(c)&&f?(d=sYa(f.thumbnailDetails),f.album&&(e=dKa(f.album))):d=[{src:b.dh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}pYa(a);tYa(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.RT(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
  5152. xU("nexttrack",b);xU("previoustrack",c)}};
  5153. tYa=function(a){xU("play",function(){a.api.playVideo()});
  5154. xU("pause",function(){a.api.pauseVideo()});
  5155. xU("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
  5156. xU("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
  5157. rYa=function(a){var b,c,d,e;return null==(b=a.api.getVideoData().getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:null==(e=d.browserMediaSession)?void 0:e.browserMediaSessionRenderer};
  5158. sYa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.u(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.gJ(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
  5159. pYa=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a};
  5160. yU=function(a){eU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,uYa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
  5161. e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.jM({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
  5162. this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.mf("compositeembargo",1);var e=null==d?void 0:d.FC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?vYa(b,e.filter(function(f){return wYa(b,f)})):(null==d?0:d.cueRanges)&&vYa(b,d.cueRanges.filter(function(f){return wYa(b,f)}));
  5163. "dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.No())});
  5164. this.events.T(a,g.kJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Do(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.oy!==f&&(d.oy=f,b.api.No());xYa(b,c)}}});
  5165. this.events.T(a,g.lJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Do(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.oy=void 0;b.api.No();xYa(b)}});
  5166. this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
  5167. this.events.T(a,"onPlaybackAudioChange",function(){b.api.No()});
  5168. zT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
  5169. xYa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Fo([a.j],1)),a.j=b)};
  5170. vYa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
  5171. wYa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
  5172. yYa=function(a){eU.call(this,a);zT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));zT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));zT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));zT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));zT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));zT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));zT(this.api,"setUpPositionSyncInterval",
  5173. this.setUpPositionSyncInterval.bind(this))};
  5174. zU=function(a){eU.call(this,a);var b=this;zT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
  5175. zT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
  5176. zYa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
  5177. AYa=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
  5178. BYa=function(a){var b=new Set,c=new Map,d={};a=g.u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.u(Object.values(d));for(a=d.next();!a.done;a=d.next())e=a.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
  5179. DYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){CYa(b,c)})};
  5180. CYa=function(a,b){if(window.android&&window.android.webview){var c=g.EI(a.api.U().experiments,"html5_d6de4_cloud_project_number");window.android.webview.getExperimentalMediaIntegrityTokenProvider&&window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:c}).then(function(d){return d.requestToken(b)}).then(function(d){a.api.LS(d)}).catch(function(d){g.JE(d)})}};
  5181. AU=function(a){g.W.call(this,{I:"button",Ka:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[Axa()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.pm(),d=c.subscribe("visibilitystatechange",function(){b.Ta(c.Rt())});
  5182. this.addOnDisposeCallback(function(){c.Nh(d)});
  5183. LT(a,this.element,this);this.Ta(c.Rt())};
  5184. EYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
  5185. FYa=function(a){var b=a.api.getVideoData();g.hF(a.button,b.qW)};
  5186. GYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"musicDisableUi",function(){g.Fv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
  5187. zT(this.api,"musicEnableUi",function(){g.Hv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
  5188. DU=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.W.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.Gb=this.ra=this.Ca=this.G=this.D=this.Y=this.expanded=this.enabled=this.Wa=!1;this.gb=new g.xv(function(){d.badge.element.style.width=""},200,this);
  5189. this.Sa=new g.xv(function(){BU(d);CU(d)},200,this);
  5190. this.dismissButton=new g.W({I:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.N(this,this.dismissButton);this.B=new g.W({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",xa:"{{badgeLabel}}"},this.dismissButton]});g.N(this,this.B);this.La=new g.W({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.N(this,this.La);this.badge=new g.W({I:c?"div":
  5191. "button",Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.La,this.B]});g.N(this,this.badge);this.badge.Ja(this.element);this.qa=new g.MF(this.badge,250,!1,100);g.N(this,this.qa);this.Za=new g.MF(this.B,250,!1,100);g.N(this,this.Za);this.rb=new g.wv(this.Sda,null,this);g.N(this,this.rb);this.bb=new g.wv(this.S7,null,this);g.N(this,this.bb);g.N(this,this.gb);g.N(this,this.Sa);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
  5192. this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.GK(!1)});
  5193. this.T(this.J,"onShowControls",function(){d.GK(!0)});
  5194. this.T(this.badge.element,"click",this.EF);this.T(this.dismissButton.element,"click",this.yu);this.T(this.J,"pageTransition",this.qV);this.T(this.J,"appresize",this.Bl);this.T(this.J,"fullscreentoggled",this.vaa);this.T(this.J,"cardstatechange",this.Z$);this.T(this.J,"annotationvisibility",this.Dea,this);this.T(this.J,"offlineslatestatechange",this.Eea,this)};
  5195. BU=function(a){g.Jv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Ca||!a.Y)};
  5196. CU=function(a,b){var c=a.OL();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.rb.stop(),a.bb.stop(),a.gb.stop(),a.rb.start()):(g.hF(a.B,a.expanded),g.Jv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),HYa(a))};
  5197. HYa=function(a){a.D&&a.J.logVisibility(a.badge.element,a.Vx());a.G&&a.J.logVisibility(a.dismissButton.element,a.Vx()&&a.OL())};
  5198. IYa=function(a){var b=a.text||"",c=g.xf("ytp-suggested-action-badge-title",a.element);c&&g.Sf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Va?a.Va:"")};
  5199. EU=function(a,b){b?a.G&&a.J.logClick(a.dismissButton.element):a.D&&a.J.logClick(a.badge.element)};
  5200. FU=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ka:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"Back to previous menu"},I:"button",Ka:["ytp-button",l]}]},{I:"span",Ka:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ka:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.iF.call(this,h);this.content=
  5201. b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.EY=!1;this.DY=d;c&&(c=this.Fa(l),m=this.Fa(m),this.T(c,"click",this.m_),this.T(m,"click",this.m_),this.EY=!0,e&&(p=this.Fa(p),this.T(p,"click",e)));b.subscribe("size-change",this.q_,this);this.T(a,"fullscreentoggled",this.q_);this.J=a};
  5202. g.GU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.iF({I:"div",S:"ytp-panel-menu",X:h});FU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.N(this,this.menuItems)};
  5203. g.HU=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.zR,a);a.items=[];g.Gf(a.menuItems.element);a.menuItems.publish("size-change")};
  5204. JYa=function(a,b){return b.priority-a.priority};
  5205. g.IU=function(a,b){g.ZT.call(this,a,{I:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Ke(0,0);this.listen("keydown",this.y5)};
  5206. KYa=function(a){var b=a.j[a.j.length-1];if(b){g.Ts(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Is(b.element,"width","");g.Is(b.element,"height","");g.Is(b.element,"maxWidth","100%");g.Is(b.element,"maxHeight","100%");g.Is(b.content.element,"height","");var c=g.Us(b.element);c.width+=1;c.height+=1;g.Is(b.element,"width",c.width+"px");g.Is(b.element,"height",c.height+"px");g.Is(b.element,"maxWidth","");g.Is(b.element,"maxHeight","");var d=0;b.EY&&(d=b.Fa("ytp-panel-header"),d=g.Us(d).height);
  5207. var e=0;b.DY&&(e=b.Fa("ytp-panel-footer"),g.Is(e,"width",c.width+"px"),e=g.Us(e).height);g.Is(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.Is(b.element,"width",c.width+"px")));a.size=c}};
  5208. g.JU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);LYa(a,c,b)};
  5209. g.KU=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];LYa(a,b,c,!0)}};
  5210. LYa=function(a,b,c,d){MYa(a);b&&(b.unsubscribe("size-change",a.kC,a),b.unsubscribe("back",a.Wi,a));c.subscribe("size-change",a.kC,a);c.subscribe("back",a.Wi,a);if(a.Fb){g.Fv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;KYa(a);g.Ts(a.element,e);a.G=new g.xv(function(){NYa(a,b,c,d)},20,a);
  5211. a.G.start()}else c.Ja(a.element),b&&b.detach()};
  5212. NYa=function(a,b,c,d){a.G.dispose();a.G=null;g.Fv(a.element,"ytp-popup-animating");d?(g.Fv(b.element,"ytp-panel-animate-forward"),g.Hv(c.element,"ytp-panel-animate-back")):(g.Fv(b.element,"ytp-panel-animate-back"),g.Hv(c.element,"ytp-panel-animate-forward"));g.Ts(a.element,a.size);a.K=new g.xv(function(){g.Hv(a.element,"ytp-popup-animating");b.detach();g.Iv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
  5213. a.K.start()};
  5214. MYa=function(a){a.G&&g.zv(a.G);a.K&&g.zv(a.K)};
  5215. LU=function(a){g.IU.call(this,a,"ytp-shopping-product-menu");this.Pe=new g.GU(this.J);g.N(this,this.Pe);this.hide();g.JU(this,this.Pe);g.UT(this.J,this.element,4)};
  5216. PYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=OYa(a,c,e,null==b?void 0:b.icon,null==b?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.jb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
  5217. QYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&OYa(a,c,e,null==b?void 0:b.icon).listen("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.jb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
  5218. OYa=function(a,b,c,d,e){b=new g.aU(g.bU({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",RYa(e));b.setIcon(RYa(d));g.N(a,b);a.Pe.Rc(b,!0);return b};
  5219. RYa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
  5220. fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return rxa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
  5221. case "OPEN_IN_NEW":return rF()}};
  5222. MU=function(a){DU.call(this,a,!1,!0);this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});this.thumbnailImage.hide();g.N(this,
  5223. this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.N(this,this.thumbnailIcon);this.banner=new g.W({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",xa:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",xa:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text",xa:"{{metadata}}"}]},this.dismissButton,
  5224. this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.B.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.kJ("suggested_action_view_model"),this.taa);this.T(this.J,g.lJ("suggested_action_view_model"),this.uaa);this.T(this.overflowButton.element,"click",this.z5);this.T(a,"featuredproductdismissed",this.yu)};
  5225. SYa=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,CU(a),a.Bl(),g.hF(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.hF(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.hF(a.overflowButton,a.isVisible))};
  5226. NU=function(){MU.apply(this,arguments)};
  5227. TYa=function(a){eU.call(this,a);this.j=new NU(this.api);g.N(this,this.j);g.UT(this.api,this.j.element,4)};
  5228. g.OU=function(a,b,c,d,e,f,h){g.aU.call(this,g.bU({"aria-haspopup":"true"}),b,a);this.Bb=d;this.N=!1;this.C=null;this.options={};this.B=new g.GU(c,void 0,a,e,f,h);g.N(this,this.B);this.listen("keydown",this.A5);this.listen("click",this.open)};
  5229. UYa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}};
  5230. g.PU=function(a,b){g.HU(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(a.options[f].Dk(a.Lk(f,!0)),delete a.options[f]):h=a.ON(f,-e,l);c[f]=h;a.B.Rc(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
  5231. QU=function(a,b){g.OU.call(this,"Sleep timer",g.nU.SLEEP_TIMER,a,b);this.J=a;this.j={};a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",
  5232. fill:"#fff"}}]});this.Ta()};
  5233. VYa=function(a){var b="Off;10 minutes;15 minutes;20 minutes;30 minutes;45 minutes;60 minutes;End of video".split(";");a.J.getPlaylistId()&&b.push("End of playlist");return b};
  5234. WYa=function(a){eU.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new QU(b.api,b.api.Fn()),g.N(b,b.menuItem))})};
  5235. g.SU=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.aF.call(this);this.Y=e;this.N=!1;this.D=new SB(this);this.G=this.K=null;this.C=this.B=!1;g.N(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Qc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));RU(this)};
  5236. TU=function(a){g.UB(a.D,!a.j)};
  5237. RU=function(a){a.G=null;a.K=null;a.T(UU("over"),a.kx);a.T("touchstart",a.cN);a.j&&a.T(UU("down"),a.z$)};
  5238. XYa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.K)return d}return null};
  5239. UU=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
  5240. YYa=function(a,b){g.W.call(this,{I:"div",Ka:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",xa:b},{I:"div",S:"ytp-speedmaster-icon",xa:"{{icon}}"}]}]});this.J=a;this.j=this.Fa("ytp-speedmaster-user-edu");this.updateValue("icon",qxa());g.Fv(this.j,"ytp-speedmaster-has-icon");this.J.createClientVe(this.j,this,173040,!0);this.Uh()};
  5241. WU=function(a){eU.call(this,a);var b=this;this.D=this.C=!1;this.Sa=g.EI(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ca=g.EI(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Na=g.EI(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.cK(a);g.N(this,this.B);this.Y="2x";this.speedmasterUserEdu=new YYa(a,this.Y);g.N(this,this.speedmasterUserEdu);g.UT(this.api,this.speedmasterUserEdu.element,4);this.j=new g.SU(this.api.ob().yz,!0,null,
  5242. !1,!0);g.N(this,this.j);this.delay=new g.xv(this.Ea,this.Sa,this);g.N(this,this.delay);this.B.T(a,"videodatachange",function(){VU(b)},this);
  5243. this.B.T(a,"presentingplayerstatechange",function(){VU(b)},this);
  5244. this.B.T(a,"autonavvisibility",function(){VU(b)},this);
  5245. this.api.pm().subscribe("visibilitystatechange",function(){VU(b)});
  5246. this.B.T(a,"rootnodemousedown",function(c){b.N=c});
  5247. this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(c,d){b.qa=d;ZYa(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){ZYa(b,c,!1)},this))};
  5248. XU=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.K,a);a.j.unsubscribe("dragend",a.G,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Uh(),a.api.setPlaybackRate(a.Ga),a.api.showControls(),a.La&&a.api.pauseVideo())};
  5249. ZYa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.yv(a.delay):XU(a)};
  5250. VU=function(a){var b,c;var d=!!a.Y&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Ff()&&2!==a.api.getPresentingPlayerType()&&!g.TF(a.api.getPlayerStateObject(),2)&&!(null==(c=g.IT(a.api))?0:c.Lg())&&!a.api.Yc()&&$Ya(a.api.pm());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.K,a),a.j.unsubscribe("dragend",a.G,a),XU(a)))};
  5251. aZa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
  5252. zT(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
  5253. this.events.T(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=NA(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
  5254. this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
  5255. YU=function(a,b,c){g.Ab.call(this,b,a);this.j=c};
  5256. g.ZU=function(a){OK.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new YU(b,c.type,c))}};
  5257. $U=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
  5258. bZa=function(a){return a.data[a.j]||0};
  5259. aV=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.xv(this.sample,250,this);g.N(this,this.B);this.start()};
  5260. bV=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
  5261. cV=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:bZa(c.buffer))||0};
  5262. cZa=function(a){this.j=a;this.zA=NaN;this.buffer=new $U(100)};
  5263. fZa=function(a){var b=a.Wc(),c=a.getVideoData(),d=a.Se(),e=d.Hb(),f=a.U(),h=b.HE(),l=b.mT,m=8*cV(l,"bandwidth")/1024,n=cV(l,"networkactivity")/1024,p=cV(l,"bufferhealth");if(b.Ce){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Ce.j.getInfo()+"/"+gP(b.qw());q+="/"+b.Ce.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),w=vK(d.Sh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.oD?"DS":"SS");q+="DAI, ";var A=dZa(b);A&&(q+=
  5264. A)}var D;(null==(D=a.getVideoData(1))?0:g.sT(D))?(q+="SSAP, ",(D=dZa(b))&&(q+=D)):NS(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":D="o";break;case "gp":D="gp";break;default:D="gvi"}q+="vd:"+D+", "}f.Id&&(q=f.Id.Kp?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+w+" ";d.isSeeking()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.vE())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.xC;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.JA(bH)("_start",
  5265. void 0);f=[];t=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(v=t.next();!v.done;v=t.next())v=v.value,(w=g.JA(bH)(v,void 0))&&q&&(w-=q,f.push(v+":"+Math.round(w)));q=f.join(" ");f=g.QR();t=g.TT(a).D9;v=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){w+="AAAA";D=0;A="";for(var F=0;20>F;F++)if(D=(D<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var H="",L=0;6>L;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(D&31)+H,D>>=
  5266. 5;A+=H}w=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else w="";m={video_id_and_cpn:String(c.videoId)+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};
  5267. n=e.clientWidth+"x"+e.clientHeight+(1<f?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=IWa(c);var M;n=(null==(M=c.D)?0:M.audio.j)?"DRC":Math.round(a*h)+"%";M=Math.round(a)+"% / "+n;a=c.Of.toFixed(1);isFinite(Number(a))&&(M+=" (content loudness "+a+"dB)");m.volume=M;m.resolution=e.videoWidth+"x"+e.videoHeight;if(M=c.B)if(e=M.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.dV(b))&&a.video&&(m.resolution+=
  5268. " / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=eZa(M),!c.D||M.audio&&M.video?M.a_&&(m.codecs+=" / "+M.a_+"A"):m.codecs+=" / "+eZa(c.D),e.B||e.primaries?(M=e.B||"unknown","smpte2084"===M?M+=" (PQ)":"arib-std-b67"===M&&(M+=" (HLG)"),m.color=M+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;M=c.Zd;m.live_mode_style=e||M?"":"display:none";m.live_latency_style=e?"":"display:none";if(M)m.live_mode="Post-Live"+
  5269. (OS(c)?" Manifestless":"");else if(e){M=cV(l,"livelatency");m.live_latency_secs=M.toFixed(2)+"s";e=OS(c)?"Manifestless, ":"";c.bb&&(e+="Windowed, ");a="Uncertain";if(0<=M&&120>M)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":
  5270. "Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=bV(l,"bandwidth");m.network_activity_samples=bV(l,"networkactivity");m.live_latency_samples=bV(l,"livelatency");m.buffer_health_samples=bV(l,"bufferhealth");b=g.tT(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+
  5271. b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";KS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240520_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0<q.length&&60>=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0<m.extra_debug_info.length?"":"display:none";return m};
  5272. eZa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
  5273. eV=function(a,b,c,d,e){g.W.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
  5274. fV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Cf("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.Cf("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
  5275. a.heightPx+"px",a.B.scale(1,c)));b=g.u(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
  5276. "solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
  5277. gV=function(a){var b=null;b={I:"button",Ka:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},xa:"[X]"};g.W.call(this,{I:"div",Ka:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ka:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",xa:"Video ID / sCPN"},{I:"span",xa:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",xa:"Viewport / Frames"},{I:"span",xa:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",xa:"Current / Optimal Res"},{I:"span",
  5278. xa:"{{resolution}}"}]},{I:"div",V:[{I:"div",xa:"Volume / Normalized"},{I:"span",xa:"{{volume}}"}]},{I:"div",V:[{I:"div",xa:"Codecs"},{I:"span",xa:"{{codecs}}"}]},{I:"div",X:{style:"{{shader_info_style}}"},V:[{I:"div",xa:"Shader Info"},{I:"span",xa:"{{shader_info}}"}]},{I:"div",X:{style:"{{color_style}}"},V:[{I:"div",xa:"Color"},{I:"span",xa:"{{color}}"}]},{I:"div",X:{style:"{{drm_style}}"},V:[{I:"div",xa:"Protected"},{I:"span",xa:"{{drm}}"}]},{I:"div",X:{style:"{{bandwidth_style}}"},V:[{I:"div",xa:"Connection Speed"},
  5279. {I:"span",V:[{I:"span",xa:"{{bandwidth_chart}}"},{I:"span",xa:"{{bandwidth_kbps}}"}]}]},{I:"div",X:{style:"{{network_activity_style}}"},V:[{I:"div",xa:"Network Activity"},{I:"span",V:[{I:"span",xa:"{{network_activity_chart}}"},{I:"span",xa:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",xa:"Buffer Health"},{I:"span",V:[{I:"span",xa:"{{buffer_health_chart}}"},{I:"span",xa:"{{buffer_health_seconds}}"}]}]},{I:"div",X:{style:"{{live_latency_style}}"},V:[{I:"div",xa:"Live Latency"},{I:"span",V:[{I:"span",
  5280. xa:"{{live_latency_chart}}"},{I:"span",xa:"{{live_latency_secs}}"}]}]},{I:"div",X:{style:"{{live_mode_style}}"},V:[{I:"div",xa:"Live Mode"},{I:"span",xa:"{{live_mode}}"}]},{I:"div",X:{style:"{{playback_categories_style}}"},V:[{I:"div",xa:"Playback Categories"},{I:"span",xa:"{{playback_categories}}"}]},{I:"div",V:[{I:"div",xa:"Mystery Text"},{I:"span",xa:"{{debug_info}}"}]},{I:"div",X:{style:"{{extra_debug_info_style}}"},V:[{I:"div",xa:""},{I:"span",V:[{I:"span",xa:"{{extra_debug_info}}"}]}]},{I:"div",
  5281. V:[{I:"div",xa:"Date"},{I:"span",xa:"{{date}}"}]},{I:"div",X:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",xa:"COTN / Local Media"},{I:"span",xa:"{{cotn_and_local_media}}"}]},{I:"div",X:{style:"{{release_style}}"},V:[{I:"div",xa:"Player Release"},{I:"span",xa:"{{release_name}}"}]}]}]});this.Ua=a;this.position=0;this.G=!0;b?(a=this.Fa("ytp-sfn-close"),this.T(a,"click",this.hide)):this.T(this.element,"click",this.hide);a=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];
  5282. b="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var c=a.map(function(d){return d/4});
  5283. this.Y={};this.j=new eV(300,1,150,a,b);g.N(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new eV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.N(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new eV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.N(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new eV(300,1,150,c,b);g.N(this,this.K);this.updateValue("network_activity_chart",
  5284. this.K);this.delay=new g.xv(this.Ta,500,this);g.N(this,this.delay);this.D=new g.xv(this.N,2E4,this);g.N(this,this.D)};
  5285. iZa=function(a){eU.call(this,a);var b=this;zT(a,"getStatsForNerds",function(){return fZa(b.api)});
  5286. AT(a,"showVideoInfo",function(){gZa(b,!0)});
  5287. AT(a,"hideVideoInfo",function(){gZa(b,!1)});
  5288. AT(a,"isVideoInfoVisible",function(){return hZa(b)})};
  5289. gZa=function(a,b){var c=hZa(a);a.j||(a.j=new gV(a.api),g.N(a,a.j),g.UT(a.api,a.j.element,4));g.hF(a.j,b);var d=QT(a.api.yb());d&&d.loaded&&c!==b&&d.uT();b&&a.api.ma("sfn",{},!0)};
  5290. hZa=function(a){var b;return!(null==(b=a.j)||!b.Fb)};
  5291. hV=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.wv(this.j,null,this);g.N(this,this.delay)};
  5292. jZa=function(a,b){if("path"===b.I)return b.X.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&"string"!==typeof d&&(d=jZa(a,d)))return d}};
  5293. nZa=function(a,b,c){c=jZa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=dF();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=kZa(e),m=kZa(c);lZa(a,function(n){d.setAttribute("d",mZa(l,m,n))},200)};
  5294. lZa=function(a,b,c){a.B=b;a.startTime=(0,g.EC)();a.duration=c;a.j()};
  5295. kZa=function(a){var b=[];a=a.match(oZa);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
  5296. mZa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
  5297. iV=function(a){g.W.call(this,{I:"button",Ka:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.api=a;this.bk=null;this.transition=new hV;g.N(this,this.transition);this.T(a,"sizestylechange",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);a.createClientVe(this.element,this,139116);this.Ta();this.listen("click",this.onClick);LT(a,this.element,
  5298. this)};
  5299. pZa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new iV(a);g.N(b,b.button);a.cz(b.button)})};
  5300. qZa=function(a){eU.call(this,a);var b=this;AT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
  5301. AT(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
  5302. jV=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.qq(e,"$httpHeaders",d):e}
  5303. var c=void 0===c?!1:c;this.Zi=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
  5304. kV=function(a){eU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Mb=null;this.D=!1;this.B=null;var c=a.U().getWebPlayerContextConfig();this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.bj=d.bj;a.U().zc()&&b.api.ma("sps",{status:b.bj||""});if(b.L("html5_handle_sps_status"))if(1===b.bj)b.api.OG(0);else if(2===b.bj||3===b.bj)if(b.D&&!b.B&&rZa(b),3===b.bj){var e=b.api.xJ();e++;var f;d=null!=(f=d.H0)?f:Infinity;if(e<d){b.api.OA(!0);var h;null==
  5305. (h=b.B)||h.then(function(){b.api.OA(!1)});
  5306. b.api.OG(e)}else b.api.Zf("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
  5307. this.events.T(a,"spsumpreject",function(d,e){d&&b.D&&!b.B&&rZa(b);if(e){var f;null==(f=b.B)||f.then(function(){var h,l=null==(h=g.HT(b.api.app))?void 0:h.ya;l&&l.OA(!1)})}});
  5308. this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Mb=a.Ai();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Mb.Lh("pot_isc"),sZa(b),b.L("html5_webpo_idle_priority_job")?g.jC(g.lC(),function(){tZa(b)}):tZa(b))}catch(e){e instanceof Error&&g.JE(e)}});
  5309. a.QS(this)};
  5310. uZa=function(a,b){if(a.L("html5_placeholder_po_tokens"))return"2ZCPXHYZSpebQXqOYNtj";var c=iR(b.experiments,"html5_cache_request_key")||iR(b.experiments,"html5_web_po_request_key");return c?c:g.PI(b)?a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
  5311. sZa=function(a){function b(h){g.JE(h)}
  5312. var c=a.api.U(),d=uZa(a,c);try{var e=a.L("html5_po_token_enable_webpo_experimental")?new jV(d):Tga(d),f=sTa(c.experiments);c={Zi:d,onError:b,Kz:e,Vv:f,qR:function(){a.api.ma("itr",{})}};
  5313. a.L("html5_web_po_send_onevent_ticks")&&(c.onEvent=function(h){(h=vZa[h])&&a.Mb.Lh(h)});
  5314. a.j=new Zq(c);g.N(a,a.j)}catch(h){h instanceof Error&&g.JE(h)}};
  5315. tZa=function(a){var b=a.api.U();a.Mb.Lh("pot_ist");var c;null==(c=a.j)||c.start();a.L("html5_generate_content_po_token")||(lV(a),rZa(a),b=g.EI(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.YA(function(){lV(a)},b)),a.D=!0)};
  5316. lV=function(a){var b,c,d,e;g.G(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.FA("EOM_VISITOR_DATA")||g.FA("VISITOR_DATA");d=b.Ll?b.datasyncId:c;e=iR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.cg=wZa(a,e);g.Aa(f)})};
  5317. wZa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Mb.Lh("pot_cms"):a.Mb.Lh("pot_csms");var d="";d=a.L("html5_web_po_token_caching")?$ga(a.j,{Yv:b,kz:{HW:b,k$:150,V6:!0,Xda:!0}}):$ga(a.j,{Yv:b});if(c){if(a.Mb.Lh("pot_cmf"),a.L("html5_handle_sps_status")){var e;null==(e=a.B)||e.resolve();a.B=null}}else a.Mb.Lh("pot_csmf");return d}catch(f){return g.JE(f),""}};
  5318. rZa=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new NK),a.j.ready().then(function(){a.Mb.Lh("pot_if");lV(a)}))};
  5319. xZa=function(a){eU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
  5320. b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
  5321. zT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
  5322. zT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
  5323. mV=function(a){g.I.call(this);this.features=[];var b=this.j,c=new mYa(a),d=new fU(a),e=new zU(a),f=new kV(a);var h=g.NI(a.U())?void 0:new rU(a);var l=new yU(a),m=new iZa(a),n=new qZa(a),p=new vU(a);var q=g.NI(a.U())?new xZa(a):void 0;var r=a.L("html5_enable_ssap")?new aZa(a):void 0;var t=a.L("web_cinematic_watch_settings")&&null!=(t=a.U().getWebPlayerContextConfig())&&t.cinematicSettingsAvailable?new XXa(a):void 0;var v=new uU(a);var w=a.L("enable_courses_player_overlay_purchase")?new jYa(a):void 0;
  5324. var A=g.RR(a.U())?new fYa(a):void 0;var D=new $Xa(a);var F=a.U().D?new aYa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().Be?new PXa(a):void 0;var L=g.RR(a.U())?new wU(a):void 0;var M=a.L("web_enable_speedmaster")&&g.RR(a.U())?new WU(a):void 0;var R=a.U().Ak?void 0:new pZa(a);var ea=a.L("report_pml_debug_signal")?new KXa(a):void 0;var la=new yYa(a),ka=new EYa(a);var ia=a.L("enable_web_player_player_in_bar_feature")&&g.jG(a.U())?new GYa(a):void 0;var sa="flix"===a.U().playerStyle?new lYa(a):
  5325. void 0;var aa=navigator.mediaSession&&window.MediaMetadata&&a.U().Bj?new qYa(a):void 0;var U=a.L("html5_enable_drc")&&!a.U().K?new qU(a):void 0;var Ha=new EXa(a);var x=a.U();var ba=x.K&&"apps-elements"===(null==(ba=x.getWebPlayerContextConfig())?void 0:ba.houseBrandEnvironment)?new kYa(a):void 0;x=g.RR(a.U())?new TYa(a):void 0;var La=a.L("html5_enable_d6de4")?new DYa(a):void 0;a=g.RR(a.U())&&a.L("web_sleep_timer")?new WYa(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L,M,R,ea,la,ka,ia,
  5326. sa,aa,U,Ha,ba,x,La,a)};
  5327. nV=function(){this.B=this.j=NaN};
  5328. yZa=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new nV;this.j=b||null;this.C=!1};
  5329. zZa=function(a,b,c){var d=g.GR(b.Da)&&!b.Da.K;if(b.Da.Fl&&(DR(b.Da)||"shortspage"===b.Da.La||YR(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.FA("TIMING_ACTION")||EA("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&EA("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Ai();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,eH(f,d[f],a.timerName);d=g.JA(mza)(a.j.DI);g.fH(d,a.timerName);d=a.j;d.B={};d.DI={}}g.fH({playerInfo:{visibilityState:g.JA(iza)()},playerType:"LATENCY_PLAYER_HTML5"},
  5330. a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(hH("_start",a.timerName)?c=g.JA(bH)("_start",a.timerName)+a.B:g.JE(new g.eC("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!hH("pbs",a.timerName)&&a.tick("pbs",c)}};
  5331. AZa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if("video_to_ad"!==a||null!=h&&h.Ga){h="ad_to_video"===a?h:e;c=null==h?void 0:h.FI;var l={};if(null==e?0:e.G)l.cttAuthInfo={token:e.G,videoId:e.videoId};l.startTime=null!=f?f:d;gH(a,l);var m,n,p;e={targetVideoId:null!=(m=null==e?void 0:e.videoId)?m:"empty_video",targetCpn:b,adVideoId:null!=(n=null==h?void 0:h.videoId)?n:"empty_video",adClientPlaybackNonce:null!=(p=null==c?void 0:c.cpn)?p:null==h?void 0:h.clientPlaybackNonce};
  5332. c&&(e.adBreakType=c.adBreakType,e.adType=c.adType);g.fH(e,a);eH("pbs",d,a)}};
  5333. oV=function(a){xza();wza();a.timerName=""};
  5334. BZa=function(a){if(a.j){var b=a.j;b.B={};b.DI={}}a.C=!1;a.G=void 0;a.B=NaN};
  5335. CZa=function(a,b){g.aF.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=LA(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
  5336. b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new nS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.YUa(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.u(a);for(c=a.next();!c.done;c=a.next())(c=
  5337. c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=jS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
  5338. DZa=function(a){return!!(a.playlist||a.list||a.api)};
  5339. EZa=function(a){var b=a.index+1;return b>=a.length?0:b};
  5340. FZa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
  5341. g.pV=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.ES(a.Da,b),g.N(a,e),e.Tm=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
  5342. GZa=function(a,b){a.index=g.Ce(b,0,a.length-1);a.startSeconds=0};
  5343. HZa=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.pV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
  5344. KZa=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){c=g.uH();var p=a.U(),q={context:g.xT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
  5345. b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,w,A,D,F,H;r=(null==(H=g.V(null==(v=r)?void 0:null==(w=v.embedPreview)?void 0:null==(A=w.thumbnailPreviewRenderer)?void 0:null==(D=A.playButton)?void 0:null==(F=D.buttonRenderer)?void 0:F.navigationEndpoint,g.PS))?void 0:H.videoId)||null}else r=null}v=(v=r)?v:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var L;"user_uploads"===A?L={username:w}:L={playlistId:w};IZa(p,v,b,L);q.playlistRequest=
  5346. L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},IZa(p,v,b,L),q.playlistRequest=L):v&&(L={videoId:v},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.tG(JZa);g.Ba(n,2);return g.z(n,g.lH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ea=vqa(b,g.BR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ea,f&&(l=f,l.trackingParams&&SO(l.trackingParams)),n.return(new g.ES(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.IE(m);return n.return(a)})};
  5347. IZa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
  5348. g.rV=function(a,b){qV.get(a);qV.set(a,b)};
  5349. g.sV=function(a){g.aF.call(this);this.loaded=!1;this.player=a};
  5350. LZa=function(){this.B=[];this.j=[]};
  5351. g.tV=function(a,b){return b?a.j.concat(a.B):a.j};
  5352. g.uV=function(a,b){switch(b.kind){case "asr":MZa(b,a.B);break;default:MZa(b,a.j)}};
  5353. MZa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
  5354. g.vV=function(a){g.I.call(this);this.W=a;this.B=new LZa;this.D=[];this.N=[]};
  5355. g.wV=function(a,b,c){g.vV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.uv;this.N=b.IC;this.C=g.nT(b)};
  5356. NZa=function(){this.ej=!1};
  5357. OZa=function(a){a=void 0===a?{}:a;var b=void 0===a.OE?!1:a.OE,c=new NZa;c.ej=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
  5358. g.PZa=function(a){this.Da=a;this.N=new NZa;this.jq=this.bq=!1;this.Zo=2;this.Ca=20971520;this.bb=8388608;this.ra=120;this.Qc=62914560;this.yp=g.EI(this.Da.experiments,"html5_min_readbehind_secs");this.cD=g.EI(this.Da.experiments,"html5_min_readbehind_cap_secs");this.tj=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.sb=NaN;this.fv=this.Fl=this.Jv=2;this.wj=1024*xV(this,"html5_request_size_min_kb",64);this.Na=2097152;this.Qy=xV(this,"html5_bypass_contention_secs");this.ev=
  5359. 1048576;this.Ll=!1;this.uj=xV(this,"html5_repredict_interval_ms",1800);this.HC=xV(this,"html5_head_miss_secs",5);this.eD=xV(this,"html5_min_upgrade_health_secs",10);this.gb=15;this.Qf=1;this.Z=1.15;this.Y=1.05;this.Hl=1;this.dD=xV(this,"html5_min_seconds_between_format_selections",8);this.GC=xV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Fs=hR;this.qn=this.qc=!1;this.qj=6;this.j=!1;this.sj=g.EI(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.oy=g.EI(this.Da.experiments,
  5360. "html5_post_interrupt_readahead");this.Uy=this.Da.L("html5_disable_classic_alr");this.uy=g.EI(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Hv=100;this.Ki=10;this.gD=6;this.xv=xV(this,"html5_ssdai_failure_retry_limit",3);this.Kl=this.Da.experiments.fb("html5_clone_original_for_fallback_location");this.Sg=!1;this.Kb=g.EI(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Ak=g.EI(this.Da.experiments,"html5_subsegment_readahead_timeout_secs");this.CH=
  5361. g.EI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.zk=g.EI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.uC=g.EI(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.Gv=g.EI(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.wC=g.EI(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Mi=xV(this,"html5_hopeless_secs",15);this.Vo=1;this.Jd=!1;this.CF=this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");
  5362. this.IC=g.EI(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.kD=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.qD=this.Da.L("html5_prefer_server_bwe3");this.zC=this.Da.L("html5_last_slice_transition");this.xH=this.Da.L("html5_store_xhr_headers_readable");this.uv=this.rh=this.Sj=!1;this.Xo=g.EI(this.Da.experiments,"html5_max_drift_per_track_secs");this.Gp=this.Da.L("html5_no_placeholder_rollbacks");this.zH=this.Da.L("html5_subsegment_readahead_enable_mffa");this.nf=
  5363. this.Da.L("html5_allow_video_keyframe_without_audio");this.jD=this.Da.L("html5_enable_vp9_fairplay");this.Za=!0;this.Be=this.Va=this.Tb=!1;this.Tm=!0;this.hv=!1;this.D="";this.bA=1048576;this.Sd=[];this.PA=this.Da.L("html5_woffle_resume");this.El=this.Da.L("html5_abs_buffer_health");this.vC=this.Da.L("html5_interruption_resets_seeked_time");this.aD=g.EI(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.La=!1;this.Ym=this.Da.L("html5_explicitly_dispose_xhr");this.vy=!1;
  5364. this.Gl=!this.Da.L("html5_encourage_array_coalescing");this.Jl=!1;this.vF=this.Da.L("html5_restart_on_unexpected_detach");this.jj=0;this.rb="";this.yH=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.Ly=this.Da.L("html5_abort_before_separate_init");this.lG=oqa();this.nH=this.Da.L("html5_serialize_server_stitched_ad_request");this.Ry=this.Da.L("html5_skip_buffer_check_seek_to_head");this.je=!1;this.Py=this.Da.L("html5_attach_po_token_to_bandaid");
  5365. this.fp=g.EI(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Bj=this.Da.L("html5_rewrite_timestamps_for_webm");this.zb=this.Da.L("html5_only_media_duration_for_discontinuities");this.lF=g.EI(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.yC=this.Da.L("html5_onesie_premieres");this.yA=this.Da.L("html5_drop_onesie_for_live_mode_mismatch");this.hD=g.EI(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Qp=g.EI(this.Da.experiments,
  5366. "html5_attach_num_random_bytes_to_bandaid");this.iD=g.EI(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.B=!1;this.xf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.iC=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.gz=this.Da.L("html5_disable_ssap_append_pause");this.tC=this.Da.L("html5_sabr_ignore_changetype_exception");this.DB=this.Da.L("html5_reinit_source_buffer_on_sabr_format");this.Sm=this.Da.L("html5_init_source_buffer_after_metadata");this.BH=this.Da.L("html5_gapless_fallback_on_append_error");
  5367. this.Iv=!1;this.Ea=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.AC=this.Da.L("html5_use_post_for_media");this.Ob=this.Da.L("html5_use_live_ump_heartbeat");this.Gk=this.Da.L("html5_use_sps_ump_part");this.DC=this.Da.L("html5_sabr_use_sps_ump_part");this.cg=this.Da.L("html5_enable_sps_non_fatal_logs");this.wH=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.Wa=this.Ga=!1;this.pD=this.Da.Sf;this.dF=this.Da.L("html5_reset_primary_stats_on_redirector_failure");
  5368. this.sD=this.Da.L("html5_remap_to_original_host_when_redirected");this.Ml=this.Sf=this.C=!1;this.Rf=this.Da.L("html5_enable_sabr_format_selection");this.Wy=this.Da.L("html5_disable_sabr_fallback_on_player_exception");this.Um=this.Da.L("html5_sabr_support_quality_constraints");this.fE=this.Da.L("html5_sabr_remove_all_quality_constraints");this.Sy=this.Da.L("html5_iterative_seeking_buffered_time");this.Dl=this.Da.L("html5_use_network_error_code_enums");this.Vy=this.Da.L("html5_disable_overlapping_requests");
  5369. this.G=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.qC=this.Da.L("html5_enable_sabr_request_timing");this.Vm=this.Da.L("html5_enable_server_format_filter");this.xA=this.Da.L("html5_drc_edit_sync_workaround");this.aB=this.Da.L("html5_enable_lawnmower");this.oB=this.Da.L("html5_enable_lawnmower_messaging");this.Pf=this.Da.zc()?g.EI(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.xC=g.EI(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||
  5370. NaN;this.Pp=g.EI(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.fD=g.EI(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Pp;this.EC=this.Da.L("html5_live_defrag_only_h264_playbacks");this.CC=this.Da.L("html5_live_defrag_only_h264_formats");this.rD=this.Da.L("html5_record_now");this.yf=!1;this.Ol=g.EI(this.Da.experiments,"html5_drm_byterate_soft_cap");this.Pl=g.EI(this.Da.experiments,"html5_drm_live_byterate_soft_cap");this.To=this.wy=!1;this.Jb=this.Da.L("html5_sabr_report_request_cancellation_info");
  5371. this.Of=this.Tp=this.Fv=!1;this.wv=this.Da.L("html5_spoof_4k");this.hp=xV(this,"html5_min_media_duration_for_cabr_slice");this.bD=this.Gl?0:xV(this,"html5_min_media_duration_for_append_prop");this.cF=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Bc=!0;this.Ty=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.Jz=this.Da.L("html5_disable_urgent_adaptation");this.Oy=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.tv=this.Da.L("html5_send_video_playback_ustreamer_config");
  5372. this.Wo=xV(this,"html5_max_discontinuity_rewrite_count");this.Yo=xV(this,"html5_max_drift_seconds");this.cn=xV(this,"html5_fixed_media_duration_for_request");this.qv=this.Da.L("html5_sabr_use_init_selected_audio");this.Il=this.Da.L("html5_use_init_selected_audio");this.Sa=!1;this.yd=xV(this,"html5_sabr_request_limit_per_period");this.Xm=this.K=this.ov=this.Fk=!1;this.Gb=this.Da.L("html5_sabr_live_partial_segment");this.pd=this.Da.L("html5_sabr_dispose_media_objects");this.Nl=!1;this.Ny=this.Da.L("html5_account_for_underrun_advance_in_sabr");
  5373. this.Zm=this.Da.L("html5_fix_underrun_advance_with_buffer_tracking_in_sabr");this.Li=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Uo=this.Da.L("html5_log_post_size");this.py=this.nj=!1;this.BB=this.Da.L("html5_enable_d6de4");this.My=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.gp=g.EI(this.Da.experiments,"html5_micro_discontinuity_threshold_ms_in_buffer_timeline");this.FC=this.Da.L("html5_ssap_keep_only_ssap_eos_check")};
  5374. QZa=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.bq&&(a.Ca=36700160,a.bb=5242880,a.Na=Math.max(4194304,a.Na),a.bq=!0);2160<b.video.j&&!a.jq&&(a.Ca=104857600,a.sb=13107200,a.jq=!0);0!==g.EI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.pB()&&g.nB("samsung")&&(g.nB("kant")||g.nB("muse"))&&(a.sb=g.EI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.pB()&&g.nB("kant")&&(a.sb=1310720);0!==a.Ol&&b.isEncrypted()&&(a.sb=a.Ol);0!==a.Pl&&b.isEncrypted()&&
  5375. c&&(a.sb=a.Pl);b.sb&&(a.ev=Math.max(a.wj,Math.min(a.Na,5*b.sb)))};
  5376. yV=function(a){return a.C&&a.Rf};
  5377. zV=function(a){return a.C&&a.Sf&&a.playbackStartPolicy};
  5378. RZa=function(a,b,c,d){a.Sf&&(a.playbackStartPolicy=b,a.oD=c,a.lD=d)};
  5379. xV=function(a,b,c){return g.EI(a.Da.experiments,b)||(void 0===c?0:c)};
  5380. g.SZa=function(a,b){return rK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
  5381. g.TZa=function(a,b){if(null!=a.j&&g.NI(b.U())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Zb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.SZa(c,"386")});
  5382. a=!!a.j&&!a.j.isManifestless&&vSa(a.j);return b||a};
  5383. g.AV=function(a,b,c,d,e,f){g.vV.call(this,a);this.videoId=c;this.RY=e;this.eventId=f;this.G={};this.j=null;a=d||g.OA(b).hl||"";a=a.split("_").join("-");this.C=PA(b,{hl:a})};
  5384. UZa=function(a,b,c){for(var d=null,e={jA:0};e.jA<a.length;e={jw:void 0,jA:e.jA},e.jA++)if(e.jw=a[e.jA],e.jw.condition()){var f=function(h){return function(){try{if(h.jw.condition()){var l=h.jw.func();return b?l.then(function(m){if(!b(m))throw Error("verification failed");return m}):l}}catch(m){return Promise.reject(m)}return Promise.reject()}}(e);
  5385. d?d=d.then(void 0,f):d=f();d=d.then(void 0,function(h){return function(l){if(l){if(h.jw.onFailure)h.jw.onFailure(l);c&&c(h.jA,h.jw,l)}throw l;}}(e))}return d};
  5386. VZa=function(a,b){return{fz:a.fz&&b.fz,Id:a.Id&&b.Id,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
  5387. BV=function(a,b){var c=WZa;this.path=a;this.C=b;this.D=c;this.capabilities={fz:!!this.C,Id:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly}};
  5388. ZZa=function(a){var b=XZa;return b.instantiate(a?VZa(b.capabilities,a):b.capabilities,new YZa)};
  5389. $Za=function(a){if(a.B)return a.B;a.B=fetch(a.path).then(function(b){return b.arrayBuffer()}).then(function(b){a.B=Promise.resolve(b);
  5390. return b}).then(void 0,function(b){g.JE(Error("wasm module fetch failure",{cause:b}));
  5391. a.B=void 0;throw b;});
  5392. return a.B};
  5393. a_a=function(a,b){if(!b.Id)return Promise.reject(Error("wasm unavailable"));if(a.j)return a.j;a.j=a.compile(b).then(function(c){a.j=Promise.resolve(c);return c},function(c){g.JE(Error("wasm module compile failure",{cause:c}));
  5394. a.j=void 0;throw c;});
  5395. return a.j};
  5396. b_a=function(){};
  5397. c_a=function(){};
  5398. YZa=function(){this.env=new b_a;this.wasi_snapshot_preview1=new c_a};
  5399. WZa=function(a,b){b._initialize();a=Math.floor(256*Math.random());var c=Math.floor(256*Math.random()),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==16*c%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;16>f;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{0!==d&&b.free(d)}};
  5400. CV=function(a,b){this.instance=a;this.Kp=b;this.exports=this.instance.exports};
  5401. e_a=function(a,b,c){c=void 0===c?!1:c;var d=DV.us();return d_a(a,b,{fz:c,Id:!0,sync:!0,streaming:!0}).then(function(e){DV.Wq(e.Kp?"winitjs":"winit",d);return e})};
  5402. d_a=function(a,b,c){XZa||(XZa=new BV(a,b));return ZZa(c).then(function(d){return new CV(d.instance,d.Kp)})};
  5403. f_a=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.DI={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.cK(this);this.qd={Bpb:function(){return c.j}};
  5404. this.He=new Map;g.N(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
  5405. g.EV=function(a){return a.He.get("captions")};
  5406. l_a=function(a,b){switch(b){case "ad":return g_a(a);case "annotations_module":return a.J.Yc()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.UT||"3"===a.controlsType?!1:a.Na.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Va||!!g.lT(b)||!!g.GWa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return h_a(a);case "embed":return g.BR(a.J.U());case "endscreen":return g.i_a(a);case "heartbeat":return a.YS();case "inline_preview":return a.J.U().showInlinePreviewUi;
  5407. case "kids":return MR(a.J.U());case "remote":return a.J.U().wj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().sj;case "captions":return j_a(a);case "unplugged":return g.HR(a.J.U());case "ux":return a.J.U().bb;case "webgl":return k_a(a);case "ypc":return a.TG();case "ypc_clickwrap":return a=a.J.getVideoData(),a.cg&&!a.qD;case "yto":return!!a.J.getVideoData().Ea.includes("yto");default:return g.IE(Error("Module descriptor "+b+" does not match")),!1}};
  5408. FV=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.He.get(b);if(!h||d)if(e||(e=function(){FV(a,b,c,d)}),f||(f=function(){a.J.zg(b)}),h=h||m_a(a,b,l_a(a,b),e,f))a.He.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Hm("onApiChange")};
  5409. o_a=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.G(function(l){if(1==l.j)return(c=a.He.get("asmjs"))&&!b?l.return(c):null!=(d=qV.get("asmjs"))?(e=d,l.Ia(2)):g.z(l,new Promise(function(m,n){n_a(a,"asmjs",function(){var p=qV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
  5410. 2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.He.set("asmjs",h);h.create();return l.return(h)})};
  5411. r_a=function(a){p_a(a)&&a.qO();q_a(a)&&(FV(a,"captions",!0),FV(a,"endscreen"),a.AI(),FV(a,"creatorendscreen",!0))};
  5412. q_a=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
  5413. p_a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Ea,"ad")||uWa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null==
  5414. (h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
  5415. j_a=function(a){var b=a.J.getVideoData();return!!b.Sd||!!b.captionTracks.length||g.TZa(b,a.J)};
  5416. g.i_a=function(a){var b=a.J.U();if(b.C||YR(b)||b.K||!b.yd&&!b.Sg)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
  5417. g.ST=function(a){return a.He.get("webgl")};
  5418. k_a=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.nqa(),d=a.L("enable_spherical_kabuki"),e=g.VR(a);if(g.jT(b))return c||d||e;if(g.hT(b))return e||c||d;if(g.iT(b))return e||c||!1;if(g.YS(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.$S(b)&&!c&&a.L("enable_webgl_noop")};
  5419. g_a=function(a){if(a.J.U().C)return!1;a=a.J.getVideoData(1);var b=a.getPlayerResponse();if(b){var c=b.adPlacements;if(c)for(var d=0;d<c.length;d++)if(c[d].adPlacementRenderer)return!0;if(b.adSlots)return!0}return g.sT(a)?!0:!1};
  5420. h_a=function(a){if(a.J.Yc())return!1;a=a.J;var b=a.U();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.EWa(a)||!!g.FWa(a))};
  5421. m_a=function(a,b,c,d,e){try{if(c){var f=qV.get(b);if(f)return new f(a.J);n_a(a,b,d,e)}else a.J.zg(b)}catch(h){a.J.zg(b),g.IE(h)}return null};
  5422. GV=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.u(s_a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.He.get(e);f&&(c||f.Lm(b))&&(g.vb(f),a.He.delete(e))}else for(d=g.u(a.He),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,(f=f.next().value)&&(c||f.Lm(b))&&(g.vb(f),a.He.delete(e))};
  5423. HV=function(a){return a.He.get("ad")};
  5424. t_a=function(a){if(MR(a.J.U()))return a.He.get("kids")};
  5425. QT=function(a){if(a.J.U().wj)return a.He.get("remote")};
  5426. g.IV=function(a){if(g.HR(a.J.U()))return a.He.get("unplugged")};
  5427. oXa=function(a){if(a.J.U().bb)return a.He.get("ux")};
  5428. JV=function(a){if(a.J.U().sj)return a.He.get("offline")};
  5429. g.KV=function(a){return a.He.get("annotations_module")};
  5430. u_a=function(a){return a.He.get("creatorendscreen")};
  5431. w_a=function(a,b){var c,d;return g.G(function(e){c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";d=function(f){var h=a.He.get("asmjs");return h?Promise.resolve(h.ZY(f)):v_a(a).then(function(l){return l.ZY(f)})};
  5432. return e.return(e_a(c,d,b))})};
  5433. v_a=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,o_a(a),2);c=b=d.B;return d.return(c)})};
  5434. n_a=function(a,b,c,d){if(a.j){var e=x_a[b];y_a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
  5435. y_a=function(a,b,c,d){function e(){a.Ma()||d.call(a)}
  5436. function f(){a.Ma()||c.call(a)}
  5437. for(var h=g.of("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Cf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(w){Wf(f);q&&q.apply(window,[w])};
  5438. var r=m.onerror;m.onerror=function(w){if(.01>Math.random()){var A=new g.eC("Unable to load player module",b,document.location&&document.location.origin);g.IE(A)}Wf(e);r&&r(w)};
  5439. var t=m,v=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Wf(f)}v&&v(w)};
  5440. l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.Ve(m,g.Xw(b)),h=g.of("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
  5441. z_a=function(a,b,c,d,e){g.aF.call(this);var f=this;this.target=a;this.pI=b;this.B=0;this.K=!1;this.D=new g.Ie(NaN,NaN);this.j=new g.cK(this);this.Ca=this.C=this.N=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Y=new g.xv(function(){LV(f,1,!1)},b,this);
  5442. g.N(this,this.Y);this.qa=new g.xv(function(){LV(f,2,!1)},b,this);
  5443. g.N(this,this.qa);this.ra=new g.xv(function(){LV(f,512,!1)},b,this);
  5444. g.N(this,this.ra);this.Ga=3E3;d||(this.C=this.j.T(a,"mouseover",this.kx),this.j.T(a,"mousemove",this.C5),this.j.T(a,"mouseleave",this.A$));Js?this.j.T(a,"keypress",this.S9):this.j.T(a,"focusin",this.d8);this.G=this.j.T(a,"mousedown",this.tV);this.Z=this.j.T(a,"touchstart",this.uV,void 0,!0);LV(this,640,!0)};
  5445. A_a=function(a){LV(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.kx));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.kx))};
  5446. LV=function(a,b,c){a.Ma();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.qa.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.yv(a.ra,a.Ga);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
  5447. g.NV=function(a){g.W.call(this,{I:"button",Ka:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ta);this.T(a,"basechromeinitialized",this.Cea);a=this.api.U();a.Z&&MV&&(this.listen("click",this.U8,this),this.listen("touchstart",this.Lca,this));g.GR(a)&&g.Fv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ta()};
  5448. g.OV=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.K&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.W.call(this,{I:"div",Ka:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");c=new g.NV(a);g.N(this,c);c.Ja(b);this.D=new g.cK(this);g.N(this,this.D);this.api=a;this.G=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.MF(this,250);g.N(this,this.B);this.j=new g.xv(this.Ta,
  5449. 0,this);g.N(this,this.j);this.Ta();this.T(a,"appresize",this.dc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.sca);DR(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
  5450. B_a=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.getPlayerStateObject();a=g.TF(a,64)&&g.TF(a,1);return 0===b&&a};
  5451. g.PV=function(a){g.W.call(this,{I:"div",Ka:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
  5452. V:[{I:"div",S:"ytp-error-content-wrap-reason",xa:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",xa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Fb)};
  5453. g.QV=function(a){a=a.split(C_a);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",X:{href:a[c],target:a[c+1]},xa:a[c+2]})}return{I:"span",V:b}};
  5454. SV=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.U().D);var l=a.api.getVideoData();b=g.qJ(g.RV[b]||"",d?{CPN:l.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",xa:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",X:{href:c,target:e?"_blank":null},S:"ytp-error-link",xa:b[2]});a.C=!0;d.push(b[4]);return{I:"span",V:d}};
  5455. D_a=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
  5456. E_a=function(a){for(var b=0;b<a.keys.length;b++)a.Pc(a.keys[b]);a.keys=[]};
  5457. F_a=function(a){g.W.call(this,{I:"div",S:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.Fe=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.TR(b)?(this.B=new g.W({I:"a",S:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",xa:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",xa:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",
  5458. xa:"{{chevron}}"}]}),this.T(this.B.element,"click",this.onClick)):this.B=new g.W({I:"div",Ka:["ytp-button","ytp-paid-content-overlay-text"],xa:"{{text}}"});this.D=new g.MF(this.B,250,!1,100);g.N(this,this.B);this.B.Ja(this.element);g.N(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.F5)};
  5459. H_a=function(a,b){var c=rWa(b),d=sWa(b);b.cg&&a.J.Kn()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Av(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&G_a(a,d,c,b)):c&&d&&G_a(a,d,c,b))};
  5460. G_a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.xv(a.Nb,b,a);g.N(a,a.j);d=qWa(d);b=null==d?void 0:d.navigationEndpoint;var e;d=null==d?void 0:null==(e=d.icon)?void 0:e.iconType;var f;e=null==(f=g.V(b,g.yF))?void 0:f.url;a.J.setTrackingParams(a.element,(null==b?void 0:b.clickTrackingParams)||null);b&&!e?(a.innertubeCommand=b,e="#!"):a.innertubeCommand=null;var h;a.B.update({href:null!=(h=e)?h:"#",text:c,icon:"MONEY_HAND"===d?{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
  5461. V:[{I:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
  5462. fill:"white"}}]}:null,chevron:e||a.innertubeCommand?g.oF():null})};
  5463. I_a=function(a,b){a.j&&(g.TF(b,8)&&a.C?(a.C=!1,a.od(),a.j.start()):(g.TF(b,2)||g.TF(b,64))&&a.videoId&&(a.videoId=null))};
  5464. TV=function(a){g.W.call(this,{I:"div",S:"ytp-spinner",V:[TXa(),{I:"div",S:"ytp-spinner-message",xa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.j=new g.xv(this.show,500,this);g.N(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Gc(a.getPlayerStateObject())};
  5465. UV=function(a){var b=[{I:"div",Ka:["ytp-unmute-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
  5466. {I:"div",Ka:["ytp-unmute-text"],xa:"Tap to unmute"}];b.push({I:"div",Ka:["ytp-unmute-box"],V:[]});g.ZT.call(this,a,{I:"button",Ka:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{I:"div",S:"ytp-unmute-inner",V:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.createClientVe(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.nk);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
  5467. !g.BR(this.api.U());g.hF(this,a);a&&J_a(this);this.C=a};
  5468. J_a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
  5469. g.VV=function(a){g.cK.call(this);var b=this;this.api=a;this.IQ=!1;this.Pn=null;this.oO=!1;this.qg=null;this.pO=this.aM=!1;this.zT=this.AT=null;this.sZ=NaN;this.yT=this.SD=!1;this.BF=0;this.tN=[];this.QR=!1;this.QJ={height:0,width:0};this.C1=480;this.Tea=["ytp-player-content","html5-endscreen","ytp-overlay"];this.vK={kA:!1};var c=a.U(),d=a.ob();this.QJ=a.getPlayerSize();this.wW=new g.xv(this.bR,0,this);g.N(this,this.wW);this.xn=new g.OV(a);g.N(this,this.xn);g.UT(a,this.xn.element,4);if(K_a(this)){var e=
  5470. new TV(a);g.N(this,e);e=e.element;g.UT(a,e,4)}var f=a.getVideoData();this.Eg=new z_a(d,function(l){return b.pI(l)},f,c.Gl,!1);
  5471. g.N(this,this.Eg);this.Eg.subscribe("autohideupdate",this.cB,this);if(!c.disablePaidContentOverlay){var h=new F_a(a);g.N(this,h);g.UT(a,h.element,4)}this.DT=new UV(a);g.N(this,this.DT);g.UT(this.api,this.DT.element,2);this.PP=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.XL=new g.xv(this.Bs,200,this);g.N(this,this.XL);this.jF=f.videoId;this.M0=new g.xv(function(){b.BF=0},350);
  5472. g.N(this,this.M0);this.MI=new g.xv(function(){b.yT||L_a(b)},350,this);
  5473. g.N(this,this.MI);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Fv(f,"ytp-color-white")}this.T(a,"appresize",this.dc);this.T(a,"presentingplayerstatechange",this.nk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.bba);this.T(a,"autonavvisibility",function(){b.zq()});
  5474. this.T(a,"sizestylechange",function(){b.zq()});
  5475. this.T(d,"click",this.Cba,this);this.T(d,"dblclick",this.Dba,this);this.T(d,"mousedown",this.Gba,this);c.Gb&&(this.T(d,"gesturechange",this.Eba,this),this.T(d,"gestureend",this.Fba,this));this.zF=[d.yz];this.xn&&this.zF.push(this.xn.element);e&&this.zF.push(e)};
  5476. M_a=function(a,b){if(!b)return!1;var c=a.api.Se();if(c.Ev()&&(c=c.Hb())&&g.Rf(c,b))return c.controls;for(c=0;c<a.zF.length;c++)if(g.Rf(a.zF[c],b))return!1;c=g.u(a.Tea);for(var d=c.next();!d.done;d=c.next())if(g.Ev(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
  5477. N_a=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.ob().MJ||!1)&&a.api.U().B&&MV&&11<=IS;a=a.api.U().Z&&MV;return!(!b&&!a)};
  5478. WV=function(a,b){return!a.api.isInline()&&!M_a(a,QB(b))&&g.dG(b)};
  5479. L_a=function(a){a.Eg.Vu();if(a.aM&&a.pO)a.pO=!1;else if(!a.api.U().Sa&&!a.Tq()){var b=a.api.getPlayerStateObject();g.TF(b,2)&&g.OT(a.api)||a.UG(b);!a.api.U().Gb||b.isCued()||g.TF(b,1024)?a.Bs():a.XL.isActive()?(a.QP(),a.XL.stop()):a.XL.start()}};
  5480. O_a=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.dG(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.TF(b,4)||g.TF(b,8)||g.TF(b,2)||a.Bs(),!0):!1};
  5481. P_a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
  5482. K_a=function(a){a=oB()&&67<=iqa()&&!a.api.U().Z;return!g.nB("tizen")&&!zR&&!a&&!0};
  5483. XV=function(a,b){b=void 0===b?2:b;g.aF.call(this);this.api=a;this.j=null;this.Ed=new SB(this);g.N(this,this.Ed);this.B=rya;this.Ed.T(this.api,"presentingplayerstatechange",this.G5);this.j=this.Ed.T(this.api,"progresssync",this.Sc);this.Mo=b;1===this.Mo&&this.Sc()};
  5484. g.YV=function(a){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",xa:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.J=a;this.B=new g.xv(this.show,10,this);this.j=new g.xv(this.hide,500,this);g.N(this,this.B);g.N(this,this.j);this.hide()};
  5485. $V=function(a,b,c){if(0>=b){c=Gxa();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
  5486. fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";ZV(a,c,b,d+"%")};
  5487. Q_a=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:qxa();var c=a.J.getPlaybackRate(),d=g.qJ("Speed is $RATE",{RATE:String(c)});ZV(a,b,d,c+"x")};
  5488. R_a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";ZV(a,SXa(),b)};
  5489. ZV=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Av(a.j);a.B.start();a.updateValue("title",d);g.Jv(a.element,"ytp-bezel-text-hide",!d)};
  5490. S_a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?txa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
  5491. {I:"div",S:"ytp-cards-button-title",xa:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
  5492. "fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
  5493. S:"ytp-cards-button-title",xa:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.MF(this,250,!0,100);g.N(this,this.B);g.Jv(this.C,"ytp-show-cards-title",g.BR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Aaa);this.PG(!0)};
  5494. T_a=function(a,b){g.W.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[txa()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.pF()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var c=this;this.J=a;this.Ug=
  5495. b;this.D=new g.MF(this,250,!1,250);this.j=null;this.N=new g.xv(this.Oaa,300,this);this.K=new g.xv(this.Naa,2E3,this);this.G=[];this.B=null;this.Y=new g.xv(function(){c.element.style.margin="0"},250);
  5496. this.onClickCommand=this.C=null;g.N(this,this.D);g.N(this,this.N);g.N(this,this.K);g.N(this,this.Y);a.U().L("player_new_info_card_format")?(g.Fv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.H5),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.pT),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.pT)):this.listen("click",this.pT);this.T(b.element,"mouseover",this.wV);this.T(b.element,"mouseout",this.vV);this.T(a,"cardsteasershow",
  5497. this.cca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.B2);this.T(a,"presentingplayerstatechange",this.B2);this.T(a,"appresize",this.dN);this.T(a,"onShowControls",this.dN);this.T(a,"onHideControls",this.g7);this.listen("mouseenter",this.I5)};
  5498. U_a=function(a){g.W.call(this,{I:"button",Ka:[aW.BUTTON,aW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:aW.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.xxa()]},{I:"div",S:aW.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
  5499. this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
  5500. V_a=function(a,b){a.j=b;a.element.classList.toggle(aW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.iN:c.hN)?(a=a.api.jm())?kH(a,b):g.IE(Error("No innertube service available when updating notification preferences.")):g.IE(Error("No update preferences command available.")):g.IE(Error("No video data when updating notification preferences."))};
  5501. X_a=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=W_a(a,b);if(a=g.Qe(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))gua(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
  5502. W_a=function(a,b){var c=document.location.protocol;return Bfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
  5503. g.bW=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.GR(r);g.W.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.qJ("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":nUa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}:
  5504. {"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",xa:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.qJ("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":nUa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count",
  5505. xa:d}:""]}],X:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var w=this.Fa("ytp-sb-subscribe"),A=this.Fa("ytp-sb-unsubscribe");f&&g.Fv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var D=function(){if(r.Ca){var H=v.channelId;if(m||n){var L={c:H};var M;g.VO.isInitialized()&&(M=FOa(L));L=M||"";if(M=p.getVideoData())if(M=M.subscribeCommand){var R=p.jm();R?(kH(R,M,{botguardResponse:L,feature:m}),p.jb("SUBSCRIBE",H)):g.IE(Error("No innertube service available when updating subscriptions."))}else g.IE(Error("No subscribe command in videoData."));
  5506. else g.IE(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else X_a(g.NR(v.J.U()),"sb_button",v.D)},F=function(){var H=v.channelId;
  5507. if(m||n){var L=p.getVideoData();kH(p.jm(),L.unsubscribeCommand,{feature:m});p.jb("UNSUBSCRIBE",H)}w.focus();w.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
  5508. this.T(w,"click",D);this.T(A,"click",F);this.T(w,"keypress",function(H){13===H.keyCode&&D(H)});
  5509. this.T(A,"keypress",function(H){13===H.keyCode&&F(H)});
  5510. this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(vXa(p),LT(p,w,this),LT(p,A,this))}else g.Fv(w,"ytp-sb-disabled"),g.Fv(A,"ytp-sb-disabled")};
  5511. Z_a=function(a){g.W.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
  5512. tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Fa("ytp-title-channel");this.j=this.Fa("ytp-title-channel-logo");this.channelName=this.Fa("ytp-title-expanded-title");this.G=this.Fa("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this,
  5513. 37220);g.BR(this.api.U())&&Y_a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(cW(b));c.preventDefault()}),this.T(this.j,"click",this.caa));
  5514. this.Ta()};
  5515. $_a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.bW("Subscribe",null,"Subscribed",null,!0,!1,b.Cl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
  5516. a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new U_a(a.api);a.B=e;g.N(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Ll&&(e.show(),a.api.logVisibility(e.element,!0))});
  5517. a.T(a.api,"UNSUBSCRIBE",function(){b.Ll&&(e.hide(),a.api.logVisibility(e.element,!1),V_a(e,!1))})}};
  5518. Y_a=function(a){var b=a.api.U();$_a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(a0a(a)&&(c.preventDefault(),a.isExpanded()?a.xI():a.aJ()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.aJ),a.T(a.channel,"mouseleave",a.xI),a.T(a.channel,"focusin",
  5519. a.aJ),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.xI()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)}));
  5520. a.C=new g.xv(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
  5521. g.N(a,a.C);a.T(a.channel,b0a,function(){c0a(a)});
  5522. a.T(a.api,"onHideControls",a.vS);a.T(a.api,"appresize",a.vS);a.T(a.api,"fullscreentoggled",a.vS)};
  5523. c0a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
  5524. a0a=function(a){var b=a.api.getPlayerSize();return g.BR(a.api.U())&&524<=b.width};
  5525. cW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Bc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.lo(c,b)};
  5526. dW=function(a){var b=g.bU({"aria-haspopup":"true"});g.aU.call(this,b,a);this.listen("keydown",this.j)};
  5527. eW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
  5528. d0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},xa:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",
  5529. xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},xa:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ca||a.U().Tb||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.K5));this.closeButton=new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.sF()]});this.closeButton.Ja(this.element);
  5530. g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.J5);this.Ta()};
  5531. f0a=function(a,b,c){g.GU.call(this,a);this.Bb=b;this.ke=c;this.getVideoUrl=new dW(6);this.In=new dW(5);this.Cn=new dW(4);this.kc=new dW(3);this.wG=new g.aU(g.bU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.aU(g.bU(),1,"Stats for nerds");this.zz=new g.iF({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.cX=new FU(this.J,this.zz);this.sH=this.Ot=null;g.BR(this.J.U())&&(this.closeButton=
  5532. new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.sF()]}),g.N(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.j7,this));g.BR(this.J.U())&&(this.wl=new g.aU(g.bU(),8,"Account"),g.N(this,this.wl),this.Rc(this.wl,!0),this.wl.listen("click",this.Rba,this),a.createClientVe(this.wl.element,this.wl,137682));this.J.U().Xm&&(this.Zk=new jU("Loop",7),g.N(this,this.Zk),this.Rc(this.Zk,!0),this.Zk.listen("click",this.Haa,this),a.createClientVe(this.Zk.element,
  5533. this.Zk,28661));g.N(this,this.getVideoUrl);this.Rc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.yaa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.In);this.Rc(this.In,!0);this.In.listen("click",this.zaa,this);a.createClientVe(this.In.element,this.In,28660);g.N(this,this.Cn);this.Rc(this.Cn,!0);this.Cn.listen("click",this.xaa,this);a.createClientVe(this.Cn.element,this.Cn,28658);g.N(this,this.kc);this.Rc(this.kc,!0);this.kc.listen("click",this.waa,
  5534. this);g.N(this,this.wG);this.Rc(this.wG,!0);this.wG.listen("click",this.yba,this);g.N(this,this.showVideoInfo);this.Rc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Sba,this);g.N(this,this.zz);this.zz.listen("click",this.iaa,this);g.N(this,this.cX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Saa("Chromium")&&(b=!0);40>=Saa("Firefox")&&(b=!1);b&&(this.Ot=new g.W({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.Ot),
  5535. this.Ot.Ja(this.element));var d;null==(d=this.wl)||d.setIcon(zxa());var e;null==(e=this.Zk)||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.kc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
  5536. fill:"white","fill-rule":"evenodd"}}]});this.wG.setIcon(rxa());this.showVideoInfo.setIcon(sxa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);e0a(this);this.QG(this.J.getVideoData())};
  5537. fW=function(a,b){var c=!1;if(a.Ot){var d=a.Ot.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Nb():(a.zz.Md(b,"text"),g.JU(a.Bb,a.cX),UXa(a.zz.element),a.Ot&&(a.Ot=null,e0a(a)));return c};
  5538. e0a=function(a){var b=!!a.Ot;a.kc.Dk(b?"Copy debug info":"Get debug info");eW(a.kc,!b);a.Cn.Dk(b?"Copy embed code":"Get embed code");eW(a.Cn,!b);a.getVideoUrl.Dk(b?"Copy video URL":"Get video URL");eW(a.getVideoUrl,!b);a.In.Dk(b?"Copy video URL at current time":"Get video URL at current time");eW(a.In,!b);a.Cn.setIcon(b?oxa():null);a.getVideoUrl.setIcon(b?qF():null);a.In.setIcon(b?qF():null)};
  5539. g0a=function(a){return g.BR(a.J.U())?a.wl:a.Zk};
  5540. i0a=function(a,b){g.IU.call(this,a);this.ke=b;this.D=new g.cK(this);this.ra=new g.xv(this.hca,1E3,this);this.Ca=this.C=null;g.N(this,this.D);g.N(this,this.ra);a.createClientVe(this.element,this,28656);g.Fv(this.element,"ytp-contextmenu");h0a(this);this.hide()};
  5541. h0a=function(a){g.UB(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.Wa||(b=a.J.ob(),a.D.T(b,"contextmenu",a.faa),a.D.T(b,"touchstart",a.M5,null,!0),a.D.T(b,"touchmove",a.P_,null,!0),a.D.T(b,"touchend",a.P_,null,!0))};
  5542. j0a=function(a){a.J.isFullscreen()?g.UT(a.J,a.element,10):a.Ja(document.body)};
  5543. gW=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Oe=b;this.j=c;this.visible=!1;this.tooltip=this.Oe.Te();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Jv(this.element,"ytp-show-copylink-title",g.BR(b));a.createClientVe(this.element,
  5544. this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.KT(this.tooltip,this.element))};
  5545. k0a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.ob().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.gp&&!g.vT(c)&&!a.api.Yc()&&!b};
  5546. l0a=function(a){a.updateValue("icon",kxa());if(a.api.U().B)a.tooltip.VG(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Rh();a.tooltip.VG(a.element);var b=a.listen("mouseleave",function(){a.Pc(b);a.Ta();a.tooltip.Yl()})}};
  5547. m0a=function(a,b){return g.G(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.Cf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(UC){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
  5548. return d.call(c,e)})};
  5549. hW=function(a){g.W.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div",
  5550. S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",xa:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",xa:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.xv(this.show,10,this);this.B=new g.xv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.N(this,this.D);g.N(this,this.B);this.hide();this.N=this.Fa("ytp-doubletap-fast-forward-ve");this.Y=this.Fa("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y,
  5551. this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")};
  5552. iW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.ob().getPlayerSize();a.G?a.B.stop():g.Av(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Fv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";n0a(a,a.G?a.C:c)};
  5553. o0a=function(a,b,c){g.Av(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Fv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
  5554. n0a=function(a,b){b=g.qJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
  5555. p0a=function(a){DU.call(this,a,!1,!0);this.Ga=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ea=new g.W({I:"div",S:"ytp-featured-product-open-in-new"});g.N(this,this.Ea);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.C=new g.W({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text",
  5556. xa:"{{trendingOffer}}"}]});this.C.hide();g.N(this,this.C);this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.N(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",xa:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
  5557. this.N.hide();g.N(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",xa:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.N(this,this.K);this.banner=new g.W({I:"a",S:"ytp-featured-product-container",
  5558. V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ea]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",xa:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
  5559. xa:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",xa:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",xa:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",
  5560. S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",xa:"{{affiliateDisclaimer}}"},this.C,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",xa:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",xa:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.C,{I:"text",S:"ytp-featured-product-vendor",
  5561. xa:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.B.element);this.T(this.J,g.kJ("featured_product"),this.Eda);this.T(this.J,g.lJ("featured_product"),this.GB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Baa);this.T(this.overflowButton.element,"click",this.N5);this.T(a,"featuredproductdismissed",this.yu)};
  5562. q0a=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1};
  5563. s0a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0<b){if(604800>b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs),
  5564. !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(bKa({seconds:b}))),a.N.Md(b)):a.N.Md(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.K.show();jW(a);var v;null==(v=a.Tb)||v.start()}else r0a(a)};
  5565. r0a=function(a){var b;null==(b=a.Tb)||b.stop();a.N.hide();a.K.hide();kW(a)};
  5566. t0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(null==d||!d.priceReplacementText)&&(null==d?0:d.promotionText)?null==d?void 0:d.promotionText.content:null};
  5567. u0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f;if(!(null!=d&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice)){var h,l;return null==d?void 0:null==(h=d.dealsData)?void 0:null==(l=h.sales)?void 0:l.originalPrice}return null};
  5568. v0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f,h,l;if(!((null==d?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice))&&(null==d?0:null==(h=d.dealsData)?0:null==(l=h.priceDrop)?0:l.referencePrice)){var m,n;return null==d?void 0:null==(m=d.dealsData)?void 0:null==(n=m.priceDrop)?void 0:n.referencePrice}return null};
  5569. w0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==d?0:d.priceReplacementText)return null==d?void 0:d.priceReplacementText;if((null==d?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(e=d.promotionText)?void 0:e.content)}var f,h;if(null==d?0:null==(f=d.dealsData)?0:null==(h=f.sales)?0:h.originalPrice){var l,m;return null==d?void 0:null==(l=
  5570. d.dealsData)?void 0:null==(m=l.sales)?void 0:m.salesPriceAccessibilityLabel}var n,p;if(null==d?0:null==(n=d.dealsData)?0:null==(p=n.priceDrop)?0:p.referencePrice){var q,r;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(q=d.dealsData)?void 0:null==(r=q.priceDrop)?void 0:r.referencePrice)}return null==d?void 0:d.price};
  5571. x0a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.C.Fb?null:null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:d.vendorName}var e,f,h,l,m,n;return a.C.Fb||a.K.Fb||(null==(e=a.j)?0:null==(f=e.bannerData)?0:null==(h=f.itemData)?0:h.affiliateDisclaimer)?null:null==(l=a.j)?void 0:null==(m=l.bannerData)?void 0:null==(n=m.itemData)?void 0:n.vendorName};
  5572. z0a=function(a,b){lW(a);if(b){var c=g.SS.getState().entities;c=qO(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.Ga.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=y0a(h.startTimeSec);void 0!==f&&(h=y0a(h.endTimeSec),b.push(new g.jJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
  5573. namespace:"featured_product"})))}}}a.J.gf(b)}}};
  5574. kW=function(a){if(a.trendingOfferEntityKey){var b=g.SS.getState().entities;if(b=qO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?jW(a):(a.C.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.C.show(),a.banner.update({vendor:x0a(a)}))}else jW(a)}else jW(a)};
  5575. jW=function(a){a.C.hide();a.banner.update({vendor:x0a(a)})};
  5576. lW=function(a){a.Ga=[];a.GB();a.J.mf("featured_product")};
  5577. A0a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Md(bKa({seconds:b}));if(0<b){var h;null==(h=a.Kb)||h.start()}};
  5578. B0a=function(a){var b;null==(b=a.Kb)||b.stop();a.countdownTimer.hide()};
  5579. y0a=function(a){if(void 0!==a&&""!==a.trim()&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||0>a)))return a};
  5580. G0a=function(a,b,c){g.W.call(this,{I:"div",Ka:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",xa:"{{disclaimer}}"},{I:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",xa:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",xa:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Fa("ytp-info-panel-action-item-disclaimer");this.button=
  5581. this.Fa("ytp-info-panel-action-item-button");this.ue=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.V(null==b?void 0:b.onTap,ME);var d=g.V(c,g.yF);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Me(this.button,g.he(a))):(d=g.V(c,C0a))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ue=!0,g.Me(this.button,g.he(a,[D0a]))):(c=g.V(c,E0a))&&!this.j&&(a=c.phoneNumber?
  5582. "tel:"+c.phoneNumber:"",this.ue=!0,g.Me(this.button,g.he(a,[F0a])));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:rF(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:rF()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ue&&(this.B={externalLinkData:{url:a}})};
  5583. H0a=function(a,b){var c=dF();g.ZT.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",xa:"{{title}}"},{I:"button",Ka:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.pF()]}]},{I:"div",S:"ytp-info-panel-detail-body",xa:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Fa("ytp-info-panel-detail-items");
  5584. this.C=new g.cK(this);this.itemData=[];this.D=c;b=this.Fa("ytp-info-panel-detail-close");this.T(b,"click",this.Nb);b=this.Fa("ytp-info-panel-detail-skrim");this.T(b,"click",this.Nb);b=this.Fa("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
  5585. g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
  5586. I0a=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
  5587. L0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",xa:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",xa:"{{chevron}}"}]});var c=this;this.J=a;this.Fe=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Tq();$T(b)});
  5588. this.C=new g.MF(this,250,!1,100);g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Q5);this.T(this.J,"paidcontentoverlayvisibilitychange",this.r_);this.T(this.J,"infopaneldetailvisibilitychange",this.r_);var d=a.getVideoData()||{};J0a(d)&&K0a(this,d);this.T(a,"onShowControls",this.P5);this.T(a,"onHideControls",this.O5)};
  5589. K0a=function(a,b){if(!b.cg||!a.J.Kn()){var c=b.kD||1E4,d=J0a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Av(a.j),a.videoId=b.videoId,d?(M0a(a,c,b),a.od()):(a.Nb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),M0a(a,c,b),a.od())}};
  5590. J0a=function(a){var b,c,d,e;return!!(null==(b=a.xf)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.xf)?0:null==(e=d.bodyText)?0:e.content)};
  5591. M0a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.xv(a.Ida,b,a);g.N(a,a.j);var d;b=(null==(d=c.xf)?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.xf)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.xf)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.xf)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.xf)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.oF()})};
  5592. N0a=function(a,b){a.j&&(g.TF(b,8)?(a.B=!0,a.od(),a.j.start()):(g.TF(b,2)||g.TF(b,64))&&a.videoId&&(a.videoId=null))};
  5593. mW=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
  5594. nW=function(a,b){var c=0;a=g.u(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
  5595. O0a=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
  5596. P0a=function(a,b){b=nW(a,b)+1;return b<a.length?b:-1};
  5597. Q0a=function(a,b){return nW(a,b)-1};
  5598. R0a=function(a,b){return new g.jJ(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
  5599. T0a=function(a,b,c,d,e,f,h,l){g.cK.call(this);var m=this;this.api=a;this.contextMenu=c;this.Eg=d;this.ke=e;this.j=f;this.K=h;this.progressBar=l;this.G=new g.xv(function(){S0a(m,!1)},1E3);
  5600. this.B="";this.C={PJ:!1};this.D=!1;g.N(this,this.G);this.T(b,"mousedown",function(){oW(m,!1)});
  5601. this.T(c.element,"mousedown",function(){oW(m,!1)});
  5602. this.T(b,"keydown",this.uY);this.T(c.element,"keydown",this.uY);this.T(b,"keyup",this.vY);this.T(c.element,"keyup",this.vY)};
  5603. oW=function(a,b){a.D=b;g.Jv(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Jv(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
  5604. qW=function(a,b,c,d){var e=g.EV(a.api.yb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.pW.length;h++){var l=g.pW[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);S0a(a,!0);a.G.start()}};
  5605. S0a=function(a,b){g.EV(a.api.yb())&&a.api.setOption("captions","sampleSubtitles",b)};
  5606. g.rW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var c=this;this.J=a;this.Zh=b;this.j=this.visible=!1;a.createClientVe(this.element,
  5607. this,16499);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();LT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);$T(b,c.element,!1)});
  5608. this.T(b.closeButton,"click",function(){c.focus()})};
  5609. U0a=function(a){g.ZT.call(this,a,{I:"div",S:"ytp-overflow-panel",X:{id:dF(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",xa:"{{buttons}}"}]},{I:"button",Ka:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},V:[g.pF()]}]},250);this.actionButtons=[];this.j=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Nb);LT(a,this.closeButton,this);this.listen("click",
  5610. this.R5);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
  5611. V0a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
  5612. W0a=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Lc(b)};
  5613. X0a=function(a,b,c){var d=g.pV(b,c),e=d.dh("default.jpg");g.W.call(this,{I:"a",Ka:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",xa:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",xa:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",X:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",xa:d.title},{I:"div",
  5614. S:"ytp-video-menu-item-author",xa:d.author}]});this.api=a;this.index=c;this.listen("click",this.onClick)};
  5615. Y0a=function(a){g.ZT.call(this,a,{I:"div",S:"ytp-playlist-menu",X:{role:"dialog",id:dF()},V:[{I:"div",S:"ytp-playlist-menu-header",V:[{I:"div",S:"ytp-playlist-menu-title",V:[a.U().C?{I:"span",S:"ytp-playlist-menu-title-name",xa:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},xa:"{{title}}"},{I:"button",Ka:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},V:[g.pF()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",xa:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
  5616. X:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.C=new g.cK(this);this.j=[];var b=this.Fa("ytp-playlist-menu-close");this.T(b,"click",this.Nb);b=this.Fa("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.gca));g.N(this,this.C);this.hide()};
  5617. sW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Playlist"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
  5618. fill:"#fff"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",xa:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);this.hide();this.j();LT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);$T(b,c.element,!1)})};
  5619. Z0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-promotooltip-wrapper",V:[{I:"div",S:"ytp-promotooltip-container",V:[{I:"div",S:"ytp-promotooltip-content",V:[{I:"div",S:"ytp-promotooltip-title",xa:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",xa:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",xa:"{{dismissButtonText}}",X:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",xa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
  5620. {I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.targetElement=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.Y=this.G=this.N=this.K=!1;this.qd={LG:function(d){c.LG(d)}};
  5621. g.hF(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.T5);this.T(b,"onHideControls",this.S5);this.T(b,"resize",this.dc);this.T(this.acceptButton,"click",this.H$);this.T(this.dismissButton,"click",this.oaa);this.T(document,"click",this.U5)};
  5622. $0a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.xf("ytp-chrome-bottom"),d=g.xf("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.K=!(null==d||!d.contains(b));a.N=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
  5623. c1a=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Vs(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.eF({I:"span",S:"ytp-promotooltip-details-icon",
  5624. V:[a1a[a.tooltipRenderer.targetId]]});g.N(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.eF({I:"span",S:"ytp-promotooltip-details-component",xa:n.value}),g.N(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.Gf(a.details),e=g.u(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
  5625. else a.update({details:f});e=!0}}g.Vs(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.V(e,g.qM))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.V(e,g.qM).text.runs[0].text&&(a.update({acceptButtonText:g.V(e,g.qM).text.runs[0].text.toString()}),f=!0);g.Vs(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,w;(null==(t=g.V(p,g.qM))?0:null==(v=t.text)?0:null==(w=v.runs)?0:w.length)&&g.V(p,g.qM).text.runs[0].text&&(a.update({dismissButtonText:g.V(p,g.qM).text.runs[0].text.toString()}),
  5626. q=!0);g.Vs(a.dismissButton,q)}c&&(a.B=c);a.targetElement=$0a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.hF(a,!0);b1a(a);a.Fb&&!a.Y&&(a.Y=!0,a.qd.LG(0));a.j&&a.J.logVisibility(a.element,a.Fb)}};
  5627. tW=function(a){g.hF(a,!1);a.j&&a.J.logVisibility(a.element,a.Fb)};
  5628. d1a=function(a){var b,c,d,e=(null==(b=g.V(a.acceptButton,g.qM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.V(a.acceptButton,g.qM).text.runs[0].text,f,h,l;b=(null==(f=g.V(a.dismissButton,g.qM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.V(a.dismissButton,g.qM).text.runs[0].text;return e||b};
  5629. b1a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.J.isMinimized())g.hF(a,!1);else if(b=g.Us(a.targetElement),b.width&&b.height){a.J.Gx(a.element,a.targetElement);var d=a.J.ob().getPlayerSize().height;c=g.Us(a.Fa("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Hn().height-c-b.height-12,a.element.style.top=d+"px");
  5630. d=a.Fa("ytp-promotooltip-pointer");var e=g.Ss(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.hF(a,!1)};
  5631. uW=function(a){g.W.call(this,{I:"button",Ka:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.Dxa()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Gc(a.getPlayerStateObject());LT(this.J,this.element,this)};
  5632. vW=function(a,b){b=void 0===b?240:b;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-search-icon",xa:"{{icon}}"},{I:"div",S:"ytp-search-title",xa:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
  5633. a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);LT(a,this.element,this)};
  5634. g.wW=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-share-icon",xa:"{{icon}}"},{I:"div",S:"ytp-share-title",xa:"Share"}]});this.api=a;this.Oe=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Oe.Te();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);
  5635. this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.KT(this.tooltip,this.element))};
  5636. e1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.BR(b)&&g.RT(a.api)&&g.TF(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.gp||d||g.vT(c)||a.j;d=a.api.ob().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
  5637. f1a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Oe.Tq(),$T(a.B,a.element,!1)):g.IE(b))};
  5638. h1a=function(a,b){var c=dF(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:dF(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},xa:"Share"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
  5639. checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[TXa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.pF()]}]};g.ZT.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Te();this.C=[];this.G=this.Fa("ytp-share-panel-inner-content");
  5640. this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.KT(this.tooltip,this.closeButton));this.D=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Fa("ytp-share-panel-link");this.addOnDisposeCallback(g.KT(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=g1a(e,h);
  5641. g.mU(h,e.api,f)&&e.api.jb("SHARE_CLICKED")});
  5642. this.listen("click",this.V5);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.h$);this.hide()};
  5643. j1a=function(a,b){i1a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Yw:void 0,Jm:void 0},f++){e.Yw=c[f];a:switch(e.Yw.img||e.Yw.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
  5644. fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
  5645. fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Yw.sname||e.Yw.serviceName;e.Jm=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Yw.url,target:"_blank",title:l},V:[h]});e.Jm.listen("click",function(p){return function(q){var r=p.Yw.url;if(g.dG(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var w=r instanceof g.ae?r:g.he("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated,
  5646. D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);var F="unsafe-url"===D;D=v.noreferrer;if(A&&D){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");D=!1}r=v.target||r.target;A=[];for(var H in v)switch(H){case "width":case "height":case "top":case "left":A.push(H+"="+v[H]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(H+"="+(v[H]?1:0))}H=A.join(",");Lc()&&
  5647. t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.Cf("A"),v.href=Lba(w),v.target=r,D&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(w),t={}):D?(t=Mba("",t,r,H),w=g.be(w),t&&(t.opener=null,""===w&&(w="javascript:''"),w=re('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ye(w)+'">'),(v=t.document)&&v.write&&(v.write(g.qe(w)),v.close()))):((t=Mba(w,t,r,H))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&
  5648. (t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
  5649. e.Jm.addOnDisposeCallback(g.KT(a.tooltip,e.Jm.element));"Facebook"===l?a.api.createClientVe(e.Jm.element,e.Jm,164504):"Twitter"===l&&a.api.createClientVe(e.Jm.element,e.Jm,164505);a.T(e.Jm.element,"click",function(p){return function(){a.api.logClick(p.Jm.element)}}(e));
  5650. a.api.logVisibility(e.Jm.element,!0);a.C.push(e.Jm);d++}}var m=b.more||b.moreLink,n=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
  5651. fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=g1a(a,q);g.mU(q,a.api,p)&&a.api.jb("SHARE_CLICKED")});
  5652. n.addOnDisposeCallback(g.KT(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)});
  5653. a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
  5654. g1a=function(a,b){var c={};g.BR(a.api.U())&&(g.CT(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.lo(b,g.XO(c,"emb_share")));return b};
  5655. i1a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]};
  5656. xW=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
  5657. k1a=function(a,b){a.startSec+=b;a.endSec+=b};
  5658. m1a=function(a){DU.call(this,a);this.C=this.j=this.isContentForward=this.N=!1;l1a(this);this.T(this.J,"changeProductsInVideoVisibility",this.dba);this.T(this.J,"videodatachange",this.onVideoDataChange)};
  5659. n1a=function(a){a.K&&a.La.element.removeChild(a.K.element);a.K=void 0};
  5660. p1a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.V(c,o1a))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.W({I:"img",
  5661. S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.N(a,c);return c})};
  5662. q1a=function(a,b){a.isContentForward=b;g.Jv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
  5663. yW=function(a){var b=a.isContentForward&&!a.OL();g.Jv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Jv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.C)};
  5664. zW=function(a,b,c){return new g.jJ(1E3*a,1E3*b,{priority:9,namespace:c})};
  5665. r1a=function(a){a.J.mf("shopping_overlay_visible");a.J.mf("shopping_overlay_preview_collapsed");a.J.mf("shopping_overlay_preview_expanded");a.J.mf("shopping_overlay_expanded")};
  5666. l1a=function(a){a.T(a.J,g.kJ("shopping_overlay_visible"),function(){a.Jf(!0)});
  5667. a.T(a.J,g.lJ("shopping_overlay_visible"),function(){a.Jf(!1)});
  5668. a.T(a.J,g.kJ("shopping_overlay_expanded"),function(){a.ra=!0;CU(a)});
  5669. a.T(a.J,g.lJ("shopping_overlay_expanded"),function(){a.ra=!1;CU(a)});
  5670. a.T(a.J,g.kJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;yW(a)});
  5671. a.T(a.J,g.lJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;yW(a)});
  5672. a.T(a.J,g.kJ("shopping_overlay_preview_expanded"),function(){a.C=!0;yW(a)});
  5673. a.T(a.J,g.lJ("shopping_overlay_preview_expanded"),function(){a.C=!1;yW(a)})};
  5674. t1a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Fa("ytp-shorts-title-channel-logo");this.channelName=this.Fa("ytp-shorts-title-expanded-title");
  5675. this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.Qe(AW(b)),c.preventDefault()):b.api.logClick(b.j)});
  5676. a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(AW(b));c.preventDefault()});
  5677. s1a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
  5678. s1a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.bW("Subscribe",null,"Subscribed",null,!0,!1,b.Cl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
  5679. a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
  5680. AW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Bc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.lo(c,b)};
  5681. BW=function(a){g.ZT.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",xa:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.xv(function(){b.hide()},5E3);
  5682. this.yf=this.Mi=NaN;g.N(this,this.j);this.K=function(){b.show()};
  5683. this.G=function(){b.hide()};
  5684. this.D=function(){var c=b.J.getCurrentTime();c>b.Mi/1E3&&c<b.yf/1E3&&b.show()};
  5685. this.T(this.J,"videodatachange",function(c,d){b.Kt(c,d)});
  5686. this.T(this.element,"click",function(){b.J.seekTo(b.yf/1E3)});
  5687. this.hide()};
  5688. CW=function(a){g.W.call(this,{I:"button",Ka:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},xa:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ta);this.T(a,"airplayavailabilitychange",this.Ta);this.Ta();LT(a,this.element,this)};
  5689. v1a=function(a){g.W.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.Cf("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;u1a(this,a.ob().getPlayerSize().height)};
  5690. u1a=function(a,b){if(a.j){b=Math.floor(.4*b);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)");a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
  5691. DW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ka:["ytp-chapter-title","ytp-button"],V:[{I:"span",X:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",xa:"\u2022"},{I:"div",S:"ytp-chapter-title-content",xa:"{{title}}",X:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
  5692. this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Fa("ytp-chapter-container");this.j=this.Fa("ytp-chapter-title");this.qa=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.Y,"click",this.onClick);this.T(a,g.kJ(c),this.Sc);this.T(a,"onLoopRangeChange",this.Sc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
  5693. g.IR(this.J.U()))&&g.Jv(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.Jv(this.j,"fitted-chapter-button",!0);g.BR(this.J.U())||a||LT(this.J,this.qa,this)};
  5694. EW=function(a,b){DW.call(this,a,b,"chapterCueRange","View chapter")};
  5695. w1a=function(a,b,c,d,e){var f=b.jx/b.rows,h=Math.min(c/(b.xF/b.columns),d/f),l=b.xF*h,m=b.jx*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
  5696. x1a=function(a){return a.L("web_big_boards")?a.isMinimized()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
  5697. FW=function(a,b){g.W.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",xa:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Fa("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.cK(this);this.j=new g.MF(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.lw()});
  5698. x1a(this.api)&&g.Fv(this.element,"ytp-storyboard-framepreview-big-boards")};
  5699. y1a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){y1a(a,a.api.Wj())}),a.events.T(a.api,"progresssync",a.xg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,z1a(a),a.j.show(200)):(c&&g.UB(a.events),a.j.hide(),a.j.stop())};
  5700. z1a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.ob().getPlayerSize(),e=xS(b,d.width);e=uVa(b,e,c);a.update({timestamp:g.cG(c)});e!==a.C&&(a.C=e,sVa(b,e,d.width),b=qVa(b,e,d.width),w1a(a.D,b,d.width,d.height))};
  5701. A1a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.Oe=b;this.message=null;this.j=g.KT(this.Oe.Te(),this.element);this.B=new g.xv(this.b7,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Km);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"resize",this.Ta);this.listen("click",this.onClick);g.JB()&&
  5702. (b=this.J.ob(),this.T(b,Oqa(),this.oR),this.T(b,Nqa(document),this.xx));a.U().Gb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ta();this.Km(a.isFullscreen())};
  5703. GW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0<b?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
  5704. {I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
  5705. {I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.xv(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
  5706. this.C=!1;(b=0<b)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.qJ(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);LT(a,this.element,
  5707. this)};
  5708. B1a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Rh()};
  5709. HW=function(a,b){DW.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.lJ("timedMarkerCueRange"),this.Sc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
  5710. C1a=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.Be;if(c)for(a=a.D.Na,c=g.u(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
  5711. IW=function(a){g.W.call(this,{I:"button",Ka:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[Axa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.MT(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});LT(a,this.element,this);a.createClientVe(this.element,
  5712. this,62946);this.Ta()};
  5713. D1a=function(a,b,c){c=void 0===c?!1:c;g.W.call(this,{I:"button",Ka:["ytp-mute-button","ytp-button"],X:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},xa:"{{icon}}"});this.J=a;this.Ea=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Gxa());this.tooltip=b.Te();this.j=new g.eF({I:"svg",X:{height:"100%",
  5714. version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
  5715. {I:"path",Hc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Hc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.N(this,this.j);this.K=this.j.Fa("ytp-svg-volume-animation-speaker");
  5716. this.Ca=this.K.getAttribute("d");this.C=g.wf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.wf("ytp-svg-volume-animation-hider",this.j.element);this.Ga=new hV;g.N(this,this.Ga);this.qa=new hV;g.N(this,this.qa);this.listen("click",this.Paa);this.T(a,"appresize",this.jU);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.KT(b.Te(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),
  5717. d=new g.ZT(a,{I:"span",Ka:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},xa:b[2]},b[4]]},100,!0),g.N(this,d),d.hide(),d.subscribe("show",function(e){a.VD(d,e)}),g.UT(a,d.element,4));
  5718. this.message=d;a.createClientVe(this.element,this,28662);this.jU(a.ob().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
  5719. G1a=function(a,b){a.ra=b;var c=a.Ca;b&&(c+=mZa(E1a,F1a,b));a.K.setAttribute("d",c)};
  5720. H1a=function(a,b){a.Y=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=Gxa():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
  5721. g.JW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.j=null;this.transition=new hV;this.tooltip=b.Te();g.N(this,this.transition);a.createClientVe(this.element,this,36842);a.logVisibility(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);
  5722. this.Gc(a.getPlayerStateObject());this.listen("click",this.Bs,this);this.addOnDisposeCallback(g.KT(b.Te(),this.element))};
  5723. I1a=function(a){switch(a){case 1:return Bxa();case 2:return yxa();case 3:return g.Dxa();case 4:return Fxa();default:return null}};
  5724. g.KW=function(a,b,c){g.W.call(this,{I:"a",Ka:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?wxa():Cxa()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
  5725. !1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Te();c?a.createClientVe(this.element,this,6193):a.createClientVe(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.xM);this.T(a,"mdxpreviousnextchange",function(){J1a(d);d.xM()});
  5726. this.onVideoDataChange()};
  5727. K1a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
  5728. L1a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
  5729. M1a=function(a){var b=QT(a.J.yb());return b?a.j?b.Wk():b.Fp():!1};
  5730. J1a=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.Wk();c=g.RT(a.J)&&(!a.j||c);var d=a.j&&g.VT(a.J),e=M1a(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.MT(a.J,"Next","SHIFT+n"),l=g.MT(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.pV(a.playlist,a.j?EZa(a.playlist):FZa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
  5731. b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.cG(m.lengthSeconds):null;b.preview=m.dh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.QS(m))b.url=l.Uk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.cG(l.lengthSeconds):
  5732. null,b.preview=l.dh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.KT(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Pc(a.G),a.G=null);a.tooltip.Rh()};
  5733. O1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},
  5734. xa:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[Bxa()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.pF()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Fa("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Fa("ytp-fine-scrubbing-dismiss");this.Ca=this.Fa("ytp-fine-scrubbing-draggable");this.playButton=this.Fa("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Na=this.j=0;this.La=void 0;
  5735. this.qa=NaN;this.Sa=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ea=!1;N1a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.KT(b,this.dismissButton));this.addOnDisposeCallback(g.KT(b,this.playButton));this.Ga=new g.SU(this.Ca,!0);this.Ga.subscribe("dragstart",this.zM,this);this.Ga.subscribe("dragmove",this.yM,this);this.Ga.subscribe("dragend",this.T3,this);this.T(a,"SEEK_COMPLETE",this.iB);a.L("web_fix_fine_scrubbing_false_play")&&
  5736. this.T(a,"rootnodemousedown",function(d){c.ra=d});
  5737. this.G.addEventListener("keydown",function(){});
  5738. g.N(this,this.Ga);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
  5739. N1a=function(a,b){var c=g.cG(b),d=g.qJ("Seek to $PROGRESS",{PROGRESS:g.cG(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
  5740. e2a=function(a){a.qa=NaN;a.Y=0;a.N=a.C};
  5741. h2a=function(a){var b=a.api.Wj();if(b){var c=90*a.scale,d=xS(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=yS(b,b.Iy()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Le(l),column:0,columns:p,row:n,rows:m,xF:b.width*p,jx:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.iJ();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
  5742. void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new f2a,a.thumbnails.push(d),d.Ja(a.G),g.N(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.K*a.scale,l=f.jx/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.jx/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";LW(a,a.api.getCurrentTime());for(c=a.api.getVideoData().zk;a.B.length>c.length;)d=void 0,null==(d=a.B.pop())||d.dispose();
  5743. for(;a.B.length<c.length;)d=new g2a,a.B.push(new g2a),g.N(a,d);for(d=0;d<c.length;d++)e=c[d],a.B[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Is(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ja(a.thumbnails[f].element);a.Ea=!0}}};
  5744. LW=function(a,b){a.ra&&(a.ra.kA=!0);a.update({seekTime:g.cG(b)});var c=a.K*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.j/2:-b*c/a.interval-c/2+a.j/2;b=g.Ce(b,i2a(a),a.j/2);a.N=b;a.C=a.N;g.Is(a.Ca,"transform","translateX("+(a.N-a.j/2)+"px)");g.Is(a.Ca,"padding","0px "+a.j/2+"px");g.Is(a.G,"position","relative")};
  5745. j2a=function(a,b){var c=a.K*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
  5746. i2a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
  5747. f2a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
  5748. g2a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",xa:"{{chapterTitle}}"}]})};
  5749. k2a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white",
  5750. "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Fa("ytp-heat-map-svg");this.C=this.Fa("ytp-heat-map-path");this.G=this.Fa("ytp-heat-map-graph");this.D=this.Fa("ytp-heat-map-play");this.B=this.Fa("ytp-heat-map-hover");this.ue=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",
  5751. a);this.api.L("web_heat_map_v2")&&g.Fv(this.api.getRootNode(),"ytp-heat-map-v2")};
  5752. l2a=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
  5753. MW=function(){g.W.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Ka:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Fa("ytp-progress-linear-live-buffer");this.C=this.Fa("ytp-ad-progress-list");
  5754. this.G=this.Fa("ytp-load-progress");this.K=this.Fa("ytp-play-progress");this.B=this.Fa("ytp-hover-progress");this.j=this.Fa("ytp-chapter-hover-container")};
  5755. NW=function(a,b){g.Is(a.j,"width",b)};
  5756. m2a=function(a,b){g.Is(a.j,"margin-right",b+"px")};
  5757. n2a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
  5758. o2a=function(){g.W.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
  5759. g.PW=function(a,b){g.iF.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ka:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"},
  5760. {I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ka:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",xa:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",xa:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},xa:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",
  5761. X:{title:"{{clipendtitle}}"},xa:"{{clipendicon}}"}]});this.api=a;this.nf=!1;this.Rf=this.Va=this.N=this.Qf=0;this.yd=null;this.La={};this.Ob={};this.clipEnd=Infinity;this.Gb=this.Fa("ytp-clip-end");this.qc=new g.SU(this.Gb,!0);this.xf=this.Fa("ytp-clip-end-exclude");this.cg=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Fa("ytp-clip-start");this.Bc=new g.SU(this.Kb,!0);this.qa=this.gb=0;this.progressBar=this.Fa("ytp-progress-bar");this.zb={};this.Na={};this.Tb=this.Fa("ytp-chapters-container");
  5762. this.Pf=this.Fa("ytp-timed-markers-container");this.j=[];this.K=[];this.Sd={};this.yf=null;this.Wa=-1;this.rb=this.Ca=0;this.Y=null;this.Sf=this.Fa("ytp-scrubber-button");this.Sg=this.Fa("ytp-scrubber-container");this.Za=new g.Ie;this.rh=new n2a;this.C=new fG(0,0);this.Ab=null;this.D=this.Be=!1;this.Of=null;this.ra=this.Fa("ytp-heat-map-container");this.Jd=this.Fa("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.bb=this.Fa("ytp-fine-scrubbing-container");this.Qc=this.Fa("ytp-fine-scrubbing-edu");
  5763. this.B=void 0;this.Ga=this.pd=this.Ea=!1;this.tooltip=b.Te();this.addOnDisposeCallback(g.KT(this.tooltip,this.Gb));g.N(this,this.qc);this.qc.subscribe("hoverstart",this.o_,this);this.qc.subscribe("hoverend",this.n_,this);this.T(this.Gb,"click",this.vL);this.addOnDisposeCallback(g.KT(this.tooltip,this.Kb));g.N(this,this.Bc);this.Bc.subscribe("hoverstart",this.o_,this);this.Bc.subscribe("hoverend",this.n_,this);this.T(this.Kb,"click",this.vL);p2a(this);this.T(a,"resize",this.dc);this.T(a,"presentingplayerstatechange",
  5764. this.d9);this.T(a,"videodatachange",this.Kt);this.T(a,"videoplayerreset",this.c9);this.T(a,"cuerangesadded",this.Gea);this.T(a,"cuerangesremoved",this.bda);this.T(a,"onLoopRangeChange",this.kU);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.kJ("timedMarkerCueRange"),this.fca);this.T(a,"updatemarkervisibility",this.D2);this.updateVideoData(a.getVideoData(),!0);this.kU(a.getLoopRange());OW(this)&&!this.B&&(this.B=new O1a(this.api,this.tooltip),a=g.Rs(this.element).x||0,this.B.dc(a,this.N),
  5765. this.B.Ja(this.bb),g.N(this,this.B),this.T(this.B.dismissButton,"click",this.lw),this.T(this.B.playButton,"click",this.LO),this.T(this.B.element,"dblclick",this.LO));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Jd,this,140127,!0);this.api.createClientVe(this.Qc,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
  5766. p2a=function(a){if(0===a.j.length){var b=new MW;a.j.push(b);g.N(a,b);b.Ja(a.Tb,0)}for(;1<a.j.length;)a.j.pop().dispose();NW(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
  5767. q2a=function(a){var b=void 0===b?NaN:b;var c=new k2a(a.api);a.G.push(c);g.N(a,c);c.Ja(a.ra);0<=b&&(c.element.style.width=b+"px")};
  5768. r2a=function(a){for(;a.K.length;)a.K.pop().dispose()};
  5769. t2a=function(a){var b,c,d,e,f;return null==(f=g.V(null==(e=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,$Ua))?void 0:e.playerBar,s2a))?void 0:f.chapters};
  5770. u2a=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.jJ(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.mf("chapterCueRange");a.api.gf(c)};
  5771. C2a=function(a,b){var c,d=null==(c=a.zb[b])?void 0:c.chapters;d&&(v2a(a,d),a.api.getVideoData().zk=a.j,u2a(a));var e;if((c=null==(e=a.zb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){r2a(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new o2a,d=g.V(d,g.w2a)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;x2a(a,c)}y2a(a,
  5772. a.K);e=a.K;c=a.Sd;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=R0a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.gf(d)}var l;if(b=g.V(null==(l=a.zb[b])?void 0:l.heatmap,z2a)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;d===a.G.length&&
  5773. q2a(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,w=null!=(v=null==(t=g.V(r,A2a))?void 0:t.timeRangeStartMillis)?v:-1;w>=h&&w<=p&&f.push(r)}0<m&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;v=m;w=0===d;w=void 0===w?!1:w;l2a(h,v);q=p;t=h.j;w=void 0===w?!1:w;var A=1E3/q.length,D=[];D.push({x:0,y:100});for(var F=0;F<q.length;F++){var H=void 0,L=(null==(H=g.V(q[F],A2a))?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(F+.5)*A;L=100-g.Ce(100*L,r/
  5774. t*100,v/t*100);0!==F||w||D.push({x:0,y:L});D.push({x:H,y:L});F===q.length-1&&D.push({x:1E3,y:L})}D.push({x:1E3,y:100});q=D;p=0===p.length?"":gAa(q);h.C.setAttribute("d",p);h.ue=""!==p;g.Jv(h.api.getRootNode(),"ytp-heat-map",h.ue);g.Jv(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.QW(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.V(e.value,B2a))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=
  5775. (n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.lF(m):""});a.heatMarkersDecorations=l}};
  5776. x2a=function(a,b){a.K.push(b);g.N(a,b);b.Ja(a.Pf,a.Pf.children.length)};
  5777. y2a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=RW(a,c.timeRangeStartMillis/(1E3*a.C.j),SW(a));g.Is(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
  5778. v2a=function(a,b){var c=0,d=!1;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.V(e,D2a)){e=g.V(e,D2a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.lF(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new MW,a.j.push(f),g.N(a,f),f.Ja(a.Tb,a.Tb.children.length));a.j[c].startTime=
  5779. e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.QW(a);TW(a)};
  5780. g.QW=function(a){a.Ca=a.j.length-1;a.rb=0;E2a(a,!0)&&E2a(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){m2a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;NW(a.j[d],e+"px");break}a.j[c].width=0;NW(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,NW(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,NW(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
  5781. a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
  5782. E2a=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.N){for(var h=a.N-(a.D?3:2)*a.Ca,l=0===a.rb?3:h*a.rb,m=g.u(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,m2a(a.j[c],a.D?3:2));g.Jv(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
  5783. r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);m2a(p.j[q],0);b&&(a.Ca--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
  5784. TW=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:uT(d))&&b.airingStart&&b.airingEnd?F2a(a,b.airingStart,b.airingEnd):F2a(a,b.seekableStart,b.seekableEnd);d=gG(c,b.loaded,0);b=gG(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;UW(a,b,d);e&&G2a(a);H2a(a)}}};
  5785. F2a=function(a,b,c){return I2a(a)?new fG(Math.max(b,a.Ab.startTimeMs/1E3),Math.min(c,a.Ab.endTimeMs/1E3)):new fG(b,c)};
  5786. J2a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Ab)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[nW(a.j,b.startTimeMs)],g.Jv(b.j,"ytp-repeating-chapter",!1)),a.Ab&&(b=a.j[nW(a.j,a.Ab.startTimeMs)],g.Jv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Jv(d.j,"ytp-exp-chapter-hover-container",!a.Ab)})};
  5787. WW=function(a,b){var c=tya(a.C,b.B);if(1<a.j.length){c=VW(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
  5788. K2a=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)};
  5789. G2a=function(a){a.Sf.style.removeProperty("height");for(var b=g.u(Object.keys(a.La)),c=b.next();!c.done;c=b.next())L2a(a,c.value);XW(a);UW(a,a.qa,a.gb)};
  5790. SW=function(a){var b=a.Za.x;b=g.Ce(b,0,a.N);a.rh.update(b,a.N);return a.rh};
  5791. ZW=function(a){return(a.D?135:90)-YW(a)};
  5792. YW=function(a){var b=48,c=a.api.U();a.D?b=54:g.BR(c)&&!c.B&&(b=40);return b};
  5793. UW=function(a,b,c){a.qa=b;a.gb=c;var d=SW(a),e=a.C.j,f=tya(a.C,a.qa),h=g.qJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.cG(f,!0),DURATION:g.cG(e,!0)}),l=nW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Ab&&2!==a.api.getPresentingPlayerType()&&(e=a.Ab.startTimeMs/1E3,f=a.Ab.endTimeMs/1E3);e=gG(a.C,e,0);l=gG(a.C,f,1);h=a.api.getVideoData();f=g.Ce(b,e,l);c=(null==h?0:g.tT(h))?1:g.Ce(c,
  5794. e,l);b=RW(a,b,d);g.Is(a.Sg,"transform","translateX("+b+"px)");$W(a,d,e,f,"PLAY_PROGRESS");(null==h?0:uT(h))?(b=a.api.getProgressState().seekableEnd)&&$W(a,d,f,gG(a.C,b),"LIVE_BUFFER"):$W(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
  5795. $W=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=VW(a,l);var m=d*h;h=VW(a,m);"HOVER_PROGRESS"===e&&(h=VW(a,b.j*d,!0),m=b.j*d-M2a(a,b.j*d)*(a.D?3:2));d=Math.max(l-N2a(a,c),0);for(l=c;l<f;l++)a.j[l].Hb(e).style.left=c===l?d+"px":"0";b=RW(a,a.qa,b);for(f=c;f<h;f++){l=a.j[f].Hb(e);var n=a.j[f].width,p=f===c?n-d:n;aX(a,l,p,n);O2a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.Ce(m-N2a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Hb(e);aX(a,d,m,f);O2a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)P2a(a,h,e);
  5796. for(h=0;h<c;h++)P2a(a,h,e)};
  5797. N2a=function(a,b){if(b>=a.j.length)return a.N;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
  5798. P2a=function(a,b,c){c=a.j[b].Hb(c);aX(a,c,0,a.j[b].width)};
  5799. O2a=function(a,b,c,d,e,f,h){a.api.L("enable_cairo_refresh_signature_moments_web")&&"PLAY_PROGRESS"===h&&(c=!d||a.api.U().B?1:c/d,g.Is(b,"background-size",[f/c]+"px"),g.Is(b,"background-position-x",[(f-a.j[e].element.offsetLeft)/c]+"px"))};
  5800. aX=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Is(b,"transform","scalex("+(d?c/d:0)+")")};
  5801. VW=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=M2a(a,b)*(a.D?3:2));c=g.u(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
  5802. RW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(0>e?0:e)+c.D};
  5803. M2a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
  5804. g.Q2a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Qf=b;a.N=c;a.D=d;OW(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);G2a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.QW(a);a.B&&f&&OW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-YW(a),a.bb.style.height=c+"px",g.Is(a.ra,"transform","translateY("+-d+"px)"),g.Is(a.progressBar,"transform","translateY("+-d+"px)")),h2a(a.B))};
  5805. XW=function(a){var b=!!a.Ab&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Ab?(c=a.Ab.startTimeMs/1E3,d=a.Ab.endTimeMs/1E3):(e=c>a.C.B,f=0<a.C.j&&d<a.C.j);var h,l;if((null==(h=a.Ab)?0:h.postId)||"repeatChapter"===(null==(l=a.Ab)?void 0:l.type))f=e=!1;g.Jv(a.element,"ytp-loop-range-enabled",b);g.Jv(a.element,"ytp-clip-start-enabled",e);g.Jv(a.element,"ytp-clip-end-enabled",f);b=e?gG(a.C,c,0):0;d=f?gG(a.C,d,1):1;a.Kb.style.left=Math.round(1E3*b)/10+"%";a.Gb.style.left=
  5806. Math.round(1E3*d)/10+"%";a.cg.style.width=Math.round(1E3*b)/10+"%";a.xf.style.left=Math.round(1E3*d)/10+"%";a.xf.style.width=Math.round(1E3*(1-d))/10+"%"};
  5807. H2a=function(a){var b;if(null==(b=a.api.getVideoData())||!uT(b)){b=SW(a);$W(a,b,a.qa,Math.max(b.B,a.qa),"HOVER_PROGRESS");for(var c=VW(a,b.j*a.qa,!0),d=VW(a,b.C,!0),e=c;e<=d;e++)g.Jv(a.j[e].B,"ytp-hover-progress-light",b.B>a.qa);g.Jv(a.Sf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
  5808. L2a=function(a,b){var c=a.La[b];b=a.Ob[b];var d=SW(a),e=gG(a.C,c.start/1E3,0),f=aCa(c,a.D)/d.width;var h=gG(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Ce(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";aX(a,b,g.Ce((h-c)*d.j+d.D,0,d.width),d.width,!0)};
  5809. R2a=function(a,b){var c=b.getId();a.La[c]===b&&(g.Pf(a.Ob[c]),delete a.La[c],delete a.Ob[c])};
  5810. OW=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()};
  5811. bX=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.bb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
  5812. S2a=function(a,b){var c=b/ZW(a)*YW(a);g.Is(a.progressBar,"transform","translateY("+-b+"px)");g.Is(a.ra,"transform","translateY("+-b+"px)");g.Is(a.bb,"transform","translateY("+c+"px)");a.bb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=YW(a)-c+"px")};
  5813. T2a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.SU(a.progressBar,!0),a.Y.subscribe("hovermove",a.hba,a),a.Y.subscribe("hoverend",a.fba,a),a.Y.subscribe("dragstart",a.eba,a),a.Y.subscribe("dragmove",a.kba,a),a.Y.subscribe("dragend",a.jba,a),a.Of=a.listen("keydown",a.V3)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Pc(a.Of),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
  5814. I2a=function(a){var b;return!(null==(b=a.Ab)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
  5815. cX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},xa:"{{icon}}"});this.J=a;this.Bb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);LT(a,this.element,this)};
  5816. dX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":dF(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.Exa()]});this.J=a;this.Bb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);LT(a,this.element,this);this.J.createClientVe(this.element,
  5817. this,28663);this.updateBadge();this.j(a.ob().getPlayerSize())};
  5818. U2a=function(a,b){a.B=!!b;a.j(a.J.ob().getPlayerSize())};
  5819. eX=function(a,b){jU.call(this,"Annotations",g.nU.g3);this.J=a;this.Bb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
  5820. fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()};
  5821. fX=function(a,b){g.OU.call(this,"Audio track",g.nU.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
  5822. fill:"white"}}]});g.N(this,this.countLabel);this.Dk(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()};
  5823. gX=function(a,b){jU.call(this,"Autoplay",g.nU.o3);this.J=a;this.Bb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()};
  5824. V2a=function(a,b){g.aU.call(this,g.bU({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Bb=b;this.T(this.element,"click",this.onClick);this.Bb.Rc(this)};
  5825. W2a=function(a,b){var c;g.RR(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",xa:"Settings",X:{href:"/account_downloads"}}]});g.OU.call(this,"Quality",g.nU.j6,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.Y={};this.D={};this.Ga=new Set;this.j=this.G=!1;this.K="unknown";this.qa="";this.ra=new g.DD;g.N(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap");
  5826. a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Fv(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.JC);this.T(a,"videoplayerreset",this.JC);this.T(a,"onPlaybackQualityChange",this.lU);this.JC();a.createClientVe(this.element,this,137721)};
  5827. Y2a=function(a,b,c){var d=a.Ca[b],e=g.eK[b];return X2a(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
  5828. Z2a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=X2a(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",xa:d});return a};
  5829. X2a=function(a,b,c,d){b={I:"span",Ka:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,xa:e}));return b};
  5830. hX=function(a,b,c,d,e,f,h){g.W.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.Y=a;this.N=b;this.B=c;this.D=d;this.qa=e;this.Ga=f;this.range=this.D-this.B;this.Ea=this.Fa("ytp-slider-section");this.C=this.Fa("ytp-slider");this.ra=this.Fa("ytp-slider-handle");this.K=new g.SU(this.C,
  5831. !0);this.j=h?h:c;g.N(this,this.K);this.K.subscribe("dragmove",this.X3,this);this.T(this.element,"keydown",this.Y3);this.T(this.element,"wheel",this.W3);this.init()};
  5832. iX=function(a){hX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.Cf("P");this.La=pba(this.Ca,this);g.Fv(this.C,"ytp-speedslider");g.Fv(this.G,"ytp-speedslider-text");a=this.G;var b=this.C;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);$2a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
  5833. $2a=function(a){a.G.textContent=a3a(a,a.j)+"x"};
  5834. a3a=function(a,b){a=Number(g.Ce(b,a.B,a.D).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
  5835. b3a=function(a){g.iF.call(this,{I:"div",S:"ytp-speedslider-component"});this.j=new iX(a);g.N(this,this.j);this.element.appendChild(this.j.element)};
  5836. c3a=function(a){var b=new b3a(a);FU.call(this,a,b,"Custom");g.N(this,b)};
  5837. d3a=function(a,b){var c=new c3a(a);g.OU.call(this,"Playback speed",g.nU.n6,a,b,jX(a)?void 0:"Custom",jX(a)?void 0:function(){g.JU(b,c)});
  5838. a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
  5839. fill:"white"}}]});g.N(this,c);this.J=a;this.K=null;jX(a)?(this.j=g.qJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);this.Ta()};
  5840. f3a=function(a,b){var c=e3a(b);a.options[c]?a.Ji(c):b===a.D&&a.j&&(a.Ji(a.j),a.Md(b.toString()))};
  5841. h3a=function(a){g.PU(a,a.G.map(e3a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||jX(a.J))g3a(a,b),g.OU.prototype.Dg.call(a,a.j)};
  5842. g3a=function(a,b){a.D=b;a.j=g.qJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(e3a);b.unshift(a.j);g.PU(a,b)};
  5843. e3a=function(a){return a.toString()};
  5844. jX=function(a){return a.L("web_settings_menu_surface_custom_playback")};
  5845. j3a=function(a,b,c,d){var e=new g.GU(b,void 0,"Video Override");g.OU.call(this,d.text||"",a,b,c,"Video Override",function(){g.JU(c,e)});
  5846. var f=this;g.Fv(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();a=d.options;this.settings=g.bc(a,this.mU,this);this.G=e;g.N(this,this.G);b=new g.aU({I:"div",S:"ytp-menuitemtitle",xa:"Allow for a different caption style if specified by the video."},0);g.N(this,b);this.G.Rc(b,!0);this.D=new g.aU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"On"}]},-1);g.N(this,this.D);this.G.Rc(this.D,!0);this.T(this.D.element,"click",
  5847. function(){i3a(f,!0)});
  5848. this.j=new g.aU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"Off"}]},-2);g.N(this,this.j);this.G.Rc(this.j,!0);this.T(this.j.element,"click",function(){i3a(f,!1)});
  5849. g.PU(this,g.$r(a,this.mU))};
  5850. i3a=function(a,b){a.publish("settingChange",a.K+"Override",!b);a.Bb.Wi()};
  5851. kX=function(a,b){g.GU.call(this,a,void 0,"Options");var c=this;this.uu={};for(var d=0;d<g.pW.length;d++){var e=g.pW[d],f=new j3a(-d,a,b,e);g.N(this,f);f.subscribe("settingChange",this.pk,this);this.uu[e.option.toString()]=f;this.Rc(f,!0)}a=new g.aU(g.bU(),-g.pW.length,"Reset");g.N(this,a);a.listen("click",function(){c.pk("reset",!0)});
  5852. this.Rc(a,!0)};
  5853. lX=function(a,b){g.OU.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
  5854. k3a=function(a,b){a.languages=g.bc(b,a.j,a);g.PU(a,g.$r(b,a.j))};
  5855. m3a=function(a,b){var c=new kX(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.RR(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:d[0]},{I:"a",S:"ytp-panel-footer-content-link",xa:"Settings",X:{href:"/account_playback"}},{I:"span",xa:d[1]}]});g.OU.call(this,"Subtitles/CC",g.nU.SUBTITLES,a,b,"Options",function(){g.JU(b,c)},e);
  5856. var f=this;this.J=a;this.Bb=b;this.tracks={};this.K=new g.xv(function(){l3a(f,!1)},3E3);
  5857. g.N(this,this.K);this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Subtitles/CC"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});g.N(this,this.countLabel);this.Dk(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(RXa.includes("en")?{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
  5858. fill:"white"}}]}:{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new lX(a,b);g.N(this,this.j);this.j.subscribe("select",this.Z3,this);this.G=c;g.N(this,this.G);this.G.subscribe("settingChange",this.pk,this);b.subscribe("show",this.Qba,this);this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",
  5859. this.Ta);this.T(a,"captionschanged",this.Ta);a.createClientVe(this.element,this,127300);this.Ta()};
  5860. n3a=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
  5861. mX=function(a,b){a.J.setOption("captions","track",b)};
  5862. l3a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
  5863. o3a=function(a){g.IU.call(this,a,"ytp-settings-menu");var b=this;this.Pe=new g.GU(this.J);this.hS=this.settingsButton=null;this.isInitialized=this.ZK=!1;g.N(this,this.Pe);this.hide();g.JU(this,this.Pe);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Jf(c)});
  5864. this.T(a,"highlightSettingsMenu",function(){b.ZK=!0;b.od()});
  5865. this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.ZK=!0,b.od(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.hS)||d.open()}})};
  5866. p3a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
  5867. nX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[SXa()]});this.J=a;this.tooltip=b.Te();this.T(a,"videodatachange",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",this.Ta);this.T(a,"captionschanged",this.Ta);
  5868. this.J.createClientVe(this.element,this,127299);this.Ta();this.listen("click",this.onClick);this.addOnDisposeCallback(g.KT(b.Te(),this.element))};
  5869. q3a=function(a){return null!=g.EV(a.J.yb())?g.EV(a.J.yb()).cT()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
  5870. g.pX=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{I:"div",Ka:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",xa:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",xa:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",xa:" / "},{I:"span",S:"ytp-time-duration",xa:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",xa:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",xa:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.W({I:"button",
  5871. Ka:["ytp-live-badge","ytp-button"],X:{disabled:"true"},xa:"{{content}}"});this.j=null;this.WE=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Ab=this.D=this.C=null;this.Y=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.Md("Live");g.N(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Te();this.listen("click",this.onClick);this.T(this.Y,"click",this.oca);this.T(a,"presentingplayerstatechange",this.Sc);this.T(a,"appresize",this.Sc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
  5872. this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Sc();a=a.getLoopRange();b=this.Ab!==a;this.Ab=a;b&&oX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
  5873. oX=function(a){a.updateValue("clipicon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
  5874. a.WE&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Jv(a.element,"ytp-clip",qX(a));g.Jv(a.element,"ytp-live",rX(a))};
  5875. rX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.WE&&!qX(a)&&(!b||!a.B)};
  5876. qX=function(a){return!!a.Ab&&!!a.Ab.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Ab.type||"clips"===a.Ab.type)};
  5877. s3a=function(a,b){g.W.call(this,{I:"div",S:"ytp-volume-panel",X:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-volume-slider",V:[{I:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.K=b;this.Am=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Dh();this.N=this.Fa("ytp-volume-slider");this.qa=this.Fa("ytp-volume-slider-handle");
  5878. this.D=new g.SU(this.N,!0);g.N(this,this.D);this.D.subscribe("dragstart",this.Vba,this);this.D.subscribe("dragmove",this.b4,this);this.D.subscribe("dragend",this.Uba,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.nU);this.T(a,"fullscreentoggled",this.xx);this.T(a,"onShowControls",this.UW);this.T(a,"onHideControls",this.UW);this.T(this.element,"keydown",this.d4);this.T(this.element,"focus",function(){sX(c,c.j,c.isDragging,!0,c.api.Am())});
  5879. this.T(this.element,"blur",function(){sX(c,c.j,c.isDragging,!1,c.api.Am())});
  5880. this.nU(a.ob().getPlayerSize());r3a(this,a.getVolume(),a.isMuted());LT(a,this.element,this)};
  5881. r3a=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
  5882. t3a=function(a,b){g.Jv(a.element,"ytp-volume-control-hover",b);sX(a,b,a.isDragging,a.B,a.api.Am())};
  5883. sX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.Am;a.j=b;a.isDragging=c;a.B=d;a.Am=e;b=a.j||a.isDragging||a.B||a.Am;f!==b&&(b?a.G=a.T(a.element,"wheel",a.a4):(a.Pc(a.G),a.G=null),g.Jv(a.K,"ytp-volume-slider-active",b))};
  5884. tX=function(a,b){var c=a.U(),d=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&d.push("no-link");var e={title:"{{title}}",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.W.call(this,{I:"a",Ka:d,X:e,xa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;c.C||(this.j=this.listen("click",this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
  5885. this.onVideoDataChange);this.T(a,"appresize",this.dc);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.KT(b.Te(),this.element));this.dc()};
  5886. u3a=function(a,b,c){g.cK.call(this);var d=this;this.J=a;this.Oe=b;this.Eg=c;this.gb=NaN;this.Wa=this.Za=null;this.B=new o3a(this.J);this.progressBar=new g.PW(this.J,this.Oe);this.qa=this.Y=this.G=null;this.Ca=new g.pX(this.J,this.Oe);this.Va=this.playButton=this.D=this.K=this.Sa=this.La=null;this.bb=new A1a(this.J,this.Oe);this.Z=new g.wv(this.e4,null,this);this.ra=null;c=a.U();this.Eg.subscribe("autohideupdate",this.cB,this);var e=!a.getPlayerStateObject().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
  5887. this.Wa=f=new v1a(a):f=new g.W({I:"div",S:"ytp-gradient-bottom"});g.N(this,f);g.UT(a,f.element,9);this.Ea=new g.MF(f,250,e,100);g.N(this,this.Ea);this.C=new g.W({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.N(this,this.C);g.UT(a,this.C.element,9);this.Ga=new g.MF(this.C,250,e,100);g.N(this,this.Ga);this.Na=this.C.element.children[0];g.N(this,this.B);g.UT(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.PG(!l);a.OS(d.B,l)});
  5888. g.N(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new FW(a,b);g.N(this,e);g.UT(a,e.element,4);e=new g.eF({I:"div",S:"ytp-left-controls"});g.N(this,e);e.Ja(this.Na);f=new g.KW(a,b,!1);g.N(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Y=new GW(a,g.EI(a.U().experiments,"web_jump_button_backward_amount")||-10),g.N(this,this.Y),this.Y.Ja(e.element));c.Sa||(this.playButton=new g.JW(a,b),g.N(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
  5889. (this.qa=new GW(a,g.EI(a.U().experiments,"web_jump_button_forward_amount")||10),g.N(this,this.qa),this.qa.Ja(e.element));f=new g.KW(a,b,!0);g.N(this,f);f.Ja(e.element);f=new g.W({I:"span",S:"ytp-volume-area"});g.N(this,f);f.Ja(e.element);if(!c.pd&&(this.G=new D1a(a,b),g.N(this,this.G),this.G.Ja(f.element),c.Va&&!c.Z)){var h=new s3a(a,this.C.element);this.Va=h;g.N(this,h);h.Ja(f.element);f=new g.SU(f.element);g.N(this,f);f.subscribe("hoverstart",function(){var l;null==(l=d.Va)||t3a(l,!0)});
  5890. f=new g.SU(e.element);g.N(this,f);f.subscribe("hoverend",function(){var l;null==(l=d.Va)||t3a(l,!1)})}g.N(this,this.Ca);
  5891. this.Ca.Ja(e.element);this.j=new g.eF({I:"div",S:"ytp-right-controls"});g.N(this,this.j);this.La=new EW(a,this.progressBar);g.N(this,this.La);this.La.Ja(e.element);c.L("web_key_moments_markers")&&(this.Sa=new HW(a,this.progressBar),g.N(this,this.Sa),this.Sa.Ja(e.element));this.j.Ja(this.Na);e=new nX(a,b);g.N(this,e);e.Ja(this.j.element);e=new dX(a,this.B);g.N(this,e);p3a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.Vm||e.Hf&&"1"===c.controlsType)this.K=new tX(a,b),g.N(this,this.K),this.K.Ja(this.j.element);
  5892. c.showMiniplayerButton&&(this.D=new IW(a),g.N(this,this.D),this.D.Ja(this.j.element));c.wj&&(b=new cX(a,this.B),g.N(this,b),b.Ja(this.j.element));c.Pl&&(b=new CW(a),g.N(this,b),b.Ja(this.j.element));g.N(this,this.bb);this.bb.Ja(this.j.element);g.N(this,this.Z);this.T(a,"appresize",this.dc);this.T(a,"fullscreentoggled",this.dc);this.T(a,"presentingplayerstatechange",this.KT);this.T(a,"videodatachange",this.onVideoDataChange);this.dc()};
  5893. v3a=function(a,b){a.J.getPlayerStateObject().isCued()||b?b&&(a.Ga.hide(),a.Ea.hide(),a.G&&a.G.Lc(!1),a.K&&a.K.Lc(!1),a.D&&a.D.Lc(!1),a.J.Yl(a.Hb())):b||(a.Ga.show(),a.Ea.show(),a.G&&a.G.Lc(!0),a.K&&a.K.Lc(!0),a.D&&a.D.Lc(!0),a.cB())};
  5894. x3a=function(a){var b=a.J.ob().getPlayerSize().width;return Math.max(b-2*w3a(a),100)};
  5895. w3a=function(a){var b=a.J.Dh(),c=a.J.getVideoData().Hf,d=0;a.J.Dh()&&a.J.Yc()&&(d=(a.J.ob().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
  5896. y3a=function(a){var b=a.J.Dh()?72:50;a=a.J.U();g.RR(a)&&(b=62,g.GR(a)&&(b=54));return b};
  5897. z3a=function(a){DU.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.kJ("suggested_action_button_visible"),function(c){c=c.id;b.text=c;IYa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Jf()});
  5898. this.T(this.J,g.lJ("suggested_action_button_visible"),function(c){b.enabled=!1;b.Jf();b.J.removeCueRange(c.id)})};
  5899. A3a=function(a){a.suggestedActions={};a.J.mf("suggested_action_button_visible")};
  5900. vX=function(a){g.W.call(this,{I:"div",S:uX.TITLE,V:[{I:"div",S:uX.TEXT,V:[{I:"a",Ka:[uX.LINK,uX.SESSIONLINK],X:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},xa:"{{title}}"},{I:"div",S:uX.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Fa(uX.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
  5901. B3a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.GR(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
  5902. g.wX=function(a,b){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{I:"span",xa:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",xa:"{{text}}"}]},
  5903. {I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",xa:"{{duration}}"}]}]});var c=this;this.api=a;this.Va=b;this.env=this.api.U();this.Na=this.env.B;this.bg=this.Fa("ytp-tooltip-bg");this.Sa=this.Fa("ytp-tooltip-edu");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");this.title=this.Fa("ytp-tooltip-title");this.ra=function(d){(d=d.relatedTarget)&&g.Rf(c.j,d)||c.Uh()};
  5904. this.G=function(d){3===c.type&&c.Uh();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),C3a(c,d,2))};
  5905. this.Ga=function(){c.Uh()};
  5906. this.j=null;this.K=new g.MF(this,100);this.type=null;this.qa=!1;this.B=null;this.D=NaN;this.C="";this.oU=this.api.ob().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Ca=90;this.Ea=new g.xv(this.X9,250,this);this.La=new g.xv(this.Uh,5E3,this);g.N(this,this.K);g.N(this,this.Ea);g.N(this,this.La);yR&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));x1a(this.api)&&(this.N=243,this.Ca=141,g.Fv(this.api.getRootNode(),"ytp-bigboards"))};
  5907. g.KT=function(a,b){if(a.Na)return function(){};
  5908. b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Uh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
  5909. C3a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.eC("showElementTooltip called with non-element.",b.toString()),g.IE(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Dv(a.element,"ytp-tooltip");g.Fv(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});g.Jv(a.element,"ytp-tooltip-image-enabled",
  5910. !!e);b=b.getAttribute("data-tooltip-opaque");g.Jv(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ga);a.Y&&(D3a(a),a.K.show(0))}};
  5911. D3a=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.qJ("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*a.scale;var f=
  5912. a.Ca*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.Gv(a.element,["ytp-text-detail","ytp-preview"]);g.Jv(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Iv(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);E3a(a,!!b)}};
  5913. E3a=function(a,b,c,d){var e=Math.min(a.oU,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Gx(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Fv(a.element,"ytp-bottom"):a.element.style.bottom&&g.Fv(a.element,"ytp-top");3===a.type&&a.La.start()};
  5914. F3a=function(a,b){g.Jv(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=qVa(a.B,a.D,b);w1a(a.bg,d,b,c,!0);a.Ea.start()}};
  5915. G3a=function(a){var b=a.j;3===a.type&&a.La.stop();a.api.removeEventListener("appresize",a.Ga);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
  5916. I3a=function(a){g.W.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;vXa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",
  5917. this.LC);this.T(a,"videodatachange",this.LC);this.T(a,"presentingplayerstatechange",this.LC);this.LC();a=this.J.U();var b=g.YB("yt-player-watch-later-pending");a.D&&b?(TOa(),H3a(this)):this.Ta(2);g.Jv(this.element,"ytp-show-watch-later-title",g.BR(a));LT(this.J,this.element,this)};
  5918. J3a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.BR(c)&&g.RT(a.J)&&g.TF(a.J.getPlayerStateObject(),128),f=c.C;return c.je&&240<=b.width&&!d.isAd()&&d.je&&!e&&!g.vT(d)&&!a.J.Yc()&&!f};
  5919. K3a=function(a,b){X_a(g.NR(a.J.U()),"wl_button",function(){TOa({videoId:b});window.location.reload()})};
  5920. H3a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.jm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
  5921. a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.VG(a.element);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_ADDED")};
  5922. kH(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.jb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
  5923. L3a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=TXa();break;case 1:c=kxa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
  5924. Hc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
  5925. g.xX=function(){g.VV.apply(this,arguments);this.TJ=(this.Er=g.BR(this.api.U()))&&(this.api.U().B||vB()||qqa());this.bO=48;this.cO=69;this.JD=this.wi=null;this.wu=[];this.YL=this.gi=this.ZL=this.ew=this.ke=null;this.kH=[];this.contextMenu=this.Ag=this.overflowButton=this.Zh=this.Ug=this.searchButton=this.vn=this.shareButton=this.Po=this.Pg=this.title=this.channelAvatar=this.tB=this.tooltip=null;this.JN=!1;this.iG=this.Vw=this.dE=this.eE=null;this.PR=this.IQ=this.oO=!1};
  5926. M3a=function(a){var b=a.api.U(),c=g.TF(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
  5927. N3a=function(a){if(a.Lg()&&!a.api.Yc()&&a.Zh){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Po||b&&!J3a(a.Po)||V0a(a.Zh,a.Po);!a.shareButton||b&&!e1a(a.shareButton)||V0a(a.Zh,a.shareButton);!a.vn||b&&!k0a(a.vn)||V0a(a.Zh,a.vn)}else{if(a.Zh){b=a.Zh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Rf(a.Pg.element,a.searchButton.element)&&a.searchButton.Ja(a.Pg.element);a.Po&&!g.Rf(a.Pg.element,a.Po.element)&&a.Po.Ja(a.Pg.element);
  5928. a.shareButton&&!g.Rf(a.Pg.element,a.shareButton.element)&&a.shareButton.Ja(a.Pg.element);a.vn&&!g.Rf(a.Pg.element,a.vn.element)&&a.vn.Ja(a.Pg.element)}};
  5929. O3a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Ms(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=O3a(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
  5930. P3a=function(a,b,c){if(a.api.U().L("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.iG){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-tc-m2"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.iG=new Z0a(d,a.api),g.N(a,a.iG),g.UT(a.api,a.iG.element,
  5931. 9));var m;null==(m=a.iG)||c1a(m,d,c)}}};
  5932. g.yX=function(a){g.sV.call(this,a);this.chrome=null;this.load()};
  5933. zX=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.EC)()-f).toFixed(),shost:g.fo(a),trigger:b};Q3a(h,a);c&&c(h);d&&!l&&d(new WJ("pathprobe.net",h))}
  5934. var f=(0,g.EC)();g.cB(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
  5935. Q3a=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),R3a&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
  5936. AX=function(a){g.I.call(this);var b=this;this.W=a;this.j=new Map;this.D=[];this.B=this.W.experiments.fb("html5_onesie_trusted_hosts_for_all")||!tN();this.Y=g.EI(this.W.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.xv(this.N,this.Y,this);this.K=-1;this.qd={epb:function(){return b.j},
  5937. kpb:function(){return b.G},
  5938. fpb:function(){return S3a}};
  5939. g.N(this,this.Z);T3a(this,g.YB("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
  5940. T3a=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?U3a(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
  5941. BX=function(a,b){return new g.sP("https://"+b+a.W.Gk.baseUrl)};
  5942. V3a=function(a,b){a="https://"+uP(b.location)+"/initplayback?c="+g.gR(a.W)+"&owc=1";zX(a,"pw",function(c){c.ht=b.j})};
  5943. CX=function(a,b,c,d){zX("https://"+b+"/videoplayback?probe=1",c,function(e){!d.L("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.L("html5_onesie_probe_ec_hosts")||d.UJ||d.HP();a.D.push(e)},function(e){a.D.push(e.details)})};
  5944. U3a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
  5945. X3a=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j){c=BX(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.z(p,eB(c.Le(),d),2)}e=p.B;if(200!==e.xhr.status||!e.xhr.responseText)return p.return(Promise.reject(new g.eC("b204258371_no_host",c.Le(),e.xhr.status)));f=new g.sP(e.xhr.responseText);
  5946. h=uP(f);l=f.get("ms");m=BX(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&W3a(h)?2!==b||DX(h)?p.return(m):p.return(Promise.reject(new g.eC("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.eC("b204258371_invalid",h,l)))})};
  5947. Y3a=function(a){var b=a.D;a.D=[];return b};
  5948. W3a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
  5949. DX=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
  5950. Z3a=function(a,b){this.location=a;this.j=b};
  5951. b4a=function(a,b){b=void 0===b?!1:b;var c=iK[a],d=$3a[c],e=a4a[a];if(!e||!d)return null;b=new fK(b?e.height:e.width,b?e.width:e.height,e.fps);d=ESa(d,b,c);return new jK(a,d,{video:b,sb:e.bitrate/8})};
  5952. d4a=function(a){var b=$3a[iK[a]],c=c4a[a];return c&&b?new jK(a,b,{audio:new dK(c.audioSampleRate,c.numChannels)}):null};
  5953. f4a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=e4a[d]||0;a.j&&e>a.j||c.push(d)}return c};
  5954. j4a=function(a,b,c){var d=g4a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=h4a[a]||[]);b.push.apply(b,g.qa(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.qa(i4a[a]||[]))};
  5955. p4a=function(a,b){var c=VS(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Yj();if(d){if(!e.B){if(f&&EX)return EX;if(FX)return FX}}else if(FX&&!e.B)return FX;var h=[],l=[],m={},n=GX.concat(k4a);d&&(n=GX.concat(l4a));a.L("html5_early_media_for_drm")&&(n=n.concat(m4a),a.L("allow_vp9_1080p_mq_enc")&&n.push(n4a));var p=[].concat(g.qa(o4a));c.Z&&(p[0]=["141"]);n=g.u(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.u(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var v=
  5956. b4a(t,f&&d);if(v&&v.video&&!(lK(v)&&!c.Ea&&v.video.j>c.jj)){var w=g.EI(a.U().experiments,"html5_drm_byterate_soft_cap");0<w&&NDa(v)&&v.sb>w||(r?(h.push(t),j4a(t,h,a)):(v=lP(c,v,e),!0===v?(r=!0,h.push(t),j4a(t,h,a)):m[t]=v))}}}p=g.u(p);for(n=p.next();!n.done;n=p.next())for(n=g.u(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=d4a(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!MDa(q)&&!mK(q)))if(q=lP(c,q,e),!0===q){l.push(r);j4a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B=
  5957. !1,EX=FX=void 0),f?EX={video:h,audio:l}:FX={video:h,audio:l};FX={video:h,audio:l};e.B=!1;return FX};
  5958. q4a=function(){for(var a=HX.length;4>a;a++){var b=g.Cf("VIDEO");b.load();HX.push(new g.ZU(b))}};
  5959. r4a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.Xg()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Se())&&d.isView()&&(d=d.mediaElement);if(d&&12<d.yw().length&&g.$S(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&TS(f)&&(d=b.oE(),l=
  5960. c.oE());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(lK(d)||lK(l)))return{msg:"av1"};b=a.B&&f.Yj()&&EK();if(l.containerType!==d.containerType)if(b)f.ma("sgap",{ierr:"container"});else return{msg:"container"};if(g.$S(f)&&g.$S(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.aK)if(b)f.ma("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels||
  5961. 2)?{msg:"channel-count"}:a.D&&f.Yj()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
  5962. s4a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.fl||e.fl)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.Tn())return{nq:"no-empty"};a=r4a(c,a,b,Infinity);return null!=a?{nq:a.msg}:null};
  5963. IX=function(a){g.I.call(this);this.app=a;this.D=this.C=this.tb=this.j=null;this.B=1;this.events=new g.cK(this);this.events.T(this.app.Ua,g.lJ("gaplessshortslooprange"),this.N);g.N(this,this.events)};
  5964. t4a=function(){this.j=this.C=this.G=this.D=this.B=!1};
  5965. u4a=function(a){var b=new t4a;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b};
  5966. g.JX=function(a,b,c,d){d=void 0===d?!1:d;OK.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
  5967. v4a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.kd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.wq=new NK;this.Pm=d-1E3*b.Kc();this.wq.then(void 0,function(){});
  5968. this.timeout=new g.xv(function(){h.yg("timeout")},1E4);
  5969. g.N(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
  5970. A4a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){if(1==q.j){if(a.Ma())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.KX.us();return g.z(q,a.wq,2)}g.KX.Wq("gtfta",b);c=a.j.Se();if(c.isEnded())return a.yg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!HK(a.D))return a.yg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.lr()!==a.D)return a.yg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
  5971. "")));d=w4a(a);e=d.e_;f=d.iX;h=d.c_;a.j.Ej(!1,!0);l=x4a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.zE();a.kd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.NG(m.wB,m.xB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Hw:!0,wT:3,wd:"gapless_pseudo"}),l.play()||iB());n=c.kc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.ma("gapless",n);a.j.ma("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();y4a(a.j,f,
  5972. !1,p,a.B.getVideoData().clientPlaybackNonce);y4a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.J1=!0;g.ig(function(){!a.B.getVideoData().Ga&&a.B.getPlayerState().isOrWillBePlaying()&&z4a(a.B)});
  5973. LX(a,6);a.dispose();return q.return(Promise.resolve())})};
  5974. F4a=function(a){if(a.B.getVideoData().C){var b=a.kd.U().L("html5_gapless_suspend_next_loader")&&1===a.G;B4a(a.B,a.D,b,C4a(a));LX(a,3);D4a(a);var c=E4a(a);b=c.XS;c=c.s1;b.subscribe("updateend",a.zy,a);c.subscribe("updateend",a.zy,a);a.zy(b);a.zy(c)}};
  5975. D4a=function(a){a.j.unsubscribe("internalvideodatachange",a.pn,a);a.B.unsubscribe("internalvideodatachange",a.pn,a);a.kd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.pn,a),a.B.unsubscribe("internalvideoformatchange",a.pn,a));a.j.unsubscribe("mediasourceattached",a.pn,a);a.B.unsubscribe("statechange",a.pU,a)};
  5976. x4a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.JX(a,b,c,d)};
  5977. LX=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.wq.resolve())};
  5978. C4a=function(a){return a.kd.U().L("html5_gapless_no_clear_buffer_timeline")&&1===a.G&&NS(a.j.getVideoData())};
  5979. w4a=function(a){var b=a.j.Se();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:MX(a.j,!0);c=Math.min(a.Pm/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Xg()+d;return{y7:b,e_:a,iX:c,c_:Infinity}};
  5980. E4a=function(a){return{XS:a.C.j.Qd,s1:a.C.B.Qd}};
  5981. H4a=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.D=null;this.N=u4a(this.app.U());this.C=null;this.K=function(){g.ig(function(){G4a(b)})}};
  5982. I4a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.Tn()||NX(a);a.D=new NK;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Wc(),m=l.getVideoData().isLivePlayback?Infinity:1E3*MX(l,!0);f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.kJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.jJ(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
  5983. b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,MX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,MX(b)+m)),h=USa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().nj=!0;d.getVideoData().Y=!0;g.OX(d,!0);f={};a.B&&(f=g.LM(a.B.uc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ma("queued",f);0!==b&&d.seekTo(b+.01,{Hw:!0,wT:3,wd:"videoqueuer_queued"});a.C=new v4a(a.N,a.app.Wc(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
  5984. (LX(c,1),c.j.subscribe("internalvideodatachange",c.pn,c),c.B.subscribe("internalvideodatachange",c.pn,c),c.kd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.pn,c),c.B.subscribe("internalvideoformatchange",c.pn,c)),c.j.subscribe("mediasourceattached",c.pn,c),c.B.subscribe("statechange",c.pU,c),c.j.subscribe("newelementrequired",c.x_,c),c.pn());return a.D};
  5985. G4a=function(a){var b,c,d,e,f;g.G(function(h){switch(h.j){case 1:if(a.Ma()||!a.D||!a.j)return h.return();a.Z&&PX(a.app.Wc(),!0,!1);b=null;if(!a.C){h.Ia(2);break}g.Ba(h,3);return g.z(h,A4a(a.C),5);case 5:g.Ca(h,2);break;case 3:b=c=g.Da(h);case 2:if(!a.j)return h.return();g.KX.Co("vqsp",function(){QX(a.app,a.j)});
  5986. d=a.j.Se();a.app.U().L("html5_gapless_seek_on_negative_time")&&d&&-.01>d.getCurrentTime()&&a.j.seekTo(0);g.KX.Co("vqpv",function(){a.app.playVideo()});
  5987. b&&(a.j?J4a(a.j,b.message):null==(e=a.B)||e.ma("gapsp",{}));f=a.D;NX(a);f&&f.resolve();return h.return(Promise.resolve())}})};
  5988. NX=function(a,b){b=void 0===b?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.kJ("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(c=a.C,Infinity!==c.status.status&&1!==c.G&&c.yg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.HT(a.app,1)&&a.j!==a.app.Wc()&&a.j.dispose();a.j&&b&&RX(a.j);a.j=null;a.Z=!1};
  5989. K4a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
  5990. L4a=function(a,b,c){if(a.Tn())return"qie";if(null==a.j||a.j.Ma()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.qe())return"vinm";if(0>=K4a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=r4a(d.policy,d.j,d.B,d.Pm)?a="pge":(c=E4a(d),b=c.XS,a=g.EI(d.kd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=xK(c.s1.Je(),d),b=xK(b.Je(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
  5991. M4a=function(){var a=Lqa();return!(!a||"visible"===a)};
  5992. O4a=function(a){var b=N4a();b&&document.addEventListener(b,a,!1)};
  5993. P4a=function(a){var b=N4a();b&&document.removeEventListener(b,a,!1)};
  5994. N4a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Kqa+"VisibilityState"])return"";a=Kqa+"visibilitychange"}return a};
  5995. Q4a=function(){g.aF.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Jf()};
  5996. O4a(this.G);this.K=this.getVisibilityState(this.Vh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Rt(),this.pA(),this.wA(),this.bk())};
  5997. $Ya=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.Rt()||a.pA()||a.wA()||a.bk())};
  5998. SX=function(a,b){g.I.call(this);var c=this;this.policy=a;this.ib=b;this.B=0;this.j=null;this.wf=[];this.C=null;this.qd={Gn:function(){return c.ib}};
  5999. 1===this.ib.length||g.as(this.ib,function(d){return!!d.range})};
  6000. TX=function(a,b,c){a.j&&(CN(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.u(a.ib),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(oQ(h)&&!c&&a.B+b.totalLength-e<d+h.B){a.j=b.split(e).Om;break}a:{var l=a;var m=h,n=a.B-d,p=b.totalLength-e;m.range&&(p=Math.min(m.B-n,p));m=DRa(m,m.Rb+n,p,m.range?m.Rb+n+p===m.range.length:!!c);n=DN(b,e,p);m=new BQ(m,n);if(l.policy.useUmp&&l.wf.length&&(n=DQ(l.wf[l.wf.length-1],m))){l.wf[l.wf.length-1]=n;l=p;break a}l.wf.push(m);l=p}a.B+=l;e+=
  6001. l;d+=h.B;if(e===b.totalLength)break}};
  6002. UX=function(a){g.I.call(this);this.D=a;this.logger=new g.RQ("onesie");this.Vc=new Map;this.B=this.j=!1;this.hf=this.manifest=null;this.C=!1};
  6003. R4a=function(a,b,c){a.Vc.get(b).xg=c};
  6004. WX=function(a,b){a.Vc.has(b)&&(VX?a.Vc.get(b).vj.clear():a.Vc.get(b).wf=new BN,S4a(a,b),a.B=!0)};
  6005. T4a=function(a){for(var b=g.u(a.Vc),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d.uD||WX(a,c)}};
  6006. U4a=function(a,b){b=a.Vc.get(b);if(!b)return 0;a=0;if(0<b.ib.length){b=g.u(b.ib);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.wF.length)for(c=g.u(b.wF),d=c.next();!d.done;d=c.next())a+=d.value.Wr||0;return a+b.TY};
  6007. V4a=function(a,b){if(VX){var c=0;a=a.Vc.get(b);if(null==a||!a.vj)return 0;a=g.u(a.vj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return(null==(c=a.Vc.get(b))?void 0:c.wf.totalLength)||0};
  6008. XX=function(a,b){a=a.Vc.get(b);if(VX){if(null==a||!a.uD)return!1;b=0<a.vj.size;return 0<a.ix.length||b}return!(null==a||!a.uD)&&!(null==a||!a.wf.totalLength)};
  6009. W4a=function(a,b){var c=a.Vc.get(b),d=U4a(a,b),e=!d&&!!c.bytesReceived;if(VX){var f;if(null==(f=a.manifest)?0:f.Zb){a=g.u(c.vj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Ow)return!1;return e}}else if(f=a.Lw(b),e&&a.j&&void 0!==f)return f;return(e||c.bytesReceived===d)&&c.jz+V4a(a,b)===c.bytesReceived};
  6010. X4a=function(a,b,c){a.Vc.set(b,{wf:new BN,jz:0,bytesReceived:0,TY:0,eS:!1,Kg:!1,Lw:!1,Ch:c,GS:[],ib:[],wF:[],uD:!1,vj:new Map,YG:new Map,ix:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
  6011. Y4a=function(a,b,c,d){c.ib.push.apply(c.ib,g.qa(d));if(VX){c.YG.has(b)||c.YG.set(b,[]);var e;(e=c.YG.get(b)).push.apply(e,g.qa(d))}else if(c.Xf)for(a=g.u(d),b=a.next();!b.done;b=a.next())c.Xf.ib.push(b.value);else{c.Xf=new SX(a.hf,[].concat(g.qa(c.ib)));var f;(null==(f=a.hf)?0:f.pd)&&g.N(a,c.Xf)}};
  6012. Z4a=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.N.get(b);if(!e)return[];if(c.Qn){var f;return(null==(f=e.ww(0,c.clipId))?void 0:f.ib)||[]}if(e.zm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if((null==(l=a.hf)?0:l.C)&&c.timeRange){var m;h=null!=(m=c.timeRange.Og)?m:-1;var n;d=null!=(n=c.timeRange.Gz)?n:-1;var p;f=null!=(p=c.timeRange.zs)?p:-1}if(0>c.OB||0>c.Xr||0>d||0>h||0>c.Wr||0>f)return WX(a,b),[];a=kQ(c.OB,c.Wr);b=c.BK||0;return[new mQ(3,e,a,"makeSliceInfosMediaBytes",c.Xr-1,h/f,d/
  6013. f,b,a.length-b,void 0,c.Fj,c.clipId)]}if(0>c.Xr)return WX(a,b),[];var q;return(null==(q=a.manifest)?0:q.Zb)?(b=e.Gj,l=b*e.info.sb,a=(null==(h=a.hf)?0:h.Gb)?c.BK:void 0,[new mQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Xr,void 0,b,a,l,!0,c.Fj,c.clipId)]):[]};
  6014. $4a=function(a,b,c){a.manifest=b;a.hf=c;b=g.u(a.Vc);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.GS),f=e.next();!f.done;f=e.next()){f=f.value;var h=Z4a(a,c,f);Y4a(a,f.Ip,d,h)}}};
  6015. a5a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength});
  6016. (a=a.Vc.get(c))&&!a.Kg&&(VX?(a.vj.has(b)||a.vj.set(b,{data:new BN,jI:0,Ow:!1}),CN(a.vj.get(b).data,d)):CN(a.wf,d),a.bytesReceived+=d.totalLength,a.eS=!0)};
  6017. S4a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
  6018. var c=a.Vc.get(b);c&&!c.Kg&&(c.Kg=!0,c.xg&&c.xg(),b5a(a)&&a.D.k_())};
  6019. b5a=function(a){a=g.u(a.Vc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Kg)return!1;return!0};
  6020. YX=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
  6021. c5a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
  6022. c&&(b=String.fromCharCode.apply(String,g.qa(new Uint8Array(c))));a.close()}return b};
  6023. h5a=function(a){var b=a.experiments,c=b.fb.bind(b);d5a=c("html5_use_async_stopVideo");e5a=c("html5_pause_for_async_stopVideo");f5a=c("html5_not_reset_media_source");hEa=c("html5_rebase_video_to_ad_timeline");IK=c("html5_not_reset_media_source");g5a=c("html5_not_reset_media_source");TDa=c("html5_retain_source_buffer_appends_for_debugging");c("html5_mediastream_applies_timestamp_offset")&&(ZX=!0);var d=g.EI(b,"html5_cobalt_override_quic");d&&YX("QUIC",+(0<d));c("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&
  6024. YX("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.EI(b,"html5_cobalt_min_processor_cnt_to_offload_algo"));(d=c("html5_cobalt_async_redn"))&&YX("MediaSource.EnableAsynchronousReduction",+d);if(d=g.EI(b,"html5_cobalt_max_size_for_immed_job"))YX("MediaSource.MaxSizeForImmediateJob",d),YX("MediaSource.MinSizeForImmediateJob",d);(d=c("html5_cobalt_enable_fetch_buffer_pool"))&&YX("XHR.EnableFetchBufferPool",+d);(d=g.EI(b,"html5_cobalt_default_buffer_size_in_bytes"))&&YX("XHR.DefaultFetchBufferSize",
  6025. d);(d=c("html5_cobalt_enable_try_lock_for_progress_check"))&&YX("XHR.EnableTryLockForProgressCheck",+d);(d=g.EI(b,"html5_max_source_buffer_append_size_in_bytes"))&&YX("MediaSource.MaxSourceBufferAppendSizeInBytes",d);(d=g.EI(b,"html5_cobalt_audio_write_ahead_ms"))&&YX("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_avoid_copying_array_buffer"))&&YX("MediaSource.EnableAvoidCopyingArrayBuffer",+d);(d=c("html5_cobalt_enable_decode_to_texture"))&&YX("Media.PlayerConfiguration.DecodeToTexturePreferred",
  6026. d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&YX("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.EI(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}});
  6027. ATa(a.G);VX=c("html5_use_ump_request_slicer");R3a=c("html5_record_now");c("html5_disable_streaming_xhr")&&(hR=!1);c("html5_pr_start_secs")&&(XWa=!0);g.EI(a.experiments,"html5_byterate_soft_cap_mweb")&&(cP=!0)};
  6028. $X=function(a,b,c,d,e){e=void 0===e?[]:e;g.I.call(this);this.W=a;this.jc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
  6029. i5a=function(a){if(!(2>a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=aY(l.value))&&d.push(l);f.removeAll()}}}(c=aY(b))&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
  6030. bY=function(a,b,c,d){if(!a.j||b>c)return!1;b=new $X(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=aY(c);e&&e!==aY(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Ye())?a.j.get(b.Ye()).push(b):a.j.set(b.Ye(),[b]);return!0};
  6031. cY=function(a,b){return a.B.get(b)};
  6032. j5a=function(a,b,c){a.B.set(b,c)};
  6033. dY=function(a,b,c,d,e,f){return new k5a(c,c+(d||0),!d,b,a,e,f)};
  6034. k5a=function(a,b,c,d,e,f,h){g.I.call(this);this.jc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.jK=h;this.j=new Map;pWa(f)};
  6035. aY=function(a){return a.videoData.clientPlaybackNonce};
  6036. l5a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
  6037. m5a=function(a){this.end=this.start=a};
  6038. g.eY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ea=new Map;this.bb=new Map;this.La=new Map;this.B=new Map;this.C=[];this.G=[];this.D=new Map;this.Tb=new Map;this.Y=new Map;this.Ob=NaN;this.zb=this.Za=this.Kb=null;this.Gb=new g.xv(function(){n5a(d,d.Ob,d.Kb||void 0)});
  6039. this.events=new g.cK(this);this.Jb=15E3;this.Z=new g.xv(function(){d.Ca=!0;var e=d.ea,f=d.Jb;e.ma("sdai",{aftimeout:f});e.Wd(new WJ("ad.fetchtimeout",{timeout:f}));o5a(d);d.IE(!1)},this.Jb);
  6040. this.Ca=!1;this.K=new Map;this.rb=[];this.ra=null;this.Be=new Set;this.Ga=[];this.qc=[];this.yd=[];this.Jd=[];this.j=void 0;this.Wa=0;this.Sa=!0;this.qa=!1;this.Na=[];this.pd=new Set;this.Sd=new Set;this.je=new Set;this.fm=0;this.gb=new Set;this.Qc=0;this.yn=this.Bc=!1;this.pc=this.N="";this.qd={Gob:function(){return d.B},
  6041. Qob:function(){return d.C},
  6042. Hob:function(){return d.D},
  6043. T7:function(e){d.onCueRangeEnter(d.B.get(e))},
  6044. Aob:function(e){d.onCueRangeExit(d.B.get(e))},
  6045. Iqb:function(e,f){d.B.set(e,f)},
  6046. Kqb:function(e){d.pc=e},
  6047. nE:function(){return d.nE()}};
  6048. this.ea.getPlayerType();p5a(this.ea,this);this.Va=this.W.zc();g.N(this,this.Gb);g.N(this,this.events);g.N(this,this.Z);this.events.T(this.api,g.kJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.lJ("serverstitchedcuerange"),this.onCueRangeExit)};
  6049. t5a=function(a,b,c,d,e,f,h,l){var m=q5a(a,f,f+e);a.Ca&&a.ea.ma("sdai",{adaftto:1});a.yn&&a.ea.ma("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.ma("sdai",{attl0d:1});f>h&&fY(a,{reason:"enterTime_greater_than_return",jc:f,Vd:h});var p=1E3*n.Dd();f<p&&fY(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.W.L("html5_report_ssdai_timeline_error_as_fatal"));n=1E3*n.getDuration();h>n&&fY(a,{reason:"parent_return_greater_than_content_duration",
  6050. Vd:h,nqb:n});n=null;p=g.Sb(a.G,{Vd:f},function(q,r){return q.Vd-r.Vd});
  6051. 0<=p&&(n=a.G[p],n.Vd>f&&r5a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ga.length;p++){if(a.Ga[p].identifier===m.identifier){a.Ga.splice(p,1);break}}else if(m)return a.ea.ma("sdai",{rejectAttl:1}),l&&!Ys(a.Jd,function(q){return q===l})&&(a.ea.ma("sdai",{rejectAdBreakAttl:1}),a.Jd.push(l)),gY(a),"";
  6052. m="ss_childplayback_"+s5a++;a.W.L("html5_enable_ssap_entity_id")?(b=new g.ES(a.W,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.VD(16)),p=b.cpn,b=new g.ES(a.W,b));b.bd=m;c={bd:m,playerType:d,durationMs:e,jc:f,Vd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Yb(a.G,c,function(q,r){return q.jc===r.jc?q.durationMs-r.durationMs:q.jc-r.jc});
  6053. a.D.set(p,c);a.Tb.set(m,c);a.ea.ma("sdai",{attlDone:h-f,acpn:p});l?c.Ul=l:n?c.Ul=n.Ul:c.Ul=c.cpn;if(f=c.Ul)(d=a.Y.get(f))?(d.push(c),g.Vb(d,function(q,r){return q.jc-r.jc})):a.Y.set(f,[c]);
  6054. a.Z.isActive()&&(a.Ca=!1,a.Z.stop(),o5a(a),a.IE(!0));return m};
  6055. hY=function(a,b,c){return a.W.L("html5_enable_ssdai_cue_logs")?{ssvc:b,cpn:(null==c?void 0:c.cpn)||"",vid:(null==c?void 0:c.videoData.videoId)||"",ct:a.ea.getCurrentTime().toFixed(3),cmt:a.ea.Xg().toFixed(3)}:{ssvc:b,cpn:(null==c?void 0:c.cpn)||"",vid:(null==c?void 0:c.videoData.videoId)||""}};
  6056. jY=function(a,b,c){var d=a.qa,e=a.nE(),f=a.N;a.N="";var h=b.Qg-c.Qg;.5<Math.abs(h)&&a.ea.ma("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.hC();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}e?a.ea.ma("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):u5a(a,m,l,c.Qg,b.Qg,d,e)}else if(!b.isAd&&c.isAd){a.pc=e.cpn;a.api.publish("serverstitchedvideochange");
  6057. l=hY(a,"a2c");a.ea.ma("sdai",l);a.fm=0;if(l=c.Xd)a.Wa=l.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&iY(a.ea,n,e,c.Qg,b.Qg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Wa=0,a.pc=p.cpn,a.api.publish("serverstitchedvideochange",p.bd,p.Kq),n=hY(a,"c2a",p),a.ea.ma("sdai",n),a.fm=1,iY(a.ea,e,p,c.Qg,b.Qg,d,!!f))}};
  6058. v5a=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Sb(a.G,{jc:c},function(e,f){return e.jc-f.jc});
  6059. d=0>d?-1*(d+2):d;return 0<=d&&(a=a.G[d],a.Vd>=c)?{un:a,xu:b}:{un:void 0,xu:b}};
  6060. kY=function(a,b){var c="";(b=w5a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
  6061. w5a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.pc){var c=a.B.get(a.pc);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.u(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
  6062. n5a=function(a,b,c){var d=a.zb||a.api.Wc().getPlayerState();lY(a,!0);a.ea.seekTo(b,c);a=a.api.Wc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
  6063. lY=function(a,b){a.Ob=NaN;a.Kb=null;a.Gb.stop();a.Za&&b&&x5a(a.Za);a.zb=null;a.Za=null};
  6064. y5a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.jc<b||f.Vd>c)&&d.push(f);a.G=d;d=g.u(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.ma("sdai",{rmAdCR:1}));d=v5a(a,b/1E3);b=d.un;d=d.xu;if(b&&(d=1E3*d-b.jc,e=b.jc+d,b.durationMs=d,b.Vd=e,d=a.B.get(b.cpn))){e=g.u(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
  6065. b.jc+b.durationMs:f.end===d.start&&(f.end=b.jc);d.start=b.jc;d.end=b.jc+b.durationMs}if(b=v5a(a,c/1E3).un){var h;d="playback_timelinePlaybackId_"+b.bd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.jc+"_parentReturnTimeMs_"+b.Vd;a.Vp("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
  6066. z5a=function(a){a.Ea.clear();a.bb.clear();a.La.clear();a.B.clear();a.C=[];a.G=[];a.D.clear();a.Tb.clear();a.Y.clear();a.K.clear();a.rb=[];a.ra=null;a.Be.clear();a.Ga=[];a.qc=[];a.yd=[];a.Jd=[];a.Na=[];a.pd.clear();a.Sd.clear();a.je.clear();a.gb.clear();a.Ca=!1;a.j=void 0;a.Wa=0;a.Sa=!0;a.qa=!1;a.fm=0;a.Qc=0;a.Bc=!1;a.yn=!1;a.N="";a.Z.isActive()&&gY(a)};
  6067. B5a=function(a,b,c,d,e,f){if(!a.yn)if(!a.W.L("html5_ssdai_use_media_time")&&g.A5a(a,c))a.Va&&a.ea.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=mY(a,b,c,d,f),!(a.ea.getVideoData().Rn()&&(null==b?0:b.uA)))return b};
  6068. mY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=nY(a,b))return f;var h=oY(a,c-1,null!=d?d:2);if(e)return a.ea.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.Zy,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?nY(a,b-5):a.K.get(c-1);if(2===(null==h?void 0:h.Zy)&&(a.ea.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f};
  6069. nY=function(a,b){b+=a.It();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=void 0===c?0:c;var d=1E3*b;a=g.u(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Kq?1E3*e.Kq:e.jc;if(d>=e.jc-1E3*c&&d<=f+e.durationMs+1E3*c){b={un:e,xu:b};break a}}b={un:void 0,xu:b}}else b=v5a(a,b,1);return b.un};
  6070. C5a=function(a){if(a.Na.length)for(var b=g.u(a.Na),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.u(a.C);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.C=[];a.Ea.clear();a.bb.clear();a.La.clear();a.j||(a.Sa=!0)};
  6071. u5a=function(a,b,c,d,e,f,h){if(b&&c){a.pc=c.cpn;a.api.publish("serverstitchedvideochange",c.bd,c.Kq);var l=hY(a,"a2a",c);a.ea.ma("sdai",l);a.fm++;iY(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.ma("sdai",{misspbkonadtrans:1,enter:(null==c?void 0:c.cpn)||"",exit:(null==b?void 0:b.cpn)||"",seek:f,skip:h})};
  6072. oY=function(a,b,c){if(1===c){if(a.Ea.has(b))return a.Ea.get(b)}else{if(2===c&&a.bb.has(b))return a.bb.get(b);if(3===c&&a.La.has(b))return a.La.get(b)}};
  6073. E5a=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;D5a(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.ea.removeCueRange(e);if(a.Na.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else D5a(a,b,c)};
  6074. D5a=function(a,b,c){b=a.CI(b,c);c=!0;g.Yb(a.C,b,function(h,l){return h.start-l.start});
  6075. for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.ZD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
  6076. pY=function(a,b,c){if(void 0===c||!c){c=g.u(a.rb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.rb.push(new m5a(b))}};
  6077. g.A5a=function(a,b){a=g.u(a.rb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
  6078. r5a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",iqb:b,jc:c,Vd:d,yob:e.bd,zob:(null==(f=e.videoData)?void 0:f.videoId)||"",vob:e.durationMs,wob:e.jc,xob:e.Vd};fY(a,b)};
  6079. fY=function(a,b,c){a=a.ea;a.ma("timelineerror",b);b=new WJ("dai.timelineerror",b);c?a.Zf("dai.timelineerror",1,"RETRYABLE_ERROR",VJ(b.details)):a.Wd(b)};
  6080. F5a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
  6081. G5a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
  6082. H5a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
  6083. I5a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Vd!==b.jc&&c++;return c};
  6084. J5a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vd!==e.jc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Sd.has(e)&&(a.ea.ma("sdai",{decoratedAd:e}),a.Sd.add(e)))}};
  6085. o5a=function(a){a.Va&&a.ea.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Qc)+"_isTimeout_"+a.Ca})};
  6086. q5a=function(a,b,c){if(a.Ga.length)for(var d=g.u(a.Ga),e=d.next(),f={};!e.done;f={Cz:void 0},e=d.next()){f.Cz=e.value;e=1E3*f.Cz.startSecs;var h=1E3*f.Cz.Ah+e;if(b>e&&b<h||c>e&&c<h)return Ys(a.yd,function(l){return function(m){return m.identifier===l.Cz.identifier}}(f))||(a.ea.ma("sdai",{adskip:b}),a.yd.push(f.Cz)),f.Cz}};
  6087. gY=function(a){a.Ca=!1;a.Z.isActive()&&o5a(a);a.Z.stop();a.IE(!1)};
  6088. M5a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.ea=c;this.Zs=new Map;this.Qi=new Map;this.lH=new Map;this.events=new g.cK(this);this.fm=0;this.eK=this.pc="";this.bG=[];this.jk=new Set;this.yK=new g.xv(function(){d.api.playVideo(1);d.api.ma("ssap",{nve:""+d.pc});K5a(d,4)},3E4);
  6089. this.Yx="";this.XG=new Set;this.w1=!0;this.cM=new Map;this.hL=new Set;this.LX=!1;this.mw="";this.hZ=!1;this.pZ="";this.qd={Sob:function(){return d.Qi},
  6090. T7:function(e){if(e=d.Qi.get(e))d.onCueRangeEnter(e)}};
  6091. this.ea.getPlayerType();L5a(this);this.events.T(this.api,g.kJ("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.KF);g.N(this,this.yK);this.ZS=this.api.U().L("html5_enable_ssap_gapful_switch");this.zda=g.EI(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200};
  6092. N5a=function(a,b,c,d){for(var e=a.ea.Uz(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||((h=aY(l),l=l.getVideoData(),h&&l&&e.BI(h,l,2),l)?h||(l=void 0,a.api.ma("ssap",{macac:h,maccc:null==(l=a.timeline.j)?void 0:aY(l)})):(l=void 0,a.api.ma("ssap",{mvac:h,mvcc:null==(l=a.timeline.j)?void 0:aY(l)})))}return bY(a.timeline,b,c,d)};
  6093. P5a=function(a){var b=a.ea.Xg();return(b=qY(a,b))?O5a(a,b.Bi()/1E3):!1};
  6094. O5a=function(a,b){if(a.jk.has(a.pc))return!1;var c=0,d=0,e=cY(a.timeline,a.pc);if(null==e?0:e.length)for(e=g.u(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.Ye();d=d.Bi();break}if(0<d&&d>1E3*b+a.zda)return!1;if(d=Q5a(a,c)){b=!1;c=void 0;d=g.u(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}aY(e)===a.pc&&(b=!0)}d=void 0;if(c)d=aY(c);else if(b){var f;d=null==(f=a.timeline.j)?void 0:aY(f)}if(d)return a.finishSegmentByCpn(a.pc,d,2,void 0),!0;var h;a.api.ma("ssap",{mfnc:1,mfncc:null==
  6095. (h=a.timeline.j)?void 0:aY(h)})}return!1};
  6096. rY=function(a,b){a=cY(a.timeline,b);return(null==a?0:a.length)?a[0].Ye():0};
  6097. sY=function(a,b){if(!a.timeline.j)return{clipId:"",bl:0};if(b=qY(a,b,!1))return{clipId:aY(b)||"",bl:b.Ye()};a.api.ma("ssap",{mci:1});return{clipId:"",bl:0}};
  6098. tY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.Bi()-b.Ye())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Bi()-d.Ye())/1E3}return a};
  6099. S5a=function(a,b){b*=1E3;return a.api.L("html5_ssap_get_current_time_refactor")?(a=R5a(a,b))?a.Ye():0:(a=qY(a,b))?a.Ye():0};
  6100. T5a=function(a,b){return(a=qY(a,1E3*b))?(a.Bi()-a.Ye())/1E3:0};
  6101. R5a=function(a,b){if(a=cY(a.timeline,a.pc)){a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ye()<=b&&c.Bi()>=b)return c}};
  6102. U5a=function(a){var b=a.ea.getVideoData();a.pc&&(a=a.Zs.get(a.pc))&&(b=a);return b};
  6103. Q5a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Vb(e);b=g.Sb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ye()!==b.Bi())return b;return a.timeline}return b&&0<b.length?b[b.length-1]:void 0}};
  6104. qY=function(a,b,c){c=void 0===c?!1:c;var d=Q5a(a,b,c);if(d){var e=d.segments;if(e.length){for(var f=g.u(e),h=f.next();!h.done;h=f.next())if(h=h.value,h.Ye()<=b&&h.Bi()>b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.Ye()===d.Bi())return e[0]}}else a.api.ma("ssap",{ctnf:1})};
  6105. K5a=function(a,b){var c;if(a.Yx)for(c=a.bG.shift();c&&c!==a.Yx;)c=a.bG.shift();else c=a.bG.shift();if(c)return a.jk.has(c)?V5a(a,c):3===b&&(a.yK.stop(),a.api.playVideo(1)),a.lH.set(a.pc,b),a.api.ma("ssap",{onvftn:1}),W5a(a,c),!1;a.api.ma("ssap",{onvftv:1});a.yK.stop();return!0};
  6106. V5a=function(a,b){b=cY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.yK.start(b[0].jK)};
  6107. W5a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.pc,f=!1;if(""===e)e=d,f=!0;else if(void 0===e){var h=a.ea.Uz().Hg;h&&a.timeline.B.has(h)&&(e=h);a.api.ma("ssap",{mcc:e+";"+b});a.ea.Wd(new WJ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&X5a(a,c,f);else if(h=a.lH.get(e),f||3===h||a.api.hC(),a.pc=b,b=cY(a.timeline,a.pc),null==b?0:b.length){var l=b[0];b=l.getType();e!==d&&(a.eK=e,c=a.Zs.get(e));h?a.lH.delete(e):h=f?1:2;a:{var m=a.pc;if(!a.Qi.has(m))for(var n=
  6108. g.u(a.Qi),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.pc;q=a.ea.Uz();if(q.Hg!==p){var r=q.uc(q.Hg);m=q.uc(p);q.Hg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.zc()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.LM(p.provider),Y5a(p,n,"SU")),isNaN(p.K)||g.$A(p.K)),m.resume())}n=a.ea.getCurrentTime();m=Math.max(0,n-rY(a,e)/1E3);n=Math.max(0,
  6109. n-rY(a,a.pc)/1E3);p=3===h;l=l.getVideoData();q=a.ea.Uz();r=e;var t=a.pc,v=a.ea.getPlayerState();if(r!==t){var w=q.uc(r),A=q.uc(t),D,F=r===(null==(D=w.getVideoData())?void 0:D.clientPlaybackNonce),H;D=t===(null==(H=A.getVideoData())?void 0:H.clientPlaybackNonce);var L;H=F?(null==(L=w.getVideoData())?void 0:L.videoId)||"":"nvd";var M;L=D?(null==(M=A.getVideoData())?void 0:M.videoId)||"":"nvd";F&&null!=(M=w.qoe)&&(uY(M,4,p?4:0,t,L,m),M.reportStats());D&&(vY(A),null!=(M=A.qoe)&&(uY(M,4,p?5:1,r,H,n),M.reportStats()),
  6110. Z5a(A,new g.SF(v,A.Fe)),$5a(A));a6a(q,r)}var R;AZa(e,a.pc,d,(0,g.EC)(),l,null!=(R=a.cM.get(e))?R:(0,g.EC)(),c);a.cM.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.pc,pvdmc:a.pc===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.pc,tpcc:d,tpv:(null==l?0:l.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",l,b,c,h);a.jk.delete(e);a.Yx="";l&&1===b?X5a(a,l):a.ea.ma("ssap",{nis:a.pc});2===b?a.fm++:a.fm=0}};
  6111. X5a=function(a,b,c){c=void 0===c?!1:c;if(b.startSeconds&&a.w1){var d=b.startSeconds;b=cY(a.timeline,b.clientPlaybackNonce);if(null==b?0:b.length)d+=b[0].Ye()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.hP()||(a.ea.seekTo(d,{hT:!0}),a.w1=!1,a.ea.ma("ssap",{is:a.pc,co:c?"1":"0",tse:d.toFixed()}))}};
  6112. b6a=function(a,b,c){b=cY(a.timeline,b);if(null==b?0:b.length)if(b=Q5a(a,b[0].Ye())){b=g.u(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(aY(d)===c)break;if(d=aY(d))a.Qi.delete(d),(d=a.Qi.get(d))&&a.ea.removeCueRange(d)}}};
  6113. c6a=function(a,b,c){qY(a,b)||a.ea.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:wY(a)})};
  6114. wY=function(a){var b=a.pc;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d;a=Array.from(null!=(d=null==(c=a.timeline.j)?void 0:c.j.values())?d:[]);c=[];if(null==a?0:a.length)for(d=g.u(a),a=d.next();!a.done;a=d.next())if(a=a.value,a.length&&a[0]&&(a=a[0].segments,a.length)){a=g.u(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e="st."+f.Ye()+";";e+="et."+f.Bi()+";";var h=aY(f);h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h:
  6115. "nvd");c.push(e)}}return c.length?c.join(","):"empty."+b};
  6116. L5a=function(a){a.ea.tG(Array.from(a.Qi.values()));a.Qi.clear()};
  6117. e6a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.xv(function(){d6a(d,d.qa,d.Y||void 0)});
  6118. this.ra=[];this.Ca=new g.xv(function(){var e=d.ra.pop();if(e){var f=e.bd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.yv(d.Ca,4500))}});
  6119. this.events=new g.cK(this);c.getPlayerType();g.N(this,this.Z);g.N(this,this.Ca);g.N(this,this.events);this.events.T(this.api,g.kJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.nk)};
  6120. i6a=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return xY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Dd();if(e<n)return xY(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
  6121. m.Kc(),xY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.jc&&e<q.Vd)return xY(a,"overlappingEnter",h,l),"";if(f<=q.Vd&&f>q.jc)return xY(a,"overlappingReturn",h,l),"";if(f===q.jc)return xY(a,"outOfOrder",h,l),"";e===q.Vd&&(n=q)}h="cs_childplayback_"+f6a++;l={Xd:yY(d,!0),Pm:Infinity,target:null};var r={bd:h,playerVars:b,playerType:c,durationMs:d,jc:e,Vd:f,qt:l};a.B=a.B.concat(r).sort(function(w,A){return w.jc-A.jc});
  6122. n?g6a(a,n,{Xd:yY(n.durationMs,!0),Pm:n.qt.Pm,target:r}):(b={Xd:yY(e,!1),Pm:e,target:r},a.K.set(b.Xd,b),m.addCueRange(b.Xd));b=!0;if(a.j===a.api.Wc()&&(m=1E3*m.getCurrentTime(),m>=r.jc&&m<r.Vd)){var t=a.api.Wc().getPlayerState(),v=m-r.jc;Wf(function(){h6a(a,r,v/1E3,{},t)});
  6123. b=!1}b&&(a.ra.unshift(r),g.yv(a.Ca,0));return h};
  6124. yY=function(a,b){return new g.jJ(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
  6125. j6a=function(a,b,c,d){a.C=d;a.api.TI(a.j,c,b)};
  6126. k6a=function(a,b,c,d){a.C=d;d=b.bd;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.W.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
  6127. g6a=function(a,b,c){var d=b.qt;b.qt=c;zY(a,b)&&(c=a.api.Wc(),d.Xd===a.C&&AY(a),c.removeCueRange(d.Xd),c.addCueRange(b.qt.Xd))};
  6128. AY=function(a){a.N=null;a.C=null;a.api.Tn()||a.api.clearQueue()};
  6129. l6a=function(a,b){zY(a,b)||xY(a,"childPlaybackIsNotPresenting");return b.Vd===b.jc+b.durationMs?(a=a.api.Wc(),b.jc+1E3*a.getCurrentTime()):b.Vd};
  6130. m6a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.jc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{un:d,xu:b-e};c=f-d.Vd/1E3}return{un:null,xu:b-c}};
  6131. d6a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.Wc().getPlayerState();BY(a,!0);b=isFinite(b)?b:a.j.ir();var e=m6a(a,b);b=e.un;e=e.xu;var f=b&&!zY(a,b)||!b&&a.j!==a.api.Wc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||AY(a);b?h6a(a,b,e,c,d):n6a(a,e,c,d)};
  6132. n6a=function(a,b,c,d){var e=a.j,f=a.api.Wc();e!==f&&a.api.Nx();e.seekTo(b,Object.assign({},{wd:"application_timelinemanager"},c));o6a(a,d)};
  6133. h6a=function(a,b,c,d,e){var f=zY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.ES(a.W,b.playerVars);h.bd=b.bd;a.api.mu(h,b.playerType)}h=a.api.Wc();f||h.addCueRange(b.qt.Xd);h.seekTo(c,Object.assign({},{wd:"application_timelinemanager"},d));o6a(a,e)};
  6134. o6a=function(a,b){a=a.api.Wc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
  6135. BY=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&x5a(a.D);a.G=null;a.D=null};
  6136. zY=function(a,b){a=a.api.Wc();return!!a&&a.getVideoData().bd===b.bd};
  6137. p6a=function(a){var b=a.B.find(function(e){return zY(a,e)});
  6138. if(b){var c=a.api.Wc();AY(a);var d=new g.QK(8);b=l6a(a,b)/1E3;n6a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
  6139. r6a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Pm>=d&&l.target&&l.target.Vd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.jc>=d&&l.Vd<=e){var m=a;m.N===l&&AY(m);zY(m,l)&&m.api.Nx()}else f.push(l);a.B=f;d=m6a(a,b/1E3);b=d.un;d=d.xu;b&&(d*=1E3,q6a(a,b,d,b.Vd===b.jc+b.durationMs?b.jc+d:b.Vd));(b=m6a(a,c/1E3).un)&&
  6140. xY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.bd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.jc+" parentReturnTimeMs="+b.Vd+"}.Child playbacks can only have duration updated not their start."))};
  6141. q6a=function(a,b,c,d){b.durationMs=c;b.Vd=d;d={Xd:yY(c,!0),Pm:c,target:null};g6a(a,b,d);zY(a,b)&&1E3*a.api.Wc().getCurrentTime()>c&&(b=l6a(a,b)/1E3,c=a.api.Wc().getPlayerState(),n6a(a,b,{},c))};
  6142. xY=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
  6143. t6a=function(a){a&&"web"!==a&&s6a.includes(a)};
  6144. EY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.xv(function(){CY(c);DY(c)});
  6145. g.N(this,this.j)};
  6146. u6a=function(a){CY(a);return a.data.map(function(b){return b.value})};
  6147. CY=function(a){var b=(0,g.EC)();a.data.forEach(function(c){c.expire<b&&FY(a,c,!0)});
  6148. a.data=g.Pt(a.data,function(c){return!(c.expire<b)})};
  6149. FY=function(a,b,c){c&&a.B&&a.B(b.value)};
  6150. DY=function(a){a.j.stop();var b=Infinity;for(var c=g.u(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
  6151. GY=function(){g.I.call(this);this.j=new EY(5,null);g.N(this,this.j);this.B=new EY(15,null);g.N(this,this.B)};
  6152. v6a=function(a,b){return b?!!a.j.get(b):!1};
  6153. w6a=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
  6154. x6a=function(a,b){a.dataset.version=b};
  6155. A6a=function(a){g.W.call(this,{I:"div",Ka:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.HY.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.yz=this.Fa(g.HY.VIDEO_CONTAINER);this.vB=new g.Fs(0,0,0,0);this.Dc=null;this.nL=new g.Fs(0,0,0,0);this.yP=this.LQ=this.KQ=NaN;this.MJ=this.kL=this.bS=this.PW=!1;this.mO=NaN;this.pQ=!1;this.tF=null;this.mR=function(){b.element.focus({preventScroll:!0})};
  6156. this.RK=function(){b.app.Ua.publish("playerUnderlayVisibilityChange","visible");b.Dc.classList.remove(g.HY.VIDEO_CONTAINER_TRANSITIONING);b.Dc.removeEventListener(VXa,b.RK);b.Dc.removeEventListener("transitioncancel",b.RK)};
  6157. var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
  6158. this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
  6159. var e=a.U();e.transparentBackground&&this.Ns("ytp-transparent");"0"===e.controlsType&&this.Ns("ytp-hide-controls");g.Fv(this.element,"ytp-exp-bottom-control-flexbox");g.Fv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.TR(e)&&g.Fv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Fv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Fv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Fv(this.element,"ytp-cairo-refresh-signature-moments");
  6160. x6a(this.element,y6a(a));this.v1=!1;this.cE=new g.Ke(NaN,NaN);z6a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
  6161. z6a=function(a){function b(){a.Dc&&IY(a);JY(a)!==a.pQ&&a.resize()}
  6162. function c(h,l){a.Kt(h,l)}
  6163. function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
  6164. function e(){a.nL=new g.Fs(0,0,0,0);a.vB=new g.Fs(0,0,0,0)}
  6165. var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
  6166. C6a=function(a){var b=g.HT(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.sT(b))c=a.app.Ua.getVideoData();if(c){if(g.hT(c)||g.iT(c)||g.jT(c))return 16/9;if(dWa(c)&&c.C.j)return a=c.C.videoInfos[0].video,B6a(a.width,a.height)}return(a=a.Dc)?B6a(a.videoWidth,a.videoHeight):16/9};
  6167. D6a=function(a,b,c,d){var e=c,f=B6a(b.width,b.height);a.PW?e=c<f?Infinity:0:isNaN(a.yP)?isNaN(a.LQ)||(e=a.LQ):e=a.yP;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
  6168. B6a=function(a,b){return 1>Math.abs(E6a*b-a)||1>Math.abs(E6a/a-b)?E6a:a/b};
  6169. JY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.HT(a.app);if(!b||b.Kn())return!1;a=a.app.Ua.getPlayerStateObject();b=!g.TF(a,2)||b&&b.getVideoData().Y;var c=g.TF(a,1024);return a&&b&&!c&&!a.isCued()};
  6170. IY=function(a){var b="3"===a.app.U().controlsType&&!a.MJ&&JY(a)&&!a.app.WA||!1;a.Dc.controls=b;a.Dc.tabIndex=b?0:-1;b?a.Dc.removeEventListener("focus",a.mR):a.Dc.addEventListener("focus",a.mR)};
  6171. F6a=function(a){var b=a.Th(),c=1,d=!1,e=D6a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=pqa(),m=g.EI(f.experiments,"player_underlay_min_player_width");m=h&&a.bS&&a.getPlayerSize().width>m;if(JY(a)){var n=C6a(a);var p=isNaN(n)||g.VC||KY&&g.zC||m;UC&&!g.Pc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Fs(p,0,b.width,b.height)):p=new g.Fs(0,
  6172. 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Fs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.zC&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Jv(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.v1)a.Dc.style.display="";a.pQ=!0}else{p=-b.height;UC?p*=window.devicePixelRatio:g.UR&&(p-=window.screen.height);p=new g.Fs(0,p,b.width,b.height);if(l||a.v1)a.Dc.style.display="none";a.pQ=!1}Gs(a.nL,p)||(a.nL=p,g.HR(f)?(a.Dc.style.setProperty("width",
  6173. p.width+"px","important"),a.Dc.style.setProperty("height",p.height+"px","important")):g.Ts(a.Dc,p.getSize()),d=new g.Ie(p.left,p.top),g.Ps(a.Dc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Fs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Gs(a.vB,b)||(a.vB=b,d=!0);g.Is(a.Dc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.kL&&(m&&(a.Dc.addEventListener(VXa,a.RK),a.Dc.addEventListener("transitioncancel",a.RK),a.Dc.classList.add(g.HY.VIDEO_CONTAINER_TRANSITIONING)),a.kL=m,a.app.Ua.publish("playerUnderlayVisibilityChange",
  6174. a.kL?"transitioning":"hidden"));return d};
  6175. G6a=function(){this.csn=g.FE();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
  6176. H6a=function(a){if(a.csn!==g.FE())if("UNDEFINED_CSN"===a.csn)a.csn=g.FE();else{var b=g.FE(),c=g.EE();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.aB("combine_ve_grafts")?RO(PO(),e,c):g.JA(g.RE)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.VE(b,c)}};
  6177. I6a=function(a,b){this.Nc=a;this.policy=b;this.playbackRate=1};
  6178. J6a=function(a,b){var c=Math.min(2.5,vR(a.Nc));a=LY(a);return b-c*a};
  6179. L6a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.cn)return Math.ceil(a.policy.cn*b);a.policy.El&&(d=Math.abs(d));d/=a.playbackRate;var f=1/wR(a.Nc);c=Math.max(.9*(d-3),vR(a.Nc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.Mi&&e&&(c=Math.max(c,a.policy.Mi));return K6a(a,c,b)};
  6180. K6a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.wj,a.policy.fv*c),Math.min(Math.min(a.policy.Na,31*c),Math.ceil(b*c))))||a.policy.wj};
  6181. M6a=function(a,b,c){c=L6a(a,b.j.info.sb,c.j.info.sb,0);var d=vR(a.Nc)+c/wR(a.Nc);return Math.max(d,d+a.policy.eD-c/b.j.info.sb)};
  6182. LY=function(a){return wR(a.Nc,!a.policy.qn,a.policy.ev)};
  6183. MY=function(a){return LY(a)/a.playbackRate};
  6184. N6a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.u(b&&0<d.length?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return Infinity>a?a/1E3:a};
  6185. NY=function(a,b,c,d,e){this.ya=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Zd;this.D=null;this.C=0};
  6186. O6a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Ln(d)||c&&c.Pa===d?(b.G=!a.Ln(d),b.qa=!a.Ln(d)):(b.G=!0,b.qa=!0)}};
  6187. Q6a=function(a,b,c,d,e){var f=a.policy.Gb?e:void 0;if(!b.j.fg()){if(!(f=0===c||!!b.C.length&&b.C[0]instanceof OY))a:{if(b.C.length&&(f=b.C[0],f instanceof PY&&f.qh&&f.ji)){f=!0;break a}f=!1}f||a.policy.C||QY(b);return c}var h=RY(b,c);if(!isNaN(h))return h;if(a.ya.kQ(1E3*c))return c;e.eF||(b.Pk(),a.ya.CG(!0));return d&&(a=yK(d.Je(),c),!isNaN(a))?(SY(b,a+P6a,f),c):SY(b,c,f)};
  6188. T6a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Za||g.ig(function(){TY(a)});
  6189. else{if(a.isSeeking()&&a.j){var e=R6a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.ig(function(){a.ya.ma("seekreason",{reason:"behindMinSq",tgt:e});S6a(a,e)});
  6190. return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.Ry||!a.B;0<=RY(a.videoTrack,a.j)&&0<=RY(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.ig(function(){if(a.B||!a.policy.Za)TY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.qa&&!a.audioTrack.qa,r=a.policy.Sy&&
  6191. RY(a.videoTrack,h)&&RY(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.ya.ma("iterativeSeeking",{status:"done",target:h,originalTime:h+a.ya.Kc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ya.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.ya.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
  6192. !1,a.audioTrack.G=!1,UY(a.ya,h+.1,{Hw:!0,wd:"chunkSelectorSynchronizeMedia",Lq:!0})))}}})}};
  6193. R6a=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Di(a.j);return(c.Ln(a.manifest.cf)||b.Pa===a.manifest.cf)&&d<a.manifest.cf?a.manifest.Dd():-1};
  6194. S6a=function(a,b,c){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,UY(a.ya,b+.1,{Hw:!0,wd:"chunkSelectorSynchronize",Lq:!0,seekSource:c}))};
  6195. TY=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&VY(a.videoTrack),c=!c&&VY(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=VY(c).info.Pa;if(a.policy.G){var d;b.K=(null==(d=VY(b))?void 0:d.info.Pa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));MQ(a.manifest)&&432E3<Math.abs(e-MQ(a.manifest))&&YSa(a.manifest);a.C&&(e=a.C,a.C=0);g.ig(function(){a.policy.G||S6a(a,e,102)});
  6196. a.ya.ma("initManifestlessSync",{st:e,ost:e+a.ya.Kc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&S6a(a,e,102)}}};
  6197. XY=function(a,b){var c=this;this.Eb=a;this.requestNumber=++U6a;this.j=this.now();this.qa=this.Z=NaN;this.Y=this.j;this.B=this.Ob=this.K=0;this.D=this.j;this.Sa=this.Ga=this.Va=this.Bc=this.qc=this.Ca=this.Na=this.C=0;this.N=void 0;this.bb=0;this.G=this.isActive=!1;this.Gb=this.rb=0;this.qd={Rpb:function(){return c.vp}};
  6198. this.Nc=b.Nc;this.snapshot=OTa(this.Nc);this.policy=this.Nc.Sa;this.Qq=!!b.Qq;this.Iu=b.Iu;b.QI&&(WY||(WY=SJa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.N=new Uint8Array(2048));var d;this.vp=null!=(d=b.vp)?d:!1;JTa(this.Nc)};
  6199. V6a=function(a){a.Va=Math.max(a.Va,a.K-a.qc);a.Ga=Math.max(a.Ga,a.Y-a.Bc);a.Ca=0};
  6200. YY=function(a,b,c){KTa(a.Nc,b);if(a.N){if(a.bb+20>a.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}W6a(a,Math.ceil(b)-Math.ceil(a.Y));W6a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}d=b-a.Y;var e=c-a.K;a.Ob=e;a.Sa=Math.max(a.Sa,e/(d+.01)*1E3);a.Y=b;a.K=c;a.Ca&&c>a.Ca&&V6a(a)};
  6201. W6a=function(a,b){for(;31<b;)a.N[a.bb++]=WY[(b&31)+32],b>>=5;a.N[a.bb++]=WY[b]};
  6202. X6a=function(a){return a.N?g.LN(a.N.subarray(0,a.bb)):""};
  6203. Y6a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
  6204. ZY=function(a,b){XY.call(this,a,b);this.zb=this.Kb=!1;this.Ea=this.ra=Infinity;this.La=NaN;this.Jb=!1;this.Za=NaN;this.Tb=0;this.Iz=b.Iz||1;this.OR=b.OR||this.Iz;this.al=b.al;this.Pa=b.Pa;this.eh=b.eh;Z6a(this);this.pS(this.j);this.Wa=(this.Za-this.j)/1E3};
  6205. $6a=function(a,b,c){a.Qq||(b=Math.max(b,.01),sR(a.Nc,b,c,b))};
  6206. a7a=function(a,b){return b?a.WJ()&&!a.policy.j?!0:2048<=b||a.policy.j&&a.G:!1};
  6207. b7a=function(a){return(a.D-a.j)/1E3};
  6208. Z6a=function(a){a.La=a.j+1E3*a.snapshot.delay;a.Jb=!1};
  6209. e7a=function(a,b){if(a.al&&void 0!==a.Pa&&void 0!==a.eh){var c=Math,d=c.min,e=a.ra;var f=a.al;var h=a.j;if(c7a(f,a.Pa))f=b;else{var l=0;f.ej&&(l=.2);f=h+1E3*(f.Hj+l)}a.ra=d.call(c,e,f);c=Math;d=c.min;e=a.Ea;f=a.al;h=a.j;l=d7a(f,a.Pa,a.eh);2!==l&&(b=l?b:h+1E3*f.Hj,f.ej&&(b+=1E3*f.Hj));a.Ea=d.call(c,e,b);a.ra<=a.j?Z6a(a):(a.La=a.ra,a.Jb=!0)}};
  6210. f7a=function(a,b){if(b+1<=a.totalLength){var c=GN(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=GN(a,b++);else if(2===c)c=GN(a,b++),a=GN(a,b++),a=(c&63)+64*a;else if(3===c){c=GN(a,b++);var d=GN(a,b++);a=GN(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=GN(a,b++);d=GN(a,b++);var e=GN(a,b++);a=GN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),NJa(a,c,4)?a=OJa(a).getUint32(c-a.C,!0):(d=GN(a,c+2)+256*GN(a,c+3),a=GN(a,c)+256*(GN(a,c+
  6211. 1)+256*d)),b+=5;return[a,b]};
  6212. $Y=function(a){this.Eb=a;this.j=new BN};
  6213. aZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.pB=this.NP=!1;this.Xf=null};
  6214. g7a=function(a){return g.as(a.info.ib,function(b){return 3===b.type})};
  6215. h7a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Eb=c;this.status=0;this.j=new BN;this.B=0;this.Ma=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.gB()};
  6216. this.xhr.onload=function(){return e.onDone()};
  6217. this.xhr.onerror=function(){return e.onError()};
  6218. this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.EC)();e.Eb.Pr(f,e.B)},function(){},d.body||null)};
  6219. i7a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
  6220. gVa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=bZ.us();d=new g.wN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;bZ.Wq("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
  6221. mVa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=bZ.us();d=new g.wN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;bZ.Wq("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
  6222. j7a=function(a,b){var c=this;this.j=a;this.Eb=b;this.loaded=this.status=0;this.error="";a=jQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new BN;this.MB().then(function(){c.Eb.po()},function(d){c.error=""+d||"unknown_err";
  6223. c.Eb.po()})};
  6224. l7a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Eb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.Ma()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Eb.Eu(),k7a(e));
  6225. else e.onDone();else e.onError(Error("null_response"))};
  6226. this.Z=function(f){var h=(0,g.EC)();e.Ma()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),k7a(e),e.Eb.Pr(h,e.B)))};
  6227. this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
  6228. this.j=new BN;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
  6229. k7a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Bra)};
  6230. m7a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Eb=b;this.B=this.status=0;this.Ma=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.gB(f)};
  6231. a=sO(function(f){d.onDone(f)});
  6232. this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",sO(function(f){d.xg(f)}),!1)};
  6233. cZ=function(a,b,c,d,e){if(vP(a.base))return new j7a(a,c);a=a.Le();return d?LOa()?new h7a(a,b,c,e):new l7a(a,b,c,e):new m7a(a,c,e)};
  6234. dZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Eb=a;this.policy=b;this.ge=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Bx=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.xv(this.eda,this.policy.uj,this)};
  6235. n7a=function(a){a.resource.Z=(0,g.EC)();a=eZ(a);a.B=(0,g.EC)();a.started+=1};
  6236. o7a=function(a,b,c){a.timing.XQ((0,g.EC)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;lRa(eZ(a));if(null!=(b=a.Bx)&&(a=a.ge.base,!((0,g.EC)()<b.K+3E5||vP(a))&&(c=uP(a))&&W3a(c)&&b.B===DX(c))){var d;yQa(a)&&(d=uP(wP(a)));g.XB("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.EC)();T3a(b,{primary:c,secondary:d})}};
  6237. fZ=function(a){if("ump.spsrejectfailure"===a.lastError)a.timing.G||sRa(a.resource,!1,a.ge,a.policy,a.C);else{if("net.timeout"===a.lastError)a.timing.AK((0,g.EC)());else{var b=a.timing;YY(b,(0,g.EC)(),b.K)}if("net.nocontent"===a.lastError)++a.resource.K;else{if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!vP(a.ge.base)){var c=eZ(a);c.timedOut+=1}else c=eZ(a),c.j+=1;a.timing.G||sRa(a.resource,b,a.ge,a.policy,a.C)}}a.Eb.Gc(5)};
  6238. gZ=function(a,b,c,d,e){if(400<=b)return a.lastError="net.badstatus",!0;if(!(c||void 0!==d&&d)){a.lastError=204===b?"net.nocontent":"net.connect";if(void 0===e?0:e)a.lastError="ump.spsrejectfailure";return!0}return!1};
  6239. eZ=function(a){return fQ(a.C,uP(a.ge.base))};
  6240. p7a=function(a){var b=a.timing.Eq();b.shost=uP(a.ge.base);return b};
  6241. q7a=function(a){var b="";if(!a)return b;a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=c.videoCodec+"_"+c.maxWidth+"_"+c.maxHeight+"_"+c.maxFramerate+"_"+c.is10BitSupported+"_"+c.maxBitrateBps+";";return b};
  6242. r7a=function(a,b){return(null==a?void 0:a.maxWidth)>(null==b?void 0:b.maxWidth)||(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)};
  6243. s7a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Vb(d,function(l,m){return m.maxFramerate-l.maxFramerate});
  6244. for(var e=[d[0]],f=0,h=1;h<d.length;h++)r7a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
  6245. w7a=function(a,b){var c={},d=a.ea,e=a.Da,f=d.getVideoData(),h=YO(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.U9=h,c.lastManualDirection=NOa(),h=$qa()||0,0<h&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.EC)())-h,e.L("html5_use_date_now_for_local_storage")?0<h&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.Uda=YO();if(e.schedule.Ea){var n;h=e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!(null==(n=a.hf)||!n.qn):!1;c.X6=
  6246. wR(e.schedule,!h)}n=g.QR();var p=g.eK.medium,q=Math.floor(16*p/9);h=f.Yj()?p:q;p=f.Yj()?q:p;c.i7=Math.max(l.width*n,h);c.h7=Math.max(l.height*n,p);c.visibility=m;c.jea=YD();c.L7=1E3*g.LM(d.uc().provider);e.L("html5_sabr_support_quality_constraints")&&a.qz&&(c.qz=a.qz);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.hw=3,a.xG||(c.hw^=1),!a.AG||US(f))c.hw^=2}else{if(e.L("html5_onesie_media_capabilities")||
  6247. e.L("html5_enable_server_format_filter"))c.hw=3;e.L("html5_onesie_audio_only_playback")&&US(f)&&(c.hw=1)}l=f.nf?f.nf:VS(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");q=f.Yj();var r=GX.concat(k4a);p&&(r=GX.concat(l4a));e.L("html5_early_media_for_drm")&&(r=r.concat(m4a),e.L("allow_vp9_1080p_mq_enc")&&r.push(n4a));var t=[].concat(g.qa(o4a));l.Z&&(t[0]=["141"]);r=g.u(r);for(var v=r.next();!v.done;v=r.next()){v=g.u(v.value);for(var w=v.next();!w.done;w=
  6248. v.next()){w=w.value;var A=b4a(w,q&&p);if(A&&A.video){var D=g.EI(e.experiments,"html5_drm_byterate_soft_cap");if(!(0<D&&NDa(A)&&A.sb>D)&&!0===lP(l,A,m)){n.push({videoCodec:t7a[iK[w]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}p=g.u(t);for(q=p.next();!q.done;q=p.next())for(q=g.u(q.value),t=q.next();!t.done;t=q.next())if(t=t.value,(r=d4a(t))&&r.audio&&(e.L("html5_onesie_51_audio")||!MDa(r)&&!mK(r))&&!0===lP(l,r,m)){h.push({audioCodec:u7a[iK[t]],numChannels:r.audio.numChannels});
  6249. break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var F;if(null==(F=a.hf)?0:F.C&&F.Vm){h=e.G;b&&b("ssap",{clientCapabilities:nP(h)});F=[];m=[];n=new Map;if((p=h.j)&&0<p.size)for(p=g.u(p.values()),q=p.next();!q.done;q=p.next())t=q.value,t.Ch?m.push({audioCodec:u7a[t.qb],numChannels:t.numChannels,spatialCapabilityBitmask:v7a[t.qb]}):(r=t7a[t.qb],q={videoCodec:r,maxWidth:t.maxWidth||0,maxHeight:t.maxHeight||0,maxFramerate:t.maxFramerate||0,is10BitSupported:t.VE||!1},t.maxBitrateBps&&
  6250. (q.maxBitrateBps=t.maxBitrateBps,v=b4a(t.itag),w=void 0,(null==(w=v)?0:w.video)&&!0===lP(l,v,h)&&(v=8*v.sb,v>q.maxBitrateBps&&(q.maxBitrateBps=v))),t=r+"_"+t.VE,r=n.get(t)||[],r.push(q),n.set(t,r));F=s7a(F,n);if(b){h="";if(n)for(p=g.u(n.keys()),q=p.next();!q.done;q=p.next())q=q.value,h+=q+"-"+q7a(n.get(q))+";";n=h;h=q7a(F);p="";if(m)for(q=g.u(m),t=q.next();!t.done;t=q.next())t=t.value,p+=t.audioCodec+"_"+t.numChannels+"_"+t.maxBitrateBps+"_"+t.spatialCapabilityBitmask+";";b("ssap",{vfcm:n,vfcam:h,
  6251. afcam:p})}c.mediaCapabilities={videoFormatCapabilities:F,audioFormatCapabilities:m,hdrModeBitmask:3}}var H;if(null==(H=a.hf)?0:H.C){c.zo=l.zo;var L;c.jj=null==(L=a.hf)?void 0:L.jj}e.Sf&&(c.I7=e.Sf);c.aS=a.LD;if(e.L("html5_fix_time_since_last_seek_reporting")?void 0!==a.Rp:a.Rp)c.lea=(0,g.EC)()-a.Rp;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);hR||(c.w$=!0);b=1E3*vR(e.schedule);0<b&&(c.n7=b);var M;(null==(M=a.hf)?0:M.wy)&&a.mx&&Infinity>a.mx&&(c.mx=a.mx);d=d.getPlaybackRate();
  6252. 1!==d&&(c.playbackRate=d);var R;(null==(R=a.hf)?0:R.Jb)&&a.kq&&(c.Sv=a.Sv,c.gy=a.gy,c.kq=a.kq);f.isProximaLatencyEligible&&(e.L("html5_sabr_enable_proxima_user_preference")&&1===MOa()&&(c.W9=1),e.L("html5_sabr_force_proxima")&&(c.V9=1),f=g.EI(e.experiments,"html5_sabr_force_min_bandwidth_estimate_bytes_per_sec"),0<f?c.TA=f:e.L("html5_sabr_enable_min_bandwidth_estimate")&&a.TA&&(c.TA=a.TA),f=g.EI(e.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),0<f?c.LA=f:e.L("html5_sabr_enable_max_network_interruption_duration")&&
  6253. a.LA&&(c.LA=a.LA));return c};
  6254. hZ=function(a,b,c,d,e,f){var h={};b&&(h.yca={rB:b});if(!a)return h;h.playbackCookie=null==c?void 0:c.playbackCookie;e&&(h.gS=e);h.iM=[];h.EL=[];if(g.sT(a)&&0<a.sabrContextUpdates.size)for(b=g.u(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())x7a(h,c.value,d);NS(a)&&!g.sT(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&x7a(h,f,d);a.Wy&&(h.Nda=a.Wy);d=a.U().j;h.clientInfo={clientName:y7a[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel=
  6255. d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.Oo&&(h.Oo=a.Oo);return h};
  6256. x7a=function(a,b,c){var d=b.type||0;(null==c?0:c.has(d))?a.EL.push(b):a.iM.push(d)};
  6257. PY=function(a,b,c,d,e,f){var h=void 0===f?{}:f,l=void 0===h.dG?[]:h.dG,m=void 0===h.cH?!1:h.cH,n=void 0===h.Rv?0:h.Rv,p=void 0===h.poToken?"":h.poToken,q=void 0===h.Bx?void 0:h.Bx,r=void 0===h.nG?"":h.nG,t=void 0===h.qh?0:h.qh,v=void 0===h.ji?new Uint8Array(0):h.ji,w=void 0===h.UL?!1:h.UL;f=void 0===h.Wp?0:h.Wp;h=void 0===h.rB?void 0:h.rB;aZ.call(this,b,e);var A=this;this.policy=a;this.logger=new g.RQ("dash/request");this.rz=this.wg=0;this.b1=!1;this.Ar=this.Hp=null;this.GY=!1;this.ji=this.qh=null;
  6258. this.gM=this.t2=!1;this.kI=null;this.Wp=this.Ap=0;this.Wt=!1;this.qd={Gc:function(F){A.Gc(F)},
  6259. zpb:function(){return A.Xf},
  6260. Sqb:function(F){A.Xf=F},
  6261. Rqb:function(F){A.wg=F},
  6262. Qqb:function(F){A.Bd.lastError=F},
  6263. xP:function(){return A.xhr}};
  6264. this.timing=new ZY(this,c);this.cH=m;this.qh=t;this.ji=v;this.ge=g.IRa(this.info,this.policy,d);this.ge.set("rn",this.rr().toString());this.ge.set("rbuf",(1E3*n).toFixed().toString());this.cH&&this.ge.set("smb","1");this.policy.Py&&p&&this.ge.set("pot",p);r&&this.ge.set("bbs",r);this.policy.useUmp&&!vP(this.ge.base)&&(this.zl=new $Y(this),this.ge.set("ump","1"),this.ge.set("srfvp","1"));if(a=this.policy.Fs?this.policy.CF&&!isNaN(this.info.eh)&&this.info.eh>this.policy.IC?!1:!0:!1)b=null,this.policy.CC&&
  6265. this.policy.Sj?b=[1]:w&&(b=[]),null!=b&&(this.policy.cF&&b.push(2),this.ge.set("defsel",b.join(",")));this.Bd=new dZ(this,this.policy,this.ge,this.info.resource,this.timing,this.logger,d,q);this.dG=l||null;this.pB=z7a(this);n7a(this.Bd);d=void 0;if(this.policy.AC||this.zl||this.policy.Ea)d={method:"POST"},l=(0,g.iZ)([120,0]),q={},this.policy.BB&&h&&(h=hZ(void 0,h),q.dC=h),this.policy.tv&&this.ji&&(q.videoPlaybackUstreamerConfig=this.ji),this.policy.Ea&&(h=this.info.D)&&Object.assign(q,h),0<Object.keys(q).length?
  6266. d.body=g.mO(q,g.xPa):d.body=l;if(this.qh&&this.ji){this.ge.set("iwts","1");d={method:"POST"};h={wda:1E3*this.qh};var D;l=null==(D=this.info.D)?void 0:D.Im;D=g.mO({Ts:h,Im:l||void 0,videoPlaybackUstreamerConfig:this.ji},g.xPa);d.body=D}try{this.xhr=cZ(this.ge,this.policy.N,this.timing,a,d),this.Bd.B.start(),f&&(this.vu=new g.xv(this.PZ,f,this),this.vu.start(f+1E3*(this.timing.Nc.K.Zg()||0))),this.policy.rD&&Y6a(this.timing,this.Le()),this.logger.debug(function(){return"Sent, itag="+A.ge.get("itag")+
  6267. " seg="+A.info.ib[0].Pa+" range="+A.ge.get("range")+" time="+Math.round(A.info.ib[0].C)+"-"+Math.round(g.Bb(A.info.ib).D)+" rtp="+(A.timing.uJ()-Date.now()).toFixed(0)}),g.ig(function(){})}catch(F){A7a(this,F,!0)}};
  6268. z7a=function(a){if(!(tQ(a.info)&&a.info.vp()&&a.policy.Jd&&a.dG)||2<=a.info.resource.B||0<YO()||!UOa())return!1;var b=a.ge.get("aitags");if(!b)return!1;b=Xe(b).split(",");for(var c=[],d=g.u(a.dG),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.ge.set("altitags",g.We(c.join(",")));return!0};
  6269. A7a=function(a,b,c){c=void 0===c?!1:c;g.IE(b);a.Bd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.ig(function(){fZ(a.Bd)}):fZ(a.Bd)};
  6270. B7a=function(a){if(a.policy.Uy)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.mE();c=!c||c<=a.policy.fp;return(!a.xhr.eC()||!b||-1!==b.indexOf("text/plain"))&&c};
  6271. C7a=function(a,b){var c=JN(b);return fJ(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
  6272. D7a=function(a,b){a.timing.G=!0;if(a.policy.Ob){var c;null==(c=a.vu)||c.stop()}TX(a.Xf,b,!1)};
  6273. E7a=function(a,b){a.info=b;if(a.Xf){var c=a.Xf;b=b.ib;(b.length!==c.ib.length||b.length<c.wf.length)&&bTa("dash/request",260511119,""+b.length,""+c.ib.length,""+c.wf.length);c.ib=b;for(var d=b[0].range,e=new BN,f=0;f<c.wf.length;f++)CN(e,c.wf[f].j);for(f=0;f<c.wf.length;f++){c.wf[f].info=b[f];var h=b[f].range;c.wf[f].j=DN(e,h.start-d.start,h.length)}}a.pB=!1};
  6274. F7a=function(a){a.Ap&&(a.xhr.status=a.Ap,a.wg=a.Ap)};
  6275. jZ=function(a){this.B={};this.logger=new g.RQ(a)};
  6276. G7a=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
  6277. kZ=function(a,b){XY.call(this,a,b);this.Ea=!0;this.ra=!1;this.Wa=this.La=0;this.Za=NaN};
  6278. H7a=function(a){jZ.call(this,"sabr");this.Eb=a};
  6279. lZ=function(a,b,c,d,e,f,h,l){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Eb=e;this.QZ=l;this.logger=new g.RQ("sabr");this.zl=new $Y(this);this.rda=new H7a(this);this.Vf=new UX(this);this.state=1;this.U0=!1;this.rS=0;this.clipId="";this.IG=this.rl=-1;this.K0=0;this.Wt=this.sW=!1;this.policy.qC?this.Fd=new kZ(this,f):this.Fd=new ZY(this,f);e=this.policy;e=oRa(b.resource,I7a(b,e,d),e);b.Vt()&&e.set("probe","1");this.ge=e;this.ge.set("rn",""+this.rr());$4a(this.Vf,c,a);this.Bd=new dZ(this,
  6280. this.policy,this.ge,b.resource,this.Fd,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);n7a(this.Bd);var m;if(null==(m=this.policy)?0:m.pd)g.N(this,this.Vf),g.N(this,this.Bd);a=b.B;b={method:"POST",body:a};this.policy.Uo&&a&&(this.K0=a.length);try{this.xhr=cZ(this.ge,this.policy.N,this.Fd,hR,b),this.Bd.B.start()}catch(n){g.JE(n)}};
  6281. J7a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.qS)?0:f.items)for(a=g.u(a.qS.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.MQ||f.MQ<c||(c=f.MQ,d=f.tK,e=f.minReadaheadMs);return{T9:c,tK:d,NQ:e}};
  6282. K7a=function(a){this.j=a;this.Y=this.Na=this.N=this.Ea=this.D=this.G=this.K=this.Ga=this.Z=this.La=this.ra=this.Ca=this.qa=0;this.ticks={}};
  6283. mZ=function(a){a.qa||(a.qa=(0,g.EC)(),fL("mb_s",a.qa,a.j))};
  6284. L7a=function(a){a.Ca||(a.Ca=(0,g.EC)(),fL("ovfs_rp",a.Ca,a.j))};
  6285. M7a=function(a){a.ra||(a.ra=(0,g.EC)(),fL("oafs_rp",a.ra,a.j))};
  6286. N7a=function(a){a.G||(a.G=(0,g.EC)(),fL("vda",a.G,a.j),a.D&&nC(g.lC(),4))};
  6287. O7a=function(a){a.D||(a.D=(0,g.EC)(),fL("ada",a.D,a.j),a.G&&nC(g.lC(),4))};
  6288. P7a=function(a){a.Ea||(a.Ea=(0,g.EC)(),fL("vis_a",a.Ea,a.j))};
  6289. Q7a=function(a){a.N||(a.N=(0,g.EC)(),fL("ais_a",a.N,a.j))};
  6290. R7a=function(a){a.Na||(a.Na=(0,g.EC)(),fL("vrb_f",a.Na,a.j))};
  6291. S7a=function(a){a.Y||(a.Y=(0,g.EC)(),fL("arb_f",a.Y,a.j))};
  6292. T7a=function(a,b,c){var d=b instanceof lZ&&!a.C&&!a.B,e=!a.C&&(null==c?void 0:c.info.video);c=!a.B&&(null==c?void 0:c.info.audio);3===b.state?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):4===b.state?e?(a.C=b.Le(),nC(g.lC(),4)):c&&(a.B=b.Le()):b instanceof PY&&b.Qw()&&e&&nC(g.lC(),4)};
  6293. U7a=function(a){return!!a.B&&!!a.C};
  6294. V7a=function(a,b,c,d,e,f){g.aF.call(this);var h=this;this.ya=a;this.manifest=b;this.policy=c;this.qa=d;this.Ga=e;this.ra=this.j=null;this.G=this.K=NaN;this.Z=0;this.Y=NaN;this.N=null;this.Ca=new Map;this.C=this.D=NaN;this.qd={Dpb:function(){return h.B}};
  6295. this.B=f?1:0};
  6296. nZ=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.ra.push(b);a.publish("cuepointsadded",c)};
  6297. X7a=function(a,b,c){if(0!==a.B&&c&&b.ib[0].vg()){var d=b.ib[0].Pa,e=b.ib[0].C;b=b.Lp();W7a(a,d,e,b,c)}};
  6298. W7a=function(a,b,c,d,e){var f;b!==(null==(f=a.j)?void 0:f.Pa)||1===a.B||d||"predictStart"===a.j.Vg.event||a.ma("sdai",{undecevt:1,sq:b,evt:a.j.Vg.event});b>a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Vg;var h=e.Au(f);a.ma("sdai",{onqevt:f.event,sq:b,gab:h});if(h)"predictStart"!==f.event?d.NE?oZ(a,4,"cue"):(a.G=b,a.K=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.Y=Date.now(),oZ(a,2,"join"),e.DJ(d.Vg)):(a.policy.K?(a.C=Math.floor(c-f.j/1E3),a.ma("sdai",{onpred:c,est:a.C})):(a.D=b+
  6299. Math.max(Math.ceil(-f.j/5E3),1),a.ma("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),oZ(a,3,"predict"),e.DJ(d.Vg));else if(1===a.B){var l;(null==(l=a.N)?0:l.BO(c))?(Y7a(a.ya,c,c,b),oZ(a,4,"sk2had")):oZ(a,5,"nogab")}else"predictStart"===f.event&&(a.policy.K&&0<a.C?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.ma("sdai",{updateSt:b,old:a.C}),a.C=b):0<a.D&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.ma("sdai",{updateSt:b,old:a.D}),a.D=b)))}else 1===a.B&&oZ(a,5,"noad")};
  6300. Z7a=function(a,b,c){return(0>c||c===a.G)&&!isNaN(a.K)?a.K:b};
  6301. $7a=function(a,b){if(a.j){var c=a.j.Vg.Ah-(b.startTime+a.Z-a.j.Vg.startSecs);0>=c||(c=new GP(a.j.Vg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Vg.context,a.j.Vg.identifier,"stop",a.j.Vg.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Pa}),nZ(a,c,b.Pa))}};
  6302. oZ=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
  6303. pZ=function(a,b,c,d){(void 0===d?0:d)?oZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&oZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
  6304. qZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
  6305. rZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
  6306. sZ=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.ma=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
  6307. tZ=function(a,b,c){if(void 0===c?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.EC)()+c;a.C.set(b.info.id,c)};
  6308. uZ=function(a){for(var b=g.u(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d<(0,g.EC)()&&a.C.delete(c)}return a.C};
  6309. a8a=function(a){return a.K&&0<uZ(a).size};
  6310. vZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
  6311. b8a=function(a,b){if(b){(a.policy.Il||a.policy.qv)&&a.ma("iaudio",{id:b});var c=g.Db(a.D.j,function(d){return d.id===b})}c||(c=g.Db(a.D.j,function(d){var e;
  6312. return!(null==(e=d.lc)||!e.isDefault)}));
  6313. return c};
  6314. c8a=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.ya=a;this.Ca=b;this.policy=c;this.manifest=d;this.K=e;this.gb=f;this.logger=new g.RQ("dash/abr");this.j=DS;this.C=this.N=null;this.Y=-1;this.Na=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.La={};this.Za=new pR(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Ga=0;this.bb=!1;this.Ea=new Set;this.Sa=!1;this.qd={W0:function(){wZ(h)}};
  6315. this.G=new sZ(this.policy,e,function(l,m){h.ya.ma(l,m)})};
  6316. h8a=function(a,b,c){xZ(a,b);d8a(a,c);a.N=a.B;e8a(a);f8a(a);a.C=a.nextVideo;a.N=a.B;return g8a(a)};
  6317. k8a=function(a,b){if(i8a(a,b))return null;if("m"===b.reason&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+hP(b)}),xZ(a,b),a.Z=a.D.length-1,wZ(a),yZ(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new qZ(a.B,a.C,b.reason);
  6318. "r"===b.reason&&(a.Y=-1);xZ(a,b);yZ(a);if("r"===b.reason&&a.nextVideo===a.C)return new qZ(a.B,a.nextVideo,b.reason);j8a(a);return null};
  6319. l8a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new qZ(a.N,a.C,c?"t":"m")};
  6320. m8a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,g8a(a)}else a.Wa=a.N!==b,a.N=b;return null};
  6321. n8a=function(a,b){if(b.j.info.video&&b.Ue){var c=(b.Rb+b.B)/b.duration,d=b.j.info.sb;c&&d&&(a.Za.Oi(1,c/d),a.policy.j&&1.5<c/d&&a.ya.ma("overshoot",{sq:b.Pa,br:c,max:d}))}};
  6322. zZ=function(a,b,c){tZ(a.G,b,void 0===c?!1:c);a.Y=-1;xZ(a,a.j)};
  6323. AZ=function(a,b){return new qZ(a.N,a.C,b||a.j.reason)};
  6324. j8a=function(a){if(a.C&&a.nextVideo&&BZ(a,a.C.info)<BZ(a,a.nextVideo.info)){var b=a.j.reason;a.qa=a.qa||"r"===b||"u"===b||"v"===b}};
  6325. g8a=function(a){a.Na?a.Na=!1:a.Y=(0,g.EC)();a.qa=!1;a.Sa=!1;return new qZ(a.N,a.C,a.j.reason)};
  6326. o8a=function(a,b){var c={};b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&lK(f)&&f.video.j>a.policy.jj,l=e<=a.policy.jj?lK(d):kK(d);if(!f||h||l)c[e]=d}return c};
  6327. xZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.EC)();c=g.Pt(c,function(r){if(r.sb>this.policy.sb)return!1;var t=this.manifest.j[r.id];return uZ(this.G).get(r.id)>d?!1:4<t.resource.B||4<t.K?(this.logger.debug(function(){return"Remove "+tK(r)+"; 4 load failures"}),!1):this.Ea.has(+r.itag)?!1:!0},a);
  6328. a8a(a.G)&&(c=g.Pt(c,function(r){return 854>=r.video.width&&480>=r.video.height}))}c.length||(c=a.K.videoInfos);
  6329. var e=g.Pt(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j});
  6330. f?e=[f]:vZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.yH&&KY&&g.zC&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
  6331. if(0<e.length)if(EK()){var h=o8a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.qb===h[r.video.j].qb})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
  6332. if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n});
  6333. var p=o8a(a,b)[n].qb;e=e.filter(function(r){return!!r&&!!r.video&&r.qb===p})}}e.length||(e=[c[0]]);
  6334. e.sort(function(r,t){return BZ(a,r)-BZ(a,t)});
  6335. c={};for(b=1;b<e.length;c={KN:void 0,rN:void 0},b++)c.rN=e[b-1],c.KN=e[b],c.rN.video.width>c.KN.video.width?(g.Gb(e,b),b--):BZ(a,c.rN)*a.policy.Z>BZ(a,c.KN)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.bb=!!a.C&&!!a.C.info&&a.C.info.qb!==q.qb;a.logger.debug(function(){return"Constraint: "+hP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+tK(q)});
  6336. a.D=e;a.Va.clear();c=!1;for(b=0;b<e.length;b++)c?a.Va.add(e[b].itag):1080<=e[b].video.j&&(c=!0);QZa(a.policy,q,a.manifest.Zb)};
  6337. d8a=function(a,b){if(a.policy.Il){var c=b8a(a.G,b);b||c||(c=p8a(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Db(a.K.j,function(d){return!!d.lc&&d.lc.isDefault}))||(c=p8a(a)),c=c||a.K.j[0];
  6338. a.B=a.manifest.j[c.id];wZ(a)};
  6339. q8a=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=MY(a.Ca)/a.policy.Z;return BZ(a,b.info)+BZ(a,a.D[c])>d};
  6340. wZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.lc){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
  6341. a.B=a.manifest.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Tb?!0:a.j.isLocked()?240>a.j.j:q8a(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}};
  6342. yZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+tK(a.nextVideo.info)});
  6343. else{for(var b=Math.min(a.Z,a.D.length-1),c=MY(a.Ca),d=BZ(a,a.B.info),e=c/a.policy.Y-d;0<b&&!(BZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b<a.D.length-1&&!(BZ(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+tK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+hP(a.j)});
  6344. a.Z=b}};
  6345. e8a=function(a){var b=a.policy.Y,c=MY(a.Ca),d=c/b-BZ(a,a.B.info);b=g.Eb(a.D,function(e){return BZ(this,e)<d},a);
  6346. 0>b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+tK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
  6347. f8a=function(a){if(a.gb.length){var b=a.gb,c=function(d,e){if("f"===d.info.qb||b.includes(qK(d.info,a.manifest.Zb)))return d;for(var f={},h=0;h<e.length;f={OO:void 0,tT:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(qK(l.info,a.manifest.Zb))){var m=d.info.qb,n=l.info.qb;if(m===n||EK()){if(d.info.j!==l.info.j)return a.ya.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.OO=d.info.itag;f.tT=l.info.itag;a.ya.ma("ombifa",{f:f.OO,t:f.tT});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
  6348. p.OO+" to "+p.tT+" based on prefetched media."}}(f));
  6349. a.Na=!0;return l}a.ya.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.ya.ma("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
  6350. a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
  6351. BZ=function(a,b){if(!a.La[b.id]){var c=a.manifest.j[b.id].index.YX(a.Ga,15);c=b.Pv&&a.C&&a.C.index.isLoaded()?c||b.Pv:c||b.sb;a.La[b.id]=c}c=a.La[b.id];a.Va.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.Za.Zg()||0)};
  6352. r8a=function(a,b){a=dba(a.manifest.j,function(c){return c.info.itag===b});
  6353. if(!a)throw Error("Itag "+b+" from server not known.");return a};
  6354. s8a=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(ASa(a.manifest)){for(var c=Math.max(0,a.Z-2);c<a.Z&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
  6355. i8a=function(a,b){var c;return bQa(a.j,b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
  6356. p8a=function(a){var b=g.Db(a.K.j,function(d){return d.audio.j}),c=g.Db(a.K.j,function(d){return!d.audio.j});
  6357. if(!b)return null;if(!a.policy.pD)return c;a.policy.xA&&b&&(a.ya.ma("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(null==c?0:c.approxDurationMs)?c.approxDurationMs:""}),c&&1E3<Math.abs(c.approxDurationMs-b.approxDurationMs)&&(b=c));return b};
  6358. t8a=function(a){a=void 0===a?{}:a;var b=void 0===a.Sj?!1:a.Sj,c=void 0===a.Fs?!1:a.Fs;return(void 0===a.ej?0:a.ej)?c?3:2:b?-1:1};
  6359. u8a=function(a,b,c,d){var e=this;this.N=a;this.manifest=b;this.policy=c;this.logger=d;this.nB=[];this.md=[];this.C=-1;this.Sb=null;this.G=this.timestampOffset=0;this.Uc=null;this.j=100;this.qd={iP:function(f){return e.iP(f)}};
  6360. this.D=b.Zb?0:1;0<=this.policy.gp&&(this.j=this.policy.gp)};
  6361. y8a=function(a,b,c,d,e){if(!e.info.Ue){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:DQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:DQ(h,e))||(c=e);if(a.policy.Gb&&c.info.Rb)return a.logger&&a.logger({incompleteSegment:c.info.zd()}),d;h=a.iP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.J7;h=h.startTimeMs;!a.policy.xf&&a.policy.B&&a.Uc&&(f=rY(a.Uc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,Nm:e,Si:e,Dx:h,Cx:c};e=v8a(b,d.startTimeMs);(c=0<=e?b[e]:null)&&w8a(a,
  6362. c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;var l=b[f],m=d,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+h.j?h=!0:p+h.j<l.startTimeMs?h=!1:x8a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.Cx=m.durationMs,m.Si=l.Si,h=!0):(l.startTimeMs=p,l.Dx=p,l.Nm=m.Si+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
  6363. v8a=function(a,b){a=g.Sb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
  6364. return 0<=a?a:-a-2};
  6365. z8a=function(a,b){if(a.Sb){var c=a.Sb.Je();if(0!==c.length){if(a.policy.My&&a.B&&b){var d=a.B,e=d.info.C;!xK(c,e)&&0<d.info.K&&5E3>(0,g.EC)()-a.G&&(a.logger&&a.logger({dend:d.info.zd()}),c=RDa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.md.length;){var h=c.start(e),l=c.end(e),m=a.md[f].startTimeMs/1E3,n=(a.md[f].startTimeMs+a.md[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.Uc){var q=sY(a.Uc,1E3*m);q&&(p=q.bl/1E3)}q=Object.assign({},a.md[f]);var r=a.md[f].formatId;r=a.manifest.N.get(r.itag+";"+
  6366. (r.lmt||0)+";"+r.xtags);h=Math.max(m,h);var t=r.index.Di(h+a.j/1E3-p),v=r.index.getStartTime(t)+p,w=t+ +(Math.abs(v-h)>a.j/1E3),A=w+a.D;w=1E3*(r.index.getStartTime(w)+p);if(a.policy.Fk){var D=Math.abs(h-v)>a.j/1E3,F=r.index.qE(t)+p;m=v>=m&&F<=n;D&&m&&d.push({formatId:q.formatId,startTimeMs:1E3*v,durationMs:w-1E3*v,Nm:t,Si:t,Dx:1E3*v,Cx:w-1E3*v,bL:{Og:1E3*h,Gz:w-1E3*h,zs:1E3}})}a.policy.Fk||!a.policy.ov||f!==a.C||b?(q.Nm=A,q.startTimeMs=w):(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:1E3*v}),
  6367. q.Nm=t+a.D,q.startTimeMs=1E3*v);q.Dx=q.startTimeMs;m=void 0;h=(null==(m=a.B)?void 0:m.info.duration)||11;f===a.C&&l<n&&n-l<=1.01*h&&(l=n);m=Math.min(n,l);h=r.index.Di(m-a.j/1E3-p);t=a.policy;(t.B||t.Da.L("html5_sabr_include_tail_media_chunk"))&&r.index.Ln(h+1)&&r.index.qE(h+1)+p<=m&&(h+=1);t=r.index.qE(h)+p;h-=+(Math.abs(t-m)>a.j/1E3);m=h+a.D;p=1E3*(r.index.qE(h)+p);q.Si=m;q.durationMs=p-q.startTimeMs;q.Cx=q.durationMs;q.Nm<=q.Si&&d.push(q)}n<l?f+=1:e+=1}a.md=d}}};
  6368. A8a=function(a){var b=[],c=[].concat(g.qa(a.nB));a.md.forEach(function(h){b.push(Object.assign({},h))});
  6369. for(var d=a.C,e=g.u(a.N.eY()),f=e.next();!f.done;f=e.next())d=y8a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset,h.Dx&&(h.Dx+=1E3*a.timestampOffset))});
  6370. return{md:b,nB:c}};
  6371. w8a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>a.j)return!1;if(x8a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Cx=b.durationMs,b.Si=Math.max(b.Si,c.Si),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.Nm,h=b.Si;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Nm=c.Nm;b.Cx=c.durationMs;b.Si=c.Si;c.formatId=a;c.startTimeMs=e;c.Dx=e;c.durationMs=d-e;c.Cx=c.durationMs;
  6372. c.Nm=f;c.Si=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Cx=b.durationMs);return!1};
  6373. x8a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Zb||b.lmt===c.lmt};
  6374. B8a=function(a,b,c){if(a.logger&&a.policy.To){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;if(null==(h=f.bL)?0:h.Og){var l=h=void 0,m=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_psst.")+((null==(l=f.bL)?void 0:l.Og)+"_psd.")+(null==(m=f.bL)?void 0:m.Gz))}h=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Nm)+("_en."+f.Si))}a.logger({p:""+c,br:d.join(";")})}};
  6375. C8a=function(a){a.md=[];a.nB=[];a.C=-1;a.B=void 0};
  6376. D8a=function(a,b){if(a.Sb){var c=a.Sb.Je();if(b=yK(c,b))a.K=b}};
  6377. F8a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ga=c;this.D=this.B=0;this.If=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new NK;this.ra=this.Ca=!1;this.qd={rpb:function(){return d.C},
  6378. Oob:function(){return d.chunkSize},
  6379. Job:function(){return d.N},
  6380. Iob:function(){return d.K}};
  6381. (b=E8a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.bA,this.C=0,this.N=g.VD(16),this.K=g.VD(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new i7a(this.N,this.K))};
  6382. E8a=function(a){if(a.policy.Sd&&a.policy.PA)for(var b=g.u(a.policy.Sd),c=b.next(),d={};!c.done;d={fO:void 0,uO:void 0},c=b.next())if(c=g.OA(c.value),d.fO=+c.clen,d.uO=+c.csz,0<d.fO&&0<d.uO&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.fO,a.csz=d.uO,a.ck=c.ck,a.civ=c.civ,a};
  6383. CZ=function(a){return!!a.If&&nQ(a.If)};
  6384. K8a=function(a,b){if(!CZ(a)&&!a.Ma()){if(!(a.Ca||(a.Ca=!0,0<a.C))){var c=G8a(a);c=kVa(a.policy.D,a.j.info,DZ(a),c,a.policy.Wa);H8a(a,c)}if(1===b.info.type){if(a.If){EZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=kQ(0,b.j.totalLength)}else if(2===b.info.type)a.If&&1===a.If.type||EZ(a,Error("Woffle: Index before init")),a.indexRange=kQ(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.If){EZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
  6385. return}if(3===a.If.type&&!qQ(a.If,b.info)&&(a.Y=[],b.info.Pa!==xRa(a.If)||0!==b.info.Rb))return;if(b.info.Ue){c=g.u(a.Y);for(var d=c.next();!d.done;d=c.next())I8a(a,d.value);a.Y=[]}else{a.Y.push(b);a.If=b.info;return}}else{EZ(a,Error("Woffle: Unexpected slice type"));return}a.If=b.info;I8a(a,b);J8a(a)}};
  6386. I8a=function(a,b){var c=0,d=EN(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Rb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={qM:void 0})if(e.qM=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.qM),a.G.set(f,a.B),a.B+=e.qM,c+=e.qM,a.B===a.G.length){if(b.info===a.If&&CZ(a)&&c===d.length)break;e=G8a(a);e=kVa(a.policy.D,a.j.info,DZ(a),e,a.policy.Wa,a.D,a.G,a.crypto);
  6387. a.qa.add(e);H8a(a,e);a.Ma()||(e=G8a(a),a.Ga(DZ(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
  6388. J8a=function(a){if(CZ(a))if(a.If&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=L8a(a),d=a.policy.D;Promise.all(a.qa).then(function(){var e=kVa(d,a.If.j.info,DZ(a,!0),c,a.policy.Wa,a.D,b,a.crypto);H8a(a,e,!0)})}else EZ(a,new FZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
  6389. else EZ(a,new FZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
  6390. G8a=function(a){return{downloadedEndTime:Math.round(a.If?a.If.D:0),maxKnownEndTime:Math.round(a.j.index.Ft()),averageByteRate:Math.round(a.j.info.Pv)}};
  6391. L8a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Ft()),averageByteRate:Math.round(a.j.info.Pv)}};
  6392. DZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.If||EZ(a,new FZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.D,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.N,b.civ=a.K);var c="local://localhost/videoplayback?"+MA(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.sb,lastModified:String(a.j.info.lastModified),initRange:null==
  6393. (d=a.initRange)?void 0:tRa(d),indexRange:null==(e=a.indexRange)?void 0:tRa(e),url:c};if(d=a.j.info.j)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
  6394. H8a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.qa.delete(b);(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
  6395. EZ=function(a,b){4!==g.sS(a.policy.D)&&(g.tS(a.policy.D,4),g.JE(b),a.Z.reject(new FZ(b.message)))};
  6396. FZ=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
  6397. M8a=function(a){a=g.RP(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.$r(a,function(d){return IQa(d)})};
  6398. N8a=function(a){var b=bs(a,function(e,f){return e+f.length},0);
  6399. b=new Uint8Array(b);var c=0;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
  6400. O8a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.Zy=f};
  6401. GZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Me=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Me=!0};
  6402. Q8a=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=P8a(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(null!=n)for(b=Ji(Qj(n,7)),null==b||a.Me||(a.cryptoPeriodIndex=b),b=Ji(Qj(n,10)),null!=b&&0<b&&!a.Me&&(a.j=b),n=bk(n,
  6403. 2,Nj(n.oa)&34?nea:oea,2),n=g.u(n),b=n.next();!b.done;b=n.next())a.C.push(g.Kg(dh(b.value),4))};
  6404. R8a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Kg(a.initData):""+a.cryptoPeriodIndex};
  6405. HZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.hG?void 0:d.hG;d=void 0===d.NJ?!1:d.NJ;this.videoId=a;this.status=b;this.videoDuration=c;this.hG=e;this.NJ=d};
  6406. S8a=function(a,b,c,d,e){this.videoId=a;this.NO=b;this.B=c;this.bytesDownloaded=d;this.j=e};
  6407. IZ=function(a){this.j=a;this.offset=0};
  6408. T8a=function(a){if(a.offset>=a.j.totalLength)throw Error();return GN(a.j,a.offset++)};
  6409. U8a=function(a,b){b=void 0===b?!1:b;var c=T8a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=T8a(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+T8a(a),d*=128;return b?c:c-d};
  6410. V8a=function(a){try{var b=U8a(a,!0),c=U8a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
  6411. W8a=function(a){for(var b=new IZ(a),c=-1,d=0,e=0;!d||!e;){var f=V8a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.mm()}else if(186===h){if(2!==f)return;e=b.mm()}374648427===h?c=b.mm()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=FN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new BN([b]);CN(d,a);return d};
  6412. Y8a=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.RQ("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ea=NaN;this.qa=0;this.C=NaN;this.Z=this.Na=0;this.Wa=-1;this.La=this.G=this.D=this.Ga=null;this.Za=this.Va=NaN;this.N=this.ra=this.bb=this.gb=null;this.rb=!1;this.Sa=this.timestampOffset=0;this.qd={eY:function(){return d.B}};
  6413. if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Wa&&a.ma("atv",{ap:this.policy.Wa});this.N=new F8a(this.policy,e,function(h,l,m){JZ(a,new HZ(d.policy.D,2,{hG:new S8a(f,h,e.info,l,m)}))});
  6414. this.N.Z.promise.then(function(h){d.N=null;1===h?JZ(a,new HZ(d.policy.D,h)):d.ya.ma("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
  6415. h instanceof FZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.ma("offlinenwerr",{em:l}),X8a(d),JZ(a,new HZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.ma("dldbwerr",{em:l}),X8a(d),JZ(a,new HZ(d.policy.D,4,{NJ:!0})))})}};
  6416. Z8a=function(a){return a.B.length?a.B[0]:null};
  6417. f9a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Rb+a.G.B;if(0<c.info.Rb)if(c.info.Pa===a.G.Pa&&c.info.Rb<e){if(c.info.Rb+c.info.B<=e)return;c=YRa(c,e-c.info.Rb)[1]}else if(0<=c.info.Pa&&0<=a.G.Pa&&!qQ(a.G,c.info))throw new g.eC("improper_continuation",a.G.zd(),c.info.zd());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:qQ(e,f)||(1E-6>=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:wRa(e,f)))||$8a(a,"d")}else if(0<c.info.Rb)throw new g.eC("continuation_of_null",c.info.zd());a.G=c.info;
  6418. a.K=c.info.j;if(0===c.info.Rb){if(a.j)if(!a.ya.isOffline()||a.policy.tj)a.ya.ma("slice_not_fully_processed",{buffered:a.j.info.zd(),push:c.info.zd()});else throw new g.eC("slice_not_fully_processed",a.j.info.zd(),c.info.zd());KZ(a);a.Na=d}else{if(a.Na&&d&&a.Na!==d)throw a=new g.eC("lmt_mismatch",c.info.Pa,a.Na,d),a.level="WARNING",a;!c.info.j.zm()&&a.D&&(d=c.info,e=a.D.rl,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=DQ(a.j,c);if(!d)throw new g.eC("failed_to_merge",a.j.info.zd(),c.info.zd());a.j=d}else a.j=
  6419. c;a:{c=g.nK(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.Ue)break a;6===a.j.info.type?a9a(a,b,a.j):b9a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Ca&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=QJa(h,l),n=QJa(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new IZ(h);for(m=l=!1;;){n=h.mm();var p=V8a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.mm()+p,m=!0);else{if(l&&(160===
  6420. q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.mm()+p);if(160===q){0>f&&(e=f=h.mm()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=c9a(a,a.Ca),d.G&&d9a(a,d),a9a(a,b,d),e9a(a,d),a.Ca=0):a.Y&&(d=c9a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.totalLength,e9a(a,d))}}a.j&&a.j.info.Ue&&(e9a(a,a.j),a.j=null)};
  6421. b9a=function(a,b){!b.info.j.zm()&&0===b.info.Rb&&(g.nK(b.info.j.info)||b.info.j.info.Me())&&eSa(b);if(1===b.info.type)try{d9a(a,b),g9a(a,b)}catch(e){g.IE(e);var c=rQ(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.DP(b);a.N&&K8a(a.N,b);if(c.fg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=pK(c.info,a.Zb);if(b){var d=BSa(a,c);if(a.La[d])break a;a.La[d]=b}a.Ea.push(c)}};
  6422. X8a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
  6423. h9a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0);
  6424. a.j&&(b+=a.j.j.totalLength);return b};
  6425. i9a=function(a){if(a.ra&&!a.policy.Gp){var b=a.ya;b.manifest.isManifestless&&OQ(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.gb;a.C=a.G?a.C-a.qa:NaN;KZ(a)};
  6426. c9a=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=YRa(c,b);a.j=c[1];return c[0]};
  6427. d9a=function(a,b){var c=CQ(b);if(LDa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new SP(c);UP(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;kK(d)&&!LDa(d)&&(d=CQ(b),(new SP(d)).Qn(),YP([408125543,374648427,174,224],21936,d));b.info.j.info.vg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.nK(d.info)?d.B=TQa(c):d.info.Me()&&(d.B=cRa(c))));b.info.j.info.Me()&&
  6428. b.info.vg()&&(c=CQ(b),(new SP(c)).Qn(),YP([408125543,374648427,174,224],30320,c)&&YP([408125543,374648427,174,224],21432,c));if(a.policy.lG&&b.info.j.info.Me()){c=CQ(b);var e=new SP(c);if(UP(e,[408125543,374648427,174,29637])){d=XP(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Ch()&&g.nK(b.info.j.info)){d=CQ(b);c=g.KP(d,0,1701606260);f=g.KP(d,0,1836476516);if(c&&f){c.skip(2);var h=BP(c),l=DP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(EP(c)),e.push(EP(c)),
  6429. m.push(BP(c)),n.push(BP(c));else for(h=0;h<l;++h)d.push(CP(c)),e.push(CP(c)),m.push(BP(c)),n.push(BP(c));c=g.LP(f);c=new QQa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.nK(b.info.j.info))for(d=CQ(b),e=g.KP(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.KP(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.zm()||b.info.j.j||b.info.j.indexRange||gSa(b)};
  6430. a9a=function(a,b,c){if(c.info.j.zm()){if(a.rb&&j9a(c)&&(b=CQ(c),b=g.KP(b,0,1953658222))){b.skip(1);var d=AP(b)<<16|BP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=DP(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=DP(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Ga&&!!a.Ga.K.D)if(b=c.info.vg())b=cSa(c),h=a.Ga,ZX?(l=1/b,b=LZ(a,b)>=LZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&j9a(c)&&(b=a.Ga,ZX?(l=cSa(c),h=1/l,l=LZ(a,l),b=LZ(b)+h-l):b=b.getDuration()-
  6431. a.getDuration(),b=1+b/c.info.duration,SQa(CQ(c),b))}else{h=!1;a.D||(eSa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.rl,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(a.K.index.B=!f.C),f=c.info.j.info,d=CQ(c),g.nK(f)?YQa(d,1701671783):f.Me()&&YP([408125543],307544935,d)));a:if((f=EQ(c,a.policy.zb))&&dSa(c))l=k9a(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Bj?a.C+f:NaN;else{if(a.policy.uv){if(d=m=a.ya.Lq(ZRa(c),1),0<=a.C&&6!==c.info.type){if(a.policy.Bj&&isNaN(a.Va)){g.JE(new g.eC("Missing duration while processing previous chunk",
  6432. c.info.zd()));a.ya.isOffline()&&!a.policy.tj||l9a(a,c,d);$8a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.La?a.La.Pa:-1,t=a.Za,v=a.Va,w=a.policy.Xo&&n>a.policy.Xo,A=10<Math.abs(p),D=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){a.Sa+=1;var F=null==(e=a.D)?void 0:NQa(e);e={audio:""+ +a.Ch(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(w||A)};if(null==F?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync",
  6433. e);a.Wa=q}w||A||D||(d=a.C);e=k9a(a,c,m);f-=e;a.Z=n+e;a.policy.j&&(p&&!D||e)&&(n=null==(l=a.D)?void 0:NQa(l),a.ya.ma("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;l9a(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Wo&&a.Sa>=a.policy.Wo&&(a.Sa=0,a.ya.Go({resetForRewrites:"count"})),
  6434. a.policy.Yo&&a.Z>a.policy.Yo&&a.ya.Go({resetForRewrites:"threshold"}))}a.La=c.info;a.Va=bSa(c);0<=c.C&&(a.Za=c.C);if(h&&a.D){h=m9a(a,!0);GRa(c.info,h);a.j&&GRa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.rl)||GRa(l,h);(c.info.Ue||a.j&&a.j.info.Ue)&&6!==c.info.type||(a.ra=h,b=a.ya,b.manifest.isManifestless&&n9a(b,h,null,!!a.K.info.video),a.policy.je||o9a(a))}}g9a(a,c);a.timestampOffset&&aSa(c,a.timestampOffset)};
  6435. e9a=function(a,b){if(b.info.Ue){a.gb=b.info;if(a.D){var c=a.D,d=m9a(a,!1),e=null;if(a.D.NE()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=NQa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
  6436. m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new O8a(e,f,h,l,g.OQa(c),g.PQa(c))}a.ya.yR(a.K,d,e);a.ra||a.policy.je||o9a(a);a.ra=null}KZ(a)}a.N&&K8a(a.N,b);if(c=a.xo())if(c=DQ(c,b,a.policy.Gl)){a.B.pop();a.B.push(c);return}a.B.push(b)};
  6437. KZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ea=NaN;a.qa=0;a.ra=null};
  6438. $8a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.La?a.La.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.La=null;a.Za=NaN;a.Va=NaN;a.bb=null;a.ya.ma("mdstm",b)};
  6439. g9a=function(a,b){if(a.K.info.le){if(b.info.j.info.Me()){var c=new SP(CQ(b));if(UP(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=XP(c,!0);c=16!==d?null:bRa(c,d)}else c=null;d="webm"}else b.info.N=M8a(CQ(b)),c=N8a(b.info.N),d="cenc";c&&c.length&&(c=new GZ(c,d),a.policy.jD&&g.nK(b.info.j.info)&&(d=$Qa(CQ(b)))&&(c.B=d),c.Me=b.info.j.info.Me(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.zx(c))}};
  6440. o9a=function(a){var b=a.D,c=LQa(b);c&&(c.startSecs+=a.Ea,a.ya.xR(a.K,c,b.rl,b.NE()))};
  6441. m9a=function(a,b){var c,d=a.D;if(c=LQa(d))c.startSecs+=a.Ea;return new yP(d.rl,a.Ea,b?d.Gj:a.qa,d.ingestionTime,"sq/"+d.rl,void 0,void 0,b,c)};
  6442. l9a=function(a,b,c){if(!$Ra(b,c))return b=rQ(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ea)&&(a.Ea=c);return!0};
  6443. k9a=function(a,b,c){var d=0;if(b.info.j.info.Me()&&!dSa(b))return 0;if(a.Ga&&!a.Ch()){var e=0;c&&g.nK(b.info.j.info)?e=c-a.C:b.info.j.info.Me()&&(e=a.Z);var f=b.info.Pa;c=EQ(b,a.policy.zb);var h=a.Ga;var l=h.Wa;h=h.Z;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.nK(b.info.j.info))SQa(CQ(b),d);else if(b.info.j.info.Me()&&(f=e-h,!g.nK(b.info.j.info)&&(b.info.j.info.Me(),d=new SP(CQ(b)),l=b.G?d:new SP(new DataView(b.info.j.j.buffer)),EQ(b,!0)))){var n=
  6444. 1E3*f,p=cQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||dQ(d))if(WP(d,160))if(XP(d,!0),WP(d,155)){if(f=d.pos,m=XP(d,!0),d.pos=f,n=1E9*n/p,p=ZP(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=EQ(b,a.policy.zb);d=c-d}d&&b.info.j.info.Me()&&a.ya.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
  6445. j9a=function(a){return a.info.j.zm()&&a.info.Pa===a.info.j.index.Cd()};
  6446. LZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
  6447. p9a=function(a,b){0>b||(a.B.forEach(function(c){aSa(c,b)}),a.timestampOffset=b)};
  6448. OY=function(a,b,c,d,e){aZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Vf=d;this.lastError=null;this.j=new g.xv(function(){f.isComplete()||(f.lastError="net.timeout",f.Gc(5))},this.policy.iD);
  6449. this.xg=function(){f.Ma()||(f.Vf.Vc.has(f.formatId)?(f.isComplete()||f.j.start(),XX(f.Vf,f.formatId)&&f.ZA(2),f.Vf.Kg(f.formatId)&&(W4a(f.Vf,f.formatId)?f.Gc(4):(f.lastError="net.closed",f.Gc(5)))):(f.lastError="player.exception",f.Gc(5)))};
  6450. this.j.start();R4a(this.Vf,this.formatId,this.xg);g.ig(this.xg)};
  6451. q9a=function(a,b,c,d){var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.RQ("dash");this.C=[];this.ra=[];this.B=this.Sb=null;this.Ga=!1;this.Ea=this.La=0;this.K=-1;this.qa=!1;this.Ca=-1;this.Y=NaN;this.qd={jP:function(){return e.D},
  6452. qpb:function(){return e.C},
  6453. Mob:function(){return e.N}};
  6454. this.D=new Y8a(a,b,c);this.policy.C&&(this.N=new u8a(this.D,this.ya.getManifest(),this.policy,function(f){e.ya.ma("buftl",f)}));
  6455. this.sb=c.info.sb;this.Z=c.qA();this.isManifestless=c.qA();this.G=this.Z};
  6456. MZ=function(a,b,c){c=void 0===c?!1:c;b&&ZX&&p9a(a.D,b.vP());if(!c){var d;null==(d=a.N)||C8a(d)}a.Sb=b;null!=(b=a.N)&&(b.Sb=a.Sb)};
  6457. NZ=function(a){var b=a.Sb&&a.Sb.mJ();if(a.policy.Iv){if(null==(a=a.N))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b};
  6458. r9a=function(a){for(var b={},c=0;c<a.ra.length;c++)b["r"+c]=a.ra[c];return b};
  6459. s9a=function(a,b){isNaN(a.Y)||a.ya.ma("aswr",{sq:b.info.ib[0].Pa,id:b.info.ib[0].j.info.itag,xtag:b.info.ib[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.Bb(b.info.ib);a.ra.push(b.zd());4<a.ra.length&&a.ra.shift()};
  6460. t9a=function(a,b){if(b.il()){var c=b.Ek();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.j&&b instanceof OY&&a.ya.ma("omblss",{s:d.info.zd()}),OZ(a,b.info.ib,d,b.sP())}};
  6461. OZ=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.Y)||(a.ya.ma("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:u9a(a,c);break;case 4:var e=c.info.j,f=e.mV(c),h;(null==(h=a.B)?0:4===h.type)&&ERa(c.info,a.B)&&(a.B=e.IB(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())OZ(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ga||(e.Ga=(0,g.EC)(),fL("fvb_r",e.Ga,e.j))):(e=a.timing,e.K||(e.K=(0,g.EC)(),fL("fab_r",e.K,e.j)));
  6462. f9a(a.D,b,c,d);a.policy.C&&v9a(a);break;case 6:f9a(a.D,b,c,d),a.B=c.info}};
  6463. u9a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.La||(c.La=(0,g.EC)(),fL("vis_r",c.La,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.EC)(),fL("ais_r",c.Z,c.j));b9a(a.D,b);a=a.ya;a.videoTrack.j.fg()&&a.audioTrack.j.fg()&&a.policy.C&&!a.manifest.Zb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.ma("trBug",{af:""+pK(a.audioTrack.j.info,!1),vf:""+pK(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
  6464. VY=function(a){return Z8a(a.D)};
  6465. v9a=function(a){a.C.length?a.B=g.Bb(g.Bb(a.C).info.ib):a.D.B.length?a.B=a.D.xo().info:a.B=NZ(a)};
  6466. PZ=function(a,b){var c={md:[],uo:[]},d;if(null==(a=a.N))a=void 0;else{B8a(a,a.md,"og");z8a(a,b);B8a(a,a.md,"trim");var e=A8a(a);b=e.md;e=e.nB;for(var f=[],h=0;h<e.length;h++){var l=e[h];f.push({formatId:pK(l.info.j.info,a.manifest.Zb),Fj:l.info.Fj,sequenceNumber:l.info.Pa+a.D,cJ:{Og:1E3*((a.policy.Sa&&-1!==l.C?l.C:l.info.startTime)+a.timestampOffset),Gz:1E3*(a.policy.Sa&&-1!==l.D?l.D:l.info.duration),zs:1E3},xZ:l.info.B})}a={md:b,uo:f}}return null!=(d=a)?d:c};
  6467. w9a=function(a){var b;if(null==(b=a.N))var c=void 0;else a:{var d=a.ya.dg(),e;a=(null==(e=b.B)?void 0:e.info.D)||0;var f;if((null==(f=b.B)?0:f.info.clipId)&&d&&(b=rY(d,null==(c=b.B)?void 0:c.info.clipId))){c=a+b/1E3;break a}c=a}return c};
  6468. x9a=function(a){var b;return null==(b=a.N)?void 0:b.K};
  6469. RY=function(a,b,c){c=void 0===c?!1:c;if(a.Sb){var d=a.Sb.Je(),e=yK(d,b),f=NaN,h=NZ(a);h&&(f=yK(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&y9a(z9a(a),0))return b}a=A9a(a,b,c);return 0<=a?a:NaN};
  6470. SY=function(a,b,c){a.j.fg();var d=A9a(a,b);if(0<=d)return d;if(null!=(d=a.N)){var e=b;d.policy.Gb&&null!=c&&c.eF||(d.nB=[]);z8a(d,!0);d.C=v8a(d.md,1E3*e)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.If&&3===e.If.type)e=e.If.startTime;else if(0<e.C){var f=e.j.index;f=g.Sb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.B){var h,l;c=null==(h=a.ya.dg())?void 0:null==(l=sY(h,b))?void 0:l.clipId;a.B=a.j.qr(b,
  6471. void 0,c).ib[0]}else a.B=a.j.qr(b).ib[0];QZ(a)&&a.Sb&&a.Sb.abort();a.Ea=0;return a.B.startTime};
  6472. B9a=function(a){a.Z=!0;a.G=!0;a.K=-1;SY(a,Infinity)};
  6473. RZ=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())b+=JRa(d.value.info);return b+=h9a(a.D)};
  6474. TZ=function(a,b){b=void 0===b?!1:b;var c=a.ya.getCurrentTime(),d=a.D.xo(),e=(null==d?void 0:d.info.D)||0;a.policy.nj&&(null==d?0:d.info.j.qA())&&!d.info.Ue&&(e=d.info.C);if(a.policy.B&&d&&d.info.clipId){var f,h=((null==(f=a.ya.dg())?void 0:rY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Sb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=NZ(a))&&SZ(a,f))return f.D;f=a.Sb.Je(!0);return b&&d?(b=0,a.policy.C&&(b=AK(f,e+.02)),b+e-c):AK(f,c)};
  6475. C9a=function(a,b){if(a.C.length){if(a.C[0].info.ib[0].startTime<=b)return;QY(a)}for(var c=a.D,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();v9a(a);a.B&&b<a.B.startTime&&(a.Ea=0,a.j.fg()?a.B=a.j.qr(b,!0).ib[0]:a.B=null)};
  6476. D9a=function(a,b,c,d){QY(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=EQ(l,e.policy.zb),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.bb,0!==e.B.length||e.G||$8a(e,"r"));e.ya.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?SY(a,d):a.B=a.j.Ls(b-1,!1).ib[0]};
  6477. VZ=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)UZ(a,b);else{for(;c<a.C.length;)UZ(a,a.C.pop());var d=E9a(a);d&&d.j.Pw()&&Ys(b.info.ib,function(e){return FRa(e,d)})?(a.B=d,a.policy.j&&a.ya.ma("cer",{lsr:"lsp",
  6478. lsp:d.zd()})):(pQ(b.info.ib[0])?(a.B=b.Xf&&b.Xf.C?CRa(b.Xf.C):BRa(b.info.ib[0]),a.policy.j&&a.ya.ma("cer",{lsr:a.B.zd(),lsp:null==d?void 0:d.zd()})):(a.B=null,a.policy.j&&a.ya.ma("cer",{lsr:"null",lsp:null==d?void 0:d.zd()})),a.ya.isOffline()&&!a.policy.tj||UZ(a,b,!0))}};
  6479. SZ=function(a,b){if(!b)return!1;if(a.policy.B){var c;if((a=null==(c=a.ya.dg())?void 0:c.ea.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return nQ(b)};
  6480. QZ=function(a){var b;!(b="f"===a.j.info.qb)&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&CZ(b.N));if(b)return!0;b=NZ(a);if(!b)return!1;var c=SZ(a,b)&&b.Ue;return a.isManifestless&&0<a.Ca?c||b.Pa>=a.Ca:c};
  6481. WZ=function(a){var b;return QZ(a)||SZ(a,null==(b=a.D.xo())?void 0:b.info)};
  6482. z9a=function(a){var b=[],c=NZ(a);c&&b.push(c);b=g.Kb(b,a.D.Gn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.ib),f=e.next(),h={};!f.done;h={zG:void 0},f=e.next())h.zG=f.value,d.NP&&(b=g.Pt(b,function(l){return function(m){return!ERa(m,l.zG)}}(h))),(pQ(h.zG)||4===h.zG.type)&&b.push(h.zG)}a.B&&!vRa(a.B,g.Bb(b),a.B.j.zm())&&b.push(a.B);
  6483. return b};
  6484. y9a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!wRa(a[b-1],a[b]))return!1;return!0};
  6485. A9a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;a=z9a(a);a:{b+=.02;var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:y9a(a,c?b:0)?a[b].startTime:NaN};
  6486. XZ=function(a){return!(!a.B||a.B.j===a.j)};
  6487. F9a=function(a){return XZ(a)&&a.j.fg()&&a.B.j.info.sb<a.j.info.sb};
  6488. G9a=function(a,b,c){if(a.policy.nj)return TZ(a,!0)<c;var d=E9a(a);return d&&!SZ(a,d)?d.D>b&&d.D<b+c:!1};
  6489. E9a=function(a){var b=a.D.xo();return b?b.info:NZ(a)};
  6490. H9a=function(a){return(a=E9a(a))?a.Pa:-1};
  6491. QY=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())UZ(a,c.value);a.C=[];a.B=null};
  6492. I9a=function(a,b,c){b.NP&&((void 0===c?0:c)||!b.info.ib[0].j.Pw())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.ib[0].Pa}),i9a(a.D))};
  6493. UZ=function(a,b,c){I9a(a,b,void 0===c?!1:c);b.dispose()};
  6494. J9a=function(a){return!!a.B&&-1!==a.B.Pa&&a.B.Pa<a.j.index.Dn()};
  6495. K9a=function(a){var b=a.B;b&&-1===b.Pa&&(a=a.D.xo())&&pQ(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
  6496. L9a=function(a){return Ys(a.C,function(b){return b.pB})};
  6497. M9a=function(a,b){a.B&&(a.B.j=b)};
  6498. YZ=function(a){var b=VY(a),c=a.ya.dg();if(a=b&&c&&!a.policy.gz&&b.info.clipId){a:if(b=b.info.clipId,c.ZS&&c.mw&&c.mw!==b)c=!1;else{if(b=c.Qi.get(b))if(b=b.getId().split(","),1<b.length)for(a=0;a<b.length;a++){var d=a<b.length-1?b[a+1]:"";if(c.jk.has(b[a])){c=b[a]===c.pc&&!c.jk.has(d);break a}}c=!0}a=!c}return a?!0:!1};
  6499. N9a=function(a){var b=NZ(a),c,d=null==(c=a.Sb)?void 0:c.Je();c=NaN;b&&d&&QZ(a)&&(c=yK(d,(b.C+b.D)/2));return!isNaN(c)};
  6500. O9a=function(a){a=void 0===a?{}:a;var b=a.ej,c=a.Hj,d=a.Cd,e=a.ow;this.Sj=a.Sj;this.ej=b;this.Hj=c;this.Cd=d;this.ow=e};
  6501. c7a=function(a,b){if(0>b)return!0;var c=a.Cd();return b<c||b===c&&!a.Sj||b===c&&(a=a.ow())&&b===a.Pa?!0:!1};
  6502. d7a=function(a,b,c){if(!c7a(a,b))return 0;if(!a.ej||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Cd();return b<c||b===c&&(a=a.ow())&&b===a.Pa&&!a.pending?2:1};
  6503. ZZ=function(a,b,c){g.I.call(this);this.ya=a;this.policy=b;this.Nc=c;this.delay=new g.xv(this.C,this.policy.Pf,this);this.B=0;this.j=!1;g.N(this,this.delay)};
  6504. P9a=function(a,b){vP(b.j)||(a.resource=b,a.B=0,g.yv(a.delay))};
  6505. Q9a=function(a,b,c,d,e){var f=this;this.ya=a;this.policy=b;this.Nc=c;this.resource=d;this.Jj=e;this.done=!1;this.size=Math.ceil(Math.min(1E5,.1*wR(this.Nc)));this.timing=new ZY(this,{Nc:this.Nc,Iz:this.size,Qq:!0,Iu:function(){},
  6506. QI:this.policy.j});this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
  6507. a=oRa(this.resource,this.Jj,this.policy).base.clone();tP(a);"/videogoodput"!==a.path&&(a.path="/videogoodput",a.url="");this.location=new eQ(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=cZ(this.location,this.policy.N,this.timing,this.policy.Fs,{});setTimeout(this.onTimeout,1E4)};
  6508. R9a=function(a,b,c){var d=a.xw();if(a.isComplete()||!d||a.info.resource.Jj(b,c)||2>d)return 0;a=fQ(c,pRa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
  6509. S9a=function(a,b,c){if(!(b.uy&&a.isComplete()&&a.canRetry()&&a.info.resource.Jj(b,c)))return 0;a=fQ(c,pRa(a.info.resource,!1,b));return a.B+b.uy*mRa(a,!0)>(0,g.EC)()?0:1};
  6510. $Z=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.ya=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.UL=r;this.ji=t;this.qa=!1;this.nG="";this.al=null;this.eh=NaN;this.ra=!1;this.B=null;this.qh=this.Z=NaN;this.Wp=this.K=0;this.logger=new g.RQ("dash");this.qd={lQ:function(w,A){return v.lQ(w,A)}};
  6511. 0<this.policy.Qp&&(this.nG=g.VD(this.policy.Qp));this.policy.Pf&&(this.N=new ZZ(this.ya,this.policy,this.schedule),g.N(this,this.N))};
  6512. W9a=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.sD)||(f=uP(d.j)===uP(d.C));f?d=!1:(e=fQ(e,uP(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.EC)()<e.B+f?d=!1:(e.B=(0,g.EC)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.ya.ma("hostch",{},!0);if(T9a(a,b,c)){if(b.Z)a.manifest.isLive?(c=a.manifest.cf&&a.manifest.C?b.j.Ls(a.manifest.cf,!1):b.j.qr(Infinity),c.eh=a.eh):c=b.j.Ls(0,!1),a.Y?0===c.eh&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.fg()){e=d.D-a.ya.getCurrentTime();var h=!d.range||0===d.B&&
  6513. 0===d.Rb?0:d.range.length-(d.Rb+d.B);f=d.j;a.lQ(b,e)&&0===h&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+U9a,d.B&&(f+=d.duration),SY(b,f),d=b.B,f=d.j));f.zm()?(h=a.C,e=L6a(a.G,f.info.sb,c.j.info.sb,e,0<h.D.length&&0===h.Z&&a.ya.Np),c=d,f=XZ(b),d=c.j.Hy(c,e),(e=d.C)&&1<d.ib.length&&(f||d.resource.B||d.ib[0].j!==c.j?d=c.j.Hy(c,d.ib[0].B):(f=d.ib[d.ib.length-1],h=f.B/e,!f.Ue&&.4>h&&(d=c.j.Hy(c,e-f.B)))),c=d):(0>d.Pa&&(c=rQ(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.G,a.ya.ma("nosq",
  6514. c)),c=f.XC(d));if(a.policy.Ga)for(d=g.u(c.ib),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.zm()?(c=L6a(a.G,b.j.info.sb,c.j.info.sb,0),c=d.j.Hy(d,c)):c=d.j.XC(d);if(a.B){var l=c.ib[0].j.info.id;d=a.j;e=c.ib[0].Pa;d=0>e&&!isNaN(d.G)?d.G:e;e=Z7a(a.j,c.ib[0].C,d);var m=b===a.audioTrack?1:2;h=c.ib[0].j.info.qb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Vg.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.Vg.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n=
  6515. void 0}if(a.policy.Ea&&0!==a.j.B){var q=a.B.BJ(e,d,l,m,h,n);0>d&&2===m&&pZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.Im)?void 0:r.kt)||"";var t;r=(null==(t=q.Im)?void 0:t.B1)||-1;a.ya.ma("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.Oz(e,d,l,m,h,n),0>d&&2===m&&pZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.nH&&b.isRequestPending(d-1)){a.ya.ma("sdai",{wt_daistate_on_sg:d-1});return}a.ya.ma("sdai",r);t&&(c.j=new g.sP(t));a.policy.j&&(t=c.resource.rJ("id")||
  6516. "",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.ya.ma("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.ya.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Jl&&-1!==c.ib[0].Pa&&c.ib[0].Pa<a.manifest.cf&&(c=b.j.Ls(a.manifest.cf,!1));s9a(b,V9a(a,c));mZ(a.timing);var v;null==(v=a.N)||P9a(v,c.resource)}};
  6517. T9a=function(a,b,c){if(a.policy.yf&&a.policy.Gk)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Pa)||-1;3===e.B&&f+1>=e.D?(e.ma("sdai",{haltrq:f+1,est:e.D}),d=!1):d=2!==e.B;if(!d||!qRa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!xR(a.schedule)||a.ya.KI))return!1;if(a.policy.D&&5<=vS)return g.yv(a.ya.rF),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Pa||b.C.length>=a.policy.Vo||!a.policy.kD&&0<b.C.length&&!a.policy.N.ej)return!1;if(b.Z)return!a.manifest.isLive||
  6518. !isNaN(a.eh)}if(L9a(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.fg())return!1;SY(b,a.ya.getCurrentTime())}if(VY(b)&&(b.xo()!==VY(b)||a.ya.isSuspended))return!1;e=(d=a.policy.Qy)&&!b.C.length&&TZ(b,!0)<Math.min(d,TZ(c));d=b.C.length+c.C.length;f=!a.policy.Vy&&((b.C.length?b.C[0].Qw():!1)||(c.C.length?c.C[0].Qw():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Zo)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.fg()&&(b.B=g.Bb(d.j.IB(d)),d=b.B);
  6519. if(!nQ(d)&&!d.j.Ks(d))return!1;f=a.manifest.Zd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Cd();var h=c.j.index.Cd();f=Math.min(f,h);if(0<b.j.index.jJ()&&0<f&&d.Pa>=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||nQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!SZ(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.Ga;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.Za&&!b.G&&c.G?!1:pQ(d)&&d.D>X9a(a,b)?(X9a(a,b),!1):(a=b.Sb)&&a.isLocked()?!1:!0};
  6520. X9a=function(a,b){var c=a.j;c=c.j?c.j.Vg:null;if(a.policy.Ga&&c)return c.startSecs+c.Ah+15;b=a_(a.ya,b);0<a.policy.gb&&(c=((0,g.EC)()-a.ya.Rp)/1E3,b=Math.min(b,a.policy.gb+a.policy.Qf*c));c=a.ya.getCurrentTime()+b;return a.policy.oy&&(b=Y9a(a.ya)+a.policy.oy,b<c)?(a.ya.ma("mrl",{ori:c,mod:b},!0),a.policy.vC&&(a=a.ya,c=(0,g.EC)(),a.Rp=c),b):c};
  6521. Z9a=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.ib[0];if(b.range)var e=kQ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.resource.rJ("defrag")||"1"===b.resource.rJ("otf")){b=null;break a}e=kQ(0,4096)}e=new sQ([new mQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.Jj=c;e.j=b.j;b=e}b&&V9a(a,b)}};
  6522. V9a=function(a,b){a.ya.FJ(b);var c=JRa(b),d=$9a(a.ya);c={Nc:a.schedule,Iz:c,OR:J6a(a.G,c),vp:oQ(b.ib[0]),Qq:vP(b.resource.j),QI:a.policy.j,Iu:function(e,f){a.ya.rG(e,f)}};
  6523. a.al&&(c.Pa=b.ib[0].Pa,c.eh=b.eh,c.al=a.al);d={Rv:KRa(b,a.ya.getCurrentTime()),dG:a.policy.Jd&&tQ(b)&&b.ib[0].j.info.video?s8a(a.C):void 0,cH:a.policy.Ga,poToken:a.ya.sJ(),Bx:a.ya.Wz(),nG:a.nG,qh:isNaN(a.qh)?null:a.qh,ji:a.ji,UL:a.UL,Wp:a.Wp,rB:d};return new PY(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.ib[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.xw()||!(!a.ya.Qa||a.ya.isSuspended||3<TZ(l))){var m=R9a(e,a.policy,a.D);1===m&&(a.ra=!0);Z9a(a,e,m);if(e.isComplete()||
  6524. e.Ma()&&3>f){if(a.policy.j){var n=e.timing.Eq();n.rst=e.state;n.strm=e.xhr.eC();n.cncl=e.xhr&&e.Bd.D?1:0;a.ya.ma("rqs",n)}e.b1&&a.ya.ma("sbwe3",{},!0)}if(!a.Ma()&&2<=e.state){T7a(a.timing,e,h);var p=a.ya;a.qh&&e.kI&&p&&(a.qh=NaN,a.ya.SS(e.kI),a.ya.eO(),a.ya.ma("cabrUtcSeek",{mediaTimeSeconds:e.kI}));e.NB&&(0<e.Ap&&a.ya.ma("sError",{errorHttpResponseCode:e.Ap.toString()}),a.qh&&e.NB&&!e.NB.action&&(a.ya.mK(a.qh),a.qh=NaN,a.ya.ma("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.qh})));a.policy.Gk&&e.bj&&
  6525. a.ya.Em(e.bj);a.policy.Ob&&(a.Wp=e.Wp);if(3===e.state){VZ(l,e);tQ(e.info)&&b_(a,l,h,!0);if(a.B){var q=e.info.Oz();q&&a.B.Vk(e.info.ib[0].Pa,h.info.id,q,e.info.ib[0].startTime)}a.ya.lf()}else if(e.isComplete()&&5===e.info.ib[0].type){if(4!==e.state)e.ym()&&a.ya.handleError(e.Yg(),e.er());else{var r=(e.info.ib[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof PY&&r.xw()&&r.mH(!0)}e.dispose()}else{e.ym()||a$a(a,e);var t;(null==(t=e.CA)?0:t.itagDenylist)&&a.ya.IK(e.CA.itagDenylist);
  6526. if(4===e.state)b$a(a,e),a.j&&X7a(a.j,e.info,a.B);else if(a.policy.Fs&&e.il()&&!e.isComplete()&&!b$a(a,e)&&!e.ym())break a;e.ym()&&(c$a(a,e),isNaN(a.qh)||(a.ya.mK(a.qh),a.qh=NaN));a.ya.lf();var v=S9a(e,a.policy,a.D);Z9a(a,e,v)}}}}}catch(w){f=a.qa?1:0,a.qa=!0,e=XJ(f),f=YJ(w,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.Pk()}},d)};
  6527. a$a=function(a,b){if(b.pB&&2<=b.state&&3!==b.state){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
  6528. var d=r8a(a.C,c),e=b.info.C;e&&(e-=d.kP(),d.C=!0,b.info.ib[0].j.C=!1,E7a(b,d.ww(e)),c_(a.ya,a.videoTrack,d),M9a(a.videoTrack,d),a.ya.KR(d.info.video.quality),(e=b.sP())&&d.info.lastModified&&d.info.lastModified!==+e&&VZ(a.videoTrack,b))}else b.pB=!1}};
  6529. c$a=function(a,b){var c=b.info.ib[0].j,d=b.Yg();if(vP(c.resource.j)){var e=g.Lg(b.qf(),3);a.ya.ma("dldbrerr",{em:e||"none"})}e=b.info.ib[0].Pa;var f=Z7a(a.j,b.info.ib[0].C,e);"net.badstatus"===d&&(a.K+=1);if(b.canRetry()&&d$a(a.ya)){if(!(b.info.resource.B>=a.policy.xv&&a.B&&b.info.Lp()&&"net.badstatus"===d&&a.B.QD(f,e))){e=(c.info.video&&1<c.resource.B||410===b.wg||500===b.wg||503===b.wg)&&!(0<uZ(a.C.G).size)&&!vP(c.resource.j);f=b.er();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1");
  6530. a.ya.handleError(d,f);a.Ma()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),zZ(a.C,c)),VZ(h,b),a.ya.lf())}}else h=1,a.B&&b.info.Lp()&&"net.badstatus"===d&&a.B.QD(f,e)&&(h=0),a.manifest.isLive&&"net.badstatus"===b.Yg()&&a.K<=2*a.policy.Ki?(WSa(a.manifest),a.manifest.Zd||a.manifest.isPremiere?UY(a.ya,0,{wd:"badStatusWorkaround"}):a.manifest.C?UY(a.ya,a.manifest.Za,{wd:"badStatusWorkaround",
  6531. Lq:!0}):d_(a.ya)):a.ya.handleError(d,b.er(),h)};
  6532. b$a=function(a,b){if(a.policy.useUmp&&b.Ma())return!1;try{var c=b.info.ib[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.Z&&(b.Ma(),b.isComplete()||b.il(),d.Z=!1);b.VO()&&a.ya.uI.Oi(1,b.VO());var e=b.jJ(),f=b.VX();XSa(a.manifest,e,f)}if(b.info.vp()&&!HRa(b.info))for(var h=g.u(b.Ek()),l=h.next();!l.done;l=h.next())u9a(d,l.value);for(a.ya.getCurrentTime();d.C.length&&4===d.C[0].state;){var m=d.C.shift();t9a(d,m);d.La=m.QX()}d.C.length&&t9a(d,d.C[0]);var n=!!VY(d);
  6533. n&&b instanceof OY&&(c.info.Ch()?M7a(a.timing):L7a(a.timing));return n}catch(p){b=b.er();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.eC&&c.args)for(d=g.u(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.JE(c);if("WARNING"===c.level){a.ea.Go(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
  6534. e$a=function(a){var b=a.videoTrack.j.index;a.al=new O9a({Sj:a.policy.Sj,ej:a.policy.N.ej,Hj:b.Hj,Cd:function(){return b.Cd()},
  6535. ow:function(){return b.ow()}})};
  6536. b_=function(a,b,c,d){if(!(c.fg()||c.vA()||c.C||!qRa(c.resource,a.policy,a.D)||"f"===c.info.qb||a.policy.C)){if(d){d=a.G;var e=c.info;d=K6a(d,e.video?d.policy.Jv:d.policy.Fl,e.sb)}else d=0;d=c.ww(d);a=V9a(a,d);HRa(d)&&s9a(b,a);c.C=!0}};
  6537. e_=function(a,b,c,d,e,f,h){g.I.call(this);var l=this;this.ya=a;this.hf=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.Ca=h;this.B=DS;this.ra=!1;this.logger=new g.RQ("sabr");this.qa=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.D=this.Z=this.N.j;this.j=new sZ(b,f,function(m,n){l.ya.ma(m,n)});
  6538. f$a(this)};
  6539. g$a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(pK(d.value,a.manifest.Zb));return c};
  6540. k$a=function(a,b){a.logger.debug("setConstraint: "+hP(b));a.hf.B&&(a.qa="m"===b.reason||"l"===b.reason?!0:!1);"m"===b.reason?b.isLocked()&&h$a(a,b.j):i$a(a,b)?j$a(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
  6541. i$a=function(a,b){return a.hf.Um&&"b"===b.reason||a.hf.fE?!1:a.hf.Oy?!0:"l"===b.reason||"b"===b.reason||"o"===b.reason};
  6542. l$a=function(a,b){return b.isLocked()&&a.j.B||void 0===a.B?!1:bQa(b,a.B)};
  6543. m$a=function(a,b){var c,d=null==(c=a.C)?void 0:c.info.video.j;return a.ra?!0:a.C?b!==d?!0:!a.j.B||a.hf.Li&&a.j.j===a.C.info.itag?!1:!0:!1};
  6544. h$a=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Db(a.videoInfos,function(e){return e.id===c});
  6545. d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.ma("sabrpf",{pfid:""+c,
  6546. vfids:""+d.join(".")}),j$a(a,b,b),vZ(a.j,""))}else j$a(a,b,b)};
  6547. j$a=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Pt(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
  6548. f$a=function(a){var b=null;if(b=a.hf.qv?b8a(a.j,a.Ca):g.Db(a.Z,function(c){var d;return!(null==(d=c.lc)||!d.isDefault)}))a.D=[b]};
  6549. n$a=function(a,b){return a.map(function(c){return qK(c,b)})};
  6550. o$a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=uZ(a.j);b=g.Pt(a.videoInfos,function(d){return d.sb>a.hf.sb?!1:!c.has(d.id)});
  6551. a8a(a.j)&&(b=g.Pt(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
  6552. return b};
  6553. p$a=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.sT(e),h=w7a({Da:e.U(),ea:a.ea,LD:a.LD,hf:a.hf,Rp:a.Rp,mx:a.mx,Sv:a.Sv,gy:a.gy,kq:a.kq,isPrefetch:a.isPrefetch,xG:a.xG,AG:a.AG,qz:a.qz,sabrLicenseConstraint:e.sabrLicenseConstraint,TA:a.TA,LA:a.LA},c),l=hZ(e,a.rB,a.nextRequestPolicy,a.Xj,a.gS,a.fda),m=a.JG,n=a.KG;if(void 0===n&&void 0===m){var p;n=d.Zb;n=(m=null==(p=a.PN)?void 0:p.video)?[pK(m.info,n)]:[];var q;p=d.Zb;m=(m=null==(q=a.PN)?void 0:q.audio)?[pK(m.info,p)]:[]}if(e.ji)var r=
  6554. e.ji;e={Ts:h,uo:a.uo,JG:m,KG:n,videoPlaybackUstreamerConfig:r,dC:l};a.Im&&(e.Im=a.Im);if(f&&b){f=new Map;var t=g.u(d.Ea);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.La[BSa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.u(a.md);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:sY(q,l),q=r.clipId,r=r.bl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,md:[],Kw:n})),
  6555. 0!==r&&(h.startTimeMs=l-r),d.get(q).md.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:(null==(q=h.formatId)?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:wY(b)}));e.aH=[];d=g.u(d.entries());for(f=d.next();!f.done;f=d.next())f=g.u(f.value),f.next(),f=f.next().value,e.aH.push(f);if(a.md.length&&!e.aH.length){if(c){e="";a=g.u(a.md);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+((null==(f=d.formatId)?void 0:f.itag)||"")+"_"+((null==(t=d.formatId)?
  6556. void 0:t.lmt)||0)+"_"+((null==(h=d.formatId)?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:wY(b)})}return}a.fK&&(e.fK=a.fK);a.cK&&(e.cK=a.cK)}else e.md=a.md,e.Kw=d.Ea,f&&0<(null==(t=a.md)?void 0:t.length)&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
  6557. f_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Eb=c;this.B=null;this.qd={Qpb:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}};
  6558. q$a=function(a,b,c){if(a.Vt())return!0;a.data=b;a.j=p$a(b,c,function(d,e){var f;null==(f=a.Eb)||f.Dm(d,e)});
  6559. if(!a.j)return!1;a.B=g.mO(a.j,wPa);return!0};
  6560. I7a=function(a,b,c){void 0===a.Jj&&(a.Jj=a.resource.Jj(b,c));return a.Jj};
  6561. r$a=function(a){var b,c;return(null==(b=a.j)?void 0:null==(c=b.Ts)?void 0:c.aS)||0};
  6562. s$a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.md.length;e++){var f=a.data.md[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Nm)+("_en."+f.Si))}for(e=0;e<a.data.uo.length;e++){f=a.data.uo[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Fj||NaN)+"_lb."+f.xZ+"_tr.s_"+(null==(l=f.cJ)?void 0:l.Og)+"_d_"+
  6563. (null==(m=f.cJ)?void 0:m.Gz)+"_t_"+(null==(n=f.cJ)?void 0:n.zs))}b.ptime=r$a(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
  6564. g_=function(a,b){g.I.call(this);this.j=a;this.Id=b;this.iv=(0,g.iZ)(UD(16))};
  6565. t$a=function(a,b){var c;return g.G(function(d){(0,g.EC)();c=FTa(a.j);return d.return(c.encrypt(b,a.iv))})};
  6566. u$a=function(a,b){var c;return g.G(function(d){(0,g.EC)();var e=a.j;e.D||(e.D=new FJa(e.C));c=e.D;return d.return(IJa(c,b,a.iv))})};
  6567. v$a=function(a,b,c){var d;return g.G(function(e){(0,g.EC)();d=FTa(a.j);return e.return(d.decrypt(b,c))})};
  6568. w$a=function(a){if(a.B)return a.B;if(a.Id){var b=new nR(a.Id,a.j.j);g.N(a,b);a.B=b}else a.B=new mR(a.j.j);return a.B};
  6569. x$a=function(a){this.Fm=a;this.B=!1;this.j=[]};
  6570. i_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Ip,e=b.formatId,f=b.buffer;b=b.g8;if(f)b=void 0,null==(b=h_(a.Fm.hd,c))||a5a(b,d,e,f);else if(b)a.Fm.hd.Zp(c,d,e);else if(d=a.Fm,d.j[e].AY=!0,c=h_(d.hd,c),null==c?0:c.Vc.has(e))null==c||S4a(c,e)}};
  6571. g.A$a=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===j_.length){j_.length=288;j_.fill(8);for(a=144;280>a;a++)j_[a]=255>=a?9:7;y$a.length=32;y$a.fill(5);k_.length=286;k_.fill(0);for(a=261;285>a;a++)k_[a]=Math.floor((a-261)/4);l_[257]=3;for(a=258;285>a;a++){var b=l_[a-1];b+=1<<k_[a-1];l_[a]=b}l_[285]=258;for(a=0;30>a;a++)z$a[a]=3>=a?0:Math.floor((a-2)/2);for(a=m_[0]=1;30>a;a++)b=m_[a-1],b+=1<<z$a[a-1],m_[a]=b}a=100+7*this.data.length;31===this.data[0]&&
  6572. 139===this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(a)};
  6573. g.G$a=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!n_(b,1);switch(n_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=n_(b,5)+257;var f=n_(b,5)+1;for(var h=n_(b,4)+4,l=0;l<h;l++)d[B$a[l]]=n_(b,3);d=C$a(d);for(h=e+f;c.length<h;){l=D$a(b,d);switch(l){case 16:l=c[c.length-1];var m=n_(b,2)+3;break;case 17:l=0;m=n_(b,3)+3;break;case 18:l=0;m=n_(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,E$a(b,c,f));break;case 1:E$a(b,j_,y$a);break;case 0:F$a(b,
  6574. b.j&7);c=n_(b,16);e=n_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
  6575. E$a=function(a,b,c){b=C$a(b);c=C$a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,256<n){h=l_[n];h+=n_(a,k_[n]);m=D$a(a,c);l=m_[m];l+=n_(a,z$a[m]);if(H$a&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];
  6576. f+=h;h=a.register;l=a.j;m=a.B}else break}a.C=f};
  6577. D$a=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return F$a(a,c&15),c>>4;for(F$a(a,7);0>c;)c=b[n_(a,1)-c];return c>>4};
  6578. n_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
  6579. F$a=function(a,b){a.j-=b;a.register>>=b};
  6580. C$a=function(a){for(var b=[],c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
  6581. I$a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=DV.Co(b.Kp?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f);
  6582. h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(w){g.IE(w)}if(!("DecompressionStream"in window))return DV.isActive()?v.return(DV.Co("gzj",function(){return g.G$a(new g.A$a(a))})):v.return(g.G$a(new g.A$a(a)));
  6583. l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new BN([]);if(DV.isActive())return v.return(DV.Co("gzn",function(){var w,A,D;return g.G(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){w=F.B;A=w.value;if(D=w.done)return F.Ia(4);p.append(A);return F.Ia(1)}return F.return(EN(p))})}));
  6584. case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ia(4);break}p.append(r);v.Ia(2);break;case 4:return v.return(EN(p))}})};
  6585. J$a=function(a){jZ.call(this,"onesie");this.hd=a;this.j={};this.D=!0;this.C=null;this.queue=new x$a(this);this.G={}};
  6586. K$a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.AY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||i_(e)}}};
  6587. M$a=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.BR(b,a.D).then(function(f){var h=a.hd;h.Rd("oprr");h.playerResponse=f;h.HQ||(h.BG=!1);o_(h)},function(f){a.hd.pj(f)});
  6588. break;case 2:a.Rd("ormk");b=EN(b);var e;a.queue.decrypt(b,!L$a(a.hd),null==(e=a.hd.U())?void 0:e.Id);break;default:d=!0}a.hd.tm&&a.hd.ma("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
  6589. N$a=function(a){return new Promise(function(b){setTimeout(b,a)})};
  6590. O$a=function(a,b){var c=iR(b.W.experiments,"debug_bandaid_hostname");if(c)b=BX(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=oR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
  6591. P$a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.G(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(N$a(c)),g.z(f,Promise.race(d),2);e=O$a(a,b);return f.return(e)})};
  6592. Q$a=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");tN()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),c?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),hR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
  6593. R$a=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Fk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.aQ&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.oc()});g.FA("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.FA("EOM_VISITOR_DATA")}):(c=c.visitorData||g.FA("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=iR(b.experiments,
  6594. "debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=SJa(JSON.stringify(a));return{url:h,SP:f,postBody:a,Qca:e,aC:e}};
  6595. T$a=function(a,b,c,d,e,f){var h=g.mO(a,pPa,a.aC?void 0:c.Id),l={encryptedClientKey:b.j.encryptedClientKey,Z0:!0,uX:!0,DO:S$a(c,!!a.aC),M2:c.experiments.fb("html5_use_jsonformatter_to_parse_player_response")};if(a.aC)l.Aea=h;else{a=b.encrypt(h);var m;a=(null==(m=c.Id)?void 0:m.RQ(a))||a;m=l.wX=a;(0,g.EC)();m=EJa(new DJa(b.j.C),m,b.iv);l.LY=m;l.iv=b.iv}b=d.getVideoData();c=w7a({Da:c,ea:d,LD:1E3*b.startSeconds,xG:!0,AG:!0});return{bQ:l,Ts:c,onesieUstreamerConfig:e,Oo:f,dC:hZ(b)}};
  6596. U$a=function(a,b,c){var d,e,f;return g.G(function(h){if(1==h.j)return d=g.mO(b,pPa),g.z(h,t$a(c,d),2);if(3!=h.j)return e=h.B,g.z(h,u$a(c,e),3);f=h.B;return h.return({wX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,LY:f,Z0:!0,uX:!0,DO:S$a(a,!!b.aC),M2:a.experiments.fb("html5_use_jsonformatter_to_parse_player_response")})})};
  6597. V$a=function(a,b,c,d,e,f){var h,l,m;return g.G(function(n){if(1==n.j)return g.z(n,U$a(c,a,b),2);h=n.B;l=d.getVideoData();m=w7a({Da:c,ea:d,LD:1E3*l.startSeconds,xG:!0,AG:!0});return n.return({bQ:h,Ts:m,onesieUstreamerConfig:e,Oo:f,dC:hZ(l)})})};
  6598. S$a=function(a,b){a=wR(a.schedule,!0);b=b||!!tN()&&1572864<a;return"DecompressionStream"in window||!b};
  6599. q_=function(a,b){g.I.call(this);var c=this;this.ea=a;this.playerRequest=b;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.RQ("onesie");this.tm=this.W.zc();this.vO=this.W.Gk;this.WF=new g_(this.vO.j,this.W.Id);this.xhr=null;this.state=1;this.wq=new NK;this.FY=!1;this.playerResponse="";this.zl=new $Y(this);this.Fm=new J$a(this);this.rH=this.W.L("html5_onesie_check_timeout");this.ZN=new g.xv(this.c7,500,this);this.XF=new g.xv(this.HP,1E4,this);this.UK=new g.xv(function(){if(!c.isComplete()){var d=
  6600. p_(c);c.pj(new WJ("net.timeout",d))}},g.EI(this.W.experiments,"html5_onesie_request_timeout_ms"));
  6601. this.S_=new g.xv(this.p$,2E3,this);this.Fu="";this.UJ=this.cZ=!1;this.eA=this.ea.Wz();this.LR="";this.BG=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.HQ=this.oA=!1;this.dH=[];g.N(this.videoData,this);g.N(this,this.ZN);g.N(this,this.XF);g.N(this,this.S_);g.N(this,this.WF);a=jR();hR&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.Wf=new Map);this.KX=new Map;this.d_=new Map;this.L0=new Map};
  6602. h_=function(a,b){var c;return null==(c=a.Wf)?void 0:c.get(b)};
  6603. W$a=function(a,b,c){var d;return g.G(function(e){if(1==e.j)return a.Rd("oprd_s"),L$a(a)?g.z(e,v$a(a.WF,b,c),3):(d=a.WF.decrypt(b,c),e.Ia(2));2!=e.j&&(d=e.B);a.Rd("oprd_c");return e.return(d)})};
  6604. X$a=function(a){return a.L("html5_onesie_host_probing")||a.tm?hR:!1};
  6605. o_=function(a){if(!a.playerResponse)return!1;if(a.oA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&US(a.videoData);if(a.Wf&&a.BG){if(!a.Wf.has(a.Fu))return!1;var c=a.Wf.get(a.Fu),d;if(d=c){d=!1;for(var e=g.u(c.Vc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Vc.get(f.value))for(var h=g.u(f.wF),l=h.next();!l.done;l=h.next())0<l.value.Wr&&(f.Ch?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Rd("ofr");a.wq.resolve(a.playerResponse);if(!a.rH){var m;null==(m=a.UK)||m.start();a.XF.start()}return a.oA=
  6606. !0};
  6607. Z$a=function(a){if(a.Wf&&!a.L("html5_onesie_media_capabilities")){a.Rd("ogsf_s");var b=p4a(a.ea.getVideoData(),function(d,e){a.ma(d,e)}),c=Y$a(a.ea);
  6608. b.video=f4a(c,b.video);a.Rd("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
  6609. L$a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(null==b?0:b.aC)||g.TR(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!tN()};
  6610. p_=function(a){if(!a.Fd)return{};var b=a.Fd.Eq();b.d=X6a(a.Fd);b.shost=a.X0;b.ty="o";return b};
  6611. $$a=function(a,b){var c,d;(d=null==(a=null==(c=a.Wf)?void 0:c.get(b)))||(b=a.C?!1:a.C=!0,d=!b);return!d};
  6612. aab=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Nc=h;this.ra=l;this.D=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.La=this.Na=!1;this.Xj=new Set;this.C=this.Ea=this.Y=this.kq=0;this.K=null;this.qd={ypb:function(){return q.j},
  6613. Tob:function(){return q.G},
  6614. hob:function(){q.j.length=0},
  6615. hpb:function(){return q.Xj},
  6616. dpb:function(){return q.Y},
  6617. Oqb:function(r){q.Y=r},
  6618. Tqb:function(r){q.C=r}};
  6619. this.videoData=this.ea.getVideoData();this.policy.Pf&&(this.Ga=new ZZ(this.ya,this.policy,this.Nc),g.N(this,this.Ga))};
  6620. dab=function(a,b){b=void 0===b?!1:b;if(bab(a,b)){a.policy.j&&a.ya.ma("sabrcrq",{create:1});var c=new f_(0,a.manifest.Z,a);0<a.policy.yd&&a.C++;b=cab(a,c,b);a.policy.j&&a.ya.ma("sabrcrq",{enq:1,ql:a.j.length});a.j.push(b);var d;null==(d=a.Ga)||P9a(d,a.manifest.Z)}};
  6621. fab=function(a,b){var c=PZ(a.audioTrack,a.ya.isSeeking()),d=PZ(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.qa(c.md),g.qa(d.md)),f=[].concat(g.qa(c.uo),g.qa(d.uo)),h,l=(null==(h=a.ya)?void 0:h.bF())&&(gT(a.videoData)||g.fT(a.videoData));h=a.policy.G&&l;l=a.ya.getCurrentTime()||0;if(a.ya.Np){if(a.policy.Zm){var m=x9a(a.videoTrack);var n=x9a(a.audioTrack)}else a.policy.Ny&&(m=w9a(a.videoTrack),n=w9a(a.audioTrack));var p=l,q=l;void 0!==m&&(p=m);void 0!==n&&(q=n);if(p<l||q<l)l=Math.min(p,q),a.ya.ma("sundrn",
  6622. {vet:p,aet:q,lt:l})}m=a.ya.Kc()||0;m=h?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*(l+m));n=!r_(a,a.audioTrack);h=!r_(a,a.videoTrack);l=oR(a.ya.sJ());p=$9a(a.ya);var r,t;q=a.ea;var v=a.manifest,w=a.B,A=a.Xj,D=a.policy,F=a.ya.Rp,H=1E3*Y9a(a.ya),L=null==(r=a.Ca)?void 0:r.Sv;r=null==(t=a.Ca)?void 0:t.gy;var M;t=Number(null==(M=a.D.C)?void 0:M.info.itag)||0;var R;M=Number(null==(R=a.D.K)?void 0:R.info.itag)||0;b={ea:q,manifest:v,md:e,uo:f,LD:m,nextRequestPolicy:w,Xj:A,hf:D,Rp:F,mx:H,Sv:L,gy:r,kq:a.kq,isPrefetch:b||
  6623. a.ya.isSuspended,xG:n,AG:h,gS:l,fK:t,cK:M,rB:p};a.policy.Rf?(e=a.D,e=e.hf.B&&!e.Y?[]:g$a(e,e.D),b.JG=e,e=a.D,e.hf.B&&!e.qa?e=[]:(f=o$a(e),0===f.length&&(f=e.G),e=g$a(e,f)),b.KG=e):(a.FJ(a.videoTrack.j),a.FJ(a.audioTrack.j),b.PN=AZ(a.ra));a.policy.Um&&(e=a.ea.SO().e0,b.qz=e.j);if(a.policy.K){c=eab(a,c.md,d.md);var ea;if(d=null==(ea=a.K)?void 0:ea.tP(c))b.Im=d}a.policy.qa&&0<a.j.length&&a.j[0].SN()&&(b.fda=a.j[0].qP());return b};
  6624. eab=function(a,b,c){var d=a.ya.getCurrentTime()||0;b=gab(a,b,d);a=gab(a,c,d);return Math.min(b,a)};
  6625. gab=function(a,b,c){a=a.ya.Kc()||0;b=g.u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.startTimeMs?e.startTimeMs/1E3-a:0;e=d+(e.durationMs?e.durationMs/1E3:0);if(d<=c&&c<=e)return e}return c};
  6626. bab=function(a,b){if(0<a.policy.yd){var c=Math.floor((0,g.EC)()/1E4);if(c===a.Ea){if(a.C>=a.policy.yd){if(a.C===a.policy.yd){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Ea=c,a.C=0}b=!b&&!xR(a.Nc);if(a.ya.isSuspended&&(a.ya.KI||b)||a.qa&&(0,g.EC)()<a.qa)return!1;if(0<a.j.length)return a.policy.qa&&1===a.j.length&&a.j[0].SN()?!0:!1;if(null==(d=a.manifest.Z)||!qRa(d,a.policy,a.G))return!1;d=a.policy.FC&&a.policy.B&&a.ya.dg();if(WZ(a.audioTrack)&&
  6627. WZ(a.videoTrack)&&!d)return!1;if(a.policy.B&&a.N&&!a.ya.dg())return a.Dm("ssap",{pauseontlm:1}),!1;if(a.policy.Tp&&r_(a,a.audioTrack)&&r_(a,a.videoTrack))return a.policy.j&&a.ya.ma("sabrHeap",{a:""+RZ(a.audioTrack),v:""+RZ(a.videoTrack)}),!1;if(d=a.policy.K)d=!1,2===a.Z.B?d=!0:3===a.Z.B&&(b=eab(a,PZ(a.audioTrack,a.ya.isSeeking()).md,PZ(a.videoTrack,a.ya.isSeeking()).md),c=a.Z,b>=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.ya.ma("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.j&&
  6628. a.ya.ma("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.j&&a.ya.ma("sabrcrq",{noreadahead:1}),!0;if(a.policy.G&&a.ya.bF())return a.policy.j&&a.ya.ma("sabrcrq",{seekToHead:1}),!0;d=Math.min(1E3*a_(a.ya,a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*a_(a.ya,a.videoTrack),a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=1E3*TZ(a.audioTrack,!0);var f=1E3*TZ(a.videoTrack,!0);var h=c>e;e=f>e;if((!h||!e)&&a.policy.j&&a.policy.Of){var l=a.ya.kc();
  6629. l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.ma("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.B)&&(d=a.ya,d.Qa&&d.Qa.j&&d.Qa.B&&d.Ib&&!PQ(d.manifest)?(b=d.getCurrentTime(),f=d.Qa.j.Je(),c=d.Qa.B.Je(),f=f?yK(f,b):b,b=c?yK(c,b):b,b=Math.min(f,b),isNaN(b)?d=!1:(d=tY(d.Ib),d=b>=d-.01)):d=!1);if(d)return!1;a.policy.j&&a.ya.ma("sabrcrq",{allow:1});return!0};
  6630. cab=function(a,b,c){var d={Nc:a.Nc,Iu:function(m,n){a.ea.rG(m,n)},
  6631. vp:a.policy.Nl,QI:a.policy.j},e=I7a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,hab(a));c=fab(a,c);if((a.policy.B||a.policy.qa)&&a.policy.j&&c.Xj){for(var f=e="",h=g.u(c.Xj),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.ma("sabrbldrqs",{ctxts:e,misctxts:f})}q$a(b,c,a.ya.dg())||!a.policy.B&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new lZ(a.policy,b,a.manifest,a.G,a,d,a.ya.Wz(),a.policy.xf?a.ya.dg():void 0);
  6632. mZ(a.timing);a.policy.j&&a.ya.ma("sabrcrq",{rn:d.rr(),probe:b.Vt()});return d};
  6633. kab=function(a,b){if(!b.Ma()&&!a.Ma()){if(a.policy.j&&b.isComplete()&&b instanceof lZ){var c=a.ya,d=c.ma;var e=Object.assign(b.Fd.Eq(),{rst:b.state,strm:b.xhr.eC(),d:X6a(b.Fd),cncl:b.xhr&&b.Bd.D?1:0});b.policy.Uo&&(e.rqb=b.K0);e=Object.assign(s$a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Vt())b.dispose();else{if(b.iZ())b instanceof lZ&&T7a(a.timing,b),hab(a),iab(a);else if(b.ym())b instanceof q_?a.j.pop():(c=1,b.canRetry()&&d$a(a.ya)&&(jab(a,b),c=0),a.ya.handleError(b.Yg(),b.er(),c));else{if(a.ya.isSuspended&&
  6634. !b.isComplete())return;if(a.policy.K&&b.jZ()&&a.K&&(d=b.jY(),c=d.rl,e=d.IG,d=d.Lp,-1<e)){e=Z7a(a.Z,e,c);var f=a.ya.Kc()||0;W7a(a.Z,c,e/1E3-f,d,a.K)}iab(a)}b.Ma()||b instanceof q_||(b.isComplete()?c=S9a(b,a.policy,a.G):(c=R9a(b,a.policy,a.G),1===c&&(a.Na=!0)),0!==c&&(b=new f_(1,b.info.resource),b.Jj=2===c,cab(a,b)))}}a.ya.lf()};
  6635. iab=function(a){for(;a.j.length&&a.j[0].HY(a.qe());){var b=a.j.shift();lab(a,b);a.policy.pd&&b instanceof lZ&&b.dispose()}a.j.length&&lab(a,a.j[0])};
  6636. lab=function(a,b){if(a.policy.Rf){var c=new Set(b.Yq(a.qe()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof q_))){var f=a.D,h=f.manifest.Zb;d=n$a(f.D,h);f=n$a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Gn(e,a.qe()),b.il(e,a.qe()))){e=b.Ek(e,a.qe());if(a.policy.B&&(f=d[0].j.info,(h=a.ya.dg())&&f)){var l=b.OX();l!==h.ea.getVideoData().clientPlaybackNonce&&(h=cY(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Ch()?h.D=f:h.B=f)}e=g.u(e);for(f=e.next();!f.done;f=
  6637. e.next()){f=f.value;a.policy.j&&b instanceof q_&&a.ya.ma("omblss",{s:f.info.zd()});h=f.info.j.info.Ch();l=f.info.j;if(h){var m=void 0,n=a.D,p=null==(m=b.oP(a.qe()))?void 0:m.token;l!==n.K&&(n.K=l,n.HK(l,n.audioTrack,p))}else m=void 0,n=a.D,p=null==(m=b.oP(a.qe()))?void 0:m.token,l!==n.C&&(n.C&&(n.ra=!0),n.C=l,n.HK(l,n.videoTrack,p));l=h?a.audioTrack:a.videoTrack;b instanceof q_&&(l.Z=!1,b instanceof q_&&(h?M7a(a.timing):L7a(a.timing)));OZ(l,d,f)}}}}else for(d=b.MX()||AZ(a.ra),c=new Set(b.Yq(a.qe())),
  6638. a.policy.B?e=c:e=[(null==(f=d.video)?void 0:qK(f.info,a.manifest.Zb))||"",(null==(h=d.audio)?void 0:qK(h.info,a.manifest.Zb))||""],d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.il(e,a.qe()))for(f=b.Ek(e,a.qe()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.j&&b instanceof q_&&a.ya.ma("omblss",{s:h.info.zd()}),l=b.Gn(e,a.qe()),n=(m=h.info.j.info.Ch())?a.audioTrack:a.videoTrack,b instanceof q_&&(n.Z=!1,b instanceof q_&&(m?M7a(a.timing):L7a(a.timing))),OZ(n,l,h)};
  6639. jab=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),null==b||b.dispose())};
  6640. mab=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof q_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
  6641. nab=function(a,b,c){var d=c.Us,e=c.version;e=void 0===e?"":e;if(b.sT===e)b=!0;else{var f=!1,h=b.timeline.j;if(h&&h.getVideoData()){if(b.api.L("html5_ssap_clear_timeline_before_update")){var l=b.timeline,m;null==(m=l.j)||l5a(m);l.B.clear()}l=[];m=h.getVideoData();var n=aY(h),p=new Map;h=[];var q=[],r=0,t=0,v=0,w=[];d=g.u(d);for(var A=d.next();!A.done;A=d.next()){var D=A.value,F=D.clipId;if(F){if(D.Bq){v=D.Bq.FZ||0;var H=D.Bq.GZ||1;A=Number(((D.Bq.j0||0)/(D.Bq.k0||1)*1E3).toFixed(0));var L=Number((v/
  6642. H*1E3).toFixed(0));v=H=A+L}else A=v,L=0,H=A,b.XG.has(F)||b.jk.add(F);var M=void 0,R=null!=(M=p.get(F))?M:0;M=!1;if(b.sT)if(b.api.L("html5_ssap_clear_timeline_before_update")){var ea=b.Qi.get(F);ea&&(ea.start=A,ea.end=H,M=!0)}else{var la=b,ka=F;ea=A;var ia=H,sa=cY(la.timeline,ka);if(null!=sa&&sa.length){R<sa.length&&(sa[R].jc=ea,sa[R].B=ia);if(la=la.Qi.get(ka))la.start=ea,la.end=ia;ea=!0}else ea=!1;if(ea){p.set(F,R+1);f=!0;continue}}w.push(F);!M&&D.Bq&&(w=b.CI(A,H,w.join(",")),b.Qi.set(F,w),h.push(w),
  6643. w=[]);ea=M=void 0;if((null==(M=D.Bq)?void 0:M.Z2)===(null==(ea=m)?void 0:ea.videoId)){D=void 0;F!==(null==(D=m)?void 0:D.clientPlaybackNonce)&&(D=void 0,b.api.ma("ssap",{cnm:1,cid:F,cpn:null==(D=m)?void 0:D.clientPlaybackNonce}));if(b.api.L("html5_ssap_clear_timeline_before_update"))m&&(m.tj=A),F=dY(b.timeline,1,A,L,m),l.push(F),A=bY(b.timeline,A,H,[F]),f=f||A;else if(D=[],m&&(m.tj=A,M=void 0,D=null!=(M=cY(b.timeline,F))?M:[]),!b.sT&&D.length&&0===R){f=D[0];f.jc=A;f.B=H;D=void 0;L=null==(D=b.timeline.j)?
  6644. void 0:D.j;M=void 0;if((D=null==(M=L)?void 0:M.get(0))&&L)for(M=0;M<D.length;M++)if(ea=D[M],ea.Ye()!==ea.Bi()){ea.jc=A;ea.C=H;D.splice(M,1);L.has(A)?L.get(A).push(ea):L.set(A,[ea]);break}l.push(f);p.set(F,R+1);f=!0}else F=dY(b.timeline,1,A,L,m),l.push(F),A=bY(b.timeline,A,H,[F]),f=f||A;q.length&&(q=N5a(b,r||0,t,q),f=f||q);t=r=H;q=[]}else M=b.Zs.get(F),ea=void 0,R=null!=(ea=M)?ea:new g.ES(b.api.U(),{cpn:F}),R.sD=!0,b.jk.has(F)&&b.Zs.set(F,R),r=Math.min(A,r),t=Math.max(H,t),b.api.ma("ssap",{e:A,d:L,
  6645. c:F,p:M?1:0}),R.tj=A,H=void 0,A=dY(b.timeline,2,A,L,R,null==(H=D.WQ)?void 0:H.jK),q.push(A),b.ZS&&D.Bq&&!b.LX&&(b.api.ma("ssap",{reloada:F}),b.mw=F)}else b.api.ma("ssap",{cm:1})}q.length&&(m=N5a(b,r||0,t,q),f=f||m);n&&l.length&&(j5a(b.timeline,n,l),b.api.L("html5_ssap_clear_timeline_before_update")&&(l=l[l.length-1].Bi(),null!=(m=b.timeline.j)&&(m.B=l)));h.length&&b.ea.bz(h);if(f){b.sT=e;h=b.ea.Sk();e=[];h=g.u(h);for(l=h.next();!l.done;l=h.next()){l=l.value;if(l.C){m=rY(b,l.C);if(m===l.bl)continue;
  6646. l.start=l.start-l.bl+m;l.end=l.end-l.bl+m;l.bl=m;e.push(l)}l=b.ea.yh;0>=e.length||l.Ma()||(l=l.j,l.array.sort(l.j))}b.api.ma("ssap",{tu:wY(b)});e=HV(b.api.yb());b.api.ma("ssap",{am:e?1:0})}else b.api.ma("ssap",{tnu:1});b=!0}else b.api.ma("ssap",{htsm:h?0:1}),b=!1}b?a.videoData.Wy=c.version||"":a.ya.ma("ssap",{v:c.version,tlnu:1})};
  6647. hab=function(a){a.Xj.clear();if(0<a.videoData.sabrContextUpdates.size)for(var b=g.u(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(null==(d=a.videoData.sabrContextUpdates.get(c))?0:d.sendByDefault)&&a.Xj.add(c)}if(a.policy.qa&&a.j.length)for(b=g.u(a.j),c=b.next();!c.done;c=b.next())(c=c.value.qP())&&c.type&&c.sendByDefault&&a.Xj.add(c.type)};
  6648. oab=function(a){a.policy.Jb&&(a.Ca=void 0,a.kq=0)};
  6649. pab=function(a,b){if(b.ym()||b.Ma()){var c=a.ya,d=c.ma,e=b.state;a=a.qe();var f,h;if(null==(b=null==(f=b.Wf)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Yq();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Vc.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.dH.push(a),mZ(a.timing)};
  6650. r_=function(a,b){return!a.ya.jp&&VY(b)&&(b.xo()!==VY(b)||a.ya.isSuspended)};
  6651. qab=function(a){var b="";a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Bq){var d=c.Bq;b+=".vid."+d.Z2+(".pst."+d.j0)+(".ps."+d.k0)+(".lst."+d.d$)+(".ld."+d.FZ)+(".ls."+d.GZ)}c.WQ&&(b+=".nonv."+c.WQ.jK)}return b};
  6652. rab=function(a,b,c,d,e){this.ya=a;this.policy=b;this.schedule=c;this.rz=d;this.Y=e;this.qa=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
  6653. sab=function(a,b,c,d,e,f){return b.Sg&&b.nf&&3===c?new rab(a,b,d,e,f):null};
  6654. tab=function(a,b){if(a.policy.zH){var c=b.info.sb,d=wR(a.schedule);b=b.index.Hj;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.Kb)/c,b-a.policy.Ak))}};
  6655. wab=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Gv,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.uC&&(h=!0);a.K=c}c=d>=a.policy.Ak&&!a.C;if(!f&&!c&&uab(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.EC)()/1E3-(a.rz.Zg()||0)-a.N.j-a.policy.Kb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){s_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.zk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Kb-a.qa+a.policy.wC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.zk))),c=d);f=c=Math.max(c,
  6656. f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&uab(a,b))return vab(a,b),NaN;if(a.j<=a.B.startTime)return s_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!vab(a,b)&&h&&(s_(a,NaN,"t",b),a.clear()),NaN;h=a.j;s_(a,h,"s",b);a.clear();return h};
  6657. vab=function(a,b){return a.Y(a.j,!0)?!1:(s_(a,NaN,"ns",b),a.clear(),!0)};
  6658. uab=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.zk:a.policy.CH)};
  6659. s_=function(a,b,c,d){var e=a.D.er();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=(0,g.EC)().toFixed(0);e.ssr_f=(1E3*a.N.j).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.rz.Zg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.Ln(a.B.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Pa)).toFixed(0));a.ya.ma("ssr",e)};
  6660. xab=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
  6661. g.u_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.ea=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ca=m;this.Bc=n;this.timing=new K7a(this.Bc);this.Y=new I6a(this.schedule,this.policy);this.Qa=null;this.zb=new g.xv(this.lf,0,this);this.rF=new g.xv(this.lf,1E3,this);this.qc=new g.xv(this.lf,void 0,this);this.Za=new g.xv(this.lf,1E4,this);this.Ob=new g.xv(this.Fca,250,this);this.Z=this.currentTime=NaN;this.La=this.jp=0;this.Np=this.KI=this.isSuspended=!1;this.Va=
  6662. "";this.uI=new pR(5);this.Qc={};this.timestampOffset=NaN;this.Jb=!1;this.gb=0;this.N=null;this.Ga=NaN;this.rb=this.Na=!1;this.Gb=(0,g.EC)();this.logger=new g.RQ("dash");this.Rp=0;this.Wa=!1;this.bb=0;this.Tb=Infinity;this.Sa=0;this.qd={getAudioTrack:function(){return p.audioTrack},
  6663. getManifest:function(){return p.manifest},
  6664. Cpb:function(){return p.qa},
  6665. lf:function(){p.lf()},
  6666. fG:function(){p.jp=0;p.fG()},
  6667. wqb:function(H){return t_(p,p.videoTrack,p.Qa.B,H)}};
  6668. a=m&&m.Yq();m&&($4a(m,this.manifest,this.policy),this.Ga=Date.now());this.j=new c8a(this,this.Y,c,this.manifest,e,a);c=h8a(this.j,f,h&&h.id);this.audioTrack=new q9a(this,this.policy,c.audio,this.timing);this.videoTrack=new q9a(this,this.policy,c.video,this.timing);this.videoTrack.D.Ga=this.audioTrack.jP();this.Ea={updateend:this.f4,error:this.Q$};g.N(this,this.zb);g.N(this,this.rF);g.N(this,this.qc);g.N(this,this.Za);c=this.policy.EC&&this.policy.Sj?!KDa(this.videoTrack.j.info):!1;this.Kb=t8a({ej:this.policy.N.ej||
  6669. c,Sj:this.policy.Sj&&!c,Fs:this.policy.Fs});this.K=sab(this,this.policy,this.Kb,this.schedule,this.uI,function(H,L){return yab(p,H,L)});
  6670. this.G=new V7a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new NY(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.tv?this.ea.getVideoData().ji:null;this.D=new $Z(this,this.policy,this.videoTrack,this.audioTrack,this.Qc,this.G,this.timing,this.Y,this.schedule,this.manifest,this.j,this.K,c,l);g.N(this,this.D);this.C=new e_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,null==h?void 0:h.id);g.N(this,this.C);k$a(this.C,f);this.qa=
  6671. new aab(this.ea,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.C,this.timing,this.G);g.N(this,this.qa);this.ra=this.ea.kd.pu.Kz;var q,r;if(null==(q=this.ra)?0:null==(r=q.CA)?0:r.itagDenylist){var t;this.IK(null==(t=this.ra)?void 0:t.CA.itagDenylist)}var v;if(null==(v=this.ra)?0:v.playbackStartPolicy){var w,A;RZa(this.policy,null==(w=this.ra)?void 0:w.playbackStartPolicy,3,null==(A=this.ra)?void 0:A.rr())}if(this.policy.Of){e=this.qe();var D;(f=e?null==(D=
  6672. this.ra)?void 0:D.d_.get(e):void 0)&&this.qa.aq(f)}if(!this.manifest.Y){var F;D=null==(F=this.ra)?void 0:F.AZ;(null==D?0:D.JJ)&&(null==D?0:D.KJ)&&this.manifest.Zb&&XSa(this.manifest,D.JJ,D.KJ)}this.logger.debug("Created")};
  6673. zab=function(a,b){var c=qK(b.j.info,a.manifest.Zb),d,e=(null==(d=a.Ca)?void 0:d.Gn(c))||[];if(0===e.length)return a.ma("ombmsi",{}),!1;a:{e=new sQ(e);d=a.currentTime;e=g.u(e.ib);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.ma("ostmf",{ct:a.currentTime,a:b.j.info.Ch()}),!1;null!=(a=a.Ca)&&(a.Vc.get(c).uD=!0);return!0};
  6674. Aab=function(a){if(!a.manifest.Zb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&v_(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&v_(a.ea)&&(b.Zd||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.yA&&!!(null==(c=a.ra)?0:null==(d=c.AZ)?0:d.Gca)!==a.manifest.Zd)return a.ma("ombplmm",{}),!1;c=b.Kb||b.liveUtcStartSeconds||b.uj;if(a.manifest.Zd&&c)return a.ma("ombplst",{}),!1;if(a.manifest.Y)return a.ma("ombab",{}),!1;c=Date.now();if(PQ(a.manifest)&&
  6675. !isNaN(a.Ga)&&c-a.Ga>1E3*a.policy.hD)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.cf&&a.manifest.C||!a.policy.yC&&a.manifest.isPremiere||XS(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!(null==(e=b.playerResponse)||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
  6676. Bab=function(a,b){var c=b.j,d=a.manifest.Zb;if(Aab(a))if(a.Ca&&a.Ca.Vc.has(qK(c.info,d))){if(d=qK(c.info,d),zab(a,b)){var e=new sQ(a.Ca.Gn(d)),f=function(h){try{if(h.ym())a.handleError(h.Yg(),h.er()),VZ(b,h),tQ(h.info)&&b_(a.D,b,c,!0),a.lf();else if(b$a(a.D,h)){var l;null==(l=a.G)||X7a(l,h.info,a.N);a.lf()}}catch(m){h=YJ(m),a.handleError(h.errorCode,h.details,h.severity),a.Pk()}};
  6677. c.C=!0;HRa(e)&&(s9a(b,new OY(a.policy,d,e,a.Ca,f)),mZ(a.timing))}}else a.ma("ombfmt",{})};
  6678. w_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=c_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Di(b)||0;e.Ga!==b&&(e.La={},e.Ga=b,xZ(e,e.j));b=!e.j.isLocked()&&-1<e.Y&&(0,g.EC)()-e.Y<1E3*e.policy.dD;var f=e.nextVideo&&3*BZ(e,e.nextVideo.info)<MY(e.Ca);if(!b||f)wZ(e),yZ(e),e.ra=e.ra||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ga=-1);c(a,d,e.nextVideo);c_(a,a.audioTrack,a.j.B)};
  6679. x_=function(a,b){a.KI=b;a.policy.Ga||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Fv&&(a.rF.stop(),a.zb.stop()))};
  6680. Y7a=function(a,b,c,d){a.policy.K&&a.CG(!1);D9a(a.videoTrack,d,c,b);D9a(a.audioTrack,d,c,b);OQ(a.manifest,d,!0);OQ(a.manifest,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
  6681. Cab=function(a){a.logger.debug("Rebuffering.");a.Np=!0;if(a.policy.La&&a.Qa){var b,c,d,e;a.ma("lr_rb",{c:a.currentTime,s:a.isSeeking(),ab:vK(a.Qa.j.Je()),ala:null==(b=NZ(a.audioTrack))?void 0:b.zd(),alr:null==(c=a.audioTrack.B)?void 0:c.zd(),vb:vK(a.Qa.B.Je()),vla:null==(d=NZ(a.videoTrack))?void 0:d.zd(),vlr:null==(e=a.videoTrack.B)?void 0:e.zd()})}a.policy.wH&&0!==a.ea.xJ()&&a.ma("sps_rebuffer",{c:a.currentTime})};
  6682. Dab=function(a){a.policy.Va=!1;try{a.fG()}catch(b){g.IE(b)}};
  6683. Gab=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;a.policy.Ga&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ea&&a.ma("loader",{setsmb:0}),a.Pk(),a.policy.Ga=!1);a.logger.debug("attaching media source");Eab(a,d);if(yV(a.policy)&&!EK()&&a.policy.Sm)a.ma("ssap",{delaysb:1}),a.Qa=b;else{if(!LK(b)){var e=VY(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=VY(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.B&&a.ma("ssap",{initsb:1,v:e.info.id,vf:e.info.qb,a:f.info.id,af:f.info.qb});
  6684. XDa(b,e.info,f.info,a.policy.rb)}Fab(a,b,c,d);try{a.lf()}catch(h){g.IE(h)}}};
  6685. Fab=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;MZ(a.videoTrack,b.B||null,d);MZ(a.audioTrack,b.j||null,d);a.Qa=b;a.Qa.G=!0;c||a.resume();g.bF(b.j,a.Ea,a);g.bF(b.B,a.Ea,a)};
  6686. Eab=function(a,b){b=void 0===b?!1:b;a.Qa&&a.Qa.j&&a.Qa.B&&(cF(a.Qa.j,a.Ea,a),cF(a.Qa.B,a.Ea,a));MZ(a.audioTrack,null,b);MZ(a.videoTrack,null,b);a.Qa&&(a.Qa.G=!1);a.Qa=null};
  6687. Hab=function(a){a.Qa&&a.Qa.Kg()&&(a.Ez(),a.policy.vF&&a.handleError("fmt.unplayable",{unexpected:1},1))};
  6688. Jab=function(a,b){if(!a.Ma())if(yV(a.policy)){if(!l$a(a.C,b)){var c=a.C.B;k$a(a.C,b);var d=!1;d=b.isLocked()&&"m"===b.reason&&m$a(a.C,b.j);var e=a.policy.rh&&"l"===b.reason;c=c.j>b.j&&"b"===b.reason;d||e||c?(a.ea.Go({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Li||(a.C.j.B=!1)):(a.policy.Li&&(a.C.j.B=!1),y_(a))}}else if(!i8a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
  6689. c=a.j.j;Iab(a,k8a(a.j,b));w_(a);d=b.isLocked()&&"m"===b.reason&&a.j.ra;e=a.policy.rh&&"l"===b.reason&&XZ(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.bb&&!EK();d||e||c||f?a.ea.Go({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):y_(a)}};
  6690. Kab=function(a,b,c){if((!a.Qa||HK(a.Qa)&&!a.policy.Ll)&&!a.B.isSeeking()&&(yV(a.policy)||XZ(b)&&b.j.fg()&&a.j.qa)){var d=a.currentTime+M6a(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
  6691. C9a(b,d)}};
  6692. Iab=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+tK(b.video.info)}),Lab(a.ea,new rZ(b.video,b.reason)));
  6693. if(a.j.Wa){var c=AZ(a.j,"a");a.ea.yx(new rZ(c.audio,c.reason))}};
  6694. $9a=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.Pea:void 0;if(a)return oR(a)||void 0};
  6695. y_=function(a){g.yv(a.zb)};
  6696. Mab=function(a,b){var c=(0,g.EC)()-b,d=1E3*TZ(a.audioTrack,!0),e=1E3*TZ(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c});
  6697. if(a.policy.j&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),zV(a.policy))){var f=MY(a.Y);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:N6a(a.Y,a.Np,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Np,ps:(a.policy.oD||"").toString(),rn:(a.policy.lD||"").toString()})}};
  6698. Nab=function(a){if(a.policy.B&&YZ(a.videoTrack)&&YZ(a.audioTrack))return"ssap";if(L9a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(WZ(a.audioTrack)||WZ(a.videoTrack)&&"f"!==a.videoTrack.j.info.qb)return"";if(a.B.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.sj;zV(b.policy)&&(e=N6a(b,!1,MY(b)));b=e;c=TZ(d,!0)>=b&&TZ(c,!0)>=b}else c.C.length||d.C.length?(e=c.j.info.sb+d.j.info.sb,e=10*(1-MY(b)/e),b=Math.max(e,
  6699. b.policy.sj),c=TZ(d,!0)>=b&&TZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.C.length&&1===c.D.B.length&&Z8a(c.D).info.K<c.La)return"seek"}c=!a.policy.qj||10>a.currentTime;a.policy.Xm||(c=c||360<a.videoTrack.j.info.video.j);d=zV(a.policy)&&a.policy.Ml;if(!a.Np||!d&&c)return"";c=a.policy.qj;zV(a.policy)&&(c=N6a(a.Y,a.Np,MY(a.Y)));c=G9a(a.videoTrack,a.currentTime,c)||G9a(a.audioTrack,a.currentTime,c);return zV(a.policy)?c?"mbnm":"":(0<a.videoTrack.C.length||0<a.audioTrack.C.length||T9a(a.D,
  6700. a.videoTrack,a.audioTrack)||T9a(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""};
  6701. Oab=function(a){if(a.K){var b=a.K.lf(a.audioTrack,zK(a.Qa.B.Je()));b&&a.ea.seekTo(b,{Hw:!0,wd:"pollSubsegmentReadahead",Lq:!0})}};
  6702. Sab=function(a,b,c){if(c.fQ())return!0;if(!c.oI())return!1;var d=VY(b);if(!d||6===d.info.type)return!1;var e=a.policy.bD;if(e&&!d.info.Ue&&d.info.K<(d.info.C-a.currentTime)*e)return!1;var f;if(null==(f=a.G)||1===f.B||2===f.B||0!==f.B&&b===f.Ga&&d.info.Pa>H9a(f.qa))return a.B.isSeeking()&&y_(a),!1;if(!t_(a,b,c,d.info))return!1;if(a.manifest.B&&0===d.info.Rb){if(e=Pab(b,c,d))f=NZ(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.nK(d.info.j.info);a.policy.qc&&
  6703. f&&!e&&fSa(d)}e=a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Rb||f&&!e)&&Qab(a,c,d))return!0;if(e)return!1;e=a_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.La&&(a.La=(0,g.EC)()),!1;a.La&&(a.La=0);var h;a.policy.Bc&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Wa&&(0===c.CJ()?(a.Wa=!1,a.policy.Bc=!1):a.bb=c.CJ());if(!Rab(a,c,d))return!1;b.Lu(d);n8a(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.zd()+", buffered: "+vK(c.Je())});
  6704. return!0};
  6705. Rab=function(a,b,c){var d=a.policy.La?(0,g.EC)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=Uab(a,c,f)||f);var h=EN(f);f=a.policy.La?(0,g.EC)():0;e=Vab(a,b,h,c.info,e);a.policy.La&&(!c.info.Rb||c.info.Ue||10>c.info.C)&&(b=b.kc({as:c.info.zd(),pdur:Math.round(f-d),adur:Math.round((0,g.EC)()-f)}),b.omt=(a.getCurrentTime()+a.Kc()).toFixed(3),b.to=a.Kc(),a.ma("sba",b));if("s"===e)return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.rb=!1),a.gb=0,!0;if("i"===e||"x"===e)return Wab(a,
  6706. "checked",e,c.info),!1;if("q"===e){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.rb)return a.rb=!0,a.ea.seekTo(a.currentTime,{wd:"quotaExceeded",Lq:!0}),!1;c.info.vg()?(b=a.policy,b.Ca=Math.floor(.8*b.Ca),b.Qc=Math.floor(.8*b.Qc),b.ra=Math.floor(.8*b.ra)):(b=a.policy,b.bb=Math.floor(.8*b.bb),b.ra=Math.floor(.8*b.ra));yV(a.policy)?tZ(a.C.j,c.info.j,!1):zZ(a.j,c.info.j)}a.ea.Go({reattachOnAppend:e});return!1};
  6707. Uab=function(a,b,c){var d;if(d=a.policy.wv&&a.Qa&&!a.Qa.qa&&!a.ea.RI())b=b.info.j.info,d=b.Me()&&kK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,bK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=W8a(c),a.policy.j&&a.ma("sp4k",{s:!!c}),c};
  6708. Wab=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",yV(a.policy)?!d.j.info.video||0<uZ(a.C.j).size||tZ(a.C.j,d.j,!1):!d.j.info.video||0<uZ(a.j.G).size||zZ(a.j,d.j)):"i"===c&&(15>a.gb?(a.gb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=rQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:MK(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
  6709. n9a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=rK(f.j[p].info.mimeType)||f.j[p].info.vg();if(d===m)if(m=f.j[p].index,m.Ln(b.Pa)){if(!f.Sa){h=m;m=b;var n=h.Bn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.ZM(m),h=!0):h=!1}h&&(l=b.Pa)}else m.ZM(b),h=!0}if(0<=l){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;T6a(a.B,b,d,f);a.G.yR(b,c,d,e);b.Pa===a.manifest.cf&&f&&MQ(a.manifest)&&b.startTime>MQ(a.manifest)&&(a.manifest.Za=b.startTime+(isNaN(a.timestampOffset)?
  6710. 0:a.timestampOffset),a.B.isSeeking()&&a.B.j<a.manifest.Dd()&&a.B.seek(a.manifest.Dd(),{}))};
  6711. t_=function(a,b,c,d){b=NZ(b);!b||b.Ue||qQ(b,d)||c.abort();if(!c.uE()||EK())try{c.FT(d.j.info.containerType,d.j.info.mimeType)}catch(e){return c=e,g.JE(c),a.ma("ctexp",{name:c.name,msg:c.message}),!1}else d.j.info.containerType!==c.uE()&&a.ma("ctu",{ct:EK(),prev_c:c.uE(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Tm&&b&&(d=0+b.duration,b=-b.j,0===c.hE()&&d===c.eJ()||c.JS(0,d),b!==c.Kc()&&(c.rq(b),ZX&&p9a(a.audioTrack.jP(),c.vP())));return!0};
  6712. Qab=function(a,b,c){c.info.j.fg();var d=c.info.j.j;if(!d||!b.oI()||b.nw()===d)return!1;var e=d,f=b.kJ();if(a.policy.hv&&f&&b.isView()&&g.nK(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=ZQa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}a.policy.wv&&(f=Uab(a,c,new BN([e])))&&(e=EN(f));f=null;(h=c.info.j.ww(0,c.info.clipId))&&(f=h.ib[0]);a.policy.La&&a.ma("sbi",b.kc({as:c.info.zd()}));a.policy.Ly&&b.abort();d=Vab(a,b,e,f,d);if("s"!==d)return Xab(a,
  6713. d,c),!0;c.info.vg()?P7a(a.timing):Q7a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
  6714. return b.dk()};
  6715. Pab=function(a,b,c){if(null==b.nw()){a=NZ(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Wb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.nw();c.info.j.vA()&&gSa(c);c=c.info.j.j;return a!==c&&!g.Wb(a,c)};
  6716. Vab=function(a,b,c,d,e){var f=0;if(a.policy.B&&d&&d.clipId&&a.Ib){var h;f=((null==(h=a.Ib)?void 0:rY(h,d.clipId))||0)/1E3}try{a.policy.B&&b.Kc()!==f&&b.rq(f),b.appendBuffer(c,d,e)}catch(l){if(l instanceof DOMException){if(11===l.code)return"i";if(12===l.code)return"x";if(22===l.code||0===l.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:vK(b.Je()).replace(/,/g,"_"),vheap:RZ(a.videoTrack),aheap:RZ(a.audioTrack),message:g.Lg(l.message,3),track:a.Qa?b===
  6717. a.Qa.B?"v":"a":"u"},xab()),a.handleError("player.exception",b),"q";g.IE(l)}return"u"}return a.Qa.Kg()?"m":"s"};
  6718. UY=function(a,b,c){a.ea.seekTo(b,c)};
  6719. JZ=function(a,b){a.ea.LK(b)};
  6720. a_=function(a,b){if(a.Na&&!a.Np)return 3;if(a.isSuspended)return 1;var c;if(null==(c=a.Qa)?0:c.Qa&&!1===c.Qa.streaming)return 4;c=(b.j.info.audio?a.policy.bb:a.policy.Ca)/(b.sb*a.policy.Hl);if(0<a.policy.yp&&a.Qa&&HK(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.dk()){b=b.Je();var d=wK(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.yp,a.policy.cD)))}0<a.policy.ra&&(c=Math.min(c,a.policy.ra));return c};
  6721. Zab=function(a){a.Va&&!a.isSuspended&&xR(a.schedule)&&(Yab(a,a.Va),a.Va="")};
  6722. Yab=function(a,b){zX(b,"cms",function(c){a.policy.j&&a.ma("pathprobe",c)},function(c){a.ea.handleError(c)})};
  6723. $ab=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Kg()&&(b.Rv=TZ(a.videoTrack),b.B=TZ(a.audioTrack),a.policy.j)){var c=RZ(a.videoTrack),d=RZ(a.audioTrack),e=vK(a.Qa.B.Je(),"_",5),f=vK(a.Qa.j.Je(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=LY(a.Y);a.logger.debug(function(){return VJ(b.j)})};
  6724. abb=function(a,b){a.N=b;a.G&&(a.G.N=b);a.N.VS(a.videoTrack.j.info.Me());a.D.B=a.N;a.policy.K&&(a.qa.K=a.N)};
  6725. bbb=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.currentTime!==b&&a.resume();if(a.B.isSeeking()&&a.Qa&&!a.Qa.Kg()){var c=a.currentTime<=b&&b<a.currentTime+10,d=xK(a.Qa.B.Je(),a.currentTime+U9a);c&&d&&(a.B.G=!1)}if(!a.B.isSeeking()){if(a.policy.Zm&&2E3<(0,g.EC)()-a.Gb){var e;null==(e=a.videoTrack.N)||D8a(e,b);var f;null==(f=a.audioTrack.N)||D8a(f,b);a.Gb=(0,g.EC)()}a.currentTime=b}g.yv(a.rF)}};
  6726. cbb=function(a,b){var c=z9a(a.videoTrack).find(function(d){return d.startTime>=b&&yab(a,d.startTime,!1)});
  6727. return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
  6728. yab=function(a,b,c){if(!(a.videoTrack.j.fg()&&a.audioTrack.j.fg()&&a.Qa&&a.Qa.B&&a.Qa.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=RY(a.videoTrack,b,c);if(isNaN(d))return!1;a=RY(a.audioTrack,a.policy.nf?b:d,c);return isNaN(a)?!1:!0};
  6729. d_=function(a){a.Pk();a.B.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&tab(a.K,a.videoTrack.j);y_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);B9a(a.videoTrack);B9a(a.audioTrack);a.policy.G||WSa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.ya.currentTime=b;a.G=!0;a.D=new NK;return a.D};
  6730. c_=function(a,b,c,d){(void 0===d?0:d)&&!b.Ga&&(a.policy.DB&&!EK()&&((d=b.Sb)&&d.Uw(c.info)||dbb(a,b,c)),b.Ga=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
  6731. dbb=function(a,b,c){if(a.Qa){var d=c.info.vg(),e=d?a.Qa.B:a.Qa.j;e&&cF(e,a.Ea,a);a.ma("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Qa;var f=c.info,h=a.policy.rb;h=void 0===h?"":h;if(e.Qa){h=(c=f.vg())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.pg&&e.pg.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&cF(m,e.D,e);(m=c?e.Y:e.Z)&&e.Qa.removeSourceBuffer(m);var n;m=null==(n=e.Qa)?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new DK(m,e.pg,l,hK(h),f.qb,c);IK&&g.bF(n,e.D,e);c?e.B=n:e.j=n;g.N(e,n)}d=
  6732. d?a.Qa.B:a.Qa.j;MZ(b,d||null);d&&g.bF(d,a.Ea,a)}else a.ma("ssap",{missmse:1})};
  6733. ebb=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.G.Z=a.timestampOffset,a.ea.JR(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.rq(a.timestampOffset),a.audioTrack.rq(a.timestampOffset))};
  6734. Y9a=function(a){var b=a.Sk().filter(function(d){return"ad"===d.namespace});
  6735. b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
  6736. fbb=function(a){var b=NZ(a.videoTrack),c=NZ(a.audioTrack);return b&&!N9a(a.videoTrack)?b.startTime:c&&!N9a(a.audioTrack)?c.startTime:NaN};
  6737. Xab=function(a,b,c){a.policy.BH&&TS(a.ea.getVideoData())?(a.ea.aF()||Wab(a,"sepInit",b,c.info),gbb(a.ea,"sie")):Wab(a,"sepInit",b,c.info)};
  6738. d$a=function(a){return a.Sa<a.Tb};
  6739. g.z_=function(a){this.Uc=a};
  6740. A_=function(){g.aF.apply(this,arguments)};
  6741. B_=function(a,b,c,d){A_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.xv(this.G,0,this);g.N(this,this.D);this.B=new g.xv(function(){e.Ma()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
  6742. g.N(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
  6743. hbb=function(a){if(!(28>=a.length))for(var b=(0,g.iZ)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=JN(b);a=Mg(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
  6744. C_=function(a,b,c){A_.call(this);var d=this;this.C=a;this.j=[];this.qd={Vob:function(){return d.j.length}};
  6745. this.D=c.fb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.xv(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(0<d.j.length){var e=d.j.shift();ibb(d,e.info)}0<d.j.length&&(e=d.j[0].time-(0,g.EC)(),d.B.start(Math.max(0,e)))}},0);
  6746. g.N(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
  6747. ibb=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)};
  6748. jbb=function(a){var b=a.interval,c=a.retries;this.url=a.url;this.interval=b;this.retries=c};
  6749. kbb=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
  6750. lbb=function(a){var b=HN(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=JP(b.slice(d+2));if(null==b)return null;a=new kbb(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.EDa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new jbb({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
  6751. 60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
  6752. mbb=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.We=c;this.onError=this.onSuccess=null;this.j=new g.Lm(5E3,2E4,.2)};
  6753. nbb=function(a,b,c){a.onSuccess=b;a.onError=c};
  6754. pbb=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ma())if(0!==e.status&&e.response)if(eH("drm_net_r",void 0,a.We),e=new Uint8Array(e.response),e=lbb(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else obb(a,e)},
  6755. onError:function(e){obb(a,e)}};
  6756. c&&(b=Ffa(b,"access_token",c));g.cB(b,d)};
  6757. obb=function(a,b){if(!a.Ma())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
  6758. rbb=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ma()){eH("drm_net_r",void 0,a.We);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Mg(f.license)}catch(v){g.IE(v)}if(0!==h||l){l=new kbb(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=qbb[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]||
  6759. (m.push(r),h[r]=!0);var t=null;try{t=Mg(q.keyId)}catch(v){g.IE(v)}t&&(n[g.Kg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Mg(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
  6760. onError:function(f){if(!a.Ma())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
  6761. onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
  6762. d&&(e.uW="Bearer "+d);g.HD(c,"player/get_drm_license",b,e)};
  6763. sbb=function(a,b,c,d){g.aF.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Ga=[];this.D=[];this.Z=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ca&&(a.vvt=this.videoData.Ca,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
  6764. this.W.Ca&&(a.authuser=this.W.Ca);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.oc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(iR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.qa=!1);b="";g.aR(this.B)?$Q(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
  6765. Oca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=no(this.baseUrl,"ek")||"";if(b=no(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ea=this.videoData.L("html5_use_drm_retry");this.Ga=c.Me?[g.Kg(c.initData,4)]:c.C;D_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
  6766. wbb=function(a,b){D_(a,{createkeysession:1});a.status="gr";eH("drm_gk_s",void 0,a.videoData.Sa);a.url=tbb(a);try{a.C=b.createSession(a.Y,function(c){D_(a,{m:c})})}catch(c){b="t.g";
  6767. c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(ubb(a.C,function(c,d){vbb(a,c,d)},function(c,d,e){if(!a.Ma()){d=void 0;
  6768. var f=1;g.aR(a.B)&&g.HR(a.W)&&a.W.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ma()||(D_(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.Yp(c)}),g.N(a,a.C))};
  6769. tbb=function(a){var b=a.baseUrl;VBa(b)||a.error("drm.net",2,"t.x");if(!no(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
  6770. 0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ffa(b,d,a.G[d]);return b};
  6771. vbb=function(a,b,c){if(!a.Ma())if(b){D_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":xbb(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(eH("drm_gk_f",void 0,a.videoData.Sa),a.ra=!0,a.publish("newsession",a));if(XQ(a.B)&&(b=ybb(b),!b))return;g.aR(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=RJa(g.Kg(b)));b=new mbb(b,++a.requestNumber,a.videoData.Sa);nbb(b,function(d){zbb(a,
  6772. d)},function(d,e,f){if(!a.Ma()){var h=0,l;
  6773. (l=3<=d.j.B)||(l=a.Ea&&36E4<(0,g.EC)()-a.Ca);l&&(h=1,e="drm.net.retryexhausted");D_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(XJ(h),d)&&Abb(a,d)}});
  6774. g.N(a,b);Bbb(a,b)}else a.error("drm.unavailable",1,"km.empty")};
  6775. xbb=function(a,b){D_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.lo("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:HN(b)}),responseType:"arraybuffer"};
  6776. g.fB(c,b,3,500).then(sO(function(d){d=d.xhr;if(!a.Ma()){d=new Uint8Array(d.response);var e=HN(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),sO(function(d){a.Ma()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
  6777. E_=function(a){var b;if(b=a.qa&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
  6778. Bbb=function(a,b){a.status="km";eH("drm_net_s",void 0,a.videoData.Sa);if(a.videoData.useInnertubeDrmService()){var c=new g.GD(a.W.Fk),d={context:g.$sa(c.config_||g.gD())};d.drmSystem=Cbb[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Kg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
  6779. 0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ca&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ca,
  6780. scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.aR(a.B)&&(d.fairplayKeyId=g.Kg(Pca(a.fairplayKeyId)));g.$R(a.W,g.qT(a.videoData)).then(function(l){rbb(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.$R(a.W,g.qT(a.videoData)).then(function(l){pbb(b,a.url,l);
  6781. a.status="rs"})};
  6782. zbb=function(a,b){if(!a.Ma())if(D_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{eH("drm_kr_s",void 0,a.videoData.Sa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
  6783. !a.videoData.hD&&a.publish("newlicense",new jbb({})),a.videoData.hD=!0,a.Z=Ys(a.D,function(d){return d.includes("HDR")}));
  6784. b.j&&(a.W.L("html5_enable_vp9_fairplay")&&$Q(a.B)?(c=g.Kg(Pca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Yc(b.j,function(d){return{type:d,status:"unknown"}}));
  6785. YQ(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Mg(HN(b.message)):ZQ(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=RJa(g.Kg(b.message)));a.C&&(D_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){eH("drm_kr_f",void 0,a.videoData.Sa);E_(a)||(D_(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Lg(d.message,3);
  6786. a.error("drm.keyerror",1,d)}));
  6787. a.N&&(a.Ca=(0,g.EC)());g.aR(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&$Q(a.B)&&a.publish("qualitychange",Dbb(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
  6788. Abb=function(a,b){var c=b.j.getValue();c=new g.xv(function(){Bbb(a,b)},c);
  6789. g.N(a,c);c.start();g.Mm(b.j);D_(a,{rtyrq:1})};
  6790. Ebb=function(a,b){for(var c=[],d=g.u(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
  6791. Fbb=function(a){var b={};b[a.status]=E_(a)?Ebb(a,"."):a.D.join(".");return b};
  6792. Gbb=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
  6793. Hbb=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
  6794. Ibb=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
  6795. D_=function(a,b){var c=void 0===c?!1:c;VJ(b);(c||a.W.zc())&&a.publish("ctmp","drmlog",b)};
  6796. Jbb=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
  6797. Dbb=function(a){return g.Fb(a,"UHD2")||g.Fb(a,"UHD2HDR")?"highres":g.Fb(a,"UHD1")||g.Fb(a,"UHD1HDR")?"hd2160":g.Fb(a,"HD")||g.Fb(a,"HDHDR")?"hd1080":g.Fb(a,"HD720")||g.Fb(a,"HD720HDR")?"hd720":"large"};
  6798. ybb=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Oba(new DOMParser,re(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.iZ)(Uca(a.childNodes[0].nodeValue)).buffer):null:null};
  6799. F_=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.I.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.Y=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.cK(this);g.N(this,this.D);Kbb(this)};
  6800. Kbb=function(a){a.j?(a.D.T(a.j,"message",a.g4),a.D.T(a.j,"keystatuseschange",a.Yp),a.j.closed&&a.j.closed.then(sO(function(){a.onClosed()}),null)):a.B&&(TB(a.D,a.B,["mskeymessage",
  6801. "webkitkeymessage"],a.E_),TB(a.D,a.B,["mskeyerror","webkitkeyerror"],a.D_),TB(a.D,a.B,["mskeyadded","webkitkeyadded"],a.C_))};
  6802. ubb=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
  6803. Lbb=function(a,b,c){g.IE(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
  6804. G_=function(a,b,c,d){d=void 0===d?!1:d;g.I.call(this);this.element=a;this.j=b;this.ma=c;this.N=d;this.K={};this.D=null;this.G=new g.cK(this);this.C=this.B=null;g.N(this,this.G)};
  6805. Nbb=function(a,b){b=Mbb(b,a.j.Wa);b=a.C.createSession("video/mp4",b);return new F_(null,null,null,null,b,a.N)};
  6806. Obb=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new F_(null,null,null,null,a)};
  6807. Pbb=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c};
  6808. Mbb=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
  6809. c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
  6810. H_=function(){this.keys=[];this.values=[]};
  6811. Sbb=function(a,b,c){g.aF.call(this);this.element=a;this.videoData=b;this.W=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.uua();this.B=new Map;this.K=new H_;this.N=new H_;this.C=[];this.Na=2;this.ra=new g.cK(this);this.Sa=this.Ea=!1;this.heartbeatParams=null;this.Ga=this.Y=!1;this.G=null;this.La=!1;this.Ca=this.W.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||VQ()||gTa(c.experiments);this.W.L("html5_enable_vp9_fairplay")&&$Q(this.j)?
  6812. c=Qbb:(c=this.videoData.El,c="fairplay"===this.j.flavor||c?DS:Qbb);this.Z=c;this.D=new G_(this.element,this.j,this.FK.bind(this),this.Ca);g.N(this,this.D);WQ(this.j)&&(this.qa=new G_(this.element,this.j,this.FK.bind(this),this.Ca),g.N(this,this.qa));g.N(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.saa):TB(this.ra,c,WQ(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.Raa);Rbb(this);a:switch(c=this.j,a=this.W.experiments,b=this.B,c.flavor){case "fairplay":19.2999<
  6813. jqa()?(a=c.My,c=c.Ly,c>=a&&(c=.75*a),b=.5*(a-c),c=new B_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new C_(b,this,a);break a;default:c=null}if(this.G=c)g.N(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.oW,this),this.G.subscribe("log_qoe",this.hj,this);gTa(this.W.experiments);this.hj({cks:this.j.getInfo()})};
  6814. Rbb=function(a){var b=a.D.FN();b?b.then(sO(function(){Tbb(a)}),sO(function(c){if(!a.Ma()){g.IE(c);
  6815. var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.hj({mdkrdy:1}),a.Y=!0);
  6816. a.qa&&(b=a.qa.FN())};
  6817. Vbb=function(a,b,c){a.Sa=!0;c=new GZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Ubb(a,c)};
  6818. Ubb=function(a,b){if(!a.Ma()){a.hj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.hj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ea&&!a.videoData.isLivePlayback)I_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Me)){a.Ea=!0;c=b.cryptoPeriodIndex;var d=b.j;Q8a(b);b.Me||(d&&b.j!==d?a.publish("ctmp","cpsmm",
  6819. {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.oW(b)}};
  6820. Tbb=function(a){if(!a.Ma())if(a.W.L("html5_drm_set_server_cert")||$Q(a.j)){var b=a.D.setServerCertificate();b?b.then(sO(function(c){a.W.zc()&&a.publish("ctmp","ssc",{success:c})}),sO(function(c){a.publish("ctmp","ssce",{n:c.name,
  6821. m:c.message})})).then(sO(function(){Wbb(a)})):Wbb(a)}else Wbb(a)};
  6822. Wbb=function(a){a.Ma()||(a.Y=!0,a.hj({onmdkrdy:1}),I_(a))};
  6823. Xbb=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
  6824. I_=function(a){if((a.Sa||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ga){for(;a.C.length;){var b=a.C[0],c=Xbb(a)?R8a(b):g.Kg(b.initData);if($Q(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||$Q(a.j)){a.C.shift();continue}else a.B.delete(c);Q8a(b);break}}a.C.length&&a.createSession(a.C[0])}};
  6825. Ybb=function(a){var b;if(b=g.pB()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.LN(b),a.publish("ctmp","drm",{metrics:b}))};
  6826. Zbb=function(a){g.I.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.kF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.EI(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.xv(function(){J_(b.ea)},g.EI(this.Da.experiments,"html5_delayed_retry_delay_ms"));
  6827. g.N(this,this.j)};
  6828. ccb=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;TS(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&gbb(a.ea,"pe");if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.ea.rk.G&&d&&"22"===d.itag)return a.ea.rk.G=!0,a.Wd("qoe.restart",{reason:"fmt.unplayable.22"}),K_(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.C3)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.ea.Zf(b,1,"VIDEO_UNAVAILABLE",VJ((new WJ(b,
  6829. c,1)).details));return!0}var h=a.kF+3E4<(0,g.EC)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Wd("auth",c),!0;h||$Ya(a.ea.pm())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:MDa(e)||mK(e))&&(DTa(a.Da.G,e.qb),c.acfallexp=e.qb,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((null==d?0:lK(d))||(null==d?0:kK(d)))&&(DTa(a.Da.G,d.qb),
  6830. f=h=!0,c.cfallexp=d.qb);if(!h)return $bb(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.sT(a.videoData)&&"fmt.unplayable"===b&&c.cid&&c.ccid&&c.cid!==c.ccid&&$Ya(a.ea.pm())&&(a.Wd("ssap.transitionfailure",c),h=a.ea,g.sT(h.videoData)&&h.Ib&&P5a(h.Ib)))return!0;h=!1;a.Da.L("html5_bonus_life")&&!a.G?h=a.G=!0:a.kF=(0,g.EC)();var l=a.videoData;if(l.gb){l=l.gb.nV();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=M4a();l&&(c.staleprog="1");a.Wd("qoe.restart",c);if(l&&acb(a))return bcb(a),
  6831. !0;if(!(!g.nB("philips")||"fmt.unplayable"===b&&e&&e.Ga||"GAME_CONSOLE"===a.Da.j.cplatform))try{window.close()}catch(n){}d&&lK(d)&&!a.Da.L("html5_allow_av1_retry_in_session")?(f=a.Da.G,f.Y=!0,f=f.B=!0):e?h||(b=(b=NZ(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,yV(e.policy)?tZ(e.C.j,b,!0):zZ(e.j,b,!0)):a.videoData.gb&&a.videoData.gb.IS();a.j.isActive()||J_(a.ea,f);return!0};
  6832. $bb=function(a,b){if(a.videoData.Ga)return!1;a.Da.Kb+=1;if(10>=a.Da.Kb)return!1;b.exiled=""+a.Da.Kb;a.Wd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0};
  6833. acb=function(a){return a.B?!0:"yt"===a.Da.ra?a.videoData.Ga?25>a.videoData.Tb:!a.videoData.Tb:!1};
  6834. bcb=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.Eo();b&&!rT(a.videoData)||a.ea.publish("signatureexpired")}};
  6835. dcb=function(a,b){if((a=a.ea.Se())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Yg();b.details.merr=c?c.toString():"0";b.details.mmsg=a.qf()}};
  6836. ecb=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
  6837. fcb=function(a,b){return a.Da.L("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
  6838. hcb=function(a,b){if(!fcb(a,b)&&!a.B)return!1;b.details.sts="19864";if(acb(a))return XJ(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new WJ("qoe.restart",b)),a.Wd(b.errorCode,b.details),bcb(a),!0;6048E5<(0,g.EC)()-a.Da.Rf&&gcb(a,"signature");return!1};
  6839. gcb=function(a,b){try{window.location.reload(),a.Wd("qoe.restart",{detail:"pr."+b})}catch(c){}};
  6840. icb=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Wd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});J_(a.ea,!0)};
  6841. jcb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
  6842. kcb=function(a,b,c){this.W=a;this.WG=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.EI(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
  6843. mcb=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.PI(a.W)&&(c=c.compose(lcb(a,b)));return c};
  6844. ocb=function(a,b){var c,d=ncb(a,null==(c=b.j)?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return 1<c&&d?(a=xTa(a.W.G,b.j.videoInfos,c),new bP(0,a,!0,"o")):new bP(0,0,!1,"o")};
  6845. ncb=function(a,b){return b&&g.PI(a.W)?b.some(function(c){return 32<c.video.fps}):!1};
  6846. pcb=function(a,b){var c=a.ea.hJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.PT&&eP(b.videoData.yA)&&(a=c.PT,b.videoData.yA=new bP(0,a,!1,"u"));return b.videoData.yA};
  6847. lcb=function(a,b){if(g.PI(a.W)&&qP(a.W.G,rP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.FR(a.W)&&(e=window.screen&&window.screen.width?new g.Ke(window.screen.width,window.screen.height):null);e||(e=a.W.Zm?a.W.Zm.clone():a.WG.Th());(sB||KY||d)&&e.scale(g.QR());d=e;US(b.videoData)||rT(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||bUa||(e=
  6848. .45);a=g.EI(a.W.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new bP(0,"93"===c.itag?g.eK[JDa(d.width,d.height)]:d.j,!1,"r")}else c=DS;c=c.j}c&&(c=Math.max(c,360));return new bP(0,c,!1,"r")};
  6849. qcb=function(a){var b,c,d,e;return g.G(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ia(0);break}e=d.value;return g.z(f,ODa(e),4);case 4:d=c.next(),f.Ia(3)}})};
  6850. scb=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.kb()-a.N&&(a.B=0);a.B++;a.N=g.kb();if(4!==a.B)return!1;rcb(a,b.videoData.B);return!0};
  6851. ucb=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.EI(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!(5E3>(0,g.EC)()-a.D?0:f||0<e))return!1;var h=((0,g.EC)()-a.D)/1E3;a.D=(0,g.EC)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.W.zc()&&a.ea.ma("ddf",{dr:c.droppedVideoFrames,
  6852. de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.PI(a.W))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;rcb(a,b.videoData.B);a.ea.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},tcb()));return!0};
  6853. rcb=function(a,b){var c=a.W,d=b.qb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(49<e?"p60":32<e?"p48":"");if(c.L("html5_gradual_perf_cap"))if(0>=f&&bTa("VideoPlayer",321298775,b,f.toFixed(0)),c=TQ(c,d,e,h),0<f&&(c=Math.min(c,f)),!L_.has(b)&&ROa().includes(b))POa(b,c,!0);else if(L_.has(b)||null==h){a:{var l=void 0===l?!0:l;d=ROa().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.XB("yt-player-performance-cap-active-set",d,2592E3)}SQ.set(b,c)}else L_.add(b),
  6854. null==h||h.set(b,c);else POa(b,f);a.ea.Ko()};
  6855. vcb=function(a,b){if(!b.j.j)return a.G?new bP(0,360,!1,"b"):DS;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())lK(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.EI(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.u(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!lK(h))if(f=TQ(a.W,h.qb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new bP(0,d,!1,"b")};
  6856. wcb=function(a,b){var c=a.ea.pm();return c.isInline()&&!b.jN?new bP(0,480,!1,"v"):c.isBackground()&&60<YD()/1E3&&!g.PI(a.W)?new bP(0,360,!1,"v"):DS};
  6857. ycb=function(a,b,c){if(a.W.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.PI(a.W)&&(1080<=YO(-1)||b.osid))return DS;var d=g.EI(a.W.experiments,"html5_autonav_quality_cap"),e=g.EI(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&YD()/1E3>e?(c&&(d=xcb(a,c,d)),new bP(0,d,!1,"e")):DS};
  6858. xcb=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
  6859. zcb=function(a,b){a.L("html5_log_media_perf_info")&&(a.ea.ma("perfdb",tcb()),a.L("html5_gradual_perf_cap")&&(a.ea.ma("sessionperfdb",Object.fromEntries(SQ.entries())),a.ea.ma("playbackperfdb",Object.fromEntries(a.C.entries()))),a.ea.ma("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ea.ma("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
  6860. tcb=function(){return Yc(ZO(),function(a){return""+a})};
  6861. M_=function(a){g.I.call(this);var b=this;this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.QK;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.xv(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.qd={eB:function(){b.eB()}};
  6862. this.eB=function(){b.jsErrorCount++};
  6863. g.N(this,this.delay);window.addEventListener("error",this.eB);window.addEventListener("unhandledrejection",this.eB)};
  6864. Acb=function(a){0<=a.j||(3===a.provider.ea.getVisibilityState()?a.G=!0:(a.j=g.LM(a.provider),a.delay.start()))};
  6865. Bcb=function(a){if(!(0>a.B)){var b=g.LM(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.TF(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
  6866. Ccb=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
  6867. Ecb=function(a,b){b?Dcb.test(a):(a=g.OA(a),Object.keys(a).includes("cpn"))};
  6868. Gcb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(RA(a)&&SA()){if(h){var n;2!==(null==(n=Fcb.uaChPolyfill)?void 0:n.state.type)?h=null:(h=Fcb.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.FA("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
  6869. d:g.FA("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.FA("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!SR(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Ll&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&Dcb.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
  6870. Hcb=function(a,b,c,d,e,f,h,l){SA()&&c.token&&(a=PA(a,{ctt:c.token,cttype:c.vT,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:Ecb(a,d.L("html5_assert_cpn_with_regex")),h?FD().sendAndWrite(a,b):FD().sendThenWrite(a,b,l)):b?(Ecb(a,d.L("html5_assert_cpn_with_regex")),g.cB(a,b)):g.yD(a,e)};
  6871. Jcb=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*Icb)+Icb,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
  6872. g.P_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.RQ("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Fe="N";this.Z=this.xB=this.wB=this.Jb=this.G=0;this.Na=this.qc="";this.Ob=this.Sa=NaN;this.Kb=0;this.Bc=-1;this.Tb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Za=this.rb=this.Ga=this.isOffline=this.isBuffering=!1;this.Jd=[];this.qa=null;this.bb=this.C=this.Wa=this.N=!1;this.B=-1;this.Va=!1;this.Qc=new g.xv(this.f9,750,this);this.Y=this.adCpn=this.ra=this.contentCpn=
  6873. "";this.adFormat=void 0;this.je=0;this.pd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.yd=new Set(["gd"]);this.gb=!1;this.Gb=NaN;this.Ea=0;this.zb=!1;this.Ca=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.qd={tL:function(e){c.tL(e)},
  6874. jpb:function(){return c.D},
  6875. Jg:function(){return c.contentCpn},
  6876. Rob:function(){return c.ra},
  6877. reportStats:function(){c.reportStats()},
  6878. Nob:function(){return c.j.cat},
  6879. rJ:function(e){return c.j[e]},
  6880. Hpb:function(){return c.Ca}};
  6881. var d=g.EI(this.provider.W.experiments,"html5_qoe_proto_mock_length");d&&!N_.length&&(N_=Jcb(d));g.N(this,this.Qc);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.O_(this,0,"vps",["N"]);
  6882. a.W.zc()&&(this.Ea=(0,g.EC)(),this.Gb=g.YA(function(){var e=(0,g.EC)(),f=e-c.Ea;500<f&&c.ma("vmlock",{diff:f.toFixed()});c.Ea=e},250));
  6883. a.ea.dg()&&b&&(this.Ca=b-Math.round(1E3*g.LM(a)));this.provider.W.L("html5_qoe_qclc_remote_connected")&&(this.provider.videoData.Yi&&(this.remoteControlMode=Kcb[this.provider.videoData.Yi]||0),this.provider.videoData.Dj&&(a=aQa(this.provider.videoData.Dj),null==a?0:a.length))&&(this.remoteConnectedDevices=a)};
  6884. g.O_=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
  6885. Lcb=function(a,b){var c=a.provider.getCurrentTime();g.O_(a,b,"cmt",[c.toFixed(3)]);c=a.provider.Xg();if(a.D&&1E3*c>a.D.f_+100&&a.D){var d=a.D,e=d.isAd;c=1E3*c-d.f_;a.La=1E3*b-d.oda-c-d.Wca;c=(0,g.EC)()-c;b=a.La;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;gH(f,h);g.fH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);eH("pbs",c,f)}else c=a.provider.ea.Ai(),c.K!==d.clientPlaybackNonce?
  6886. (c.G=d.clientPlaybackNonce,c.B=b):d.Yj()||g.JE(new g.eC("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.La.toFixed(),prev_ad:+e});delete a.D}};
  6887. Q_=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.LM(a.provider);var c=a.provider.ea.DE(),d=c.Cs-(a.Sa||0);0<d&&g.O_(a,b,"bwm",[d,(c.Uu-(a.Ob||0)).toFixed(3)]);isNaN(a.Sa)&&c.Cs&&a.isOffline&&a.tL(!1);a.Sa=c.Cs;a.Ob=c.Uu;isNaN(c.bandwidthEstimate)||g.O_(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.zc()&&0!==Object.keys(c.j).length&&a.ma("bwinfo",c.j);if(a.provider.W.zc()||a.provider.W.L("html5_log_meminfo"))d=xab(),Object.values(d).some(function(e){return void 0!==e})&&a.ma("meminfo",d);
  6888. a.qa&&g.O_(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.Bc!==d&&(g.O_(a,b,"vis",[d]),a.Bc=d);Lcb(a,b);(d=Mcb(a.provider))&&d!==a.Kb&&(g.O_(a,b,"conn",[d]),a.Kb=d);Ncb(a,b,c)};
  6889. Ncb=function(a,b,c){if(!isNaN(c.Rv)){var d=c.Rv;c.B<d&&(d=c.B);g.O_(a,b,"bh",[d.toFixed(3)])}};
  6890. Ocb=function(a,b,c){g.$R(a.provider.W,g.qT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.W.L("kevlar_woffle")||a.provider.W.L("qoe_nwl_downloads"))e=!0}else a.provider.W.L("qoe_with_networkless")&&(e=!0);var f=a.provider.W.L("qoe_send_and_write"),h=a.provider.W;d=Gcb(b,h,a.provider.W.pageId,a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
  6891. Hcb(b,d,{token:a.provider.videoData.G,vT:a.provider.videoData.Rm,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ga)):e?(e=a.provider.W.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ga?FD().sendAndWrite(b,h):e?g.cB(b,{method:"POST",postBody:c}):FD().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Sta(b,f)||g.yD(b,void 0,void 0,void 0,f))})};
  6892. Pcb=function(a){for(var b=0,c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(bs(a.j[d],function(e,f){return e+f.length},0));
  6893. 96E3<b&&(new g.xv(a.reportStats,0,a)).start()};
  6894. Qcb=function(a){a.provider.videoData.nj&&R_(a,"prefetch");a.provider.videoData.Tb&&a.ma("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Tb});a.provider.videoData.zb&&R_(a,"monitor");a.provider.videoData.isLivePlayback&&R_(a,"live");hR&&R_(a,"streaming");a.provider.videoData.Rn()&&R_(a,"lifa");a.provider.videoData.Yi&&a.ma("ctrl",{mode:a.provider.videoData.Yi},!0);if(a.provider.videoData.Dj){var b=a.provider.videoData.Dj.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.provider.videoData.ZV&&
  6895. (b=a.provider.videoData.ZV.replace(/,/g,"."),a.ma("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.YS(c)||g.hT(c)||g.iT(c)||g.jT(c);(b||c)&&(b=(0,g.S_)())&&(a.j.gpu=[b]);rT(a.provider.videoData)&&g.O_(a,g.LM(a.provider),"dt",["1"]);a.provider.W.zc()&&(b=(0,g.EC)()-a.provider.W.Rf,a.ma("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.YA(function(){a.reportStats()},1E4)};
  6896. Scb=function(a,b,c){var d=g.LM(a.provider);Rcb(a,d,b,0,c);Q_(a,d);Pcb(a)};
  6897. Rcb=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;"Chrome"===a.provider.W.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&Tcb(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&Tcb(a,4);f=a.provider.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+vH());e&&c.push(Ucb(e));g.O_(a,b,"error",c);a.C=!0};
  6898. Vcb=function(a){0<=a.B||(a.provider.W.Pf||3!==a.provider.ea.getVisibilityState()?a.B=g.LM(a.provider):a.Va=!0)};
  6899. Y5a=function(a,b,c,d){if(c!==a.Fe){b<a.G||("PL"===a.Fe?a.playTimeSecs+=b-a.G:"B"===a.Fe&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Jb,!a.Za&&10<=a.rebufferTimeSecs&&180>=a.playTimeSecs&&(a.provider.ea.HF(),a.j.qoealert=["1"],a.Za=!0)),"B"!==c||"PL"!==a.Fe&&"PB"!==a.Fe||(a.isBuffering=!0),a.G=b);"PL"===a.Fe&&("B"===c||"S"===c)||a.provider.W.zc()?Q_(a,b):(a.gb||"PL"!==c||(a.gb=!0,Ncb(a,b,a.provider.ea.DE())),Lcb(a,b));"PL"===c&&g.yv(a.Qc);var e=[c];"S"===c&&d&&e.push("ss."+d);g.O_(a,
  6900. b,"vps",e);a.Fe=c;a.Jb=b;a.G=b;a.C=!0}};
  6901. R_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
  6902. uY=function(a,b,c,d,e,f){var h=g.LM(a.provider);1!==c&&3!==c&&5!==c||g.O_(a,h,"vps",[a.Fe]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l};
  6903. Tcb=function(a,b){if(!a.bb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.bb=!0}};
  6904. Ucb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
  6905. Wcb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Sp=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=T_(this.provider)};
  6906. U_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Bb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=T_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
  6907. Ycb=function(a){Xcb(a);a.K=g.YA(function(){a.update()},100);
  6908. a.Sp=g.LM(a.provider);a.B=T_(a.provider)};
  6909. Xcb=function(a){g.$A(a.K);a.K=NaN};
  6910. Zcb=function(a,b,c){c-=a.Sp;return b===a.j&&.5<c};
  6911. $cb=function(a,b,c,d){this.W=b;this.Bc=c;this.segments=[];this.experimentIds=[];this.Wa=this.Tb=this.isFinal=this.delayThresholdMet=this.Kb=this.yd=this.autoplay=this.autonav=!1;this.Qc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.bb=!1;this.N=this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.ra="atr"===c;this.Pf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.cn+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
  6912. d.state,0<d.rti&&(this.Z=d.rti)):(this.Qf=d.mos,this.Sg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.pd=d.inview),d.size&&(this.Jd=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.nf=g.md(b.j);this.N=iR(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if("all"===this.N||"once"===this.N)this.Ob=g.md(b.Ob);this.Of=b.Qc;this.experimentIds=tTa(b.experiments);this.Va=b.nj;this.Qc=b.ra;this.region=
  6913. b.region;this.userAge=b.userAge;this.gb=b.qj;this.Sd=YD();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Rf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Sf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.rh=b.D&&b.L("embeds_append_synth_ch_headers");g.BR(b)&&(this.Na=b.Ea);g.FB(g.JR(b))&&this.K.push(V_[1]);this.accessToken=
  6914. g.qT(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.Uo[this.Bc]?this.rb=a.Uo[this.Bc]:a.Uo.playback&&(this.rb=a.Uo.playback):a.rb&&(this.rb=a.rb);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=HWa(a);this.C&&(this.yd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.mq&&"adunit"==mT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=oT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Kb=
  6915. a.Hf;a.G&&(this.Y=a.G,this.Jb=a.Rm);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.yH;this.Gb=a.Gb;a.B&&(this.Be=a.B.itag,a.D&&a.D.itag!==this.Be&&(this.zb=a.D.itag));a.j&&jP(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=mT(a);this.Wa=a.Sf?!1:a.Sg;this.xf=a.Sm;if(b=aT(a))this.cg=b;this.yf=a.uy;this.La=a.La;this.eventId=a.eventId;this.playlistId=a.RW||a.playlistId;this.Vy=a.Vy;this.Yi=a.Yi;this.Dj=a.Dj;this.fp=a.fp;this.subscribed=a.subscribed;this.videoId=a.videoId;
  6916. this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.xH=a.xH;this.referrer=a.referrer;this.Xo=a.XV||a.Xo;this.Za=a.tC;this.Jz=a.Jz;this.userGenderAge=a.userGenderAge;this.ev=a.ev;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.BR(this.W)&&a.mutedAutoplay&&this.K.push(V_[2]);a.Yc(new g.Ke(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(V_[3]);g.wT(a)&&this.K.push(V_[4]);this.Sa=a.MV;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=
  6917. a.compositeLiveIngestionOffsetToken)};
  6918. adb=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.$R(a.W,a.accessToken).then(function(d){return Gcb(a.uri,a.W,a.pageId,c,d,b,a.rh)})};
  6919. ddb=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ea,a.je=b(),a.Sd=0,a.send()):adb(a).then(function(c){var d=bdb(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.lo(a.uri,d);a.W.L("vss_through_gel_double")&&cdb(d);a.Ca?(null==c&&(c={}),a.Ga?FD().sendAndWrite(d,c):FD().sendThenWrite(d,c)):c?g.cB(d,c):g.yD(d)})}};
  6920. bdb=function(a){var b={ns:a.Qc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Be,fs:a.Tb?"1":"0",rt:a.B(a.je),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Of,lact:a.Sd,live:a.cg,cl:(635633239).toString(),mos:a.Qf,state:a.playerState,volume:a.Sg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.nf);"all"===a.N?Object.assign(b,a.Ob):"once"===a.N&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.yd&&(b.sautoplay="1");a.Kb&&(b.dni="1");!a.D&&a.Na&&(b.epm=edb[a.Na]);
  6921. a.isFinal&&(b["final"]="1");a.Wa&&(b.splay="1");a.Gb&&(b.delay=a.Gb);a.Va&&(b.hl=a.Va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.gb&&(b.uga=a.gb+a.userAge);void 0!==a.Ea&&(b.len=a.B(a.Ea));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.G&&(b.rtn=a.B(a.G));a.Xo&&(b.feature=a.Xo);a.Yi&&(b.ctrl=a.Yi);a.Dj&&(b.ytr=a.Dj);a.zb&&(b.afmt=a.zb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.qc&&(b.lio=a.B(a.qc));
  6922. a.D?(b.idpj=a.xf,b.ldpj=a.yf,a.delayThresholdMet&&(b.dtm="1"),null!=a.Z&&(b.rti=a.B(a.Z)),a.ev&&(b.ald=a.ev),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.Jd&&(a.C||a.D)&&(b.size=a.Jd);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));null!=a.pd&&(a.C||a.D)&&(b.inview=a.B(a.pd));a.D&&(b.volume=W_(a,g.$r(a.segments,function(d){return d.volume})),b.st=W_(a,g.$r(a.segments,function(d){return d.startTime})),b.et=W_(a,g.$r(a.segments,function(d){return d.endTime})),
  6923. Ys(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=W_(a,g.$r(a.segments,function(d){return d.playbackRate}))),Ys(a.segments,function(d){return"-"!==d.j})&&(b.als=g.$r(a.segments,function(d){return d.j}).join(",")),Ys(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.$r(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
  6924. b.muted=W_(a,g.$r(a.segments,function(d){return d.muted?1:0}));
  6925. Ys(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=W_(a,g.$r(a.segments,function(d){return d.visibilityState})));
  6926. Ys(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=W_(a,g.$r(a.segments,function(d){return d.connectionType})));
  6927. Ys(a.segments,function(d){return 0!==d.B})&&(b.blo=W_(a,g.$r(a.segments,function(d){return d.B})));
  6928. Ys(a.segments,function(d){return!!d.C})&&(b.blo=g.$r(a.segments,function(d){return d.C}).join(","));
  6929. Ys(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.$r(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
  6930. Ys(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.$r(a.segments,function(d){return d.G}).join(","));
  6931. Ys(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.$r(a.segments,function(d){return d.clipId}).join(","));
  6932. if(Ys(a.segments,function(d){return!!d.D})){var c="au";
  6933. a.C&&(c="au_d");b[c]=g.$r(a.segments,function(d){return d.D}).join(",")}SA()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment);
  6934. a.Pf&&(b.etype=void 0!==a.qa?a.qa:0);a.Za&&(b.uoo=a.Za);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=fdb[a.livingRoomAppMode]||a.livingRoomAppMode);a.rb?gdb(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.xH,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.fp&&(b.ssrt="1"),a.Jz&&(b.upt=a.Jz));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
  6935. a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Sa&&(b.host_cpn=a.Sa);return b};
  6936. gdb=function(a,b){if(b&&a.rb){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);"3pp"===a.rb.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.rb)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.rb[h]||(b[h]=a.rb[h])}};
  6937. W_=function(a,b){return g.$r(b,a.B).join(",")};
  6938. cdb=function(a){-1!==a.indexOf("watchtime")&&g.qC("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
  6939. hdb=function(a,b){a.attestationResponse&&adb(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Ga?FD().sendAndWrite(b,c):FD().sendThenWrite(b,c):g.cB(b,c)})};
  6940. X_=function(a){g.I.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.Ca=this.ra=this.La=this.Ga=this.Ea=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new Wcb(a)};
  6941. jdb=function(a){if(!a.C){16623===a.provider.videoData.EG&&g.JE(Error("Playback for EmbedPage"));var b=Y_(a,"playback");a:{if(a.provider.W.L("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.Sm,h=a.provider.videoData.uy,l=-f;e=g.u(e);for(var m=e.next();!m.done;m=
  6942. e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.Sm,10,10,40+a.provider.videoData.uy-a.provider.videoData.Sm,40]}Ycb(a.j);b.G=Z_(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.Ry&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Ry,oid:d.gU,ptchn:d.fU,pltype:d.hU,content_v:oT(d)},d.Iv&&Object.assign(c,{m:d.Iv}),b=g.lo(b.Ga+"ptracking",c),$_(a,b));a.provider.videoData.Gb||idb(a);
  6943. a.C=!0;a=a.j;a.j=a.provider.ea.Xg();a.Sp=g.LM(a.provider);!(0===a.C&&5>a.j)&&2<a.j-a.C&&(a.C=a.j);a.N=!0}};
  6944. Z_=function(a,b){b=void 0===b?NaN:b;var c=g.LM(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+1<a.N.length&&a.Z++;var e=b+d;a.D=g.XA(function(){if(!a.Ma()){a.D=NaN;var f=kdb(a),h=ldb(a,f);h.Z=e;var l=1E3<a.Y;!(1<f.length)&&f[0].isEmpty()||l||(h.G=Z_(a,e));h.send();a.Y++}},1E3*(e-c));
  6945. return a.G=e};
  6946. a0=function(a){g.ZA(a.D);a.D=NaN};
  6947. kdb=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||U_(a);var b=a.segments;a.segments=[];return b};
  6948. Y_=function(a,b){var c=mdb(a.provider);Object.assign(c,{state:a.K});b=new $cb(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.ea.Xg();a.provider.videoData.isLivePlayback||(b.Ea=a.provider.ea.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Ze(b.j))&&(b.qc=c-b.j);b.je=g.LM(a.provider);b.segments=[T_(a.provider)];return b};
  6949. ldb=function(a,b){var c=Y_(a,"watchtime");ndb(a)&&(c.delayThresholdMet=!0,a.Ea=!0);if(0<a.B){for(var d=g.u(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.hP();c.segments=b;return c};
  6950. b0=function(a,b){var c=odb(a,!isNaN(a.G));b&&(a.G=NaN);return c};
  6951. odb=function(a,b){var c=ldb(a,kdb(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
  6952. ndb=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Gb&&a.C&&!a.Ea)b=a.j,b=b.G+b.provider.ea.Xg()-b.C>=a.provider.videoData.Gb;return!!b};
  6953. idb=function(a){a.provider.W.L("html5_remarketing_urls_cleanup")||(a.provider.videoData.remarketingUrl&&!a.Ga&&($_(a,a.provider.videoData.remarketingUrl),a.Ga=!0),a.provider.videoData.ppvRemarketingUrl&&!a.Ca&&($_(a,a.provider.videoData.ppvRemarketingUrl),a.Ca=!0));a.provider.videoData.youtubeRemarketingUrl&&!a.La&&($_(a,a.provider.videoData.youtubeRemarketingUrl),a.La=!0);a.provider.videoData.googleRemarketingUrl&&!a.ra&&($_(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0);a.Xu()};
  6954. pdb=function(a){if(!a.Ma()&&a.C){a.K="paused";var b=b0(a);b.isFinal=!0;b.send();a.dispose()}};
  6955. qdb=function(a,b){if(!a.Ma())if(g.TF(b.state,2)||g.TF(b.state,512)){if(a.K="paused",g.VF(b,2)||g.VF(b,512))g.VF(b,2)&&(a.j.previouslyEnded=!0),a.C&&(a0(a),b0(a).send(),a.G=NaN)}else if(g.TF(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?Z_(a):NaN;!isNaN(c)&&(0>UF(b,64)||0>UF(b,512))&&(a=odb(a,!1),a.G=c,a.send())}else a.K="paused"};
  6956. rdb=function(a,b,c){if(!a.qa){c||(c=Y_(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.qa=!0}};
  6957. $_=function(a,b){var c=a.provider.W;g.$R(a.provider.W,g.qT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=Gcb(b,c,e,f,d);Hcb(b,d,{token:a.provider.videoData.G,vT:a.provider.videoData.Rm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
  6958. sdb=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1};
  6959. c0=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0};
  6960. g.LM=function(a){return tdb(a)()};
  6961. tdb=function(a){if(!a.j){var b=g.ib(function(d){var e=(0,g.EC)();d&&631152E6>=e&&(a.ea.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b();
  6962. a.j=function(){return Math.round(b()-c)/1E3};
  6963. a.ea.DR()}return a.j};
  6964. mdb=function(a){var b=a.ea.vr()||{};b.fs=a.ea.UE();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.inview=a.ea.tE();b.size=a.ea.gE();b.clipid=a.ea.Mz();var c;b.playerheight=(null==(c=a.ea.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.ea.getPlayerSize())?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Fk&&(c.infringe=
  6965. 1);(a.Sf?0:a.Sg)&&(c.splay=1);(d=aT(a))&&(c.live=d);a.mq&&(c.sautoplay=1);a.fl&&(c.autoplay=1);a.Vy&&(c.sdetail=a.Vy);a.La&&(c.partnerid=a.La);a.osid&&(c.osid=a.osid);a.bD&&(c.cc=g.JUa(a.bD));return Object.assign(b,c)};
  6966. Mcb=function(a){if(navigator.connection&&navigator.connection.type)return udb[navigator.connection.type]||udb.other;if(g.PI(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
  6967. T_=function(a){var b=new sdb,c;b.G=(null==(c=mdb(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.rb&&(b.B=1);b.C=a.videoData.oy;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.lc&&c.lc.id&&"und"!==c.lc.id&&(b.D=c.lc.id);b.connectionType=Mcb(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.Mz()||"-";b.j=a.videoData.KV||"-";return b};
  6968. g.d0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Fe=new g.QK;this.qd={spb:function(){return c.qoe},
  6969. Gpb:function(){return c.j},
  6970. cpb:function(){return c.B}};
  6971. this.provider.videoData.ue()&&!this.provider.videoData.Ml&&(this.j=new X_(this.provider),g.N(this,this.j),this.qoe=new g.P_(this.provider,b),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Hg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Hg,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new M_(this.provider),g.N(this,this.B)};
  6972. vdb=function(a){return!!a.j&&!!a.qoe};
  6973. vY=function(a){a.B&&Acb(a.B);a.qoe&&Vcb(a.qoe)};
  6974. wdb=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.rh),c=b.next();!c.done;c=b.next())R_(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.u(a.provider.videoData.Wo),c=b.next();!c.done;c=b.next())R_(a,c.value);else a.provider.videoData.rh&&R_(a,a.provider.videoData.rh);a.provider.videoData.Zb()&&(b=a.provider.videoData.j,OS(a.provider.videoData)&&R_(a,"manifestless"),b&&NQ(b)&&R_(a,"live-segment-"+NQ(b).toFixed(1)));NS(a.provider.videoData)&&R_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&
  6975. (b=a.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),R_(a,b));"yt"!==a.provider.W.ra&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!rT(a.provider.videoData)&&a.tL(!0);a.provider.W.zc()&&(b=c5a())&&a.ma("cblt",{m:b});XS(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?R_(a,"proximaui"):R_(a,"proximaexp"))}};
  6976. $5a=function(a){if(a.provider.ea.dg()){if(a.D)return;a.D=!0}a.j&&jdb(a.j);if(a.B){a=a.B;var b=g.LM(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
  6977. Z5a=function(a,b){if(g.VF(b,1024)||g.VF(b,512)||g.VF(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Hg){var d;null==(d=a.C.get(a.Hg))||qdb(d,b)}else a.j&&qdb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.LM(d.provider),f=d.getPlayerState(c);Y5a(d,e,f,c.seekSource||void 0);f=c.Ig;g.TF(c,128)&&f&&(f.qL=f.qL||"",Rcb(d,e,f.errorCode,f.WI,f.qL));(g.TF(c,2)||g.TF(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&&
  6978. (d.j.user_intent=[d.B.toString()]),d.N=!0);Pcb(d)}a.B&&(d=a.B,Bcb(d),d.playerState=b.state,0<=d.B&&g.VF(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.dg()&&(a.Fe=b.state)};
  6979. xdb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Hg){var b;null!=(b=a.C.get(a.Hg))&&U_(b.j)}else a.j&&U_(a.j.j)};
  6980. ydb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.Fe&&(b.Fe="N");var c=g.LM(b.provider);g.O_(b,c,"vps",[b.Fe]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.zc()&&b.ma("finalized",{});b.Ga=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())pdb(c.value);else a.j&&pdb(a.j);a.dispose()};
  6981. zdb=function(a,b){a.j&&rdb(a.j,b)};
  6982. Adb=function(a){if(!a.j)return null;var b=Y_(a.j,"atr");return function(c){a.j&&rdb(a.j,c,b)}};
  6983. Bdb=function(a,b,c,d){c.adFormat=c.yd;var e=b.ea;b=new X_(new c0(c,b.W,{getDuration:function(){return c.lengthSeconds},
  6984. getCurrentTime:function(){return e.getCurrentTime()},
  6985. Xg:function(){return e.Xg()},
  6986. dg:function(){return e.dg()},
  6987. DE:function(){return e.DE()},
  6988. getPlayerSize:function(){return e.getPlayerSize()},
  6989. getAudioTrack:function(){return c.getAudioTrack()},
  6990. getPlaybackRate:function(){return e.getPlaybackRate()},
  6991. HE:function(){return e.HE()},
  6992. getVisibilityState:function(){return e.getVisibilityState()},
  6993. Ai:function(){return e.Ai()},
  6994. vr:function(){return e.vr()},
  6995. getVolume:function(){return e.getVolume()},
  6996. isMuted:function(){return e.isMuted()},
  6997. UE:function(){return e.UE()},
  6998. Mz:function(){return e.Mz()},
  6999. tE:function(){return e.tE()},
  7000. gE:function(){return e.gE()},
  7001. getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
  7002. DR:function(){e.DR()},
  7003. HF:function(){e.HF()},
  7004. ma:function(f,h){e.ma(f,h)}}));
  7005. b.B=d;g.N(a,b);return b};
  7006. Cdb=function(){this.Rv=0;this.C=this.Uu=this.Cs=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
  7007. e0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Hg="";this.qd={En:function(){return Array.from(d.j.keys())}}};
  7008. a6a=function(a,b){a.j.has(b)&&(ydb(a.j.get(b)),a.j.delete(b))};
  7009. Ddb=function(){this.j=g.bCa;this.array=[]};
  7010. Fdb=function(a,b,c){var d=[];for(b=Edb(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
  7011. Gdb=function(a,b){var c=[];a=g.u(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
  7012. Hdb=function(a){return a.array.slice(Edb(a,0x7ffffffffffff),a.array.length)};
  7013. Edb=function(a,b){a=Tb(a.array,function(c){return b-c.start||1});
  7014. return 0>a?-(a+1):a};
  7015. Idb=function(a,b){var c=NaN;a=g.u(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
  7016. Jdb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
  7017. g.f0=function(a,b,c,d){g.I.call(this);this.Z=a;this.ra=b;this.G=c;this.Y=d;this.C=NaN;this.K=this.N=this.started=!1;this.B=[];this.qa=new g.xv(this.sync,250,this);g.N(this,this.qa);this.D=new g.xv(this.sync,0,this);g.N(this,this.D);this.j=new Ddb};
  7018. Kdb=function(a){a.started=!0;a.sync()};
  7019. Ldb=function(a,b){a.started&&(a.sync(),g.TF(b.bB,16)&&(b=Idb(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&0x7ffffffffffff>b&&a.D.start()))};
  7020. Mdb=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Y(g.kJ(d.namespace),d):a.Y(g.lJ(d.namespace),d)}};
  7021. Ndb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.PI(a)&&(this.C=.01)};
  7022. g0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
  7023. kEa=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
  7024. Odb=function(a,b){this.videoData=a;this.j=b};
  7025. Pdb=function(a,b,c){return b.gI(c).then(function(){return iB(new Odb(b,b.C))},function(d){d instanceof Error&&g.JE(d);
  7026. var e=$J('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=bK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.yTa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Dw(),d:!!b.Qc,drm:b.Ui(),f18:0<=b.Qf.indexOf("itag=18"),c18:e};b.j&&(b.Ui()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=bK('video/mp4; codecs="avc1.42001E"'),
  7027. e.cVP9=bK('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new WJ(d,e,h)})};
  7028. Qdb=function(a){this.G=a;this.C=this.B=0;this.D=new $U(50)};
  7029. i0=function(a,b,c){g.aF.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Rdb;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.zb?c.B=3:g.fT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.EI(b,"html5_liveness_drift_proxima_override");if(XS(a)&&d){c.j=d;var e;(null==(e=a.j)?0:uSa(e))&&c.j--}if(g.nB("trident/")||g.nB("edge/"))c.C=Math.max(c.C,g.EI(b,"html5_platform_minimum_readahead_seconds")||3);g.EI(b,"html5_minimum_readahead_seconds")&&
  7030. (c.C=g.EI(b,"html5_minimum_readahead_seconds"));g.EI(b,"html5_maximum_readahead_seconds")&&(c.K=g.EI(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.EI(b,"html5_liveness_drift_chunk_override"))c.j=b;WS(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=h0(this,Sdb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
  7031. Tdb=function(a,b){if(b)return b=a.videoData,b=Sdb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),h0(a,b);if(a.B.length){if(1<Math.min.apply(null,a.B))return h0(a,a.j-1);if(a.policy.D)return h0(a,a.j+1)}return a.j};
  7032. Udb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=Tdb(a,void 0===b?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
  7033. k0=function(a,b){var c=a.ir(),d=a.policy.j;a.G||(d=Math.max(d-1,0));a=d*j0(a);return b>=c-a};
  7034. Vdb=function(a,b,c){b=k0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C};
  7035. Wdb=function(a,b){b=k0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
  7036. Sdb=function(a,b,c){c.zb&&b--;WS(c)&&(b=1);if(XS(c)&&(a=g.EI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:uSa(d))&&b++}return b};
  7037. j0=function(a){return a.videoData.j?NQ(a.videoData.j)||5:5};
  7038. h0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/j0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/j0(a))),b)};
  7039. Rdb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
  7040. n0=function(a){g.I.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.xv(this.lf,1E3,this);this.rb=new l0({delayMs:g.EI(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ea=new l0({delayMs:g.EI(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.zb=m0(this,"html5_seek_set_cmt");this.Va=m0(this,"html5_seek_jiggle_cmt");this.bb=m0(this,"html5_seek_new_elem");this.Tb=m0(this,"html5_unreported_seek_reseek");this.Ca=m0(this,"html5_long_rebuffer_jiggle_cmt");
  7041. this.La=m0(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ga=new l0({delayMs:2E4});this.Wa=m0(this,"html5_seek_new_elem_shorts");this.gb=m0(this,"html5_seek_new_media_source_shorts_reuse");this.Za=m0(this,"html5_seek_new_media_element_shorts_reuse");this.Sa=m0(this,"html5_reseek_after_time_jump");this.Z=m0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=m0(this,"html5_gapless_slow_seek");this.Y=m0(this,"html5_gapless_slice_append_stuck");this.ra=m0(this,"html5_gapless_slow_start");
  7042. this.N=m0(this,"html5_ads_preroll_lock_timeout");this.Ob=m0(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new l0({delayMs:g.EI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Az:!this.W.L("html5_report_slow_ads_as_error")});this.Gb=new l0({delayMs:g.EI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Az:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new l0({delayMs:g.EI(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Na=m0(this,"html5_slow_start_no_media_source");
  7043. this.B={};g.N(this,this.G)};
  7044. m0=function(a,b){var c=g.EI(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new l0({delayMs:c,Az:a})};
  7045. Xdb=function(a,b){a.j=b};
  7046. o0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Wd(e,b,h),b.Az||f()):(b.yL&&b.B&&!b.D?(c=(0,g.EC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.yL,c=b.j&&c-b.j>b.nS||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.kc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.ma("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
  7047. l0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.nS?1E3:b.nS,d=void 0===b.yL?3E4:b.yL;b=void 0===b.Az?!1:b.Az;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.nS=c;this.yL=d;this.Az=b};
  7048. aeb=function(a){g.I.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new Ydb;this.ra=new n0(this.ea);this.K=this.B=this.ya=this.mediaElement=this.playbackData=null;this.j=NaN;this.D=0;this.La=NaN;this.C=null;this.Na=NaN;this.G=this.Y=null;this.qa=!1;this.Za=NaN;this.rb=0;this.N=!1;this.Ea=new g.xv(function(){Zdb(b,!1)},2E3);
  7049. this.zb=new g.xv(function(){p0(b)});
  7050. this.Va=new g.xv(function(){b.qa=!0;$db(b,{})});
  7051. this.timestampOffset=0;this.Ca=!0;this.Sa=0;this.gb=NaN;this.Ga=new g.xv(function(){var c=b.W.Of;c.j+=1E4/36E5;c.j-c.C>1/6&&(RTa(c),c.C=c.j);b.Ga.start()},1E4);
  7052. this.Wa=this.Jb=!1;this.Z=0;this.bb=!1;g.N(this,this.ra);g.N(this,this.Ea);g.N(this,this.Va);g.N(this,this.zb);g.N(this,this.Ga)};
  7053. ceb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Qdb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(OS(a.videoData)&&a.ya){var c=a.ya.uI.Zg()||0;break a}if(a.videoData.j){c=a.videoData.j.Ca;break a}}c=0}return c}),a.B=new i0(a.videoData,a.W.experiments,function(){return a.Ke(!0)}));
  7054. beb(a)||(a.D=a.D||(g.sT(a.videoData)?0:a.videoData.startSeconds)||0)};
  7055. eeb=function(a,b){(a.ya=b)?deb(a,!0):q0(a)};
  7056. feb=function(a,b){g.yv(a.ra.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.yv(a.Ga):a.Ga.stop());if(a.mediaElement)if(8===b.bB.state&&mEa(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Sh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?wK(c,Math.max(b-3.5,0)):wK(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.gb-d)||(a.ea.ma("seekover",{b:vK(c,"_"),cmt:b}),
  7057. a.gb=d,a.seekTo(d,{Hw:!0,wd:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Wa&&(0<a.videoData.limitedPlaybackDurationInSeconds?(r0(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Wa=!0):a.videoData.isLivePlayback&&0<a.videoData.endSeconds&&(r0(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Wa=!0))};
  7058. heb=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.Di(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.EC)()/1E3-e.j.Ze(f),f-=e.G(),e.D.add(f))}}a.B&&(d&&(e=a.B,f=geb(a),e.D++,3>e.D||3E3>g.kb()-e.K||(e.K=g.kb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.B,Vdb(e,c,void 0===b?!0:b),Wdb(e,c),b&&Zdb(a,!0));d!==a.Jb&&(b=500>=a.getCurrentTime()-a.Za,c=1E3<=a.rb,b||c||(b=a.ea.uc(),b.qoe&&(b=b.qoe,c=g.LM(b.provider),
  7059. g.O_(b,c,"lh",[d?"1":"0"])),a.Jb=d,a.rb++,a.Za=a.getCurrentTime()))};
  7060. Zdb=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!k0(c,d)&&c.Fr()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Dd()?Math.min(c.videoData.Dd()+10,c.ir()):NaN;if(!isNaN(c)){if(a.ya&&b&&(b=a.Ea.isActive(),d=a.B.ir(),(d=cbb(a.ya,d-a.Kc()))&&!b)){a.Ea.start();a.ea.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Kc()});a.seekTo(d+a.Kc(),{wd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{wd:"seektimeline_pegToLive"})}}};
  7061. deb=function(a,b){if(a.B&&a.ya){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass?c=Udb(a.B):a.bb&&(a.bb=!1,c=Udb(a.B,!0));c&&(b=a.ea.uc(),c=a.B,c=j0(c)*c.j,b.qoe&&(b=b.qoe,g.O_(b,g.LM(b.provider),"lra",[c]),b.ma("live-readahead-seconds",{v:c})));b=a.ya;var d=a.B.j;a=a.B;a=(a.j-1+a.policy.j)*j0(a);c=NaN;var e=b.Kb;2===e||-1===e?WS(b.ea.getVideoData())&&(c=b.policy.xC):(--d,e=b.ea.getVideoData(),e.Zb()&&"ULTRALOW"!==e.latencyClass&&
  7062. !e.isLowLatencyLiveStream&&(c=XS(e)?b.policy.fD:b.policy.Pp));d=Math.max(d,0);e=b.D;e.eh=d;e.Z=c;b.K&&(b.K.qa=a)}};
  7063. ieb=function(a,b){a.D=b};
  7064. $db=function(a,b){jeb(a,b).then(void 0,function(){q0(a)});
  7065. keb(a).then(function(c){leb(a,c)},function(){q0(a)});
  7066. x5a(a.ea,b);a.W.zc()&&(b=a.kc(),b["native"]=""+ +a.N,b.tgt=""+a.j,b.otgt=""+(a.j+a.timestampOffset),a.ea.ma("startSeek",b))};
  7067. jeb=function(a,b){a.Y||(a.ya?isFinite(a.j)?a.Y=a.ya.seek(a.j-a.timestampOffset,b):(MS(a.videoData),a.Y=d_(a.ya),LWa(a.videoData)||(a.j=a.ya.getCurrentTime()+a.timestampOffset)):a.Y=mg(a.j-a.timestampOffset));return a.Y};
  7068. keb=function(a){var b=a.C;b||(a.C=new NK,b=a.C,p0(a));return b};
  7069. meb=function(a,b,c){return isNaN(b)?NaN:g.Ce(b,a.Dd(),a.Ke(c))};
  7070. p0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Kk()&&0<bEa(a.mediaElement)&&(a.j=meb(a,a.j,!1)),!a.mediaElement||!neb(a))a.zb.start(750);else if(!isNaN(a.j)&&isFinite(a.j)){var b=a.Na-(a.j-a.timestampOffset);if(!(0===b||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b)))if(b=a.mediaElement.getCurrentTime()-a.j,Math.abs(b)<=a.Sa||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
  7071. else{if(a.videoData.eD)a.videoData.eD=!1;else if(!MS(a.videoData)&&a.j>=a.Ke()-.1){a.j=a.Ke();a.C.resolve(a.Ke());PX(a.ea);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.ra.j=c;a.Na=c;a.D=a.j;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}};
  7072. neb=function(a){if(!a.mediaElement||0===a.mediaElement.Kk()||a.mediaElement.hasError())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Ui())return b;if(0<=a.j){var c=a.mediaElement.CE();if(c.length||!b)return xK(c,a.j-a.timestampOffset)}return b};
  7073. leb=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.W.zc()&&(b=a.kc(),b["native"]=""+ +a.N,b.otgt=""+(a.j+a.timestampOffset),a.ea.ma("seekEnd",b)));q0(a)};
  7074. q0=function(a){a.j=NaN;a.Na=NaN;a.C=null;a.Y=null;a.G=null;a.qa=!1;a.N=!1;a.Sa=0;a.Ea.stop();a.Va.stop()};
  7075. peb=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&f!==a.j){var h=!!a.C;a.C=new NK;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){leb(a,m)},function(){q0(a)});
  7076. if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;kya({adCpn:a.videoData.clientPlaybackNonce,contentCpn:null!=(l=a.videoData.MV)?l:""},b.j);a.L("enable_ask_gating")&&a.ea.DK()}a.Na=f;Xdb(a.ra,d.getCurrentTime());a.seekTo(f,{wd:"seektimeline_mediaElementEvent"});c&&c6a(c,1E3*f,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":oeb(a);p0(a);break;case "progress":p0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&(("play"===e||"playing"===
  7077. e||"timeupdate"===e||"progress"===e)&&10<a.getCurrentTime()-a.Z&&a.seekTo(a.Z,{wd:"pauseJump"}),"pause"!==e&&"play"!==e&&"playing"!==e&&"progress"!==e&&(a.Z=0))};
  7078. qeb=function(a){return(gT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||beb(a))&&!!a.videoData.j};
  7079. beb=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
  7080. oeb=function(a){if(a.Ca)if(g.fT(a.videoData))a.Ca=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Kb&&!beb(a)&&(b="mss",c=a.videoData.Kb);(a.videoData.bb?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.uj&&(b="stss",c=a.videoData.uj);!c&&qeb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Kb,b="utc",c=a.Ke()-a.Ze(a.Ke())+c);!c&&a.videoData.uj&&(b="stss",c=a.videoData.uj);var d={};if(c){if(c>a.Ke()||c<
  7081. a.Dd())d.minSeekableTime=a.Dd(),d.maxSeekableTime=a.Ke(),d.cmt=a.getCurrentTime(),d.it=a.Ze(a.getCurrentTime()),d.ss=c,d.utc=qeb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Kb:0,a.ea.ma("startSecondsOutOfBounds",d),a.videoData.Zb()&&(c=meb(a,c,!1));a.seekTo(c,{wd:"seektimeline_startSeconds"});d[b]=c;a.ea.ma("startSeconds",d);a.Ca=!1}else a.videoData.Kb&&(d[b]=a.videoData.Kb+a.Kc(),a.ea.ma("startSeconds",d))}};
  7082. reb=function(a,b){a.ea.ma("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.j=b;a.D=b;keb(a).then(function(c){leb(a,c)},function(){q0(a)})};
  7083. geb=function(a){return a.mediaElement?PK(a.mediaElement):0};
  7084. Ydb=function(){};
  7085. s0=function(){this.j=this.started=!1};
  7086. xeb=function(a){function b(e){return c.Jl&&(!d.Vm||!d.Da.N)||"yt"!==c.ra&&(38===d.La&&"books"===c.playerStyle||30===d.La&&"docs"===c.playerStyle||33===d.La&&"google-live"===c.playerStyle)?seb(a,d,e):teb(a,d).then(function(){t0(a,d)},function(f){t0(a,d,!0);
  7087. throw f;})}
  7088. var c=a.U(),d=a.getVideoData();d.Ma();d.loading=!0;return ueb(a)?veb(a,d).then(function(){t0(a,d)},function(e){e=YJ(e);
  7089. if(XJ(e.severity))return t0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(web=!0);a.handleError(e);return b("onesie")}):b("gvi")};
  7090. ueb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ra)return!1;var c=b.Gk;if(!c||!c.j)return a.handleError(new WJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.EC)()&&(a.ma("okexp","1"),(c=a.Wz())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:uP(d.location))&&!DX(b)&&c.j.delete(0)}if(web)return a.ma("ost3","1"),!1;d={};return 0<Object.keys(d).length?
  7091. (d.onesie="0",a.handleError(new WJ("html5.missingapi",d)),!1):!0};
  7092. yeb=function(a){var b=WT();XT(b,a);return g.uH(b,uOa())};
  7093. veb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L,M,R,ea,la,ka,ia,sa;return g.G(function(aa){if(1==aa.j)return b.fetchType="onesie",c=YWa(b,a.getPlayerSize(),a.getVisibilityState()),d=new q_(a,c),g.z(aa,d.fetch(),2);e=aa.B;f={player_response:e};b.loading=!1;h=a.kd.pu;if(d.Wf){l=g.u(d.Wf.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(w=v.Yq(),b.lG=w);h.Kz=d}A=g.u(d.KX.entries());for(D=A.next();!D.done;D=
  7094. A.next())F=D.value,H=g.u(F),L=H.next().value,M=H.next().value,R=L,ea=M,h.B.set(R,ea,180);g.HS(b,f,!0);if(b.loading||FS(b))return aa.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.lG=[];la={};ka="onesie.response";ia=0;b.errorCode?(ka="auth",la.ec=b.errorCode,la.ed=b.errorDetail,la.es=b.An||"",ia=2):(la.successButUnplayable="1",la.disposed=""+ +b.Ma(),la.afmts=""+ +/adaptiveFormats/.test(e),la.cpn=b.clientPlaybackNonce);sa=new WJ(ka,la,ia);return aa.return(Promise.reject(sa))})};
  7095. teb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.G(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ia(4);break}if(!(0<f)){t.Ia(5);break}return g.z(t,Eg(5E3),6);case 6:h=new g.eC("Retrying OnePlatform request",{attempt:f}),g.JE(h);case 5:return g.Ba(t,7),g.z(t,zeb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=YJ(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
  7096. n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));a.handleError(m);if(XJ(m.severity)){t.Ia(4);break}case 3:f++;t.Ia(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new WJ(q,{backend:"op"},r)))}})};
  7097. zeb=function(a,b){function c(ka){2===ka.readyState&&a.Rd("ps_c")}
  7098. var d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L,M,R,ea,la;return g.G(function(ka){switch(ka.j){case 1:b.fetchType="gp";d=a.U();e=g.$R(d,g.qT(b));if(!e.j){f=e.getValue();ka.Ia(2);break}return g.z(ka,e.j,3);case 3:f=ka.B;case 2:return h=f,l=yeb(h),m=YWa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.tG(Aeb),p=g.qT(b),q=(0,g.EC)(),r=!1,t="empty",v=0,a.Rd("psns"),w={gB:c},g.z(ka,g.lH(l,m,n,void 0,w),4);case 4:A=ka.B;a.Rd("psnr");if(b.Ma())return ka.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
  7099. v=A.error.code):A.errorMetadata&&(r=!0,t="its",v=A.errorMetadata.status):r=!0;if(r)return D=0,F=((0,g.EC)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.FA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Yi||"",token_eq:p===g.qT(b)?"1":"0"}:{backend:"op",
  7100. rc:""+v,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.FA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Yi||"",token_eq:p===g.qT(b)?"1":"0"},L="manifest.net.connect",429===v?(L="auth",D=2):200<v&&(L="manifest.net.badstatus",400===v&&(D=2)),ka.return(Promise.reject(new WJ(L,H,D)));b.loading=!1;g.HS(b,{raw_player_response:A},!0);
  7101. M=A;g.GR(b.U())&&M&&M.trackingParams&&SO(M.trackingParams);if(b.errorCode)return R={ec:b.errorCode,ed:b.errorDetail,es:b.An||""},ka.return(Promise.reject(new WJ("auth",R,2)));if(!b.loading&&!FS(b))return ea=b.isAd()?"auth":"manifest.net.retryexhausted",la=b.isAd()?2:1,ka.return(Promise.reject(new WJ(ea,{successButUnplayable:"1",hasMedia:g.cT(b)?"1":"0"},la)));g.Aa(ka)}})};
  7102. seb=function(a,b,c){function d(v){v=YJ(v);if(XJ(v.severity))return Promise.reject(v);a.handleError(v);return!1}
  7103. function e(){return!0}
  7104. var f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:var w=a.U(),A=a.getPlayerSize(),D=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(38===b.La&&"books"===w.playerStyle)F=b.videoId.indexOf(":"),F=g.lo("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.Vea});else if(30===b.La&&"docs"===w.playerStyle)F=g.lo("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.P8,authkey:b.xca,eurl:w.Qc});else if(33===
  7105. b.La&&"google-live"===w.playerStyle)F=g.lo("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==w.ra&&g.IE(Error("getVideoInfoUrl for invalid namespace: "+w.ra));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:w.Qc,ps:w.playerStyle,el:mT(b),hl:w.nj,list:b.playlistId,agcid:b.YV,aqi:b.adQueryId,sts:19864,lact:YD()};Object.assign(H,w.j);w.forcedExperiments&&(H.forced_experiments=w.forcedExperiments);b.Ca?(H.vvt=b.Ca,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)):
  7106. g.qT(b)&&(H.access_token=g.qT(b));b.adFormat&&(H.adformat=b.adFormat);0<=b.slotPosition&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);null!==b.vC&&(H.ad_id=b.vC);null!==b.zC&&(H.ad_sys=b.zC);null!==b.gD&&(H.encoded_ad_playback_context=b.gD);b.wM&&(H.tpra="1");w.captionsLanguagePreference&&(H.cc_lang_pref=w.captionsLanguagePreference);w.Jb&&2!==w.Jb&&(H.cc_load_policy=w.Jb);var L=g.cC(g.bC(),65);g.RR(w)&&null!=L&&!L&&(H.device_captions_on="1");w.mute&&(H.mute=w.mute);b.annotationsLoadPolicy&&
  7107. 2!==w.annotationsLoadPolicy&&(H.iv_load_policy=b.annotationsLoadPolicy);b.Jv&&(H.endscreen_ad_tracking=b.Jv);(L=w.Na.get(b.videoId))&&L.bM&&(H.ic_track=L.bM);b.ra&&(H.itct=b.ra);HWa(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.pD&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Dj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.Xv&&(H.ytrcc=b.Xv);b.fE&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1");
  7108. b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(L=3===b.forceAdsUrl.split("|").length,H.force_ad_params=L?b.forceAdsUrl:"||"+b.forceAdsUrl);b.nj&&(H.preload=b.nj);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Sf?0:b.Sg)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");oT(b)&&(H.content_v=oT(b));b.zb&&(H.livemonitor=1);w.Ca&&(H.authuser=w.Ca);w.pageId&&(H.pageid=w.pageId);w.gb&&(H.ei=w.gb);w.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");w.N&&b.vF&&(H.live_start_walltime=
  7109. b.vF);w.N&&b.Gl&&(H.live_manifest_duration=b.Gl);w.N&&b.playerParams&&(H.player_params=b.playerParams);w.N&&b.cycToken&&(H.cyc=b.cycToken);w.N&&b.fN&&(H.tkn=b.fN);0!==D&&(H.vis=D);w.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.To&&(H.kids_age_up_mode=b.To);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.bA&&(H.upg_content_filter_mode="1");w.widgetReferrer&&(H.widget_referrer=w.widgetReferrer.substring(0,128));b.qa?(A=null!=b.qa.latitudeE7&&null!=b.qa.longitudeE7?b.qa.latitudeE7+
  7110. ","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.Zm&&(H.internalipoverride=b.Zm);w.embedConfig&&(H.embed_config=w.embedConfig);w.Tm&&(H.co_rel="1");0<w.ancestorOrigins.length&&(H.ancestor_origins=Array.from(w.ancestorOrigins).join(","));void 0!==w.homeGroupInfo&&(H.home_group_info=w.homeGroupInfo);void 0!==w.livingRoomAppMode&&(H.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&
  7111. (H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.wv&&b.xv&&(H.clip=b.wv,H.clipt=b.xv);b.Hv&&(H.disable_watch_next="1");b.Ym&&(H.forced_by_var="1");for(var M in H)!Beb.has(M)&&H[M]&&512<String(H[M]).length&&(g.JE(Error("GVI param too long: "+M)),H[M]="");M=w.Ga;g.HR(w)&&(M=PBa(M.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.Ga);w=g.lo(M+"get_video_info",H);F&&(w=Spa(w,F));F=w}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ia(4);break}n=f;if(!(0<m)){v.Ia(5);break}return g.z(v,
  7112. Eg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=QA(f,p);case 5:return g.z(v,Ceb(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.JE(new g.eC("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new WJ(r,{backend:"gvi"},t)))}})};
  7113. Ceb=function(a,b){function c(A){return d(A.xhr)}
  7114. function d(A){if(!a.Ma()){A=A?A.status:-1;var D=0,F=((0,g.EC)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";429===A?(H="auth",D=2):200<A&&(H="manifest.net.badstatus",400===A&&(D=2));return Promise.reject(new WJ(H,F,D))}}
  7115. var e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){if(1==A.j){a.fetchType="gvi";e=a.U();var D={};a.DC&&(D.ytrext=a.DC);(l=g.jd(D)?void 0:D)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=QA(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=iR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
  7116. (f.headers=m);p=(0,g.EC)();return g.z(A,nSa(eB,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=NA(q.responseText);g.HS(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.An||""},A.return(Promise.reject(new WJ("auth",t,2)));if(!a.loading&&!FS(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",w=a.isAd()?2:1,A.return(Promise.reject(new WJ(v,{successButUnplayable:"1"},w)));g.Aa(A)})};
  7117. t0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.G(function(l){if(1==l.j){d=a.U();if(c&&(!g.TR(d)||"embedded"!==mT(b))||b.Hv||"adunit"!==mT(b)&&(g.PI(d)||MR(d)||g.jG(d)||g.HR(d)||"WEB_CREATOR"===g.gR(d)))return l.return();e=g.$R(d,g.qT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ia(2))}2!=l.j&&(f=l.B);h=f;return l.return(Deb(a,b,h))})};
  7118. Deb=function(a,b,c){var d,e,f,h,l;return g.G(function(m){if(1==m.j){g.Ba(m,2);d=yeb(c);var n=b.U();g.bC();var p={context:g.xT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===mT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Tm&&(p.showContentOwnerOnly=!0);b.dW&&(p.showShortsOnly=!0);g.cC(0,141)&&(p.autonavState=g.cC(0,140)?"STATE_OFF":"STATE_ON");if(g.RR(n)){var q=g.cC(0,65);q=null!=q?
  7119. !q:!1;var r=!!g.YB("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=null==(t=n.getWebPlayerContextConfig())?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.tG(Eeb);a.Rd("wn_s");return g.z(m,g.lH(d,e,f),4)}if(2!=m.j)return h=m.B,a.Rd("wn_r"),!h||"error"in h&&h.error||(l=h,g.GR(b.U())&&l.trackingParams&&SO(l.trackingParams),g.HS(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
  7120. Feb=function(a){a.Rd("vir");a.Rd("ps_s");iH("vir",void 0,"video_to_ad");var b=xeb(a);b.then(function(){a.Rd("virc");iH("virc",void 0,"video_to_ad");a.Rd("ps_r");iH("ps_r",void 0,"video_to_ad")},function(){a.Rd("virc");
  7121. iH("virc",void 0,"video_to_ad")});
  7122. return b};
  7123. g.w0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.ES(a):m;n=void 0===n?!0:n;g.aF.call(this);var p=this;this.W=a;this.playerType=b;this.Mb=c;this.WG=d;this.getVisibilityState=f;this.visibility=h;this.kd=l;this.videoData=m;this.Y6=n;this.logger=new g.RQ("VideoPlayer");this.CD=new Ndb(this.W);this.Ce=null;this.qB=new H_;this.Sq=null;this.rk=new kcb(this.W,this.WG,this);this.yY=!0;this.Qa=this.ya=null;this.cq=[];this.eq=new s0;this.Kf=this.ZF=null;this.Sr=new s0;this.fL=null;this.MP=this.Tt=!1;this.gL=
  7124. NaN;this.f0=!1;this.playerState=new g.QK;this.jL=[];this.nC=new g.cK;this.Qk=new Zbb(this);this.mediaElement=null;this.bx=new g.xv(this.Faa,15E3,this);this.FS=this.zK=!1;this.Ix=NaN;this.eI=!1;this.GN=0;this.TE=!1;this.bK=NaN;this.mT=new aV(new Map([["bufferhealth",function(){return geb(p.Zc)}],
  7125. ["bandwidth",function(){return p.TO()}],
  7126. ["networkactivity",function(){return p.W.schedule.Y}],
  7127. ["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?Geb(p):NaN}],
  7128. ["rawlivelatency",function(){return Geb(p)}]]));
  7129. this.kF=0;this.loop=!1;this.playbackRate=1;this.qZ=0;this.Zc=new aeb(this);this.yW=!1;this.iL=[];this.tQ=this.g0=0;this.AS=this.E2=!1;this.lC=this.Uu=this.Cs=0;this.uN=new g.xv(this.T8,0,this);this.J1=!1;this.Ib=this.Uc=null;this.G$=[this.nC,this.uN,this.bx,this.mT];this.Jf=function(){var q=p.uc();q.provider.W.Pf||3===q.provider.ea.getVisibilityState()||(q.provider.W.Pf=!0);xdb(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.ea.getVisibilityState()&&Acb(r)}q.qoe&&(q=q.qoe,q.Va&&0>q.B&&q.provider.W.Pf&&
  7130. Vcb(q),q.C&&Q_(q));p.ya&&u0(p);p.W.fp&&!p.videoData.backgroundable&&p.mediaElement&&!p.Vh()&&(p.isBackground()&&p.mediaElement.QH()?(p.ma("bgmobile",{suspend:1}),p.Eo(!0,!0)):p.isBackground()||v0(p)&&p.ma("bgmobile",{resume:1}))};
  7131. this.qd={Yp:function(q){p.Yp(q)},
  7132. Nqb:function(q){p.Ce=q},
  7133. lpb:function(){return p.HA},
  7134. Uz:function(){return p.IA},
  7135. Kob:function(){return p.HN},
  7136. Lob:function(){return p.IN},
  7137. jqb:function(){},
  7138. U:function(){return p.W},
  7139. Se:function(){return p.mediaElement},
  7140. lqb:function(q){p.SK(q)}};
  7141. this.logger.debug(function(){return"creating, type "+b});
  7142. this.yh=new g.f0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.kJ("endcr")||g.TF(p.playerState,32)||PX(p);
  7143. p.W.zc()&&q===g.kJ("ad")&&p.ma("acre",{st:r.start,et:r.end,acpn:r.C,cpn:m.clientPlaybackNonce});e(q,r,p.playerType)});
  7144. g.N(this,this.yh);g.N(this,this.Zc);Heb(this,m);this.videoData.subscribe("dataupdated",this.nca,this);this.videoData.subscribe("dataloaded",this.aO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.EB,this);this.BI();O4a(this.Jf);this.visibility.subscribe("visibilitystatechange",this.Jf);this.HN=new g.xv(this.GL,g.EI(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.IN=
  7145. new g.xv(this.GL,g.EI(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
  7146. KK=function(a){return a.L("html5_not_reset_media_source")&&!a.Ui()&&!a.videoData.isLivePlayback&&g.nT(a.videoData)&&!a.W.supportsGaplessShorts()};
  7147. Heb=function(a,b){if(2===a.playerType||a.W.hp)b.VT=!0;var c=NUa(b.yd,b.PA,a.W.D,a.W.N);c&&(b.adFormat=c);2===a.playerType&&(b.fl=!0);if(a.isFullscreen()||a.W.D)c=g.YB("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&r0(a,b.endSeconds)};
  7148. Jeb=function(a){if(a.videoData.Y){var b=a.kd.Wc();a.videoData.vy=a.videoData.vy||(null==b?void 0:b.XO());a.videoData.wy=a.videoData.wy||(null==b?void 0:b.aP())}if(zWa(a.videoData)||!MWa(a.videoData))b=a.videoData.errorDetail,a.Zf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.An||void 0);a.videoData.Rf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&Ieb(a);a.L("html5_enable_d6de4")&&a.GT()};
  7149. Keb=function(a){ydb(a.HA);g.vb(a.HA);for(var b=a.IA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())ydb(d.value);b.j.clear();g.vb(a.IA)};
  7150. Leb=function(a){return a.mediaElement&&a.mediaElement.Ev()?a.mediaElement.Hb():null};
  7151. x0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.ue())return!0;a.Zf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
  7152. g.OX=function(a,b){(b=void 0===b?!1:b)||g.sT(a.videoData)||vY(a.uc());a.Tt=b;!x0(a)||a.eq.Xt()?g.PI(a.W)&&a.videoData.isLivePlayback&&a.eq.Xt()&&!a.eq.j&&!a.Tt&&a.aO():(a.eq.start(),b=a.uc(),g.LM(b.provider),b.qoe&&Qcb(b.qoe),a.aO())};
  7153. Meb=function(a){var b=a.videoData;Feb(a).then(void 0,function(c){a.videoData!==b||b.Ma()||(c=YJ(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Zf(c.errorCode,2,unescape(a.videoData.errorReason),VJ(c.details),a.videoData.errorDetail,a.videoData.An||void 0):a.handleError(c))})};
  7154. p5a=function(a,b){a.Uc=b;a.ya&&abb(a.ya,new g.z_(b))};
  7155. Peb=function(a){if(!g.TF(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.cq=g.Lb(a.videoData.Ea),g.cT(a.videoData)){a.Mb.tick("bpd_s");y0(a).then(function(){a.Mb.tick("bpd_c");if(!a.Ma()){a.Tt&&(a.Fc(TK(TK(a.playerState,512),1)),v0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&r0(a,c.endSeconds);a.eq.j=!0;z0(a,"dataloaded");a.Sr.Xt()&&Neb(a);zcb(a.rk,a.Kf)}});
  7156. a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Of.toFixed(3)},!0);var b=NWa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);Oeb(a)}else z0(a,"dataloaded")};
  7157. y0=function(a){A0(a);a.Kf=null;var b=Pdb(a.W,a.videoData,a.Vh());a.ZF=b;a.ZF.then(function(c){Qeb(a,c)},function(c){a.Ma()||(c=YJ(c),a.visibility.isBackground()?(B0(a,"vp_none_avail"),a.ZF=null,a.eq.reset()):(a.eq.j=!0,a.Zf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VJ(c.details))))});
  7158. return b};
  7159. K_=function(a){a.logger.debug("Updating for format change");y0(a).then(function(){return v0(a)});
  7160. a.playerState.isOrWillBePlaying()&&a.playVideo()};
  7161. Qeb=function(a,b){if(!a.Ma()&&!b.videoData.Ma()){a.logger.debug("finished building playback data");a.Kf=b;ceb(a.Zc,a.Kf);if(a.videoData.isLivePlayback){var c=v6a(a.kd.pu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ga);c=a.L("html5_onesie_live")&&c;0<a.videoData.Kb&&!OS(a.videoData)||c||a.seekTo(a.Ke(),{wd:"videoplayer_playbackData",seekSource:18})}a.videoData.C.j?a.ya?g.JE(Error("Duplicated Loader")):(c=g.EI(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&v_(a)&&v6a(a.kd.pu,a.videoData.Wea)?
  7162. g.XA(function(){a.Ma()||a.ya||Reb(a)},c):Reb(a):!a.videoData.C.j&&rT(a.videoData)&&a.LK(new HZ(a.videoData.videoId||"",4));
  7163. C0(a);qcb(b).then(function(){var d={};a.Ko(d);a.W.zc()&&a.L("html5_log_media_perf_info")&&a.ma("av1Info",d);u0(a)})}};
  7164. Seb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.OX(a);x0(a)&&!g.TF(a.playerState,128)&&(a.Sr.Xt()||(a.Sr.start(),a.videoData.Hl?a.Fc(TK(a.playerState,4)):a.Fc(TK(TK(a.playerState,8),1))),Neb(a))};
  7165. Neb=function(a){a.Ma();a.logger.debug("try finish readying playback");if(a.Sr.j)a.logger.debug("already finished readying");else if(a.eq.j)if(g.TF(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.cq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.cq});
  7166. else if(a.yh.started||Kdb(a.yh),a.Kn())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.MP=U7a(a.ya.timing));a.Sr.j||(a.Sr.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ga);!a.videoData.isLivePlayback||0<a.videoData.Kb&&!OS(a.videoData)||b||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{wd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.FS=!0));wdb(a.uc());a.logger.debug("finished readying playback");a.publish("playbackready",
  7167. a);hH("pl_c",a.Mb.timerName)||(a.Mb.tick("pl_c"),iH("pl_c",void 0,"video_to_ad"));hH("pbr",a.Mb.timerName)||(a.Mb.tick("pbr"),iH("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
  7168. PX=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Fc(b?new g.QK(14):new g.QK)};
  7169. r0=function(a,b){a.Sq&&Teb(a);a.Sq=new g.jJ(1E3*b,0x7ffffffffffff);a.Sq.namespace="endcr";a.addCueRange(a.Sq)};
  7170. Teb=function(a){a.removeCueRange(a.Sq);a.Sq=null};
  7171. Ueb=function(a,b,c,d,e){var f=a.uc(e);e=g.sT(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.dV(a);f.VF(new jcb(e,c,b,h?h.itag:"",d));c=a.rk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,"m"===b)};
  7172. g.dV=function(a){var b=D0(a);return eP(b)||!a.Kf?null:g.Db(a.Kf.j.videoInfos,function(c){return b.D(c)})};
  7173. D0=function(a){if(a.Kf){var b=a.rk;var c=a.Kf;a=a.qw();if(b.ea.pm().isInline())var d=DS;else b.L("html5_exponential_memory_for_sticky")?d=.5>UTa(b.W.Of,"sticky-lifetime")?"auto":fP[YO()]:d=fP[YO()],d=g.dP("auto",d,!1,"s");if(eP(d)){d=lcb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;kqa()&&!g.PI(b.W)&&kK(c.j.videoInfos[0])&&
  7174. (f=Math.min(f,g.eK.large));h=g.EI(b.W.experiments,"html5_chipset_soft_cap");0<h&&(f=Math.min(f,h));d=e.call(d,new bP(0,f,!1,"o"));e=d.compose;f=4320;!b.W.B||g.GR(b.W)||b.W.L("hls_for_vod")||b.W.L("mweb_remove_360p_cap")||0!==g.EI(b.W.experiments,"html5_byterate_soft_cap_mweb")||(f=g.eK.medium);(h=g.EI(b.W.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.W.L("html5_always_apply_default_quality_cap")||!c.videoData.Yi&&!c.videoData.le)&&(f=Math.min(f,h));(h=g.EI(b.W.experiments,"html5_ns_yt_progressive_quality_cap"))&&
  7175. !c.j.j&&"yt"===b.W.ra&&(f=Math.min(f,h));h=g.EI(b.W.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.EI(b.W.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.u(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.EI(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=xcb(b,c,f);d=e.call(d,0<g.EI(b.W.experiments,"html5_byterate_soft_cap_mweb")&&
  7176. b.W.B&&!g.GR(b.W)?new bP(0,4320===f?0:f,!1,"d",g.EI(b.W.experiments,"html5_byterate_soft_cap_mweb")):new bP(0,4320===f?0:f,!1,"d")).compose(wcb(b,c.videoData)).compose(ycb(b,c.videoData,c)).compose(vcb(b,c)).compose(ocb(b,c));if(eP(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(pcb(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(vcb(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(pcb(b,c)));d=d.compose(ocb(b,c));b=c.videoData.xA.compose(d).compose(c.videoData.mX).compose(a)}else b=
  7177. DS;return b};
  7178. Y$a=function(a){var b=a.rk;a=a.videoData;var c=wcb(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(ycb(b,a));return c};
  7179. g.Veb=function(a,b,c,d){a.videoData.xA=b;if(a.Kf&&c){c=a.rk;var e=a.Kf;if(e.j.j){var f=YO(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=ncb(c,null==(l=e.j)?void 0:l.videoInfos);l=c.ea.getPlaybackRate();1<l&&f&&(l=xTa(c.W.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.ea.setPlaybackRate(1));var m,n;b=g.eK[gP(b)];e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.XB("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.W.schedule.policy.C=480<=YO();if(c.L("html5_exponential_memory_for_sticky")){m=
  7180. c.W.Of;n=1;var p=void 0===p?!1:p;TTa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.xr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.xr["sticky-lifetime"]=0);p&&.0625<UTa(m,"sticky-lifetime")&&(n=2*m.xr["sticky-lifetime"]);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.xr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=void 0===c?!1:c;m=m.L("html5_gradual_perf_cap");m=void 0===m?!1:m;if(void 0===n?0:n){n=
  7181. ZO();b=g.u(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,0!==e.indexOf("1")&&(n[e]=0);g.XB("yt-player-performance-cap",n,m?2592E3:604800)}else g.ZB("yt-player-performance-cap");SOa(c);if(c){c=g.u(SQ.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||SQ.delete(m);c=g.u(L_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||L_.delete(m);c=g.u(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else SQ.clear(),L_.clear(),
  7182. p.clear()}}}}a.ya&&(p=a.ya,d=d||"",yV(p.policy)?vZ(p.C.j,d):vZ(p.j.G,d));C0(a)};
  7183. Ieb=function(a){a.videoData.videoId?a.kd.QO(a.videoData.videoId).then(function(b){a.videoData.Sea=b}):a.ma("pomvid",{})};
  7184. C0=function(a){if(!a.Ma()&&!g.TF(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)u0(a);else{var b=D0(a),c=a.videoData;a:{var d=a.videoData.pd;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.eK[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.gb=d;Ueb(a,b.reason,Web(a,a.videoData.gb))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Zc.Ca=!1,a.playVideo()}};
  7185. u0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=D0(a);a.ya&&Jab(a.ya,b)}};
  7186. Xeb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.zC&&(null==(b=a.videoData.B)?0:oK(b)))};
  7187. Yeb=function(a){if(!Xeb(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
  7188. $eb=function(a){var b=Zeb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.lc.getName()===b})};
  7189. Zeb=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
  7190. Reb=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.W.j.c,cver:a.W.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;for(var f=g.u(Object.values(b.j)),h=f.next();!h.done;h=f.next())rRa(h.value.resource,d,e);f=void 0;null==(f=b.Z)||rRa(f,d,e)}c=a.W;d=a.videoData;b=new g.PZa(c);e=OZa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,OE:d.OE});b.N=e;b.ra=d.maxReadAheadMediaTimeMs/1E3||b.ra;e=c.schedule;e.B.Zg()===
  7191. e.policy.B?b.gb=10:b.gb=d.minReadAheadMediaTimeMs/1E3||b.gb;b.Qf=d.readAheadGrowthRateMs/1E3||b.Qf;Js&&(b.Qc=41943040);b.Ll=!YDa();g.PI(c)||!YDa()?(e=c.experiments,b.Ca=8388608,b.bb=524288,b.Fl=5,b.Na=1048576,b.fv=1.5,b.sb=4587520,lqa()&&(b.sb=786432),b.Z*=1.1,b.Y*=1.1,b.qc=!0,b.Qc=b.Ca,b.Be=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.Z*=1.3,b.Y*=1.3);g.aK&&g.nB("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.Ca=20971520,
  7192. b.bb=1572864,e&&(b.sb=812500,b.uj=1E3,b.Jv=5,b.Na=2097152));g.bR&&(b.qc=!0);c.supportsGaplessAudio()||(b.Tm=!1);zR&&(b.Tb=!0);b.Jd=c.L("html5_peak_shave");"onesie"===d.fetchType&&c.L("html5_disable_peak_shave_for_onesie")&&(b.Jd=!1);var l;e=null==(l=d.j)?void 0:mP(l);if(OS(d)){b.je=!0;b.qn=!0;b.zb=!0;b.Bj=!0;b.uv=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.L("html5_disable_low_pipeline"))b.Vo=2,b.Zo=4;b.Sj=d.defraggedFromSubfragments;if(d.Gf||c.L("html5_publish_all_cuepoints"))b.vy=
  7193. !0;g.fT(d)&&(b.Za=!1);b.Jl=g.NI(c)}d.isAd()&&(b.qj=0,b.Mi=0);b.Sg=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.j=/^rq/.test(d.clientPlaybackNonce)||c.zc();rqa()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.qc=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.EI(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":
  7194. d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.Sa.C=OS(d)?.5:0;if(!l.policy.D&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.B=m%f;l.C=m===f;l.gm=!0;l.G=HTa(l)}d.isLivePlayback&&(b.sj=g.EI(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||
  7195. .25);WS(d)&&(b.Sg=!0,"LOW"===d.latencyClass?b.Kb=g.EI(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===d.latencyClass&&(b.Kb=g.EI(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Gp=!0);d.Zb()&&(b.Hl=1.3);b.Tb=b.Tb||d.BH;b.B=g.sT(d);b.Va=d.Y||b.B&&!c.L("html5_enable_ssap_seteos");c.zc()&&(b.La=!0);d.Y&&!e&&(b.hv=!0);d.Y&&d.isAd()&&(b.Z*=1.6,b.Y*=1.6);rT(d)&&(b.D=d.videoId,b.El=!0,b.Hv=g.EI(c.experiments,"html5_offline_download_timeout_retry_limit"),d.py&&
  7196. 0<d.py.length&&(b.Sd=d.py));b.rh=d.El;b.jj=fTa(c,{},d.C||void 0,eWa(d));b.Wa=US(d)&&g.jG(c);NS(d)&&(c.L("html5_support_sabr_partial_segment_eviction")&&(b.Fk=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.ov=!0),b.C=!0,b.Ml=c.L("html5_disable_client_resume_policy_for_sabr"),b.Fv=c.L("html5_trigger_loader_when_idle_network"),b.Tp=c.L("html5_enable_platform_backpressure_with_sabr"),b.Of=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.wy=c.L("html5_sabr_report_next_ad_break_time"),
  7197. b.K=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Xm=c.L("html5_sabr_exclude_quality_ordinal_check"),b.To=c.L("html5_log_high_res_buffer_timeline"),b.Iv=c.L("html5_gapless_sabr_btl_last_slice")&&TS(d),OS(d)&&(b.Nl=c.L("html5_disable_variability_tracker_for_live"),b.Sa=c.L("html5_sabr_use_accurate_slice_info_params")),b.py=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"),b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.sT(d),b.nj=c.L("html5_ignore_partial_segment_from_live_readahead"));
  7198. b.G=b.C&&c.L("html5_sabr_live");qP(c.G,rP.BITRATE)&&(b.sb=NaN);if(l=g.EI(c.experiments,"html5_request_size_max_kb"))b.Na=1024*l;c.G.D?b.rb="; "+rP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.rb="; tunnelmode=true");l=d.serverPlaybackStartConfig;(null==l?0:l.enable)&&(null==l?0:l.playbackStartPolicy)&&(b.Sf=!0,RZa(b,l.playbackStartPolicy,2));if(a.W.experiments.fb("enable_audio_description_setting")&&g.cC(g.bC(),198))for(l=a.videoData.getAvailableAudioTracks(),l=g.u(l),c=
  7199. l.next();!c.done;c=l.next())if(c=c.value,c.G){var q=c;break}q||(q=a.getAudioTrack(),q=q.lc.isDefault?void 0:q);a.qB.removeAll();a:{l=a.kd.pu;if(c=a.videoData.videoId)if(d=l.j.get(c)){l.j.remove(c);l=d;break a}l=void 0}a.ya=new g.u_(a,a.W.schedule,b,a.videoData.j,a.videoData.C,D0(a),q,a.videoData.enableServerStitchedDai,l,a.videoData.Sa);q=a.Tt&&g.PI(a.W)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(),D0(a),q);a.videoData.probeUrl&&(a.ya.Va=a.videoData.probeUrl);if(a.cq.length||a.Tt)a.videoData.cotn||
  7200. E0(a,!1);eeb(a.Zc,a.ya);a.Uc&&abb(a.ya,new g.z_(a.Uc));a.Ib&&(a.ya.LL(a.Ib),a.Zc.Ca=!1);g.tT(a.videoData)&&(a=a.ya,a.policy.Ki=a.policy.gD)};
  7201. A0=function(a){a.ya&&(a.ya.dispose(),a.ya=null,eeb(a.Zc,null));KK(a)?afb(a):RX(a)};
  7202. afb=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.Ez(),a.Qa.K)try{a.W.zc()&&a.ma("rms",{l:"vprms",sr:KK(a),rs:MK(a.Qa)});a.Qa.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.eC("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=YJ(b),a.handleError(b),RX(a)}else RX(a)};
  7203. RX=function(a){a.Qa&&(a.logger.debug("remove media source"),aEa(a.Qa),a.Ez(),a.Qa.dispose(),a.Qa=null)};
  7204. bfb=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.pB()&&a.videoData.hQ()&&dEa(a.mediaElement);var b=a.mediaElement.lr(a.oE(),a.YO())}catch(d){if(ccb(a.Qk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Zf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}B4a(a,b)}var c;return(null==(c=a.lr())?void 0:c.C)||null};
  7205. B4a=function(a,b,c,d){function e(f){try{cfb(a,f,c,d)}catch(h){g.JE(h),a.handleError(new WJ("fmt.unplayable",{msi:"1",ename:h&&"object"===typeof h&&"name"in h?String(h.name):void 0},1))}}
  7206. c=void 0===c?!1:c;d=void 0===d?!1:d;dfb(a);a.Qa=b;KK(a)&&"open"===MK(a.Qa)?e(a.Qa):VDa(a.Qa,e)};
  7207. dfb=function(a){if(a.ya){var b=a.getCurrentTime()-a.Kc();a.ya.seek(b,{}).xl(function(){})}else Reb(a)};
  7208. cfb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&OS(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
  7209. f>a.Qa.getDuration()&&a.Qa.vl(f)}else a.Qa.vl(e);Gab(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}};
  7210. Lab=function(a,b){Ueb(a,b.reason,b.j.info,b.token,b.videoId)};
  7211. J_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.G(function(h){if(1==h.j){a.ya&&a.ya.Cw();a.ya&&a.ya.Ma()&&A0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Ui()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Fc(TK(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,y0(a),2):h.Ia(2)}a.videoData.Zb()&&(null==(e=a.ya)?0:e.Ga)&&((f=a.isAtLiveHead())&&MS(a.videoData)?a.seekTo(Infinity,{wd:"videoPlayer_getNewElement"}):
  7212. a.videoData.Zd&&a.ya&&(l=a.ya,l.manifest.Zb&&(l.manifest.Zd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{wd:"loader_resetSqless"}),l.videoTrack.Z=!0,l.audioTrack.Z=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):PQ(l.manifest)&&d_(l))));c&&a.seekTo(0);g.TF(a.playerState,8)&&a.playVideo();g.Aa(h)})};
  7213. F0=function(a,b){a.ma("hgte",{ne:+b});a.videoData.Y=!1;b&&J_(a);a.ya&&Dab(a.ya)};
  7214. J4a=function(a,b){a.ma("newelem",{r:b});J_(a)};
  7215. efb=function(a,b){a.Mb.D.cR();g.TF(a.playerState,32)||(a.Fc(TK(a.playerState,32,null==b?void 0:b.seekSource)),g.TF(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Sc()};
  7216. x5a=function(a,b){b=null==b?void 0:b.seekSource;g.TF(a.playerState,32)?(a.Fc(VK(a.playerState,16,32,b)),a.publish("endseeking",a)):g.TF(a.playerState,2)||a.Fc(TK(a.playerState,16,b));a.Mb.D.iR(a.videoData,a.playerState.isPaused())};
  7217. dZa=function(a){var b=0,c="";if(a.Uc){if(a.Uc.yn)return"D,";b=a.Uc.WO();c=a.Uc.Nz().substring(0,4)}else a.Ib&&(b=a.Ib.WO(),c=a.Ib.Nz().substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
  7218. z0=function(a,b){a.publish("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
  7219. ffb=function(a){for(var b=g.u("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.nC.T(a.mediaElement,c.value,a.SK,a);a.W.Pl&&a.mediaElement.Ev()&&(a.nC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.L$,a),a.nC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.M$,a))};
  7220. hfb=function(a){g.$A(a.gL);gfb(a)||(a.gL=g.YA(function(){return gfb(a)},100))};
  7221. gfb=function(a){var b=a.mediaElement;b&&a.zK&&!a.videoData.Ga&&!hH("vfp",a.Mb.timerName)&&2<=b.Kk()&&!b.isEnded()&&0<zK(b.Sh())&&a.Mb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ga&&0<b.getDuration()&&(b.isPaused()&&2<=b.Kk()&&0<zK(b.Sh())&&(hH("pbp",a.Mb.timerName)||a.Mb.tick("pbp"),!a.videoData.Hl||a.f0||b.isSeeking()||(a.f0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),g0(a.CD,b))?(z4a(a),!0):!1};
  7222. z4a=function(a){g.$A(a.gL);a.bx.stop();a.videoData.Ga=!0;a.W.To=!0;a.W.Kb=0;var b=a.Qk;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.qb;if(!c.experiments.fb("html5_cap_change_disabled_codecs_update_only")||c.C.has(d))c.C.delete(d),c.B=!0}b.j.stop();ifb(a);g.TF(a.playerState,8)&&a.Fc(UK(a.playerState,65));a.Tt=!1;$5a(a.uc());g.yv(a.HN);a.publish("playbackstarted");(a=g.Xa("yt.scheduler.instance.clearPriorityThreshold"))?a():nC(0,0)};
  7223. ifb=function(a){var b=a.kd.Ld(),c={},d={};!hH("pbs",a.Mb.timerName)&&LG.measure&&LG.getEntriesByName&&(LG.getEntriesByName("mark_nr")[0]?zza("mark_nr"):zza());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.W.experiments.fb("web_csi_via_jspb")){var e=new pA;Tk(e,6,!0);var f=new qA;Hk(f,pA,22,e);g.JA($G)(f,a.Mb.timerName)}else d.isPausedOnLoad=!0;a.W.experiments.fb("web_csi_via_jspb")?
  7224. (e=new pA,b.B?Uk(e,1,Number(b.B.itag)):Uk(e,1,-1),f=new qA,Hk(f,pA,22,e),g.JA($G)(f,a.Mb.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.nj&&(f=a.MP?2:1,a.W.experiments.fb("web_csi_via_jspb")?(e=new pA,S(e,8,f),f=new qA,Hk(f,pA,22,e),g.JA($G)(f,a.Mb.timerName)):d.preloadType=String(a.MP?2:1));c.liveStreamMode=jfb[aT(b)];c.playerInfo=d;a.Mb.infoGel(c);if(a.ya){b=a.ya.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=
  7225. c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var h in b)b.hasOwnProperty(h)&&a.Mb.tick(h,b[h])}};
  7226. kfb=function(a){a.uc().xg();if(MS(a.videoData)&&Date.now()>a.qZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&RSa(a.videoData.j))){var b=a.uc();if(b.qoe){b=b.qoe;var c=b.provider.ea.DE(),d=g.LM(b.provider);Ncb(b,d,c);c=c.C;isNaN(c)||g.O_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.NI(b.U())?!0:"TVHTML5"===g.gR(b.U())?"6"===b.Dl:!1):b=g.NI(a.W);b&&a.ma("rawlat",{l:cV(a.mT,"rawlivelatency").toFixed(3)});a.qZ=Date.now()}a.videoData.B&&oK(a.videoData.B)&&(b=Leb(a))&&
  7227. b.videoHeight!==a.tQ&&(a.tQ=b.videoHeight,Ueb(a,"a",Web(a,a.videoData.gb)))};
  7228. Web=function(a,b){if("auto"===b.j.video.quality&&oK(b.getInfo())&&a.videoData.pd)for(var c=g.u(a.videoData.pd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.tQ&&"auto"!==d.j.video.quality)return d.getInfo();return b.getInfo()};
  7229. Geb=function(a){if(!MS(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=OS(a.videoData)?a.ya.uI.Zg()||0:a.videoData.j.Ca);return(0,g.EC)()/1E3-a.Ze()-b};
  7230. mfb=function(a){a.mediaElement&&a.mediaElement.Vh()&&(a.bK=(0,g.EC)());a.W.Qp?g.XA(function(){lfb(a)},0):lfb(a)};
  7231. lfb=function(a){var b;if(null==(b=a.Qa)||!b.xm()){if(a.mediaElement)try{a.fL=a.mediaElement.playVideo()}catch(d){B0(a,"err."+d)}if(a.fL){var c=a.fL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
  7232. if(!g.TF(a.playerState,4)&&!g.TF(a.playerState,256)&&a.fL===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message});
  7233. else{var e="promise";d&&d.name&&(e+=";m."+d.name);B0(a,e);a.yW=!0;a.videoData.Sf=!0}})}}};
  7234. B0=function(a,b){g.TF(a.playerState,128)||(a.Fc(VK(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
  7235. v0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=bfb(a);var d;null==(d=a.ya)||d.resume()}else A0(a),a.videoData.gb&&(c=a.videoData.gb.YC());b=c;d=a.mediaElement.QH();c=!1;d&&null!==b&&b.resource===d.resource||(nfb(a,b),c=!0);g.TF(a.playerState,2)||(b=a.Zc,b.G||!(0<b.D)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={wd:"seektimeline_resumeTime"},b.videoData.Ga||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(NS(a.videoData)){if(!a.videoData.Ui())break a}else if(!g.$S(a.videoData))break a;
  7236. if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Ev()){var e=a.mediaElement.Hb();if(a.Ce)if(e!==a.Ce.element)G0(a);else if(b&&"fairplay"===d.flavor&&!qB())G0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&qB()&&"widevine"===d.flavor)a.Zf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ce=new Sbb(e,a.videoData,a.W);a.Ce.subscribe("licenseerror",a.KK,a);a.Ce.subscribe("qualitychange",a.Daa,a);a.Ce.subscribe("heartbeatparams",
  7237. a.JF,a);a.Ce.subscribe("keystatuseschange",a.Yp,a);a.Ce.subscribe("ctmp",a.ma,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&"widevine"===d.flavor&&a.Ce.zx(new GZ(ofb,"cenc",!1));b=g.u(a.qB.keys);for(d=b.next();!d.done;d=b.next())d=a.qB.get(d.value),a.Ce.zx(d);a.L("html5_eme_loader_sync")||a.qB.removeAll()}}else a.Zf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
  7238. nfb=function(a,b){a.Mb.tick("vta");iH("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&ieb(a.Zc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&nC(0,4);!a.videoData.Ga&&a.playerState.isOrWillBePlaying()&&a.bx.start();if(Xeb(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
  7239. G0=function(a){a.Ce&&(a.Ce.dispose(),a.Ce=null)};
  7240. MX=function(a,b){b=void 0===b?!1:b;return MS(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Fr()||g.fT(a.videoData))?a.getCurrentTime():g.sT(a.videoData)&&a.Ib?T5a(a.Ib,a.getCurrentTime()):a.Ke(b)};
  7241. pfb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(G0(a),RX(a),bfb(a)):(a.videoData.gb&&a.videoData.gb.IS(),a.mediaElement.stopVideo()),a.playVideo())};
  7242. qfb=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.ma("bufreason",{r:b,lact:YD()})};
  7243. iY=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){var m=2===c.playerType?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.uc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.yd,w=q.provider.videoData.clientPlaybackNonce,A=q.provider.videoData.videoId,D=t!==w&&p!==A;w=r!==w&&n!==A;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=w?r:"",q.Y=w?n:"",q.adFormat=w?v:void 0,uY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=D?t:"",q.Y=D?p:"",q.adFormat=D?v:void 0,uY(q,2,
  7244. h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),b0(f,!0).send(),a0(f),d!==l.provider.videoData.clientPlaybackNonce){pdb(f);var F;null==(F=l.j)||kdb(F);l.C.delete(d)}}else l.Hg=l.provider.videoData.clientPlaybackNonce,l.Hg&&l.j&&(l.C.set(l.Hg,l.j),b0(l.j).send(),a0(l.j));F=c.cpn;m=m.videoData;d=e-a.It();if(l.C.has(F)){m=l.C.get(F);var H=m.C&&isNaN(m.D)?Z_(m):NaN;m=odb(m,!1);isNaN(H)||(m.G=H);m.send()}else m=Bdb(l,l.provider,m,d),l.C.set(F,m),qdb(m,new g.SF(TK(new g.QK,8),new g.QK)),
  7245. jdb(m),null==(H=l.j)||a0(H);l.Hg=F;a.L("html5_unify_csi_server_stitched_transition_logging")?AZa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,gH(b,l),g.fH({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),eH("pbs",e,b))}}};
  7246. rfb=function(a,b){if(a.W.zc()&&a.mediaElement){var c=a.mediaElement.kc();c.omt=(a.mediaElement.getCurrentTime()+a.Kc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.LM(a.uc().provider)).toFixed();c.e=b;a.iL[a.g0++%5]=c}try{if("timeupdate"===b||"progress"===b)return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
  7247. sfb=function(a){if(a.W.zc()){a.iL.sort(function(d,e){return+d.rt-+e.rt});
  7248. for(var b=g.u(a.iL),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.iL=[];a.g0=0}};
  7249. tfb=function(a){if(g.nB("cobalt")&&g.nB("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
  7250. y4a=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
  7251. E0=function(a,b){var c;null==(c=a.ya)||x_(c,b)};
  7252. v_=function(a){return g.Fb(a.cq,"ad")};
  7253. Oeb=function(a){KS(a.videoData,"html5_set_debugging_opt_in")&&(a=g.bC(),g.cC(0,183)||(pra(183,!0),a.save()))};
  7254. ufb=function(a){return g.sT(a.videoData)&&a.Ib?tY(a.Ib):a.videoData.Ke()};
  7255. gbb=function(a,b){a.kd.Tn()||(a.ma("sgap",{f:b}),a.kd.clearQueue(!1,"pe"===b))};
  7256. g.H0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.RQ("App");this.WA=this.xi=!1;this.Gs={};this.pL={};this.LB=[];this.VY=!1;this.cQ=null;this.aZ=!1;this.Rw=!0;this.bT=!1;this.uZ=this.vQ=null;this.HZ=!0;this.mediaElement=this.Ab=null;this.SQ=NaN;this.YF=!1;this.Ae=this.pC=this.Ib=this.xe=this.screenLayer=this.mG=this.tb=this.playlist=null;this.logger.debug("constructor begin");this.config=Yqa(b||{});this.webPlayerContextConfig=c;Cra();b=this.config.args||{};this.W=new gUa(b,c,c?c.canaryState:
  7257. this.config.assets.player_canary_state,d,this);g.N(this,this.W);h5a(this.W);this.W.experiments.fb("jspb_serialize_with_worker")&&Sua();this.W.experiments.fb("gzip_gel_with_worker")&&qta();this.W.experiments.fb("web_player_empty_translator")?Kva({},{}):this.W.experiments.fb("web_player_all_payloads_via_jspb")&&Kva(vfb,wfb);this.W.B&&!xfb&&(window.addEventListener(yR?"touchstart":"click",q4a,{capture:!0,passive:!0}),xfb=!0);this.L("html5_onesie")&&(this.Bx=new AX(this.W),g.N(this,this.Bx));this.A1=
  7258. wB(DR(this.W)&&!0,b.enablesizebutton);this.oQ=wB(!1,b.player_wide);this.visibility=new Q4a;g.N(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.YB(wB(!1,b.player_wide));this.xi=wB(!1,b.external_list);this.events=new g.cK(this);g.N(this,this.events);this.L("start_client_gcf")&&(yua(cE(),{jG:eD,NT:Jsa()}),this.m7=cE().resolve(eD),Msa(this.m7));this.Pca=new DT;g.N(this,this.Pca);this.X7=new DT;g.N(this,this.X7);this.Cr=new G6a;d=new bXa;this.Ua=new g.NT(this,d);g.N(this,this.Ua);
  7259. this.template=new A6a(this);g.N(this,this.template);this.appState=1;this.Hi=yfb(this);this.J=new g.JT(this,d,!0,1);g.N(this,this.J);g.N(this,d);d={};this.EN=(d.internalvideodatachange=this.P$,d.playbackready=this.R$,d.playbackstarted=this.S$,d.statechange=this.T$,d);this.b8=new mV(this.Ua);this.Od=zfb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&Afb||b)w_a(this.Od,b).then(function(h){e.W.Id=h;var l;null==(l=g.HT(e))||l.ma("wasm",{a:h.Kp})},function(h){g.JE(h);
  7260. h="message"in h&&h.message||h.toString()||"";var l;null==(l=g.HT(e))||l.ma("wasm",{e:h})});
  7261. else if(d&&!Afb){var f;null==(f=g.HT(this))||f.ma("wasm",{e:"wasm unavailable"})}this.x$=new g.cK(this);g.N(this,this.x$);this.Mb=new yZa(this.W,this.Od);this.Ua.publish("csiinitialized");this.xb=Bfb(this);this.xb.setPlaybackRate(this.W.D?1:Cfb(this,Number(g.YB("yt-player-playback-rate"))||1));g.bF(this.xb,this.EN,this);Jeb(this.xb);f={};this.n0=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.cR,f.endseeking=this.iR,
  7262. f.internalAbandon=this.KF,f.internalaudioformatchange=this.DF,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.VF,f.liveviewshift=this.Eaa,f.playbackstalledatstart=this.Yba,f.progresssync=this.mba,f.onAbnormalityDetected=this.DK,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.iB,f.SEEK_TO=this.Nba,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.Zaa,f.playbackready=
  7263. this.aba,f.statechange=this.R_,f.connectionissue=this.HF,f.newelementrequired=this.y_,f.heartbeatparams=this.JF,f.videoelementevent=this.SK,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.Tba,f.nonfatalerror=this.Saa,f);this.ou=new g.cK(this);g.N(this,this.ou);f=10;g.PI(this.W)&&(f=3);SR(this.W)&&(f=g.EI(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.pu=new GY;g.N(this,this.pu);this.Hx=new EY(f,function(h){h!==g.HT(e,h.getPlayerType())&&h.dispose()});
  7264. g.N(this,this.Hx);this.JO=this.bJ=-1;this.CL=new g.xv(this.template.resize,16,this.template);g.N(this,this.CL);this.Uc=new e6a(this.Ua,this.W,this.xb);this.fq=new $X(this.W);this.Hk=new H4a(this);g.N(this,this.Hk);this.pM=new IX(this);g.N(this,this.pM);t6a(this.W.j.c);this.events.T(this.Ua,g.kJ("appapi"),this.N$);this.events.T(this.Ua,g.lJ("appapi"),this.O$);this.events.T(this.Ua,g.kJ("appprogressboundary"),this.lba);this.events.T(this.Ua,g.lJ("applooprange"),this.FL);this.events.T(this.Ua,"presentingplayerstatechange",
  7265. this.nk);this.events.T(this.Ua,"resize",this.zba);this.template.Ja(nf(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.Uaa);this.QT=Dfb(this,this.template.element);g.N(this,this.QT);this.Od.J.U().sj&&FV(this.Od,"offline");this.W.bb&&g.rV("ux",g.yX);this.tW=new g.xv(this.Uca,g.EI(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.N(this,this.tW);this.Ld().ue()&&(g.$B()&&this.Ld().Ea.push("remote"),Efb(this));this.Mb.tick("fs");Ffb(this);this.W.bb&&FV(this.Od,"ux",!0);g.BR(this.Od.J.U())&&
  7266. FV(this.Od,"embed");this.L("web_player_sentinel_is_uniplayer")||g.JE(new g.eC("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.aB("web_player_sentinel_yt_experiments_sync");a!==f&&g.JE(new g.eC("b/195699950",{yt:a,player:f}));c||g.JE(new g.eC("b/179532961"));this.v2=Gfb(this);if(c=g.EI(this.W.experiments,"html5_block_pip_safari_delay"))this.PO=new g.xv(this.LW,c,this),g.N(this,this.PO);this.L("html5_early_media_for_sharper_shorts")&&
  7267. (g4a["247"]=Hfb);jB=this.W.Bc;c=g.EI(this.W.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.b0=new g.rg(c),g.N(this,this.b0),this.events.T(this.b0,"tick",function(){e.d0&&Ifb.Wq("apit",e.d0);e.d0=Ifb.us()}));
  7268. this.logger.debug("constructor end")};
  7269. Gfb=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.tb||a.xb).uc().Wd("player.exception",VJ(c)))}
  7270. KE.subscribe("handleError",b);HA.push(b);return function(){KE.unsubscribe("handleError",b);var c=HA.indexOf(b);-1!==c&&HA.splice(c,1)}};
  7271. Bfb=function(a){var b=new g.ES(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Bz(1,b)};
  7272. Jfb=function(a,b){if(a.xb!==b){b.getVideoData().autonavState=a.xb.getVideoData().autonavState;cF(a.xb,a.EN,a);var c=a.xb.getPlaybackRate();a.xb.dispose();a.xb=b;a.xb.setPlaybackRate(c);g.bF(b,a.EN,a);Efb(a)}};
  7273. zfb=function(a){var b="",c=y6a(a);0===c.indexOf("//")&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.JE(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new f_a(a.Ua,b);Kfb(a,b);return b};
  7274. Kfb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
  7275. b.C=c};
  7276. yfb=function(a){if(a.W.storeUserVolume){a=g.YB("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Ce(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a};
  7277. I0=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.ZU(g.Cf("AUDIO")):HX.pop()||new g.ZU(g.Cf("VIDEO"));g.N(a,a.mediaElement);a.tb&&a.tb.setMediaElement(a.mediaElement);try{a.W.pd?(a.pC&&a.events.Pc(a.pC),a.pC=a.events.T(a.mediaElement,"volumechange",a.Maa)):(a.mediaElement.RB(a.Hi.muted),a.mediaElement.setVolume(a.Hi.volume/100))}catch(e){a.yg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,
  7278. "_")));return}g.UB(a.ou);Lfb(a);var b=a.template,c=a.mediaElement.Hb();b.Dc=c;b.MJ=!1;b.Dc.parentNode||Hf(b.yz,b.Dc,0);b.nL=new g.Fs(0,0,0,0);F6a(b);IY(b);c=b.Dc;g.Fv(c,"video-stream");g.Fv(c,g.HY.MAIN_VIDEO);var d=b.app.U();d.zk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in ZJ()&&(c.playsInline=!0):d.Ol&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Pp&&b.Dc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.yg("html5.missingapi",
  7279. 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
  7280. QX=function(a,b,c){if(a.tb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
  7281. var d=null;if(a.tb){d=a.tb.getPlayerState();a.logger.debug("set presenting player, destroy modules");GV(a.Od,3);J0(a,"cuerangesremoved",a.tb.Sk());a.Hk&&!b.isGapless()&&a.tb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=KK(b)&&KK(a.tb);a.L("html5_rebase_video_to_ad_timeline")&&a.Mb.Tu("iv_s");Mfb(a,e)}1===b.getPlayerType()&&Jfb(a,b);Nfb(a,b);a.tb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.bF(b,a.n0,a);if(b.YJ())Ofb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
  7282. b,b.getVideoData());d&&!g.lEa(d,b.getPlayerState())&&a.R_(new g.SF(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.eq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Hm("onPlaybackQualityChange",c.quality);J0(a,"cuerangesadded",a.tb.Sk());c=b.getPlayerState();g.TF(c,2)?Pfb(a):g.TF(c,8)?b.playVideo():b.YE()&&b.pauseVideo();if(2===b.getPlayerType()){var f;b.getVideoData().MV=null==(f=g.HT(a,1))?void 0:f.getVideoData().clientPlaybackNonce}2!==
  7283. b.getPlayerType()||a.Gf()||(f=b.getVideoData(),a.xb.Lx(f.clientPlaybackNonce,f.yd||"",f.breakType||0,f.Of));a.logger.debug("finish set presenting player")}}};
  7284. Pfb=function(a){if(!Qfb(a)){var b=a.xb.Se();b&&(b=b.YD(),b instanceof Promise&&b.catch(function(){}));
  7285. K0(a,WK(a.getPlayerStateObject()))}};
  7286. Lfb=function(a){var b=a.mediaElement;HDa()?a.ou.T(b,"webkitpresentationmodechanged",a.Kba):window.document.pictureInPictureEnabled&&(a.ou.T(b,"enterpictureinpicture",function(){a.UB(!0)}),a.ou.T(b,"leavepictureinpicture",function(){a.UB(!1)}));
  7287. sB&&(a.ou.T(b,"webkitbeginfullscreen",function(){a.Km(3)}),a.ou.T(b,"webkitendfullscreen",function(){a.Km(0)}))};
  7288. Nfb=function(a,b){var c=b.getPlayerType();if(b!==a.xb&&b!==a.Gs[c]){var d;null==(d=a.Gs[c])||d.dispose();a.Gs[c]=b}};
  7289. Mfb=function(a,b){b=void 0===b?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.Ae){c=a.Ae;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Ej(),I0(a));a.tb&&(a.tb.Ej(!b),cF(a.tb,a.n0,a),1!==a.tb.getPlayerType()&&a.tb.dispose());a.tb=null;a.logger.debug("finish clear presenting player")};
  7290. g.HT=function(a,b){return b?1===b?a.xb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Gs[2]||a.tb:a.tb:g.sT(a.getVideoData())&&2===b?a.Gs[2]||a.tb:a.Gs[b]||null:a.tb};
  7291. Rfb=function(a,b,c,d){a=a.Bz(b,c,d);Jeb(a);return a};
  7292. L0=function(a,b){return a.Gf(b)?a.xb:b};
  7293. M0=function(a,b){var c=a.tb;return c&&b===a.xb&&a.Gf(b)&&a.Gf(c)?c:b};
  7294. Ufb=function(a){a.logger.debug("start application playback");if(a.xb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=N0(a);a.Ld().isLoaded();b&&a.qq(6);Sfb(a);p_a(a.Od)||Tfb(a)}};
  7295. Tfb=function(a){if(!N0(a)){var b=HV(a.Od);b&&!b.created&&g_a(a.Od)&&(a.logger.debug("reload ad module"),b.create())}};
  7296. Sfb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Od;p_a(c)||c.qO();!Afb&&c.J.L("html5_allow_asmjs")&&v_a(c);FV(c,"embed");FV(c,"inline_preview");FV(c,"kids");FV(c,"remote");FV(c,"miniplayer");FV(c,"offline");FV(c,"unplugged");FV(c,"ypc",!1,!0);FV(c,"ypc_clickwrap",!1,!0);FV(c,"yto",!1,!0);FV(c,"webgl",!1,!0);q_a(c)||(FV(c,"captions",!0),FV(c,"endscreen"),c.AI(),FV(c,"creatorendscreen",!0));c.dX();a.Ua.publish("videoready",b)};
  7297. O0=function(a){a=a.Ld();a.ue();return pT(a)};
  7298. Ffb=function(a){a.logger.debug("start prepare initial playback");a.xO();var b=a.config.args;I0(a);var c=a.Ld();a.Ua.Ac("onVolumeChange",a.Hi);if(b&&DZa(b)){var d=PR(a.W);d&&!a.xi&&(b.fetch=0);var e=g.BR(a.W);e&&!a.xi&&(b.fetch=0);P0(a,b);g.BR(a.W)&&a.Mb.tick("ep_pr_s");if(d&&!a.xi)Q0(a);else if(e&&!a.xi)Vfb(a);else if(!c.ue())a.playlist.onReady(function(){R0(a)})}QX(a,a.xb);
  7299. g.TF(a.xb.getPlayerState(),128)||(b=GDa(!a.W.deviceIsAudioOnly),"fmt.noneavailable"===b?a.yg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.yg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.ue()&&O0(a)&&(a.W.Ki||a.W.Li)?S0(a):c.uM?a.Ua.mutedAutoplay():g.YB("yt-player-playback-on-reload")?(g.qC("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Ca}),g.XB("yt-player-playback-on-reload",!1),S0(a)):YR(a.W)||Wfb(a),g.RR(a.W)||"MWEB"===g.gR(a.W)?
  7300. (g.jC(g.lC(),function(){T0(a)}),g.jC(g.lC(),function(){Vza()})):(T0(a),Vza()),a.logger.debug("finish prepare initial playback"))};
  7301. T0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.yv(a.tW);else{var b=a.getVideoData().botguardData;b&&g.KOa(b,a.W,a.getVideoData().Mq||"")}};
  7302. Wfb=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.qq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.TR(a.W)?g.jC(g.lC(),function(){FV(a.Od,"remote")}):FV(a.Od,"remote");
  7303. FV(a.Od,"miniplayer");a.logger.debug("initialized to CUED mode")};
  7304. S0=function(a){a.logger.debug("start initialize application playback");if(g.TF(a.xb.getPlayerState(),128))return!1;var b=a.xb.getVideoData();O0(a)&&a.W.Li&&(HX.length&&a.WA?(U0(a,{muted:!1,volume:a.Hi.volume},!1),V0(a,!1)):HX.length||a.Hi.muted||(U0(a,{muted:!0,volume:a.Hi.volume},!1),V0(a,!0)));O0(a)&&g.BR(a.W)&&b.mutedAutoplay&&(U0(a,{muted:!0,volume:a.Hi.volume},!1),V0(a,!0));b.eW&&U0(a,{muted:!0,volume:a.Hi.volume},!1);Xfb(a,1,b,!1);a.Ua.publish("initializingmode");QX(a,a.xb);a.qq(3);var c;if(!(c=
  7305. !a.W.Ym)){if(c=a.Ae){c=a.Ae;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.VY}c&&(a.Ej(),I0(a),a.xb.setMediaElement(a.mediaElement));Seb(a.xb);if(g.TF(a.xb.getPlayerState(),128))return!1;b.Hl||K0(a,3);return a.VY=!0};
  7306. N0=function(a){a=QT(a.Od);return!!a&&a.loaded};
  7307. Yfb=function(a,b){if(!a.Ab)return!1;var c=.001*a.Ab.startTimeMs-1,d=.001*a.Ab.endTimeMs;"repeatChapter"===a.Ab.type&&d--;return 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
  7308. agb=function(a){var b,c=null==(b=g.HT(a))?void 0:b.ya;a.tb&&TS(a.getVideoData())&&c&&c.policy.Va&&(b=g.EI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*Zfb(a)-b,a.L("html5_gapless_new_slr")?(a=a.pM,$fb(a.app,"gaplessshortslooprange"),b=new g.jJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Wc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
  7309. bgb=function(a){if(!(g.TF(a.xb.getPlayerState(),64)&&a.Ld().isLivePlayback&&5E3>a.Ab.startTimeMs)){if("repeatChapter"===a.Ab.type){var b,c=null==(b=oXa(a.yb()))?void 0:b.zi(),d;b=null==(d=a.getVideoData())?void 0:d.zk;c instanceof g.VV&&b&&(d=b[nW(b,a.Ab.startTimeMs)],c.uG(0,d.title));isNaN(Number(a.Ab.loopCount))?a.Ab.loopCount=0:a.Ab.loopCount++;1===a.Ab.loopCount&&a.Ua.jb("innertubeCommand",a.getVideoData().Xea)}c={wd:"application_loopRangeStart"};if("clips"===a.Ab.type||"shortsLoop"===a.Ab.type)c.seekSource=
  7310. 58;a.xb.seekTo(.001*a.Ab.startTimeMs,c)}};
  7311. Cfb=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
  7312. Zfb=function(a,b){b=g.HT(a,b);if(!b)return 0;b=L0(a,b);return W0(a,MX(b),b)};
  7313. W0=function(a,b,c){if(a.Gf(c)){c=c.getVideoData();if(X0(a))c=b;else{a=a.Uc;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.bd===e.bd){b+=e.jc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.bd===e.bd)break;var f=e.jc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Vd/1E3;else break}c=d}return c}return b};
  7314. cgb=function(a,b){if(3===a.getPresentingPlayerType())return WK(QT(a.Od).Fe);if((a.getVideoData().enableServerStitchedDai||g.sT(a.getVideoData()))&&2===b){var c,d;return(null==(c=a.xe)?0:c.wm(a.getCurrentTime()))||(null==(d=a.Ib)?0:d.wm())?a.bJ:-1}return 2!==b||a.Gf()?a.bJ:a.JO};
  7315. Efb=function(a){a.logger.debug("reset for new application playback");Y0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Ua.publish("legacyadtrackingpingreset");a.pL={};a.LB=[];BZa(a.Mb);if(a.xe){var b=a.xe,c=a.xb;c.getPlayerType();lY(b,!1);y5a(b);z5a(b);b.ea=c}b=a.Uc;a=a.xb;1!==a.getPlayerType()&&xY(b,"invalidParentVideoPlayerType");BY(b,!1);r6a(b);b.j=a};
  7316. Q0=function(a){var b=dgb();if(b)if(!b.list)a.sI();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.pV(a.playlist).videoId||(b.index=a.playlist.index));HZa(a.playlist,b);a.mG&&egb(a,a.mG)}else a.mG=null};
  7317. Vfb=function(a,b){var c=(b?b:a.Ld()).lZ;a.Mb.tick("ep_pr_r");if(null!=c&&(HZa(a.playlist,c),a.bT))a.playlist.onReady(function(){R0(a,b)})};
  7318. P0=function(a,b){a.playlist&&(g.vb(a.playlist),a.playlist=null);b&&(a.xi&&(b.fetch=0),a.playlist=new CZa(a.W,b))};
  7319. fgb=function(a){var b,c=Number(null==(b=a.getVideoData().progressBarEndPosition)?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.Ze())&&(b-=a.getCurrentTime(),c=1E3*(c-b),b=a.pL.progressEndBoundary,(null==b?void 0:b.start)!==c&&(b&&a.tG([b]),c=new g.jJ(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.xb.addCueRange(c),a.pL.progressEndBoundary=c))};
  7320. K0=function(a,b){a.logger.debug(function(){return"set external state "+b});
  7321. if(a.tb){var c=a.tb.getPlayerType();if(2===c&&!a.Gf()){a.JO!==b&&(a.JO=b,a.Ua.jb("onAdStateChange",b));return}if(2===c&&a.Gf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Ab)return;var d;if((null==(d=a.tb)?0:d.Et())&&!WR(a.W)){a.playVideo();return}}a.bJ!==b&&(a.bJ=b,a.Ua.Hm("onStateChange",b))};
  7322. ggb=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n videoId="+b.videoId});
  7323. c=c||a.tb.getPlayerType();var f=Xfb(a,c,b,!0);f||(f=Rfb(a,c,b));if(2===c&&a.xb){var h=f.getVideoData();a.xb.Lx(h.clientPlaybackNonce,h.yd||"",h.breakType||0,h.Of)}a.TI(f,d,0,e)};
  7324. hgb=function(a,b,c,d,e){var f="";f=a.W.L("html5_autonav_autoplay_in_preload_key")?Z0(a,c,b):$0(a,c,b.videoId,b.bd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
  7325. var h="";if(a.tb&&(h=a.W.L("html5_autonav_autoplay_in_preload_key")?Z0(a,a.tb.getPlayerType(),a.tb.getVideoData()):$0(a,a.tb.getPlayerType(),a.tb.getVideoData().videoId,a.tb.getVideoData().bd),f===h))return g.OX(a.tb,!0),b.dispose(),null;b.nj=!0;b=Rfb(a,c,b);1===c&&SR(a.W)||g.OX(b,!0);a.Hx.set(f,b,d||3600);return b};
  7326. igb=function(a,b,c,d){var e=AB(c);return $0(a,b,e,d,"1"===c.autonav||!0===c.autonav,"1"===c.autoplay||!0===c.autoplay||1===c.autoplay)};
  7327. Z0=function(a,b,c){return $0(a,b,c.videoId,c.bd,c.isAutonav,c.mq)};
  7328. $0=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.W.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
  7329. Xfb=function(a,b,c,d){var e=a.W.L("html5_autonav_autoplay_in_preload_key")?Z0(a,b,c):$0(a,b,c.videoId,c.bd);var f=a.Hx.get(e);if(!f||f.Ma())return null;a.Hx.remove(e);if(g.TF(f.getPlayerState(),128))return f.dispose(),null;if(f===g.HT(a,b))return a.Mb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;1===b&&Y0(a);d||QX(a,f,!0);a.Mb.infoGel({isCacheHit:!0});return f};
  7330. a1=function(a,b,c){c=g.HT(a,c);b&&c===a.xb&&(c.getVideoData().Sg=!0)};
  7331. b1=function(a,b,c){c=void 0===c?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
  7332. if(b.ue()){var d=a.Bz(c,b);a.cancelPlayback(4,c);QX(a,d);Jeb(d);if(1===c){a.qq(1);if(g.BR(a.W)&&!MWa(b)){b.dispose();g.vb(g.HT(a,c));return}Wfb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.vb(g.HT(a,c)),KWa(a.Ld())&&2===c&&delete a.Gs[2]};
  7333. jgb=function(a,b,c,d,e){b=eXa(b,c,d,e);(c=g.BR(a.W)&&!a.W.qa)&&!a.xi&&(b.fetch=0);P0(a,b);g.BR(a.W)&&a.Mb.tick("ep_a_pr_s");if(c&&!a.xi)c=a.Ld(),KZa(c,b).then(function(f){a.bT=!0;Vfb(a,f)});
  7334. else a.playlist.onReady(function(){R0(a)});
  7335. g.BR(a.W)&&a.Mb.tick("ep_a_pr_r")};
  7336. R0=function(a,b){var c=g.BR(a.W)&&!a.W.qa,d=c&&b?b:g.pV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.fl&&(a.W.Ki||a.W.Li)||!a.Rw?(b=b.Sg,d=a.mu(d,1),b&&a1(a,d)):b1(a,d,1));g.BR(a.W)&&a.Mb.tick("ep_p_l");a.bT=!1;a.Ua.Ac("onPlaylistUpdate")};
  7337. Qfb=function(a){if(a.playlist&&g.GR(a.W)&&a.kE()){var b=a.W.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
  7338. egb=function(a,b){var c=g.Xa(b);c?((b=dgb())&&b.list&&c(),a.mG=null):a.mG=b};
  7339. dgb=function(){var a=g.Xa("yt.www.watch.lists.getState");return a?a():null};
  7340. kgb=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=iJ.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=iJ.AD_MARKER:(b.style=iJ.TIME_MARKER,b.color=e),b.visible=!0);a.bz([new g.jJ(1E3*c,1E3*d,b)],1);return!0};
  7341. lgb=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Ze();if(!h)return f&&a.getVideoData().isLivePlayback&&a.LB.push({id:b,Oea:c,Nea:d}),!1;f=h-a.getCurrentTime();return kgb(a,b,c-f,d-f,void 0,void 0,e)};
  7342. mgb=function(a,b){a.LB=g.Pt(a.LB,function(f){return f.id!==b});
  7343. for(var c=a.xb.Sk(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.xb.removeCueRange(e),J0(a,"cuerangesremoved",[e]),!0}return!1};
  7344. $fb=function(a,b,c){var d=g.HT(a,c);d&&(b=d.yh.mf(b),c&&a.getPresentingPlayerType()!==c||J0(a,"cuerangesremoved",b))};
  7345. ngb=function(a){var b=(0,g.EC)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
  7346. U0=function(a,b,c){a.W.Va&&(a.Hi=b,b.muted||V0(a,!1),c&&a.W.storeUserVolume&&!a.W.pd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.XB("yt-player-volume",c),g.XB("yt-player-volume",c,2592E3))),ogb(a),c=g.aK&&a.mediaElement&&!a.mediaElement.Df(),a.W.pd&&!c||a.Ua.Ac("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.W.storeUserVolume}))};
  7347. ogb=function(a){var b=a.getVideoData();if(!b.Fk){b=a.W.pd?1:IWa(b);var c=a.mediaElement;c.RB(a.Hi.muted);try{c.setVolume(a.Hi.volume*b/100)}catch(d){g.JE(new g.eC("b183742307","multiplier: "+b+", volume: "+a.Hi.volume))}}};
  7348. V0=function(a,b){b!==a.WA&&(a.WA=b,a.Ua.Ac("onMutedAutoplayChange",b))};
  7349. g.GT=function(a){return a.WA&&a.getVideoData().mutedAutoplay};
  7350. pgb=function(a){var b=KB(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Hb())?b:null};
  7351. rgb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.W.L("lock_fullscreen2")||a.W.Z)&&c&&c.lock&&(!g.aK||!qgb))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.YF||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
  7352. a.YF=!0}}else a.YF&&(a.YF=!1,c.unlock())};
  7353. J0=function(a,b,c){a.Ua.publish(b,c);var d=g.PI(a.W)||g.HR(a.W)||g.jG(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.jb(e,c.map(function(f){return{getId:function(){return this.id},
  7354. end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
  7355. c1=function(a,b,c,d,e,f){c=void 0===c?!0:c;var h=g.HT(a,e);h&&(2===h.getPlayerType()&&!a.Gf(h)||g.fT(h.getVideoData()))||(3===a.getPresentingPlayerType()?QT(a.Od).IF("control_seek",b,c):(h===a.xb&&a.Ab&&!Yfb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
  7356. Ofb=function(a,b,c){c&&(a.Ej(),I0(a));c=g.HT(a);c.Wd(new WJ("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?OS(d)&&g.NI(a.W)&&(e.live_utc_start=c.Ze(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ca&&(e.vvt=d.Ca);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.Rm);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Ym&&(e.force_gvi=d.Ym);e.autoplay=1;e.reload_count=d.Tb+1;e.reload_reason=b;d.tC&&(e.unplugged_partner_opt_out=
  7357. d.tC);d.Ki&&(e.ypc_is_premiere_trailer=d.Ki);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.xe&&Tfb(a)};
  7358. sgb=function(a,b){a.Ld().autonavState=b;g.XB("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)};
  7359. tgb=function(a){var b=a.getVideoData().Fk,c=a.W.rb,d=a.isInline()&&!a.getVideoData().mZ,e=a.mediaElement;b||c||d?e.zO():(e.CO(),U0(a,a.Hi))};
  7360. Dfb=function(a,b){return a.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(a.W)?new w6a(b):null};
  7361. Y0=function(a){var b=HV(a.yb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
  7362. X0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe};
  7363. ugb=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.u(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ms(a,d);b.hidden=!!a.hidden};
  7364. y6a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Ww(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
  7365. vgb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
  7366. wgb=function(){var a=null;Fqa().then(function(b){return a=b},function(b){return a=vgb(b)});
  7367. return a};
  7368. xgb=function(){var a=Eg(1E3,"NO_BID");return pg(jca([Fqa(),a]).xl(vgb),function(){a.cancel()})};
  7369. d1=function(a){return a.Be?g.cC(g.bC(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
  7370. e1=function(a){this.player=a;this.C=this.j=1};
  7371. Agb=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=RA(c),h=g.fo(c)?!1:!0;(f||h)&&"undefined"!==typeof Intl&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.fo(c)?!1:!0;if(f||h||""!==d){var l={};c=MA(UA(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");1<n.length&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
  7372. m.has("bid")&&(l.bid=m.get("bid"));l.params=[];ygb.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
  7373. zgb(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;null!=a&&"cosver"!==a&&(b.client.osVersion=a);a=e.j.cplatform;null!=a&&"cplatform"!==a&&""!==a&&(b.client.platform=a);a=e.j.cmodel;null!=a&&"cmodel"!==a&&(b.client.deviceModel=a);a=e.j.cplayer;null!=a&&"cplayer"!==a&&(b.client.playerType=a);e=e.j.cbrand;null!=e&&"cbrand"!==e&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
  7374. Dgb=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in Bgb&&(f.clientName=Bgb[d[0]]),d[1]in Cgb&&(f.platform=Cgb[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
  7375. return c};
  7376. Fgb=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Egb))return!1;a=a.split(RegExp("[:&]"));var b=Egb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<<Math.floor(b%31);for(var d=0,e=a.length;d<e;d++){var f=a[d].split("=");if(f[0]===c&&parseInt("0x"+f[1],16)&b)return!0}return!1};
  7377. zgb=function(a,b){if(g.PI(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.FA("INNERTUBE_CONTEXT");var c,d;(null==a?0:null==(c=a.adSignalsInfo)?0:c.advertisingId)&&"undefined"!==typeof(null==a?void 0:null==(d=a.adSignalsInfo)?void 0:d.limitAdTracking)&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
  7378. Ngb=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=Ggb.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Hgb.test(b),m=Igb.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=Jgb.exec(b);n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Kgb.exec(b),q=null!=p&&2<=p.length?p[1]:"0",r=LR(a.player.U().Ga);p=a.player.getVideoData(1);var t=g.qG(p.ra,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Agb(a,t,b,v.toString(),a.player.U());
  7379. var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19864,autonavState:d1(a.player.U())};d&&(d={},Dgb(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=Lgb.includes(r)?void 0:g.mB("PREF")){for(var A=d.split(RegExp("[:&]")),D=0,F=A.length;D<F;D++){var H=A[D].split("=");if(("SML"===H[0].toUpperCase()||"GSML"===H[0].toUpperCase())&&1<H.length&&"TRUE"===H[1].toUpperCase()){t.user.lockedSafetyMode=!0;
  7380. break}}w.autoCaptionsDefaultOn=Fgb(d)}b=Mgb.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:MA(UA(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=
  7381. c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));(a=PWa(p))&&(h.getAdBreakContext=a);return h};
  7382. Ogb=function(){e1.apply(this,arguments)};
  7383. Pgb=function(a,b,c,d,e){var f=c.cw;c=c.Xd;var h=a.player.U().uj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Ah:0,AUTONAV_STATE:d1(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.jr(),LACT:YD(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.ob().Th().height,P_W:a.player.ob().Th().width,YT_REMOTE:h?h.join(","):
  7384. ""},m=Gpa(Fpa);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
  7385. ""!==d&&(mya("biscotti id requested"),l.BISCOTTI_ID=d);d={};TA(b)&&(d.sts="19864",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return QA(g.dv(b,l),d)};
  7386. Qgb=function(a,b){var c=a.player.U(),d,e=null==(d=a.player.getVideoData(1))?void 0:d.oauthToken;return g.$R(c,e).then(function(f){if(f&&SA()){var h=WT();XT(h,f)}return g.lH(a.player.jm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
  7387. Rgb=function(a){this.Oa=a};
  7388. Sgb=function(a){this.J=a};
  7389. Tgb=function(a){this.Oa=a};
  7390. Vgb=function(a){g.I.call(this);this.Wg=a;this.m4=Ugb(this)};
  7391. Ugb=function(a){var b=new tAa(a.Wg.Xc);g.N(a,b);a=g.u([new Rgb(a.Wg.Oa),new Sgb(a.Wg.J),new Tgb(a.Wg.Oa),new pAa(a.Wg.Yk,a.Wg.Zn),new rAa,new zAa(a.Wg.Lf,a.Wg.Rk,a.Wg.Oa),new qAa,new nAa]);for(var c=a.next();!c.done;c=a.next())uAa(b,c.value);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())zH(b,c.value,function(){});
  7392. return b};
  7393. f1=function(a){var b=a.Ra,c=a.Aa;a=a.Ne;var d={Pq:new CDa(b.get()),Aa:c};return{Qb:new nJa(c,a,b,d),context:d}};
  7394. g1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Ha=c;this.Ra=d;this.Af=e;this.listeners=[];var f=new SB(this);g.N(this,f);f.T(a,"internalAbandon",this.KF);this.addOnDisposeCallback(function(){g.UB(f)})};
  7395. h1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.D=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
  7396. Wgb=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.C="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.D=!1;a.B=!1};
  7397. Xgb=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){eH("ad_i");g.fH({isMonetized:!0});break}};
  7398. i1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.Ga)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),gH("video_to_ad",b)};
  7399. QEa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});gH("ad_to_video",b);Ygb(a)};
  7400. Ygb=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)cH("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new pA;b=S(b,8,2);var c=new qA;c=S(c,21,Zgb(a.C));c=S(c,7,4);b=Hk(c,pA,22,b);b=S(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&Q(b,76,a.contentCpn),a.videoId&&Q(b,78,a.videoId)):(a.adCpn&&Q(b,76,a.adCpn),a.adVideoId&&Q(b,78,a.adVideoId));a.adFormat&&Q(b,12,a.adFormat);a.contentCpn&&Q(b,
  7401. 8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&Q(b,28,a.adCpn);a.adVideoId&&Q(b,20,a.adVideoId);g.JA($G)(b,a.actionType)}else b={adBreakType:cL(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
  7402. a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.fH(b,a.actionType)};
  7403. Zgb=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
  7404. j1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new SB(this);g.N(this,this.B);this.B.T(this.J,g.kJ("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.lJ("ad"),this.onCueRangeExit,this)};
  7405. $gb=function(a,b,c,d,e){g.jJ.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
  7406. k1=function(a){this.J=a};
  7407. l1=function(a){this.J=a};
  7408. xEa=function(a){return FM(a,"html5_ssap_fix_layout_exit")};
  7409. ahb=function(a){return m1(a)&&FM(a,"html5_ssap_play_cached_preroll")};
  7410. QM=function(a){return a.J.U().zc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
  7411. n1=function(a){return a.J.U().L("enable_active_view_web_shorts_video")||a.J.U().L("enable_active_view_lr_shorts_video")};
  7412. m1=function(a){var b,c;return null!=(c=null==(b=a.J.getVideoData(1))?void 0:g.sT(b))?c:!1};
  7413. FM=function(a,b){return a.J.U().L(b)};
  7414. bhb=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
  7415. KM=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
  7416. EIa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
  7417. chb=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
  7418. dHa=function(a){return a.J.U().experiments.fb("enable_desktop_player_underlay")};
  7419. dhb=function(a){return a.J.U().experiments.fb("html5_load_empty_player_in_media_break_sub_lra")};
  7420. iL=function(a){return a.J.U().experiments.fb("html5_load_ads_instead_of_cue")};
  7421. jL=function(a){return a.J.U().experiments.fb("html5_preload_ads")};
  7422. o1=function(a){return a.J.U().experiments.fb("html5_rebase_video_to_ad_timeline")};
  7423. cJa=function(a){return a.J.U().experiments.fb("enable_ads_control_flow_deterministic_id_generation")};
  7424. ehb=function(a){return a.J.U().experiments.fb("enable_desktop_discovery_video_abandon_pings")};
  7425. fhb=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
  7426. case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
  7427. ghb=function(){g.aF.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
  7428. p1=function(){if(null===hhb){hhb=new ghb;cs(cv).B="b";var a=cs(cv),b="h"==Wu(a)||"b"==Wu(a),c=!(hs(),!1);b&&c&&(a.D=!0,a.G=new rja)}return hhb};
  7429. ihb=function(a,b,c){a.j[b]=c};
  7430. jhb=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
  7431. case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip";
  7432. case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
  7433. q1=function(a,b,c){this.Ha=a;this.J=b;this.Aa=c;this.B=new Set;this.j=new Map;p1().subscribe("adactiveviewmeasurable",this.tx,this);p1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.sx,this);p1().subscribe("adviewableimpression",this.vx,this);p1().subscribe("adaudioaudible",this.ox,this);p1().subscribe("adaudiomeasurable",this.qx,this)};
  7434. s1=function(a,b,c,d,e,f){e=void 0===e?null:e;if(a.j.has(b))RF("Unexpected registration of layout in LidarApi");else{if(n1(a.Aa.get())&&f){if(a.B.has(f))return;a.B.add(f)}a.j.set(b,e);Hr(hs().Jc,"fmd",1);Bka(cs(cv),c);ihb(p1(),b,{dP:function(){if(!d)return{};if(n1(a.Aa.get())){var h=a.J.getPresentingPlayerType(!0),l;return null!=(l=a.J.getVideoData(h))&&l.isAd()?{currentTime:a.Ha.get().getCurrentTimeSec(h,!1),duration:d,isPlaying:r1(a.Ha.get(),h).isPlaying(),isVpaid:!1,isYouTube:!0,volume:a.Ha.get().isMuted()?
  7435. 0:a.Ha.get().getVolume()/100}:{}}return{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,isPlaying:2===a.Ha.get().getPresentingPlayerType()&&r1(a.Ha.get(),2).isPlaying(),Spb:!1,Tpb:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}}})}};
  7436. t1=function(a,b){a.j.has(b)?(a.j.delete(b),delete p1().j[b]):RF("Unexpected unregistration of layout in LidarApi")};
  7437. mhb=function(a,b){var c={};khb(a,c,b);lhb(c);c.LACT=u1(function(){return YD().toString()});
  7438. c.VIS=u1(function(){return a.getVisibilityState().toString()});
  7439. c.SDKV="h.3.0";c.VOL=u1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
  7440. c.VED="";return c};
  7441. nhb=function(a,b){var c={};if(b)return c;if(!a.kind)return g.IE(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.IE(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=u1(Gd(Math.round(bf(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=u1(Gd("0"));return c};
  7442. u1=function(a){return{toString:function(){return a()}}};
  7443. ohb=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
  7444. function e(l,m){(m=c[m])&&(f[l]=h(m))}
  7445. if(!c||g.jd(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
  7446. e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
  7447. khb=function(a,b,c){b.CPN=u1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.JE(Error("Video data is null.")),d=null);return d});
  7448. b.AD_MT=u1(function(){if(null!=c)var d=c;else if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var e=a.getPresentingPlayerType(!0),f;d=(null==(f=a.getVideoData(e))?0:f.isAd())?a.getCurrentTime(e,!1):0}else d=a.getCurrentTime(2,!1);return Math.round(Math.max(0,1E3*d)).toString()});
  7449. b.MT=u1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
  7450. b.P_H=u1(function(){return a.ob().Th().height.toString()});
  7451. b.P_W=u1(function(){return a.ob().Th().width.toString()});
  7452. b.PV_H=u1(function(){return a.ob().getVideoContentRect().height.toString()});
  7453. b.PV_W=u1(function(){return a.ob().getVideoContentRect().width.toString()})};
  7454. lhb=function(a){a.CONN=u1(Gd("0"));a.WT=u1(function(){return Date.now().toString()})};
  7455. phb=function(){};
  7456. qhb=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,w,A,D,F;g.G(function(H){switch(H.j){case 1:f=!!b.scrubReferrer;h=g.dv(b.baseUrl,ohb(c,f,d));l={};if(!b.headers){H.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();H.Ia(3);break}return g.z(H,m.j,4);case 4:n=H.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.FA("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.FA("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.FA("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
  7457. g.FA("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.G())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":w=a.B();!p&&w&&(l["X-Goog-AuthUser"]=w);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":A=void 0;(null==(A=a.j())?0:A.fb("clean_up_manual_attribution_header"))||(l["Attribution-Reporting-Eligible"]="event-source");break;case "DATASYNC_ID":if(D=void 0,null==(D=a.j())?0:D.fb("enable_datasync_id_header_in_web_vss_pings"))F=a.C(),RA(h)&&g.FA("LOGGED_IN")&&
  7458. F&&(l["X-Yt-DataSync-Id"]=F)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.yD(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.Aa(H)}})};
  7459. rhb=function(a,b,c,d,e){this.D=a;this.G=b;this.B=c;this.C=d;this.j=e};
  7460. shb=function(a,b){this.j=a;this.Aa=b};
  7461. v1=function(a,b,c,d,e,f){var h=void 0===h?new rhb(function(){var l=a.U(),m=a.getVideoData(1);return g.$R(l,m?g.qT(m):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){var l;
  7462. return null!=(l=a.U().datasyncId)?l:""},function(){return a.U().experiments}):h;
  7463. this.J=a;this.B=b;this.ub=c;this.Ra=d;this.Qb=e;this.Aa=f;this.D=h;this.gH=null;this.j=new Map;this.C=new shb(h,this.Aa)};
  7464. uhb=function(a,b,c,d,e){var f=QIa(a.B.get(),c);f?(c=AJ(a,thb(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):RF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
  7465. sCa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=QIa(a.B.get(),b);if(h){var l=a.ub.get().Mh(b,c),m=AJ(a,thb(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Qb.Ir("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new WFa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else RF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
  7466. trackingType:c})};
  7467. tL=function(a,b){g.qC("adsClientStateChange",b)};
  7468. vhb=function(a,b){a.j.has(b.pw())?RF("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.pw(),b)};
  7469. whb=function(a,b){a.j.delete(b.pw())||RF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
  7470. uL=function(a,b,c){"string"===typeof c?a.J.getVideoData(1).EB(b,c):a.J.getVideoData(1).ma(b,c)};
  7471. thb=function(a){var b=zI(a.Ba,"metadata_type_ad_placement_config");a=zI(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,RZ:a}};
  7472. AJ=function(a,b,c,d,e,f){var h=c?xhb(a):{},l=c?yhb(a,c.layoutId):{},m=zhb(a),n,p=null!=e?e:null==(n=a.Ra.get().Yd(2))?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ra.get().Yd(1).clientPlaybackNonce);e={};a=Object.assign({},mhb(a.J,d),nhb(b.adPlacementConfig,void 0!==(null==c?void 0:c.renderingContent)),l,h,m,(e.FINAL=u1(function(){return"1"}),e.AD_CPN=u1(function(){return p||""}),e));
  7473. void 0!==(null==c?void 0:c.renderingContent)||(a.SLOT_POS=u1(function(){return(b.RZ||0).toString()}));
  7474. c={};f=Object.assign({},a,f);a=g.u(Object.values(Ahb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],null!=h&&null!=h.toString()&&(c[d]=h.toString());return c};
  7475. xhb=function(a){var b={},c,d=null==(c=a.gH)?void 0:c.cj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=u1(function(){return Math.round(1E3*d).toString()}));
  7476. b.SURVEY_LOCAL_TIME_EPOCH_S=u1(function(){return Math.round(Date.now()/1E3).toString()});
  7477. return b};
  7478. yhb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.RO();if(!a)return{};b={};return b.YT_ERROR_CODE=a.rM.toString(),b.ERRORCODE=a.tH.toString(),b.ERROR_MSG=a.errorMessage,b};
  7479. zhb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=u1(function(){var d;return null!=(d=null==c?void 0:c.hv)?d:null});
  7480. b.EI=u1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
  7481. return b};
  7482. w1=function(a,b,c){g.I.call(this);this.J=a;this.ys=b;this.Aa=c;this.listeners=[];this.yQ=null;this.zN=new Map;b=new g.cK(this);g.N(this,b);b.T(a,"videodatachange",this.mca);b.T(a,"serverstitchedvideochange",this.Oba);this.dw=this.Yd()};
  7483. Bhb=function(a,b,c){var d=a.gI(b,c);a.dw=d;a.listeners.forEach(function(e){e.MK(d)})};
  7484. RJ=function(a,b,c){a.J.getVideoData(1).ma(b,c)};
  7485. Chb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5}};
  7486. x1=function(a,b,c){g.I.call(this);this.J=a;this.Ra=b;this.Aa=c;this.listeners=[];this.ID=[];this.j=function(){RF("Called 'doUnlockPreroll' before it's initialized.")};
  7487. b=new SB(this);c=new g.cK(this);g.N(this,c);g.N(this,b);b.T(a,"progresssync",this.nba);b.T(a,"presentingplayerstatechange",this.cba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.jh);b.T(a,"overlayvisibilitychange",this.yj);b.T(a,"shortsadswipe",this.Aj);b.T(a,"resize",this.dc);c.T(a,g.kJ("appad"),this.xj)};
  7488. y1=function(a){m1(a.Aa.get())||a.j()};
  7489. Dhb=function(a,b){a.ID=a.ID.filter(function(c){return c!==b})};
  7490. Ehb=function(a,b){var c;b=null!=(c=a.Ra.get().zN.get(b))?c:null;if(null===b)return RF("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
  7491. r1=function(a,b){return a.J.getPlayerStateObject(b)};
  7492. Fhb=function(a){var b=a.J.ob().Th();a=a.J.Hn(!0,!0);return b.height-(a.height+a.top)};
  7493. Ghb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
  7494. zEa=function(a,b){var c=a.J.U();g.FR(c)||"3"!==c.controlsType||a.J.ob().IL(b)};
  7495. z1=function(a,b){g.Fv(a.J.getRootNode(),b)};
  7496. A1=function(a,b){g.Hv(a.J.getRootNode(),b)};
  7497. Hhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7498. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7499. g.N(this,l);var m=XI(function(){return new RM});
  7500. g.N(this,m);d=XI(function(){return new OM(a)});
  7501. g.N(this,d);var n=XI(function(){return new hN(h,l,f.Aa)});
  7502. g.N(this,n);var p=XI(function(){return new kN});
  7503. g.N(this,p);this.Lb=XI(function(){return new YI(e)});
  7504. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7505. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7506. g.N(this,this.Oc);this.Xc=XI(function(){return new k1(b)});
  7507. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7508. g.N(this,this.Aa);var q=XI(function(){return new FI(f.Aa)});
  7509. g.N(this,q);var r=XI(function(){return new HM(h,n,l,f.Aa,q,null,null)});
  7510. g.N(this,r);this.Ra=XI(function(){return new w1(b,p,f.Aa)});
  7511. g.N(this,this.Ra);var t=f1({Ra:this.Ra,Aa:this.Aa,Ne:q}),v=t.context;this.Qb=t.Qb;this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7512. g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7513. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7514. g.N(this,this.Oa);this.Pd=new NM(d,r,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var w=new g1(b,this.Pd,this.Ha,this.Ra);this.uh=XI(function(){return w});
  7515. this.wx=w;this.Bg=new PM(d,n,this.Oc,this.uh,v);g.N(this,this.Bg);this.Td=new sM(this.Aa,d,n,r,this.Ra,this.Bg,c);g.N(this,this.Td);this.nh={mB:new Map,At:new Map,Qm:new Map,Pu:new Map,fu:new Map};this.listeners=[];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:{EP:function(){}},
  7516. Yk:m.get(),Lf:this.Ra.get()}};
  7517. B1=function(a,b){g.I.call(this);this.Xn=b;this.Xn.get().addListener(this)};
  7518. C1=function(a){this.j=a};
  7519. Ihb=function(a,b){if(!a)return{Lv:[],adSlots:[],fC:!0,ssdaiAdsConfig:void 0};a.trackingParams&&SO(a.trackingParams);if(a.adThrottled)return{Lv:[],adSlots:[],fC:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[],e;c=null!=(e=a.playerAds)?e:[];if(!(c&&c.length||d.length))return{Lv:[],adSlots:d,fC:!1,ssdaiAdsConfig:void 0};e=c.map(function(h){return h.adPlacementRenderer}).filter(function(h){return!(!h||!h.renderer)});
  7520. if(!e.length&&!d.length)return{Lv:[],adSlots:d,fC:!1,ssdaiAdsConfig:void 0};if(0<b.end){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===h.kind&&h.adTimeOffset&&"-1"===h.adTimeOffset.offsetEndMilliseconds&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
  7521. d.map(function(h){return g.V(h,tM)}).forEach(function(h){var l;
  7522. (h=null==h?void 0:null==(l=h.slotEntryTrigger)?void 0:l.mediaTimeRangeTrigger)&&"-1"===h.offsetEndMilliseconds&&(h.offsetEndMilliseconds=f)})}return{Lv:e,
  7523. adSlots:d,fC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
  7524. D1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new SB(this);g.N(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.aR);this.j.T(this.J,"aduxmouseout",this.ZQ);this.j.T(this.J,"muteadaccepted",this.K$)};
  7525. Jhb=function(a,b,c){b=g.$r(b,function(d){return new Oxa(d,c,d.id)});
  7526. a.J.jb("onAdUxUpdate",b)};
  7527. E1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
  7528. F1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
  7529. Khb=function(a,b){var c=a.startSecs+a.Ah;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{s7:new Vv(b,c),H9:new GP(b,c-b,a.context,a.identifier,a.event,a.j)}};
  7530. Lhb=function(){this.j=[]};
  7531. $Ea=function(a,b,c){var d=g.Sb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
  7532. G1=function(a,b,c){g.I.call(this);this.J=a;this.Aa=b;this.Oa=c;this.listeners=[];this.D=!1;this.eM=[];this.B=null;this.G=new F1(this,chb(b.get()));this.C=new Lhb;this.j=null};
  7533. Mhb=function(a,b){a.eM.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.w_(b)||c;a.D=c};
  7534. Ohb=function(a,b){tL(a.Oa.get(),{cuepointTrigger:{event:Nhb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Ah,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
  7535. Nhb=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Ne(a,"Unexpected cuepoint event")}};
  7536. H1=function(a){this.J=a};
  7537. Phb=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
  7538. I1=function(a){this.J=a};
  7539. J1=function(a){this.J=a};
  7540. Qhb=function(a){this.J=a};
  7541. Rhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7542. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7543. g.N(this,l);var m=XI(function(){return new RM});
  7544. g.N(this,m);var n=XI(function(){return new OM(a)});
  7545. g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)});
  7546. g.N(this,p);var q=XI(function(){return new kN});
  7547. g.N(this,q);this.Cc=XI(function(){return new D1(b)});
  7548. g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)});
  7549. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7550. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7551. g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)});
  7552. g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)});
  7553. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7554. g.N(this,this.Aa);var r=XI(function(){return new C1(d)});
  7555. g.N(this,r);var t=XI(function(){return new FI(f.Aa)});
  7556. g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Rj)});
  7557. g.N(this,v);this.Tf=XI(function(){return new I1(b)});
  7558. g.N(this,this.Tf);this.Xn=XI(function(){return new aJ});
  7559. g.N(this,this.Xn);this.Ra=XI(function(){return new w1(b,q,f.Aa)});
  7560. g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)});
  7561. g.N(this,this.Af);this.Mc=XI(function(){return new J1(b)});
  7562. g.N(this,this.Mc);this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7563. g.N(this,this.Ha);this.df=XI(function(){return new bJ});
  7564. this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7565. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7566. g.N(this,this.Oa);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra);
  7567. g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D});
  7568. this.wx=D;this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa,this.Mc);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha,f.Mc)});
  7569. g.N(this,this.Mj);this.Xe=XI(function(){return new nJ});
  7570. g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.Wv=new XM(a);g.N(this,this.Wv);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.ax=new aN(a,this.Ra);g.N(this,this.ax);this.rf=new bN(a);g.N(this,this.rf);this.ze=new eN(a);g.N(this,this.ze);this.qk=new cN(a);g.N(this,this.qk);this.iy=new dN(a);g.N(this,this.iy);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM});
  7571. g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)});
  7572. g.N(this,this.xk);this.iW=XI(function(){return new ZCa(f.Cc,f.Oa,a,m,f.ub)});
  7573. g.N(this,this.iW);this.Lj=XI(function(){return new HJ(f.Td,n,h)});
  7574. g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)});
  7575. g.N(this,this.Uj);this.vk=XI(function(){return new zFa(a,f.ze,f.rf,f.Ra,f.Mc,f.Ha,f.Oa,q,f.Af,f.ub,f.df,f.ud,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,m,A)});
  7576. g.N(this,this.vk);this.XR=XI(function(){return new rDa(f.Ha,f.Oa,f.Aa,f.ub)});
  7577. g.N(this,this.XR);this.Pt=XI(function(){return new JFa(f.Cc,f.Ha,f.Oa,m,f.ub,f.Wv,f.iy,f.Lb,f.Aa,c)});
  7578. g.N(this,this.Pt);this.w2=XI(function(){return new aDa(f.Cc)});
  7579. g.N(this,this.w2);this.vN=new B1(a,this.Xn,h);g.N(this,this.vN);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_ABOVE_FEED",this.Xe],["SLOT_TYPE_FORECASTING",this.Xe],
  7580. ["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",
  7581. this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Bf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
  7582. this.Bf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Bf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Bf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ax],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ax],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
  7583. this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Re],["SLOT_TYPE_PLAYBACK_TRACKING",this.Re],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Re]]),fu:new Map([["SLOT_TYPE_ABOVE_FEED",
  7584. this.iW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_PLAYER_BYTES",this.vk],["SLOT_TYPE_PLAYBACK_TRACKING",this.XR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.XR],["SLOT_TYPE_IN_PLAYER",this.Pt],["SLOT_TYPE_PLAYER_UNDERLAY",this.w2]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:this.Xn.get(),Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}};
  7585. Shb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7586. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7587. g.N(this,l);var m=XI(function(){return new RM});
  7588. g.N(this,m);var n=XI(function(){return new OM(a)});
  7589. g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)});
  7590. g.N(this,p);var q=XI(function(){return new kN});
  7591. g.N(this,q);this.Cc=XI(function(){return new D1(b)});
  7592. g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)});
  7593. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7594. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7595. g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)});
  7596. g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)});
  7597. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7598. g.N(this,this.Aa);var r=XI(function(){return new C1(d)});
  7599. g.N(this,r);var t=XI(function(){return new FI(f.Aa)});
  7600. g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,f.Rj)});
  7601. g.N(this,v);this.Tf=XI(function(){return new I1(b)});
  7602. g.N(this,this.Tf);this.Xn=XI(function(){return new aJ});
  7603. g.N(this,this.Xn);this.Ra=XI(function(){return new w1(b,q,f.Aa)});
  7604. g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)});
  7605. this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7606. g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7607. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7608. g.N(this,this.Oa);this.df=XI(function(){return new bJ});
  7609. g.N(this,this.df);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra);
  7610. g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D});
  7611. this.wx=D;this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)});
  7612. g.N(this,this.Mj);this.Xe=XI(function(){return new nJ});
  7613. g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.Wv=new XM(a);g.N(this,this.Wv);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.iy=new dN(a);g.N(this,this.iy);this.Mc=XI(function(){return new J1(b)});
  7614. g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM});
  7615. g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)});
  7616. g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)});
  7617. g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)});
  7618. g.N(this,this.Uj);this.Pt=XI(function(){return new KFa(f.Cc,f.Ha,f.Oa,m,f.ub,f.Wv,f.iy,f.Lb,f.Aa,c)});
  7619. g.N(this,this.Pt);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)});
  7620. g.N(this,this.vk);this.vN=new B1(a,this.Xn,h);g.N(this,this.vN);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],
  7621. ["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],
  7622. ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
  7623. this.iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER",this.Pt],["SLOT_TYPE_PLAYER_BYTES",this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:this.Xn.get(),Zn:this.Tg,
  7624. Yk:m.get(),Lf:this.Ra.get()}};
  7625. Thb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7626. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7627. g.N(this,l);var m=XI(function(){return new RM});
  7628. g.N(this,m);var n=XI(function(){return new OM(a)});
  7629. g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)});
  7630. g.N(this,p);var q=XI(function(){return new kN});
  7631. g.N(this,q);this.Cc=XI(function(){return new D1(b)});
  7632. g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)});
  7633. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7634. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7635. g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)});
  7636. g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)});
  7637. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7638. g.N(this,this.Aa);var r=XI(function(){return new C1(d)});
  7639. g.N(this,r);var t=XI(function(){return new FI(f.Aa)});
  7640. g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,null)});
  7641. g.N(this,v);this.Tf=XI(function(){return new I1(b)});
  7642. g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)});
  7643. g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7644. g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7645. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7646. g.N(this,this.Oa);this.df=XI(function(){return new bJ});
  7647. g.N(this,this.df);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra);
  7648. g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra);this.uh=XI(function(){return D});
  7649. this.wx=D;this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)});
  7650. g.N(this,this.Mj);this.Xe=XI(function(){return new nJ});
  7651. g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.Mc=XI(function(){return new J1(b)});
  7652. g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM});
  7653. g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)});
  7654. g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)});
  7655. g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)});
  7656. g.N(this,this.Uj);this.X_=XI(function(){return new oDa(f.Cc,f.Ha,f.Oa,m,c,f.Aa)});
  7657. g.N(this,this.X_);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)});
  7658. g.N(this,this.vk);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7659. this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7660. this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER",
  7661. this.X_],["SLOT_TYPE_PLAYER_BYTES",this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}};
  7662. Uhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7663. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7664. g.N(this,l);var m=XI(function(){return new RM});
  7665. g.N(this,m);var n=XI(function(){return new OM(a)});
  7666. g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)});
  7667. g.N(this,p);var q=XI(function(){return new kN});
  7668. g.N(this,q);this.dn=XI(function(){return new Qhb(b)});
  7669. g.N(this,this.dn);this.Cc=XI(function(){return new D1(b)});
  7670. g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)});
  7671. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7672. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7673. g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)});
  7674. g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)});
  7675. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7676. g.N(this,this.Aa);var r=XI(function(){return new C1(d)});
  7677. g.N(this,r);var t=XI(function(){return new FI(f.Aa)});
  7678. g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,null)});
  7679. g.N(this,v);this.Tf=XI(function(){return new I1(b)});
  7680. g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)});
  7681. g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7682. g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7683. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7684. g.N(this,this.Oa);this.df=XI(function(){return new bJ});
  7685. g.N(this,this.df);this.wk=new MM(MIa,K1,function(F,H,L,M){return fJa(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra);
  7686. g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra);this.uh=XI(function(){return D});
  7687. this.wx=D;this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)});
  7688. g.N(this,this.Mj);this.Xe=XI(function(){return new nJ});
  7689. g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.Mc=XI(function(){return new J1(b)});
  7690. g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM});
  7691. g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)});
  7692. g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)});
  7693. g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)});
  7694. g.N(this,this.Uj);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)});
  7695. g.N(this,this.vk);this.T2=XI(function(){return new MFa(f.Cc,f.Ha,f.Oa,m,f.dn,c,f.Ra)});
  7696. g.N(this,this.T2);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
  7697. this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
  7698. this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER",this.T2],["SLOT_TYPE_PLAYER_BYTES",
  7699. this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}};
  7700. Vhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)});
  7701. g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)});
  7702. g.N(this,l);var m=XI(function(){return new RM});
  7703. g.N(this,m);var n=XI(function(){return new OM(a)});
  7704. g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)});
  7705. g.N(this,p);var q=XI(function(){return new kN});
  7706. g.N(this,q);this.dn=XI(function(){return new Qhb(b)});
  7707. g.N(this,this.dn);this.Cc=XI(function(){return new D1(b)});
  7708. g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)});
  7709. g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)});
  7710. g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)});
  7711. g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)});
  7712. g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)});
  7713. g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)});
  7714. g.N(this,this.Aa);var r=XI(function(){return new C1(d)});
  7715. g.N(this,r);var t=XI(function(){return new FI(f.Aa)});
  7716. g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,f.Rj,3)});
  7717. g.N(this,v);this.Tf=XI(function(){return new I1(b)});
  7718. g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)});
  7719. g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)});
  7720. g.N(this,this.Af);this.Mc=XI(function(){return new J1(b)});
  7721. g.N(this,this.Mc);this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)});
  7722. g.N(this,this.Ha);this.df=XI(function(){return new bJ});
  7723. this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)});
  7724. g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)});
  7725. g.N(this,this.Oa);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D});
  7726. this.wx=D;this.wk=new MM(NIa,K1,function(F,H,L,M){return fJa(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra);
  7727. g.N(this,this.wk);this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa,this.Mc);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha,f.Mc)});
  7728. g.N(this,this.Mj);this.Xe=XI(function(){return new nJ});
  7729. g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.ax=new aN(a,this.Ra);g.N(this,this.ax);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM});
  7730. g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)});
  7731. g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)});
  7732. g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)});
  7733. g.N(this,this.Uj);this.vk=XI(function(){return new zFa(a,f.ze,f.rf,f.Ra,f.Mc,f.Ha,f.Oa,q,f.Af,f.ub,f.df,f.ud,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,m,A)});
  7734. g.N(this,this.vk);this.Pt=XI(function(){return new NFa(f.Cc,f.Ha,f.Oa,m,f.dn,c,f.Aa,f.Ra)});
  7735. g.N(this,this.Pt);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
  7736. this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
  7737. this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ax],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ax],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",
  7738. this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_PLAYER_BYTES",this.vk],["SLOT_TYPE_IN_PLAYER",this.Pt]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}};
  7739. Xhb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Whb(function(){return e.B},a,b,c,d);
  7740. g.N(this,this.j);this.B=(new GBa(this.j)).C();g.N(this,this.B)};
  7741. L1=function(a){return a.j.DA};
  7742. Whb=function(a,b,c,d,e){try{var f=b.U();if(g.RR(f))var h=new Rhb(a,b,c,d,e);else if(g.TR(f))h=new Shb(a,b,c,d,e);else if(MR(f))h=new Thb(a,b,c,d,e);else if(g.jG(f))h=new Uhb(a,b,c,d,e);else if(g.HR(f))h=new Vhb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),RF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Opb:h.j.cver,Npb:h.j.ctheme,Mpb:h.j.cplayer,uqb:h.playerStyle}),new Hhb(a,b,c,d,e)}};
  7743. Yhb=function(a){EF.call(this,a)};
  7744. Zhb=function(a,b,c,d,e){JF.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Fa("ytp-ad-timed-pie-countdown");this.D=this.Fa("ytp-ad-timed-pie-countdown-container");
  7745. this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.G=this.Fa("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(10*Math.PI);this.hide()};
  7746. $hb=function(a,b,c,d,e,f){jF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
  7747. S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.eT=e;this.NL=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ea=this.Fa("ytp-ad-action-interstitial-instream-info");this.ra=this.Fa("ytp-ad-action-interstitial-image-container");this.Y=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.N(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Fa("ytp-ad-action-interstitial-headline-container");
  7748. this.G=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.N(this,this.G);this.G.Ja(this.Wa);this.Va=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.N(this,this.C);this.C.Ja(this.Va);this.Za=this.Fa("ytp-ad-action-interstitial-background-container");this.Na=new BF(this.api,this.layoutId,this.interactionLoggingClientData,
  7749. this.kb,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Na);this.Na.Ja(this.Za);this.gb=this.Fa("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.zf=this.Fa("ytp-ad-action-interstitial-card");this.D=new SB;g.N(this,this.D);this.hide()};
  7750. aib=function(a){var b=g.xf("html5-video-player");b&&g.Jv(b,"ytp-ad-display-override",a)};
  7751. eib=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.gb=this.Ea=this.D=this.Za=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Fa("ytp-ad-overlay-container");this.Na=new PF(a,45E3,6E3,.3,.4);g.N(this,this.Na);this.C=bib(this);g.N(this,this.C);this.C.Ja(a);this.B=cib(this);g.N(this,this.B);this.B.Ja(a);this.j=dib(this);g.N(this,this.j);this.j.Ja(a);this.hide()};
  7752. bib=function(a){var b=new g.iF({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){M1(a,b.element,c)});
  7753. a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){M1(a,b.element,c)});
  7754. a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);b.hide();return b};
  7755. cib=function(a){var b=new g.iF({I:"div",Ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
  7756. xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){M1(a,b.element,c)});
  7757. a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){M1(a,b.element,c)});
  7758. a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.dca);b.hide();return b};
  7759. dib=function(a){var b=new g.iF({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){M1(a,b.element,c)});
  7760. a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);b.hide();return b};
  7761. gib=function(a,b){if(b){var c=g.V(b,oM)||null;if(null==c)g.IE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.xf("video-ads ytp-ad-module")||null,null==b)g.IE(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.iF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ea),a.Ea.Ja(b),b=new HF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Ea.element,!1),g.N(a,b),b.init(ZE("ad-info-hover-text-button"),
  7762. c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.I$,a);b.subscribe("e",a.AR,a);a.T(a.G,"click",a.J$);var d=g.xf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V(null==(e=g.V(c.button,g.qM))?void 0:e.serviceEndpoint,$xa))a.Wa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
  7763. a.gb=b}else g.IE(Error("Ad info button container within overlay ad was not present."))}else g.JE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
  7764. iib=function(a,b){if(hib(a,N1)||a.api.isMinimized())return!1;var c=kF(b.title),d=kF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",kF(b.title));a.C.updateValue("description",kF(b.description));a.C.updateValue("displayUrl",kF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Na.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
  7765. return!0};
  7766. jib=function(a,b){if(hib(a,N1)||a.api.isMinimized())return!1;var c=kF(b.title),d=kF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",kF(b.title));a.B.updateValue("description",kF(b.description));a.B.updateValue("displayUrl",kF(b.displayUrl));a.B.updateValue("imageUrl",hxa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.B.show();a.Na.start();a.logVisibility(a.B.element,!0);
  7767. a.T(a.B.element,"mouseover",function(){a.ra++});
  7768. return!0};
  7769. kib=function(a,b){if(a.api.isMinimized())return!1;var c=ixa(b.image),d=c;c.width<N1.width&&(d=N1);if(0===c.width||0===c.height||hib(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",hxa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);b=a.j.Fa("ytp-ad-image-overlay");g.Is(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
  7770. a.api.aR("invideo-overlay",a.layoutId)});
  7771. a.T(a.j.element,"mouseout",function(){a.api.ZQ("invideo-overlay",a.layoutId)});
  7772. return!0};
  7773. hib=function(a,b){var c=a.api.ob().Th(),d=a.api.Hn(!0,!1);return(b=CFa(c,c.height-(d.height+d.top),b))?(a.Va&&b&&(c=g.md(a.macros),c.ERRORCODE=b.tH.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?$I(a.kb,a.Va,a.layoutId,c):g.IE(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
  7774. M1=function(a,b,c){var d=g.md(a.macros),e=g.Us(b);d.AW={toString:function(){return e.width.toString()}};
  7775. d.AH={toString:function(){return e.height.toString()}};
  7776. var f=g.Ss(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
  7777. d.NX={toString:function(){return f.x.toString()}};
  7778. d.I_Y={toString:function(){return f.y.toString()}};
  7779. d.NY={toString:function(){return f.y.toString()}};
  7780. d.NM={toString:function(){return a.ra.toString()}};
  7781. b=g.u(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?$I(a.kb,c,a.layoutId,d):g.IE(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
  7782. lib=function(a,b){a=a.api.getRootNode();g.Jv(a,"ytp-ad-overlay-open",b);g.Jv(a,"ytp-ad-overlay-closed",!b)};
  7783. mib=function(a,b,c,d,e){JF.call(this,a,{I:"div",S:"ytp-ad-message-overlay",V:[{I:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.ra=!1;this.Ea=this.Fa("ytp-ad-message-slot");this.B=new g.iF({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Ea);g.N(this,this.B);this.messageText=new IF(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.N(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.MF(this.B,
  7784. 400,!1,100,function(){f.hide()});
  7785. g.N(this,this.D);this.hide()};
  7786. nib=function(a,b){a=a.api.getRootNode();g.Jv(a,"ytp-ad-overlay-open",b);g.Jv(a,"ytp-ad-overlay-closed",!b)};
  7787. oib=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-underlay-companion",V:[{I:"div",S:"ytp-ad-underlay-side-container",V:[{I:"div",S:"ytp-ad-underlay-image-container"},{I:"div",S:"ytp-ad-underlay-description-container"},{I:"div",S:"ytp-ad-underlay-headline-container"},{I:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ea=this.Fa("ytp-ad-underlay-image-container");this.C=new BF(this.api,this.layoutId,this.interactionLoggingClientData,
  7788. this.kb,"ytp-ad-underlay-image");g.N(this,this.C);this.C.Ja(this.Ea);this.ra=this.Fa("ytp-ad-underlay-headline-container");this.B=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-headline");g.N(this,this.B);this.B.Ja(this.ra);this.Y=this.Fa("ytp-ad-underlay-description-container");this.D=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-description");g.N(this,this.D);this.D.Ja(this.Y);this.G=this.Fa("ytp-ad-underlay-action-button-container");
  7789. this.j=this.Fa("ytp-ad-underlay-side-container");this.hide()};
  7790. pib=function(a){var b=g.xf("html5-video-player");b&&g.Jv(b,"ytp-ad-display-override",a)};
  7791. O1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
  7792. jF.call(this,a,{I:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.onSelected=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
  7793. qib=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
  7794. P1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");uF.call(this,a,b,c,d,e,"survey-submit")};
  7795. Q1=function(a,b,c,d,e){jF.call(this,a,{I:"div",S:"ytp-ad-survey-player-overlay",V:[{I:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{I:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.D=e;this.B=this.j=null;this.C=this.Fa("ytp-ad-survey-player-overlay-instream-info");
  7796. this.skipOrPreview=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.N(this,this.D);this.hide()};
  7797. R1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
  7798. jF.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ea=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.fb("a11y_h5_associate_survey_question");this.question=this.Fa("ytp-ad-survey-question");
  7799. this.Na=this.Fa("ytp-ad-survey-question-background");this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.kb()};
  7800. rib=function(a,b){b=g.lF(b);g.Sf(a.questionText,b);a.Y&&a.questionText.setAttribute("id",ZE("survey-question-text"))};
  7801. sib=function(a,b,c,d){d=new O1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,d,a.Ea);d.Ja(a.answers);d.init(ZE("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),null!=b&&(null!==d.j?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
  7802. uib=function(a,b){if(b){var c=b.background;c&&g.V(c,tib)&&(c=(c=g.V(c,tib).image)&&AF(c)||"",g.ec(c)?g.JE(Error("Found ThumbnailDetails without valid image URL")):g.Is(a.Na,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.IE(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.kb();a.j=new aG(a.api,b.durationMilliseconds);g.N(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.V(b.instreamAdPlayerOverlay,
  7803. xGa))try{var d=new Q1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.j);d.Ja(a.playerOverlay);d.init(ZE("survey-player-overlay"),g.V(b.instreamAdPlayerOverlay,xGa),a.macros);a.D=d;g.N(a,d);a.G0()}catch(e){g.IE(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.IE(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new hG(a.api,a.j),b.Ja(a.playerOverlay),
  7804. g.N(a,b)):g.IE(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.IE(Error("addCommonComponents() needs to be called before starting countdown."))};
  7805. vib=function(a){function b(c){return{toString:function(){return c()}}}
  7806. a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
  7807. a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.kb()-a.C).toString()})};
  7808. wib=function(a,b,c,d,e){R1.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
  7809. xib=function(a,b,c){a.noneOfTheAbove=new qib(a.api,a.layoutId,a.interactionLoggingClientData,a.kb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(ZE("survey-none-of-the-above"),b,c)};
  7810. zib=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
  7811. yib(a,!0)};
  7812. yib=function(a,b){var c=a.D;a=Aib(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof YF&&!c.j.D&&pya(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
  7813. Aib=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
  7814. S1=function(a,b,c,d,e){R1.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])});
  7815. var f=this;this.hide()};
  7816. T1=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Fa("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Fa("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Fa("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
  7817. Dib=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.V(c,nM)?Bib(a,g.V(c,nM),a.macros):g.V(c,mM)&&Cib(a,g.V(c,mM),a.macros);a.j=b};
  7818. Bib=function(a,b,c){var d=new S1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(ZE("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
  7819. Cib=function(a,b,c){var d=new wib(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(ZE("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
  7820. U1=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.B=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
  7821. this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.MF(this,500,!1,300);g.N(this,this.transition)};
  7822. Fib=function(a,b){b=b&&AF(b)||"";if(g.ec(b))g.JE(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=$ka(d.style);b=new g.ne([c,Kba(Eib,b)].map(Iba).join(""),ze);a.style.cssText=oe(b)}};
  7823. Gib=function(a){var b=g.xf("html5-video-player");b&&g.Jv(b,"ytp-ad-display-override",a)};
  7824. V1=function(a,b,c,d,e,f){f=void 0===f?0:f;JF.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Fa("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.MF(this,400,!1,100,function(){h.hide()});
  7825. g.N(this,this.transition);this.hide()};
  7826. W1=function(a,b,c,d){jF.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
  7827. Hib=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
  7828. X1=function(a,b,c,d){jF.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
  7829. Jib=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.V(b,Iib),b.onTap&&(this.interaction={onTap:b.onTap})}};
  7830. Y1=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
  7831. Kib=function(a,b,c,d,e){JF.call(this,a,{I:"div",Ka:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new W1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.adAvatar);Hf(this.element,this.adAvatar.element,0);this.headline=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,
  7832. this.kb);g.N(this,this.headline);this.headline.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.description);this.description.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new X1(this.api,this.layoutId,this.interactionLoggingClientData,
  7833. this.kb);g.N(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
  7834. Lib=function(a,b,c,d){jF.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Fa("ytp-skip-ad-button__text");this.transition=new g.MF(this,500,!1,100,function(){e.hide()});
  7835. g.N(this,this.transition);this.j=new PF(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.j);this.hide()};
  7836. Mib=function(a,b,c,d,e){JF.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new V1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j);g.N(this,this.B);this.B.Ja(this.element);this.C=new Lib(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.C);this.C.Ja(this.element);this.hide()};
  7837. Z1=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
  7838. $1=function(a,b,c,d,e){jF.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.j=e;this.G=this.Fa("ytp-ad-player-overlay-layout__player-card-container");this.B=this.Fa("ytp-ad-player-overlay-layout__ad-info-container");this.D=this.Fa("ytp-ad-player-overlay-layout__skip-or-preview-container");
  7839. this.hide()};
  7840. a2=function(a,b,c){EF.call(this,a);this.api=a;this.kb=b;this.B={};a=new g.W({I:"div",Ka:["video-ads","ytp-ad-module"]});g.N(this,a);zR&&g.Fv(a.element,"ytp-ads-tiny-mode");this.G=new SD(a.element);g.N(this,this.G);g.UT(this.api,a.element,4);dHa(c)&&(c=new g.W({I:"div",Ka:["ytp-ad-underlay"]}),g.N(this,c),this.C=new SD(c.element),g.N(this,this.C),g.UT(this.api,c.element,0));g.N(this,Ixa())};
  7841. Nib=function(a,b){a=g.kd(a.B,b.id,null);null==a&&g.JE(Error("Component not found for element id: "+b.id));return a||null};
  7842. Oib=function(a){g.sV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new Ogb(this.player):new e1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=new Vgb({Zn:L1(b.j).Zn,Lf:L1(b.j).Lf,J:b.player,Rk:L1(b.j).Rk,Oa:b.j.j.Oa,Yk:L1(b.j).Yk,Xc:b.j.j.Xc});b.B=d.m4;return b.B};
  7843. this.j=new Xhb(this.player,this,this.C,this.D);g.N(this,this.j);var c=a.U();!OI(c)||g.HR(c)||MR(c)||(g.N(this,new a2(a,L1(this.j).kb,L1(this.j).Rk)),g.N(this,new Yhb(a)))};
  7844. Pib=function(a){a.created!==a.loaded&&RF("Created and loaded are out of sync")};
  7845. Sib=function(a){g.sV.prototype.load.call(a);var b=L1(a.j).Rk;try{a.player.getRootNode().classList.add("ad-created")}catch(l){RF(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.fb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.V(l,tM)});
  7846. e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Zb();b=Qib(f,h,b,L1(a.j).Gw);f=c&&c.clientPlaybackNonce||"";c=c&&c.mp||!1;h=1E3*a.player.getDuration(1);Rib(a);a.j.j.wx.lk(f,h,c,b.aL,b.nW,b.aL,e,d)};
  7847. Rib=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.mp)||g.FA("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=OI(b)&&!g.NI(b)&&"desktop-polymer"===b.playerStyle;c&&(a=uXa(a.player),a.addEventListener("updateKevlarOrC3Companion",Bya),a.addEventListener("updateEngagementPanelAction",Dya),a.addEventListener("changeEngagementPanelVisibility",Fya),window.addEventListener("yt-navigate-start",Hya))};
  7848. b2=function(a,b){b===a.Ms&&(a.Ms=void 0)};
  7849. Tib=function(a){var b=L1(a.j).Pd,c=b.D().rP("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ra.get().Yd(1).clientPlaybackNonce;var d=!1;c=g.u(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof GL?e.slotEntryTrigger.Wu:void 0;f&&f===b&&(d&&RF("More than 1 preroll playerBytes slot detected",e),d=!0)}d||y1(L1(a.j).sB)};
  7850. Uib=function(a){if(m1(L1(a.j).Rk))return!0;var b="";a=g.u(L1(a.j).Yk.aj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Xa)return!0;b+=c.slotType+" "}.01>Math.random()&&RF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
  7851. Vib=function(a){a=g.u(L1(a.j).Yk.aj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
  7852. BGa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=L1(a.j).Rk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Zb();c=Qib(b,c,f,L1(a.j).Gw);FGa(L1(a.j).Td,d,c.aL,c.nW,b,e)};
  7853. Qib=function(a,b,c,d){b={aL:[],nW:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.V(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,GM)?(h=g.V(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,GM),h=aJa(h,p),g.OE(f.sandwichedLinearAdRenderer.adVideoStart,GM,h)):g.V(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,GM)&&
  7854. (m=g.V(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,GM),h=aJa(m,p),g.OE(f.linearAdSequenceRenderer.adStart,GM,h))}b.aL.push(e)}return b};
  7855. g.c2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=Ula(a);return b.parseFromString(g.qe(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};
  7856. g.d2=function(a){g.I.call(this);this.callback=a;this.j=new Tv(0,0,.4,0,.2,1,1,1);this.delay=new g.wv(this.next,window,this);g.N(this,this.delay)};
  7857. g.Wib=function(a){var b=a.U();return b.yd&&!b.C&&g.BR(b)?a.Yc()?(a=a.Hn(),315<=Math.min(a.width,a.height)):!a.Lg():!1};
  7858. g.e2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.cK(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.W({I:"h2",S:"ytp-related-title",xa:"{{title}}"});this.previous=new g.W({I:"button",Ka:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.nF()]});this.N=new g.d2(function(c){b.suggestions.element.scrollLeft=-c});
  7859. this.next=new g.W({I:"button",Ka:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.oF()]});g.N(this,this.D);this.K=a.U().D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.o4,this);g.N(this,this.N);Xib(this);g.N(this,this.next);this.next.Ja(this.element);this.next.listen("click",
  7860. this.n4,this);this.D.T(this.api,"appresize",this.dc);this.D.T(this.api,"fullscreentoggled",this.xx);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.dc(this.api.ob().getPlayerSize());this.onVideoDataChange()};
  7861. Xib=function(a){for(var b={gA:0};16>b.gA;b={gA:b.gA},++b.gA){var c=new g.W({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
  7862. xa:"{{duration}}"}]}]});g.N(a,c);var d=c.Fa("ytp-suggestion-link");g.Is(d,"transitionDelay",b.gA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.gA;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Uk(),l={},g.wXa(a.api,l,"emb_rel_pause"),h=g.lo(h,l),g.mU(h,a.api,f)):g.lU(f,a.api,a.K,m||void 0)&&a.api.Qo(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
  7863. c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
  7864. Yib=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)};
  7865. g.f2=function(a){var b=a.api.Dh()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.Jv(a.element,"ytp-scroll-min",0<=b);g.Jv(a.element,"ytp-scroll-max",b<=c)};
  7866. $ib=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0;d=a;var h=d.api.U(),l=d.suggestionData[c],m=d.C[c];f=d.api.Yc()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Fa("ytp-suggestion-link");g.Is(e,"display","inline-block");Zib.test(l.title)&&(m.Fa("ytp-suggestion-title").dir="rtl");Zib.test(f)&&(m.Fa("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.cG(l.lengthSeconds):
  7867. "";var n=l.Uk(d.api.Yc());if(g.BR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.CT(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.lo(n,g.XO(p,"emb_rel_pause"))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.aK||
  7868. g.AR?"will-change: opacity":void 0});f=m.Fa("ytp-suggestion-image");d=d.api.Yc()?l.dh("hq2.jpg"):l.dh();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Fa("ytp-suggestion-link"),g.Is(c,"display","none");g.f2(a)};
  7869. aaa=[];ma="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
  7870. g.ha=caa(this);oa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
  7871. function c(f,h){this.j=f;ma(this,"description",{configurable:!0,writable:!0,value:h})}
  7872. if(a)return a;c.prototype.toString=function(){return this.j};
  7873. var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
  7874. oa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ma(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
  7875. var ajb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ra(d,e)&&(a[e]=d[e])}return a};
  7876. oa("Object.assign",function(a){return a||ajb});
  7877. var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
  7878. b.prototype=a;return new b},bjb=function(){function a(){function c(){}
  7879. new c;Reflect.construct(c,[],function(){});
  7880. return new c instanceof c}
  7881. if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
  7882. e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),cjb;
  7883. if("function"==typeof Object.setPrototypeOf)cjb=Object.setPrototypeOf;else{var djb;a:{var ejb={a:!0},fjb={};try{fjb.__proto__=ejb;djb=fjb.a;break a}catch(a){}djb=!1}cjb=djb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ua=cjb;
  7884. va.prototype.Z=function(a){this.B=a};
  7885. va.prototype.return=function(a){this.C={return:a};this.j=this.G};
  7886. va.prototype.Ia=function(a){this.j=a};
  7887. oa("Reflect",function(a){return a?a:{}});
  7888. oa("Reflect.construct",function(){return bjb});
  7889. oa("Reflect.setPrototypeOf",function(a){return a?a:ua?function(b,c){try{return ua(b,c),!0}catch(d){return!1}}:null});
  7890. oa("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.N=!1;var l=this.D();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
  7891. function c(){this.j=null}
  7892. function d(h){return h instanceof b?h:new b(function(l){l(h)})}
  7893. if(a)return a;c.prototype.B=function(h){if(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
  7894. var e=g.ha.setTimeout;c.prototype.C=function(h){e(h,0)};
  7895. c.prototype.G=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.j=null};
  7896. c.prototype.D=function(h){this.C(function(){throw h;})};
  7897. b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
  7898. var l=this,m=!1;return{resolve:h(this.Ca),reject:h(this.G)}};
  7899. b.prototype.Ca=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ea(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.ra(h):this.K(h)}};
  7900. b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?this.La(l,h):this.K(h)};
  7901. b.prototype.G=function(h){this.Z(2,h)};
  7902. b.prototype.K=function(h){this.Z(1,h)};
  7903. b.prototype.Z=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Ga();this.Y()};
  7904. b.prototype.Ga=function(){var h=this;e(function(){if(h.qa()){var l=g.ha.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
  7905. b.prototype.qa=function(){if(this.N)return!1;var h=g.ha.CustomEvent,l=g.ha.Event,m=g.ha.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ha.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
  7906. b.prototype.Y=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
  7907. var f=new c;b.prototype.Ea=function(h){var l=this.D();h.nI(l.resolve,l.reject)};
  7908. b.prototype.La=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
  7909. b.prototype.then=function(h,l){function m(r,t){return"function"==typeof r?function(v){try{n(r(v))}catch(w){p(w)}}:t}
  7910. var n,p,q=new b(function(r,t){n=r;p=t});
  7911. this.nI(m(h,n),m(l,p));return q};
  7912. b.prototype.catch=function(h){return this.then(void 0,h)};
  7913. b.prototype.nI=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
  7914. var n=this;null==this.B?f.B(m):this.B.push(m);this.N=!0};
  7915. b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
  7916. b.race=function(h){return new b(function(l,m){for(var n=g.u(h),p=n.next();!p.done;p=n.next())d(p.value).nI(l,m)})};
  7917. b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(w){r[v]=w;t--;0==t&&n(r)}}
  7918. var r=[],t=0;do r.push(void 0),t++,d(m.value).nI(q(r.length-1),p),m=l.next();while(!m.done)})};
  7919. return b});
  7920. oa("Object.setPrototypeOf",function(a){return a||ua});
  7921. oa("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
  7922. function c(){}
  7923. function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
  7924. function e(m){if(!ra(m,h)){var n=new c;ma(m,h,{value:n})}}
  7925. function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
  7926. if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
  7927. var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ra(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
  7928. b.prototype.get=function(m){return d(m)&&ra(m,h)?m[h][this.j]:void 0};
  7929. b.prototype.has=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)};
  7930. b.prototype.delete=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)?delete m[h][this.j]:!1};
  7931. return b});
  7932. oa("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
  7933. function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
  7934. function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&ra(l[0],n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
  7935. function e(l){this[0]={};this[1]=b();this.size=0;if(l){l=g.u(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
  7936. if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.u([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
  7937. var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
  7938. e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this[0][l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
  7939. e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
  7940. e.prototype.has=function(l){return!!d(this,l).entry};
  7941. e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
  7942. e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
  7943. e.prototype.keys=function(){return c(this,function(l){return l.key})};
  7944. e.prototype.values=function(){return c(this,function(l){return l.value})};
  7945. e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
  7946. e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
  7947. oa("Array.prototype.keys",function(a){return a?a:function(){return Ka(this,function(b){return b})}});
  7948. oa("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).mM}});
  7949. oa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
  7950. oa("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
  7951. if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
  7952. b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
  7953. b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
  7954. b.prototype.clear=function(){this.j.clear();this.size=0};
  7955. b.prototype.has=function(c){return this.j.has(c)};
  7956. b.prototype.entries=function(){return this.j.entries()};
  7957. b.prototype.values=function(){return this.j.values()};
  7958. b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
  7959. return b});
  7960. oa("Array.prototype.entries",function(a){return a?a:function(){return Ka(this,function(b,c){return[b,c]})}});
  7961. oa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
  7962. oa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
  7963. oa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
  7964. oa("Array.prototype.values",function(a){return a?a:function(){return Ka(this,function(b,c){return c})}});
  7965. oa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
  7966. oa("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
  7967. oa("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
  7968. oa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
  7969. oa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
  7970. oa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push(b[d]);return c}});
  7971. oa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
  7972. oa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
  7973. oa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ma(this,b,"includes").indexOf(b,c||0)}});
  7974. oa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
  7975. oa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
  7976. var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
  7977. oa("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
  7978. oa("Int8Array.prototype.fill",Na);oa("Uint8Array.prototype.fill",Na);oa("Uint8ClampedArray.prototype.fill",Na);oa("Int16Array.prototype.fill",Na);oa("Uint16Array.prototype.fill",Na);oa("Int32Array.prototype.fill",Na);oa("Uint32Array.prototype.fill",Na);oa("Float32Array.prototype.fill",Na);oa("Float64Array.prototype.fill",Na);oa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push([d,b[d]]);return c}});
  7979. oa("globalThis",function(a){return a||g.ha});
  7980. oa("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
  7981. oa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
  7982. })})}});
  7983. oa("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ma(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
  7984. oa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
  7985. oa("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
  7986. oa("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
  7987. if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
  7988. b.prototype.add=function(c){this.j.set(c,!0);return this};
  7989. b.prototype.has=function(c){return this.j.has(c)};
  7990. b.prototype.delete=function(c){return this.j.delete(c)};
  7991. return b});
  7992. oa("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
  7993. oa("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
  7994. oa("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
  7995. return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
  7996. oa("Int8Array.prototype.copyWithin",Oa);oa("Uint8Array.prototype.copyWithin",Oa);oa("Uint8ClampedArray.prototype.copyWithin",Oa);oa("Int16Array.prototype.copyWithin",Oa);oa("Uint16Array.prototype.copyWithin",Oa);oa("Int32Array.prototype.copyWithin",Oa);oa("Uint32Array.prototype.copyWithin",Oa);oa("Float32Array.prototype.copyWithin",Oa);oa("Float64Array.prototype.copyWithin",Oa);oa("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}});
  7997. oa("Int8Array.prototype.findLastIndex",Ra);oa("Uint8Array.prototype.findLastIndex",Ra);oa("Uint8ClampedArray.prototype.findLastIndex",Ra);oa("Int16Array.prototype.findLastIndex",Ra);oa("Uint16Array.prototype.findLastIndex",Ra);oa("Int32Array.prototype.findLastIndex",Ra);oa("Uint32Array.prototype.findLastIndex",Ra);oa("Float32Array.prototype.findLastIndex",Ra);oa("Float64Array.prototype.findLastIndex",Ra);
  7998. oa("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}});
  7999. oa("Number.parseInt",function(a){return a||parseInt});
  8000. oa("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var ro,db,maa;ro=ro||{};g.Ta=this||self;db="closure_uid_"+(1E9*Math.random()>>>0);maa=0;g.k=sb.prototype;g.k.G6=function(a){var b=g.Ja.apply(1,arguments),c=this.UO(b);c?c.push(new paa(a)):this.e1(a,b)};
  8001. g.k.e1=function(a){this.j.set(this.aV(g.Ja.apply(1,arguments)),[new paa(a)])};
  8002. g.k.UO=function(){var a=this.aV(g.Ja.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
  8003. g.k.m8=function(){var a=this.UO(g.Ja.apply(0,arguments));return a&&a.length?a[0]:void 0};
  8004. g.k.clear=function(){this.j.clear()};
  8005. g.k.aV=function(){var a=g.Ja.apply(0,arguments);return a?a.join(","):"key"};g.y(tb,sb);tb.prototype.B=function(a){var b=g.Ja.apply(1,arguments),c=0,d=this.m8(b);d&&(c=d.j);this.e1(c+a,b)};g.y(ub,sb);ub.prototype.lh=function(a){this.G6(a,g.Ja.apply(1,arguments))};g.k=g.I.prototype;g.k.Gy=!1;g.k.Ma=function(){return this.Gy};
  8006. g.k.dispose=function(){this.Gy||(this.Gy=!0,this.va())};
  8007. g.k.addOnDisposeCallback=function(a,b){this.Gy?void 0!==b?a.call(b):a():(this.qn||(this.qn=[]),this.qn.push(void 0!==b?(0,g.gb)(a,b):a))};
  8008. g.k.va=function(){if(this.qn)for(;this.qn.length;)this.qn.shift()()};g.nb(xb,Error);xb.prototype.name="CustomError";var Tba;g.nb(yb,xb);yb.prototype.name="AssertionError";g.Ab.prototype.stopPropagation=function(){this.B=!0};
  8009. g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,bs,Ys;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
  8010. for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
  8011. g.gjb=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
  8012. 0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
  8013. g.ac=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
  8014. g.Pt=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
  8015. b.call(c,m,l,a)&&(e[f++]=m)}return e};
  8016. g.$r=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
  8017. return e};
  8018. bs=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
  8019. (0,g.ac)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
  8020. return d};
  8021. Ys=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
  8022. return!1};
  8023. g.as=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
  8024. return!0};var cc={};var iba=function(){if(!g.Ta.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
  8025. try{var c=function(){};
  8026. g.Ta.addEventListener("test",c,b);g.Ta.removeEventListener("test",c,b)}catch(d){}return a}();var hjb=Ya(1,!0),qc=Ya(610401301,!1),Bea;Ya(899588437,!1);Bea=Ya(188588736,!1);g.ijb=Ya(399321843,!0);g.jjb=Ya(628162879,hjb);Ya(2147483644,!1);Ya(2147483645,!1);Ya(2147483646,hjb);Ya(2147483647,!0);var sc=!!g.Xa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var kc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Haa=/&/g,Iaa=/</g,Jaa=/>/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var tc,kjb=g.Ta.navigator;tc=kjb?kjb.userAgentData||null:null;Nc[" "]=function(){};var Js,KY,qgb,ljb,mjb,njb,yR,zR,ojb;g.AR=Ac();g.Ks=Naa();g.VC=yc("Edge");g.UR=g.VC||g.Ks;Js=yc("Gecko")&&!(jc(g.oc(),"WebKit")&&!yc("Edge"))&&!(yc("Trident")||yc("MSIE"))&&!yc("Edge");g.Qc=jc(g.oc(),"WebKit")&&!yc("Edge");KY=Mc();qgb=Uaa();g.uB=Taa();ljb=Kc();mjb=yc("iPad");njb=yc("iPod");yR=Lc();zR=jc(g.oc(),"KaiOS");
  8027. a:{var pjb="",qjb=function(){var a=g.oc();if(Js)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.VC)return/Edge\/([\d\.]+)/.exec(a);if(g.Ks)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Qc)return/WebKit\/(\S+)/.exec(a);if(g.AR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
  8028. qjb&&(pjb=qjb?qjb[1]:"");if(g.Ks){var g2,rjb=g.Ta.document;g2=rjb?rjb.documentMode:void 0;if(null!=g2&&g2>parseFloat(pjb)){ojb=String(g2);break a}}ojb=pjb}var Xaa=ojb,Vaa={};var b0a=Yaa("AnimationEnd"),VXa=Yaa("TransitionEnd");g.nb(Rc,g.Ab);var sjb={2:"touch",3:"pen",4:"mouse"};
  8029. Rc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Js&&(Oc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
  8030. a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:sjb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=
  8031. a;a.defaultPrevented&&Rc.Nf.preventDefault.call(this)};
  8032. Rc.prototype.stopPropagation=function(){Rc.Nf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
  8033. Rc.prototype.preventDefault=function(){Rc.Nf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(1E6*Math.random()|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=pd.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=rd(a,b,d,e);-1<h?(b=a[h],c||(b.mI=!1)):(b=new aba(b,this.src,f,!!d,e),b.mI=c,a.push(b));return b};
  8034. g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=rd(e,b,c,d);return-1<b?(Uc(e[b]),g.Gb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
  8035. g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Uc(d[e]);delete this.listeners[c];this.j--}return b};
  8036. g.k.wE=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=rd(a,b,c,d));return-1<e?a[e]:null};
  8037. g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.Zc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var xd="closure_lm_"+(1E6*Math.random()|0),Bd={},kba=0,Cd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.nb(g.Dd,g.I);g.Dd.prototype[Zaa]=!0;g.k=g.Dd.prototype;g.k.addEventListener=function(a,b,c,d){g.ud(this,a,b,c,d)};
  8038. g.k.removeEventListener=function(a,b,c,d){mba(this,a,b,c,d)};
  8039. g.k.dispatchEvent=function(a){var b=this.RR;if(b){var c=[];for(var d=1;b;b=b.RR)c.push(b),++d}b=this.A6;d=a.type||a;if("string"===typeof a)a=new g.Ab(a,b);else if(a instanceof g.Ab)a.target=a.target||b;else{var e=a;a=new g.Ab(d,b);g.od(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Ed(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Ed(h,d,!0,a)&&e,a.B||(e=Ed(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Ed(h,d,!1,a)&&e;return e};
  8040. g.k.va=function(){g.Dd.Nf.va.call(this);this.hm&&this.hm.removeAll(void 0);this.RR=null};
  8041. g.k.listen=function(a,b,c,d){return this.hm.add(String(a),b,!1,c,d)};
  8042. g.k.oF=function(a,b,c,d){return this.hm.add(String(a),b,!0,c,d)};
  8043. g.k.Pc=function(a,b,c,d){this.hm.remove(String(a),b,c,d)};
  8044. g.k.wE=function(a,b,c,d){return this.hm.wE(String(a),b,c,d)};
  8045. g.k.hasListener=function(a,b){return this.hm.hasListener(void 0!==a?String(a):void 0,b)};Fd.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var tjb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};Od.prototype.toString=function(){return this.j};
  8046. var rba={},qba={};Qd("");var Ud;g.Wd.prototype.toString=function(){return this.u0+""};
  8047. var sba={};g.ae.prototype.toString=function(){return this.w0};
  8048. g.ge=new g.ae("about:invalid#zClosurez");var F0a=fe("tel"),D0a=fe("sms"),tba=[fe("data"),fe("http"),fe("https"),fe("mailto"),fe("ftp"),new ce(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ze={};g.ne.prototype.toString=function(){return this.t0.toString()};
  8049. var Vka=new g.ne("",ze),xba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),wba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),vba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),yba=/\/\*/;var Fba={};g.pe.prototype.toString=function(){return this.s0.toString()};
  8050. var ujb=/^[a-zA-Z0-9-]+$/,vjb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},wjb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Cba=new g.pe(g.Ta.trustedTypes&&g.Ta.trustedTypes.emptyHTML||"",Fba);we.prototype.toString=function(){return this.j};xe.prototype.toString=function(){return this.v0.toString()};var xjb=Id(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.qe(Cba);return!b.parentElement});g.k=g.Ie.prototype;g.k.clone=function(){return new g.Ie(this.x,this.y)};
  8051. g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
  8052. g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
  8053. g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
  8054. g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Ke.prototype;g.k.clone=function(){return new g.Ke(this.width,this.height)};
  8055. g.k.area=function(){return this.width*this.height};
  8056. g.k.aspectRatio=function(){return this.width/this.height};
  8057. g.k.isEmpty=function(){return!this.area()};
  8058. g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
  8059. g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
  8060. g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  8061. g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.yjb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=cf.prototype;g.k.Hb=function(a){return nf(this.j,a)};
  8062. g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
  8063. g.k.Fa=function(a){return g.xf(a,this.j)};
  8064. g.k.setProperties=yf;g.k.createElement=function(a){return Af(this.j,a)};
  8065. g.k.appendChild=g.Ff;g.k.append=function(a,b){Yba(lf(a),a,arguments,1)};
  8066. g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
  8067. g.k.removeNode=g.Pf;g.k.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
  8068. g.k.contains=g.Rf;var Vf;Zf.prototype.add=function(a,b){var c=eca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
  8069. Zf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
  8070. var eca=new Fd(function(){return new fg},function(a){return a.reset()});
  8071. fg.prototype.set=function(a,b){this.vt=a;this.scope=b;this.next=null};
  8072. fg.prototype.reset=function(){this.next=this.scope=this.vt=null};var gg,hg=!1,cca=new Zf;fca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
  8073. var gca=new Fd(function(){return new fca},function(a){a.reset()});
  8074. g.kg.prototype.then=function(a,b,c){return qca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
  8075. g.kg.prototype.$goog_Thenable=!0;g.k=g.kg.prototype;g.k.xl=function(a,b){return qca(this,null,a,b)};
  8076. g.k.catch=g.kg.prototype.xl;g.k.cancel=function(a){if(0==this.j){var b=new qg(a);g.ig(function(){mca(this,b)},this)}};
  8077. g.k.yea=function(a){this.j=0;jg(this,2,a)};
  8078. g.k.zea=function(a){this.j=0;jg(this,3,a)};
  8079. g.k.W7=function(){for(var a;a=nca(this);)oca(this,a,this.j,this.N);this.K=!1};
  8080. var uca=Yf;g.nb(qg,xb);qg.prototype.name="cancel";g.nb(g.rg,g.Dd);g.k=g.rg.prototype;g.k.enabled=!1;g.k.fd=null;g.k.setInterval=function(a){this.Ti=a;this.fd&&this.enabled?(this.stop(),this.start()):this.fd&&this.stop()};
  8081. g.k.hea=function(){if(this.enabled){var a=g.kb()-this.vZ;0<a&&a<.8*this.Ti?this.fd=this.jH.setTimeout(this.GW,this.Ti-a):(this.fd&&(this.jH.clearTimeout(this.fd),this.fd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
  8082. g.k.start=function(){this.enabled=!0;this.fd||(this.fd=this.jH.setTimeout(this.GW,this.Ti),this.vZ=g.kb())};
  8083. g.k.stop=function(){this.enabled=!1;this.fd&&(this.jH.clearTimeout(this.fd),this.fd=null)};
  8084. g.k.va=function(){g.rg.Nf.va.call(this);this.stop();delete this.jH};g.y(g.Fg,g.I);g.k=g.Fg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
  8085. g.k.Mm=function(){var a=this.B.values();a=[].concat(g.qa(a)).filter(function(b){return b.j.size});
  8086. a.length&&this.N.flush(a,this.G);xca(a);this.D=0;this.j.enabled&&this.j.stop()};
  8087. g.k.Nj=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
  8088. g.k.vD=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new ub(a,b))};
  8089. g.k.Jk=function(a){this.TM(a,1,g.Ja.apply(1,arguments))};
  8090. g.k.TM=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof tb&&(d.B(b,c),vca(this))};
  8091. g.k.lh=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof ub&&(d.lh(b,c),vca(this))};Aca.prototype.lh=function(a,b,c){this.j.lh("/client_streamz/bg/fil",a,b,c)};
  8092. Cca.prototype.lh=function(a,b,c){this.j.lh("/client_streamz/bg/fcd",a,b,c)};
  8093. Eca.prototype.lh=function(a,b,c){this.j.lh("/client_streamz/bg/fsl",a,b,c)};
  8094. Gg.prototype.lh=function(a,b,c,d,e){this.j.lh("/client_streamz/bg/wrl",a,b,c,d,e)};
  8095. Hg.prototype.lh=function(a,b,c){this.j.lh("/client_streamz/bg/el",a,b,c)};var Mh=void 0,Lh,pda="undefined"!==typeof TextDecoder,Mca,Lca="function"===typeof String.prototype.P9,Kca="undefined"!==typeof TextEncoder;var sB,tB;g.bR=Bc();sB=Kc()||yc("iPod");tB=yc("iPad");g.aUa=Paa();g.aK=Cc();g.zC=Ic()&&!Lc();var Rca={},Ng=null,Sca=Js||g.Qc||"function"==typeof g.Ta.btoa;var ada="undefined"!==typeof Uint8Array,Vca=!g.Ks&&"function"===typeof btoa,Zca=/[-_.]/g,Xca={"-":"+",_:"/",".":"="},bda,$g={};var dda;ah.prototype.isEmpty=function(){return null==this.j};
  8096. ah.prototype.sizeBytes=function(){var a=ch(this);return a?a.length:0};var lda="function"===typeof Uint8Array.prototype.slice,ih=0,jh=0,Vea;nh.prototype.init=function(a,b,c,d){d=void 0===d?{}:d;this.aI=void 0===d.aI?!1:d.aI;a&&(a=fh(a),this.B=a.buffer,this.G=a.Mw,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
  8097. nh.prototype.free=function(){this.clear();100>Hh.length&&Hh.push(this)};
  8098. nh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.aI=!1};
  8099. nh.prototype.reset=function(){this.j=this.D};
  8100. var Hh=[];Ih.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>h2.length&&h2.push(this)};
  8101. Ih.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
  8102. var h2=[];var sda,vda;Oh.prototype.length=function(){return this.j.length};
  8103. Oh.prototype.end=function(){var a=this.j;this.j=[];return a};var i2=Xh(),Uda=Xh("0di"),Rj=Xh("2ex"),gea=Xh("0dg");Math.max.apply(Math,g.qa(Object.values({aLa:1,UKa:2,LKa:4,J_a:8,I_a:16,NWa:32,gva:64,tfb:128,HHa:256,EHa:512,VKa:1024,iHa:2048,jcb:4096,jHa:8192})));var Zh=i2?function(a,b){a[i2]|=b}:function(a,b){void 0!==a.Nn?a.Nn|=b:Object.defineProperties(a,{Nn:{value:b,
  8104. configurable:!0,writable:!0,enumerable:!1}})},Wj=i2?function(a,b){a[i2]&=~b}:function(a,b){void 0!==a.Nn&&(a.Nn&=~b)},wi=i2?function(a){return a[i2]|0}:function(a){return a.Nn|0},Nj=i2?function(a){return a[i2]}:function(a){return a.Nn},si=i2?function(a,b){a[i2]=b;
  8105. return a}:function(a,b){void 0!==a.Nn?a.Nn=b:Object.defineProperties(a,{Nn:{value:b,
  8106. configurable:!0,writable:!0,enumerable:!1}});return a};var lj={},Dda={},zjb,Vj,Ajb=[];si(Ajb,55);Vj=Object.freeze(Ajb);zi.prototype.next=function(){if(this.C<this.j.length){var a=this.j[this.C++];return{done:!1,value:this.B?this.B.call(this.D,a):a}}return{done:!0,value:void 0}};
  8107. zi.prototype[Symbol.iterator]=function(){return new zi(this.j,this.B,this.D)};
  8108. var Ai,Hea;Object.freeze(new function(){});
  8109. Object.freeze(new function(){});var jea;var Nda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nj,pj,Vda;var Bjb=function(){try{var a=function(){return bjb(Map,[],this.constructor)};
  8110. g.y(a,Map);Nc(new a);return!1}catch(b){return!0}}();
  8111. g.k=rj.prototype;g.k.get=function(a){return this.j.get(a)};
  8112. g.k.set=function(a,b){this.j.set(a,b);this.size=this.j.size;return this};
  8113. g.k.delete=function(a){a=this.j.delete(a);this.size=this.j.size;return a};
  8114. g.k.clear=function(){this.j.clear();this.size=this.j.size};
  8115. g.k.has=function(a){return this.j.has(a)};
  8116. g.k.entries=function(){return this.j.entries()};
  8117. g.k.keys=function(){return this.j.keys()};
  8118. g.k.values=function(){return this.j.values()};
  8119. g.k.forEach=function(a,b){return this.j.forEach(a,b)};
  8120. rj.prototype[Symbol.iterator]=function(){return this.entries()};
  8121. var sj=function(){function a(){return bjb(Map,[],this.constructor)}
  8122. if(Bjb)return Object.setPrototypeOf(rj.prototype,Map.prototype),Object.defineProperties(rj.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),rj;g.y(a,Map);return a}();
  8123. g.y(tj,sj);g.k=tj.prototype;g.k.clear=function(){uj(this);sj.prototype.clear.call(this)};
  8124. g.k.delete=function(a){uj(this);return sj.prototype.delete.call(this,this.gF(a,!0,!1))};
  8125. g.k.entries=function(){var a=Array.from(sj.prototype.keys.call(this));return new zi(a,aea,this)};
  8126. g.k.keys=function(){return sj.prototype.keys.call(this)};
  8127. g.k.values=function(){var a=Array.from(sj.prototype.keys.call(this));return new zi(a,tj.prototype.get,this)};
  8128. g.k.forEach=function(a,b){var c=this;sj.prototype.forEach.call(this,function(d,e){a.call(b,c.get(e),e,c)})};
  8129. g.k.set=function(a,b){uj(this);a=this.gF(a,!0,!1);return null==a?this:null==b?(sj.prototype.delete.call(this,a),this):sj.prototype.set.call(this,a,this.OT(b,!0,!0,this.nM,!1,this.cI))};
  8130. g.k.has=function(a){return sj.prototype.has.call(this,this.gF(a,!1,!1))};
  8131. g.k.get=function(a){a=this.gF(a,!1,!1);var b=sj.prototype.get.call(this,a);if(void 0!==b){var c=this.nM;return c?(c=this.OT(b,!1,!0,c,this.eob,this.cI),c!==b&&sj.prototype.set.call(this,a,c),c):b}};
  8132. tj.prototype[Symbol.iterator]=function(){return this.entries()};
  8133. tj.prototype.toJSON=void 0;tj.prototype.i$=Dda;g.k=T.prototype;g.k.toJSON=function(){return zjb?bl(this,this.oa,!1):bl(this,Kj(this.oa,eea,void 0,void 0,!1),!0)};
  8134. g.k.Ck=function(){zjb=!0;try{return JSON.stringify(this.toJSON(),cea)}finally{zjb=!1}};
  8135. g.k.clone=function(){var a=this.oa;return oj(this.constructor,Oj(a,Nj(a),!1))};
  8136. g.k.Mw=function(){return!!(wi(this.oa)&2)};
  8137. g.k.qK=lj;g.k.toString=function(){return bl(this,this.oa,!1).toString()};var Eea=Symbol(),el,fl,Il=Symbol(),Mea=Symbol(),Ll=Symbol(),Ml=Symbol(),Cjb=Nl(function(a,b,c){if(1!==a.B)return!1;Pl(b,c,Fh(a.j));return!0},Ql),Djb=Nl(function(a,b,c){if(1!==a.B)return!1;
  8138. a=Fh(a.j);Pl(b,c,0===a?void 0:a);return!0},Ql),Ejb=Nl(function(a,b,c,d){if(1!==a.B)return!1;
  8139. jk(b,c,d,Fh(a.j));return!0},Ql),Fjb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8140. Pl(b,c,Bh(a.j));return!0},Rl),Gjb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8141. a=Bh(a.j);Pl(b,c,0===a?void 0:a);return!0},Rl),Hjb=Nl(function(a,b,c,d){if(0!==a.B)return!1;
  8142. jk(b,c,d,Bh(a.j));return!0},Rl),Ijb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8143. Pl(b,c,Ch(a.j));return!0},Sl),Jjb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8144. a=Ch(a.j);Pl(b,c,0===a?void 0:a);return!0},Sl),Kjb=Nl(function(a,b,c,d){if(0!==a.B)return!1;
  8145. jk(b,c,d,Ch(a.j));return!0},Sl),Ljb=Nl(function(a,b,c){if(1!==a.B)return!1;
  8146. Pl(b,c,Eh(a.j));return!0},function(a,b,c){Ada(a,c,Sda(b))}),Mjb=Ol(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
  8147. b=Xj(b,Nj(b),c,2,!1);if(2==a.B)for(c=Ch(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(Eh(a.j));else b.push(Eh(a.j));return!0},function(a,b,c){b=cl(Sda,b,!1);
  8148. if(null!=b)for(var d=0;d<b.length;d++)Ada(a,c,b[d])}),Njb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8149. Pl(b,c,Gh(a.j));return!0},Wea),Ojb=Nl(function(a,b,c,d){if(0!==a.B)return!1;
  8150. jk(b,c,d,Gh(a.j));return!0},Wea),j2=Nl(function(a,b,c){if(2!==a.B)return!1;
  8151. Pl(b,c,Nh(a));return!0},Xea),Pjb=Ol(function(a,b,c){if(2!==a.B)return!1;
  8152. a=Nh(a);fk(b,c,pea,a);return!0},function(a,b,c){b=cl(jj,b,!0);
  8153. if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Th(e,f,Nca(h))}}),Qjb=Nl(function(a,b,c,d){if(2!==a.B)return!1;
  8154. jk(b,c,d,Nh(a));return!0},Xea),Cea=new Uh(function(a,b,c,d,e){if(2!==a.B)return!1;
  8155. Kh(a,Fk(b,d,c,!0),e);return!0},Tl,!1,!0),Lea=new Uh(function(a,b,c,d,e){if(2!==a.B)return!1;
  8156. Kh(a,Fk(b,d,c),e);return!0},Tl,!1,!0),k2;
  8157. k2=new Uh(function(a,b,c,d,e){if(2!==a.B)return!1;d=P(void 0,d[0],d[1]);var f=Nj(b);yi(f);var h=Xj(b,f,c,3);f=Nj(b);wi(h)&4&&(h=Wh(h),si(h,(wi(h)|1)&-2079),Sj(b,f,c,h));h.push(d);Kh(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Tl(a,b[f],c,d,e)},!0,!0);
  8158. var l2=new Uh(function(a,b,c,d,e,f){if(2!==a.B)return!1;var h=Nj(b);yi(h);(f=hk(b,h,f))&&c!==f&&Sj(b,h,f);b=Fk(b,d,c);Kh(a,b,e);return!0},Tl,!1,!0),Rjb=Nl(function(a,b,c){if(2!==a.B)return!1;
  8159. Pl(b,c,qda(a));return!0},function(a,b,c){b=Tda(b);
  8160. null!=b&&Th(a,c,fh(b).buffer)}),Sjb=Ol(function(a,b,c){if(2!==a.B)return!1;
  8161. a=qda(a);fk(b,c,pea,a);return!0},function(a,b,c){b=cl(Tda,b,!1);
  8162. if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Th(e,f,fh(h).buffer)}}),m2=Nl(function(a,b,c){if(0!==a.B)return!1;
  8163. Pl(b,c,Ch(a.j)>>>0);return!0},function(a,b,c){b=Ji(b);
  8164. null!=b&&null!=b&&(Sh(a,c,0),Ph(a.j,b))}),Tjb=Nl(function(a,b,c){if(0!==a.B)return!1;
  8165. Pl(b,c,Ch(a.j));return!0},function(a,b,c){b=Ii(b);
  8166. null!=b&&(b=parseInt(b,10),Sh(a,c,0),yda(a.j,b))});g.y(Vl,T);Vl.wb=[1,2,3,4];g.y(Wl,T);var bm=[1,2,3],Ujb=[0,bm,Qjb,Kjb,Ojb];var Vjb=[0,k2,[0,Cjb,Fjb]];g.y(Xl,T);var am=[1,2,3],Wjb=[0,am,Hjb,Ejb,l2,Vjb];g.y(Yl,T);Yl.wb=[1];var Xjb=[0,k2,Ujb,Wjb];var Yjb=[0,[1,2,3],l2,[0,j2,-1,Njb],l2,[0,j2,-1,Ijb,Njb],l2,[0,j2]];g.y(Zl,T);Zl.prototype.gr=function(){var a=xea(this,3,3,void 0,!0);Fda(a);return a[void 0]};
  8167. Zl.wb=[3,6,4];Zl.prototype.j=Yea([0,j2,Yjb,Pjb,k2,Xjb,Ljb,Mjb]);g.y($l,T);$l.wb=[1];var efa={};g.k=cm.prototype;g.k.isEnabled=function(){if(!g.Ta.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{uF:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
  8168. g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.tda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.uF}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
  8169. e:"")};
  8170. g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=kc(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
  8171. g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{uF:0,path:b,domain:c});return d};
  8172. g.k.En=function(){return dm(this).keys};
  8173. g.k.nm=function(){return dm(this).values};
  8174. g.k.isEmpty=function(){return!this.j.cookie};
  8175. g.k.clear=function(){for(var a=dm(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
  8176. var kB=new cm("undefined"==typeof document?null:document);g.y(Hm,T);Hm.wb=[2];Im.prototype.setInterval=function(a){this.intervalMs=a;this.We&&this.enabled?(this.stop(),this.start()):this.We&&this.stop()};
  8177. Im.prototype.start=function(){var a=this;this.enabled=!0;this.We||(this.We=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
  8178. Im.prototype.stop=function(){this.enabled=!1;this.We&&(clearTimeout(this.We),this.We=void 0)};
  8179. Im.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<.8*this.intervalMs?this.We=setTimeout(function(){a.tick()},this.intervalMs-b):(this.We&&(clearTimeout(this.We),this.We=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.We=void 0};g.y(Jm,T);g.y(Km,T);g.Lm.prototype.B=0;g.Lm.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
  8180. g.Lm.prototype.getValue=function(){return this.C};g.y(Nm,T);Nm.prototype.zJ=function(){return Fi(Qj(this,1))};g.y(Om,T);g.y(Pm,T);Pm.wb=[1];g.y(Qm,T);var jfa=["platform","platformVersion","architecture","model","uaFullVersion"],Sm=new Pm,Rm=null;g.y(Tm,T);g.y(Um,T);Um.wb=[1,2,3,4,5];g.y(Vm,T);g.y(Wm,T);Wm.prototype.L=function(){return Uj(this,Um,7)};
  8181. Wm.prototype.Vv=function(){return Tj(this,16)};
  8182. Wm.wb=[3,20,27];g.y(Xm,T);Xm.prototype.MG=function(a){return S(this,2,a)};
  8183. Xm.wb=[3,5];g.y(Ym,T);var Zjb=Ul(Ym);Ym.wb=[5,6,7];g.y(lfa,T);var n2;n2=new function(a,b){this.B=a;this.j=b;this.isRepeated=0;this.C=g.Gk;this.defaultValue=void 0}(175237375,lfa);g.y(an,g.I);g.k=an.prototype;g.k.va=function(){this.KO();this.j.stop();this.qa.stop();g.I.prototype.va.call(this)};
  8184. g.k.dispatch=function(a){if(this.N)if(a instanceof Wm)this.log(a);else{var b=new Wm;a=a.Ck();b=Q(b,8,a);this.log(b)}};
  8185. g.k.log=function(a){if(this.N){a=a.clone();var b=this.Ga++;a=Wk(a,21,b);this.componentId&&Q(a,26,this.componentId);if(!uea(a)){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Tj(b,1,Mi(c))}null!=Lk(a,15)||Wk(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=a,c=this.experimentIds.clone(),Hk(b,Hm,16,c));b=this.C.length-1E3+1;0<b&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.PD||this.j.enabled||this.j.start()}};
  8186. g.k.flush=function(a,b){var c=this;if(0===this.C.length)a&&a();else{var d=Date.now();if(this.Ca>d&&this.Y<d)b&&b("throttled");else{this.network&&("function"===typeof this.network.zJ?ofa(this.B,this.network.zJ()):ofa(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.AB,0,0);d={};var f=this.iE();f&&(d.Authorization=f);this.K||(this.K=$m());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,zf().location.origin)).toString()}h=new URL(h);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,
  8187. h.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),h.searchParams.set("pageId",this.pageId));if(f&&this.ra===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Ck();d={url:h.toString(),body:l,cob:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis};h=function(m){c.D.reset();c.j.setInterval(c.D.getValue());if(m){var n=null;try{var p=
  8188. JSON.stringify(JSON.parse(m.replace(")]}'\n","")));n=Zjb(p)}catch(q){}n&&(m=Number,p="-1",p=void 0===p?"0":p,p=Mk(uea(n),p),m=m(p),0<m&&(c.Y=Date.now(),c.Ca=c.Y+m),n=n2.j?n2.C(n,n2.j,n2.B,!0):n2.C(n,n2.B,null,!0),n=null===n?void 0:n)&&(n=Ok(n,1,-1),-1!==n&&(c.D=new g.Lm(1>n?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
  8189. l=function(m,n){var p=sea(e,Wm);var q=Lk(e,14);g.Mm(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.ra=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.PD||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
  8190. c.network&&c.network.send(d,h,l)}}}};
  8191. g.k.KO=function(){pfa(this.B,!0);this.flush();pfa(this.B,!1)};
  8192. g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
  8193. Zm.prototype.MG=function(a){this.j.MG(a);return this};
  8194. Zm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Uj(cn(this),Qm,11)){var h=dn(this);Uk(h,3,c)}Uj(cn(this),Qm,11)&&(c=dn(this),Uk(c,4,e));Uj(cn(this),Qm,11)&&(e=dn(this),Uk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Tj(f,4,Mi(e));a=Jk(f,Wm,3,a);d&&(f=new Jm,d=Uk(f,13,d),f=new Km,d=Hk(f,Jm,2,d),f=new Vm,d=Hk(f,Km,1,d),d=S(d,2,9),Hk(a,Vm,18,d));b&&Wk(a,14,b);return a};en.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){switch(A.j){case 1:return f=(e=d.z6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(A,2,3),h=Object.assign({},{method:a.requestType,
  8195. headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.z(A,fetch(a.url,h),5);case 5:l=A.B;if(200!==l.status){null==(m=c)||m(l.status);A.Ia(3);break}if(null==(n=b)){A.Ia(7);break}q=p=n;return g.z(A,l.text(),8);case 8:q(A.B);case 7:case 3:g.Ea(A);clearTimeout(f);g.Fa(A,0);break;case 2:r=g.Da(A);switch(null==(t=r)?void 0:t.name){case "AbortError":null==(v=c)||v(408);break;default:null==(w=c)||w(400)}A.Ia(3)}})};
  8196. en.prototype.zJ=function(){return 4};g.y(fn,g.I);fn.prototype.oX=function(){this.D=!0;return this};
  8197. fn.prototype.build=function(){this.network||(this.network=new en);var a=new an({logSource:this.logSource,iE:this.iE?this.iE:hfa,sessionIndex:this.sessionIndex,Iea:this.B,Sw:this.C,PD:!1,oX:this.D,BW:this.BW,network:this.network});g.N(this,a);if(this.j){var b=this.j,c=bn(a.B);Q(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.AB&&(a.AB=this.AB);this.pageId&&(a.pageId=this.pageId);this.Vv&&((c=this.Vv)?(a.experimentIds||(a.experimentIds=new Hm),b=a.experimentIds,c=c.Ck(),Q(b,4,c)):a.experimentIds&&
  8198. Tj(a.experimentIds,4));qfa(a.B);this.network.MG&&this.network.MG(this.logSource);this.network.Jda&&this.network.Jda(a);return a};g.y(jn,g.I);jn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new $l,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Zea(e);c.push(f);e.clear()}Jk(b,Zl,1,c);this.j.dispatch(b);this.j.flush()}};g.y(ln,Error);ln.prototype.toString=function(){var a="RpcError("+(rfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};sfa.prototype.Ck=function(a){var b=[];nn(this,a,b);return b.join("")};
  8199. var vfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ufa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;on.prototype.C=null;on.prototype.getOptions=function(){return this.C||(this.C=this.D())};var $jb;g.nb(pn,on);pn.prototype.j=function(){return new XMLHttpRequest};
  8200. pn.prototype.D=function(){return{}};
  8201. $jb=new pn;var sn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Dfa=/#|$/,Efa=/[?&]($|#)/;g.nb(g.po,g.Dd);var Mfa=/^https?$/i,akb=["POST","PUT"],Gfa=[];g.k=g.po.prototype;g.k.f7=function(){this.dispose();g.Hb(Gfa,this)};
  8202. g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.B=0;this.Ga=!1;this.C=!0;this.j=this.N?this.N.j():$jb.j();this.Ca=this.N?this.N.getOptions():$jb.getOptions();this.j.onreadystatechange=(0,g.gb)(this.G_,this);try{this.getStatus(),this.Ea=!0,this.j.open(b,String(a),!0),this.Ea=!1}catch(h){this.getStatus();Jfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
  8203. Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.u(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
  8204. e=g.Ta.FormData&&a instanceof g.Ta.FormData;!g.Fb(akb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Lfa(this),0<this.ra&&(this.getStatus(),this.qa=g.Dg(this.q5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a),
  8205. this.Z=!1}catch(h){this.getStatus(),Jfa(this,h)}};
  8206. g.k.q5=function(){"undefined"!=typeof ro&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
  8207. g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),qo(this))};
  8208. g.k.va=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),qo(this,!0));g.po.Nf.va.call(this)};
  8209. g.k.G_=function(){this.Ma()||(this.Ea||this.Z||this.G?Kfa(this):this.pba())};
  8210. g.k.pba=function(){Kfa(this)};
  8211. g.k.isActive=function(){return!!this.j};
  8212. g.k.isComplete=function(){return 4==g.so(this)};
  8213. g.k.getStatus=function(){try{return 2<g.so(this)?this.j.status:-1}catch(a){return-1}};
  8214. g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
  8215. g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};xo.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
  8216. c=void 0===c?function(){}:c;
  8217. Hfa(a.url,function(d){d=d.target;to(d)?b(g.uo(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
  8218. xo.prototype.zJ=function(){return 1};zo.prototype.done=function(){this.logger.gx(this.j,yo()-this.startMillis)};
  8219. g.k=Ofa.prototype;g.k.gK=function(){};
  8220. g.k.gx=function(){};
  8221. g.k.AQ=function(a,b,c){return c};
  8222. g.k.IZ=function(){};
  8223. g.k.ex=function(){};
  8224. g.k.qF=function(){};
  8225. g.k=Pfa.prototype;g.k.gK=function(a){this.clientError.j.Jk("/client_streamz/bg/cec",a,this.Zi)};
  8226. g.k.gx=function(a,b){this.j.lh(b,a,this.Zi)};
  8227. g.k.AQ=function(a,b,c){function d(h){var l=yo()-f;e.G.lh(l,a,b,h,e.Zi)}
  8228. var e=this,f=yo();c.then(function(){d(0)},function(h){h instanceof ln?d(h.code):d(-1)});
  8229. return c};
  8230. g.k.IZ=function(a){this.D.j.Jk("/client_streamz/bg/po/csc",a,this.Zi)};
  8231. g.k.ex=function(a){this.C.j.Jk("/client_streamz/bg/po/ctav",a,this.Zi)};
  8232. g.k.qF=function(a){this.B.j.Jk("/client_streamz/bg/po/cwsc",a,this.Zi)};var bkb,Rfa=null!=(bkb=Math.imul)?bkb:function(a,b){return a*b|0};
  8233. Bo.prototype.Ck=function(){return String(this.j)+","+this.B.join()};
  8234. Bo.prototype.Bh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=Qfa("iU5q-!O9@$",this.Ck());c&&a&&b(c);return a};
  8235. var Co=[196,200,224,18];var Zfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};Fo.prototype.start=function(){this.startMillis=Eo()};
  8236. Fo.prototype.done=function(){null!=this.startMillis&&this.logger.gx(this.event,Eo()-this.startMillis)};
  8237. Go.prototype.BQ=function(){};
  8238. Go.prototype.gx=function(){};
  8239. Go.prototype.Vp=function(){};
  8240. Go.prototype.Mm=function(){};
  8241. g.y(Ho,g.I);Ho.prototype.BQ=function(){this.Ca.j.Jk("/client_streamz/bg/fsc",this.G,this.B)};
  8242. Ho.prototype.gx=function(a,b){if("t"===a)this.ra.lh(b,this.G,this.B);else if("n"===a)this.Ga.lh(b,this.G,this.B);else if("h"===a||"u"===a||"k"===a||"P"===a||"p"===a){if(a=this.C.get(a))this.Z.j.Jk("/client_streamz/bg/fcc",a,this.B),this.Y.lh(b,a,this.B)}else this.N.lh(b,a,this.B)};
  8243. Ho.prototype.Vp=function(a){var b=this.D.get(a);b?this.qa.j.Jk("/client_streamz/bg/fiec",this.G,this.B,b):this.errorCount.j.Jk("/client_streamz/bg/cec",a,this.B)};
  8244. Ho.prototype.Mm=function(){this.j.Mm()};g.y(Io,T);g.y(Jo,T);g.y(Ko,T);var hga=Ul(Ko);Ko.messageId="bfkj";g.y(Mo,g.I);Mo.prototype.snapshot=function(a){var b=this;if(this.Ma())throw Error("Already disposed");this.Gg.BQ();return this.C.then(function(c){var d=c.U6;return new Promise(function(e){var f=new Fo(b.Gg,"n");d(function(h){f.done();b.j&&b.Gg.Mm();e(h)},[a.Yv,
  8245. a.Oda,a.S2,a.Rda])})})};
  8246. Mo.prototype.D1=function(a){if(this.Ma())throw Error("Already disposed");this.Gg.BQ();var b=new Fo(this.Gg,"n");a=this.D([a.Yv,a.Oda,a.S2,a.Rda]);b.done();this.j&&this.Gg.Mm();return a};g.y(Po,T);g.y(Qo,T);g.y(Ro,T);So.prototype.aE=function(a,b){var c=this,d,e,f,h,l;return g.G(function(m){if(1==m.j){var n=new Po;d=Zk(n,1,c.Zi);a&&Zk(d,2,a);b&&Zk(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=dh(ck(f,2));if(h.length)return m.return(iga(h));l=g.Gk(f,Ko,1);if(!l)throw Error("Missing field");return m.return(l)})};
  8247. So.prototype.DX=function(a){var b=this,c,d;return g.G(function(e){c=b.j();var f=new Qo;f=Zk(f,1,b.Zi);d=Zk(f,2,a);f=e.return;var h=b.client;h=Dq(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},ckb);return f.call(e,h)})};
  8248. So.prototype.ping=function(a,b){var c=this,d,e;return g.G(function(f){d=c.j();e=b||new Ro;var h=Q(e,1,c.Zi);Q(h,2,a);return g.z(f,c.client.ping(e,d),0)})};g.y(To,T);var dkb=Ul(To);Uo.prototype.nJ=function(){return this.C};
  8249. Uo.prototype.getMetadata=function(){return this.B};Vo.prototype.getMetadata=function(){return this.j};
  8250. Vo.prototype.nJ=function(){return this.B};
  8251. Vo.prototype.getStatus=function(){return null};Wo.prototype.getName=function(){return this.name};
  8252. Wo.prototype.getName=Wo.prototype.getName;var ekb=new Wo("/google.internal.waa.v1.Waa/Create",Po,To,function(a){return a.Ck()},dkb);g.y(Xo,T);var fkb=Ul(Xo);var ckb=new Wo("/google.internal.waa.v1.Waa/GenerateIT",Qo,Xo,function(a){return a.Ck()},fkb);g.y(Yo,T);var gkb=new Wo("/google.internal.waa.v1.Waa/Ping",Ro,Yo,function(a){return a.Ck()},Ul(Yo));var Fga=Promise;g.y(Zo,T);Zo.prototype.getValue=function(){var a=Qj(this,2);if(Array.isArray(a)||a instanceof T)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ck(this,2)};g.y($o,T);$o.prototype.getMessage=function(){return Rk(this,2)};
  8253. var oga=Ul($o);$o.wb=[3];ap.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
  8254. ap.prototype.removeListener=function(a,b){"data"==a?ep(this.C,b):"metadata"==a?ep(this.G,b):"status"==a?ep(this.K,b):"end"==a?ep(this.D,b):"error"==a&&ep(this.B,b);return this};
  8255. ap.prototype.cancel=function(){this.j.abort()};
  8256. ap.prototype.cancel=ap.prototype.cancel;ap.prototype.removeListener=ap.prototype.removeListener;ap.prototype.on=ap.prototype.on;g.nb(g.fp,on);g.fp.prototype.j=function(){var a=new gp(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
  8257. g.fp.prototype.D=Gd({});g.fp.prototype.setCredentialsMode=function(a){this.B=a};
  8258. g.nb(gp,g.Dd);g.k=gp.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Y=b;this.readyState=1;hp(this)};
  8259. g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Ta).fetch(new Request(this.Y,b)).then(this.i9.bind(this),this.HJ.bind(this))};
  8260. g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
  8261. 1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,dq(this));this.readyState=0};
  8262. g.k.i9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,hp(this)),this.j&&(this.readyState=3,hp(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.g9.bind(this),this.HJ.bind(this));else if("undefined"!==typeof g.Ta.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
  8263. []}else this.response=this.responseText="",this.N=new TextDecoder;pga(this)}else a.text().then(this.h9.bind(this),this.HJ.bind(this))};
  8264. g.k.X8=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?dq(this):hp(this);3==this.readyState&&pga(this)}};
  8265. g.k.h9=function(a){this.j&&(this.response=this.responseText=a,dq(this))};
  8266. g.k.g9=function(a){this.j&&(this.response=a,dq(this))};
  8267. g.k.HJ=function(){this.j&&dq(this)};
  8268. g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
  8269. g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
  8270. g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
  8271. g.k.setCredentialsMode=function(a){this.G=a};
  8272. Object.defineProperty(gp.prototype,"withCredentials",{get:function(){return"include"===this.G},
  8273. set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.eq.prototype.toString=function(){var a=[],b=this.G;b&&a.push(lq(b,hkb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.Z)&&a.push(lq(b,hkb,!0),"@"),a.push(g.We(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(lq(c,"/"==c.charAt(0)?ikb:jkb,!0));(c=this.C.toString())&&a.push("?",c);(c=this.K)&&a.push("#",lq(c,kkb));return a.join("")};
  8274. g.eq.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.fq(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.gq(b,a.j):c=null!=a.D;var d=a.B;if(c)g.hq(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ic(e,"./")||g.ic(e,"/.")){d=dc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
  8275. d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.C.toString();c?iq(b,a.C.clone()):c=!!a.K;c&&(b.K=a.K);return b};
  8276. g.eq.prototype.clone=function(){return new g.eq(this)};
  8277. var hkb=/[#\/\?@]/g,jkb=/[#\?:]/g,ikb=/[#\?]/g,rga=/[#\?@]/g,kkb=/#/g;g.k=kq.prototype;g.k.add=function(a,b){oq(this);this.C=null;a=pq(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
  8278. g.k.remove=function(a){oq(this);a=pq(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
  8279. g.k.clear=function(){this.j=this.C=null;this.B=0};
  8280. g.k.isEmpty=function(){oq(this);return 0==this.B};
  8281. g.k.forEach=function(a,b){oq(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
  8282. g.k.En=function(){oq(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
  8283. g.k.nm=function(a){oq(this);var b=[];if("string"===typeof a)tga(this,a)&&(b=b.concat(this.j.get(pq(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
  8284. g.k.set=function(a,b){oq(this);this.C=null;a=pq(this,a);tga(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
  8285. g.k.get=function(a,b){if(!a)return b;a=this.nm(a);return 0<a.length?String(a[0]):b};
  8286. g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.We(d);d=this.nm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.We(d[f]));a.push(h)}}return this.C=a.join("&")};
  8287. g.k.clone=function(){var a=new kq;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.nb(g.rq,g.I);var lkb=[];g.k=g.rq.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(lkb[0]=b.toString()),b=lkb);for(var e=0;e<b.length;e++){var f=g.ud(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
  8288. g.k.oF=function(a,b,c,d){return wga(this,a,b,c,d)};
  8289. g.k.Pc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Pc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.cb(d)?!!d.capture:!!d,e=e||this.B||this,c=vd(c),d=!!d,b=Tc(a)?a.wE(b,c,d,e):a?(a=wd(a))?a.wE(b,c,d,e):null:null,b&&(Ad(b),delete this.j[b.key])};
  8290. g.k.removeAll=function(){g.Vc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Ad(a)},this);
  8291. this.j={}};
  8292. g.k.va=function(){g.rq.Nf.va.call(this);this.removeAll()};
  8293. g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};xga.prototype.isInputValid=function(){return this.C};sq.prototype.isInputValid=function(){return 3!=this.j};
  8294. sq.prototype.qf=function(){return this.K};
  8295. sq.prototype.WH=function(){return!0};
  8296. sq.prototype.parse=function(a){function b(m){m&128&&tq(f,h,l,"invalid tag");2!=(m&7)&&tq(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&tq(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
  8297. function c(m){f.D++;5==f.D&&m&240&&tq(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
  8298. function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
  8299. function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0}
  8300. for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:tq(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Y++;l++}a=f.N;f.N=[];return 0<a.length?a:null};uq.prototype.isInputValid=function(){return null===this.j};
  8301. uq.prototype.qf=function(){return this.j};
  8302. uq.prototype.WH=function(){return!1};
  8303. uq.prototype.parse=function(a){null!==this.j&&zga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||yga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Uca(c.j.slice(0,4*d))}catch(h){yga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){zga(this,a,h.message)}this.B+=a.length;return b};var mkb={INIT:0,nD:1,mN:2,Ky:3,sC:4,rC:5,STRING:6,gN:7,yV:8,OV:9,PV:10,QV:11,bU:12,cU:13,dU:14,eU:15,CV:16,EV:17,FV:18,f6:19,kN:20};g.k=wq.prototype;g.k.isInputValid=function(){return 3!=this.G};
  8304. g.k.qf=function(){return this.Y};
  8305. g.k.done=function(){return 2===this.G};
  8306. g.k.WH=function(){return!1};
  8307. g.k.parse=function(a){function b(){for(;r<a.length;)if(vq(a[r]))r++,f.C++;else break;return r<n}
  8308. function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.mN:"["===v?f.j=m.sC:vq(v)||xq(f,a,r);continue;case m.gN:case m.mN:if(vq(v))continue;if(f.j===m.gN)h.push(m.yV);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.Ky);'"'===v?f.j=m.STRING:xq(f,a,r);continue;case m.yV:case m.Ky:if(vq(v))continue;":"===v?(f.j===m.Ky&&(h.push(m.Ky),f.B++),f.j=m.nD):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.Ky&&h.push(m.Ky),f.j=m.gN):xq(f,a,r);continue;case m.sC:case m.nD:if(vq(v))continue;
  8309. if(f.j===m.sC)if(f.B++,f.j=m.nD,"]"===v){f.B--;if(0===f.B){f.j=m.rC;return}e("[]");f.j=d();continue}else h.push(m.rC);'"'===v?f.j=m.STRING:"{"===v?f.j=m.mN:"["===v?f.j=m.sC:"t"===v?f.j=m.OV:"f"===v?f.j=m.bU:"n"===v?f.j=m.CV:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.kN:xq(f,a,r));continue;case m.rC:if(","===v)h.push(m.rC),f.j=m.nD,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(vq(v))continue;else xq(f,a,r);continue;case m.STRING:var w=r;a:for(;;){for(;0<f.Z;)if(v=a[r++],
  8310. 4===f.Z?f.Z=0:f.Z++,!v)break a;if('"'===v&&!f.N){f.j=d();break}if("\\"===v&&!f.N&&(f.N=!0,v=a[r++],!v))break;if(f.N)if(f.N=!1,"u"===v&&(f.Z=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-w;continue;case m.OV:if(!v)continue;"r"===v?f.j=m.PV:xq(f,a,r);continue;case m.PV:if(!v)continue;"u"===v?f.j=m.QV:xq(f,a,r);continue;case m.QV:if(!v)continue;"e"===v?f.j=d():xq(f,a,r);continue;case m.bU:if(!v)continue;"a"===v?f.j=m.cU:
  8311. xq(f,a,r);continue;case m.cU:if(!v)continue;"l"===v?f.j=m.dU:xq(f,a,r);continue;case m.dU:if(!v)continue;"s"===v?f.j=m.eU:xq(f,a,r);continue;case m.eU:if(!v)continue;"e"===v?f.j=d():xq(f,a,r);continue;case m.CV:if(!v)continue;"u"===v?f.j=m.EV:xq(f,a,r);continue;case m.EV:if(!v)continue;"l"===v?f.j=m.FV:xq(f,a,r);continue;case m.FV:if(!v)continue;"l"===v?f.j=d():xq(f,a,r);continue;case m.f6:"."===v?f.j=m.kN:xq(f,a,r);continue;case m.kN:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,f.j=
  8312. d();continue;default:xq(f,a,r)}}}
  8313. function d(){var v=h.pop();return null!=v?v:m.nD}
  8314. function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
  8315. for(var f=this,h=f.ra,l=f.Ca,m=mkb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return xq(f,a,r),null;case 2:return b()&&xq(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.sC;continue}else xq(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.rC?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};yq.prototype.isInputValid=function(){return null===this.G};
  8316. yq.prototype.qf=function(){return this.G};
  8317. yq.prototype.WH=function(){return!1};
  8318. yq.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
  8319. function c(){f.C=new wq({Ynb:!0,C7:!0})}
  8320. function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
  8321. function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
  8322. for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!vq(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
  8323. h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.D.length?(a=f.D,f.D=[],a):null};zq.prototype.xP=function(){return this.j};
  8324. zq.prototype.getStatus=function(){return this.D};
  8325. zq.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.so(this.j),c=this.j.B,d=this.j.getStatus(),e=g.uo(this.j);a=[];if(g.vo(this.j)instanceof Array){var f=g.vo(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Aq(this,7):7==c?Aq(this,8):d||Aq(this,3)),this.B||(this.B=Aga(this.j),null==this.B&&Aq(this,5)),2<this.D)Bq(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.WH())for(var l=0;l<h;l++){var m=
  8326. this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Aq(this,5);Bq(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Aq(this,5);Bq(this);break a}}4==b?(0!=e.length||
  8327. this.Y?Aq(this,2):Aq(this,4),Bq(this)):Aq(this,1)}}}catch(p){Aq(this,6),Bq(this)}};g.k=Bga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this};
  8328. g.k.addListener=function(a,b){this.on(a,b);return this};
  8329. g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Hb(c,b);(a=this.j[a])&&g.Hb(a,b);return this};
  8330. g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
  8331. g.k.jaa=function(a){var b=this.B.data;b&&Cga(a,b);(b=this.j.data)&&Cga(a,b);this.j.data=[]};
  8332. g.k.Zba=function(){switch(this.C.getStatus()){case 1:Cq(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Cq(this,"error");break;case 8:Cq(this,"close");break;case 2:Cq(this,"end")}};Dga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Ega(function(h){var l=h.nJ(),m=h.getMetadata(),n=Hga(e,!1);m=Iga(e,m,n,f+l.getName());var p=Jga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,jga(d,b,c))};Eq.prototype.create=function(a,b){return Dq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},ekb)};
  8333. Eq.prototype.ping=function(a,b){return Dq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},gkb)};var nkb=1,Lq=new WeakMap;g.y(Fq,g.I);Fq.prototype.signal=function(){var a=new Hq(!1);this.signals.add(a);g.N(this,a);return a};
  8334. Fq.prototype.zA=function(a){this.signals.has(a);return a.zA()};
  8335. g.y(Hq,g.I);g.k=Hq.prototype;g.k.FN=function(){var a=this,b=nkb++;Iq(function(){Lga(a,b)});
  8336. return b};
  8337. g.k.detach=function(a){var b=this;Iq(function(){var c=b.slots.get(a);c&&c.lX()})};
  8338. g.k.value=function(a){return this.promise(!0,a)};
  8339. g.k.zA=function(){return this.tZ};
  8340. g.k.next=function(a){return this.promise(!1,a)};
  8341. g.k.promise=function(a,b){var c=this,d=lca();Iq(function(){if(c.Ma())d.reject(new qg("Signal initially disposed"));else if(b&&b.Ma())d.reject(new qg("Owner initially disposed"));else if(a&&c.IW&&c.CY)d.resolve(c.tZ);else if(c.JB.add(d),pg(d.promise,function(){c.JB.delete(d)}),b){var e=function(){d.reject(new qg("Owner asynchronously disposed"))};
  8342. pg(d.promise,function(){var f=Lq.get(b);f&&g.Hb(f,e)});
  8343. Pga(b,e)}});
  8344. return d.promise};
  8345. g.k.va=function(){var a=this;g.I.prototype.va.call(this);Iq(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.lX,c();a.slots.clear();b=g.u(a.JB);for(c=b.next();!c.done;c=b.next())c.value.reject(new qg("Signal asynchronously disposed"));a.JB.clear()})};
  8346. var Jq=[],Kq=!1;g.y(Mq,g.I);Mq.prototype.start=function(){var a=this;if(this.Ma())throw new Oq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Gq(d,a.C,a)}a.Eb.QK(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
  8347. a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Gq(d,a.C,a)}a.Eb.QK(a)},this.milliseconds);
  8348. this.state=1}};
  8349. Mq.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new Nq);var b;null==(b=this.Eb.dR)||b.call(this);if(this.G){var c;null==(c=this.j)||Gq(c,this.G)}}};
  8350. Mq.prototype.va=function(){this.clear();var a;null==(a=this.B)||a.reject(new Oq);this.state=4;g.I.prototype.va.call(this)};
  8351. Mq.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
  8352. g.ha.Object.defineProperties(Mq.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
  8353. isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
  8354. isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
  8355. tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
  8356. Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.Lo),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Nq("Timer has been cancelled."));case 4:return Promise.reject(new Oq("Timer has been disposed."));default:Ne(this.state)}}},
  8357. QK:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new Oq("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new Fq(this)),this.C=this.j.signal());return this.C}},
  8358. dR:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new Oq("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new Fq(this)),this.G=this.j.signal());return this.G}}});
  8359. g.y(Nq,xb);g.y(Oq,xb);var Rga=globalThis.TextEncoder?new TextEncoder:void 0;g.y(Rq,Error);g.y(Sq,g.I);Sq.prototype.G=function(a){a=this.j(a);return Uga(a,this.B,this.logger)};
  8360. g.y(Uq,Sq);Uq.prototype.j=function(a){++this.Y>=this.qa&&this.D.resolve();var b=Pq(a,this.logger),c=new zo(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new Rq(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new Rq(18,"ODM:Invalid");var e;if(null==(e=a.kz)?0:e.Xda)try{var f;null==(f=this.N())||Xfa(f,b,d,a.kz.HW,this.K)}catch(h){Qq(new Rq(24,"ELX:write",h),this.logger,this.onError)}return d};
  8361. g.y(Vq,Sq);Vq.prototype.j=function(){return this.K};
  8362. g.y(Wq,Sq);Wq.prototype.j=function(){return Mg(this.K)};
  8363. Wq.prototype.G=function(){return this.K};
  8364. g.y(Xq,Sq);Xq.prototype.j=function(){if(this.K)return this.K;this.K=Vga(this,function(a){return"_"+$fa(a)});
  8365. return Vga(this,function(a){return a})};
  8366. g.y(Yq,Sq);Yq.prototype.j=function(a){var b=Pq(a,this.logger);if(118<b.length)throw new Rq(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[255*Math.random(),255*Math.random()],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.IZ(this.clientState);return a};
  8367. g.y(Zq,g.I);g.k=Zq.prototype;g.k.isReady=function(){return!!this.j};
  8368. g.k.ready=function(){var a=this;return g.G(function(b){return g.z(b,a.D.promise,0)})};
  8369. g.k.aE=function(a){return Xga(this,this.logger.AQ("c",void 0===a?1:a,this.Kz.aE(Oo().j,null)),new Rq(10,"JVZ:Timeout"))};
  8370. g.k.prefetch=function(){1===this.state&&(this.B=this.aE())};
  8371. g.k.start=function(){if(1===this.state){this.state=2;var a=new zo(this.logger,"r");this.ready().finally(function(){return void a.done()});
  8372. Zga(this)}};var dha={NONE:0,uya:1},Kha={D3:0,G5a:1,F5a:2,H5a:3},is={j3:"a",Sxa:"d",VIDEO:"v"};ar.prototype.isVisible=function(){return this.Nw?.3<=this.De:.5<=this.De};var Kr={sva:0,OEa:1},Iha={NONE:0,dKa:1,mHa:2};br.prototype.getValue=function(){return this.B};
  8373. g.y(Cr,br);Cr.prototype.C=function(a){null===this.B&&g.gd(this.D,a)&&(this.B=a)};
  8374. g.y(Dr,br);Dr.prototype.C=function(a){null===this.B&&"number"===typeof a&&(this.B=a)};
  8375. g.y(Er,br);Er.prototype.C=function(a){null===this.B&&"string"===typeof a&&(this.B=a)};Fr.prototype.disable=function(){this.B=!1};
  8376. Fr.prototype.enable=function(){this.B=!0};
  8377. Fr.prototype.isEnabled=function(){return this.B};
  8378. Fr.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var $s=document,Or=window;var Mia=!g.Ks&&!Ic();Lr.prototype.now=function(){return 0};
  8379. Lr.prototype.B=function(){return 0};
  8380. Lr.prototype.C=function(){return 0};
  8381. Lr.prototype.j=function(){return 0};g.y(Nr,Lr);Nr.prototype.now=function(){return Mr()&&Or.performance.now?Or.performance.now():Lr.prototype.now.call(this)};
  8382. Nr.prototype.B=function(){return Mr()&&Or.performance.memory?Or.performance.memory.totalJSHeapSize||0:Lr.prototype.B.call(this)};
  8383. Nr.prototype.C=function(){return Mr()&&Or.performance.memory?Or.performance.memory.usedJSHeapSize||0:Lr.prototype.C.call(this)};
  8384. Nr.prototype.j=function(){return Mr()&&Or.performance.memory?Or.performance.memory.jsHeapSizeLimit||0:Lr.prototype.j.call(this)};var gha=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
  8385. g.Ta.addEventListener("test",null,b)}catch(c){}return a});hha.prototype.isVisible=function(){return 1===Rr($s)};Qd("csi.gstatic.com");Qd("googleads.g.doubleclick.net");Qd("partner.googleadservices.com");Qd("pubads.g.doubleclick.net");Qd("securepubads.g.doubleclick.net");Qd("tpc.googlesyndication.com");var jha={gla:"allow-forms",hla:"allow-modals",ila:"allow-orientation-lock",jla:"allow-pointer-lock",kla:"allow-popups",lla:"allow-popups-to-escape-sandbox",mla:"allow-presentation",nla:"allow-same-origin",ola:"allow-scripts",qla:"allow-top-navigation",rla:"allow-top-navigation-by-user-activation"},nha=Id(function(){return kha()});var rha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wr.prototype.Le=function(a,b,c){a=a+"//"+b+c;var d=vha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
  8386. c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=uha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};ds.prototype.setInterval=function(a,b){return Or.setInterval(a,b)};
  8387. ds.prototype.clearInterval=function(a){Or.clearInterval(a)};
  8388. ds.prototype.setTimeout=function(a,b){return Or.setTimeout(a,b)};
  8389. ds.prototype.clearTimeout=function(a){Or.clearTimeout(a)};g.y(fs,T);fs.prototype.j=Yea([0,Djb,Gjb,-2,Jjb]);var Jha={R2a:1,w6:2,xWa:3};Lha.prototype.dS=function(a){if("string"===typeof a&&0!=a.length){var b=this.Jc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var o2=null;var ls=g.Ta.performance,okb=!!(ls&&ls.mark&&ls.measure&&ls.clearMarks),js=Id(function(){var a;if(a=okb){var b;if(null===o2){o2="";try{a="";try{a=g.Ta.top.location.hash}catch(c){a=g.Ta.location.hash}a&&(o2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=o2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
  8390. ks.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(js()&&g.ac(this.events,Rha),this.events.length=0)};
  8391. ks.prototype.start=function(a,b){if(!this.j)return null;var c=Pha()||Oha();a=new Qha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";ls&&js()&&ls.mark(b);return a};
  8392. ks.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Pha()||Oha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";ls&&js()&&ls.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Sha.prototype.EQ=function(a,b,c,d,e){e=e||this.zX;try{var f=new Wr;f.j.push(1);f.B[1]=Xr("context",a);b.error&&b.meta&&b.id||(b=new ps(qs(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Xr("msg",h)}var l=b.meta||{};if(this.AN)try{this.AN(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.B[3]=b;var m=tha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Xr("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?yfa(m.j.url):""}];f.j.push(5);f.B[5]=p;Mha(this.j,e,f,c)}catch(q){try{Mha(this.j,
  8393. e,{context:"ecmserr",rctx:a,msg:qs(q),url:m&&m.j.url},c)}catch(r){}}return this.gT};
  8394. g.y(ps,Nha);var ns,os,ms=new ks;ns=new function(){var a="https:";Or&&Or.location&&"http:"===Or.location.protocol&&(a="http:");this.B=a;this.j=.01};
  8395. os=new Sha;Or&&Or.document&&("complete"==Or.document.readyState?Uha():ms.j&&Qr(Or,"load",function(){Uha()}));var Xha=Date.now(),ys=-1,ws=-1,nja,zs=-1,xs=!1;g.k=As.prototype;g.k.getHeight=function(){return this.bottom-this.top};
  8396. g.k.clone=function(){return new As(this.top,this.right,this.bottom,this.left)};
  8397. g.k.contains=function(a){return this&&a?a instanceof As?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
  8398. g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
  8399. g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
  8400. g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
  8401. g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Ds.prototype.Hb=function(){return this.N};var pkb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fu={p6:"start",L3:"firstquartile",b6:"midpoint",q6:"thirdquartile",COMPLETE:"complete",ERROR:"error",a6:"metric",PAUSE:"pause",k6:"resume",l6:"skip",v6:"viewable_impression",e6:"mute",u6:"unmute",M3:"fullscreen",K3:"exitfullscreen",t3:"bufferstart",s3:"bufferfinish",N3:"fully_viewable_audible_half_duration_impression",Z5:"measurable_impression",e3:"abandon",J3:"engagedview",Q3:"impression",z3:"creativeview",Y5:"loaded",
  8402. u4a:"progress",CLOSE:"close",Lua:"collapse",O0a:"overlay_resize",P0a:"overlay_unmeasurable_impression",Q0a:"overlay_unviewable_impression",S0a:"overlay_viewable_immediate_impression",R0a:"overlay_viewable_end_of_session_impression",B3:"custom_metric_viewable",l3:"audio_audible",n3:"audio_measurable",m3:"audio_impression"},yka="start firstquartile midpoint thirdquartile resume loaded".split(" "),zka=["start","firstquartile","midpoint","thirdquartile"],pja=["abandon"],Au={UNKNOWN:-1,p6:0,L3:1,b6:2,
  8403. q6:3,COMPLETE:4,a6:5,PAUSE:6,k6:7,l6:8,v6:9,e6:10,u6:11,M3:12,K3:13,N3:14,Z5:15,e3:16,J3:17,Q3:18,z3:19,Y5:20,B3:21,t3:22,s3:23,m3:27,n3:28,l3:29};var $ha={ega:"addEventListener",oHa:"getMaxSize",pHa:"getScreenSize",qHa:"getState",rHa:"getVersion",z5a:"removeEventListener",hLa:"isViewable"};g.k=g.Fs.prototype;g.k.clone=function(){return new g.Fs(this.left,this.top,this.width,this.height)};
  8404. g.k.contains=function(a){return a instanceof g.Ie?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
  8405. g.k.getSize=function(){return new g.Ke(this.width,this.height)};
  8406. g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
  8407. g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
  8408. g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
  8409. g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var dia={};mia.prototype.update=function(a){a&&a.document&&(this.N=Es(!1,a,this.isMobileDevice),this.j=Es(!0,a,this.isMobileDevice),oia(this,a),nia(this,a))};bt.prototype.cancel=function(){es().clearTimeout(this.j);this.j=null};
  8410. bt.prototype.schedule=function(){var a=this,b=es(),c=hs().j.j;this.j=b.setTimeout(gs(c,ts(143,function(){a.B++;a.C.sample()})),Yha())};g.k=ct.prototype;g.k.UC=function(){return!1};
  8411. g.k.initialize=function(){return this.isInitialized=!0};
  8412. g.k.Pz=function(){return this.j.Ea};
  8413. g.k.ME=function(){return this.j.qa};
  8414. g.k.pj=function(a,b){if(!this.qa||(void 0===b?0:b))this.qa=!0,this.Ea=a,this.Z=0,this.j!=this||et(this)};
  8415. g.k.getName=function(){return this.j.Sa};
  8416. g.k.Dt=function(){return this.j.WX()};
  8417. g.k.WX=function(){return{}};
  8418. g.k.wr=function(){return this.j.Z};
  8419. g.k.bV=function(){var a=Zs();a.j=Es(!0,this.C,a.isMobileDevice)};
  8420. g.k.cV=function(){nia(Zs(),this.C)};
  8421. g.k.kY=function(){return this.D.j};
  8422. g.k.sample=function(){};
  8423. g.k.isActive=function(){return this.j.K};
  8424. g.k.Zz=function(a){var b=this.j;this.j=a.wr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,et(this)):this.K!==this.j.K&&(this.K=this.j.K,et(this))};
  8425. g.k.Lt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&ria(this)}};
  8426. g.k.lq=function(){return this.Y};
  8427. g.k.dispose=function(){this.Ga=!0};
  8428. g.k.Ma=function(){return this.Ga};g.k=pt.prototype;g.k.UM=function(){return!0};
  8429. g.k.NH=function(){};
  8430. g.k.dispose=function(){if(!this.Ma()){var a=this.B;g.Hb(a.G,this);a.Y&&this.lq()&&qia(a);this.NH();this.qa=!0}};
  8431. g.k.Ma=function(){return this.qa};
  8432. g.k.Dt=function(){return this.B.Dt()};
  8433. g.k.wr=function(){return this.B.wr()};
  8434. g.k.Pz=function(){return this.B.Pz()};
  8435. g.k.ME=function(){return this.B.ME()};
  8436. g.k.Zz=function(){};
  8437. g.k.Lt=function(){this.Qs()};
  8438. g.k.lq=function(){return this.ra};g.k=qt.prototype;g.k.wr=function(){return this.j.wr()};
  8439. g.k.Pz=function(){return this.j.Pz()};
  8440. g.k.ME=function(){return this.j.ME()};
  8441. g.k.create=function(a,b,c){var d=null;this.j&&(d=this.OH(a,b,c),dt(this.j,d));return d};
  8442. g.k.dV=function(){return this.VC()};
  8443. g.k.VC=function(){return!1};
  8444. g.k.init=function(a){return this.j.initialize()?(dt(this.j,this),this.D=a,!0):!1};
  8445. g.k.Zz=function(a){0==a.wr()&&this.D(a.Pz(),this)};
  8446. g.k.Lt=function(){};
  8447. g.k.lq=function(){return!1};
  8448. g.k.dispose=function(){this.G=!0};
  8449. g.k.Ma=function(){return this.G};
  8450. g.k.Dt=function(){return{}};rt.prototype.add=function(a,b,c){++this.C;a=new sia(a,b,c);this.j.push(new sia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};xia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=ut(this.j);0<b.length&&(a+="?"+b);return a};vt.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Cia=[1,.75,.5,.3,0];wt.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Dt.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.De):b.De;this.ra=Math.max(this.ra,b.De);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.Bk):b.Bk;this.Ea=Math.max(this.Ea,b.Bk);this.Za.update(b.Bk,c.Bk,b.j,a,d);this.B.update(b.De,c.De,b.j,a,d);c=d||c.Nw!=b.Nw?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Sa.update(c,a,b)};
  8451. Dt.prototype.Hr=function(){return this.Sa.C>=this.bb};if($s&&$s.URL){var qkb=$s.URL,rkb;if(rkb=!!qkb){var skb;a:{if(qkb){var tkb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var p2=tkb.exec(decodeURIComponent(qkb));if(p2){skb=p2[1]&&1<p2[1].length?p2[1].substring(1):"true";break a}}catch(a){}}skb=""}rkb=0<skb.length}os.gT=!rkb};var ukb=new As(0,0,0,0);var Kia=new As(0,0,0,0);g.y(It,g.I);g.k=It.prototype;
  8452. g.k.va=function(){if(this.Qj.j){if(this.Zv.QQ){var a=this.Qj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Zv.QQ,Pr());this.Zv.QQ=null}this.Zv.PQ&&(a=this.Qj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Zv.PQ,Pr()),this.Zv.PQ=null)}this.bH&&this.bH.dispose();this.Uf&&this.Uf.dispose();delete this.nK;delete this.GQ;delete this.A2;delete this.Qj.nu;delete this.Qj.j;delete this.Zv;delete this.bH;delete this.Uf;delete this.Jc;g.I.prototype.va.call(this)};
  8453. g.k.Gt=function(){return this.Uf?this.Uf.j:this.position};
  8454. g.k.dS=function(a){hs().dS(a)};
  8455. g.k.lq=function(){return!1};
  8456. g.k.qJ=function(){return new Dt};
  8457. g.k.rj=function(){return this.nK};
  8458. g.k.aY=function(a){return Oia(this,a,1E4)};
  8459. g.k.Ta=function(a,b,c,d,e,f,h){this.Qt||(this.TD&&(a=this.NN(a,c,e,h),d=d&&this.Xh.De>=(this.Nw()?.3:.5),this.IT(f,a,d),this.Sp=b,0<a.De&&-1===this.T1&&(this.T1=b),-1==this.Y1&&this.Hr()&&(this.Y1=b),-2==this.zQ&&(this.zQ=Gt(this.Gt())?a.De:-1),this.Xh=a),this.GQ(this))};
  8460. g.k.IT=function(a,b,c){this.rj().update(a,b,this.Xh,c)};
  8461. g.k.lP=function(){return new ar};
  8462. g.k.NN=function(a,b,c,d){c=this.lP();c.j=b;b=es().B;b=0===Rr($s)?-1:b.isVisible()?0:1;c.B=b;c.De=this.iO(a);c.Nw=this.Nw();c.Bk=d;return c};
  8463. g.k.iO=function(a){return 0===this.opacity&&1===Ir(this.Jc,"opac")?0:a};
  8464. g.k.Nw=function(){return!1};
  8465. g.k.PL=function(){return this.L9||this.O9};
  8466. g.k.kx=function(){vs()};
  8467. g.k.VA=function(){vs()};
  8468. g.k.Dp=function(){return 0};
  8469. g.k.Hr=function(){return this.nK.Hr()};
  8470. g.k.nY=function(){var a=this.TD;a=(this.hasCompleted||this.Ma())&&!a;var b=2!==hs().B||this.qea;return this.Qt||b&&a?2:this.Hr()?4:3};
  8471. g.k.fJ=function(){return 0};g.Kt.prototype.next=function(){return g.q2};
  8472. g.q2={done:!0,value:void 0};g.Kt.prototype.Tl=function(){return this};g.y(Uia,ar);var r2=Wia([void 0,1,2,3,4,8,16]),s2=Wia([void 0,4,8,16]),vkb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ot("p0",s2),p1:Ot("p1",s2),p2:Ot("p2",s2),p3:Ot("p3",s2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Nt("mtos1",[0,2,4],!1,s2),mtos2:Nt("mtos2",[0,2,4],!1,s2),mtos3:Nt("mtos3",[0,2,4],!1,s2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ot("a0",s2),a1:Ot("a1",s2),a2:Ot("a2",s2),a3:Ot("a3",s2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
  8473. vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Ot("c0",s2),c1:Ot("c1",s2),c2:Ot("c2",s2),c3:Ot("c3",s2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ot("qmtos",r2),qnc:Ot("qnc",r2),qmv:Ot("qmv",r2),qnv:Ot("qnv",r2),
  8474. raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Ot("ss0",s2),ss1:Ot("ss1",s2),ss2:Ot("ss2",s2),ss3:Ot("ss3",s2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
  8475. omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},wkb=Object.assign({},vkb,{avid:Gd("audio"),avas:"avas",vs:"vs"}),xkb={atos:"atos",avt:Nt("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
  8476. t:"t"};St.prototype.getValue=function(){return this.B};
  8477. St.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.y(Tt,Dt);
  8478. Tt.prototype.update=function(a,b,c,d){if(!b.paused){Dt.prototype.update.call(this,a,b,c,d);var e=Mt(b)&&Mt(c),f=.5<=(d?Math.min(b.De,c.De):c.De);Xs(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ga+=a,this.Y+=e?a:0);this.j.update(b.De,c.De,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.gb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.La.update(a,b.isVisible());this.Wa.update(a,1<=b.De);this.Va.update(a,
  8479. Mt(b))}};bja.prototype.B=function(a){this.C||(this.j(a)?(a=mka(this.Y,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.y(Vt,bja);Vt.prototype.j=function(){return!0};
  8480. Vt.prototype.K=function(){return!1};
  8481. Vt.prototype.getId=function(){var a=this,b=id(fu,function(c){return c==a.D});
  8482. return Au[b].toString()};
  8483. Vt.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.y(Wt,Vt);Wt.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.N.push(b);Vt.prototype.B.call(this,a)};g.y(Xt,cja);Xt.prototype.B=function(){return null};
  8484. Xt.prototype.C=function(){return[]};g.y(Yt,pt);g.k=Yt.prototype;g.k.RN=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=jia(a.getBoundingClientRect())}catch(n){c=new As(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=gia(a,b),h=f.x,l=f.y;var m=new As(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=ukb.clone()}this.j=m}};
  8485. g.k.JW=function(){this.D=this.B.D.j};
  8486. g.k.eZ=function(a){var b=1==Ir(this.Jc,"od");return Jia(a,this.D,this.element,b)};
  8487. g.k.KW=function(){this.timestamp=vs()};
  8488. g.k.Qs=function(){this.KW();this.RN();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Ke(a.videoWidth,a.videoHeight);a=this.j;var c=Bs(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.JW();
  8489. a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new As(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new As(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new As(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.eZ(c)?c=new As(0,0,0,0):(d=Zs().D,b=new As(0,d.height,d.width,0),d=Ht(c,this.j),e=Ht(c,Zs().j),b=Ht(c,b)));c=c.top>=c.bottom||c.left>=c.right?new As(0,0,0,
  8490. 0):Cs(c,-this.j.left,-this.j.top);at()||(e=d=0);this.N=new Ds(a,this.element,this.j,c,d,e,this.timestamp,b)};
  8491. g.k.getName=function(){return this.B.getName()};var ykb=new As(0,0,0,0);g.y(Zt,Yt);g.k=Zt.prototype;g.k.UM=function(){this.C();return!0};
  8492. g.k.Lt=function(){Yt.prototype.Qs.call(this)};
  8493. g.k.KW=function(){};
  8494. g.k.RN=function(){};
  8495. g.k.Qs=function(){this.C();Yt.prototype.Qs.call(this)};
  8496. g.k.Zz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Zs().j=new As(0,0,0,0),this.j=new As(0,0,0,0),this.D=new As(0,0,0,0),this.timestamp=-1));this.K=a};var t2={},mja=(t2.firstquartile=0,t2.midpoint=1,t2.thirdquartile=2,t2.complete=3,t2);g.y(au,It);g.k=au.prototype;g.k.lq=function(){return!0};
  8497. g.k.Un=function(){return 2==this.gk};
  8498. g.k.aY=function(a){return Oia(this,a,Math.max(1E4,this.C/3))};
  8499. g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.od(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Sa=m.isYouTube||this.Sa;es();this.rb=!1;e=eja(this,b);1===dja(this)&&(f=e);It.prototype.Ta.call(this,a,b,c,d,m,f,h);this.Jr&&this.Jr.C&&g.ac(this.K,function(n){n.B(l)})};
  8500. g.k.IT=function(a,b,c){It.prototype.IT.call(this,a,b,c);du(this).update(a,b,this.Xh,c);this.gb=Mt(this.Xh)&&Mt(b);-1==this.Ea&&this.Za&&(this.Ea=this.rj().C.j);this.Fg.C=0;a=this.Hr();b.isVisible()&&Rt(this.Fg,"vs");a&&Rt(this.Fg,"vw");Xs(b.volume)&&Rt(this.Fg,"am");Mt(b)?Rt(this.Fg,"a"):Rt(this.Fg,"mut");this.lA&&Rt(this.Fg,"f");-1!=b.B&&(Rt(this.Fg,"bm"),1==b.B&&(Rt(this.Fg,"b"),Mt(b)&&Rt(this.Fg,"umutb")));Mt(b)&&b.isVisible()&&Rt(this.Fg,"avs");this.gb&&a&&Rt(this.Fg,"avw");0<b.De&&Rt(this.Fg,
  8501. "pv");eu(this,this.rj().C.j,!0)&&Rt(this.Fg,"gdr");2E3<=Bt(this.rj().B,1)&&Rt(this.Fg,"pmx");this.rb&&Rt(this.Fg,"tvoff")};
  8502. g.k.qJ=function(){return new Tt};
  8503. g.k.rj=function(){return this.nK};
  8504. g.k.lP=function(){return new Uia};
  8505. g.k.NN=function(a,b,c,d){a=It.prototype.NN.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.lA;a.paused=this.Un();a.volume=c.volume;Xs(a.volume)||(this.Jb++,b=this.Xh,Xs(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
  8506. g.k.iO=function(a){return Zs(),this.lA?1:It.prototype.iO.call(this,a)};
  8507. g.k.Dp=function(){return 1};
  8508. g.k.getDuration=function(){return this.C};
  8509. g.k.nY=function(){return this.Qt?2:gja(this)?5:this.Hr()?4:3};
  8510. g.k.fJ=function(){return this.zb?2E3<=this.rj().G.C?4:3:2};var zkb=g.kb();xja.prototype.reset=function(){this.j=[];this.B=[]};
  8511. var ku=cs(xja);g.y(nu,qt);g.k=nu.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
  8512. g.k.Dt=function(){return(this.B?this.B:this.j).Dt()};
  8513. g.k.wr=function(){return(this.B?this.B:this.j).wr()};
  8514. g.k.init=function(a){var b=!1;(0,g.ac)(this.C,function(c){c.initialize()&&(b=!0)});
  8515. b&&(this.D=a,dt(this.j,this));return b};
  8516. g.k.dispose=function(){(0,g.ac)(this.C,function(a){a.dispose()});
  8517. qt.prototype.dispose.call(this)};
  8518. g.k.dV=function(){return Ys(this.C,function(a){return a.UC()})};
  8519. g.k.VC=function(){return Ys(this.C,function(a){return a.UC()})};
  8520. g.k.OH=function(a,b,c){return new Yt(a,this.j,b,c)};
  8521. g.k.Lt=function(a){this.B=a.B};var Gja={threshold:[0,.3,.5,.75,1]};g.y(ou,Yt);g.k=ou.prototype;g.k.UM=function(){var a=this;this.Y||(this.Y=vs());if(Wha(298,function(){return Hja(a)}))return!0;
  8522. this.B.pj("msf");return!1};
  8523. g.k.NH=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
  8524. g.k.Qs=function(){var a=pu(this);0<a.length&&qu(this,a);Yt.prototype.Qs.call(this)};
  8525. g.k.RN=function(){};
  8526. g.k.eZ=function(){return!1};
  8527. g.k.JW=function(){};
  8528. g.k.Dt=function(){var a={};return Object.assign(this.B.Dt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
  8529. g.k.getName=function(){return"nio"};g.y(ru,qt);ru.prototype.getName=function(){return"nio"};
  8530. ru.prototype.VC=function(){return!Zs().B&&null!=this.j.j.C.IntersectionObserver};
  8531. ru.prototype.OH=function(a,b,c){return new ou(a,this.j,b,c)};g.y(tu,ct);tu.prototype.kY=function(){return Zs().j};
  8532. tu.prototype.UC=function(){var a=Jja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,et(this)),this.Z=a);return 2==a};uu.prototype.sample=function(){xu(this,lu(),!1)};
  8533. uu.prototype.D=function(){var a=at(),b=vs();a?(xs||(ys=b,g.ac(ku.j,function(c){var d=c.rj();d.Na=Ut(d,b,1!=c.gk)})),xs=!0):(this.N=Oja(this,b),xs=!1,nja=b,g.ac(ku.j,function(c){c.TD&&(c.rj().Z=b)}));
  8534. xu(this,lu(),!a)};
  8535. var vu=cs(uu);var Qja=null,Uu="",Tu=!1;var Tja=Sja().tp,zu=Sja().xp;var Wja={PEa:"visible",Ypa:"audible",Rdb:"time",Udb:"timetype"},Xja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
  8536. audible:function(a){return"0"==a||"1"==a},
  8537. timetype:function(a){return"mtos"==a||"tos"==a},
  8538. time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
  8539. Vja.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.y(Du,Vt);Du.prototype.getId=function(){return this.N};
  8540. Du.prototype.K=function(){return!0};
  8541. Du.prototype.j=function(a){var b=a.rj(),c=a.getDuration();return Ys(this.Z,function(d){if(void 0!=d.j)var e=Zja(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.y(Eu,Yia);Eu.prototype.j=function(a){var b=new Xia;b.j=Qt(a,vkb);b.B=Qt(a,xkb);return b};g.y(Fu,Vt);Fu.prototype.j=function(a){return gja(a)};g.y(Gu,cja);g.y(Hu,Vt);Hu.prototype.j=function(a){return a.rj().Hr()};g.y(Iu,Wt);Iu.prototype.j=function(a){var b=g.Fb(this.N,Ir(hs().Jc,"ovms"));return!a.Qt&&(0!=a.gk||b)};g.y(Ju,Gu);Ju.prototype.B=function(){return new Iu(this.j)};
  8542. Ju.prototype.C=function(){return[new Hu("viewable_impression",this.j),new Fu(this.j)]};g.y(Ku,Zt);Ku.prototype.C=function(){var a=g.Xa("ima.admob.getViewability"),b=Ir(this.Jc,"queryid");"function"===typeof a&&b&&a(b)};
  8543. Ku.prototype.getName=function(){return"gsv"};g.y(Lu,qt);Lu.prototype.getName=function(){return"gsv"};
  8544. Lu.prototype.VC=function(){var a=Zs();hs();return a.B&&!1};
  8545. Lu.prototype.OH=function(a,b,c){return new Ku(this.j,b,c)};g.y(Mu,Zt);Mu.prototype.C=function(){var a=this,b=g.Xa("ima.bridge.getNativeViewability"),c=Ir(this.Jc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.jd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=kia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?ykb.clone():kia(e);a.timestamp=d.opt_nativeTime||-1;Zs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
  8546. Mu.prototype.getName=function(){return"nis"};g.y(Nu,qt);Nu.prototype.getName=function(){return"nis"};
  8547. Nu.prototype.VC=function(){var a=Zs();hs();return a.B&&!1};
  8548. Nu.prototype.OH=function(a,b,c){return new Mu(this.j,b,c)};g.y(Ou,ct);g.k=Ou.prototype;g.k.UC=function(){return null!=this.B.Yn};
  8549. g.k.WX=function(){var a={};this.La&&(a.mraid=this.La);this.Ca&&(a.mlc=1);a.mtop=this.B.Qda;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a};
  8550. g.k.Ku=function(a){var b=g.Ja.apply(1,arguments);try{return this.B.Yn[a].apply(this.B.Yn,b)}catch(c){us(538,c,.01,function(d){d.method=a})}};
  8551. g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.ME();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.pj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.pj("w"),!1;Zs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?cka(this):Ft(this.C,"load",function(){es().setTimeout(ts(292,function(){return cka(a)}),100)},292);
  8552. return!0};
  8553. g.k.bV=function(){var a=Zs(),b=hka(this,"getMaxSize");a.j=new As(0,b.width,b.height,0)};
  8554. g.k.cV=function(){Zs().D=hka(this,"getScreenSize")};
  8555. g.k.dispose=function(){eka(this);ct.prototype.dispose.call(this)};var Gha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Qu.prototype;g.k.II=function(a){Jt(a,!1);Bja(a)};
  8556. g.k.AJ=function(){};
  8557. g.k.sG=function(a,b,c,d){var e=this;a=new au(Or,a,c?b:-1,7,this.sO(),this.eX());a.Xi=d;bha(a.Jc);Hr(a.Jc,"queryid",a.Xi);a.dS("");Ria(a,function(){return e.tY.apply(e,g.qa(g.Ja.apply(0,arguments)))},function(){return e.k9.apply(e,g.qa(g.Ja.apply(0,arguments)))});
  8558. (d=cs(mu).j)&&Nia(a,d);a.Qj.nu&&cs(Kja);return a};
  8559. g.k.Zz=function(a){switch(a.wr()){case 0:if(a=cs(mu).j)a=a.j,g.Hb(a.G,this),a.Y&&this.lq()&&qia(a);Su();break;case 2:wu()}};
  8560. g.k.Lt=function(){};
  8561. g.k.lq=function(){return!1};
  8562. g.k.k9=function(a,b){a.Qt=!0;switch(a.Dp()){case 1:nka(a,b);break;case 2:this.oS(a)}};
  8563. g.k.t9=function(a){var b=a.N(a);b&&(b=b.volume,a.zb=Xs(b)&&0<b);jja(a,0);return gu(a,"start",at())};
  8564. g.k.jC=function(a,b,c){xu(vu,[a],!at());return this.Ep(a,b,c)};
  8565. g.k.Ep=function(a,b,c){return gu(a,c,at())};
  8566. g.k.o9=function(a){return Yu(a,"firstquartile",1)};
  8567. g.k.q9=function(a){a.Za=!0;return Yu(a,"midpoint",2)};
  8568. g.k.u9=function(a){return Yu(a,"thirdquartile",3)};
  8569. g.k.l9=function(a){var b=Yu(a,"complete",4);bu(a);return b};
  8570. g.k.m9=function(a){a.gk=3;return gu(a,"error",at())};
  8571. g.k.O0=function(a,b,c){b=at();if(a.Un()&&!b){var d=a.rj(),e=vs();d.Z=e}xu(vu,[a],!b);a.Un()&&(a.gk=1);return gu(a,c,b)};
  8572. g.k.s9=function(a,b){b=this.jC(a,b||{},"skip");bu(a);return b};
  8573. g.k.p9=function(a,b){Jt(a,!0);return this.jC(a,b||{},"fullscreen")};
  8574. g.k.n9=function(a,b){Jt(a,!1);return this.jC(a,b||{},"exitfullscreen")};
  8575. g.k.TR=function(a,b,c){b=a.rj();var d=vs();b.Na=Ut(b,d,1!=a.gk);xu(vu,[a],!at());1==a.gk&&(a.gk=2);return gu(a,c,at())};
  8576. g.k.r9=function(a){xu(vu,[a],!at());return a.B()};
  8577. g.k.IP=function(a){xu(vu,[a],!at());this.I0(a);bu(a);return a.B()};
  8578. g.k.tY=function(){};
  8579. g.k.oS=function(){};
  8580. g.k.I0=function(){};
  8581. g.k.eV=function(){};
  8582. g.k.tO=function(){};
  8583. g.k.eX=function(){this.j||(this.j=this.tO());return null==this.j?new Xt:new Ju(this.j)};
  8584. g.k.sO=function(){return new Eu};g.y(Zu,Vt);Zu.prototype.j=function(a){return 4==a.fJ()};g.y($u,Wt);$u.prototype.j=function(a){a=a.fJ();return 3==a||4==a};g.y(av,Gu);av.prototype.B=function(){return new $u(this.j)};
  8585. av.prototype.C=function(){return[new Zu(this.j)]};g.y(bv,Yia);bv.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new Xia;b.j=Qt(a,wkb);b.B=Qt(a,xkb);return b};rka.prototype.B=function(){return g.Xa(this.j)};g.y(cv,Qu);g.k=cv.prototype;g.k.AJ=function(a,b){var c=this,d=cs(mu);if(null!=d.j)switch(d.j.getName()){case "nis":var e=vka(this,a,b);break;case "gsv":e=uka(this,a,b);break;case "exc":e=wka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=pka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Dp()&&(e.N==g.Hd&&(e.N=function(f){return c.eV(f)}),tka(this,e,b));
  8586. return e};
  8587. g.k.eV=function(a){a.B=0;a.Ga=0;if("h"==a.D||"n"==a.D){hs();a.bb&&(hs(),"h"!=Wu(this)&&Wu(this));var b=g.Xa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Xi)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Xa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Xi)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Xa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Xi)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
  8588. c?a.B|=16:g.jd(c)?a.B|=32:null!=c.errorCode&&(a.Ga=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.Z=0;for(var d in pkb)null==b[d]&&(a.Z|=pkb[d]);qka(b,"currentTime");qka(b,"duration");Xs(c.volume)&&Xs()&&(c.volume*=NaN);return c};
  8589. g.k.tO=function(){hs();"h"!=Wu(this)&&Wu(this);var a=xka(this);return null!=a?new rka(a):null};
  8590. g.k.oS=function(a){!a.j&&a.Qt&&Xu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
  8591. g.k.I0=function(a){a.z1&&(a.Hr()?Xu(this,a,"overlay_viewable_end_of_session_impression"):Xu(this,a,"overlay_unviewable_impression"),a.z1=!1)};
  8592. g.k.tY=function(){};
  8593. g.k.sG=function(a,b,c,d){if(Hha()){var e=Ir(hs().Jc,"mm"),f={};(e=(f[is.j3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[is.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Bka(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&us(1044,Error())}a=Qu.prototype.sG.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new Sia),b.j[a.Xi]=a.G,a.G.G=zkb);return a};
  8594. g.k.II=function(a){a&&1==a.Dp()&&this.D&&delete this.G.j[a.Xi];return Qu.prototype.II.call(this,a)};
  8595. g.k.eX=function(){this.j||(this.j=this.tO());return null==this.j?new Xt:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new av(this.j):new Ju(this.j)};
  8596. g.k.sO=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new bv:new Eu};
  8597. var Akb=rs(193,Dka,void 0,oka);g.Va("Goog_AdSense_Lidar_sendVastEvent",Akb);var Bkb=ts(194,function(a,b){b=void 0===b?{}:b;a=Aka(cs(cv),a,b);return Cka(a)});
  8598. g.Va("Goog_AdSense_Lidar_getViewability",Bkb);var Ckb=rs(195,function(){return Bha()});
  8599. g.Va("Goog_AdSense_Lidar_getUrlSignalsArray",Ckb);var Dkb=ts(196,function(){return JSON.stringify(Bha())});
  8600. g.Va("Goog_AdSense_Lidar_getUrlSignalsList",Dkb);var HBa=pa(["//tpc.googlesyndication.com/sodar/",""]);var ZNa={H6a:0,E6a:1,B6a:2,C6a:3,D6a:4,G6a:5,F6a:6};var Hpa=(new Date).getTime();var Fka="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Gka=/\bocr\b/;var Ika=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.y(fv,g.Dd);fv.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Vn.Oj(this.G);delete fv.instance};
  8601. fv.prototype.Eh=function(){return this.j};
  8602. fv.prototype.lf=function(){var a=this;this.G=this.Vn.Ni(function(){var b;return g.G(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ia(3):g.z(c,ev(a),3):g.z(c,ev(a),3);a.lf();g.Aa(c)})},3E4)};hv.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
  8603. hv.prototype.get=function(a){return!!this.data[a]};var jv;g.nb(g.wv,g.I);g.k=g.wv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Lka(this),b=Mka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.ud(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(oba(this.C),20)};
  8604. g.k.stop=function(){if(this.isActive()){var a=Lka(this),b=Mka(this);a&&!b&&this.B.mozRequestAnimationFrame?Ad(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
  8605. g.k.isActive=function(){return null!=this.j};
  8606. g.k.r5=function(){this.D&&this.j&&Ad(this.j);this.j=null;this.K.call(this.G,g.kb())};
  8607. g.k.va=function(){this.stop();g.wv.Nf.va.call(this)};g.nb(g.xv,g.I);g.k=g.xv.prototype;g.k.WC=0;g.k.va=function(){g.xv.Nf.va.call(this);this.stop();delete this.j;delete this.B};
  8608. g.k.start=function(a){this.stop();this.WC=g.Dg(this.C,void 0!==a?a:this.Ti)};
  8609. g.k.stop=function(){this.isActive()&&g.Ta.clearTimeout(this.WC);this.WC=0};
  8610. g.k.isActive=function(){return 0!=this.WC};
  8611. g.k.fV=function(){this.WC=0;this.j&&this.j.call(this.B)};g.Bv.prototype[Symbol.iterator]=function(){return this};
  8612. g.Bv.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.nb(g.Kv,g.Dd);g.k=g.Kv.prototype;g.k.isPlaying=function(){return 1==this.j};
  8613. g.k.isPaused=function(){return-1==this.j};
  8614. g.k.EK=function(){this.zn("begin")};
  8615. g.k.Nr=function(){this.zn("end")};
  8616. g.k.onFinish=function(){this.zn("finish")};
  8617. g.k.onStop=function(){this.zn("stop")};
  8618. g.k.zn=function(a){this.dispatchEvent(a)};var Ekb=Id(function(){var a=g.Cf("DIV"),b=g.Qc?"-webkit":Js?"-moz":g.Ks?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!ujb.test("div"))throw Error("");if("DIV"in wjb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!ujb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof Od)e=Pd(e);else if("style"==h.toLowerCase()){if(!g.cb(e))throw Error("");if(!(e instanceof
  8619. g.ne)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.ne(l,ze):Vka}e=oe(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in vjb)if(e instanceof g.Wd)e=g.Xd(e).toString();else if(e instanceof g.ae)e=g.be(e);else if("string"===typeof e)e=g.he(e).toString();else throw Error("");}f=h+'="'+gc(String(e))+
  8620. '"';d+=" "+f}}var n="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===tjb.div?n+=">":(b=Eba(b),n+=">"+g.qe(b).toString()+"</div>");n=re(n);if(xjb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.qe(n);return""!=g.Ls(a.firstChild,"transition")});g.nb(Lv,g.Kv);g.k=Lv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.EK();this.zn("play");this.startTime=g.kb();this.j=1;if(Ekb())return g.Is(this.B,this.K),this.C=g.Dg(this.Bca,void 0,this),!0;this.VM(!1);return!1};
  8621. g.k.Bca=function(){g.Us(this.B);Pka(this.B,this.N);g.Is(this.B,this.D);this.C=g.Dg((0,g.gb)(this.VM,this,!1),1E3*this.G)};
  8622. g.k.stop=function(){this.isPlaying()&&this.VM(!0)};
  8623. g.k.VM=function(a){g.Is(this.B,"transition","");g.Ta.clearTimeout(this.C);g.Is(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.onStop();else this.onFinish();this.Nr()};
  8624. g.k.va=function(){this.stop();Lv.Nf.va.call(this)};
  8625. g.k.pause=function(){};var Rka={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};Mv("Element","attributes")||Mv("Node","attributes");Mv("Element","innerHTML")||Mv("HTMLElement","innerHTML");Mv("Node","nodeName");Mv("Node","nodeType");Mv("Node","parentNode");Mv("Node","childNodes");Mv("HTMLElement","style")||Mv("Element","style");Mv("HTMLStyleElement","sheet");var Yka=Tka("getPropertyValue"),Zka=Tka("setProperty");Mv("Element","namespaceURI")||Mv("Node","namespaceURI");var Xka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var dla,Zib,bla,ala,ela;dla=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");Zib=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Fkb=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
  8626. g.Nv=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");bla=/^http:\/\/.*/;g.Gkb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");ala=/\s+/;ela=/[\d\u06f0-\u06f9]/;Pv.prototype.Tl=function(){return new Qv(this.B())};
  8627. Pv.prototype[Symbol.iterator]=function(){return new Rv(this.B())};
  8628. Pv.prototype.j=function(){return new Rv(this.B())};
  8629. g.y(Qv,g.Kt);Qv.prototype.next=function(){return this.B.next()};
  8630. Qv.prototype[Symbol.iterator]=function(){return new Rv(this.B)};
  8631. Qv.prototype.j=function(){return new Rv(this.B)};
  8632. g.y(Rv,Pv);Rv.prototype.next=function(){return this.C.next()};Tv.prototype.clone=function(){return new Tv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Vv.prototype.clone=function(){return new Vv(this.start,this.end)};(function(){if(qgb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.oc()))?a[1]:"0"}return KY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.oc()))?a[0].replace(/_/g,"."):"10"):g.uB?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.oc()))?a[1]:""):ljb||mjb||njb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.oc()))?a[1].replace(/_/g,"."):""):""})();var gla=function(){if(g.bR)return Wv(/Firefox\/([0-9.]+)/);if(g.Ks||g.VC||g.AR)return Xaa;if(g.aK){if(Lc()||Mc()){var a=Wv(/CriOS\/([0-9.]+)/);if(a)return a}return Wv(/Chrome\/([0-9.]+)/)}if(g.zC&&!Lc())return Wv(/Version\/([0-9.]+)/);if(sB||tB){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.oc()))return a[1]+"."+a[2]}else if(g.aUa)return(a=Wv(/Android\s+([0-9.]+)/))?a:Wv(/Version\/([0-9.]+)/);return""}();g.nb(g.Yv,g.I);g.k=g.Yv.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e};
  8633. g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nh(a)}return!1};
  8634. g.k.Nh=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Hb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
  8635. g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.N)for(e=0;e<c.length;e++){var h=c[e];hla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Ma();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Nh(c)}}return 0!=e}return!1};
  8636. g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Nh,this),delete this.B[a])}else this.j.length=0,this.B={}};
  8637. g.k.va=function(){g.Yv.Nf.va.call(this);this.clear();this.C.length=0};g.Zv.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.mn(b))};
  8638. g.Zv.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
  8639. g.Zv.prototype.remove=function(a){this.j.remove(a)};g.nb($v,g.Zv);$v.prototype.set=function(a,b){$v.Nf.set.call(this,a,jla(b))};
  8640. $v.prototype.B=function(a){a=$v.Nf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
  8641. $v.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.nb(aw,$v);aw.prototype.set=function(a,b,c){if(b=jla(b)){if(c){if(c<g.kb()){aw.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.kb()}aw.Nf.set.call(this,a,b)};
  8642. aw.prototype.B=function(a,b){var c=aw.Nf.B.call(this,a);if(c)if(!b&&g.kla(c))aw.prototype.remove.call(this,a);else return c};g.nb(g.bw,aw);g.nb(cw,lla);cw.prototype[Symbol.iterator]=function(){return g.Sv(this.Tl(!0)).j()};
  8643. cw.prototype.clear=function(){var a=Array.from(this);a=g.u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.nb(dw,cw);g.k=dw.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&("QuotaExceededError"===c.name||22===c.code||1014===c.code||"NS_ERROR_DOM_QUOTA_REACHED"===c.name)&&a&&0!==a.length}else b=!1;return this.B=b};
  8644. g.k.set=function(a,b){ew(this);try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
  8645. g.k.get=function(a){ew(this);a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
  8646. g.k.remove=function(a){ew(this);this.j.removeItem(a)};
  8647. g.k.Tl=function(a){ew(this);var b=0,c=this.j,d=new g.Kt;d.next=function(){if(b>=c.length)return g.q2;var e=c.key(b++);if(a)return g.Lt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Lt(e)};
  8648. return d};
  8649. g.k.clear=function(){ew(this);this.j.clear()};
  8650. g.k.key=function(a){ew(this);return this.j.key(a)};g.nb(fw,dw);g.nb(mla,dw);g.nb(gw,cw);gw.prototype.set=function(a,b){this.B.set(this.j+a,b)};
  8651. gw.prototype.get=function(a){return this.B.get(this.j+a)};
  8652. gw.prototype.remove=function(a){this.B.remove(this.j+a)};
  8653. gw.prototype.Tl=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Kt;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Lt(a?e.slice(c.j.length):c.B.get(e))};
  8654. return d};iw.prototype.getValue=function(){return this.B};
  8655. iw.prototype.clone=function(){return new iw(this.j,this.B)};g.k=jw.prototype;g.k.Bh=function(a,b){var c=this.j;c.push(new iw(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c};
  8656. g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
  8657. g.k.nm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
  8658. g.k.En=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
  8659. g.k.clone=function(){return new jw(this)};
  8660. g.k.isEmpty=function(){return 0===this.j.length};
  8661. g.k.clear=function(){this.j.length=0};g.y(kw,jw);kw.prototype.enqueue=function(a,b){this.Bh(a,b)};lw.fh=void 0;lw.getInstance=function(){return lw.fh?lw.fh:lw.fh=new lw};
  8662. lw.prototype.j=0;var mw={},Hkb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;mw.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
  8663. mw.fT=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
  8664. var Ikb={ez:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},
  8665. HX:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},Jkb={ez:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
  8666. HX:function(a){return[].concat.apply([],a)}};
  8667. mw.Kda=function(){Hkb?(mw.yy=Uint8Array,mw.Dq=Uint16Array,mw.v3=Int32Array,mw.assign(mw,Ikb)):(mw.yy=Array,mw.Dq=Array,mw.v3=Array,mw.assign(mw,Jkb))};
  8668. mw.Kda();var Kkb=!0;try{new Uint8Array(1)}catch(a){Kkb=!1};var Mw={};Mw=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Nw={},u2,Lkb=[],v2=0;256>v2;v2++){u2=v2;for(var Mkb=0;8>Mkb;Mkb++)u2=u2&1?3988292384^u2>>>1:u2>>>1;Lkb[v2]=u2}Nw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Lkb[(a^b[d])&255];return a^-1};var Dw={};Dw={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var ww=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],zw=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Jla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Hw=Array(576);nw(Hw);var Iw=Array(60);nw(Iw);var yw=Array(512);nw(yw);var vw=Array(256);nw(vw);var xw=Array(29);nw(xw);var Aw=Array(30);nw(Aw);var Gla,Hla,Ila,Fla=!1;var Sw;Sw=[new Rw(0,0,0,0,function(a,b){var c=65535;for(c>a.Gm-5&&(c=a.Gm-5);;){if(1>=a.ac){Ow(a);if(0===a.ac&&0===b)return 1;if(0===a.ac)break}a.Db+=a.ac;a.ac=0;var d=a.Ok+c;if(0===a.Db||a.Db>=d)if(a.ac=a.Db-d,a.Db=d,Jw(a,!1),0===a.ye.Ie)return 1;if(a.Db-a.Ok>=a.gj-262&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;if(4===b)return Jw(a,!0),0===a.ye.Ie?3:4;a.Db>a.Ok&&Jw(a,!1);return 1}),
  8669. new Rw(4,4,8,4,Pw),new Rw(4,5,16,8,Pw),new Rw(4,6,32,32,Pw),new Rw(4,4,16,16,Qw),new Rw(8,16,32,32,Qw),new Rw(8,16,128,128,Qw),new Rw(8,32,128,256,Qw),new Rw(32,128,258,1024,Qw),new Rw(32,258,258,4096,Qw)];var Ela={};Ela=function(){this.input=null;this.ly=this.lj=this.nx=0;this.output=null;this.xT=this.Ie=this.XA=0;this.msg="";this.state=null;this.wO=2;this.Ud=0};var Kla=Object.prototype.toString;
  8670. Tw.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=nla(a):"[object ArrayBuffer]"===Kla.call(a)?c.input=new Uint8Array(a):c.input=a;c.nx=0;c.lj=c.input.length;do{0===c.Ie&&(c.output=new mw.yy(d),c.XA=0,c.Ie=d);a=Dla(c,e);if(1!==a&&0!==a)return this.Nr(a),this.ended=!0,!1;if(0===c.Ie||0===c.lj&&(4===e||2===e))if("string"===this.options.to){var f=mw.fT(c.output,c.XA);b=f;f=f.length;if(65537>f&&(b.subarray&&
  8671. Kkb||!b.subarray))b=String.fromCharCode.apply(null,mw.fT(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=mw.fT(c.output,c.XA),this.chunks.push(b)}while((0<c.lj||0===c.Ie)&&1!==a);if(4===e)return(c=this.ye)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=Ew(c,-2):(c.state=null,a=113===d?Ew(c,-3):0)):a=-2,this.Nr(a),this.ended=!0,0===a;2===e&&(this.Nr(0),c.Ie=0);return!0};
  8672. Tw.prototype.Nr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):mw.HX(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var Vw="@@redux/INIT"+Uw(),Qla="@@redux/REPLACE"+Uw();var Rla="function"===typeof Symbol&&Symbol.observable||"@@observable";var Nkb=[0,Rjb,-3,m2];g.y(Yw,T);Yw.prototype.getType=function(){return Sk(this,11)};
  8673. Yw.wb=[2,13,14];var P8a=function(){var a=[0,Tjb,Sjb,j2,Rjb,j2,-1,m2,Rjb,m2,-1,Tjb,m2,Sjb,k2,Nkb,j2,-1,m2];return function(b,c){if(h2.length){var d=h2.pop();nda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Ih(b,c);try{var e=new Yw,f=e.oa;gl(a)(f,b);var h=e}finally{b.free()}return h}}();var $xa=new g.Zw("adInfoDialogEndpoint");var wAa=new g.Zw("adPingingEndpoint");var qEa=new g.Zw("crossDeviceProgressCommand");var bM=new g.Zw("actionCompanionAdRenderer");var NJ=new g.Zw("adActionInterstitialRenderer");var Okb=new g.Zw("adDurationRemainingRenderer");var oM=new g.Zw("adHoverTextButtonRenderer");var Yxa=new g.Zw("adInfoDialogRenderer");var GM=new g.Zw("adMessageRenderer");var pM=new g.Zw("adPreviewRenderer");var dM=new g.Zw("adsEngagementPanelRenderer");var nGa=new g.Zw("dismissablePanelTextPortraitImageRenderer");var Pkb=new g.Zw("flyoutCtaRenderer");var cM=new g.Zw("imageCompanionAdRenderer");var MJ=new g.Zw("instreamAdPlayerOverlayRenderer");var Qkb=new g.Zw("instreamAdPlayerUnderlayRenderer");var tib=new g.Zw("instreamSurveyAdBackgroundImageRenderer");var xGa=new g.Zw("instreamSurveyAdPlayerOverlayRenderer");var hM=new g.Zw("instreamSurveyAdRenderer"),nM=new g.Zw("instreamSurveyAdSingleSelectQuestionRenderer"),mM=new g.Zw("instreamSurveyAdMultiSelectQuestionRenderer"),w2=new g.Zw("instreamSurveyAdAnswerRenderer"),Rkb=new g.Zw("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var fM=new g.Zw("instreamVideoAdRenderer");var Skb=new g.Zw("textOverlayAdContentRenderer"),Tkb=new g.Zw("enhancedTextOverlayAdContentRenderer"),Ukb=new g.Zw("imageOverlayAdContentRenderer");var nDa=new g.Zw("playerOverlayLayoutRenderer");var rGa=new g.Zw("aboveFeedAdLayoutRenderer");var sGa=new g.Zw("belowPlayerAdLayoutRenderer");var qGa=new g.Zw("inPlayerAdLayoutRenderer");var kGa=new g.Zw("playerBytesAdLayoutRenderer");var lM=new g.Zw("playerUnderlayAdLayoutRenderer");var gM=new g.Zw("adIntroRenderer");var iGa=new g.Zw("playerBytesSequentialLayoutRenderer");var HHa=new g.Zw("slidingTextPlayerOverlayRenderer");var iM=new g.Zw("surveyTextInterstitialRenderer");var Vkb=new g.Zw("simpleAdBadgeRenderer");var vL=new g.Zw("skipAdRenderer"),Wkb=new g.Zw("skipButtonRenderer");var tM=new g.Zw("adSlotRenderer");var kM=new g.Zw("squeezebackPlayerSidePanelRenderer");var Xkb=new g.Zw("timedPieCountdownRenderer");var Ykb=new g.Zw("adAvatarViewModel");var Zkb=new g.Zw("adButtonViewModel");var $kb=new g.Zw("adPreviewViewModel");var alb=new g.Zw("playerAdAvatarLockupCardButtonedViewModel");var blb=new g.Zw("skipAdButtonViewModel");var clb=new g.Zw("skipAdViewModel");var dlb=new g.Zw("visitAdvertiserLinkViewModel");var aGa=new g.Zw("bannerImageLayoutViewModel");var bGa=new g.Zw("topBannerImageTextIconButtonedLayoutViewModel");var cGa=new g.Zw("adsEngagementPanelLayoutViewModel");g.y($w,T);g.y(ax,T);g.y(bx,T);g.y(cx,T);g.y(dx,T);dx.prototype.clearVideo=function(){return Tj(this,1)};
  8674. var AO=[1,2,3,4];var iKa={xla:0,ula:1,wla:2};var jKa={Bla:0,Ala:1,zla:2,yla:3};var nKa={Lpa:0,Kpa:1,Jpa:2};var yO={Qsa:0,Rsa:1,Osa:2,Nsa:3,Lsa:4,Psa:5,Msa:6,Ksa:7};var mKa={Lta:0,Kta:1,Gta:2,Cta:3,Jta:4,Mta:5,Fta:6,Bta:7,Eta:8,Ita:9,Hta:10,Nta:11,Dta:12,Ota:13};var aLa={eua:0,Qta:1,Tta:2,fua:3,Rta:4,Sta:5,Yta:6,aua:7,Vta:8,Pta:9,Xta:10,cua:11,Wta:12,Uta:13,Zta:14};var lKa={hya:0,fya:1,gya:2};var $Ka={T5a:0,S5a:1,R5a:2,Q5a:3};var ZKa={a6a:0,U5a:1,V5a:5,W5a:6,Y5a:2,Z5a:3,X5a:4};var YKa={e6a:0,f6a:1,d6a:2,b6a:3};var XKa={j6a:0,h6a:1,i6a:2};var WKa={Rkb:0,Gkb:1,Nkb:2,Hkb:3,Okb:4,Kkb:5,Pkb:6,Lkb:7,Jkb:8,Ikb:9,Mkb:10,Qkb:11,Fkb:12};g.y(ex,T);ex.prototype.getType=function(){return Sk(this,1)};g.y(fx,T);g.y(gx,T);g.y(hx,T);hx.prototype.getViews=function(){return Sk(this,1)};g.y(ix,T);g.y(jx,T);g.y(kx,T);kx.prototype.getViews=function(){return Sk(this,1)};
  8675. kx.prototype.j=function(a,b){return gk(this,2,Ei,a,b)};
  8676. kx.wb=[2];g.y(lx,T);lx.prototype.j=function(a,b){return gk(this,3,Ei,a,b)};
  8677. lx.wb=[3];g.y(mx,T);g.y(nx,T);g.y(ox,T);g.y(px,T);g.y(qx,T);g.y(Wla,T);g.y(rx,T);rx.prototype.getViews=function(){return Sk(this,1)};g.y(Xla,T);g.y(Yla,T);g.y(Zla,T);var wO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var vKa={jna:0,oma:2,lna:3,pma:4,nma:5,ana:6,cna:58,Bma:17,dma:18,fna:15,hna:7,Ima:8,Kla:10,Lla:26,gma:45,lma:11,Ama:14,nna:16,Gla:19,Mla:20,Hla:21,ona:22,Nla:23,mma:25,Cla:27,Dla:53,Gma:28,fma:30,Rma:31,ama:32,Ola:33,Kma:34,Dma:35,xma:36,Ila:37,Xma:39,tma:41,yma:42,vma:43,uma:44,Jla:40,Sma:46,Tma:50,wma:51,zma:52,mna:54,Rla:57,Tla:91,Ula:93,Sla:92,Yma:60,bma:67,Ela:64,hma:65,Wla:68,Fla:69,Jma:70,rma:71,qma:72,Zla:73,Yla:75,kna:76,Qma:77,Ema:78,bna:79,Wma:80,cma:81,jma:82,Xla:83,kma:84,dna:85,Vma:89,
  8678. Fma:86,Nma:87,Oma:88,Mma:90,Lma:100,Qla:94,Pla:95,Pma:96,Hma:97,ema:98,gna:99,ina:101,ena:102,Vla:103,Cma:104,Uma:105,Zma:106};var tKa={xna:0,pna:1,wna:2,rna:3,qna:4,vna:5,una:6,tna:7,sna:8,yna:9};var sKa={Fna:0,Ana:1,zna:2,Dna:3,Gna:4,Bna:5,Cna:6,Ena:7};var uKa={Qna:0,Mna:1,Lna:2,Ona:3,Ina:4,Hna:5,Nna:6,Jna:7,Rna:8,Pna:9,Kna:10};var rKa={eoa:0,doa:1,coa:2};var wKa={YPa:0,RPa:1,UPa:2,uPa:3,WPa:4,hPa:5,NPa:6,xPa:7,XPa:8,qPa:9,KPa:10,rPa:11,PPa:12,SOa:13,BPa:14,zPa:15,APa:16,OPa:17,DPa:18,MPa:19,LPa:20,HPa:21,mPa:22,TOa:23,yPa:24,FPa:25,oPa:26,nPa:27,EPa:28,UOa:29,IPa:30,tPa:31,VPa:32,gPa:33,GPa:34,fPa:35,iPa:36,jPa:37,pPa:38,lPa:39,kPa:40,JPa:41,CPa:42,QPa:43,vPa:44,SPa:45,TPa:46,wPa:47,sPa:70,cPa:48,ZOa:49,ePa:50,dPa:51,bPa:52,YOa:53,VOa:54,aPa:55,XOa:56,WOa:57,QOa:58,POa:59,OOa:60,IOa:61,NOa:62,JOa:63,KOa:64,HOa:65,LOa:66,ROa:67,MOa:68,GOa:69};var hKa={Dsa:0,ysa:1,xsa:18,lsa:2,esa:3,ksa:9,fsa:10,isa:14,gsa:4,dsa:5,hsa:6,Fsa:11,jsa:12,Yra:13,Xra:15,qsa:16,zsa:17,Asa:19,Hsa:20,wsa:21,tsa:22,vsa:23,csa:24,Bsa:25,bsa:26,Zra:34,Esa:27,ssa:28,usa:29,nsa:30,Csa:31,Gsa:32,rsa:33,msa:7};var xKa={aoa:0,boa:1,Vna:2,Wna:3,Xna:4,Sna:5,Una:6,Yna:7,Zna:8,Tna:9};var xO={Coa:0,ooa:1,Boa:3,zoa:4,yoa:5,poa:25,Doa:6,moa:7,goa:8,roa:9,foa:12,qoa:22,toa:23,uoa:26,voa:27,woa:28,Aoa:24,xoa:13,Eoa:14,soa:15,hoa:16,koa:17,ioa:18,joa:19,loa:20,noa:21};g.y($la,T);g.y(sx,T);sx.prototype.j=function(a,b){return Kk(this,1,$la,a,b)};
  8679. sx.wb=[1];g.y(tx,T);tx.prototype.j=function(a,b){return gk(this,2,Ei,a,b)};
  8680. tx.prototype.getMetrics=function(a){return zea(this,2,a)};
  8681. tx.wb=[2];g.y(ama,T);var yKa=[1,2];g.dT=new g.Zw("browseEndpoint");var elb=new g.Zw("confirmDialogEndpoint");var Bva=new g.Zw("rawColdConfigGroup");var Ava=new g.Zw("rawHotConfigGroup");var dLa={Q2a:0,P2a:1,L2a:2,J2a:3,M2a:4,K2a:5,O2a:6,N2a:7};g.XF=new g.Zw("commandExecutorCommand");g.y(bma,T);g.y(cma,T);g.y(dma,T);g.y(ema,T);var BKa=[1,2,3];g.y(fma,T);g.y(ux,T);ux.prototype.B=function(a,b){return gk(this,1,hj,a,b)};
  8682. ux.prototype.j=function(a,b){return gk(this,2,hj,a,b)};
  8683. ux.prototype.Df=function(){return Nk(this,3)};
  8684. ux.wb=[1,2];g.y(gma,T);g.y(vx,T);vx.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8685. vx.prototype.getMetrics=function(a){return zea(this,1,a)};
  8686. vx.wb=[1];g.y(hma,T);g.y(ima,T);g.y(jma,T);g.y(kma,T);g.y(lma,T);g.y(mma,T);g.y(nma,T);g.y(oma,T);g.y(pma,T);g.y(qma,T);var LKa=[1,2],OKa=[3,4,5];g.y(wx,T);wx.prototype.getName=function(){return Nk(this,2)};g.y(rma,T);g.y(sma,T);g.y(xx,T);xx.prototype.getId=function(){return Nk(this,1)};g.y(yx,T);yx.prototype.getType=function(){return Fi(Qj(this,1))};g.y(zx,T);zx.prototype.getType=function(){return Fi(Qj(this,1))};g.y(Ax,T);Ax.prototype.getType=function(){return Fi(Qj(this,1))};g.y(Bx,T);var DO=[1,2,3,4];g.y(tma,T);g.y(Cx,T);g.y(Dx,T);var CO=[1,2,3,4];g.y(uma,T);g.y(Ex,T);Ex.prototype.j=function(a,b){return Kk(this,2,Dx,a,b)};
  8687. Ex.wb=[2];var BO=[3,4,5,6,7];g.y(Fx,T);g.y(vma,T);var oLa=[1,2];g.y(Gx,T);Gx.prototype.getId=function(){return g.Gk(this,Fx,2)};g.y(Hx,T);Hx.prototype.j=function(a,b){return Kk(this,2,Gx,a,b)};
  8688. Hx.wb=[2];g.y(Ix,T);Ix.prototype.j=function(a,b){return Kk(this,1,Gx,a,b)};
  8689. Ix.prototype.B=function(a,b){return Kk(this,2,Hx,a,b)};
  8690. Ix.wb=[1,2];g.y(wma,T);var DKa=[1,2,3];g.y(xma,T);g.y(Jx,T);Jx.prototype.j=function(a,b){return gk(this,2,Ei,a,b)};
  8691. Jx.wb=[2];g.y(yma,T);g.y(zma,T);g.y(Ama,T);g.y(Bma,T);g.y(Cma,T);g.y(Kx,T);Kx.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8692. Kx.wb=[1];g.y(Dma,T);g.y(Ema,T);g.y(Fma,T);var cLa=[1,2,3];g.y(Lx,T);Lx.prototype.j=function(a,b){return Kk(this,1,Fma,a,b)};
  8693. Lx.wb=[1];g.y(Gma,T);g.y(Hma,T);g.y(Ima,T);g.y(Mx,T);Mx.prototype.j=function(a,b){return Kk(this,1,Ima,a,b)};
  8694. Mx.wb=[1];g.y(Jma,T);g.y(Nx,T);g.y(Ox,T);Ox.prototype.j=function(a,b){return Kk(this,1,Nx,a,b)};
  8695. Ox.wb=[1];g.y(Wx,T);Wx.prototype.j=function(a,b){return Kk(this,1,Nx,a,b)};
  8696. Wx.wb=[1];g.y(Xx,T);g.y(Yx,T);var GLa={Fjb:0,zlb:1,Vlb:32,fmb:61,vmb:67,hmb:86,Tlb:42,Wlb:60,Glb:62,cmb:73,amb:76,jmb:88,lmb:90,Bmb:99,Qlb:98,mmb:100,Hmb:41,Imb:69,Jmb:70,Kmb:71,OWa:2,jXa:27,ANDROID:3,Koa:54,Loa:14,Toa:91,Moa:55,Noa:24,Ooa:20,Poa:18,Roa:21,Voa:30,Yoa:29,Zoa:28,apa:34,Uoa:36,Qoa:38,IOS:5,iKa:15,sKa:92,jKa:40,lKa:25,mKa:17,nKa:19,oKa:64,pKa:66,qKa:26,uKa:22,FKa:33,GKa:68,HKa:35,rKa:53,tKa:37,kKa:39,Lhb:7,Lib:57,ajb:43,ljb:59,bjb:93,Xoa:74,sjb:75,tjb:85,ujb:65,wjb:80,xjb:8,Jhb:10,zjb:58,yjb:63,vjb:72,Woa:23,knb:11,
  8697. lnb:13,uua:12,Khb:16,Rlb:56,gmb:31,LWa:77,sHa:84,Zlb:87,uHa:89,tHa:94,JTa:95};var flb={s6:0,x3:1,W5:2,R3:3,A3:4,d6:5,O3:6,TV:7};g.y(Zx,T);Zx.prototype.n8=function(){return Rk(this,3)};
  8698. Zx.prototype.v8=function(){return Rk(this,5)};
  8699. Zx.prototype.Yr=function(a){return Q(this,5,a)};g.y($x,T);g.y(Lma,T);g.y(Mma,T);g.y(ay,T);g.y(Nma,T);Nma.wb=[2];g.y(by,T);by.prototype.getDeviceId=function(){return Rk(this,6)};
  8700. by.prototype.getPlayerType=function(){return Sk(this,36)};
  8701. by.prototype.setHomeGroupInfo=function(a){return Hk(this,Nma,81,a)};
  8702. by.prototype.clearLocationPlayabilityToken=function(){return Tj(this,89)};
  8703. by.wb=[9,66,32,86,100,101];g.y(cy,T);cy.prototype.getValue=function(){return Rk(this,Ek(this,uva,2))};
  8704. var uva=[2,3,4,5,6];g.y(dy,T);dy.wb=[15,26,28];g.y(ey,T);ey.wb=[5];g.y(fy,T);fy.prototype.getToken=function(){return Nk(this,2)};
  8705. fy.prototype.setToken=function(a){return Q(this,2,a)};g.y(gy,T);gy.prototype.setSafetyMode=function(a){return S(this,5,a)};
  8706. gy.wb=[12];g.y(hy,T);hy.prototype.Rx=function(a){return Hk(this,by,1,a)};
  8707. hy.wb=[12];var rM=new g.Zw("thumbnailLandscapePortraitRenderer");var lLa={Zab:0,Uab:1,Xab:2,Yab:3,Vab:4,Wab:5};var jLa={Hbb:0,Gbb:1,abb:2,bbb:3,cbb:4,dbb:5,ebb:6,fbb:7,gbb:8,jbb:9,kbb:10,lbb:11,mbb:12,nbb:13,obb:14,pbb:15,rbb:16,sbb:17,vbb:18,wbb:19,xbb:20,Bbb:21,zbb:22,Abb:23,Cbb:24,Dbb:25,Ebb:26,Fbb:27,ubb:28,hbb:29,qbb:30,tbb:31};var iLa={Rbb:0,Ibb:1,Jbb:2,Kbb:3,Lbb:4,Mbb:5,Nbb:6,Obb:7,Pbb:8,Qbb:9,Sbb:10};var kLa={Wbb:0,Ubb:1,Vbb:2,Tbb:3};var MKa={uta:0,Wsa:1,vta:2,mta:3,Ssa:4,Tsa:5,jta:6,Usa:7,hta:8,ita:13,ata:9,dta:10,gta:11,wta:12,Ysa:14,fta:15,bta:16,pta:17,lta:18,sta:19,qta:20,Zsa:21,rta:22,Xsa:23,eta:24,nta:25,kta:26,tta:27,Vsa:28};var NKa={Ata:0,zta:1,yta:2,xta:3};var eLa={leb:0,jeb:1,keb:2};var FKa={Spa:0,Qpa:4,Ppa:2,Npa:5,Opa:8,Rpa:9,Mpa:3,Tpa:6,Upa:7};var GKa={nva:0,jva:1,kva:2,ova:3,pva:4,mva:5};var EKa={Pva:0,Nva:8,Lva:2,Jva:5,Kva:9,Mva:3,Iva:4,Qva:6,Rva:7,Ova:10};var RKa={Cka:0,Aka:1,Bka:2,Eka:3,Fka:4,Dka:5};var nLa={X3a:0,Q3a:1,S3a:2,W3a:3,U3a:4,T3a:6,R3a:7,V3a:5};var glb={Ckb:0,Bkb:1,wkb:2,Akb:3,ykb:4,zkb:5,xkb:6};var bLa={Wkb:0,Vkb:1,Xkb:2};var SKa={ukb:0,lkb:1,mkb:2,nkb:3,okb:4,pkb:5,qkb:6,rkb:7,skb:8,tkb:9};var hlb={Zkb:0,Ykb:1};var TKa={Jab:0,wab:1,Iab:2,xab:3,yab:4,Cab:5,Bab:6,Aab:7,Kab:8,uab:9,vab:10,Hab:11,Gab:12,Fab:13,zab:14,Eab:15,Dab:16};var zMa={cfa:0,afa:1,Zea:2,bfa:3};g.ilb=new g.Zw("changeEngagementPanelVisibilityAction");var Nya=new g.Zw("continuationCommand");g.jlb=new g.Zw("openPopupAction");g.x2=new g.Zw("webCommandMetadata");var aWa=new g.Zw("metadataBadgeRenderer");var Mya=new g.Zw("signalServiceEndpoint");var CNa={Tka:0,Uka:1,Pka:2,Ska:3,Qka:4,Rka:5};var DNa={ela:0,Yka:1,Vka:2,dla:3,fla:4,Xka:5,Wka:6,Zka:7};g.y(iy,T);iy.prototype.getType=function(){return Sk(this,1)};var JO={pLa:0,qLa:1,oLa:2,kLa:3,mLa:4,nLa:5,rLa:6,lLa:7};var klb={JWa:0,BWa:1,CWa:2,IWa:11,HWa:3,GWa:6,FWa:7,DWa:8,EWa:9,AWa:10};var llb={PXa:0,MXa:1,OXa:2,NXa:3,LXa:4};var mlb={u1a:0,e1a:1,v1a:2,t1a:3,s1a:4,q1a:5,p1a:6,h1a:7,f1a:8,l1a:9,z1a:10,g1a:11,n1a:12,x1a:13,y1a:14,o1a:15,k1a:16,j1a:17,m1a:18,i1a:19,w1a:20};var AKa={D1a:0,C1a:86};var KO={p4a:0,o4a:1,h4a:2,e4a:3,g4a:4,q4a:5,n4a:6,c4a:7,r4a:8,a4a:9,l4a:10,s4a:11,m4a:12,d4a:13,Z3a:14,f4a:15,j4a:16,i4a:17,k4a:18,b4a:19};var nlb={pab:0,iab:1,rab:2,jab:3,qab:4,nab:5,oab:6,mab:7};var ME=new g.Zw("innertubeCommand");var Iib=new g.Zw("loggingDirectives");var olb={I3:0,F3:1,H3:2,G3:3};var xqa={I3:"EMBEDDED_PLAYER_MODE_UNKNOWN",F3:"EMBEDDED_PLAYER_MODE_DEFAULT",H3:"EMBEDDED_PLAYER_MODE_PFP",G3:"EMBEDDED_PLAYER_MODE_PFL"};var BWa=new g.Zw("channelThumbnailEndpoint");var AWa=new g.Zw("embeddedPlayerErrorMessageRenderer");var wWa=new g.Zw("embeddedPlayerOverlayVideoDetailsRenderer"),CWa=new g.Zw("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),DWa=new g.Zw("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var YVa=new g.Zw("embedsInfoPanelRenderer");var PKa={nSa:0,bSa:14,lSa:15,mSa:16,cSa:17,gSa:18,iSa:19,eSa:20,fSa:21,kSa:22,hSa:23,jSa:24,dSa:25};var plb=new g.Zw("feedbackEndpoint");var qlb=new g.Zw("callToActionButtonViewModel");g.y(Oma,T);g.y(Pma,T);g.y(Qma,T);var OMa=[1,2];var rlb={zLa:0,ALa:1,yLa:2,tLa:3,sLa:4,uLa:5,wLa:6,vLa:7,xLa:8};var slb={ULa:0,ILa:1,TLa:2,SLa:3,DLa:4,FLa:5,GLa:6,ELa:7,MLa:8,JLa:9,KLa:10,LLa:16,BLa:11,VLa:12,CLa:13,QLa:14,HLa:15,RLa:17,NLa:18,OLa:19,PLa:20};var tlb={ZLa:0,WLa:1,YLa:2,XLa:3};var ulb={GIa:0,nIa:1,HIa:8,yIa:16,zIa:17,CIa:2,AIa:3,BIa:4,qIa:5,oIa:6,pIa:7,FIa:9,DIa:10,EIa:11,xIa:12,uIa:13,wIa:14,vIa:15,tIa:18,rIa:19,sIa:20,mIa:21};var vlb={U0a:0,V0a:1,T0a:2};var wlb={b1a:0,X0a:1,Z0a:2,W0a:3,Y0a:4,a1a:5};var xlb={oMa:0,fMa:1,gMa:2,hMa:3,mMa:4,jMa:5,kMa:6,iMa:7,lMa:8,eMa:9,nMa:10};var ylb={QQa:0,MQa:1,zQa:2,LQa:3,uQa:4,JQa:5,IQa:6,HQa:7,TQa:8,BQa:9,vQa:10,CQa:11,DQa:12,wQa:13,GQa:14,SQa:15,FQa:16,EQa:17,xQa:18,yQa:19,AQa:20,NQa:21,OQa:22,PQa:23,RQa:24,KQa:25};var zlb={pRa:0,lRa:9,fRa:8,rRa:1,wRa:2,uRa:3,vRa:13,mRa:4,hRa:21,iRa:20,jRa:5,bRa:6,aRa:7,dRa:14,cRa:15,yRa:17,zRa:10,kRa:16,eRa:18,oRa:19,YQa:11,ZQa:12,sRa:22,tRa:23,XQa:24,qRa:25,WQa:26,xRa:27,gRa:28,nRa:29};var Alb={yra:0,wra:1,xra:2};var Blb={kQa:0,cQa:1,fQa:2,iQa:3,dQa:4,aQa:5,gQa:6,hQa:7,ZPa:8,jQa:9,eQa:10,bQa:11};var Clb={Bra:0,zra:1,Cra:2,Ara:3};var Dlb=new g.Zw("interactionLoggingCommandMetadata");var ata={Olb:"WEB_DISPLAY_MODE_UNKNOWN",Klb:"WEB_DISPLAY_MODE_BROWSER",Mlb:"WEB_DISPLAY_MODE_MINIMAL_UI",Nlb:"WEB_DISPLAY_MODE_STANDALONE",Llb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.y(Rma,T);g.y(Sma,T);g.y(jy,T);jy.prototype.j=function(a,b){return Kk(this,1,Sma,a,b)};
  8708. jy.wb=[1];var $Na={Sfa:0,tfa:1,Dfa:2,Ifa:3,Ofa:4,Pfa:5,Tfa:6,Jfa:7,sfa:8,Afa:9,zfa:10,dfa:11,Cfa:12,nfa:14,wfa:15,Hfa:16,Gfa:17,Ffa:43,Bfa:18,ufa:29,xfa:19,kfa:20,pfa:21,Rfa:22,efa:23,Vfa:24,yfa:25,lfa:26,Lfa:27,mfa:28,Mfa:30,Nfa:31,Efa:32,Qfa:33,ffa:34,Kfa:35,Wfa:36,ifa:37,jfa:38,Ufa:39,qfa:40,rfa:41,gfa:42,vfa:44,ofa:45};var Elb={bva:0,ava:1,Zua:2};g.y(Tma,T);g.y(Uma,T);var Flb={Aia:0,uia:114,qha:1,oia:4,pia:14,cha:15,qia:17,Oga:6,Rga:7,Tga:8,Sga:9,aha:5,Iha:16,Eha:101,mia:20,lia:26,bia:28,gha:104,zga:105,Bia:50,kia:88,fia:89,hia:90,gia:91,hha:2,vha:92,wha:19,Cga:25,wia:107,Qga:29,lha:93,nha:94,mha:95,yia:30,Fha:31,uha:116,sha:3,oha:82,jha:83,iha:84,rha:85,dia:11,Cia:27,Jha:10,tia:115,wga:12,yga:13,xga:49,vga:106,Mga:18,Dha:21,Xga:22,tga:23,jia:24,hga:32,Bha:33,lga:34,Jia:35,Jga:36,Rha:37,eha:38,via:39,ria:40,sia:41,Eia:42,Nga:43,zia:44,dha:45,Wga:46,Kha:47,Gha:48,
  8709. pha:51,bha:52,Pga:53,cia:54,fha:55,Bga:56,Iga:57,Kga:99,Aga:58,Oha:59,Yga:60,Pha:61,Lha:62,yha:63,Iia:64,Fia:65,Dia:66,Hia:67,Gia:68,gga:69,Nha:70,Sha:71,Tha:72,Wha:73,Xha:74,Uha:75,Vha:117,Fga:76,Hga:77,pga:78,Lga:79,tha:80,Zga:81,Dga:86,rga:87,jga:97,iga:103,xha:98,Qha:100,nga:102,aia:108,Zha:109,kga:110,qga:111,zha:112,Yha:113,Uga:118,xia:119,Cha:120,Aha:121,Vga:122,iia:123,oga:124,Mha:125,Hha:126,Ega:127,Gga:128};var Glb={Yia:0,Sia:1,Uia:2,Wia:3,Qia:4,Lia:5,Nia:6,Pia:7,Via:8,Mia:9,Oia:10,Tia:13,Xia:14,Kia:11,Ria:12};var Hlb={Uja:0,bja:1,cja:2,eja:3,lja:4,Oja:42,Gja:9,Pja:10,jja:11,Mja:12,Lja:13,tja:43,Fja:14,uja:15,Sja:47,wja:46,Bja:16,Aja:17,fja:18,Jja:19,ija:20,Kja:21,Tja:22,Qja:23,Rja:24,hja:25,dja:26,Nja:27,yja:28,Dja:38,Eja:39,Cja:49,Ija:5,vja:6,kja:7,pja:8,zja:29,Hja:30,xja:31,Zia:32,qja:33,oja:34,mja:35,Wja:36,sja:37,Vja:40,rja:41,aja:44,nja:45,gja:48};var mNa={bka:0,aka:1,Xja:2,Zja:3,Yja:4};var kNa={xva:0,uva:1,tva:2,wva:3,vva:4};var Ilb={bwa:0,Yva:1,Vva:2,Zva:3,Wva:4,Xva:5};var Jlb={ewa:0,cwa:1,dwa:2};var Klb={lwa:0,kwa:1,iwa:2,jwa:3,hwa:4};var Llb={owa:0,mwa:1,nwa:2,pwa:3};var Mlb={vwa:0,qwa:1,uwa:2,twa:3,swa:4,rwa:5};var Nlb={Bwa:0,Awa:1,wwa:2};var Olb={zwa:0,xwa:1,ywa:2};var Plb={Ewa:0,Cwa:1,Dwa:2};var Qlb={Swa:0,Owa:1,Nwa:2,Iwa:3,Mwa:4,Gwa:5,Hwa:6,Pwa:7,Jwa:8,Qwa:9,Lwa:10,Fwa:11,Kwa:12,Rwa:13};var Rlb={Xwa:0,Vwa:1,Wwa:2,Uwa:3,Twa:4};var jNa={XNa:0,tNa:1,uNa:2,CMa:3,kNa:4,vNa:5,lNa:6,DMa:7,wNa:8,vMa:9,wMa:10,LMa:11,BMa:12,EMa:13,nNa:14,JMa:15,uMa:16,MNa:17,iNa:18,FMa:19,qNa:20,oNa:21,pNa:22,tMa:23,VNa:25,LNa:26,COa:61,aNa:35,PMa:36,NMa:37,UMa:38,VMa:113,SMa:93,TMa:114,YMa:39,XMa:115,WMa:40,eNa:41,SNa:97,TNa:106,UNa:102,bNa:42,ZMa:43,fNa:44,gNa:45,yMa:24,zMa:27,AMa:28,uOa:29,xOa:75,vOa:104,wOa:30,oOa:98,rOa:108,pOa:105,qOa:89,yOa:31,zOa:86,sOa:32,tOa:91,cOa:51,eOa:52,nOa:62,gOa:70,kOa:63,iOa:64,dOa:65,mOa:66,fOa:71,jOa:67,hOa:68,
  8710. lOa:69,BOa:33,cNa:46,dNa:47,NNa:49,ONa:50,PNa:94,FNa:77,yNa:78,xNa:79,zNa:80,mNa:53,YNa:54,aOa:55,ZNa:56,HNa:112,GNa:57,INa:101,KNa:110,JNa:96,bOa:58,rNa:59,sNa:60,ANa:72,BNa:107,ENa:84,CNa:92,HMa:73,QNa:74,xMa:76,WNa:81,OMa:82,RNa:83,QMa:85,RMa:95,AOa:87,jNa:88,KMa:90,DNa:99,MMa:100,GMa:103,IMa:109,hNa:111};var nNa={y3:0,zua:1,sMa:2,hva:3,g6:4,i6:5,D5a:6,u6a:7,k2a:8,x6:9,Aua:10,fka:11,ika:12,olb:13,wka:14,yka:15,qka:16,rka:17,jka:18,fra:19,hza:20,lJa:21,bKa:22,y6:23,Tdb:24,dka:25,lVa:26,kVa:47,m6:27,dra:28,C5a:29,gFa:30,kJa:31,Yua:32,fkb:33,Xjb:34,Ujb:35,dkb:36,ekb:37,Zjb:38,akb:39,bkb:40,Wjb:41,Vjb:42,vra:43,X5:44,qqa:45,f3:46,cga:48,P3:49,Ndb:50,eya:51,BRa:52,Qnb:53};var Slb={Z_a:0,O_a:1,T_a:2,R_a:3,S_a:4,N_a:5,X_a:6,Y_a:7,M_a:8,V_a:9,P_a:10,Q_a:11,U_a:12,W_a:13};var Tlb={e0a:0,f0a:1,a0a:2,b0a:3,d0a:4,c0a:5};var iNa={G0a:0,B0a:1,w0a:2,x0a:3,y0a:21,r0a:4,l0a:5,o0a:6,n0a:7,q0a:8,m0a:24,F0a:9,k0a:10,E0a:11,D0a:12,v0a:22,A0a:13,z0a:20,s0a:14,u0a:15,t0a:16,j0a:17,i0a:19,p0a:18,h0a:23,C0a:25};var pNa={K$a:0,E$a:1,F$a:14,H$a:15,J$a:20,I$a:21,s$a:2,A$a:3,x$a:4,y$a:5,p$a:6,B$a:7,w$a:8,t$a:9,r$a:10,D$a:11,z$a:12,C$a:13,q$a:16,G$a:17,v$a:18,u$a:19};var Ulb={W$a:0,V$a:1,O$a:2,P$a:3,T$a:4,S$a:5,U$a:6,Q$a:7,R$a:8};var qNa={ggb:0,dgb:1,fgb:2,egb:3,Xfb:4,bgb:5,agb:6,Zfb:8,Yfb:9,cgb:7};var IO={Hhb:0,hgb:1,Rgb:2,Bhb:3,whb:4,qgb:5,dhb:6,Ggb:7,khb:8,Zgb:9,uhb:10,yhb:11,mhb:12,sgb:13,ahb:14,Egb:15,ogb:16,Xgb:17,lhb:18,xhb:19,Bgb:20,Jgb:21,Fhb:22,Ehb:57,Igb:23,Agb:24,pgb:25,Ghb:26,Vgb:27,zhb:28,Ahb:29,fhb:30,Dhb:31,Dgb:32,nhb:33,Ngb:34,Pgb:35,Ygb:36,Wgb:37,phb:38,bhb:39,Ihb:40,Kgb:41,Lgb:42,Mgb:43,mgb:44,lgb:45,kgb:46,igb:58,jgb:59,shb:47,thb:48,ghb:67,hhb:68,Fgb:49,ohb:50,rhb:51,qhb:52,Tgb:53,ygb:54,Chb:55,Ogb:56,ihb:60,Sgb:61,Hgb:62,vhb:63,Cgb:64,Ugb:69,tgb:65,ngb:66,xgb:70,wgb:71,
  8711. ehb:74,zgb:72,jhb:73,vgb:75,ugb:76,Qgb:77};g.y(Vma,T);g.y(Wma,T);g.y(ky,T);ky.prototype.Jg=function(){return Rk(this,1)};g.y(Xma,T);g.y(Yma,T);g.y(Zma,T);var sNa=[1,2];g.y(ly,T);ly.prototype.getType=function(){return Sk(this,1)};
  8712. var rNa=[3,4];g.y(my,T);g.k=my.prototype;g.k.pw=function(){return Rk(this,1)};
  8713. g.k.P6=function(a,b){return Kk(this,2,ly,a,b)};
  8714. g.k.Q6=function(a,b){return Kk(this,3,ly,a,b)};
  8715. g.k.O6=function(a,b){return Kk(this,4,ly,a,b)};
  8716. g.k.S6=function(a,b){return Kk(this,5,ly,a,b)};
  8717. g.k.R6=function(a,b){return Kk(this,6,ly,a,b)};
  8718. my.wb=[2,3,4,5,6];g.y(ny,T);ny.prototype.getType=function(){return Sk(this,2)};
  8719. ny.prototype.j=function(a,b){return gk(this,5,Ei,a,b)};
  8720. ny.wb=[5];g.y(oy,T);oy.prototype.B=function(a,b){return gk(this,2,Ei,a,b)};
  8721. oy.prototype.j=function(a,b){return Kk(this,4,ly,a,b)};
  8722. oy.prototype.D=function(a,b){return Kk(this,5,ly,a,b)};
  8723. oy.prototype.C=function(a,b){return Kk(this,6,ly,a,b)};
  8724. oy.wb=[2,4,5,6];g.y(py,T);py.prototype.getType=function(){return Sk(this,2)};g.y(qy,T);qy.prototype.j=function(a,b){return Kk(this,1,py,a,b)};
  8725. qy.wb=[1];g.y($ma,T);g.y(ry,T);ry.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8726. ry.wb=[1];g.y(sy,T);sy.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8727. sy.prototype.B=function(a,b){return gk(this,2,Ei,a,b)};
  8728. sy.wb=[1,2];g.y(ty,T);ty.prototype.j=function(a,b){return Kk(this,2,ry,a,b)};
  8729. ty.wb=[2];g.y(uy,T);g.y(ana,T);g.y(vy,T);vy.prototype.Jg=function(){return Rk(this,1)};
  8730. vy.prototype.j=function(a,b){return Kk(this,3,ana,a,b)};
  8731. vy.wb=[3];g.y(wy,T);wy.prototype.Yg=function(){return Sk(this,1)};g.y(yy,T);yy.prototype.qf=function(){return Sk(this,2)};g.y(bna,T);g.y(cna,T);g.y(zy,T);zy.prototype.getType=function(){return Sk(this,1)};
  8732. zy.prototype.Jg=function(){return Rk(this,8)};g.y(Ay,T);Ay.prototype.Jg=function(){return Rk(this,1)};g.y(By,T);By.prototype.Jg=function(){return Rk(this,1)};g.y(Cy,T);Cy.prototype.Jg=function(){return Rk(this,1)};g.y(Dy,T);Dy.prototype.Jg=function(){return Rk(this,2)};
  8733. Dy.prototype.dJ=function(){return Rk(this,4)};g.y(Ey,T);Ey.prototype.Jg=function(){return Rk(this,1)};g.y(Fy,T);Fy.prototype.Jg=function(){return Rk(this,1)};g.y(Gy,T);g.y(dna,T);g.y(ena,T);g.y(Hy,T);Hy.prototype.Jg=function(){return Rk(this,2)};g.y(fna,T);g.y(gna,T);g.y(hna,T);var y2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.y(Iy,T);g.y(ina,T);g.y(jna,T);g.y(kna,T);g.y(Jy,T);Jy.prototype.getState=function(){return Sk(this,1)};
  8734. Jy.prototype.Gc=function(a){return S(this,1,a)};g.y(lna,T);g.y(Ky,T);Ky.prototype.j=function(a,b){return Kk(this,1,lna,a,b)};
  8735. Ky.wb=[1];g.y(Ly,T);Ly.prototype.j=function(a,b){return Kk(this,2,Ky,a,b)};
  8736. Ly.prototype.B=function(a,b){return Kk(this,3,kna,a,b)};
  8737. Ly.wb=[2,3];g.y(My,T);My.prototype.B=function(a,b){return Kk(this,1,Ly,a,b)};
  8738. My.prototype.j=function(a,b){return Kk(this,2,jna,a,b)};
  8739. My.wb=[1,2];g.y(mna,T);g.y(Ny,T);g.y(nna,T);g.y(Oy,T);Oy.prototype.im=function(){return vea(this,4)};g.y(Py,T);Py.prototype.getStatus=function(){return Ok(this,2)};g.y(ona,T);g.y(Qy,T);Qy.prototype.setConfig=function(a){return Hk(this,ona,2,a)};g.y(pna,T);g.y(Ry,T);Ry.prototype.getValue=function(){return Rk(this,2)};g.y(qna,T);g.y(rna,T);g.y(sna,T);g.y(Sy,T);Sy.prototype.j=function(a,b){return Kk(this,3,sna,a,b)};
  8740. Sy.wb=[3];g.y(tna,T);g.y(Ty,T);g.y(Uy,T);g.y(Vy,T);g.k=Vy.prototype;g.k.getSettings=function(){return g.Gk(this,Uy,1)};
  8741. g.k.ph=function(a){return Hk(this,Uy,1,a)};
  8742. g.k.getState=function(){return Sk(this,2)};
  8743. g.k.Gc=function(a){return S(this,2,a)};
  8744. g.k.im=function(){return Qk(this,3)};g.y(una,T);g.y(Wy,T);Wy.prototype.im=function(){return Qk(this,4)};g.y(vna,T);g.y(Xy,T);g.k=Xy.prototype;g.k.getType=function(){return Sk(this,1)};
  8745. g.k.K6=function(a,b){return Kk(this,2,vna,a,b)};
  8746. g.k.im=function(){return Qk(this,6)};
  8747. g.k.getPlaybackRate=function(){return wea(this,7)};
  8748. g.k.setPlaybackRate=function(a){return Yk(this,7,a)};
  8749. g.k.setEnabled=function(a){return Tk(this,8,a)};
  8750. Xy.wb=[2];g.y(Yy,T);Yy.prototype.im=function(){return Qk(this,3)};g.y(Zy,T);Zy.prototype.j=function(a,b){return Kk(this,1,Xy,a,b)};
  8751. Zy.prototype.B=function(a,b){return Kk(this,2,Yy,a,b)};
  8752. Zy.wb=[1,2];g.y($y,T);$y.prototype.getState=function(){return Sk(this,1)};
  8753. $y.prototype.Gc=function(a){return S(this,1,a)};g.y(g.az,T);g.y(g.bz,T);g.k=g.bz.prototype;g.k.Rx=function(a){return S(this,1,a)};
  8754. g.k.H6=function(a,b){return Kk(this,4,Zy,a,b)};
  8755. g.k.setComposition=function(a,b){tea(this,4,Zy,b,a,!1,1);return this};
  8756. g.k.getDeviceInfo=function(){return g.Gk(this,Ty,8)};
  8757. g.k.zw=da(0);g.k.kc=function(){return g.Gk(this,tna,12)};
  8758. g.bz.wb=[4];g.y(cz,T);cz.prototype.Df=function(){return Sk(this,4)};g.y(dz,T);dz.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8759. dz.prototype.yg=function(a,b){qea(this,1,Ei,a,b,yea)};
  8760. dz.wb=[1];g.y(ez,T);g.k=ez.prototype;g.k.qe=function(){return Rk(this,1)};
  8761. g.k.setVideoId=function(a){return Q(this,1,a)};
  8762. g.k.getPlaylistId=function(){return Rk(this,2)};
  8763. g.k.getPlaylistIndex=function(){return Pk(this,3)};
  8764. g.k.getPlayerType=function(){return Sk(this,5)};g.y(wna,T);g.y(fz,T);fz.prototype.j=function(a,b){return Kk(this,4,Ry,a,b)};
  8765. fz.prototype.B=function(a,b){return gk(this,5,Pda,a,b)};
  8766. fz.wb=[4,5];g.y(gz,T);g.y(hz,T);g.y(xna,T);g.y(iz,T);iz.prototype.Df=function(){return Rk(this,2)};g.y(jz,T);jz.prototype.j=function(a,b){return Kk(this,1,iz,a,b)};
  8767. jz.wb=[1];g.y(kz,T);kz.prototype.Df=function(){return Rk(this,2)};g.y(lz,T);lz.prototype.j=function(a,b){return Kk(this,1,kz,a,b)};
  8768. lz.wb=[1];g.y(yna,T);var JMa=[1,2,3];g.y(mz,T);mz.prototype.j=function(a,b){return Kk(this,1,yna,a,b)};
  8769. mz.wb=[1];g.y(nz,T);var LE=[2,3,4,5];g.y(oz,T);oz.prototype.getMessage=function(){return Rk(this,1)};g.y(pz,T);g.y(qz,T);g.y(zna,T);g.y(rz,T);rz.prototype.Oi=function(a,b){return Kk(this,5,zna,a,b)};
  8770. rz.wb=[5];g.y(Ana,T);g.y(sz,T);sz.prototype.j=function(a,b){return Kk(this,3,Ana,a,b)};
  8771. sz.prototype.B=function(a,b){return gk(this,4,Ei,a,b)};
  8772. sz.wb=[3,4];g.y(Bna,T);g.y(Cna,T);g.y(tz,T);tz.prototype.B=function(a,b){return Kk(this,19,Mma,a,b)};
  8773. tz.prototype.j=function(a,b){return Kk(this,20,Lma,a,b)};
  8774. tz.wb=[19,20];g.y(uz,T);g.y(Dna,T);g.y(vz,T);vz.prototype.j=function(a,b){return Kk(this,2,uz,a,b)};
  8775. vz.prototype.setConfig=function(a){return Hk(this,Dna,3,a)};
  8776. vz.prototype.C=function(a,b){return Kk(this,5,uz,a,b)};
  8777. vz.prototype.B=function(a,b){return Kk(this,9,Qma,a,b)};
  8778. vz.wb=[2,5,9];g.y(wz,T);wz.prototype.im=function(){return vea(this,2)};g.y(xz,T);xz.prototype.j=function(a,b){return Kk(this,9,wz,a,b)};
  8779. xz.wb=[9];g.y(Ena,T);g.y(Fna,T);g.y(Gna,T);g.y(Hna,T);g.y(yz,T);yz.prototype.getType=function(){return Sk(this,2)};
  8780. yz.prototype.j=function(a,b){return Kk(this,3,Hna,a,b)};
  8781. yz.wb=[3];g.y(zz,T);zz.prototype.j=function(a,b){return Kk(this,10,mna,a,b)};
  8782. zz.prototype.B=function(a,b){return Kk(this,17,xz,a,b)};
  8783. zz.wb=[10,17];g.y(Ina,T);var wMa={Gpa:0,Fpa:1,Cpa:2,Dpa:3,Epa:4};var Vlb={Pqa:0,Lqa:1,Nqa:2,Mqa:3,Oqa:4};var Wlb={cra:0,Yqa:1,Xqa:2,Zqa:3,Wqa:4,Uqa:5,Vqa:6,ara:7,Tqa:8,Rqa:9,Qqa:10,Sqa:11};g.y(Az,T);g.k=Az.prototype;g.k.Df=function(){return Rk(this,2)};
  8784. g.k.Jg=function(){return Rk(this,3)};
  8785. g.k.J6=function(a,b){return gk(this,10,Ei,a,b)};
  8786. g.k.dJ=function(){return Rk(this,7)};
  8787. g.k.im=function(){return Ok(this,11)};
  8788. Az.wb=[10];var NLa={hra:0,gra:1,jra:2,ira:3};var MLa={tra:0,sra:1,lra:2,mra:3,nra:4,ora:5,qra:6,rra:7,kra:8,pra:9};var bMa={dza:0,eza:3,fza:1,cza:2};var ILa={uAa:0,nza:1,wza:2,yza:3,Cza:4,Dza:5,Iza:6,Jza:7,Kza:8,Lza:9,Mza:10,Pza:11,Qza:12,Rza:13,Sza:14,Tza:15,Zza:16,dAa:17,eAa:18,hAa:19,jAa:20,lAa:21,mAa:22,oAa:23,qAa:24,vAa:25,wAa:26,bAa:27,rAa:28,cAa:29,Oza:30,Fza:31,Nza:32,AAa:33,CAa:34,mza:35,tza:36,sAa:37,tAa:38,xza:39,Vza:40,Wza:51,sza:41,oza:42,Aza:43,Xza:44,uza:45,aAa:46,kAa:47,rza:48,gAa:49,Yza:50,vza:52,Bza:53,Eza:54,nAa:55,pAa:56,yAa:57,xAa:58,iAa:59,pza:60,Gza:61,qza:62,zAa:63,BAa:64,fAa:65,Hza:66,Uza:67};var LLa={pEa:0,eBa:1,UCa:2,mEa:3,JEa:4,NCa:5,VCa:6,oBa:7,rBa:8,qBa:9,jDa:10,MCa:11,LCa:12,tDa:13,IDa:14,nEa:15,DEa:16,nBa:17,MAa:18,cCa:19,CBa:20,SCa:21,ZCa:22,oEa:23,OAa:24,RAa:25,oDa:26,KBa:116,fCa:27,gCa:28,iDa:29,hBa:30,YBa:31,RCa:32,hDa:33,KAa:34,LAa:35,IAa:36,JAa:37,WCa:38,XCa:39,wDa:40,mBa:41,HEa:42,mDa:43,gDa:44,kDa:45,OCa:46,lDa:47,TBa:48,xBa:49,wBa:160,LEa:50,eCa:51,dCa:52,zBa:53,ABa:54,jEa:55,iEa:56,hEa:57,kEa:58,HBa:59,UBa:60,CEa:61,sDa:62,nDa:63,qDa:64,YCa:65,aCa:69,bCa:121,KEa:70,XBa:71,
  8789. dEa:72,eEa:73,uDa:74,vDa:75,WBa:76,VBa:77,fDa:78,eDa:80,FAa:81,WAa:115,UAa:120,VAa:122,dBa:123,iCa:124,hCa:125,TAa:126,MDa:127,KDa:128,LDa:129,IEa:130,HAa:131,SAa:132,PAa:133,ZBa:152,SBa:178,BBa:179,pDa:181,RBa:193,lBa:198,FEa:212,ZAa:213,iBa:217,BDa:218,lCa:82,nCa:83,DCa:84,oCa:85,JCa:86,mCa:87,qCa:88,xCa:89,ACa:90,FCa:91,CCa:92,ECa:93,kCa:94,rCa:95,BCa:96,tCa:97,sCa:98,jCa:99,pCa:100,GCa:101,yCa:102,KCa:103,HCa:104,vCa:105,ICa:106,zCa:107,wCa:118,uCa:214,rEa:108,vEa:109,uEa:110,tEa:111,wEa:112,
  8790. sEa:113,qEa:114,GAa:134,QAa:138,XAa:139,YAa:140,cBa:141,jBa:142,pBa:144,sBa:165,kBa:143,yBa:135,EBa:145,FBa:146,TCa:147,yEa:148,AEa:149,EEa:150,gEa:153,DAa:154,zEa:155,GEa:156,NAa:157,DBa:158,NDa:159,MBa:161,EAa:162,JDa:163,lEa:164,LBa:166,GBa:167,dDa:168,JBa:169,IBa:170,cDa:171,rDa:172,OBa:173,NBa:210,bBa:174,PBa:175,CDa:176,QBa:177,fBa:182,cEa:183,bEa:184,QCa:136,PCa:137,fEa:151,uBa:180,vBa:190,tBa:192,yDa:185,ADa:186,zDa:187,xDa:191,aBa:188,xEa:189,aDa:194,bDa:199,XDa:66,SDa:67,TDa:117,YDa:68,
  8791. aEa:197,UDa:195,ZDa:196,ODa:201,VDa:202,PDa:203,HDa:204,GDa:205,FDa:206,QDa:207,RDa:208,WDa:209,gBa:200,BEa:211,EDa:215,DDa:216};var Xlb={yua:0,xua:1,vua:2,wua:3};var kOa={t8a:0,d9a:1,l9a:2,O8a:3,P8a:4,Q8a:5,n9a:39,o9a:6,j9a:7,c9a:50,m9a:69,e9a:70,f9a:71,Y8a:74,R8a:32,S8a:44,T8a:33,k9a:8,U8a:9,V8a:10,X8a:11,W8a:12,Z8a:73,a9a:77,b9a:78,i9a:84,g9a:87,h9a:88,u8a:56,v8a:57,w8a:58,x8a:59,y8a:60,z8a:61,P9a:13,Q9a:14,R9a:15,Z9a:16,U9a:17,b$a:18,a$a:19,W9a:20,X9a:21,S9a:34,Y9a:35,V9a:36,T9a:49,D8a:37,E8a:38,G8a:40,I8a:41,H8a:42,J8a:43,K8a:51,F8a:52,C8a:67,A8a:22,B8a:23,s9a:24,y9a:25,z9a:62,x9a:26,v9a:27,r9a:48,p9a:53,q9a:63,A9a:66,u9a:54,w9a:68,B9a:72,t9a:76,M8a:64,
  8792. L8a:65,C9a:28,F9a:29,E9a:30,D9a:31,M9a:45,O9a:46,N9a:47,L9a:83,J9a:55,H9a:79,G9a:80,I9a:81,K9a:82,N8a:86};var hOa={d$a:0,e$a:1,c$a:2};var mOa={h$a:0,g$a:1,f$a:2};var lOa={o$a:0,m$a:1,k$a:2,n$a:3,i$a:4,j$a:5,l$a:6};var RNa={Hdb:0,Gdb:1,Fdb:2};var QNa={Ldb:0,Jdb:1,Idb:2,Kdb:3};g.y(Jna,T);g.y(Kna,T);g.y(Lna,T);g.y(Mna,T);g.y(Nna,T);g.y(Bz,T);Bz.prototype.hasFeature=function(){return null!=Fi(Qj(this,2))};g.y(Ona,T);g.y(Pna,T);g.y(Qna,T);g.y(Cz,T);Cz.prototype.getName=function(){return Sk(this,1)};
  8793. Cz.prototype.getStatus=function(){return Sk(this,2)};
  8794. Cz.prototype.getState=function(){return Sk(this,3)};
  8795. Cz.prototype.Gc=function(a){return S(this,3,a)};g.y(Dz,T);Dz.prototype.j=function(a,b){return Kk(this,2,Cz,a,b)};
  8796. Dz.wb=[2];g.y(Rna,T);g.y(Ez,T);Ez.prototype.j=function(a,b){return Kk(this,1,Dz,a,b)};
  8797. Ez.prototype.B=function(a,b){return Kk(this,2,Dz,a,b)};
  8798. Ez.wb=[1,2];var gOa={cMa:0,aMa:1,bMa:2};var ONa={BSa:0,vSa:1,ySa:2,CSa:3,wSa:4,xSa:5,zSa:6,ASa:7};var PNa={FSa:0,ESa:1,DSa:2};var NNa={QWa:0,RWa:1,PWa:2};var MNa={hXa:0,UWa:1,dXa:2,iXa:3,fXa:4,XWa:5,TWa:6,VWa:7,WWa:8,gXa:9,eXa:10,YWa:11,bXa:12,cXa:13,aXa:14,ZWa:15,SWa:16};var JNa={ocb:0,kcb:1,ncb:2,mcb:3,lcb:4};var INa={scb:0,qcb:1,rcb:2,pcb:3};var KNa={zcb:0,vcb:1,xcb:2,tcb:3,ycb:4,ucb:5,wcb:6};var HNa={Icb:0,Kcb:1,Jcb:2,Dcb:3,Bcb:4,Ccb:5,Ncb:6,Ecb:7,Ocb:8,Gcb:9,Hcb:10,Acb:11,Fcb:12,Mcb:13,Lcb:14};var LNa={Rcb:0,Qcb:1,Pcb:2};var VNa={Xhb:0,Vhb:1,Uhb:2,Phb:3,Rhb:4,Shb:5,Ohb:6,Qhb:7,Whb:8,Zhb:9,Thb:10,Mhb:11,Nhb:12,Yhb:13};var UNa={bib:0,aib:1};var dOa={eib:0,fib:1,cib:2,dib:3};var bOa={Bib:0,gib:1,Aib:2,zib:3,Fib:4,Eib:5,yib:19,kib:6,mib:7,uib:8,lib:24,xib:25,vib:20,oib:21,iib:22,wib:23,hib:9,jib:10,nib:11,pib:12,qib:13,rib:14,tib:15,sib:16,Cib:17,Dib:18};var WNa={Jib:0,Iib:1,Kib:2,Gib:3,Hib:4};var SNa={Zib:0,Sib:1,Nib:2,Wib:3,Rib:4,Yib:5,Mib:6,Oib:7,Tib:8,Pib:9,Uib:10,Vib:11,Qib:12,Xib:13};var YNa={gjb:0,ejb:1,cjb:2,djb:3,fjb:4};var XNa={kjb:0,hjb:1,ijb:2,jjb:3};var TNa={ojb:0,njb:1,mjb:2};var cOa={rjb:0,pjb:1,qjb:2};var eOa={Mjb:0,Ljb:1,Kjb:2,Ijb:3,Jjb:4};var fOa={Qjb:0,Ojb:1,Njb:2,Pjb:3};var Ylb={Sua:0,Pua:1,Qua:2,Nua:3,Rua:4,Oua:5};var FLa={Zfa:0,Xfa:1,Yfa:2};var eKa={t6:0,yJa:1,kHa:2,lHa:3,dMa:4,xXa:5,Xpa:6};var FO={yxa:0,fxa:101,lxa:102,axa:103,dxa:104,ixa:105,jxa:106,mxa:107,nxa:108,pxa:109,qxa:110,xxa:111,kxa:112,gxa:113,oxa:114,sxa:115,zxa:116,cxa:117,hxa:118,Axa:119,txa:120,uxa:121,exa:122,bxa:123,rxa:124,wxa:125,vxa:126};var HMa={Jxa:0,Gxa:1,Hxa:2,Exa:3,Fxa:4,Dxa:5,Ixa:6};var Zlb={Aya:0,zya:1,xya:2,yya:3};var $lb={Lya:0,Jya:1,Cya:2,Iya:3,Bya:4,Fya:5,Hya:6,Kya:7,Gya:8,Eya:9,Dya:10};var amb={Nya:0,Oya:1,Mya:2};g.y(Sna,T);g.y(Tna,T);g.y(Fz,T);Fz.prototype.getState=function(){return Ok(this,1)};
  8799. Fz.prototype.Gc=function(a){return Uk(this,1,a)};g.y(Una,T);g.y(Vna,T);g.y(Wna,T);g.y(Xna,T);g.y(Gz,T);Gz.prototype.qe=function(){return Rk(this,1)};
  8800. Gz.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(Hz,T);Hz.prototype.setTrackingParams=function(a){return $k(this,1,a)};g.y(Iz,T);Iz.prototype.hasVe=function(){return Uj(this,Hz,2)};g.y(Jz,T);Jz.prototype.hasFeature=function(){return null!=Fi(Qj(this,1))};g.y(Yna,T);g.y(Zna,T);g.y(Kz,T);Kz.prototype.Df=function(){return Sk(this,2)};
  8801. var bmb=[1];g.y($na,T);g.y(aoa,T);g.y(boa,T);g.y(coa,T);g.y(Lz,T);Lz.prototype.getVideoAspectRatio=function(){return wea(this,2)};g.y(doa,T);g.y(eoa,T);g.y(foa,T);g.y(goa,T);g.y(hoa,T);g.y(ioa,T);g.y(joa,T);g.y(koa,T);g.y(loa,T);g.y(Mz,T);Mz.prototype.getId=function(){return Rk(this,1)};g.y(moa,T);g.y(Nz,T);g.y(Oz,T);Oz.prototype.j=function(a,b){return Kk(this,5,Nz,a,b)};
  8802. Oz.wb=[5];g.y(noa,T);g.y(ooa,T);g.y(Pz,T);Pz.prototype.j=function(a,b){return Kk(this,27,ooa,a,b)};
  8803. Pz.wb=[27];g.y(poa,T);g.y(qoa,T);g.y(roa,T);g.y(soa,T);var z2=[1,2,3,4];g.y(toa,T);g.y(uoa,T);g.y(voa,T);g.y(woa,T);g.y(Qz,T);Qz.prototype.im=function(){return Qk(this,2)};g.y(xoa,T);g.y(yoa,T);g.y(zoa,T);g.y(Rz,T);g.y(Aoa,T);g.y(Boa,T);g.y(Sz,T);Sz.prototype.j=function(a,b){return gk(this,1,Ei,a,b)};
  8804. Sz.wb=[1];g.y(Tz,T);Tz.prototype.Df=function(){return Sk(this,3)};g.y(Coa,T);g.y(Doa,T);g.y(Uz,T);g.y(Vz,T);g.y(Eoa,T);g.y(Wz,T);Wz.prototype.j=function(a,b){return Kk(this,2,Vz,a,b)};
  8805. Wz.prototype.B=function(a,b){return Kk(this,3,Vz,a,b)};
  8806. Wz.wb=[2,3];g.y(Foa,T);g.y(Xz,T);g.y(Goa,T);g.y(Yz,T);Yz.prototype.qe=function(){return g.Gk(this,Xz,Ek(this,A2,2))};
  8807. Yz.prototype.setVideoId=function(a){return Ik(this,Xz,2,A2,a)};
  8808. Yz.prototype.getPlaylistId=function(){return g.Gk(this,Uz,Ek(this,A2,4))};
  8809. Yz.prototype.getChannelId=function(){return g.Gk(this,Doa,Ek(this,A2,10))};
  8810. var A2=[2,3,4,5,9,10];g.y(Zz,T);Zz.prototype.getType=function(){return Sk(this,1)};
  8811. Zz.prototype.qe=function(){return Rk(this,3)};
  8812. Zz.prototype.setVideoId=function(a){return Q(this,3,a)};g.y(Hoa,T);g.y(Ioa,T);g.y($z,T);var FNa=[3];g.y(Joa,T);g.y(Koa,T);g.y(aA,T);aA.prototype.qf=function(){return Rk(this,2)};g.y(Loa,T);g.y(Moa,T);var cmb=[1];g.y(Noa,T);g.y(Ooa,T);g.y(Poa,T);g.y(Qoa,T);g.y(Roa,T);g.y(Soa,T);g.y(Toa,T);g.y(Uoa,T);g.y(bA,T);bA.prototype.getStarted=function(){var a=void 0===a?!1:a;var b=Mda(Qj(this,1));return Mk(b,a)};g.y(Voa,T);g.y(Woa,T);g.y(cA,T);cA.prototype.getDuration=function(){return Ok(this,2)};
  8813. cA.prototype.vl=function(a){Uk(this,2,a)};g.y(Xoa,T);g.y(dA,T);g.y(eA,T);g.y(Yoa,T);g.y(Zoa,T);g.y(fA,T);fA.prototype.Yd=function(){return g.Gk(this,Yoa,8)};
  8814. fA.prototype.v9=function(){return Uj(this,Yoa,8)};
  8815. fA.prototype.getVideoData=function(){return g.Gk(this,Zoa,15)};
  8816. fA.prototype.QG=function(a){Hk(this,Zoa,15,a)};
  8817. fA.wb=[4];g.y($oa,T);g.y(gA,T);gA.prototype.j=function(a){return Q(this,2,a)};g.y(hA,T);hA.prototype.j=function(a){return Q(this,1,a)};
  8818. hA.wb=[3];g.y(iA,T);iA.prototype.j=function(a){return Q(this,1,a)};
  8819. iA.prototype.hasVe=function(){return Uj(this,Hz,2)};g.y(jA,T);jA.prototype.j=function(a){return Q(this,1,a)};
  8820. jA.prototype.hasVe=function(){return Uj(this,Hz,2)};g.y(kA,T);kA.prototype.j=function(a){return Q(this,1,a)};
  8821. kA.prototype.hasVe=function(){return Uj(this,Hz,2)};g.y(lA,T);lA.prototype.j=function(a){return Q(this,1,a)};
  8822. lA.prototype.hasVe=function(){return Uj(this,Hz,2)};g.y(dpa,T);g.y(mA,T);mA.prototype.getId=function(){return Rk(this,2)};g.y(pA,T);pA.prototype.getVisibilityState=function(){return Sk(this,5)};
  8823. pA.wb=[16];g.y(epa,T);g.y(qA,T);qA.prototype.getPlayerType=function(){return Sk(this,7)};
  8824. qA.prototype.qe=function(){return Rk(this,19)};
  8825. qA.prototype.setVideoId=function(a){return Q(this,19,a)};
  8826. qA.wb=[112,83,118,68];g.y(fpa,T);g.y(gpa,T);g.y(sA,T);sA.prototype.qe=function(){return Rk(this,1)};
  8827. sA.prototype.setVideoId=function(a){return Q(this,1,a)};
  8828. sA.prototype.j=function(a,b){return Kk(this,9,gpa,a,b)};
  8829. sA.wb=[9];g.y(tA,T);tA.prototype.j=function(a,b){return Kk(this,3,sA,a,b)};
  8830. tA.wb=[3];g.y(uA,T);uA.prototype.qe=function(){return Rk(this,1)};
  8831. uA.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(hpa,T);g.y(vA,T);vA.prototype.j=function(a,b){return Kk(this,1,uA,a,b)};
  8832. vA.prototype.B=function(a,b){return Kk(this,2,hpa,a,b)};
  8833. vA.wb=[1,2];g.y(ipa,T);g.y(jpa,T);g.y(kpa,T);g.y(wA,T);wA.prototype.getId=function(){return Rk(this,1)};
  8834. wA.prototype.j=function(a,b){return gk(this,2,hj,a,b)};
  8835. wA.prototype.setVideoIds=function(a,b){return qea(this,2,hj,a,b,xea)};
  8836. wA.wb=[2];g.y(lpa,T);g.y(mpa,T);g.y(npa,T);g.y(xA,T);xA.prototype.j=function(a,b){return gk(this,9,Ei,a,b)};
  8837. xA.wb=[9];g.y(opa,T);g.y(ppa,T);g.y(yA,T);yA.prototype.getId=function(){return Rk(this,1)};
  8838. yA.prototype.j=function(a,b){return Kk(this,14,npa,a,b)};
  8839. yA.prototype.B=function(a,b){return Kk(this,17,opa,a,b)};
  8840. yA.wb=[14,17];g.y(zA,T);zA.prototype.B=function(a,b){return Kk(this,1,yA,a,b)};
  8841. zA.prototype.j=function(a,b){return Kk(this,2,wA,a,b)};
  8842. zA.wb=[1,2];g.y(qpa,T);g.y(AA,T);AA.prototype.getOrigin=function(){return Rk(this,3)};
  8843. AA.prototype.Yg=function(){return Ok(this,6)};g.y(rpa,T);g.y(spa,T);g.y(BA,T);
  8844. var BE=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
  8845. 355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];var dmb={bya:0,Yxa:1,Xxa:2,aya:3,Zxa:4,Vxa:5,Wxa:6};var emb={XFa:0,GFa:1,JFa:2,HFa:3,MFa:4,IFa:5,qFa:6,SFa:7,AFa:8,jFa:9,BFa:10,NFa:11,KFa:12,tFa:13,oFa:14,rFa:15,WFa:16,kFa:17,lFa:18,TFa:19,uFa:20,pFa:21,RFa:22,dGa:23,cGa:24,YFa:25,CFa:26,LFa:27,eGa:28,vFa:29,hFa:30,aGa:31,ZFa:32,zFa:33,iGa:34,yFa:35,OFa:36,hGa:37,DFa:38,QFa:39,xFa:40,wFa:41,nFa:42,FFa:43,gGa:44,VFa:45,UFa:53,bGa:46,EFa:47,iFa:48,mFa:49,fGa:50,PFa:51,sFa:52};var fmb={WGa:0,FGa:1,IGa:2,GGa:3,LGa:4,HGa:5,tGa:6,RGa:7,zGa:8,lGa:9,AGa:10,MGa:11,JGa:12,wGa:13,rGa:14,uGa:15,VGa:16,nGa:17,oGa:18,SGa:19,xGa:20,sGa:21,QGa:22,bHa:23,aHa:24,XGa:25,BGa:26,KGa:27,cHa:28,yGa:29,jGa:30,YGa:31,mGa:32,gHa:33,NGa:34,fHa:35,CGa:36,PGa:37,qGa:38,EGa:39,eHa:40,UGa:41,TGa:49,ZGa:42,DGa:43,kGa:44,pGa:45,dHa:46,OGa:47,vGa:48};var gmb={bJa:0,aJa:1,cJa:2};var XLa={OHa:0,MHa:1,JHa:2,NHa:3,KHa:4,LHa:5};var hmb={bIa:0,ZHa:1,VHa:3,XHa:4,YHa:5,aIa:6,WHa:7};var imb={hIa:0,eIa:1,gIa:2,fIa:3,dIa:4,cIa:5};var jmb={RIa:0,SIa:1,QIa:2,PIa:3,OIa:4};var kmb={VIa:0,TIa:1,UIa:2};var lmb={hJa:0,iJa:1,jJa:2,gJa:3,eJa:4,fJa:5};var Rwa={SJa:0,zJa:1,FJa:2,GJa:4,MJa:8,HJa:16,IJa:32,RJa:64,QJa:128,BJa:256,DJa:512,KJa:1024,CJa:2048,EJa:4096,AJa:8192,JJa:16384,NJa:32768,LJa:65536,OJa:131072,PJa:262144};var GMa={yKa:0,xKa:1,wKa:2,vKa:4};var FMa={DKa:0,AKa:1,BKa:2,EKa:3,CKa:4,zKa:5};var mmb={SEa:0,REa:1,QEa:2};var nmb={JSa:0,ISa:1,HSa:2};var omb={BTa:0,hTa:1,zTa:2,lTa:3,rTa:4,DTa:5,ATa:6,XSa:7,WSa:8,VSa:9,bTa:10,gTa:11,fTa:12,YSa:13,sTa:14,nTa:15,pTa:16,NSa:17,yTa:18,RSa:19,oTa:20,MSa:21,qTa:22,eTa:23,OSa:24,QSa:25,vTa:26,CTa:27,wTa:28,mTa:29,ZSa:30,cTa:31,dTa:32,USa:33,ETa:34,SSa:35,aTa:36,tTa:37,PSa:38,KSa:39,TSa:41,kTa:42,uTa:43,xTa:44,iTa:45,jTa:46,LSa:47};var pmb={ITa:0,HTa:1,GTa:2,FTa:3};var TLa={Nra:0,Mra:1,Lra:2};var PLa={tUa:0,sUa:1,pUa:2,qUa:7,oUa:8,nUa:25,WTa:3,XTa:4,fUa:5,gUa:27,eUa:28,YTa:9,MTa:10,KTa:11,LTa:6,VTa:12,TTa:13,UTa:14,STa:15,aUa:16,bUa:17,ZTa:18,dUa:19,cUa:20,PTa:26,QTa:21,OTa:22,RTa:23,NTa:24,vUa:34,uUa:35,xUa:39,wUa:29,kUa:30,lUa:32,mUa:33,iUa:36,jUa:38,hUa:37,rUa:31};var RLa={EUa:0,AUa:1,CUa:2,DUa:3,yUa:4,BUa:5,zUa:6};var QLa={KUa:0,IUa:1,JUa:2,GUa:3,HUa:4,FUa:5};var sLa={RUa:0,LUa:1,NUa:2,MUa:3,OUa:4,PUa:5,QUa:6,SUa:7};var ULa={sVa:0,mVa:1,rVa:2,oVa:3,pVa:4,nVa:5,qVa:6};var WLa={FVa:0,tVa:1,xVa:2,CVa:3,DVa:4,yVa:5,AVa:6,BVa:7,vVa:8,uVa:9,wVa:10,EVa:11,zVa:12};var VLa={JVa:0,GVa:1,HVa:2,IVa:3};var TMa={tya:0,rya:1,sya:2,oya:3,pya:4,qya:5};var YMa={QZa:0,PZa:1,IZa:2,NZa:3,JZa:4,MZa:5,OZa:6,LZa:7,KZa:8};var sMa={k_a:0,c_a:1,l_a:2,j_a:4,g_a:8,f_a:16,e_a:32,h_a:64,d_a:128,i_a:256};var UMa={E_a:0,y_a:1,D_a:2,v_a:3,n_a:4,t_a:5,o_a:6,p_a:7,r_a:8,w_a:9,A_a:10,z_a:11,B_a:12,q_a:13,s_a:14,u_a:15,x_a:16,m_a:17,C_a:18};var pMa={FZa:0,CZa:1,DZa:2,EZa:3};var vMa={XZa:0,ZZa:1,WZa:2,SZa:3,YZa:4,TZa:5,UZa:6,VZa:7};var yLa={Djb:0,eva:1,tSa:2,CXa:3,EXa:4,FXa:5,zXa:6,beb:7,VXa:8,UXa:9,AXa:10,DXa:11,Ifb:12,lka:13,tka:14,mka:15,h2a:16,xZa:17,WXa:18,ZXa:19,b_a:20,YXa:21,RZa:22,F_a:23,fYa:24,HZa:25,BXa:26,Xdb:27,ccb:28,K5a:29,Ora:30,Onb:31,GZa:32};var xLa={Gjb:0,dga:1,H_a:2,G_a:3,SUCCESS:4,Mdb:5,FAILED:6,y5a:7,UHa:9,fva:10,Ywa:11,CANCELLED:12,J5a:13,dcb:14,icb:15,Yjb:16};var wLa={Wfb:0,Nfb:1,Sfb:2,Rfb:3,Ofb:4,Pfb:5,Jfb:6,Vfb:7,Ufb:8,Mfb:9,Lfb:10,Qfb:11,Tfb:12,Kfb:13};var KLa={W1a:0,J1a:1,O1a:2,M1a:3,V1a:4,N1a:5,R1a:6,Q1a:7,P1a:8,K1a:9,S1a:10,T1a:11,U1a:12,L1a:13};var qmb={g3a:0,f3a:1,e3a:2};var rmb={j3a:0,h3a:1,i3a:2};var ZLa={p5a:0,j5a:1,W4a:2,q5a:3,S4a:4,R4a:5,X4a:6,T4a:7,Q4a:8,f5a:9,a5a:10,e5a:11,g5a:12,V4a:13,U4a:14,P4a:15,m5a:16,l5a:17,k5a:18,n5a:27,Z4a:19,c5a:20,b5a:21,d5a:22,i5a:23,Y4a:24,o5a:25,h5a:26};var YLa={w5a:0,v5a:1,u5a:2,t5a:3,r5a:4,s5a:5};var OLa={R6a:0,P6a:1,Q6a:3,M6a:4,N6a:2,O6a:5};var SLa={W6a:0,S6a:1,T6a:2,V6a:3,U6a:4,X6a:5};var smb={d7a:0,e7a:1};var ANa={k7a:0,i7a:1,j7a:2,l7a:3};var tmb={N$a:0,L$a:1,M$a:2};var umb={kdb:0,gdb:1,hdb:2,idb:3,jdb:4};var uMa={Z$a:0,X$a:1,Y$a:2};var XMa={Sab:0,Pab:1,Qab:2,Rab:3};var kMa={Joa:0,Ioa:1,Goa:2,Hoa:3};var nMa={zpa:0,rpa:1,ypa:2,upa:3,npa:4,opa:5,mpa:6,tpa:7,xpa:8,qpa:9,Apa:10,Bpa:11,ppa:12,wpa:13,spa:14};var NMa={Iqa:0,Cqa:1,Fqa:2,Gqa:3,Eqa:4,Hqa:5,Jqa:6,Dqa:7};var eMa={Gva:0,Fva:1,Hva:2};var BLa={Bjb:0,hua:1,iua:2,gua:3,jua:4};var ALa={Cjb:0,W2a:1,B1a:2};var QMa={cFa:0,YEa:1,UEa:2,bFa:3,WEa:4,ZEa:5,XEa:6,VEa:7,aFa:8};var SMa={ZIa:0,YIa:1,XIa:2};var MMa={sSa:0,rSa:1,qSa:2};var PMa={oXa:0,nXa:1,mXa:2};var LMa={q6a:0,o6a:1,p6a:2};var iMa={Qdb:0,Pdb:1,Odb:2};var vmb={MRa:0,IRa:1,JRa:2,KRa:3,LRa:4,NRa:5};var wmb={f2a:0,c2a:1,a2a:2,X1a:3,b2a:4,d2a:5,Y1a:6,Z1a:7,e2a:8,g2a:9};var xmb={Xua:0,Tua:5,Wua:4,Uua:2,Vua:3};var ymb={jfb:0,Leb:1,nfb:2,ofb:3,lfb:4,kfb:16,mfb:47,Geb:17,Meb:33,Feb:35,xeb:36,Ieb:34,ifb:38,Keb:45,Reb:8,Deb:39,Aeb:40,seb:41,veb:42,zeb:43,reb:46,ueb:44,Jeb:5,Qeb:6,hfb:7,gfb:9,teb:10,ffb:11,yeb:12,efb:13,Eeb:14,Peb:15,Oeb:18,Neb:19,Ceb:20,Heb:21,Beb:22,bfb:23,dfb:24,Ueb:25,cfb:26,Seb:27,Xeb:28,Teb:29,Web:30,Yeb:31,Veb:32,Zeb:37,afb:48};var zmb={rfb:0,qfb:1,sfb:2};var zNa={Jnb:0,unb:1,Bnb:2,Anb:3,tnb:4,Knb:5,Hnb:6,vnb:7,wnb:8,znb:9,ynb:12,qnb:10,Inb:11,Dnb:13,Enb:14,Lnb:15,Cnb:16,Fnb:17,rnb:18,Gnb:19,snb:20,Mnb:21,xnb:22};var tNa={WJa:0,UJa:1,VJa:2,TJa:3};g.y(tpa,T);g.y(CA,T);CA.prototype.qe=function(){return Nk(this,Ek(this,sE,1))};
  8846. CA.prototype.setVideoId=function(a){return ik(this,1,sE,ij(a))};
  8847. CA.prototype.getPlaylistId=function(){return Nk(this,Ek(this,sE,2))};
  8848. var sE=[1,2];g.y(upa,T);upa.wb=[3];var RS=new g.Zw("changeKeyedMarkersVisibilityCommand");var Amb=new g.Zw("changeMarkersVisibilityCommand");var cWa=new g.Zw("loadMarkersCommand");var Bmb=new g.Zw("suggestedActionDataViewModel");var o1a=new g.Zw("productListItemRenderer");var Cmb=new g.Zw("shoppingOverlayRenderer");var xWa=new g.Zw("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Dmb=new g.Zw("adFeedbackEndpoint");var Emb=new g.Zw("menuEndpoint");var E0a=new g.Zw("phoneDialerEndpoint");var C0a=new g.Zw("sendSmsEndpoint");var vWa=new g.Zw("copyTextEndpoint");var Fmb=new g.Zw("webPlayerShareEntityServiceEndpoint");g.yF=new g.Zw("urlEndpoint");g.PS=new g.Zw("watchEndpoint");var Gmb=new g.Zw("watchPlaylistEndpoint");var cNa={Kra:0,Jra:1,Ira:2,Gra:3,Hra:4};var rMa={TXa:0,RXa:1,SXa:2,QXa:3};var Hmb={kYa:0,jYa:1,hYa:2,iYa:3};var Imb={oYa:0,lYa:1,mYa:2,nYa:3,pYa:4};var Jmb={hZa:0,bZa:1,iZa:2,dZa:3,UYa:4,LYa:37,wYa:5,tYa:36,yYa:38,GYa:39,HYa:40,CYa:41,gZa:42,zYa:27,QYa:31,SYa:6,VYa:7,WYa:8,XYa:9,YYa:10,ZYa:11,cZa:29,AYa:30,RYa:32,KYa:12,JYa:13,vYa:14,PYa:15,qYa:16,sYa:35,xYa:43,BYa:28,NYa:17,MYa:18,OYa:19,fZa:20,FYa:25,uYa:33,jZa:21,IYa:22,EYa:26,kZa:46,DYa:34,TYa:44,eZa:45,aZa:23,rYa:24};var aNa={BZa:0,zZa:1,yZa:2,AZa:3};var GO={hcb:0,ecb:1,gcb:2,fcb:3};var zLa={Hfb:0,vfb:1,ufb:2,Afb:3,Gfb:4,wfb:5,Dfb:6,Bfb:7,Cfb:8,xfb:9,Efb:10,yfb:11,Ffb:12,zfb:13};var oMa={a_a:0,gYa:1,XXa:2,dYa:3,eYa:4,aYa:5,bYa:6,cYa:7};var Kmb={Z6a:0,Y6a:1};var Lmb={ndb:0,mdb:1,ldb:2,odb:3};var Mmb={rdb:0,qdb:1,pdb:2};var Nmb={Bdb:0,vdb:1,wdb:2,xdb:5,Adb:7,Cdb:8,ydb:9,zdb:10};var Omb={udb:0,tdb:1,sdb:2};var uYa=new g.Zw("compositeVideoOverlayRenderer");var Pmb=new g.Zw("miniplayerRenderer");var tWa=new g.Zw("paidContentOverlayRenderer");var IVa=new g.Zw("playerMutedAutoplayOverlayRenderer"),JVa=new g.Zw("playerMutedAutoplayEndScreenRenderer");var SUa=new g.Zw("unserializedPlayerResponse"),KVa=new g.Zw("unserializedPlayerResponse");var ZMa={wZa:0,tZa:1,rZa:2,qZa:3,pZa:4,oZa:5,sZa:6,vZa:7,nZa:8,uZa:9,mZa:10,lZa:11};var Qmb=new g.Zw("playlistEditEndpoint");var B2;g.qM=new g.Zw("buttonRenderer");B2=new g.Zw("toggleButtonRenderer");var qMa={Ejb:0,DOa:4,s6a:1,PHa:2,mqa:3,EOa:5,v6a:6,QHa:7,RHa:8,SHa:9,THa:10};var lGa=new g.Zw("counterfactualRenderer");var Rmb=new g.Zw("resolveUrlCommandMetadata");var Smb=new g.Zw("modifyChannelNotificationPreferenceEndpoint");var vAa=new g.Zw("pingingEndpoint");var Tmb=new g.Zw("unsubscribeEndpoint");var gKa={Hjb:0,uWa:1,qWa:2,pWa:3,QVa:71,PVa:4,sWa:5,vWa:6,tWa:16,rWa:69,RVa:70,MVa:56,NVa:64,OVa:65,dWa:7,TVa:8,YVa:9,UVa:10,XVa:11,WVa:12,VVa:13,aWa:43,gWa:44,hWa:45,iWa:46,jWa:47,kWa:48,lWa:49,mWa:50,nWa:51,oWa:52,eWa:53,fWa:54,cWa:63,SVa:14,bWa:15,ZVa:68,Dmb:17,Mmb:18,Plb:19,Cmb:20,nmb:21,Emb:22,Hlb:23,xmb:24,qmb:25,Ulb:26,Flb:27,bmb:28,Amb:29,Clb:30,Blb:31,Dlb:32,Ilb:33,ymb:34,wmb:35,omb:36,tmb:37,Fmb:38,Xlb:39,Lmb:40,dmb:41,Slb:42,Gmb:55,rmb:66,fnb:67,imb:57,zmb:58,Jlb:59,Elb:60,Ylb:61,pmb:62};var Umb={S7a:0,W7a:1,I7a:2,A7a:3,O7a:4,Q7a:5,X7a:6,n7a:7,o7a:8,v7a:9,K7a:10,B7a:11,F7a:12,D7a:13,E7a:14,G7a:15,H7a:19,q7a:16,N7a:17,L7a:18,s7a:20,C7a:21,p7a:22,T7a:23,y7a:24,r7a:25,R7a:26,u7a:27,M7a:28,J7a:29,x7a:30,P7a:31,V7a:32,U7a:33,z7a:34,w7a:35,t7a:36,m7a:37};g.eT=new g.Zw("subscribeButtonRenderer");var Vmb=new g.Zw("subscribeEndpoint");var lMa={eab:0,bab:1,cab:2,dab:3};var hYa=new g.Zw("buttonViewModel");var aOa={o8a:0,p8a:1,n8a:2,j8a:3,m8a:4,k8a:5,i8a:6,l8a:7};var mGa=new g.Zw("qrCodeRenderer");var HLa={Iua:0,Gua:1,Dua:2,Eua:3,Fua:4,Hua:5};var fUa={XRa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",URa:"LIVING_ROOM_APP_MODE_MAIN",TRa:"LIVING_ROOM_APP_MODE_KIDS",VRa:"LIVING_ROOM_APP_MODE_MUSIC",WRa:"LIVING_ROOM_APP_MODE_UNPLUGGED",SRa:"LIVING_ROOM_APP_MODE_GAMING"};var UVa=new g.Zw("autoplaySwitchButtonRenderer");var $Ua,s2a,aVa,D2a;$Ua=new g.Zw("decoratedPlayerBarRenderer");s2a=new g.Zw("chapteredPlayerBarRenderer");aVa=new g.Zw("multiMarkersPlayerBarRenderer");D2a=new g.Zw("chapterRenderer");g.w2a=new g.Zw("markerRenderer");var ZVa=new g.Zw("desktopOverlayConfigRenderer");var XVa=new g.Zw("gatedActionsOverlayViewModel");var A2a=new g.Zw("heatMarkerRenderer");var z2a=new g.Zw("heatmapRenderer");var bWa=new g.Zw("watchToWatchTransitionRenderer");var yWa=new g.Zw("playlistPanelRenderer");var Wmb=new g.Zw("productUpsellSuggestedActionViewModel");var Xmb=new g.Zw("suggestedActionTimeRangeTrigger"),Ymb=new g.Zw("suggestedActionsRenderer"),Zmb=new g.Zw("suggestedActionRenderer");var B2a=new g.Zw("timedMarkerDecorationRenderer");var $mb={enb:0,anb:1,bnb:2,dnb:3,cnb:4,Zmb:5,Ymb:6,Umb:7,Wmb:8,Xmb:9,Vmb:10,Qmb:11,Omb:12,Nmb:13,Tmb:14,Pmb:15,Rmb:16,Smb:17};var zO={t6:0,USER:74,Hpa:459,TRACK:344,Ipa:493,Vpa:419,eLa:494,Fra:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,gnb:248,MONTH:79,QUARTER:246,YEAR:247,IXa:382,HXa:383,GXa:384,Sdb:235,VIDEO:4,jnb:186,rva:126,fdb:127,zva:117,w4a:125,n6a:151,Txa:515,iva:6,vHa:132,AHa:154,yHa:222,zHa:155,wHa:221,xHa:156,edb:209,ddb:210,klb:7,N4a:124,aab:96,tXa:97,wlb:93,oQa:574,xlb:275,zqa:110,yqa:120,d3a:121,oJa:72,clb:351,Y7a:495,alb:377,dlb:378,eFa:496,fFa:497,Z7a:498,Aqa:381,blb:386,ylb:387,lpa:410,cKa:437,kza:338,wqa:380,
  8849. aga:352,G1a:113,H1a:114,meb:82,neb:112,Rxa:354,heb:21,kpa:556,A1a:567,L5a:566,pfb:568,kya:523,mya:375,lya:514,nka:302,Dva:136,pJa:85,Hka:22,mnb:23,qeb:252,peb:253,H0a:562,Cva:563,uqa:254,kka:165,cdb:304,SKa:421,g6a:463,PLAYLIST:63,ilb:27,hlb:28,jlb:29,Ucb:30,Xcb:31,Wcb:324,Ycb:32,Kqa:398,Nnb:613,adb:399,bdb:400,vXa:411,uXa:413,wXa:414,yXa:415,G4a:39,H4a:143,L4a:144,C4a:40,D4a:145,F4a:146,Ukb:504,K4a:325,u2a:262,w2a:263,v2a:264,y2a:355,gKa:615,hKa:616,z6a:617,z2a:249,B2a:250,A2a:251,Mua:46,a7a:49,
  8850. c7a:50,cka:62,geb:561,UUa:105,XKa:242,bcb:397,m3a:83,F1a:135,hpa:87,jpa:153,ipa:187,cpa:89,bpa:88,dpa:139,fpa:91,epa:104,gpa:137,pua:99,Rjb:100,rXa:326,Lxa:148,Kxa:149,Scb:150,Tcb:395,Zpa:166,fqa:199,aqa:534,eqa:167,bqa:168,jqa:169,kqa:170,cqa:171,dqa:172,gqa:179,hqa:180,lqa:512,iqa:513,hkb:200,Sjb:476,ikb:213,Wpa:191,x2a:192,r2a:305,s2a:306,D2a:329,Lab:327,Mab:328,n2a:195,o2a:197,I1a:301,i2a:223,j2a:224,QKa:227,fKa:396,fLa:356,YKa:490,gLa:394,Pra:230,nqa:297,Dkb:298,PKa:342,Uxa:346,MEa:245,oeb:261,
  8851. sJa:265,xJa:266,tJa:267,qJa:268,rJa:269,wJa:270,uJa:271,vJa:272,CRa:303,pQa:391,qQa:503,sQa:277,ORa:499,QRa:500,ARa:501,PRa:611,RRa:612,ERa:278,rQa:489,DRa:598,Tya:332,Vya:333,Rya:334,Uya:335,Sya:336,oua:340,JKa:341,Tkb:349,Skb:420,J4a:281,E4a:282,b7a:286,Vcb:288,I4a:291,M4a:292,mQa:295,Zcb:296,lQa:299,pka:417,jLa:308,nnb:309,onb:310,pnb:311,F2a:590,G2a:591,sla:350,kkb:418,IIa:424,Tjb:425,JXa:429,sXa:430,dLa:426,Xbb:460,qXa:427,O5a:428,P5a:542,M5a:461,Nab:464,aVa:431,XUa:432,YUa:589,fVa:433,WUa:434,
  8852. cVa:435,dVa:436,ZUa:438,eVa:439,gVa:453,bVa:454,VUa:472,Ajb:557,N5a:558,vqa:559,xqa:560,sqa:565,v3a:545,q3a:546,G3a:547,J3a:548,I3a:549,H3a:550,w3a:551,F3a:552,n3a:554,s3a:577,r3a:587,u3a:579,p3a:580,tqa:583,L3a:584,M3a:586,y3a:516,z3a:544,A3a:553,B3a:570,D3a:571,x3a:572,E3a:573,C3a:588,K3a:585,N0a:592,L0a:593,M0a:594,K0a:595,tlb:604,rlb:605,slb:606,vlb:607,qlb:608,Wdb:520,o3a:521,t3a:522,ZKa:543,HRa:618,V2a:440,X2a:441,b3a:442,T2a:448,U2a:449,Y2a:450,c3a:451,a3a:491,POST:445,S2a:446,Z2a:447,P3a:456,
  8853. KXa:483,Gka:569,cva:576,Y3a:529,dva:581,ieb:555,O3a:458,f7a:480,g7a:502,h7a:482,KKa:452,b8a:465,c8a:466,Zwa:467,N3a:468,Wya:469,Cua:470,Bua:471,IKa:475,Sva:477,MKa:478,FHa:479,E2a:484,C2a:485,q2a:486,p2a:487,uka:488,wya:492,Yya:505,jya:506,llb:507,rMa:508,DHa:509,GHa:510,IHa:511,vkb:524,flb:530,x6a:531,Xya:532,g8a:533,w6a:575,NKa:535,iLa:536,TKa:537,bLa:538,OKa:539,WKa:540,RKa:541,uSa:578,gka:582,I2a:596,Bva:597,tQa:599,UQa:600,VQa:601,FRa:602,GRa:603,PODCAST:609,Ava:610,cLa:614};var EQa=new g.Zw("cipher");var TUa=new g.Zw("playerVars");var LVa=new g.Zw("playerVars");var C2=g.Ta.window,anb,bnb,DA=(null==C2?void 0:null==(anb=C2.yt)?void 0:anb.config_)||(null==C2?void 0:null==(bnb=C2.ytcfg)?void 0:bnb.data_)||{};g.Va("yt.config_",DA);var HA=[];var Epa=/^[\w.]*$/,Apa={q:!0,search_query:!0},zpa=String(LA);var Fpa=new function(){var a=window.document;this.j=window;this.B=a};
  8854. g.Va("yt.ads_.signals_.getAdSignalsString",function(a){return MA(UA(a))});g.kb();var Ipa="XMLHttpRequest"in g.Ta?function(){return new XMLHttpRequest}:null;var cnb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.qa(cnb);var Qpa={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
  8855. "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Rpa="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.qa(cnb)),Zpa=!1,Npa=Spa,Wpa=Ppa;g.y(dB,xb);gB.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.C&&a?(a=a.call(c,this.B))&&"function"===typeof a.then?a:iB(a):2===this.C&&b?(a=b.call(c,this.B))&&"function"===typeof a.then?a:hB(a):this};
  8856. gB.prototype.getValue=function(){return this.B};
  8857. gB.prototype.$goog_Thenable=!0;var jB=!1;var UC=sB||tB;var tqa=/^([0-9\.]+):([0-9\.]+)$/;g.y(yqa,xb);yqa.prototype.name="BiscottiError";g.y(GB,xb);GB.prototype.name="BiscottiMissingError";var Aqa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},HB=null;var Gba=pa(["data-"]),Jqa={};var dnb=0,Kqa=g.Qc?"webkit":Js?"moz":g.Ks?"ms":g.AR?"o":"",enb=g.Xa("ytDomDomGetNextId")||function(){return++dnb};
  8858. g.Va("ytDomDomGetNextId",enb);var Pqa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};MB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
  8859. MB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
  8860. MB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var NB=g.Ta.ytEventsEventsListeners||{};g.Va("ytEventsEventsListeners",NB);var Sqa=g.Ta.ytEventsEventsCounter||{count:0};g.Va("ytEventsEventsCounter",Sqa);var Xqa=Id(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
  8861. window.addEventListener("test",null,b)}catch(c){}return a}),Tqa=Id(function(){var a=!1;
  8862. try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
  8863. window.addEventListener("test",null,b)}catch(c){}return a});var D2;D2=window;g.EC=D2.ytcsi&&D2.ytcsi.now?D2.ytcsi.now:D2.performance&&D2.performance.timing&&D2.performance.now&&D2.performance.timing.navigationStart?function(){return D2.performance.timing.navigationStart+D2.performance.now()}:function(){return(new Date).getTime()};g.nb(RB,g.I);RB.prototype.Y=function(a){void 0===a.j&&Qqa(a);var b=a.j;void 0===a.B&&Qqa(a);this.j=new g.Ie(b,a.B)};
  8864. RB.prototype.Gt=function(){return this.j||new g.Ie};
  8865. RB.prototype.qa=function(){if(this.j){var a=(0,g.EC)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
  8866. RB.prototype.va=function(){g.$A(this.Z);g.PB(this.ra)};g.y(SB,g.I);SB.prototype.T=function(a,b,c,d,e){c=g.JA((0,g.gb)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&Xqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
  8867. SB.prototype.Pc=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
  8868. SB.prototype.va=function(){g.UB(this);g.I.prototype.va.call(this)};VB.prototype.clone=function(){var a=new VB,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==$a(c)?g.md(c):c}return a};var ZWa=["att/get"],JZa=["embedded_player"],fnb=["share/get_web_player_share_panel"],gnb=["feedback"],hnb=["notification/modify_channel_preference"],Aeb=["player"],inb=["browse/edit_playlist"],jnb=["subscription/subscribe"],knb=["subscription/unsubscribe"],Eeb=["next","unplugged/watch_next"];var Zqa;g.WB=Id(function(){var a=new fw;return a.isAvailable()?new g.bw(a):null});
  8869. Zqa=Id(function(){var a=new mla;return a.isAvailable()?new g.bw(a):null});aC.prototype.jE=function(a,b){a={};var c=[];"SESSION_ID"in DA&&c.push({key:"u",value:g.FA("SESSION_ID")});if(c=hfa(c))a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.FA("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.aB("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in DA||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in DA&&(a["X-Goog-PageId"]=g.FA("DELEGATED_SESSION_ID"));return a};var hD={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var dC=g.Xa("ytglobal.prefsUserPrefsPrefs_")||{};g.Va("ytglobal.prefsUserPrefsPrefs_",dC);var nra;g.k=mra.prototype;g.k.get=function(a,b){rra(a);qra(a);a=void 0!==dC[a]?dC[a].toString():null;return null!=a?a:b?b:""};
  8870. g.k.set=function(a,b){rra(a);qra(a);if(null==b)throw Error("ExpectedNotNull");dC[a]=b.toString()};
  8871. g.k.remove=function(a){rra(a);qra(a);delete dC[a]};
  8872. g.k.save=function(){var a=!0;g.aB("web_secure_pref_cookie_killswitch")&&(a=!1);g.lB(this.j,this.dump(),63072E3,this.B,a)};
  8873. g.k.clear=function(){g.eba(dC)};
  8874. g.k.dump=function(){var a=[],b;for(b in dC)dC.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(dC[b])));return a.join("&")};
  8875. g.k.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(dC[d]=c.toString())}};var tra={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},bta={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
  8876. CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},cta={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},vra={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.y(g.eC,Error);hC.prototype.Ni=function(a,b){return iC(a,1,b)};
  8877. hC.prototype.Z6=function(a){(a=this.j.get(a))&&a()};g.Xa("yt.scheduler.instance.timerIdMap_");g.y(kC,hC);kC.prototype.Oj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Xa("yt.scheduler.instance.cancelJob");b?b(a):g.ZA(a)}};
  8878. kC.prototype.start=function(){var a=g.Xa("yt.scheduler.instance.start");a&&a()};
  8879. kC.prototype.pause=function(){var a=g.Xa("yt.scheduler.instance.pause");a&&a()};
  8880. g.gv=g.lC();oC.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.mn(b))}catch(f){return}else e=escape(b);g.lB(a,e,c,this.B)};
  8881. oC.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.mB(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
  8882. oC.prototype.remove=function(a){this.j&&this.j.remove(a);g.dqa(a,"/",this.B)};
  8883. oC.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,"number"===typeof a)?a:null};var yra=function(){var a;return function(){a||(a=new oC("ytidb"));return a}}();var rC=[],pC,sC=!1;var E2={},Dra=(E2.AUTH_INVALID="No user identifier specified.",E2.EXPLICIT_ABORT="Transaction was explicitly aborted.",E2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",E2.MISSING_INDEX="Index not created.",E2.MISSING_OBJECT_STORES="Object stores not created.",E2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",E2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",E2.UNKNOWN_ABORT=
  8884. "Transaction was aborted for unknown reasons.",E2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",E2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",E2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",E2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",E2),F2={},Era=(F2.AUTH_INVALID="ERROR",F2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",F2.EXPLICIT_ABORT="IGNORED",
  8885. F2.IDB_NOT_SUPPORTED="ERROR",F2.MISSING_INDEX="WARNING",F2.MISSING_OBJECT_STORES="ERROR",F2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",F2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",F2.QUOTA_EXCEEDED="WARNING",F2.QUOTA_MAYBE_EXCEEDED="WARNING",F2.UNKNOWN_ABORT="WARNING",F2.INCOMPATIBLE_DB_VERSION="WARNING",F2),G2={},Fra=(G2.AUTH_INVALID=!1,G2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,G2.EXPLICIT_ABORT=!1,G2.IDB_NOT_SUPPORTED=!1,G2.MISSING_INDEX=!1,G2.MISSING_OBJECT_STORES=!1,G2.DB_DELETED_BY_MISSING_OBJECT_STORES=
  8886. !1,G2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,G2.QUOTA_EXCEEDED=!1,G2.QUOTA_MAYBE_EXCEEDED=!0,G2.UNKNOWN_ABORT=!0,G2.INCOMPATIBLE_DB_VERSION=!1,G2);g.y(g.xC,g.eC);g.y(Gra,g.xC);g.y(yC,Error);var Hra=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.CC.all=function(a){return new g.CC(new BC(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={fA:0};f.fA<a.length;f={fA:f.fA},++f.fA)g.CC.resolve(a[f.fA]).then(function(h){return function(l){d[h.fA]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
  8887. g.CC.resolve=function(a){return new g.CC(new BC(function(b,c){a instanceof g.CC?a.then(b,c):b(a)}))};
  8888. g.CC.reject=function(a){return new g.CC(new BC(function(b,c){c(a)}))};
  8889. g.CC.prototype.then=function(a,b){var c=this,d=null!=a?a:Kra,e=null!=b?b:Jra;return new g.CC(new BC(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){Mra(c,c,d,f,h)}),c.B.push(function(){Nra(c,c,e,f,h)})):"FULFILLED"===c.state.status?Mra(c,c,d,f,h):"REJECTED"===c.state.status&&Nra(c,c,e,f,h)}))};
  8890. g.CC.prototype.catch=function(a){return this.then(void 0,a)};g.k=Ura.prototype;g.k.add=function(a,b,c){return g.HC(this,[a],{mode:"readwrite",Pb:!0},function(d){return d.objectStore(a).add(b,c)})};
  8891. g.k.clear=function(a){return g.HC(this,[a],{mode:"readwrite",Pb:!0},function(b){return b.objectStore(a).clear()})};
  8892. g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
  8893. g.k.count=function(a,b){return g.HC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).count(b)})};
  8894. g.k.delete=function(a,b){return g.HC(this,[a],{mode:"readwrite",Pb:!0},function(c){return c.objectStore(a).delete(b)})};
  8895. g.k.get=function(a,b){return g.HC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).get(b)})};
  8896. g.k.getAll=function(a,b,c){return g.HC(this,[a],{mode:"readonly",Pb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
  8897. g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
  8898. g.k.getName=function(){return this.j.name};
  8899. g.k=Vra.prototype;g.k.add=function(a,b){return DC(this.j.add(a,b))};
  8900. g.k.autoIncrement=function(){return this.j.autoIncrement};
  8901. g.k.clear=function(){return DC(this.j.clear()).then(function(){})};
  8902. g.k.count=function(a){return DC(this.j.count(a))};
  8903. g.k.delete=function(a){return a instanceof IDBKeyRange?Zra(this,a):DC(this.j.delete(a))};
  8904. g.k.get=function(a){return DC(this.j.get(a))};
  8905. g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?DC(this.j.getAll(a,b)):$ra(this,a,b)};
  8906. g.k.index=function(a){try{return new esa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new yC(a,this.j.name);throw b;}};
  8907. g.k.getName=function(){return this.j.name};
  8908. g.k.keyPath=function(){return this.j.keyPath};
  8909. KC.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.xC("EXPLICIT_ABORT");};
  8910. KC.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new Vra(a),this.C.set(a,b));return b};
  8911. g.k=esa.prototype;g.k.count=function(a){return DC(this.j.count(a))};
  8912. g.k.delete=function(a){return g.OC(this,{query:a},function(b){return b.delete().then(function(){return g.NC(b)})})};
  8913. g.k.get=function(a){return DC(this.j.get(a))};
  8914. g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?DC(this.j.getAll(a,b)):fsa(this,a,b)};
  8915. g.k.keyPath=function(){return this.j.keyPath};
  8916. g.k.unique=function(){return this.j.unique};
  8917. PC.prototype.delete=function(){return DC(this.cursor.delete()).then(function(){})};
  8918. PC.prototype.getValue=function(){return this.cursor.value};
  8919. PC.prototype.update=function(a){return DC(this.cursor.update(a))};RC.prototype.B=function(a,b,c){c=void 0===c?{}:c;return hsa(a,b,c)};
  8920. RC.prototype.delete=function(a){a=void 0===a?{}:a;return QC(this.name,a)};
  8921. RC.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.G(function(w){switch(w.j){case 1:return h=null!=(f=Error().stack)?f:"",g.Ba(w,2),g.z(w,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=w.B,D=c.options,F=[],H=g.u(Object.keys(D.Mr)),L=H.next();!L.done;L=H.next()){L=L.value;var M=D.Mr[L],R=void 0===M.dda?Number.MAX_VALUE:M.dda;!(A.j.version>=M.hn)||A.j.version>=R||A.j.objectStoreNames.contains(L)||F.push(L)}m=F;if(0===m.length){w.Ia(5);break}n=Object.keys(c.options.Mr);
  8922. p=l.objectStoreNames();if(c.G<g.bB("ytidb_reopen_db_retries",0))return c.G++,l.close(),tC(new g.xC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());if(!(c.D<g.bB("ytidb_remake_db_retries",1))){w.Ia(6);break}c.D++;return g.z(w,c.delete(),7);case 7:return tC(new g.xC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());case 6:throw new Gra(p,n);case 5:return w.return(l);case 2:q=
  8923. g.Da(w);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){w.Ia(8);break}return g.z(w,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=w.B;t=r.j.version;if(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,isa(c,t);return w.return(r);case 8:throw b(),
  8924. q instanceof Error&&!g.aB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Ira(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
  8925. function b(){c.j===d&&(c.j=void 0)}
  8926. var c=this;if(!this.C)throw isa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
  8927. closed:b,eea:b,upgrade:this.options.upgrade};return this.j=d=a()};var jsa=new RC("YtIdbMeta",{Mr:{databases:{hn:1}},upgrade:function(a,b){b(1)&&g.FC(a,"databases",{keyPath:"actualName"})}});var psa,nsa=new function(){}(new function(){});new g.Lo;g.y(YC,RC);YC.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?usa:tsa)(a,b,Object.assign({},c))};
  8928. YC.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?ysa:vsa)(this.name,a)};var lnb={},Asa=g.ZC("ytGcfConfig",{Mr:(lnb.coldConfigStore={hn:1},lnb.hotConfigStore={hn:1},lnb),shared:!1,upgrade:function(a,b){b(1)&&(g.LC(g.FC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.LC(g.FC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
  8929. version:1});g.y(Gsa,g.I);Gsa.prototype.va=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.va.call(this)};eD.prototype.Yr=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var mnb="undefined"!==typeof TextEncoder?new TextEncoder:null,wta=mnb?function(a){return mnb.encode(a)}:function(a){a=g.Jg(a);
  8930. for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var Aza={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Dza={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};iD.prototype.Ck=function(){return{version:this.version,args:this.args}};jD.prototype.toString=function(){return this.topic};var nnb=g.Xa("ytPubsub2Pubsub2Instance")||new g.Yv;g.Yv.prototype.subscribe=g.Yv.prototype.subscribe;g.Yv.prototype.unsubscribeByKey=g.Yv.prototype.Nh;g.Yv.prototype.publish=g.Yv.prototype.publish;g.Yv.prototype.clear=g.Yv.prototype.clear;g.Va("ytPubsub2Pubsub2Instance",nnb);var lD=g.Xa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Va("ytPubsub2Pubsub2SubscribedKeys",lD);var mD=g.Xa("ytPubsub2Pubsub2TopicToKeys")||{};g.Va("ytPubsub2Pubsub2TopicToKeys",mD);var fta=g.Xa("ytPubsub2Pubsub2IsAsync")||{};
  8931. g.Va("ytPubsub2Pubsub2IsAsync",fta);g.Va("ytPubsub2Pubsub2SkipSubKey",null);var mta=void 0,kta=void 0;var sta=g.bB("max_body_size_to_compress",5E5),tta=g.bB("min_body_size_to_compress",500),pD=!0,sD=0,rD=0,xta=g.bB("compression_performance_threshold_lr",250),yta=g.bB("slow_compressions_before_abandon_count",4),ota=!1,oD=new Map,vta=1,uta=!0;g.k=uD.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(tD(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Fh.set(d,this.Cf).then(function(e){d.id=e;c.hh.Eh()&&c.PE(d)}).catch(function(e){c.PE(d);
  8932. vD(c,e)})}else this.sendFn(a,b)};
  8933. g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(tD(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.hh.Eh()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
  8934. b.onError=function(h,l){return g.G(function(m){if(1==m.j)return g.z(m,d.Fh.set(e,d.Cf).catch(function(n){vD(d,n)}),2);
  8935. f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Fh.set(e,this.Cf).catch(function(h){d.sendFn(a,b,e.skipRetry);
  8936. vD(d,h)})}else this.sendFn(a,b,this.fb&&this.fb("nwl_skip_retry")&&c)};
  8937. g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(tD(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
  8938. d.options.onSuccess=function(h,l){void 0!==d.id?c.Fh.Dz(d.id,c.Cf):e=!0;c.hh.lx&&c.fb&&c.fb("vss_network_hint")&&c.hh.lx(!0);f(h,l)};
  8939. this.sendFn(d.url,d.options,void 0,!0);this.Fh.set(d,this.Cf).then(function(h){d.id=h;e&&c.Fh.Dz(d.id,c.Cf)}).catch(function(h){vD(c,h)})}else this.sendFn(a,b,void 0,!0)};
  8940. g.k.gC=function(){var a=this;if(!tD(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Vn.Ni(function(){var b;return g.G(function(c){if(1==c.j)return g.z(c,a.Fh.bY("NEW",a.Cf),2);if(3!=c.j)return b=c.B,b?g.z(c,a.PE(b),3):(a.VN(),c.return());a.B&&(a.B=0,a.gC());g.Aa(c)})},this.S1))};
  8941. g.k.VN=function(){this.Vn.Oj(this.B);this.B=0};
  8942. g.k.PE=function(a){var b=this,c;return g.G(function(d){switch(d.j){case 1:if(!tD(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ia(2);break}return g.z(d,b.Fh.j$(a.id,b.Cf),3);case 3:(c=d.B)||b.aA(Error("The request cannot be found in the database."));case 2:if(b.AL(a,b.J0)){d.Ia(4);break}b.aA(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ia(5);break}return g.z(d,b.Fh.Dz(a.id,b.Cf),5);case 5:return d.return();case 4:a.skipRetry||
  8943. (a=Eta(b,a));if(!a){d.Ia(0);break}if(!a.skipRetry||void 0===a.id){d.Ia(8);break}return g.z(d,b.Fh.Dz(a.id,b.Cf),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
  8944. g.k.AL=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
  8945. g.k.DL=function(){var a=this;if(!tD(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Fh.bY("QUEUED",this.Cf).then(function(b){b&&!a.AL(b,a.C0)?a.Vn.Ni(function(){return g.G(function(c){if(1==c.j)return void 0===b.id?c.Ia(2):g.z(c,a.Fh.wS(b.id,a.Cf),2);a.DL();g.Aa(c)})}):a.hh.Eh()&&a.gC()})};var wD;var Eva={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
  8946. mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
  8947. nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
  8948. assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
  8949. liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
  8950. visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
  8951. spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
  8952. vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,
  8953. mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,
  8954. kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
  8955. transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
  8956. ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
  8957. ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
  8958. accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
  8959. musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
  8960. yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
  8961. notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
  8962. tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
  8963. iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
  8964. mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
  8965. mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
  8966. clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
  8967. mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,
  8968. dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,
  8969. tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,
  8970. tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496};var onb={},Ota=g.ZC("ServiceWorkerLogsDatabase",{Mr:(onb.SWHealthLog={hn:1},onb),shared:!0,upgrade:function(a,b){b(1)&&g.LC(g.FC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
  8971. version:1});var Vta={},Uta=0;var Xta;AD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
  8972. AD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
  8973. AD.prototype.removeParams=function(a){return a.split("?")[0]};
  8974. AD.prototype.removeParams=AD.prototype.removeParams;AD.prototype.isEndpointCFR=AD.prototype.isEndpointCFR;AD.prototype.requestComplete=AD.prototype.requestComplete;AD.getInstance=BD;g.y(CD,g.Dd);g.k=CD.prototype;g.k.Eh=function(){return this.j.Eh()};
  8975. g.k.lx=function(a){this.j.j=a};
  8976. g.k.O8=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
  8977. g.k.P7=function(){this.B=!0};
  8978. g.k.listen=function(a,b){return this.j.listen(a,b)};
  8979. g.k.HL=function(a){a=ev(this.j,a);a.then(function(b){g.aB("use_cfr_monitor")&&BD().requestComplete("generate_204",b)});
  8980. return a};
  8981. CD.prototype.sendNetworkCheckRequest=CD.prototype.HL;CD.prototype.listen=CD.prototype.listen;CD.prototype.enableErrorFlushing=CD.prototype.P7;CD.prototype.getWindowStatus=CD.prototype.O8;CD.prototype.networkStatusHint=CD.prototype.lx;CD.prototype.isNetworkAvailable=CD.prototype.Eh;CD.getInstance=Zta;g.y(g.DD,g.Dd);g.DD.prototype.Eh=function(){var a=g.Xa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
  8982. g.DD.prototype.lx=function(a){var b=g.Xa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
  8983. g.DD.prototype.HL=function(a){var b=this,c;return g.G(function(d){c=g.Xa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.aB("skip_network_check_if_cfr")&&BD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.lx((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Eh())})):c?d.return(c(a)):d.return(!0)})};var aua;g.y(ED,uD);ED.prototype.writeThenSend=function(a,b){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.writeThenSend.call(this,a,b)};
  8984. ED.prototype.sendThenWrite=function(a,b,c){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.sendThenWrite.call(this,a,b,c)};
  8985. ED.prototype.sendAndWrite=function(a,b){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.sendAndWrite.call(this,a,b)};
  8986. ED.prototype.awaitInitialization=function(){return this.C.promise};var fua=g.Ta.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",fua);g.GD.prototype.isReady=function(){!this.config_&&Tsa()&&(this.config_=g.gD());return!!this.config_};var pnb,JD,LD;pnb=g.Ta.ytPubsubPubsubInstance||new g.Yv;JD=g.Ta.ytPubsubPubsubSubscribedKeys||{};LD=g.Ta.ytPubsubPubsubTopicToKeys||{};g.KD=g.Ta.ytPubsubPubsubIsSynchronous||{};g.Yv.prototype.subscribe=g.Yv.prototype.subscribe;g.Yv.prototype.unsubscribeByKey=g.Yv.prototype.Nh;g.Yv.prototype.publish=g.Yv.prototype.publish;g.Yv.prototype.clear=g.Yv.prototype.clear;g.Va("ytPubsubPubsubInstance",pnb);g.Va("ytPubsubPubsubTopicToKeys",LD);g.Va("ytPubsubPubsubIsSynchronous",g.KD);
  8987. g.Va("ytPubsubPubsubSubscribedKeys",JD);var mua={};g.y(RD,g.I);RD.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Hb();this.Hb().appendChild(a)};
  8988. g.y(SD,RD);SD.prototype.Hb=function(){return this.j};g.y(rua,g.I);var TD=Date.now().toString();var wua={};var aE=Symbol("injectionDeps");ZD.prototype.toString=function(){return"InjectionToken("+this.name+")"};
  8989. xua.prototype.resolve=function(a){return a instanceof $D?bE(this,a.key,[],!0):bE(this,a,[])};var Aua;var dE=window;var eE=g.aB("web_enable_lifecycle_monitoring")&&0!==Bua(),Kua=g.aB("web_enable_lifecycle_monitoring");Fua.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.oL||this.scheduler.Oj(b.jobId),b.oL=!0;this.B.resolve()};g.k=fE.prototype;g.k.install=function(a){this.plugins.push(a);return this};
  8990. g.k.uninstall=function(){var a=this;g.Ja.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1<b&&a.plugins.splice(b,1)})};
  8991. g.k.transition=function(a,b){var c=this;eE&&Dua(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
  8992. if(d){this.B&&(Gua(this.B),this.B=void 0);Lua(this,a,b);this.state=a;eE&&Cua(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
  8993. d(Iua(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
  8994. g.k.nda=function(a){var b=g.Ja.apply(1,arguments);g.lC();for(var c=g.u(a),d=c.next(),e={};!d.done;e={nF:void 0},d=c.next())e.nF=d.value,xra(function(f){return function(){Jua(f.nF.name);f.nF.callback.apply(f.nF,g.qa(b));gE(f.nF.name)}}(e))};
  8995. g.k.mda=function(a){var b=g.Ja.apply(1,arguments),c,d,e,f;return g.G(function(h){1==h.j&&(g.lC(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ia(0);e.EA=d.value;e.dI=void 0;f=function(l){return function(){Jua(l.EA.name);var m=l.EA.callback.apply(l.EA,g.qa(b));"function"===typeof(null==m?void 0:m.then)?l.dI=m.then(function(){gE(l.EA.name)}):gE(l.EA.name)}}(e);
  8996. xra(f);return e.dI?g.z(h,e.dI,3):h.Ia(3)}e={EA:void 0,dI:void 0};d=c.next();return h.Ia(2)})};
  8997. g.k.m1=function(a){var b=g.Ja.apply(1,arguments),c=this,d=a.map(function(e){return{qQ:function(){Jua(e.name);e.callback.apply(e,g.qa(b));gE(e.name)},
  8998. priority:Hua(c,e)}});
  8999. d.length&&(this.B=new Fua(d))};
  9000. g.ha.Object.defineProperties(fE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Mua;g.y(hE,fE);hE.prototype.G=function(a,b){var c=this;this.j=g.jC(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
  9001. a(null==b?void 0:b.event)};
  9002. hE.prototype.K=function(a,b){this.j&&(g.gv.Oj(this.j),this.j=null);a(null==b?void 0:b.event)};var zva=[];g.Va("yt.logging.transport.getScrapedGelPayloads",function(){return zva});iE.prototype.storePayload=function(a,b){a=Oua(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
  9003. iE.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Pua(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.qa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.qa(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.qa(this.smartExtractMatchingEntries(a))));
  9004. return c};
  9005. iE.prototype.extractMatchingEntries=function(a){a=Pua(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.qa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
  9006. iE.prototype.getSequenceCount=function(a){a=Pua(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
  9007. iE.prototype.getSequenceCount=iE.prototype.getSequenceCount;iE.prototype.extractMatchingEntries=iE.prototype.extractMatchingEntries;iE.prototype.smartExtractMatchingEntries=iE.prototype.smartExtractMatchingEntries;iE.prototype.storePayload=iE.prototype.storePayload;var mva=g.bB("initial_gel_batch_timeout",2E3),lva=g.bB("gel_queue_timeout_max_ms",6E4),yva=Math.pow(2,16)-1,nva=g.bB("gel_min_batch_size",5),rE=void 0,Dva=new kE,Cva=new kE,kva=new kE,jva=new kE,cva,vE=!0,xva=1,mE=new Map,uE=g.Ta.ytLoggingTransportTokensToCttTargetIds_||{};g.Va("ytLoggingTransportTokensToCttTargetIds_",uE);var tE=g.Ta.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Va("ytLoggingTransportTokensToJspbCttTargetIds_",tE);var pE={},Qua=!1;var wE=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",wE);var Iva,yE,Jva,Lva=g.GD,Hva=!1,Ova=[];var Qva=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",Qva);var H2=g.Ta.ytLoggingDocDocumentNonce_;H2||(H2=g.VD(16),g.Va("ytLoggingDocDocumentNonce_",H2));var iwa=H2;var fwa={D3:0,kua:1,yva:2,c6:3,Mxa:4,nlb:5,MWa:6,SHARE:7,z4a:8,k6a:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};var Yva=1;g.k=CE.prototype;g.k.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
  9008. g.k.getAsJspb=function(){var a=new Hz;void 0!==this.j.trackingParams?a.setTrackingParams(this.j.trackingParams):(void 0!==this.j.veType&&Uk(a,2,this.j.veType),void 0!==this.j.veCounter&&Uk(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&Uk(a,3,this.j.elementIndex),this.j.isCounterfactual&&Tk(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();Hk(a,Hz,7,b)}void 0!==this.j.youtubeData&&Hk(a,Yx,8,this.j.jspbYoutubeData);return a};
  9009. g.k.toString=function(){return JSON.stringify(this.getAsJson())};
  9010. g.k.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};
  9011. g.k.getLoggingDirectives=function(){return this.j.loggingDirectives};g.Va("yt_logging_screen.getRootVeType",cwa);g.Va("yt_logging_screen.getCurrentCsn",g.FE);g.Va("yt_logging_screen.getCttAuthInfo",GE);g.Va("yt_logging_screen.setCurrentScreen",jwa);var nwa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Awa=[{JQ:function(a){return"Cannot read property '"+a.key+"'"},
  9012. cL:{Error:[{Cj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Cj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Cj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Cj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
  9013. groups:["value","key"]},{Cj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Cj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Cj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{JQ:function(a){return"Cannot call '"+a.key+"'"},
  9014. cL:{TypeError:[{Cj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Cj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Cj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Cj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Cj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
  9015. {Cj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{JQ:function(a){return a.key+" is not defined"},
  9016. cL:{ReferenceError:[{Cj:/(.*) is not defined/,groups:["key"]},{Cj:/Can't find variable: (.*)/,groups:["key"]}]}}];var swa={Kr:[],Ss:[{callback:owa,weight:500}]};var qwa;var KE=new g.Yv;var Bwa=new Set,ywa=0,Ewa=0,Dwa=0,zwa=[],Gwa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Iwa=new g.Zw("parallelCommand");var Lwa=new g.Zw("performOnceCommand");var Kwa=new g.Zw("serialCommand");var NE=void 0;g.y(Pwa,iD);var Swa=new jD("screen-created",Pwa),UE=[],Qwa=cxa,dxa=0,QE=new Map,Twa=new Map,Uwa=new Map;g.nb(g.aF,g.I);g.aF.prototype.subscribe=function(a,b,c){return this.Ma()?0:this.sj.subscribe(a,b,c)};
  9017. g.aF.prototype.unsubscribe=function(a,b,c){return this.Ma()?!1:this.sj.unsubscribe(a,b,c)};
  9018. g.aF.prototype.Nh=function(a){return this.Ma()?!1:this.sj.Nh(a)};
  9019. g.aF.prototype.publish=function(a,b){return this.Ma()?!1:this.sj.publish.apply(this.sj,arguments)};var E6a=16/9,qnb=[.25,.5,.75,1,1.25,1.5,1.75,2],rnb=qnb.concat([3,4,5,6,7,8,9,10,15]);var fxa=1;g.y(g.eF,g.I);g.k=g.eF.prototype;
  9020. g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.S,d=a.Ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.UR&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.Cf(a.I);if(c){if(c=fF(this,e,"class",c))gF(this,e,"class",c),this.Jb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Jb[f.value]=e;gF(this,e,"class",d.join(" "))}d=a.xa;c=a.V;if(d)b=fF(this,e,"child",d),void 0!==b&&e.appendChild(g.Df(b));else if(c)for(d=0,c=g.u(c),f=c.next();!f.done;f=c.next())if(f=
  9021. f.value)if("string"===typeof f)f=fF(this,e,"child",f),null!=f&&e.appendChild(g.Df(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Hc&&(h=dF(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),Hf(e,f,d++))}if(a=a.X)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],gF(this,b,c,"string"===typeof f?
  9022. fF(this,b,c,f):f);return e};
  9023. g.k.Fa=function(a){return this.Jb[a]};
  9024. g.k.Ja=function(a,b){"number"===typeof b?Hf(a,this.element,b):a.appendChild(this.element)};
  9025. g.k.detach=function(){g.Pf(this.element)};
  9026. g.k.update=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
  9027. g.k.updateValue=function(a,b){(a=this.je["{{"+a+"}}"])&&gF(this,a[0],a[1],b)};
  9028. g.k.va=function(){this.Jb={};this.je={};this.detach();g.I.prototype.va.call(this)};g.y(g.W,g.eF);g.k=g.W.prototype;g.k.Md=function(a,b){this.updateValue(b||"content",a)};
  9029. g.k.show=function(){this.Fb||(g.Is(this.element,"display",""),this.Fb=!0)};
  9030. g.k.hide=function(){this.Fb&&(g.Is(this.element,"display","none"),this.Fb=!1)};
  9031. g.k.Lc=function(a){this.Z=a};
  9032. g.k.listen=function(a,b,c){return this.T(this.element,a,b,c)};
  9033. g.k.T=function(a,b,c,d){c=(0,g.gb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
  9034. g.k.Pc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
  9035. g.k.focus=function(){this.element.focus()};
  9036. g.k.va=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.eF.prototype.va.call(this)};g.y(g.iF,g.W);g.iF.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
  9037. g.iF.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
  9038. g.iF.prototype.Nh=function(a){return this.Sa.Nh(a)};
  9039. g.iF.prototype.publish=function(a){return this.Sa.publish.apply(this.Sa,[a].concat(g.qa(g.Ja.apply(1,arguments))))};var snb=new WeakSet;g.y(jF,g.iF);g.k=jF.prototype;g.k.bind=function(a){this.bb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
  9040. g.k.init=function(a,b,c){this.bb=a;this.element.setAttribute("id",this.bb);this.zb&&g.Fv(this.element,this.zb);this.qa=b&&b.adRendererCommands;this.La=b.interaction;var d;(null==(d=this.La)?0:d.onTap)&&g.Fv(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.N?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
  9041. g.k.clear=function(){};
  9042. g.k.hide=function(){g.iF.prototype.hide.call(this);(null!=this.N||this.K)&&this.logVisibility(this.element,!1)};
  9043. g.k.show=function(){g.iF.prototype.show.call(this);if(!this.Gb){this.Gb=!0;var a=this.qa&&this.qa.impressionCommand,b,c=null==(b=this.La)?void 0:b.onFirstVisible;a?this.FG(a):c&&(a=Mwa(c))&&this.FG(a)}(null!=this.N||this.K)&&this.logVisibility(this.element,!0)};
  9044. g.k.onClick=function(a){if((this.N||this.K)&&!snb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Fb&&this.api.logClick(b,this.interactionLoggingClientData);snb.add(a)}var c=this.qa&&this.qa.clickCommand,d;b=null==(d=this.La)?void 0:d.onTap;if(c)b=this.z0(c),this.FG(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.u(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(0<=c.className.indexOf("ytp-ad-component--clickable")){d=!1;break a}}d=!0}d&&(b=Mwa(b))&&this.FG(b)}};
  9045. g.k.z0=function(a){return a};
  9046. g.k.u5=function(a){var b=this.Ca;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=sua(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
  9047. g.k.t5=function(a){var b=this.Ca;a=a.changedTouches.item(0);var c;if(c=Lc()){c=g.oc();var d="";if(Uaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Lc())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Mc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(jc(g.oc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Taa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Jc()?"Chrome OS"===
  9048. tc.platform:yc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.nc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0};
  9049. g.k.s5=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&sua(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
  9050. g.k.FG=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(new g.eC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
  9051. g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)};
  9052. g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)};
  9053. g.k.va=function(){this.clear(null);this.Pc(this.rb);for(var a=g.u(this.Ga),b=a.next();!b.done;b=a.next())this.Pc(b.value);g.iF.prototype.va.call(this)};g.y(uF,jF);
  9054. uF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.JE(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.Fv(this.element,a);null!=b.text&&(a=g.lF(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.C=new g.iF({I:"span",S:"ytp-ad-button-text",xa:a}),g.N(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
  9055. b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.ec(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=tF(b.icon),null!=b&&(this.B=new g.iF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.N(this,this.B)),this.D?Hf(this.element,this.B.element,0):this.B.Ja(this.element))}};
  9056. uF.prototype.clear=function(){this.hide()};
  9057. uF.prototype.onClick=function(a){jF.prototype.onClick.call(this,a);a=g.u(Hxa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.IE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(vF,g.I);vF.prototype.va=function(){this.B&&g.PB(this.B);this.j.clear();wF=null;g.I.prototype.va.call(this)};
  9058. vF.prototype.register=function(a,b){b&&this.j.set(a,b)};
  9059. var wF=null;g.y(zF,jF);
  9060. zF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.qM)||null;null==b?g.IE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.button),this.button.init(ZE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.lF(a)),this.button.Ja(this.element),this.G&&!g.Ev(this.button.element,"ytp-ad-clickable")&&g.Fv(this.button.element,
  9061. "ytp-ad-clickable"),a&&(this.B=new g.iF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.iF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.N(this,b)),g.N(this,this.B),this.B.Ja(this.element),b=xF(a),Hf(this.B.element,b,0)),this.show())};
  9062. zF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();jF.prototype.hide.call(this)};
  9063. zF.prototype.show=function(){this.button&&this.button.show();jF.prototype.show.call(this)};g.y(BF,jF);
  9064. BF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&AF(a)||"";g.ec(c)?.01>Math.random()&&g.JE(Error("Found AdImage without valid image URL")):(this.j?g.Is(this.element,"backgroundImage","url("+c+")"):yf(this.element,{src:c}),yf(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
  9065. BF.prototype.clear=function(){this.hide()};g.y(CF,jF);g.k=CF.prototype;g.k.hide=function(){jF.prototype.hide.call(this);this.C&&this.C.focus()};
  9066. g.k.show=function(){this.C=document.activeElement;jF.prototype.show.call(this);this.D.focus()};
  9067. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.IE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.IE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Lxa(this,b):g.IE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
  9068. g.k.clear=function(){g.UB(this.j);this.hide()};
  9069. g.k.eR=function(){this.hide()};
  9070. g.k.WM=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for confirm dialog.")));this.hide()};
  9071. g.k.fR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y(DF,jF);g.k=DF.prototype;
  9072. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.IE(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.IE(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.Fv(this.D,a)}a={};b.defaultText?
  9073. (c=g.lF(b.defaultText),g.ec(c)||(a.buttonText=c,this.api.U().experiments.fb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.fb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Vs(this.Ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=tF(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
  9074. !0,c=tF(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Vs(this.Y,!0),g.Vs(this.G,!1)),g.Vs(this.j,!1)):g.Vs(this.B,!1);g.jd(a)||this.update(a);b.isToggled&&(g.Fv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Mxa(this);this.T(this.element,"change",this.gV);this.show()}};
  9075. g.k.onClick=function(a){0<this.Ga.length&&(this.toggleButton(!this.isToggled()),this.gV());jF.prototype.onClick.call(this,a)};
  9076. g.k.gV=function(){g.Jv(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(Nxa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.IE(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Mxa(this)};
  9077. g.k.clear=function(){this.hide()};
  9078. g.k.toggleButton=function(a){g.Jv(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Mxa(this)};
  9079. g.k.isToggled=function(){return this.j.checked};g.y(EF,SB);EF.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Oxa&&this.D(b)}};g.y(Pxa,jF);g.k=Pxa.prototype;g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.IE(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.JE(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.JE(Error("AdFeedbackRenderer.title was not set.")),Txa(this,b)):g.IE(Error("AdFeedbackRenderer.reasons were not set."))};
  9080. g.k.clear=function(){Wqa(this.G);Wqa(this.Y);this.D.length=0;this.hide()};
  9081. g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();jF.prototype.hide.call(this);this.C&&this.C.focus()};
  9082. g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;jF.prototype.show.call(this);this.G.focus()};
  9083. g.k.p_=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
  9084. g.k.kca=function(){this.hide()};
  9085. FF.prototype.Hb=function(){return this.j.element};
  9086. FF.prototype.getCommand=function(){return this.B};
  9087. FF.prototype.isChecked=function(){return this.C.checked};g.y(GF,CF);GF.prototype.eR=function(a){CF.prototype.eR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  9088. GF.prototype.WM=function(a){CF.prototype.WM.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
  9089. GF.prototype.fR=function(a){CF.prototype.fR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.y(Uxa,jF);g.k=Uxa.prototype;
  9090. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.IE(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.JE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.V(b.closeOverlayRenderer,g.qM)||null)this.j=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
  9091. g.N(this,this.j),this.j.init(ZE("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.lF(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=xF(a[c]);if(!g.ec(d.textContent)){var e=Bf("LI");e.appendChild(d);this.Na.appendChild(e)}}else g.Vs(this.Na,!1);b.dialogMessage&&(a=xF(b.dialogMessage,!0),this.Wa.appendChild(a));b.confirmLabel&&(a=g.lF(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.V(b.muteAdRenderer,g.qM)||null)&&
  9092. (a=b.navigationEndpoint&&g.V(b.navigationEndpoint,Dmb)||null,c=b.navigationEndpoint&&g.V(b.navigationEndpoint,elb)||null,null==a&&null==c?g.JE(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Vxa(this,a):c&&Wxa(this,c),this.C=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.N(this,this.C),this.C.init(ZE("button"),b,this.macros),this.C.listen("click",
  9093. this.Qaa,this),this.C.Ja(this.Za)));Xxa(this)}};
  9094. g.k.clear=function(){Wqa(this.Y);this.hide()};
  9095. g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();jF.prototype.hide.call(this);this.ra&&this.ra.focus()};
  9096. g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Va){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.IE(Error("Missing layoutId for ad info dialog."));this.Va=!0}this.ra=document.activeElement;jF.prototype.show.call(this);this.Y.focus()};
  9097. g.k.hV=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
  9098. g.k.Qaa=function(){var a=this.B?this.B:this.D;a&&!a.Fb&&(this.hide(),a.show())};g.y(HF,zF);HF.prototype.init=function(a,b,c){zF.prototype.init.call(this,a,b,c);a=b.button&&g.V(b.button,g.qM)||null;null!=a&&(bya(this,a,c),this.show())};
  9099. HF.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();zF.prototype.hide.call(this)};
  9100. HF.prototype.show=function(){this.button&&this.button.show();zF.prototype.show.call(this)};
  9101. HF.prototype.clear=function(){this.hide()};g.y(IF,jF);
  9102. IF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Sf(this.element,kF(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?AF(a):"",c=(c=this.api.getVideoData(1))&&c.Jl,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.$e(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
  9103. b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
  9104. IF.prototype.isTemplated=function(){return this.j.isTemplated||!1};
  9105. IF.prototype.clear=function(){this.hide()};var rya={seekableStart:0,seekableEnd:1,current:0};g.y(JF,jF);JF.prototype.clear=function(){this.dispose()};g.y(g.MF,g.I);g.k=g.MF.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.PH(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Fb||(NF(this,!0),this.state=1,a?this.delay.start(a):this.PH()))};
  9106. g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Fb&&(NF(this,!0),this.state=4,this.delay.start(this.C)))};
  9107. g.k.PH=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:NF(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();NF(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
  9108. g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.PH()};
  9109. g.k.va=function(){this.element.Ma()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.va.call(this)};g.y(OF,JF);g.k=OF.prototype;
  9110. g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.IE(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.gb&&(this.D?g.Fv(this.B.element,"modern-countdown-next-to-thumbnail"):g.Fv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Na=null==a||0===a?this.j.im():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
  9111. this.C.init(ZE("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Jl&&b.thumbnail?this.G.init(ZE("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.gb&&g.Fv(this.C.element,"ytp-ad-preview-text-modern-postroll"))};
  9112. g.k.clear=function(){this.hide()};
  9113. g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();LF(this);JF.prototype.hide.call(this)};
  9114. g.k.show=function(){KF(this);this.B.show();this.C.show();this.G.show();JF.prototype.show.call(this)};
  9115. g.k.hq=function(){this.hide()};
  9116. g.k.Ao=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Wa&&a>=this.Na?(this.Ea.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.Za&&(cya(this.C,{TIME_REMAINING:String(a)}),this.Za=a)))}};g.y(eya,JF);g.k=eya.prototype;
  9117. g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.V(b.actionButton,g.qM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.$e(e[0].url))&&(e[0].url=d.profilePicture)}else g.JE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(ZE("ad-image"),b.image,c);this.G.init(ZE("ad-text"),
  9118. b.headline,c);this.D.init(ZE("ad-text"),b.description,c);this.B.init(ZE("button"),a,c);c=vv(this.B.element);kv(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.ZE()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Fa("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Fa("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Fa("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
  9119. this.Fa("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Fa("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Fa("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Fa("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
  9120. this.api.addEventListener("playerUnderlayVisibilityChange",this.iV.bind(this));this.Ea=b.startMs||0;KF(this)}else g.IE(Error("FlyoutCtaRenderer has no valid action button."));else g.IE(Error("FlyoutCtaRenderer has no description AdText."));else g.IE(Error("FlyoutCtaRenderer has no headline AdText."));else g.JE(Error("FlyoutCtaRenderer has no image."))};
  9121. g.k.onClick=function(a){JF.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Rf(this.B.element,a.target)&&this.ra&&(this.layoutId?this.kb.executeCommand(this.ra,this.layoutId):g.IE(Error("Missing layoutId for flyout cta.")))};
  9122. g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Na)&&1E3*a.current>=this.Ea&&(LF(this),g.Hv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
  9123. g.k.hq=function(){this.clear()};
  9124. g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.iV.bind(this))};
  9125. g.k.show=function(){this.B&&this.B.show();JF.prototype.show.call(this)};
  9126. g.k.hide=function(){this.B&&this.B.hide();JF.prototype.hide.call(this)};
  9127. g.k.iV=function(a){"hidden"==a?this.show():this.hide()};g.y(fya,jF);g.k=fya.prototype;
  9128. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,B2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,B2),this.C.init(ZE("toggle-button"),a,c),this.B.init(ZE("toggle-button"),b,c),this.T(this.element,"change",this.jV),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for instream user sentiment."))};
  9129. g.k.clear=function(){this.hide()};
  9130. g.k.hide=function(){this.C.hide();this.B.hide();jF.prototype.hide.call(this)};
  9131. g.k.show=function(){this.C.show();this.B.show();jF.prototype.show.call(this)};
  9132. g.k.jV=function(){Oka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.jb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
  9133. g.k.onClick=function(a){0<this.Ga.length&&this.jV();jF.prototype.onClick.call(this,a)};g.y(PF,g.I);g.k=PF.prototype;g.k.va=function(){this.reset();g.I.prototype.va.call(this)};
  9134. g.k.reset=function(){g.UB(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())};
  9135. g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.lV,this);this.D.T(this.B,"mouseout",this.kV,this);this.qa&&(this.D.T(this.B,"focusin",this.lV,this),this.D.T(this.B,"focusout",this.kV,this));this.j?this.j.start():(this.K=this.C=!0,g.Is(this.B,{opacity:this.Y}))};
  9136. g.k.lV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
  9137. g.k.kV=function(){this.K?this.G.start():this.j&&this.j.start()};
  9138. g.k.vW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.y(WF,JF);g.k=WF.prototype;
  9139. g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);this.ra=b;(this.Ea=oya(this))&&g.JE(Error("hasAdControlInClickCommands_ is true."));if(!b||g.jd(b))g.IE(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.jd(b.message))g.IE(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=tF(a);null==b?g.IE(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
  9140. (this.C=new g.iF({I:"button",Ka:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.N(this,this.C),this.C.Ja(this.D.element),this.B=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(ZE("ad-text"),this.ra.message,c),g.N(this,this.B),Hf(this.C.element,this.B.element,
  9141. 0));var d=void 0===d?null:d;c=this.api.U();!(0<this.Ga.length)&&c.B&&(zR?0:"ontouchstart"in document.documentElement&&(iha()||Sr()))&&(this.Pc(this.rb),d&&this.Pc(d),this.Ga=[this.T(this.element,"touchstart",this.u5,this),this.T(this.element,"touchmove",this.t5,this),this.T(this.element,"touchend",this.s5,this)])}};
  9142. g.k.clear=function(){this.Na.reset();this.hide()};
  9143. g.k.hide=function(){this.D.hide();this.B&&this.B.hide();LF(this);JF.prototype.hide.call(this)};
  9144. g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(0===jya(a,{contentCpn:(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||""})&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;JF.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");if(this.Wa||!this.Ea)this.api.onAdUxClicked(this.componentType,
  9145. this.layoutId)}};
  9146. g.k.z0=function(a){if(!this.Wa)return this.Ea&&RF("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.V(a,g.XF))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&nya(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
  9147. g.k.show=function(){this.Na.start();this.D.show();this.B&&this.B.show();KF(this);JF.prototype.show.call(this);this.Za&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
  9148. g.k.hq=function(){this.publish("k")};
  9149. g.k.Ao=function(){};g.y(YF,JF);g.k=YF.prototype;
  9150. g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.V(b.preskipRenderer,pM)||{};(a=g.jd(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new OF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,"countdown_next_to_thumbnail"==iR(this.api.U().experiments,"preskip_button_style_ads_backend")&&OI(this.api.U())),this.B.init(ZE("preskip-component"),a,c),dya(this.B),g.N(this,this.B),this.B.Ja(this.element)):
  9151. b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.V(b.skippableRenderer,Wkb)||{};a=g.jd(a)?null:a;null==a?g.IE(Error("SkipButtonRenderer was not set in player response.")):(this.C=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.ra),this.C.init(ZE("skip-button"),a,c),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.$e(b.targetId))&&(c=this.C,null!=c.C&&(c.Za=!0,c.C.element.setAttribute("data-tooltip-target-id",
  9152. b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
  9153. g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();KF(this);JF.prototype.show.call(this)};
  9154. g.k.hq=function(){};
  9155. g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();LF(this);JF.prototype.hide.call(this)};
  9156. g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();LF(this);JF.prototype.hide.call(this)};
  9157. g.k.Ao=function(){1E3*this.j.getProgressState().current>=this.G&&pya(this,!0)};g.y(qya,uF);qya.prototype.init=function(a,b,c){uF.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.lF(b.text),a=!g.ec(a));a?null==b.navigationEndpoint?g.JE(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.JE(Error("Button style was not a link-style type in renderer,")):this.show():g.JE(Error("No visit advertiser text was present in the renderer."))};g.y(ZF,jF);
  9158. ZF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);a=b.text;g.ec(kF(a))?g.JE(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(ZE("simple-ad-badge"),b,c),a.Ja(this.element),g.N(this,a)),this.api.U().experiments.fb("enable_unified_ad_badge_style_fix")&&this.C&&
  9159. this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
  9160. ZF.prototype.clear=function(){this.hide()};g.y($F,$E);g.y(aG,g.aF);g.k=aG.prototype;g.k.im=function(){return this.durationMs};
  9161. g.k.stop=function(){this.j&&this.Ed.Pc(this.j)};
  9162. g.k.Sc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")};
  9163. g.k.getProgressState=function(){return this.B};
  9164. g.k.v5=function(a){g.VF(a,2)&&this.publish("g")};g.y(bG,g.aF);g.k=bG.prototype;g.k.im=function(){return this.durationMs};
  9165. g.k.start=function(){this.j||(this.j=!0,this.We.start())};
  9166. g.k.stop=function(){this.j&&(this.j=!1,this.We.stop())};
  9167. g.k.Sc=function(){this.cj+=100;var a=!1;this.cj>this.durationMs&&(this.cj=this.durationMs,this.We.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.cj/1E3};this.publish("h");a&&this.publish("g")};
  9168. g.k.getProgressState=function(){return this.B};g.y(eG,JF);g.k=eG.prototype;g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.JE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(ZE("ad-text"),a,{});this.B.Ja(this.element);g.N(this,this.B)}this.show()};
  9169. g.k.clear=function(){this.hide()};
  9170. g.k.hide=function(){LF(this);JF.prototype.hide.call(this)};
  9171. g.k.hq=function(){this.hide()};
  9172. g.k.Ao=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof aG?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof bG?a.seekableEnd:this.api.getDuration(2,!1))-a.current,cya(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.cG(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
  9173. g.k.show=function(){KF(this);JF.prototype.show.call(this)};g.y(sya,IF);sya.prototype.onClick=function(a){IF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.y(hG,g.iF);hG.prototype.Sc=function(){var a=this.B.getProgressState();this.progressBar.style.width=100*gG(new fG(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
  9174. hG.prototype.onStateChange=function(){g.HR(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Sc,this),this.Sc()):-1!==this.j&&(this.hide(),this.B.Nh(this.j),this.j=-1))};g.y(iG,jF);
  9175. iG.prototype.init=function(a,b,c,d){jF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,vL),c=g.V(c,pM),a?(c=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(ZE("skip-button"),a,this.macros),g.N(this,c)):c&&(a=new OF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(ZE("ad-preview"),c,this.macros),dya(a),g.N(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
  9176. c=new fya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.ra),c.init(ZE("instream-user-sentiment"),a,this.macros),g.N(this,c));if(a=g.V(b,Pkb))if(a=g.V(a,Pkb))c=new eya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.N(this,c),c.Ja(this.C),c.init(ZE("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),
  9177. c=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,c),c.Ja(this.j),c.init(ZE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new eG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.N(this,d),d.Ja(this.j),d.init(ZE("ad-duration-remaining"),
  9178. a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,oM))&&(a=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.j),a.init(ZE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.V(b.visitAdvertiserRenderer,g.qM))&&(a=uya(this)&&this.D?this.D:this.j)&&(b=new qya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,b),b.Ja(a),b.init(ZE("visit-advertiser"),d,this.macros),iv(b.element),d=vv(b.element),
  9179. kv(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.FR(b)&&"3"==b.controlsType&&(b=new hG(this.api,this.B),b.Ja(this.Ea),g.N(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Fv(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()};
  9180. iG.prototype.clear=function(){this.hide()};lG.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
  9181. lG.prototype.get=function(a){return this.j.get(a)};
  9182. lG.prototype.remove=function(a){this.j.remove(a)};var Aya=null,Cya=null,Eya=null,Gya=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return Aya});
  9183. g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
  9184. g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Cya});
  9185. g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Eya});
  9186. g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Gya});var Iya=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oG.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Jp.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
  9187. oG.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Kya(this,b)};var tnb=window.location.hostname.split(".").slice(-2).join("."),I2;pG.getInstance=function(){I2=g.Xa("yt.clientLocationService.instance");I2||(I2=new pG,g.Va("yt.clientLocationService.instance",I2));return I2};
  9188. g.k=pG.prototype;
  9189. g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
  9190. g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.FA("INNERTUBE_CLIENT_NAME")?(this.localStorage=Lya(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.lB("YT_CL",JSON.stringify({loctok:a}),15552E3,tnb,!0))};
  9191. g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Lya(this))&&this.localStorage.remove("yt-location-playability-token"):g.dqa("YT_CL")};
  9192. g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.FA("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
  9193. maximumAge:0,timeout:c})})};
  9194. g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
  9195. g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};g.k=Qya.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)};
  9196. g.k.get=function(a){if(this.contains(a))return this.j[a]};
  9197. g.k.set=function(a,b){this.j[a]=b};
  9198. g.k.En=function(){return Object.keys(this.j)};
  9199. g.k.remove=function(a){delete this.j[a]};rG.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
  9200. rG.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Ne(b)}}return a};
  9201. rG.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
  9202. new rG;var J2={},Rya=(J2.WEB_UNPLUGGED="^unplugged/",J2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",J2.WEB_UNPLUGGED_OPS="^unplugged/",J2.WEB_UNPLUGGED_PUBLIC="^unplugged/",J2.WEB_CREATOR="^creator/",J2.WEB_KIDS="^kids/",J2.WEB_EXPERIMENTS="^experiments/",J2.WEB_MUSIC="^music/",J2.WEB_REMIX="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",J2);Tya.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?hD:c;var d={context:g.qG(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.tG(this.C());(e=null==(f=g.V(a.commandMetadata,g.x2))?void 0:f.apiUrl)&&(b=e);f=gqa(fqa(b));a=Object.assign({},{command:a},void 0);d={input:f,Ju:hqa(f),Jp:d,config:a};d.config.Ov?d.config.Ov.identity=c:d.config.Ov={identity:c};return d}g.IE(new g.eC("Error: Failed to create Request from Command.",a))};
  9203. g.ha.Object.defineProperties(Tya.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
  9204. g.y(uG,Tya);g.y(vG,uG);vG.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Ju:hqa("/getDatasyncIdsEndpoint","GET"),Jp:{}}};
  9205. vG.prototype.C=function(){return[]};
  9206. vG.prototype.B=function(){};
  9207. vG.prototype.j=function(){};var unb={},Gza=(unb.GET_DATASYNC_IDS=sG(vG),unb);var K2={},$ya=(K2.auto_search="LATENCY_ACTION_AUTO_SEARCH",K2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",K2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",K2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",K2.app_startup="LATENCY_ACTION_APP_STARTUP",K2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",K2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",K2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",K2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
  9208. K2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",K2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",K2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",K2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",K2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",K2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",K2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",K2["asset.metadata"]=
  9209. "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",K2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",K2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",K2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",K2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",K2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",K2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",K2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
  9210. K2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",K2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",K2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",K2.browse="LATENCY_ACTION_BROWSE",K2.cast_splash="LATENCY_ACTION_CAST_SPLASH",K2.channels="LATENCY_ACTION_CHANNELS",K2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",K2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",K2["channel.comments"]=
  9211. "LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",K2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",K2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",K2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",K2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",K2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",K2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",K2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
  9212. K2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",K2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",K2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",K2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",K2.chips="LATENCY_ACTION_CHIPS",K2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",K2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",K2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
  9213. K2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",K2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",K2.embed="LATENCY_ACTION_EMBED",K2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",K2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",K2.explore="LATENCY_ACTION_EXPLORE",K2.favorites="LATENCY_ACTION_FAVORITES",K2.home="LATENCY_ACTION_HOME",K2.inboarding="LATENCY_ACTION_INBOARDING",K2.library="LATENCY_ACTION_LIBRARY",K2.live=
  9214. "LATENCY_ACTION_LIVE",K2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",K2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",K2.onboarding="LATENCY_ACTION_ONBOARDING",K2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",K2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",K2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",K2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",K2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",K2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",
  9215. K2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",K2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",K2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",K2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",K2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",K2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",K2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",K2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",
  9216. K2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",K2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",K2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",K2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",K2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",K2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",K2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",K2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",K2.parent_profile_settings=
  9217. "LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",K2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",K2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",K2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",K2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",K2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",K2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",K2.prebuffer="LATENCY_ACTION_PREBUFFER",K2.prefetch="LATENCY_ACTION_PREFETCH",K2.profile_settings=
  9218. "LATENCY_ACTION_KIDS_PROFILE_SETTINGS",K2.profile_switcher="LATENCY_ACTION_LOGIN",K2.reel_watch="LATENCY_ACTION_REEL_WATCH",K2.results="LATENCY_ACTION_RESULTS",K2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",K2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",K2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",K2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",K2.search_ui="LATENCY_ACTION_SEARCH_UI",K2.search_suggest="LATENCY_ACTION_SUGGEST",K2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",
  9219. K2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",K2.seek="LATENCY_ACTION_PLAYER_SEEK",K2.settings="LATENCY_ACTION_SETTINGS",K2.store="LATENCY_ACTION_STORE",K2.tenx="LATENCY_ACTION_TENX",K2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",K2.watch="LATENCY_ACTION_WATCH",K2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",K2["watch,watch7"]="LATENCY_ACTION_WATCH",K2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",K2["watch,watch7ad"]="LATENCY_ACTION_WATCH",K2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",
  9220. K2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",K2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",K2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",K2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",K2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",K2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",K2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",K2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",K2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
  9221. K2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",K2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",K2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",K2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",K2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",K2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",K2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",K2.cast_load_by_entity_to_watch=
  9222. "LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",K2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",K2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",K2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",K2);var X={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279,
  9223. LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,
  9224. LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,
  9225. LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,
  9226. LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,
  9227. LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,
  9228. LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,
  9229. LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA:287,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,
  9230. LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING:285,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,
  9231. LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT:286,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,
  9232. LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,
  9233. LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,
  9234. LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,
  9235. LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,
  9236. LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,
  9237. LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,
  9238. LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,
  9239. LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,
  9240. LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,
  9241. LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,
  9242. LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,
  9243. LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,
  9244. LATENCY_ACTION_UNKNOWN:0};X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";X[X.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";X[X.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";X[X.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";
  9245. X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";X[X.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";X[X.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";X[X.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";X[X.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";X[X.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";
  9246. X[X.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";X[X.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";X[X.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";X[X.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";X[X.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";X[X.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";X[X.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";
  9247. X[X.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";X[X.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";X[X.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";X[X.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";X[X.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";
  9248. X[X.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";X[X.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";X[X.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";
  9249. X[X.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";X[X.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";X[X.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";X[X.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";
  9250. X[X.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";X[X.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";X[X.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";X[X.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";X[X.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
  9251. X[X.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";X[X.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";X[X.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";X[X.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";X[X.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";X[X.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";X[X.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";
  9252. X[X.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";X[X.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";X[X.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";X[X.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";X[X.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";X[X.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";
  9253. X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";X[X.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";X[X.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";X[X.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";X[X.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";
  9254. X[X.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";X[X.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";X[X.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";X[X.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";X[X.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";X[X.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";
  9255. X[X.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";X[X.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";X[X.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";X[X.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";X[X.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";X[X.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";
  9256. X[X.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";X[X.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";X[X.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";X[X.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";X[X.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";X[X.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";X[X.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";
  9257. X[X.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";X[X.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";X[X.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";X[X.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";X[X.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";X[X.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";X[X.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";X[X.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";
  9258. X[X.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";X[X.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";X[X.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";X[X.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";X[X.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";X[X.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";X[X.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";
  9259. X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";
  9260. X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";X[X.LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA]="LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA";X[X.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";X[X.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";
  9261. X[X.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";X[X.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";X[X.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING]="LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING";X[X.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";X[X.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
  9262. X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";X[X.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";X[X.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";
  9263. X[X.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";X[X.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";
  9264. X[X.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";X[X.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";X[X.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";X[X.LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT]="LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT";X[X.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";X[X.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";
  9265. X[X.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";X[X.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";X[X.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";X[X.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";X[X.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";X[X.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";
  9266. X[X.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";X[X.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";X[X.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";X[X.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";X[X.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";
  9267. X[X.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";X[X.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";X[X.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";X[X.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
  9268. X[X.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";X[X.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";X[X.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";X[X.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";X[X.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";X[X.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";X[X.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
  9269. X[X.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";X[X.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";X[X.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";X[X.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";X[X.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";
  9270. X[X.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";X[X.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";
  9271. X[X.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";X[X.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";X[X.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";
  9272. X[X.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";X[X.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";X[X.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";X[X.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";
  9273. X[X.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";X[X.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";X[X.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";
  9274. X[X.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";X[X.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";X[X.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";X[X.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";X[X.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";
  9275. X[X.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";X[X.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";X[X.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";X[X.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";
  9276. X[X.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";
  9277. X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";
  9278. X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";
  9279. X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";
  9280. X[X.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";X[X.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";X[X.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";
  9281. X[X.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";X[X.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";
  9282. X[X.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";X[X.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";X[X.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";
  9283. X[X.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";X[X.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";X[X.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";X[X.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";X[X.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";X[X.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";
  9284. X[X.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";X[X.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";X[X.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";X[X.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";X[X.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";X[X.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";X[X.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";X[X.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";
  9285. X[X.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";X[X.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";X[X.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";X[X.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";X[X.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";X[X.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";X[X.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";
  9286. X[X.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";X[X.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";X[X.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";X[X.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";X[X.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";X[X.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";X[X.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";
  9287. X[X.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";X[X.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";X[X.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";X[X.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";X[X.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";X[X.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";X[X.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES";
  9288. X[X.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";X[X.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";X[X.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";X[X.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";X[X.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";X[X.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";X[X.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";X[X.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";X[X.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
  9289. X[X.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";X[X.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";X[X.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";X[X.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";X[X.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var QG={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};QG[QG.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";QG[QG.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
  9290. QG[QG.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var RG={CONN_INVALID:31,CONN_WIRED:30,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};RG[RG.CONN_INVALID]="CONN_INVALID";RG[RG.CONN_WIRED]="CONN_WIRED";RG[RG.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";RG[RG.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
  9291. RG[RG.CONN_WIFI_METERED]="CONN_WIFI_METERED";RG[RG.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";RG[RG.CONN_DISCO]="CONN_DISCO";RG[RG.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";RG[RG.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";RG[RG.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";RG[RG.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";RG[RG.CONN_WIFI]="CONN_WIFI";RG[RG.CONN_NONE]="CONN_NONE";RG[RG.CONN_UNKNOWN]="CONN_UNKNOWN";RG[RG.CONN_DEFAULT]="CONN_DEFAULT";
  9292. var SG={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
  9293. DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};SG[SG.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
  9294. SG[SG.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";SG[SG.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";SG[SG.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";SG[SG.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";SG[SG.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";SG[SG.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
  9295. SG[SG.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";SG[SG.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";SG[SG.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";SG[SG.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";SG[SG.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";SG[SG.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";SG[SG.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";SG[SG.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
  9296. SG[SG.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";SG[SG.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";SG[SG.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";SG[SG.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";SG[SG.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";SG[SG.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";SG[SG.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";SG[SG.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
  9297. SG[SG.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";SG[SG.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";SG[SG.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";SG[SG.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var TG={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
  9298. TG[TG.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";TG[TG.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";TG[TG.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";TG[TG.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";TG[TG.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";TG[TG.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";TG[TG.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";TG[TG.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
  9299. var UG={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};UG[UG.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";UG[UG.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";UG[UG.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";UG[UG.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var VG={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
  9300. VG[VG.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";VG[VG.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var WG={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};WG[WG.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";WG[WG.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";WG[WG.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
  9301. WG[WG.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";WG[WG.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";WG[WG.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var XG={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};XG[XG.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";XG[XG.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";XG[XG.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";XG[XG.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
  9302. var YG={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};YG[YG.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";YG[YG.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";YG[YG.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var ZG={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};ZG[ZG.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
  9303. ZG[ZG.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";ZG[ZG.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var dza="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo renderCounters playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata videoMetadataParsingContext".split(" ");g.y(aza,iD);var uza=new jD("aft-recorded",aza);var JG=g.Ta.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",JG);DG.prototype.tick=function(a,b,c,d){KG(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.aB("web_csi_via_jspb")?(d=new fpa,Q(d,1,a),Q(d,2,b),a=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA,Ik(a,fpa,5,BE,d),AE("latencyActionTicked",a,c)):g.qC("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
  9304. DG.prototype.info=function(a,b,c){var d=Object.keys(a).join("");KG(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.qC("latencyActionInfo",a,{cttAuthInfo:c}))};
  9305. DG.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));KG(this,"info_"+d+"_"+b)||(Q(a,2,b),b={cttAuthInfo:c},c=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA,Ik(c,qA,7,BE,a),AE("latencyActionInfo",c,b))};
  9306. DG.prototype.span=function(a,b,c){var d=Object.keys(a).join("");KG(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.qC("latencyActionSpan",a,{cttAuthInfo:c}))};var L2=window,LG=L2.performance||L2.mozPerformance||L2.msPerformance||L2.webkitPerformance||new bza;var tza=!1,fza=!1,oza={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
  9307. 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
  9308. 'script[name="mobile_blazer_watch_mod"]':"mbwj"},vza=(0,g.gb)(LG.clearResourceTimings||LG.webkitClearResourceTimings||LG.mozClearResourceTimings||LG.msClearResourceTimings||LG.oClearResourceTimings||g.Hd,LG);var vnb=window;vnb.ytcsi&&(vnb.ytcsi.infoGel=g.fH,vnb.ytcsi.tick=eH);var Mza="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),Oza=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var Sza=new ZD("INNERTUBE_TRANSPORT_TOKEN");g.y(mH,uG);mH.prototype.C=function(){return jnb};
  9309. mH.prototype.B=function(a){return g.V(a,Vmb)||void 0};
  9310. mH.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
  9311. g.ha.Object.defineProperties(mH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(nH,uG);nH.prototype.C=function(){return knb};
  9312. nH.prototype.B=function(a){return g.V(a,Tmb)||void 0};
  9313. nH.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
  9314. g.ha.Object.defineProperties(nH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(oH,uG);oH.prototype.C=function(){return gnb};
  9315. oH.prototype.B=function(a){return g.V(a,plb)||void 0};
  9316. oH.prototype.j=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
  9317. g.ha.Object.defineProperties(oH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(pH,uG);pH.prototype.C=function(){return hnb};
  9318. pH.prototype.B=function(a){return g.V(a,Smb)||void 0};
  9319. pH.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.y(qH,uG);qH.prototype.C=function(){return inb};
  9320. qH.prototype.B=function(a){return g.V(a,Qmb)||void 0};
  9321. qH.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.y(rH,uG);rH.prototype.C=function(){return fnb};
  9322. rH.prototype.B=function(a){return g.V(a,Fmb)};
  9323. rH.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.y(g.sH,g.eC);var wnb=new ZD("NETWORK_SLI_TOKEN");tH.prototype.fetch=function(a,b,c){var d=this,e;return g.G(function(f){e=Pza(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.JE(h);
  9324. if((null==c?0:c.Uq)&&h instanceof g.sH&&1===h.errorType)return Promise.reject(h)}))})};
  9325. tH.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((null==b?0:b.R9)&&a.ok)return Aea(b.R9,d);d=d.replace(")]}'","");if((null==b?0:b.Uq)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.sH(1,"JSON parsing failed after fetch");}var f;return null!=(f=e)?f:JSON.parse(d)});
  9326. a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.Cob(),c=c.then(function(d){g.JE(new g.eC("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
  9327. return c};
  9328. tH[aE]=[new $D(wnb)];var Rza=new ZD("NETWORK_MANAGER_TOKEN");var Qza;var ENa={Nka:0,Oka:1,Mka:2,Jka:3,Ika:4,Kka:5,Lka:6};var Uza=[],Tza=!1;xH.prototype.D=function(){var a=this;return g.G(function(b){return 1==b.j?g.z(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
  9329. xH.prototype.C=function(a,b,c){var d=this,e,f,h;return g.G(function(l){null===d.j&&$za(d,wH(d,0));e=!1;f={};h=function(){var m,n,p;return g.G(function(q){switch(q.j){case 1:return g.z(q,d.j,2);case 2:m=q.B;f.challenge=m.challenge;if(!m.Cq){"c1a"in m.Oq&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ia(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.Ba(q,4);e=!0;return g.z(q,m.Cq.snapshot({Yv:n}),6);case 6:(p=q.B)?f.webResponse=p:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Ca(q,3);break;
  9330. case 4:g.Da(q),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if("ENGAGEMENT_TYPE_PLAYBACK"===a){var r=m.Oq,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^vH()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.FA("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
  9331. return l.return(Promise.race([h(),aAa(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var dAa=["APP_STATE","PI"];g.k=jAa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=Sla(a.interpreterSafeScript);else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=Ww(a.interpreterSafeUrl).toString());lAa(this,d,e,a.program,b,c)}else g.JE(Error("Cannot initialize botguard without program"))};
  9332. g.k.isInitialized=function(){return this.RT()};
  9333. g.k.getState=function(){return this.state};
  9334. g.k.isLoading=function(){return 2===this.state};
  9335. g.k.invoke=function(a){a=void 0===a?{}:a;return this.RT()?this.R2({Yv:a}):null};
  9336. g.k.dispose=function(){this.US(null);this.Gc(8)};
  9337. g.k.RT=function(){return!!this.Cq};
  9338. g.k.R2=function(a){return this.Cq.D1(a)};
  9339. g.k.US=function(a){g.vb(this.Cq);this.Cq=a};
  9340. g.k.Gc=function(a){this.state=a};g.y(yH,jAa);yH.prototype.US=function(a){var b;null==(b=mAa())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.D1.bind(a)},g.Va("yt.abuse.playerAttLoader",b),g.Va("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Va("yt.abuse.playerAttLoader",null),g.Va("yt.abuse.playerAttLoaderRun",null))};
  9341. yH.prototype.RT=function(){return!!mAa()};
  9342. yH.prototype.R2=function(a){return mAa().bgvmc(a)};nAa.prototype.gr=function(){return"crossDeviceProgressCommand"};
  9343. nAa.prototype.Jt=function(a){if(a.crossDevicePings){var b=[];a=g.u(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.qC("crossDeviceNotificationTransfer",{crossDevicePings:b})}};pAa.prototype.gr=function(){return"muteAdEndpoint"};
  9344. pAa.prototype.Jt=function(a,b){switch(a.type){case "SKIP":oAa(this.Yk,this.Zn,b)}};qAa.prototype.gr=function(){return"openPopupAction"};
  9345. qAa.prototype.Jt=function(){};rAa.prototype.gr=function(){return"pingingEndpoint"};
  9346. rAa.prototype.Jt=function(){};var yAa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.y(tAa,g.I);var Ahb={Yea:"FINAL",f3:"AD_BREAK_LENGTH",hka:"AD_CPN",oka:"AH",ska:"AD_MT",vka:"ASR",zka:"AW",rua:"NM",sua:"NX",tua:"NY",y3:"CONN",Eva:"CPN",iya:"DV_VIEWABILITY",Zya:"ERRORCODE",iza:"ERROR_MSG",lza:"EI",P3:"GOOGLE_VIEWABILITY",dJa:"IAS_VIEWABILITY",qMa:"LACT",X5:"LIVE_TARGETING_CONTEXT",oSa:"I_X",pSa:"I_Y",TUa:"MT",iVa:"MIDROLL_POS",jVa:"MIDROLL_POS_MS",KVa:"MOAT_INIT",LVa:"MOAT_VIEWABILITY",g6:"P_H",l2a:"PV_H",m2a:"PV_W",i6:"P_W",H2a:"TRIGGER_TYPE",t6a:"SDKV",m6:"SLOT_POS",Edb:"SURVEY_LOCAL_TIME_EPOCH_S",
  9347. Ddb:"SURVEY_ELAPSED_MS",w6:"VIS",glb:"VIEWABILITY",mlb:"VED",x6:"VOL",plb:"WT",y6:"YT_ERROR_CODE"};zAa.prototype.gr=function(){return"urlEndpoint"};
  9348. zAa.prototype.Jt=function(a,b,c){var d=this.Oa.get(),e=QIa(d.B.get(),b);e?b=AJ(d,thb(e),e,void 0,void 0,c):(RF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);FM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Lf.Yd(2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.dv(a.url,b);g.nG(b,void 0,void 0,void 0,"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===a.attributionSrcMode)};BH.prototype.get=function(){return this.value};
  9349. g.y(CH,BH);CH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
  9350. g.y(DH,BH);DH.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
  9351. g.y(AAa,BH);AAa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
  9352. g.y(BAa,BH);BAa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
  9353. g.y(EH,BH);EH.prototype.getType=function(){return"metadata_type_ad_next_params"};
  9354. g.y(FH,BH);FH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
  9355. g.y(CAa,BH);CAa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
  9356. g.y(DAa,BH);DAa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
  9357. g.y(EAa,BH);EAa.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
  9358. g.y(FAa,BH);FAa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
  9359. g.y(GAa,BH);GAa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
  9360. g.y(HAa,BH);HAa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
  9361. g.y(GH,BH);GH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
  9362. g.y(HH,BH);HH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
  9363. g.y(IH,BH);IH.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
  9364. g.y(JH,BH);JH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
  9365. g.y(KH,BH);KH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
  9366. g.y(LH,BH);LH.prototype.getType=function(){return"metadata_type_ad_video_id"};
  9367. g.y(MH,BH);MH.prototype.getType=function(){return"metadata_type_content_cpn"};
  9368. g.y(NH,BH);NH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
  9369. g.y(OH,BH);OH.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
  9370. g.y(PH,BH);PH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
  9371. g.y(QH,BH);QH.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
  9372. g.y(IAa,BH);IAa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
  9373. g.y(JAa,BH);JAa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
  9374. g.y(RH,BH);RH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
  9375. g.y(KAa,BH);KAa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
  9376. g.y(LAa,BH);LAa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
  9377. g.y(MAa,BH);MAa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
  9378. g.y(NAa,BH);NAa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
  9379. g.y(SH,BH);SH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
  9380. g.y(TH,BH);TH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
  9381. g.y(UH,BH);UH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
  9382. g.y(VH,BH);VH.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
  9383. g.y(OAa,BH);OAa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
  9384. g.y(WH,BH);WH.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
  9385. g.y(XH,BH);XH.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
  9386. g.y(YH,BH);YH.prototype.getType=function(){return"metadata_type_sub_layouts"};
  9387. g.y(PAa,BH);PAa.prototype.getType=function(){return"metadata_type_cue_point"};
  9388. g.y(ZH,BH);ZH.prototype.getType=function(){return"metadata_type_video_length_seconds"};
  9389. g.y($H,BH);$H.prototype.getType=function(){return"metadata_type_player_vars"};
  9390. g.y(aI,BH);aI.prototype.getType=function(){return"metadata_type_preload_player_vars"};
  9391. g.y(bI,BH);bI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
  9392. g.y(cI,BH);cI.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
  9393. g.y(dI,BH);dI.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
  9394. g.y(eI,BH);eI.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
  9395. g.y(fI,BH);fI.prototype.getType=function(){return"metadata_type_dai"};
  9396. g.y(gI,BH);gI.prototype.getType=function(){return"metadata_type_ad_intro"};
  9397. g.y(QAa,BH);QAa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
  9398. g.y(hI,BH);hI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
  9399. g.y(iI,BH);iI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
  9400. g.y(jI,BH);jI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
  9401. g.y(RAa,BH);RAa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
  9402. g.y(kI,BH);kI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
  9403. g.y(lI,BH);lI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
  9404. g.y(mI,BH);mI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
  9405. g.y(nI,BH);nI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
  9406. g.y(SAa,BH);SAa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
  9407. g.y(oI,BH);oI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
  9408. g.y(pI,BH);pI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
  9409. g.y(TAa,BH);TAa.prototype.getType=function(){return"metadata_type_survey_overlay"};
  9410. g.y(qI,BH);qI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
  9411. g.y(UAa,BH);UAa.prototype.getType=function(){return"metadata_type_active_view_identifier"};
  9412. g.y(VAa,BH);VAa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
  9413. g.y(rI,BH);rI.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
  9414. g.y(WAa,BH);WAa.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
  9415. g.y(sI,BH);sI.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};var pBa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var ABa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
  9416. "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.y(wI,xb);g.y(xI,xb);new Promise(function(){});var $Aa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),YAa=new Map([["normal",{Qx:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Qx:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
  9417. ["muted",{Qx:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Qx:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Qx:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Qx:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
  9418. ["error",{Qx:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",ey:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.y(fBa,g.I);g.k=fBa.prototype;g.k.rP=function(a,b){return this.j.rP(a,b)};
  9419. g.k.Mg=function(a,b){this.Qb.TH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.Mg(a,b)};
  9420. g.k.sf=function(a){if(JI(this.j,a)){this.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.sf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.sf(a);iBa(this,a)}};
  9421. g.k.tf=function(a){if(JI(this.j,a)){this.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.tf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.tf(a);JI(this.j,a)&&KI(this.j,a).G&&II(this,a,!1)}};
  9422. g.k.PK=function(a){this.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);JI(this.j,a)&&(this.j.PK(a),II(this,a,!1))};
  9423. g.k.vc=function(a,b){if(JI(this.j,a)){this.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.vc(a,b)}};
  9424. g.k.Ec=function(a,b,c){if(JI(this.j,a)){this.Qb.Ph(ZAa(c),a,b);this.j.Ec(a,b);for(var d=g.u(this.B),e=d.next();!e.done;e=d.next())e.value.Ec(a,b,c);(c=TI(this.j,a))&&b.layoutId===c.layoutId&&wBa(this,a,!1)}};
  9425. g.k.jf=function(a,b,c,d){c.Mk&&d?(RF(c,a,b,void 0,c.Nv),this.Qb.Sl(d,c.Mk,a,b)):RF("adsClientErrorMessage is missing.",a,b);II(this,a,!0)};
  9426. g.k.va=function(){var a=zBa(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())II(this,b.value,!1);g.I.prototype.va.call(this)};
  9427. g.k.gg=function(a,b){this.Qb.Ph("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Qb.Ph("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.gg(a,b)};xBa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.y(yBa,g.I);g.k=yBa.prototype;g.k.rP=function(a,b){b=SI(this,a+"_"+b);a=[];b=g.u(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
  9428. g.k.Ng=function(a){a=KI(this,a);"not_scheduled"!==a.j&&UI(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
  9429. g.k.bE=function(a){a=KI(this,a);a.D="fill_requested";a.N.bE()};
  9430. g.k.sf=function(a){a=KI(this,a);"enter_requested"!==a.j&&UI(a.slot,a.j,"onSlotEntered");a.j="entered"};
  9431. g.k.PK=function(a){KI(this,a).D="fill_canceled"};
  9432. g.k.tf=function(a){a=KI(this,a);"exit_requested"!==a.j&&UI(a.slot,a.j,"onSlotExited");a.j="scheduled"};
  9433. g.k.Ec=function(a,b){a=KI(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&UI(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.y(EBa,g.I);EBa.prototype.get=function(){this.Ma()&&RF("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.E9());return this.instance};g.y(GBa,g.I);GBa.prototype.C=function(){return this.j};YI.prototype.executeCommand=function(a,b){AH(this.j(),a,b)};aJ.prototype.addListener=function(a){this.listeners.add(a)};
  9434. aJ.prototype.removeListener=function(a){this.listeners.delete(a)};var M2={},iJ=(M2.AD_MARKER="ytp-ad-progress",M2.CHAPTER_MARKER="ytp-chapter-marker",M2.TIME_MARKER="ytp-time-marker",M2);var FXa=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),OBa=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
  9435. GXa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),WBa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
  9436. UBa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),RBa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-usercontent)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-usercontent))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
  9437. HXa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),SBa=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),QBa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-usercontent)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-usercontent))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
  9438. YTa=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
  9439. WTa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
  9440. XTa=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),xnb=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)"),
  9441. ynb=RegExp("^(https://stadia\\.google\\.com)$");var NBa=!1;g.jJ.prototype.getId=function(){return this.id};
  9442. g.jJ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+$Ba(this.start)+", "+$Ba(this.end)+"]"};
  9443. g.jJ.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
  9444. var ZBa=1;g.jJ.prototype.getId=g.jJ.prototype.getId;cCa.prototype.bE=function(){var a=this,b=0;LBa(this.j,function(){var c=zI(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();uL(a.Oa.get(),"abrs","ct."+b+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({K2:c.getAdBreakUrl,hX:new g.jJ(c.jS,c.iS),cw:zI(a.slot.Ba,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){dCa(a)},function(c){var d=Date.now()-b;
  9445. uL(a.Oa.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Lv;2<=d.length&&c.ssdaiAdsConfig&&RF("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||dCa(a)})};
  9446. cCa.prototype.UN=function(){MBa(this.j)};eCa.prototype.bE=function(){var a=this;LBa(this.j,function(){var b=zI(a.slot.Ba,"metadata_type_ad_break_request_data");return a.B.get().fetch({K2:b.getAdBreakUrl,hX:new g.jJ(b.jS,b.iS)})})};
  9447. eCa.prototype.UN=function(){MBa(this.j)};fCa.prototype.bE=function(){var a=this.slot.Ba,b,c=null!=(b=this.slot.fulfilledLayout)?b:zI(a,"metadata_type_fulfilled_layout");jBa(this.callback,this.slot,c)};
  9448. fCa.prototype.UN=function(){gBa(this.callback,this.slot,new xI("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};hCa.prototype.build=function(a,b){return b.fulfilledLayout||gCa(b,{Kd:["metadata_type_fulfilled_layout"]})?new fCa(a,b):this.C(a,b)};g.y(mJ,hCa);
  9449. mJ.prototype.C=function(a,b){if(gCa(b,{Kd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new cCa(a,b,this.j,this.B,this.Ne,this.Aa,this.Oa,this.Ha,this.Mc);if(gCa(b,{Kd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new eCa(a,b,this.j,this.B,this.Ne,this.Aa);throw new xI("Unsupported slot with type: "+b.slotType+" and client metadata: "+AI(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.y(nJ,hCa);nJ.prototype.C=function(a,b){throw new xI("Unsupported slot with type: "+b.slotType+" and client metadata: "+AI(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=iCa.prototype;g.k.Vb=function(){return this.slot};
  9450. g.k.eb=function(){return this.layout};
  9451. g.k.init=function(){};
  9452. g.k.release=function(){};
  9453. g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.jf(this.slot,a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=zI(a.Ba,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.vc(this.slot,a),DGa(this.B,this.slot,
  9454. b)):RF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
  9455. g.k.Gd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jf(this.slot,a,new wI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.Ec(this.slot,a,b),kCa(this))};g.y(rJ,g.aF);g.k=rJ.prototype;g.k.Vb=function(){return this.B.slot};
  9456. g.k.eb=function(){return this.B.layout};
  9457. g.k.init=function(){this.C.get().addListener(this)};
  9458. g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
  9459. g.k.EP=function(){};
  9460. g.k.BP=function(){};
  9461. g.k.AP=function(){};
  9462. g.k.EJ=function(){};
  9463. g.k.startRendering=function(a){var b=this;nCa(this.B,a,function(){return void b.QL()})};
  9464. g.k.QL=function(){this.C.get().QL(this.j)};
  9465. g.k.Gd=function(a,b){var c=this;nCa(this.B,a,function(){var d=c.C.get();Jhb(d,c.j,3);c.j=[];c.callback.Ec(c.slot,a,b)})};
  9466. g.k.va=function(){this.C.Ma()||this.C.get().removeListener(this);g.aF.prototype.va.call(this)};
  9467. g.ha.Object.defineProperties(rJ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
  9468. layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});yJ.prototype.Mh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&oCa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.qa(d))}pCa(this,a,c);this.j.add(a);b&&this.j.add(b)};
  9469. yJ.prototype.Ub=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&oCa(a);c&&(b=!this.j.has(c));this.Mh(a,b)}};g.y(tCa,$E);g.y(uCa,rJ);g.k=uCa.prototype;g.k.eg=function(a,b){uJ("ads-engagement-panel-layout",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9470. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,cGa),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new tCa(b,c,d,e,f)},this.j);
  9471. rJ.prototype.startRendering.call(this,a)};
  9472. g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9473. g.k.Ec=function(){};
  9474. g.k.Ng=function(){};
  9475. g.k.Kh=function(){};
  9476. g.k.Hh=function(){};
  9477. g.k.sf=function(){};
  9478. g.k.tf=function(){};
  9479. g.k.Ih=function(){};
  9480. g.k.Jh=function(){};
  9481. g.k.ih=function(){};
  9482. g.k.gg=function(){};
  9483. g.k.Mg=function(){};
  9484. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(wCa,$E);g.y(xCa,rJ);g.k=xCa.prototype;g.k.eg=function(a,b){uJ("banner-image",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9485. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,aGa),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new wCa(b,c,d,e,f)},this.j);
  9486. rJ.prototype.startRendering.call(this,a)};
  9487. g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9488. g.k.Ec=function(){};
  9489. g.k.Ng=function(){};
  9490. g.k.Kh=function(){};
  9491. g.k.Hh=function(){};
  9492. g.k.sf=function(){};
  9493. g.k.tf=function(){};
  9494. g.k.Ih=function(){};
  9495. g.k.Jh=function(){};
  9496. g.k.ih=function(){};
  9497. g.k.gg=function(){};
  9498. g.k.Mg=function(){};
  9499. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(zCa,$E);g.y(ACa,rJ);g.k=ACa.prototype;g.k.eg=function(a,b){uJ("action-companion",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9500. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,bM),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new zCa(b,c,d,e,f)},this.j);
  9501. rJ.prototype.startRendering.call(this,a)};
  9502. g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Ya.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9503. g.k.Ec=function(){};
  9504. g.k.Ng=function(){};
  9505. g.k.Kh=function(){};
  9506. g.k.Hh=function(){};
  9507. g.k.sf=function(){};
  9508. g.k.tf=function(){};
  9509. g.k.Ih=function(){};
  9510. g.k.Jh=function(){};
  9511. g.k.ih=function(){};
  9512. g.k.gg=function(){};
  9513. g.k.Mg=function(){};
  9514. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(CCa,$E);g.y(DCa,rJ);g.k=DCa.prototype;g.k.eg=function(a,b){uJ("image-companion",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9515. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,cM),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new CCa(b,c,d,e,f)},this.j);
  9516. rJ.prototype.startRendering.call(this,a)};
  9517. g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Ya.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9518. g.k.Ec=function(){};
  9519. g.k.Ng=function(){};
  9520. g.k.Kh=function(){};
  9521. g.k.Hh=function(){};
  9522. g.k.sf=function(){};
  9523. g.k.tf=function(){};
  9524. g.k.Ih=function(){};
  9525. g.k.Jh=function(){};
  9526. g.k.ih=function(){};
  9527. g.k.gg=function(){};
  9528. g.k.Mg=function(){};
  9529. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(FCa,$E);g.y(GCa,rJ);g.k=GCa.prototype;g.k.eg=function(a,b){uJ("shopping-companion",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9530. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new FCa(b,c,d,e,f)},this.j);
  9531. rJ.prototype.startRendering.call(this,a)};
  9532. g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Ya.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9533. g.k.Ec=function(){};
  9534. g.k.Ng=function(){};
  9535. g.k.Kh=function(){};
  9536. g.k.Hh=function(){};
  9537. g.k.sf=function(){};
  9538. g.k.tf=function(){};
  9539. g.k.Ih=function(){};
  9540. g.k.Jh=function(){};
  9541. g.k.ih=function(){};
  9542. g.k.gg=function(){};
  9543. g.k.Mg=function(){};
  9544. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(MCa,rJ);g.k=MCa.prototype;g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new zCa(b,c,d,e,f)},this.j);
  9545. rJ.prototype.startRendering.call(this,a)};
  9546. g.k.vc=function(){};
  9547. g.k.Ec=function(){};
  9548. g.k.Ng=function(){};
  9549. g.k.Kh=function(){};
  9550. g.k.Hh=function(){};
  9551. g.k.sf=function(){};
  9552. g.k.tf=function(){};
  9553. g.k.Ih=function(){};
  9554. g.k.Jh=function(){};
  9555. g.k.ih=function(){};
  9556. g.k.gg=function(){};
  9557. g.k.Mg=function(){};
  9558. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};
  9559. g.k.eg=function(){};g.k=OCa.prototype;g.k.Vb=function(){return this.slot};
  9560. g.k.eb=function(){return this.layout};
  9561. g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().ID.push(this);var a=zI(this.layout.Ba,"metadata_type_video_length_seconds"),b=zI(this.layout.Ba,"metadata_type_active_view_traffic_type");vJ(this.layout.Cb)&&n1(this.Aa.get())&&s1(this.ub.get(),this.layout.layoutId,b,a,this)};
  9562. g.k.release=function(){this.Ha.get().removeListener(this);Dhb(this.Ha.get(),this);vJ(this.layout.Cb)&&n1(this.Aa.get())&&t1(this.ub.get(),this.layout.layoutId)};
  9563. g.k.startRendering=function(a){this.callback.vc(this.slot,a)};
  9564. g.k.Gd=function(a,b){ehb(this.Aa.get())&&!this.j&&(this.Ya.Ub("abandon"),this.j=!0);this.callback.Ec(this.slot,a,b)};
  9565. g.k.xj=function(a){switch(a.id){case "part2viewed":this.Ya.Ub("start");n1(this.Aa.get())&&this.Ya.Ub("impression");break;case "videoplaytime25":this.Ya.Ub("first_quartile");break;case "videoplaytime50":this.Ya.Ub("midpoint");break;case "videoplaytime75":this.Ya.Ub("third_quartile");break;case "videoplaytime100":ehb(this.Aa.get())?this.j||(this.Ya.Ub("complete"),this.j=!0):this.Ya.Ub("complete");DJ(this.Ya)&&BJ(this.Ya,Infinity,!0);break;case "engagedview":DJ(this.Ya)||this.Ya.Ub("progress");break;
  9566. case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:RF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
  9567. g.k.onVolumeChange=function(){};
  9568. g.k.Vi=function(){};
  9569. g.k.jh=function(){};
  9570. g.k.yj=function(){};
  9571. g.k.onFullscreenToggled=function(){};
  9572. g.k.kh=function(){};
  9573. g.k.Ei=function(){};
  9574. g.k.gR=function(a){DJ(this.Ya)&&BJ(this.Ya,1E3*a,!1);0<a&&!n1(this.Aa.get())&&this.Ya.Ub("impression")};
  9575. g.k.Aj=function(){};
  9576. g.k.tx=function(){this.Ya.Ub("active_view_measurable")};
  9577. g.k.vx=function(){this.Ya.Ub("active_view_viewable")};
  9578. g.k.sx=function(){this.Ya.Ub("active_view_fully_viewable_audible_half_duration")};
  9579. g.k.qx=function(){this.Ya.Ub("audio_measurable")};
  9580. g.k.ox=function(){this.Ya.Ub("audio_audible")};g.y(PCa,rJ);g.k=PCa.prototype;g.k.init=function(){rJ.prototype.init.call(this);var a=zI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Yb};this.j.push(new $F(a,this.layout.layoutId,zI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
  9581. g.k.Xp=function(){this.D||this.Ha.get().resumeVideo(1)};
  9582. g.k.startRendering=function(a){rJ.prototype.startRendering.call(this,a);z1(this.Ha.get(),"ad-showing");this.callback.vc(this.slot,a);this.G.Ms=this};
  9583. g.k.Gd=function(a,b){rJ.prototype.Gd.call(this,a,b);A1(this.Ha.get(),"ad-showing");b2(this.G,this)};
  9584. g.k.eg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ha.get().Un(1))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo()}};
  9585. g.k.va=function(){rJ.prototype.va.call(this)};g.y(QCa,$E);g.y(RCa,rJ);g.k=RCa.prototype;g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new QCa(b,c,d,e,f)},this.j);
  9586. rJ.prototype.startRendering.call(this,a)};
  9587. g.k.vc=function(){};
  9588. g.k.Ec=function(){};
  9589. g.k.Ng=function(){};
  9590. g.k.Kh=function(){};
  9591. g.k.Hh=function(){};
  9592. g.k.sf=function(){};
  9593. g.k.tf=function(){};
  9594. g.k.Ih=function(){};
  9595. g.k.Jh=function(){};
  9596. g.k.ih=function(){};
  9597. g.k.gg=function(){};
  9598. g.k.Mg=function(){};
  9599. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};
  9600. g.k.eg=function(){};g.y(EJ,$E);g.y(FJ,rJ);FJ.prototype.init=function(){rJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,NJ)||zI(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=sJ(this.Ya);this.j.push(new EJ(a,b,this.layout.layoutId,{adsClientData:this.layout.Yb},!0,!0))};
  9601. FJ.prototype.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
  9602. FJ.prototype.eg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=zI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&OEa(a,this.Vb(),this.layout)}};
  9603. FJ.prototype.va=function(){rJ.prototype.va.call(this)};HJ.prototype.build=function(a,b,c,d){if(GJ(d,{Kd:["metadata_type_ad_break_response_data"],Ge:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new iCa(a,c,d,this.B,this.C,this.j);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.y(UCa,$E);g.y(VCa,rJ);g.k=VCa.prototype;g.k.eg=function(a,b){uJ("ads-engagement-panel",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9604. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,dM),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new UCa(b,c,d,e,f)},this.j);
  9605. rJ.prototype.startRendering.call(this,a)};
  9606. g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Ya.Ub("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9607. g.k.Ec=function(){};
  9608. g.k.Ng=function(){};
  9609. g.k.Kh=function(){};
  9610. g.k.Hh=function(){};
  9611. g.k.sf=function(){};
  9612. g.k.tf=function(){};
  9613. g.k.Ih=function(){};
  9614. g.k.Jh=function(){};
  9615. g.k.ih=function(){};
  9616. g.k.gg=function(){};
  9617. g.k.Mg=function(){};
  9618. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};g.y(XCa,rJ);g.k=XCa.prototype;g.k.eg=function(a,b){uJ("top-banner-image-text-icon-buttoned",a,this.K.get().aj,this.Oa.get(),this.D,this.G,this.Vb(),this.eb(),b)};
  9619. g.k.startRendering=function(a){tJ(this.Ya,this.Vb(),this.eb(),g.V(this.eb().renderingContent,bGa),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new QCa(b,c,d,e,f)},this.j);
  9620. rJ.prototype.startRendering.call(this,a)};
  9621. g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ci():RF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
  9622. g.k.Ec=function(){};
  9623. g.k.Ng=function(){};
  9624. g.k.Kh=function(){};
  9625. g.k.Hh=function(){};
  9626. g.k.sf=function(){};
  9627. g.k.tf=function(){};
  9628. g.k.Ih=function(){};
  9629. g.k.Jh=function(){};
  9630. g.k.ih=function(){};
  9631. g.k.gg=function(){};
  9632. g.k.Mg=function(){};
  9633. g.k.va=function(){HI(this.wc(),this);rJ.prototype.va.call(this)};ZCa.prototype.build=function(a,b,c,d){if(GJ(d,WCa())||void 0!==g.V(d.renderingContent,dM))return new VCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,BCa())||void 0!==g.V(d.renderingContent,bM))return new ACa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,ECa())||void 0!==g.V(d.renderingContent,cM))return new DCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,HCa()))return new GCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,NCa()))return new MCa(a,c,d,this.Cc,this.Oa,
  9634. this.wc,this.ub,this.j);if(GJ(d,yCa())||void 0!==g.V(d.renderingContent,aGa))return new xCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,YCa())||void 0!==g.V(d.renderingContent,bGa))return new XCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,SCa()))return new RCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);if(GJ(d,vCa())||void 0!==g.V(d.renderingContent,cGa))return new uCa(a,c,d,this.Cc,this.Oa,this.wc,this.ub,this.j);throw new wI("Unsupported layout with type: "+d.layoutType+
  9635. " and client metadata: "+AI(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.y($Ca,$E);g.y(IJ,rJ);IJ.prototype.init=function(){rJ.prototype.init.call(this);var a=zI(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new $Ca(g.V(a,Qkb),this.layout.layoutId,{adsClientData:this.layout.Yb}))};
  9636. IJ.prototype.eg=function(){};
  9637. IJ.prototype.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
  9638. IJ.prototype.va=function(){rJ.prototype.va.call(this)};aDa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(zJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(GJ(d,{Kd:b,Ge:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new IJ(a,c,d,this.Cc);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=bDa.prototype;g.k.Vb=function(){return this.slot};
  9639. g.k.eb=function(){return this.layout};
  9640. g.k.init=function(){};
  9641. g.k.release=function(){};
  9642. g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.jf(this.slot,a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.Ya.Ub("impression"),qL(this.Yh,a,"normal"))};
  9643. g.k.Gd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jf(this.slot,a,new wI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Ec(this.slot,a,b)};g.k=dDa.prototype;g.k.Vb=function(){return this.slot};
  9644. g.k.eb=function(){return this.layout};
  9645. g.k.init=function(){};
  9646. g.k.release=function(){};
  9647. g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.jf(this.slot,a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.Ya.Ub("impression"),qL(this.Yh,a,"normal"))};
  9648. g.k.Gd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.jf(this.slot,a,new wI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Ec(this.slot,a,b)};JJ.prototype.build=function(a,b,c,d){if(!this.Aa.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(GJ(d,cDa()))return new bDa(a,c,d,this.Oa,this.Yh)}else if(GJ(d,{Kd:[],Ge:["LAYOUT_TYPE_FORECASTING"]}))return new dDa(a,c,d,this.Oa,this.Yh);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.y(gDa,$E);g.y(hDa,rJ);g.k=hDa.prototype;g.k.init=function(){rJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,nDa)||zI(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.Yb};this.j.push(new gDa(a,zI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
  9649. g.k.Xp=function(){this.D||this.Ha.get().resumeVideo(2)};
  9650. g.k.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.Ms=this};
  9651. g.k.Gd=function(a,b){rJ.prototype.Gd.call(this,a,b);b2(this.G,this)};
  9652. g.k.eg=function(a){if(PIa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Un(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser-link":this.Ha.get().pauseVideo();iDa(this).xL();
  9653. break;case "skip-button":if(a=iDa(this),!this.layout.renderingContent&&a.VJ)RF("Requesting to skip by LegacyPlayerBytes when components enabled"),a.kB(this.Vb(),this.layout);else{var b;(a=null==(b=zI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&OEa(a,this.Vb(),this.layout)}}};
  9654. g.k.va=function(){rJ.prototype.va.call(this)};g.y(KJ,rJ);g.k=KJ.prototype;g.k.init=function(){rJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,MJ)||zI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Yb},c;(c=!!this.layout.renderingContent)||(c=!kDa(this).VJ);this.j.push(new $F(a,this.layout.layoutId,zI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
  9655. g.k.Xp=function(){this.D||this.Ha.get().resumeVideo(2)};
  9656. g.k.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.Ms=this};
  9657. g.k.Gd=function(a,b){rJ.prototype.Gd.call(this,a,b);b2(this.G,this)};
  9658. g.k.eg=function(a){if(PIa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Un(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();kDa(this).xL();break;case "skip-button":if(a=
  9659. kDa(this),!this.layout.renderingContent&&a.VJ)RF("Requesting to skip by LegacyPlayerBytes"),a.kB(this.Vb(),this.layout);else{var b;(a=null==(b=zI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&OEa(a,this.Vb(),this.layout)}}};
  9660. g.k.va=function(){rJ.prototype.va.call(this)};g.y(lDa,$E);g.y(LJ,rJ);g.k=LJ.prototype;g.k.startRendering=function(a){var b=this;nCa(this.B,a,function(){b.j.push(new lDa(zI(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Yb));b.QL();b.callback.vc(b.slot,a);g.TF(r1(b.Ha.get(),1),512)&&b.callback.jf(b.Vb(),b.eb(),new wI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
  9661. g.k.Ei=function(){};
  9662. g.k.kh=function(a){if(a.state.isError()){var b;this.callback.jf(this.Vb(),this.eb(),new wI("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.Ig)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
  9663. g.k.onFullscreenToggled=function(){};
  9664. g.k.jh=function(){};
  9665. g.k.yj=function(){};
  9666. g.k.Vi=function(){};
  9667. g.k.onVolumeChange=function(){};
  9668. g.k.xj=function(){};
  9669. g.k.Aj=function(){};
  9670. g.k.eg=function(){};oDa.prototype.build=function(a,b,c,d){if(a=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.j,this.Aa))return a;throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=pDa.prototype;g.k.Vb=function(){return this.slot};
  9671. g.k.eb=function(){return this.layout};
  9672. g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().ID.push(this);var a=zI(this.layout.Ba,"metadata_type_video_length_seconds"),b=zI(this.layout.Ba,"metadata_type_active_view_traffic_type"),c=zI(this.layout.Ba,"metadata_type_active_view_identifier");vJ(this.layout.Cb)&&n1(this.Aa.get())&&s1(this.ub.get(),this.layout.layoutId,b,a,this,c)};
  9673. g.k.release=function(){this.Ha.get().removeListener(this);Dhb(this.Ha.get(),this);vJ(this.layout.Cb)&&n1(this.Aa.get())&&t1(this.ub.get(),this.layout.layoutId)};
  9674. g.k.startRendering=function(a){this.callback.vc(this.slot,a)};
  9675. g.k.Gd=function(a,b){qDa(this,"abandon");this.callback.Ec(this.slot,a,b)};
  9676. g.k.xj=function(a){switch(a.id){case "part2viewed":this.Ya.Ub("start");n1(this.Aa.get())&&this.Ya.Ub("impression");break;case "videoplaytime25":this.Ya.Ub("first_quartile");break;case "videoplaytime50":this.Ya.Ub("midpoint");break;case "videoplaytime75":this.Ya.Ub("third_quartile");break;case "videoplaytime100":qDa(this,"complete");DJ(this.Ya)&&BJ(this.Ya,Infinity,!0);break;case "engagedview":DJ(this.Ya)||this.Ya.Ub("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
  9677. default:RF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
  9678. g.k.onVolumeChange=function(){};
  9679. g.k.Vi=function(){};
  9680. g.k.jh=function(){};
  9681. g.k.yj=function(){};
  9682. g.k.onFullscreenToggled=function(){};
  9683. g.k.kh=function(a){this.j||(g.VF(a,4)&&!g.VF(a,2)?qCa(this.Ya,"pause"):0>UF(a,4)&&!(0>UF(a,2))&&qCa(this.Ya,"resume"))};
  9684. g.k.Ei=function(){};
  9685. g.k.gR=function(a){DJ(this.Ya)&&BJ(this.Ya,1E3*a,!1);0<a&&!n1(this.Aa.get())&&this.Ya.Ub("impression")};
  9686. g.k.Aj=function(){qDa(this,"swipe")};
  9687. g.k.tx=function(){this.Ya.Ub("active_view_measurable")};
  9688. g.k.vx=function(){this.Ya.Ub("active_view_viewable")};
  9689. g.k.sx=function(){this.Ya.Ub("active_view_fully_viewable_audible_half_duration")};
  9690. g.k.qx=function(){this.Ya.Ub("audio_measurable")};
  9691. g.k.ox=function(){this.Ya.Ub("audio_audible")};rDa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(zJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(GJ(d,{Kd:b,Ge:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"===c.slotType?new pDa(a,c,d,this.Ha,this.Oa,this.Aa,this.ub):new OCa(a,c,d,this.Ha,this.Oa,this.Aa,this.ub);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
  9692. };var SJ={contentCpn:"",Us:new Map};CDa.prototype.Dm=function(a,b){RJ(this.Lf,a,b)};var znb,N2,DDa;
  9693. znb={tla:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",oqa:"AUTHENTICATION_MALFORMED",pqa:"AUTHENTICATION_MISSING",Bqa:"BAD_REQUEST",Sra:"CAST_SESSION_DEVICE_MISMATCHED",Tra:"CAST_SESSION_VIDEO_MISMATCHED",Ura:"CAST_TOKEN_EXPIRED",Vra:"CAST_TOKEN_FAILED",Wra:"CAST_TOKEN_MALFORMED",Isa:"CGI_PARAMS_MALFORMED",Jsa:"CGI_PARAMS_MISSING",Cxa:"DEVICE_FALLBACK",aza:"GENERIC_WITH_LINK_AND_CPN",bza:"ERROR_HDCP",gza:"LICENSE",jza:"VIDEO_UNAVAILABLE",hHa:"FORMAT_UNAVAILABLE",nHa:"GEO_FAILURE",
  9694. JIa:"HTML5_AUDIO_RENDERER_ERROR",KIa:"GENERIC_WITHOUT_LINK",LIa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",MIa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",NIa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",WIa:"HTML5_SPS_UMP_STATUS_REJECTED",eKa:"INVALID_DRM_MESSAGE",x4a:"PURCHASE_NOT_FOUND",y4a:"PURCHASE_REFUNDED",A5a:"RENTAL_EXPIRED",I5a:"RETRYABLE_ERROR",I6a:"SERVER_ERROR",h8a:"SIGNATURE_EXPIRED",Oab:"STOPPED_BY_ANOTHER_PLAYBACK",Ybb:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Zbb:"STREAMING_NOT_ALLOWED",
  9695. acb:"STREAM_LICENSE_NOT_FOUND",Ydb:"TOO_MANY_REQUESTS",Zdb:"TOO_MANY_REQUESTS_WITH_LINK",eeb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",feb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",jkb:"VIDEO_FORBIDDEN",Ekb:"VIDEO_NOT_FOUND"};N2={};
  9696. g.RV=(N2.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",N2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",N2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",N2.LICENSE="Sorry, there was an error licensing this video.",N2.VIDEO_UNAVAILABLE=
  9697. "Video unavailable",N2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",N2.GEO_FAILURE="This video isn't available in your country.",N2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",N2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",N2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",N2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
  9698. N2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",N2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",N2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",N2.PURCHASE_NOT_FOUND="This video requires payment.",N2.PURCHASE_REFUNDED="This video's purchase has been refunded.",N2.RENTAL_EXPIRED="This video's rental has expired.",N2.CAST_SESSION_DEVICE_MISMATCHED=
  9699. "The device in the cast session doesn't match the requested one.",N2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",N2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",N2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",N2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",N2.SERVER_ERROR="There was an internal server error. Please try again later.",N2.STOPPED_BY_ANOTHER_PLAYBACK=
  9700. "Your account is playing this video in another location. Please reload this page to resume watching.",N2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",N2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",N2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",N2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",N2.TOO_MANY_REQUESTS="Please log in to watch this video.",
  9701. N2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",N2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",N2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",N2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",N2.VIDEO_FORBIDDEN="Access to this video is forbidden.",N2.VIDEO_NOT_FOUND="This video can not be found.",N2);
  9702. DDa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
  9703. 5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var Anb;var Bnb=g.oc(),Cnb=Bnb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Cnb||2>Cnb.length)Anb=void 0;else{var Dnb=Bnb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Anb=Dnb&&6===Dnb.length?Number(Dnb[5].replace("_",".")):0}var IS=Anb,MV=0<=IS;g.y(g.cK,SB);g.cK.prototype.T=function(a,b,c,d,e){return SB.prototype.T.call(this,a,b,c,d,e)};var O2={},FSa=(O2.FAIRPLAY="fairplay",O2.PLAYREADY="playready",O2.WIDEVINE="widevine",O2.CLEARKEY=null,O2.FLASHACCESS=null,O2.UNKNOWN=null,O2.WIDEVINE_CLASSIC=null,O2);dK.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var P2={},rP=(P2.WIDTH={name:"width",video:!0,valid:640,On:99999},P2.HEIGHT={name:"height",video:!0,valid:360,On:99999},P2.FRAMERATE={name:"framerate",video:!0,valid:30,On:9999},P2.BITRATE={name:"bitrate",video:!0,valid:3E5,On:2E9},P2.EOTF={name:"eotf",video:!0,valid:"bt709",On:"catavision"},P2.CHANNELS={name:"channels",video:!1,valid:2,On:99},P2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",On:"invalidformat"},P2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
  9704. On:"nope"},P2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",On:"av99.0.05M.08"},P2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",On:"invalid"},P2);var Enb=["h","H"],Fnb=["9","("],Gnb=["9h","(h"],Hnb=["8","*"],Inb=["a","A"],Jnb=["o","O"],Knb=["m","M"],Lnb=["mac3","MAC3"],Mnb=["meac3","MEAC3"],Q2={},eTa=(Q2.h=Enb,Q2.H=Enb,Q2["9"]=Fnb,Q2["("]=Fnb,Q2["9h"]=Gnb,Q2["(h"]=Gnb,Q2["8"]=Hnb,Q2["*"]=Hnb,Q2.a=Inb,Q2.A=Inb,Q2.o=Jnb,Q2.O=Jnb,Q2.m=Knb,Q2.M=Knb,Q2.mac3=Lnb,Q2.MAC3=Lnb,Q2.meac3=Mnb,Q2.MEAC3=Mnb,Q2),Nnb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),oQa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var R2={},iK=(R2["0"]="f",R2["160"]="h",R2["133"]="h",R2["134"]="h",R2["135"]="h",R2["136"]="h",R2["137"]="h",R2["264"]="h",R2["266"]="h",R2["138"]="h",R2["298"]="h",R2["299"]="h",R2["304"]="h",R2["305"]="h",R2["214"]="h",R2["216"]="h",R2["374"]="h",R2["375"]="h",R2["140"]="a",R2["141"]="ah",R2["327"]="sa",R2["258"]="m",R2["380"]="mac3",R2["328"]="meac3",R2["161"]="H",R2["142"]="H",R2["143"]="H",R2["144"]="H",R2["222"]="H",R2["223"]="H",R2["145"]="H",R2["224"]="H",R2["225"]="H",R2["146"]="H",R2["226"]=
  9705. "H",R2["227"]="H",R2["147"]="H",R2["384"]="H",R2["376"]="H",R2["385"]="H",R2["377"]="H",R2["149"]="A",R2["261"]="M",R2["381"]="MAC3",R2["329"]="MEAC3",R2["598"]="9",R2["278"]="9",R2["242"]="9",R2["243"]="9",R2["244"]="9",R2["775"]="9",R2["776"]="9",R2["777"]="9",R2["778"]="9",R2["779"]="9",R2["780"]="9",R2["781"]="9",R2["782"]="9",R2["783"]="9",R2["247"]="9",R2["248"]="9",R2["353"]="9",R2["355"]="9",R2["356"]="9",R2["271"]="9",R2["577"]="9",R2["313"]="9",R2["579"]="9",R2["272"]="9",R2["302"]="9",
  9706. R2["303"]="9",R2["407"]="9",R2["408"]="9",R2["308"]="9",R2["315"]="9",R2["330"]="9h",R2["331"]="9h",R2["332"]="9h",R2["333"]="9h",R2["334"]="9h",R2["335"]="9h",R2["336"]="9h",R2["337"]="9h",R2["338"]="so",R2["600"]="o",R2["250"]="o",R2["251"]="o",R2["194"]="*",R2["195"]="*",R2["220"]="*",R2["221"]="*",R2["196"]="*",R2["197"]="*",R2["279"]="(",R2["280"]="(",R2["317"]="(",R2["318"]="(",R2["273"]="(",R2["274"]="(",R2["357"]="(",R2["358"]="(",R2["275"]="(",R2["359"]="(",R2["360"]="(",R2["276"]="(",R2["583"]=
  9707. "(",R2["584"]="(",R2["314"]="(",R2["585"]="(",R2["561"]="(",R2["277"]="(",R2["361"]="(h",R2["362"]="(h",R2["363"]="(h",R2["364"]="(h",R2["365"]="(h",R2["366"]="(h",R2["591"]="(h",R2["592"]="(h",R2["367"]="(h",R2["586"]="(h",R2["587"]="(h",R2["368"]="(h",R2["588"]="(h",R2["562"]="(h",R2["409"]="(",R2["410"]="(",R2["411"]="(",R2["412"]="(",R2["557"]="(",R2["558"]="(",R2["394"]="1",R2["395"]="1",R2["396"]="1",R2["397"]="1",R2["398"]="1",R2["399"]="1",R2["400"]="1",R2["401"]="1",R2["571"]="1",R2["402"]=
  9708. "1",R2["694"]="1h",R2["695"]="1h",R2["696"]="1h",R2["697"]="1h",R2["698"]="1h",R2["699"]="1h",R2["700"]="1h",R2["701"]="1h",R2["702"]="1h",R2["703"]="1h",R2["386"]="3",R2["387"]="w",R2["406"]="6",R2["645"]="(",R2["646"]="(",R2["647"]="(",R2["648"]="(",R2["649"]="(",R2["650"]="(",R2["651"]="(",R2["652"]="(",R2["653"]="(",R2["654"]="(",R2["655"]="(",R2["656"]="(",R2["657"]="(",R2["658"]="(",R2["659"]="(",R2["660"]="(",R2["661"]="(",R2["662"]="(",R2["663"]="(",R2["664"]="(",R2["665"]="(",R2["666"]="(",
  9709. R2["667"]="(",R2["668"]="(",R2["669"]="(",R2["670"]="(",R2["671"]="(",R2["672"]="(",R2["673"]="(",R2["674"]="(h",R2["675"]="(h",R2["676"]="(h",R2["677"]="(h",R2["678"]="(h",R2["679"]="(h",R2["680"]="(h",R2["681"]="(h",R2["682"]="(h",R2["683"]="(h",R2["684"]="(h",R2["685"]="(h",R2["686"]="(h",R2["687"]="(h",R2["688"]="A",R2["689"]="A",R2["690"]="A",R2["691"]="MEAC3",R2["773"]="i",R2);var S2={},CSa=(S2.STEREO_LAYOUT_UNKNOWN=0,S2.STEREO_LAYOUT_LEFT_RIGHT=1,S2.STEREO_LAYOUT_TOP_BOTTOM=2,S2);var T2,fP;T2={};g.eK=(T2.auto=0,T2.tiny=144,T2.light=144,T2.small=240,T2.medium=360,T2.large=480,T2.hd720=720,T2.hd1080=1080,T2.hd1440=1440,T2.hd2160=2160,T2.hd2880=2880,T2.highres=4320,T2);fP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var gK="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");fK.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};jK.prototype.Me=function(){return 2===this.containerType};
  9710. jK.prototype.isEncrypted=function(){return!!this.le};
  9711. jK.prototype.Ch=function(){return!!this.audio};
  9712. jK.prototype.vg=function(){return!!this.video};g.y(CK,g.aF);g.k=CK.prototype;g.k.appendBuffer=function(a,b,c){if(this.Qd.hE()!==this.appendWindowStart+this.start||this.Qd.eJ()!==this.appendWindowEnd+this.start||this.Qd.Kc()!==this.timestampOffset+this.start)this.Qd.supports(1),this.Qd.JS(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Qd.rq(this.timestampOffset+this.start);this.Qd.appendBuffer(a,b,c)};
  9713. g.k.abort=function(){this.Qd.abort()};
  9714. g.k.remove=function(a,b){this.Qd.remove(a+this.start,b+this.start)};
  9715. g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
  9716. g.k.clear=function(){this.Qd.clear()};
  9717. g.k.JS=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
  9718. g.k.vP=function(){return this.timestampOffset+this.start};
  9719. g.k.hE=function(){return this.appendWindowStart};
  9720. g.k.eJ=function(){return this.appendWindowEnd};
  9721. g.k.rq=function(a){this.timestampOffset=a};
  9722. g.k.Kc=function(){return this.timestampOffset};
  9723. g.k.Je=function(a){a=this.Qd.Je(void 0===a?!1:a);return BK(a,this.start,this.end)};
  9724. g.k.dk=function(){return this.Qd.dk()};
  9725. g.k.CJ=function(){return this.Qd.CJ()};
  9726. g.k.xm=function(){return this.Qd.xm()};
  9727. g.k.fQ=function(){return this.Qd.fQ()};
  9728. g.k.nz=function(){this.Qd.nz()};
  9729. g.k.Uw=function(a){return this.Qd.Uw(a)};
  9730. g.k.nw=function(){return this.Qd.nw()};
  9731. g.k.kJ=function(){return this.Qd.kJ()};
  9732. g.k.FT=function(a,b){this.Qd.FT(a,b)};
  9733. g.k.supports=function(a){return this.Qd.supports(a)};
  9734. g.k.mJ=function(){return this.Qd.mJ()};
  9735. g.k.isView=function(){return!0};
  9736. g.k.oI=function(){return this.Qd.oI()?this.isActive:!1};
  9737. g.k.isLocked=function(){return this.TT&&!this.isActive};
  9738. g.k.kc=function(a){a=this.Qd.kc(a);a.vw=this.start+"-"+this.end;return a};
  9739. g.k.lJ=function(){return this.Qd.lJ()};
  9740. g.k.uE=function(){return this.Qd.uE()};
  9741. g.k.pP=function(){return this.Qd.pP()};
  9742. g.k.va=function(){cF(this.Qd,this.xY);g.aF.prototype.va.call(this)};
  9743. g.k.l1=function(a){this.isActive=a;this.TT=this.TT||this.isActive};var ZX=!1;g.y(DK,g.aF);g.k=DK.prototype;g.k.appendBuffer=function(a,b,c){this.FD=!1;c&&(this.iF=c);if(a.length){var d;(null==(d=this.Sb)?0:d.appendBuffer)?this.Sb.appendBuffer(a):this.Sb?this.Sb.append(a):this.pg&&this.pg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.uQ=this.iF),3===b.type&&(this.If=b),this.hF.push(b.zd()),4<this.hF.length&&this.hF.shift());this.KB&&(2<=this.KB.length||1048576<a.length?delete this.KB:this.KB.push(a))};
  9744. g.k.abort=function(){try{this.Sb?this.Sb.abort():this.pg&&this.pg.webkitSourceAbort(this.id)}catch(a){g5a&&g.IE(new g.eC("Error while abort the source buffer: "+a.name+", "+a.message))}this.iF=this.If=null};
  9745. g.k.remove=function(a,b,c){this.FD=!1;var d;if(null==(d=this.Sb)?0:d.remove)c&&c({b:vK(this.Je()),s:a,e:b}),this.Sb.remove(a,b)};
  9746. g.k.removeAll=function(){this.remove(this.hE(),this.eJ())};
  9747. g.k.clear=function(){this.xm()||(this.abort(),this.removeAll(),this.uQ=this.iF=this.If=null,this.appendWindowStart=this.timestampOffset=0,this.QN=uK([],[]),this.FD=!1,this.KB=TDa?[]:void 0,this.tI=!0)};
  9748. g.k.hE=function(){if(ZX&&this.vg)return this.appendWindowStart;var a;return(null==(a=this.Sb)?void 0:a.appendWindowStart)||0};
  9749. g.k.eJ=function(){var a;return(null==(a=this.Sb)?void 0:a.appendWindowEnd)||0};
  9750. g.k.JS=function(a,b){this.Sb&&(ZX&&this.vg?(this.appendWindowStart=a,this.Sb.appendWindowEnd=b):a>this.hE()?(this.Sb.appendWindowEnd=b,this.Sb.appendWindowStart=a):(this.Sb.appendWindowStart=a,this.Sb.appendWindowEnd=b))};
  9751. g.k.vP=function(){return this.timestampOffset};
  9752. g.k.rq=function(a){ZX?this.timestampOffset=a:this.supports(1)&&(this.Sb.timestampOffset=a)};
  9753. g.k.Kc=function(){return ZX?this.timestampOffset:this.supports(1)?this.Sb.timestampOffset:0};
  9754. g.k.Je=function(a){if(void 0===a?0:a)return this.FD||this.dk()||(this.QN=this.Je(!1),this.FD=!0),this.QN;try{return this.Sb?this.Sb.buffered:this.pg?this.pg.webkitSourceBuffered(this.id):uK([0],[Infinity])}catch(b){return uK([],[])}};
  9755. g.k.dk=function(){var a;return(null==(a=this.Sb)?void 0:a.updating)||!1};
  9756. g.k.xm=function(){return this.tI};
  9757. g.k.fQ=function(){return!this.tI&&this.dk()};
  9758. g.k.nz=function(){this.tI=!1};
  9759. g.k.Uw=function(a){var b=null==a?void 0:a.qb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.qb&&a===this.containerType};
  9760. g.k.nw=function(){return this.iF};
  9761. g.k.kJ=function(){return this.uQ};
  9762. g.k.FT=function(a,b){this.containerType!==a&&(this.supports(4),EK()&&this.Sb.changeType(b));this.containerType=a};
  9763. g.k.mJ=function(){return this.If};
  9764. g.k.isView=function(){return!1};
  9765. g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Sb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Sb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Sb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Sb)?0:e.addEventListener)&&(null==(f=this.Sb)?0:f.removeEventListener));case 4:return!(!this.Sb||!this.Sb.changeType);default:return!1}};
  9766. g.k.oI=function(){return!this.dk()};
  9767. g.k.isLocked=function(){return!1};
  9768. g.k.kc=function(a){a.to=this.Kc();a.up=this.dk();var b,c=(null==(b=this.Sb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Sb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=vK(this.Je())}catch(e){}return a};
  9769. g.k.CJ=function(){var a;return(null==(a=this.Sb)?void 0:a.writeHead)||0};
  9770. g.k.lJ=function(){for(var a={},b=0;b<this.hF.length;b++)a["s"+b]=this.hF[b];return a};
  9771. g.k.va=function(){this.supports(3)&&(this.Sb.removeEventListener("updateend",this.Ed),this.Sb.removeEventListener("error",this.Ed));g.aF.prototype.va.call(this)};
  9772. g.k.uE=function(){return this.containerType};
  9773. g.k.pP=function(){return this.KB};
  9774. var TDa=!1,g5a=!1;FK.prototype.dispose=function(){if(!this.Ma){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
  9775. FK.prototype.Ma=function(){return this.B};
  9776. FK.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.y(GK,g.I);g.k=GK.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Qa)?void 0:a.duration)||this.ra};
  9777. g.k.vl=function(a){try{this.Qa?this.Qa.duration=a:(this.ra=a,this.pg.webkitSourceSetDuration(a))}catch(b){}};
  9778. g.k.Kg=function(){try{return"closed"===MK(this)}catch(a){return!0}};
  9779. g.k.dk=function(){return!!(this.j&&this.j.dk()||this.B&&this.B.dk())};
  9780. g.k.isAsync=function(){return this.j?!!this.j.supports(0):YDa()};
  9781. g.k.Xba=function(){!this.Ma()&&HK(this)&&this.callback&&(this.callback(this),this.callback=null)};
  9782. g.k.Wba=function(){this.dispose()};
  9783. g.k.w5=function(a){if(IK&&!this.G&&a.xm()&&0===a.Je().length){var b;JK(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.ea)?void 0:KK(b)},!1);a.nz();this.xm()||(this.mediaElement.OJ=!0,this.mediaElement.setCurrentTime(0))}};
  9784. g.k.TN=function(){return!!this.j.supports(2)};
  9785. g.k.clear=function(){VDa(this,function(){});
  9786. var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
  9787. g.k.xm=function(){var a,b;return(null==(a=this.B)?void 0:a.xm())||(null==(b=this.j)?void 0:b.xm())};
  9788. g.k.Uw=function(a,b){return!!this.j&&!!this.B&&this.j.Uw(b)&&this.B.Uw(a)};
  9789. var IK=!1;NK.prototype.then=function(a,b){return this.promise.then(a,b)};
  9790. NK.prototype.resolve=function(a){this.yS(a)};
  9791. NK.prototype.reject=function(a){this.lS(a)};g.y(OK,g.I);g.k=OK.prototype;g.k.QH=function(){return this.resource};
  9792. g.k.activate=function(a){var b="";a&&(fEa(this,a),b=a.resource);if(!this.Df()||b)b&&this.Df()!==b&&(this.SH(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.MS(!(null==a||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.VW),this.N=!0)};
  9793. g.k.lr=function(a,b){if(this.B)if(f5a&&LK(this.B)&&!this.B.Uw(a,b)){var c;JK(this,{l:"megms",sr:null==(c=this.ea)?void 0:KK(c)});dEa(this);this.stopVideo()}else return this.Qa=this.B,this.B=void 0,this.Qa;a=window.MediaSource?new GK(this,new window.MediaSource,!1):window.ManagedMediaSource?new GK(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new GK(this,new window.WebKitMediaSource,!1):new GK(this,void 0,!1);this.activate(a.C);this.Qa=a;this.OJ=!1;return a};
  9794. g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Df()&&this.resource&&(g.IE(Error("playVideo without src")),this.SH(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.ea)?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&MV&&7<=(IS||0)&&FDa(this,function(){g.XA(function(){eEa(a,a.getCurrentTime(),0)},500)});
  9795. return b};
  9796. g.k.seekTo=function(a){0<this.Kk()&&(MV&&4>IS&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
  9797. g.k.Eo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;JK(this,{l:"mer",sr:null==(a=this.ea)?void 0:KK(a),rs:MK(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.eC("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.IE(a),this.stopVideo()}else this.stopVideo()};
  9798. g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||aEa(b);if(d5a){if(!this.C){var c=new NK;c.then(void 0,function(){});
  9799. this.C=c;e5a&&this.pause();g.XA(function(){a.C===c&&(iEa(a),c.resolve())},200)}}else iEa(this)}};
  9800. g.k.Sz=function(){var a=this.Sh();return 0<zK(a)&&this.getDuration()?yK(a,this.getCurrentTime()):0};
  9801. g.k.uw=function(){var a=this.getDuration();return Infinity===a?1:a?this.Sz()/a:0};
  9802. g.k.kc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:vK(this.yw(),",",3),vbu:vK(this.Sh()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Kk(),vns:""+this.pJ(),vec:""+this.Yg(),vemsg:this.qf(),vvol:""+this.getVolume(),vdom:""+ +this.gQ(),vsrc:""+ +!!this.Df(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
  9803. g.k.hasError=function(){return 0<this.Yg()};
  9804. g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.FO(a)};
  9805. g.k.removeEventListener=function(a,b){this.D.Pc(a,b,!1,this)};
  9806. g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(f5a){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.xm())||b<=((null==c?void 0:c.N)||0)){var d;JK(this,{l:"mede",sr:null==(d=this.ea)?void 0:KK(d),et:a.type});return!1}if(this.OJ)return JK(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.OJ=!1),!1}return this.D.dispatchEvent(a)};
  9807. g.k.CO=function(){this.K=!1};
  9808. g.k.zO=function(){this.K=!0;this.RB(!0)};
  9809. g.k.VW=function(){this.K&&!this.oJ()&&this.RB(!0)};
  9810. g.k.va=function(){this.N&&this.removeEventListener("volumechange",this.VW);d5a&&iEa(this);g.I.prototype.va.call(this)};
  9811. var d5a=!1,e5a=!1,f5a=!1,hEa=!1;g.k=g.QK.prototype;g.k.isPaused=function(){return g.TF(this,4)};
  9812. g.k.isPlaying=function(){return g.TF(this,8)&&!g.TF(this,512)&&!g.TF(this,64)&&!g.TF(this,2)};
  9813. g.k.isOrWillBePlaying=function(){return g.TF(this,8)&&!g.TF(this,2)&&!g.TF(this,1024)};
  9814. g.k.isCued=function(){return g.TF(this,64)&&!g.TF(this,8)&&!g.TF(this,4)};
  9815. g.k.isBuffering=function(){return g.TF(this,1)&&!g.TF(this,2)};
  9816. g.k.isError=function(){return g.TF(this,128)};
  9817. g.k.isSuspended=function(){return g.TF(this,512)};
  9818. g.k.YE=function(){return g.TF(this,64)&&g.TF(this,4)};
  9819. g.k.toString=function(){return"PSt."+this.state.toString(16)};
  9820. var U2={},V2=(U2.BUFFERING="buffering-mode",U2.CUED="cued-mode",U2.ENDED="ended-mode",U2.PAUSED="paused-mode",U2.PLAYING="playing-mode",U2.SEEKING="seeking-mode",U2.UNSTARTED="unstarted-mode",U2);g.y(YK,g.I);g.k=YK.prototype;g.k.cP=function(){return this.B};
  9821. g.k.Vb=function(){return this.slot};
  9822. g.k.eb=function(){return this.layout};
  9823. g.k.init=function(){var a=zI(this.layout.Ba,"metadata_type_video_length_seconds"),b=zI(this.layout.Ba,"metadata_type_active_view_traffic_type");vJ(this.layout.Cb)&&s1(this.ub.get(),this.layout.layoutId,b,a,this);vhb(this.Oa.get(),this);this.Jw()};
  9824. g.k.release=function(){vJ(this.layout.Cb)&&t1(this.ub.get(),this.layout.layoutId);whb(this.Oa.get(),this);this.Mx()};
  9825. g.k.Rr=function(){};
  9826. g.k.Ur=function(){};
  9827. g.k.startRendering=function(a){var b=ZK(this),c=b.layoutId,d=b.Op;if(b.Tw){var e={};UJ(b.Lf,"slse",(e.ec=c,e.is=d,e.ctp=TJ(c),e))}a.layoutId!==this.layout.layoutId?this.Io.jf(this.slot,a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.hc="rendering_start_requested",this.iq(-1),this.ws(a),this.uf()||
  9828. this.fI(!1))};
  9829. g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.hc="rendering";this.j=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();this.Ub("impression");this.Ub("start");if(this.Ha.get().isMuted()){dL(this,"mute");var c;a=(null==(c=XK(this))?void 0:c.muteCommands)||[];ZI(this.Lb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Mh("fullscreen");var d;c=(null==(d=XK(this))?void 0:d.fullscreenCommands)||[];ZI(this.Lb.get(),c,this.layout.layoutId)}this.uf()||(d=this.yc.get(),
  9830. d.D&&!d.B&&(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?iH("pbs",void 0,d.actionType):eH("pbs",void 0,d.actionType),g.aB("finalize_all_timelines")&&yza(d.actionType))));this.iq(1);this.sR(b);var e;b=(null==(e=XK(this))?void 0:e.impressionCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9831. g.k.YA=function(a,b,c){this.K={rM:3,tH:"load_timeout"===a?402:400,errorMessage:b.message};this.Ub("error");var d;a=(null==(d=XK(this))?void 0:d.errorCommands)||[];ZI(this.Lb.get(),a,this.layout.layoutId);this.uf()||this.Io.jf(this.slot,this.layout,b,c)};
  9832. g.k.j2=function(){if("rendering"===this.hc){dL(this,"pause");var a,b=(null==(a=XK(this))?void 0:a.pauseCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId);this.iq(2)}};
  9833. g.k.l2=function(){if("rendering"===this.hc){dL(this,"resume");var a,b=(null==(a=XK(this))?void 0:a.resumeCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9834. g.k.Xz=function(a,b){b=void 0===b?!1:b;if("rendering"===this.hc){BJ(this.Ya,1E3*a,b);this.j||BJ(this.Ya,1E3*a,void 0===b?!1:b);var c=this.Rz();c&&(c/=1E3,(a>=.25*c||b)&&this.Ub("first_quartile"),(a>=.5*c||b)&&this.Ub("midpoint"),(a>=.75*c||b)&&this.Ub("third_quartile"),this.Aa.get().J.U().experiments.fb("enable_progress_command_flush_on_kabuki")?LCa(this.C,1E3*a,b):LCa(this.C,1E3*a,rEa(this)?b:!1))}};
  9835. g.k.Jg=function(){var a;return(null==(a=this.Ra.get().Yd(1))?void 0:a.clientPlaybackNonce)||""};
  9836. g.k.dJ=function(){var a;return(null==(a=this.Ra.get().Yd(2))?void 0:a.clientPlaybackNonce)||""};
  9837. g.k.qy=function(a,b){a.layoutId!==this.layout.layoutId?this.Io.jf(this.slot,a,new wI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()};
  9838. g.k.Ec=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.hc="not_rendering",this.layoutExitReason=void 0,this.uf()||(a="normal"!==c||this.position+1===this.G)&&this.fI(a),this.JK(b,c),this.iq(0),c){case "abandoned":if(CJ(this.Ya,"impression")){var d,e=(null==(d=XK(this))?void 0:d.abandonCommands)||[];ZI(this.Lb.get(),e,this.layout.layoutId)}break;case "normal":d=(null==(e=XK(this))?void 0:e.completeCommands)||[];ZI(this.Lb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=
  9839. (null==(f=XK(this))?void 0:f.skipCommands)||[];ZI(this.Lb.get(),d,this.layout.layoutId)}};
  9840. g.k.pw=function(){return this.layout.layoutId};
  9841. g.k.RO=function(){return this.K};
  9842. g.k.tx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_measurable");var a,b=(null==(a=XK(this))?void 0:a.activeViewMeasurableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9843. g.k.sx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=XK(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9844. g.k.vx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_viewable");var a,b=(null==(a=XK(this))?void 0:a.activeViewViewableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9845. g.k.ox=function(){if("rendering"===this.hc){this.Ya.Ub("audio_audible");var a,b=(null==(a=XK(this))?void 0:a.activeViewAudioAudibleCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9846. g.k.qx=function(){if("rendering"===this.hc){this.Ya.Ub("audio_measurable");var a,b=(null==(a=XK(this))?void 0:a.activeViewAudioMeasurableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}};
  9847. g.k.fI=function(a){this.yc.get().fI(zI(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)};
  9848. g.k.onFullscreenToggled=function(a){if("rendering"===this.hc)if(a){this.Mh("fullscreen");var b,c=(null==(b=XK(this))?void 0:b.fullscreenCommands)||[];ZI(this.Lb.get(),c,this.layout.layoutId)}else this.Mh("end_fullscreen"),b=(null==(c=XK(this))?void 0:c.endFullscreenCommands)||[],ZI(this.Lb.get(),b,this.layout.layoutId)};
  9849. g.k.onVolumeChange=function(){if("rendering"===this.hc)if(this.Ha.get().isMuted()){dL(this,"mute");var a,b=(null==(a=XK(this))?void 0:a.muteCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}else dL(this,"unmute"),a=(null==(b=XK(this))?void 0:b.unmuteCommands)||[],ZI(this.Lb.get(),a,this.layout.layoutId)};
  9850. g.k.jh=function(){};
  9851. g.k.yj=function(){};
  9852. g.k.Vi=function(){};
  9853. g.k.xj=function(){};
  9854. g.k.Aj=function(){};
  9855. g.k.Mh=function(a){this.Ya.Mh(a,!this.j)};
  9856. g.k.Ub=function(a){this.Ya.Ub(a,!this.j)};
  9857. g.k.uf=function(){var a=zI(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(RF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().uf(a)};g.y(gL,YK);g.k=gL.prototype;g.k.jO=function(){this.layoutExitReason?this.Io.Ec(this.slot,this.layout,this.layoutExitReason):nEa(this)};
  9858. g.k.Jw=function(){};
  9859. g.k.Mx=function(){var a=this.Oa.get();a.gH===this&&(a.gH=null);this.We.stop()};
  9860. g.k.Rr=function(){this.We.stop();YK.prototype.j2.call(this)};
  9861. g.k.Ur=function(){tEa(this);YK.prototype.l2.call(this)};
  9862. g.k.Rz=function(){return zI(this.eb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
  9863. g.k.Gd=function(a,b){var c=this;this.qy(a,function(){"rendering_stop_requested"!==c.hc&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),c.We.stop())})};
  9864. g.k.JP=function(){zDa(ZK(this));this.Xs()};
  9865. g.k.Sc=function(){var a=Date.now(),b=a-this.xQ;this.xQ=a;this.cj+=b;this.cj>=this.Rz()?this.qY():(this.Xz(this.cj/1E3),sEa(this,this.cj))};
  9866. g.k.JK=function(){};
  9867. g.k.Ei=function(){};
  9868. g.y(vEa,gL);g.k=vEa.prototype;g.k.kh=function(a){if("not_rendering"!==this.hc){a=aL(this,a);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.hc?b&&PJ(a)&&this.xz():b?g.VF(a,2)?RF("Receive player ended event during MediaBreak",this.Vb(),this.eb()):bL(this,a):this.Bw()}};
  9869. g.k.ws=function(){pEa(this);Ghb(this.Ha.get());this.Oa.get().gH=this;hH("pbp")||hH("pbs")||iH("pbp");hH("pbp","watch")||hH("pbs","watch")||iH("pbp",void 0,"watch");this.xz()};
  9870. g.k.sR=function(a){this.yc.get();var b=zI(a.Ba,"metadata_type_ad_placement_config").kind,c=0===this.position;a=zI(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:cL(b),adType:IEa(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";eH("ad_mbs",void 0,d);g.fH(a,d);tEa(this)};
  9871. g.k.Bw=function(){this.Xs()};
  9872. g.k.qY=function(){uEa(this);this.Xs()};
  9873. g.y(hL,gL);g.k=hL.prototype;g.k.kh=function(a){"not_rendering"!==this.hc&&(a=aL(this,a),bL(this,a))};
  9874. g.k.ws=function(){this.Oa.get().gH=this;this.xz()};
  9875. g.k.sR=function(){tEa(this)};
  9876. g.k.Bw=function(){oEa(this);this.Xs()};
  9877. g.k.qY=function(){uEa(this);this.Io.HB(this.Vb(),this.eb(),"normal")};
  9878. g.y(wEa,hL);wEa.prototype.Gd=function(a,b){var c=this;this.qy(a,function(){tDa(c.B,b)&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),c.We.stop())})};g.y(kL,YK);g.k=kL.prototype;g.k.jO=function(){this.layoutExitReason?this.Io.Ec(this.slot,this.layout,this.layoutExitReason):nEa(this)};
  9879. g.k.Bw=function(){oEa(this);this.Xs()};
  9880. g.k.kh=function(a){if("not_rendering"!==this.hc){a=aL(this,a);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.hc?b&&PJ(a)&&this.xz():b?g.VF(a,2)?this.Xs():bL(this,a):this.Bw()}};
  9881. g.k.Jw=function(){zI(this.eb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=zI(this.eb().Ba,"metadata_type_shrunken_player_bytes_config")};
  9882. g.k.Mx=function(){zI(this.eb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Ws&&this.Oc.get().removeCueRange(this.Ws);this.Ws=void 0;var a;null==(a=this.pK)||a.dispose();this.QA&&this.QA.dispose()};
  9883. g.k.ws=function(a){var b=iL(this.Aa.get()),c=jL(this.Aa.get());if(b&&c&&!this.uf()){c=zI(a.Ba,"metadata_type_preload_player_vars");var d=g.EI(this.Aa.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.QA&&this.QA.start(1E3*d)}AEa(this,a);pEa(this);b?(c=this.ud.get(),a=zI(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):Phb(this.ud.get(),zI(a.Ba,"metadata_type_player_vars"));var e;null==(e=this.pK)||e.start();b||this.ud.get().J.playVideo(2)};
  9884. g.k.sR=function(){var a;null==(a=this.pK)||a.stop();this.Ws="adcompletioncuerange:"+this.eb().layoutId;this.Oc.get().addCueRange(this.Ws,0x7ffffffffffff,0x8000000000000,!1,this,2,2);QM(this.context.Aa.get())&&(a={},this.context.Pq.Dm("mccr",(a.cid=this.Ws,a)));(this.adCpn=this.dJ())||RF("Media layout confirmed started, but ad CPN not set.");this.Xc.get().Gu("onAdStart",this.adCpn);this.mW=Date.now()};
  9885. g.k.Rz=function(){var a;return null==(a=this.Ra.get().Yd(2))?void 0:a.Cca};
  9886. g.k.xL=function(){this.Ya.Mh("clickthrough")};
  9887. g.k.Gd=function(a,b){var c=this;this.qy(a,function(){if("rendering_stop_requested"!==c.hc){c.hc="rendering_stop_requested";c.layoutExitReason=b;$K(c,b);var d;null==(d=c.pK)||d.stop();c.QA&&c.QA.stop();BEa(c)}})};
  9888. g.k.onCueRangeEnter=function(a){a!==this.Ws?RF("Received CueRangeEnter signal for unknown layout.",this.Vb(),this.eb(),{cueRangeId:a}):(this.Oc.get().removeCueRange(this.Ws),this.Ws=void 0,a=zI(this.eb().Ba,"metadata_type_video_length_seconds"),this.Xz(a,!0),this.Ub("complete"))};
  9889. g.k.JK=function(a,b){"abandoned"!==b&&this.Xc.get().Gu("onAdComplete");this.Xc.get().Gu("onAdEnd",this.adCpn)};
  9890. g.k.JP=function(){zDa(ZK(this));this.Xs()};
  9891. g.k.onCueRangeExit=function(){};
  9892. g.k.Ei=function(a){"rendering"===this.hc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().WB(!0),this.Xz(a))};
  9893. g.k.Xz=function(a,b){YK.prototype.Xz.call(this,a,void 0===b?!1:b);if(5<=a&&!this.BY){b=Date.now()-this.mW;a*=1E3;var c={contentCpn:this.Jg(),adCpn:this.dJ()},d=1E3>b?0:1;iya(d,"i.k_",{metadata:c,D6:b,E6:Math.floor(a/1E3)});EA("IKDSTAT",d);0===d&&this.dT()&&this.Xc.get().Gu("onAbnormalityDetected");this.BY=!0}};
  9894. g.k.dT=function(){if(!this.Aa.get().dT())return!1;var a=zI(this.Vb().Ba,"metadata_type_player_bytes_slot_metadata");void 0===a&&RF("PlayerBytesSlotMetadata is not filled",this.Vb(),this.eb());return!0===(null==a?void 0:a.Ut)};g.y(lL,kL);lL.prototype.kh=function(a){"not_rendering"!==this.hc&&(a=aL(this,a),bL(this,a))};
  9895. lL.prototype.ws=function(a){AEa(this,a);this.xz()};
  9896. g.y(CEa,lL);CEa.prototype.Gd=function(a,b){var c=this;this.qy(a,function(){tDa(c.B,b)&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),BEa(c))})};g.y(KEa,g.I);g.k=KEa.prototype;g.k.init=function(){var a=zI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().addListener(this);this.Hd.init();uDa([this.layout],this.Ra.get());this.BN()};
  9897. g.k.BN=function(){var a=zI(this.Hd.eb().Ba,"metadata_type_player_vars");a?this.ud.get().addPlayerResponseForAssociation({playerVars:a}):(a=JEa(this.Hd.eb()),this.ud.get().addPlayerResponseForAssociation({FI:a}))};
  9898. g.k.release=function(){this.Ra.get().removeListener(this);this.Hd.release();vDa()};
  9899. g.k.MK=function(){};
  9900. g.k.dB=function(a,b,c){BDa({cpn:a,Lf:this.Ra.get(),Op:!0});if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&RF("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.As.Ec(this.slot,this.layout,d);this.j=void 0}else this.B&&RF("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?qL(this.rf,this.layout,"normal"):4===c?(a=new wI("Non video ad expired during SSAP single layout.",
  9901. {playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Hd.YA("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.As.jf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):RF("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})};
  9902. g.k.GF=function(a){ADa({cpn:a,Lf:this.Ra.get(),Op:!0});this.layout.layoutId===a&&$Ia(this.ze,this.slot.slotId)};
  9903. g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.As.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),GI(this.wc(),this),this.Hd.startRendering(this.layout),this.As.vc(this.slot,this.layout))};
  9904. g.k.Gd=function(a,b){this.Hd.Gd(this.layout,b);this.Ha.get().removeListener(this);this.B?(this.As.Ec(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&RF("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.Mc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().Yd(1).clientPlaybackNonce))};
  9905. g.k.Vb=function(){return this.slot};
  9906. g.k.eb=function(){return this.layout};
  9907. g.k.Rr=function(){this.Hd.Rr()};
  9908. g.k.Ur=function(){this.Hd.Ur()};
  9909. g.k.kB=function(a,b){RF("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
  9910. g.k.vc=function(a,b){this.Hd.vc(a,b)};
  9911. g.k.Ec=function(a,b,c){b.layoutId===this.layout.layoutId&&HI(this.wc(),this);this.Hd.Ec(a,b,c)};
  9912. g.k.Ng=function(){};
  9913. g.k.Kh=function(){};
  9914. g.k.Hh=function(){};
  9915. g.k.sf=function(){};
  9916. g.k.tf=function(){};
  9917. g.k.Ih=function(){};
  9918. g.k.Jh=function(){};
  9919. g.k.ih=function(){};
  9920. g.k.gg=function(){};
  9921. g.k.Mg=function(){};
  9922. g.k.Ei=function(a){this.Hd.Ei(a)};
  9923. g.k.kh=function(a){if(a.state.isError()){var b,c=new wI("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Ig)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Hd.YA(null==(d=a.state.Ig)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.As.jf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.kh(a)};
  9924. g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)};
  9925. g.k.jh=function(a){this.Hd.jh(a)};
  9926. g.k.Vi=function(a){this.Hd.Vi(a)};
  9927. g.k.onVolumeChange=function(){this.Hd.onVolumeChange()};
  9928. g.k.xj=function(){};
  9929. g.k.Aj=function(){};
  9930. g.k.yj=function(){};g.y(mL,g.I);g.k=mL.prototype;g.k.Vb=function(){return this.slot};
  9931. g.k.eb=function(){return this.layout};
  9932. g.k.MK=function(){};
  9933. g.k.Rr=function(a,b){var c=this.xd[this.jd];b.layoutId!==oL(c,a,b)?RF("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Rr()};
  9934. g.k.Ur=function(a,b){var c=this.xd[this.jd];b.layoutId!==oL(c,a,b)?RF("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ur()};
  9935. g.k.kB=function(a,b){var c=this.xd[this.jd];this.jd===this.xd.length-1&&RF("Unexpected skip requested during the last sublayout",c.Vb(),c.eb(),{requestingSlot:a,requestingLayout:b});b.layoutId!==oL(c,a,b)?RF("onSkipRequested for a PlayerBytes layout that is not currently active",c.Vb(),c.eb(),{requestingSlot:a,requestingLayout:b}):this.ZI(c.Vb(),c.eb(),"skipped")};
  9936. g.k.aca=function(a,b){var c=Object.assign({},nL(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Op;if(c.Tw){var f={};UJ(c.Lf,"wrse",(f.ec=d,f.is=e,f.ctp=TJ(d),f))}nBa(this.xs,a,b)};
  9937. g.k.vc=function(a,b){var c=this.xd[this.jd];c&&c.vc(a,b)};
  9938. g.k.Ec=function(a,b,c){b.layoutId===this.eb().layoutId&&(this.Iw=!1,HI(this.wc(),this));var d=this.xd[this.jd];d&&d.Ec(a,b,c)};
  9939. g.k.CQ=function(){var a=this.xd[this.jd];a&&a.Bw()};
  9940. g.k.Ei=function(a){var b=this.xd[this.jd];b&&b.Ei(a)};
  9941. g.k.CP=function(a,b,c){-1===this.jd&&(this.callback.vc(this.slot,this.layout),this.jd++);var d=this.xd[this.jd];d?(d.YA(a,b,c),this.uf()&&this.callback.jf(this.slot,this.layout,b,c)):RF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jd),layoutId:this.eb().layoutId})};
  9942. g.k.onFullscreenToggled=function(a){var b=this.xd[this.jd];if(b)b.onFullscreenToggled(a)};
  9943. g.k.jh=function(a){var b=this.xd[this.jd];b&&b.jh(a)};
  9944. g.k.Vi=function(a){var b=this.xd[this.jd];b&&b.Vi(a)};
  9945. g.k.onVolumeChange=function(){var a=this.xd[this.jd];if(a)a.onVolumeChange()};
  9946. g.k.kO=function(a,b,c){oBa(this.xs,a,b,c);this.LP=!1};
  9947. g.k.I1=function(a){this.LP=!0;a.startRendering(a.eb())};
  9948. g.k.init=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().Yd(1).daiEnabled&&RF("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.xd.length)throw new xI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.xd.length)});if(a=zI(this.eb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.xd);for(var b=a.next();!b.done;b=a.next())b=
  9949. b.value,b.init(),kBa(this.xs,this.slot,b.eb()),lBa(this.xs,this.slot,b.eb());if(this.uf())for(this.Ra.get().addListener(this),uDa(MEa(this),this.Ra.get()),a=MEa(this),a=g.u(a),b=a.next();!b.done;b=a.next())this.BN(b.value)};
  9950. g.k.BN=function(a){var b=zI(a.Ba,"metadata_type_player_vars");b?("LAYOUT_TYPE_MEDIA"!==a.layoutType&&RF("Non-video ad contains playerVars",this.slot,a),this.ud.get().addPlayerResponseForAssociation({playerVars:b})):(a=JEa(a),this.ud.get().addPlayerResponseForAssociation({FI:a}))};
  9951. g.k.release=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=zI(this.eb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.xd);for(var b=a.next();!b.done;b=a.next())b=b.value,mBa(this.xs,this.slot,b.eb()),b.release();this.uf()&&(this.Ra.get().removeListener(this),vDa())};
  9952. g.k.qy=function(a){return a.layoutId!==this.eb().layoutId?(this.callback.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eb().layoutId+("and LayoutType: "+this.eb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
  9953. g.k.ZH=function(){this.Ha.get().addListener(this);GI(this.wc(),this)};
  9954. g.k.kh=function(a){if(a.state.isError()){var b,c;this.CP(null==(b=a.state.Ig)?void 0:b.errorCode,new wI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.xd[this.jd])&&b.kh(a)};
  9955. g.k.uf=function(){var a=zI(this.Vb().Ba,"metadata_type_eligible_for_ssap");return void 0===a?(RF("Expected SSAP eligibility in PlayerBytes slots",this.Vb(),this.eb()),!1):this.Aa.get().uf(a)};
  9956. g.k.yj=function(){};
  9957. g.k.Ng=function(){};
  9958. g.k.Kh=function(){};
  9959. g.k.Hh=function(){};
  9960. g.k.sf=function(){};
  9961. g.k.tf=function(){};
  9962. g.k.Ih=function(){};
  9963. g.k.Jh=function(){};
  9964. g.k.ih=function(){};
  9965. g.k.gg=function(){};
  9966. g.k.Mg=function(){};
  9967. g.k.xj=function(){};
  9968. g.k.Aj=function(){};
  9969. g.y(SEa,mL);g.k=SEa.prototype;g.k.O_=function(a,b,c){this.ZI(a,b,c)};
  9970. g.k.N_=function(a,b){this.ZI(a,b,"error")};
  9971. g.k.ZI=function(a,b,c){var d=this;pL(this,a,b,c,function(){PEa(d,d.jd+1)})};
  9972. g.k.startRendering=function(a){this.qy(a)&&(this.ZH(),o1(this.Aa.get())&&i1(this.yc.get()),dhb(this.Aa.get())||Ghb(this.Ha.get()),o1(this.Aa.get())||i1(this.yc.get()),-1===this.jd&&PEa(this,this.jd+1))};
  9973. g.k.Gd=function(a,b){var c=this;this.Iw=!0;this.jd===this.xd.length?this.callback.Ec(this.slot,this.layout,b):(a=this.xd[this.jd],a.Gd(a.eb(),b),this.UP=function(){c.callback.Ec(c.slot,c.layout,b)});
  9974. this.Ha.get().J.Nx();Phb(this.ud.get(),{});a=r1(this.Ha.get(),1);a.isPaused()&&!g.TF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Iw&&this.CQ()};
  9975. g.k.dB=function(){};
  9976. g.k.GF=function(){};
  9977. g.k.HB=function(){};
  9978. g.k.yI=function(){};
  9979. g.y(rL,mL);g.k=rL.prototype;g.k.dB=function(a,b){var c=this;BDa(Object.assign({},nL(this),{cpn:a}));var d=this.xd[this.jd];d&&this.LP&&(d.eb().layoutId!==a&&RF("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.SW=function(e){e.layoutId!==a&&RF("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.xd.some(function(f){return f.eb().layoutId===b})||(c.jd=c.xd.length,qL(c.Yh,c.layout,"normal"))},d.JP())};
  9980. g.k.GF=function(a){ADa(Object.assign({},nL(this),{cpn:a}));var b=this.xd.findIndex(function(c){return c.eb().layoutId===a});
  9981. -1!==b&&(-1===this.jd&&$Ia(this.ze,this.slot.slotId),REa(this,b))};
  9982. g.k.O_=function(a,b,c){a=Object.assign({},nL(this),{layoutId:b.layoutId,layoutExitReason:c});var d=a.layoutId,e=a.layoutExitReason,f={};UJ(a.Lf,"prse",(f.xc=d,f.ler=e,f.ctp=TJ(d),f));TEa(this,b,c)};
  9983. g.k.N_=function(a,b,c,d){this.callback.jf(this.slot,this.layout,c,d)};
  9984. g.k.ZI=function(a,b,c){this.yI(b,this.jd+1,c)};
  9985. g.k.startRendering=function(a){this.qy(a)&&this.ZH()};
  9986. g.k.Gd=function(a,b){var c=this;if(this.jd===this.xd.length)this.callback.Ec(this.slot,this.layout,b);else{a=this.xd[this.jd];if(!a){RF("Expected active sublayout when composite layout stops rendering",this.slot,this.layout,{activeSubLayoutIndex:this.jd,subLraCount:this.xd.length});return}a.Gd(a.eb(),b);this.UP=function(){c.callback.Ec(c.slot,c.layout,b)};
  9987. this.Mc.get().finishSegmentByCpn(a.eb().layoutId,this.Ra.get().Yd(1).clientPlaybackNonce)}this.Ha.get().removeListener(this)};
  9988. g.k.HB=function(a,b,c){this.yI(b,this.jd+1,c)};
  9989. g.k.yI=function(a,b,c){var d=this;pL(this,this.slot,a,c,function(){if(b>=d.xd.length+1||0>b)RF("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.jd=b;if(b===d.xd.length){var e=d.Ra.get().Yd(1).clientPlaybackNonce;qL(d.Yh,d.layout,"normal")}else e=d.xd[b].eb().layoutId;d.Mc.get().finishSegmentByCpn(a.layoutId,e)}})};
  9990. g.y(UEa,rL);g.k=UEa.prototype;g.k.I1=function(a){QF(void 0===this.Ri,"replacing another adapter");this.Ri=a;a.startRendering(a.eb())};
  9991. g.k.kO=function(a,b,c){oBa(this.xs,a,b,c);var d;QF(b.layoutId===(null==(d=this.Ri)?void 0:d.eb().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:lya(b)})&&(this.Ri=void 0)};
  9992. g.k.release=function(){rL.prototype.release.call(this);QF(void 0===this.Ri,"currentAdapter is still active during release");this.Ri=void 0};
  9993. g.k.Gd=function(a,b){QF(a.layoutId===this.eb().layoutId,"StopRendering for wrong layout")&&tDa(this.hO,b)&&this.Ri&&(this.Ri.Gd(this.Ri.eb(),b),2===this.Ha.get().getPresentingPlayerType()&&this.Mc.get().finishSegmentByCpn(this.Ri.eb().layoutId,this.Ra.get().Yd(1).clientPlaybackNonce))};
  9994. g.k.Ec=function(a,b,c){rL.prototype.Ec.call(this,a,b,c);b.layoutId===this.eb().layoutId&&this.Ha.get().removeListener(this)};
  9995. g.k.Jg=function(){return this.Ra.get().Yd(1).clientPlaybackNonce};
  9996. g.k.dB=function(a,b,c){BDa(Object.assign({},nL(this),{cpn:a}));this.Ri&&this.Ri.eb().layoutId===a&&WEa(this,this.Ri,c);b===this.Jg()&&(void 0!==this.Ri&&(RF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:lya(this.Ri.eb())}),WEa(this,this.Ri,c)),2>this.hO.currentState&&qL(this.Yh,this.layout,VEa(c)),this.callback.Ec(this.slot,this.layout,this.hO.j))};g.y(YEa,g.I);g.k=YEa.prototype;g.k.Vb=function(){return this.Hd.Vb()};
  9997. g.k.eb=function(){return this.Hd.eb()};
  9998. g.k.init=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Jw()};
  9999. g.k.Jw=function(){this.Hd.init()};
  10000. g.k.release=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Mx()};
  10001. g.k.Mx=function(){this.Hd.release()};
  10002. g.k.Rr=function(){this.Hd.Rr()};
  10003. g.k.Ur=function(){this.Hd.Ur()};
  10004. g.k.kB=function(a,b){RF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Vb(),this.eb(),{requestingSlot:a,requestingLayout:b})};
  10005. g.k.startRendering=function(a){a.layoutId!==this.eb().layoutId?this.callback.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eb().layoutId+("and LayoutType: "+this.eb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),GI(this.wc(),this),o1(this.Aa.get())&&i1(this.yc.get()),dhb(this.Aa.get())||Ghb(this.Ha.get()),o1(this.Aa.get())||i1(this.yc.get()),this.ws(a))};
  10006. g.k.ws=function(a){this.Hd.startRendering(a)};
  10007. g.k.Gd=function(a,b){this.Iw=!0;this.TL(a,b);this.Ha.get().J.Nx();Phb(this.ud.get(),{});a=r1(this.Ha.get(),1);a.isPaused()&&!g.TF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Iw&&this.CQ()};
  10008. g.k.TL=function(a,b){this.Hd.Gd(a,b)};
  10009. g.k.vc=function(a,b){this.Hd.vc(a,b)};
  10010. g.k.Ec=function(a,b,c){this.JK(b,c);this.Hd.Ec(a,b,c);b.layoutId===this.eb().layoutId&&QEa(this.yc.get())};
  10011. g.k.JK=function(a){a.layoutId===this.eb().layoutId&&(this.Iw=!1,HI(this.wc(),this))};
  10012. g.k.CQ=function(){this.Hd.Bw()};
  10013. g.k.Ei=function(a){this.Hd.Ei(a)};
  10014. g.k.kh=function(a){if(a.state.isError()){var b,c;this.CP(null==(b=a.state.Ig)?void 0:b.errorCode,new wI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.kh(a)};
  10015. g.k.CP=function(a,b,c){this.Hd.YA(a,b,c)};
  10016. g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)};
  10017. g.k.jh=function(a){this.Hd.jh(a)};
  10018. g.k.Vi=function(a){this.Hd.Vi(a)};
  10019. g.k.onVolumeChange=function(){this.Hd.onVolumeChange()};
  10020. g.k.yj=function(){};
  10021. g.k.Ng=function(){};
  10022. g.k.Kh=function(){};
  10023. g.k.Hh=function(){};
  10024. g.k.sf=function(){};
  10025. g.k.tf=function(){};
  10026. g.k.Ih=function(){};
  10027. g.k.Jh=function(){};
  10028. g.k.ih=function(){};
  10029. g.k.gg=function(){};
  10030. g.k.Mg=function(){};
  10031. g.k.xj=function(){};
  10032. g.k.Aj=function(){};g.k=sL.prototype;g.k.Vb=function(){return this.slot};
  10033. g.k.eb=function(){return this.layout};
  10034. g.k.init=function(){this.Af.get().addListener(this);this.Ha.get().addListener(this);this.Jw();var a=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),b=zI(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ra.get().dw)?void 0:c.clientPlaybackNonce;c=this.layout.Yb.adClientDataEntry;tL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Af.get();e=$Ea(e.C,a,b);null!==e&&(tL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
  10035. cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Mc.get().mz(e,b))};
  10036. g.k.release=function(){this.Mx();this.Af.get().removeListener(this);this.Ha.get().removeListener(this)};
  10037. g.k.startRendering=function(){this.ws();this.callback.vc(this.slot,this.layout)};
  10038. g.k.Gd=function(a,b){this.TL(b);null!==this.driftRecoveryMs&&(bFa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(aFa(this)-zI(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().J.jr()).toString()}),this.driftRecoveryMs=null);this.callback.Ec(this.slot,this.layout,b)};
  10039. g.k.w_=function(){return!1};
  10040. g.k.s_=function(a){var b=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=zI(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;tL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ra.get().dw)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Yb.adClientDataEntry}});this.Mc.get().mz(a,c)}};
  10041. g.k.Ei=function(a){this.j_(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(PIa(this.D.get(),this.layout.layoutId)){var b=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=aFa(this),e=this.Ha.get().J.jr(),f=Math.min(a+e,d/1E3);f<=a?bFa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(bFa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
  10042. b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().J.seekTo(f,void 0,void 0,1))}}};
  10043. g.k.jh=function(){};
  10044. g.k.yj=function(){};
  10045. g.k.Vi=function(){};
  10046. g.k.onVolumeChange=function(){};
  10047. g.k.xj=function(){};
  10048. g.k.Aj=function(){};g.y(cFa,sL);g.k=cFa.prototype;g.k.Jw=function(){this.Ra.get().addListener(this);this.C.forEach(function(a){a.init()});
  10049. null!=this.B&&uL(this.Oa.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
  10050. g.k.Mx=function(){this.Ra.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
  10051. g.k.ws=function(){if(this.j)RF("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ra.get().dw)?void 0:a.layoutId;eFa(this,b)}};
  10052. g.k.TL=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Vl)||e.Gd(null==(b=this.j)?void 0:null==(c=b.Vl)?void 0:c.eb(),a);this.j=null};
  10053. g.k.MK=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;uL(this.Oa.get(),"ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Vl)?void 0:d.eb().layoutId))}var e;if(this.j&&(null==(e=this.j.Vl)?void 0:e.eb().layoutId)!==a){var f,h;null==(h=this.j.Vl)||h.Gd(null==(f=this.j.Vl)?void 0:f.eb(),"normal");eFa(this,a)}};
  10054. g.k.dB=function(){};
  10055. g.k.GF=function(){};
  10056. g.k.j_=function(){};
  10057. g.k.kh=function(){};
  10058. g.k.onFullscreenToggled=function(){};g.k=sFa.prototype;g.k.Vb=function(){return this.slot};
  10059. g.k.eb=function(){return this.layout};
  10060. g.k.cP=function(){RF("Should not get exitStateMachine for DAI");return new sDa};
  10061. g.k.init=function(){var a=this;zI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.bd=fFa(this.slot,this.layout,zI(this.layout.Ba,"metadata_type_player_vars"),zI(this.layout.Ba,"metadata_type_layout_enter_ms"),zI(this.layout.Ba,"metadata_type_layout_exit_ms"),1E3*zI(this.layout.Ba,"metadata_type_video_length_seconds"),this.Mc.get(),this.ys.get(),function(){var d=Object,e=d.assign,f=vFa(a.layout);var h=zI(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},vFa(h),
  10062. {adPlacementConfig:zI(h.Ba,"metadata_type_ad_placement_config"),subLayouts:zI(h.Ba,"metadata_type_sub_layouts").map(vFa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:tI(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:zI(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
  10063. this.Ha.get().addListener(this);var b=zI(this.layout.Ba,"metadata_type_video_length_seconds"),c=zI(this.layout.Ba,"metadata_type_active_view_traffic_type");vJ(this.layout.Cb)&&s1(this.ub.get(),this.layout.layoutId,c,b,this);kBa(this.callback,this.slot,this.layout);lBa(this.callback,this.slot,this.layout)};
  10064. g.k.release=function(){this.Ha.get().removeListener(this);vJ(this.layout.Cb)&&t1(this.ub.get(),this.layout.layoutId);this.Aa.get();mBa(this.callback,this.slot,this.layout)};
  10065. g.k.startRendering=function(){var a=this;tI(this.layout.Ba,"metadata_type_survey_overlay")&&uL(this.Oa.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.hc)RF("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:tI(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:zI(this.layout.Ba,"metadata_type_survey_overlay")});else{this.hc={Wn:null,HG:!1};if(bhb(this.Aa.get())){var b;this.adCpn=null==(b=this.Ra.get().Yd(2))?void 0:b.clientPlaybackNonce}this.Aa.get().J.U().experiments.fb("html5_disable_sodar_for_tvhtml5")||
  10066. gFa(this.slot,this.layout,this.df.get());this.Ya.Ub("start");if(KM(this.Aa.get())){b=r1(this.Ha.get());var c=zI(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);iFa(this.Ya,this.hc.Wn,b,c,d,function(){return void uFa(a,"teois")})}nBa(this.callback,this.slot,this.layout);
  10067. tI(this.layout.Ba,"metadata_type_survey_overlay")&&uL(this.Oa.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
  10068. g.k.Gd=function(a,b){var c=this;if(this.hc){if(KM(this.Aa.get()))if(null===this.bd)RF("Unexpected media sub layout exited without a timeline playback ID");else{a=zI(this.layout.Ba,"metadata_type_video_length_seconds");var d=Ehb(this.Ha.get(),this.bd);bhb(this.Aa.get())&&void 0===this.adCpn&&RF("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:zI(this.layout.Ba,"metadata_type_content_cpn")});rCa(this.Ya,d,this.adCpn);jFa(this.Ya,null,this.hc.Wn,a,d,function(e){return void tFa(c,
  10069. e,"fue")},bhb(this.Aa.get()))}this.hc=null;
  10070. oBa(this.callback,this.slot,this.layout,b)}else RF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  10071. g.k.YA=function(){};
  10072. g.k.Bw=function(){};
  10073. g.k.JP=function(){};
  10074. g.k.Ei=function(a){var b=this;if(this.hc){if(CJ(this.Ya,"impression")){var c=r1(this.Ha.get()),d=zI(this.layout.Ba,"metadata_type_video_length_seconds");kFa(this.Ya,c,a,this.hc.Wn,d,function(e){return void tFa(b,e,"tpaqe")})}this.hc.Wn=a}};
  10075. g.k.kh=function(a){var b=this;if(this.hc){KM(this.Aa.get())||this.hc.HG||(this.hc.HG=!0,a=new g.SF(a.state,new g.QK));var c=zI(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);hFa(this.Ya,this.hc.Wn,a,c,d,!KM(this.Aa.get()),function(){return void uFa(b,"teosc")})}};
  10076. g.k.onFullscreenToggled=function(a){lFa(this.Ya,a)};
  10077. g.k.jh=function(){};
  10078. g.k.yj=function(){};
  10079. g.k.Vi=function(){};
  10080. g.k.kB=function(a,b){var c;a=this.Oa.get();var d="ti."+CJ(this.Ya,"impression")+";ts."+CJ(this.Ya,"skip")+";hp.",e;var f=!(null==(e=this.Ya.C.get("skip"))||!e.length);uL(a,"ads_dsr",d+f+";cpn."+zI(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ra.get().Yd(2))?void 0:c.clientPlaybackNonce)+";sl."+(zI(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));CJ(this.Ya,"impression")&&this.Ya.Ub("skip");b=this.Ra.get().Yd(1).Rn&&this.Aa.get().J.U().experiments.fb("html5_lifa_skip_to_content");
  10081. this.Mc.get().qs(b)||RF("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
  10082. g.k.onVolumeChange=function(){};
  10083. g.k.vc=function(){};
  10084. g.k.Ec=function(){};
  10085. g.k.Rr=function(){};
  10086. g.k.Ur=function(){};
  10087. g.k.xL=function(){mFa(this.Ya)};
  10088. g.k.tx=function(){nFa(this.Ya)};
  10089. g.k.sx=function(){oFa(this.Ya)};
  10090. g.k.vx=function(){pFa(this.Ya)};
  10091. g.k.ox=function(){qFa(this.Ya)};
  10092. g.k.qx=function(){rFa(this.Ya)};
  10093. g.k.xj=function(){};
  10094. g.k.Aj=function(){};g.y(wFa,sL);g.k=wFa.prototype;
  10095. g.k.Jw=function(){var a=this;zI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=zI(this.layout.Ba,"metadata_type_layout_exit_ms");this.bd=fFa(this.slot,this.layout,zI(this.layout.Ba,"metadata_type_player_vars"),b,c,1E3*zI(this.layout.Ba,"metadata_type_video_length_seconds"),this.Mc.get(),this.ys.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:zI(a.layout.Ba,"metadata_type_ad_placement_config")}},
  10096. this.Oa.get());
  10097. var d=zI(this.layout.Ba,"metadata_type_video_length_seconds"),e=zI(this.layout.Ba,"metadata_type_active_view_traffic_type");vJ(this.layout.Cb)&&s1(this.ub.get(),this.layout.layoutId,e,d,this)};
  10098. g.k.Mx=function(){vJ(this.layout.Cb)&&t1(this.ub.get(),this.layout.layoutId)};
  10099. g.k.ws=function(){var a=this;if(this.hc)RF("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.hc={Wn:null,HG:!1},gFa(this.slot,this.layout,this.df.get()),this.Ya.Ub("start"),KM(this.Aa.get())){var b=r1(this.Ha.get()),c=zI(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);iFa(this.Ya,this.hc.Wn,b,c,d,function(){return void xFa(a,"teois")})}};
  10100. g.k.TL=function(){var a=this;if(this.hc){if(KM(this.Aa.get()))if(null===this.bd)RF("Unexpected single media layout exited without a timeline playback ID");else{var b=zI(this.layout.Ba,"metadata_type_video_length_seconds"),c=Ehb(this.Ha.get(),this.bd);rCa(this.Ya,c);jFa(this.Ya,null,this.hc.Wn,b,c,function(d){return void yFa(a,d,"fue")})}this.hc=null}else RF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
  10101. g.k.j_=function(a){var b=this;if(this.hc){if(CJ(this.Ya,"impression")){var c=r1(this.Ha.get()),d=zI(this.layout.Ba,"metadata_type_video_length_seconds");kFa(this.Ya,c,a,this.hc.Wn,d,function(e){return void yFa(b,e,"tpaqe")})}this.hc.Wn=a}};
  10102. g.k.kh=function(a){var b=this;if(this.hc){KM(this.Aa.get())||this.hc.HG||(this.hc.HG=!0,a=new g.SF(a.state,new g.QK));var c=zI(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);hFa(this.Ya,this.hc.Wn,a,c,d,!KM(this.Aa.get()),function(){return void xFa(b,"teosc")})}};
  10103. g.k.onFullscreenToggled=function(a){lFa(this.Ya,a)};
  10104. g.k.xL=function(){mFa(this.Ya)};
  10105. g.k.tx=function(){nFa(this.Ya)};
  10106. g.k.sx=function(){oFa(this.Ya)};
  10107. g.k.vx=function(){pFa(this.Ya)};
  10108. g.k.ox=function(){qFa(this.Ya)};
  10109. g.k.qx=function(){rFa(this.Ya)};zFa.prototype.build=function(a,b,c,d){if(tI(c.Ba,"metadata_type_dai")){var e=zI(d.Ba,"metadata_type_ad_placement_config");GJ(d,{Kd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Ge:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new yJ(d.Cb,this.Oa,e,d.layoutId,null),e=new wFa(a,c,d,this.Ra,this.Mc,this.ys,this.Af,this.Ha,e,this.Oa,this.df,this.j,this.ub,this.Aa)):
  10110. e=null;if(e)return e;a:{var f=zI(d.Ba,"metadata_type_sub_layouts"),h=zI(d.Ba,"metadata_type_ad_placement_config");if(GJ(d,{Kd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ge:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=zI(l.Ba,"metadata_type_media_sub_layout_index");if(!GJ(l,{Kd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
  10111. Ge:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new yJ(l.Cb,this.Oa,h,l.layoutId,m);e.push(new sFa(b,c,l,this.Mc,m,this.Ha,this.ys,this.ub,this.df,this.Aa,this.Oa,this.Ra))}b=new yJ(d.Cb,this.Oa,h,d.layoutId);a=new cFa(a,c,d,this.Ra,this.Mc,this.Af,this.Ha,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=ZEa(a,b,c,d,this.wc,this.ze,this.Yh,this.Oa,this.ub,this.df,this.ud,this.Ra,this.Ha,this.Oc,this.yc,this.Xc,this.Lb,this.Tf,this.Aa,this.Mc,this.context))return a;throw new wI("Unsupported layout with type: "+
  10112. d.layoutType+" and client metadata: "+AI(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};wL.prototype.build=function(a,b,c,d){if(a=ZEa(a,b,c,d,this.wc,this.ze,this.Yh,this.Oa,this.ub,this.df,this.ud,this.Ra,this.Ha,this.Oc,this.yc,this.Xc,this.Lb,this.Tf,this.Aa,this.Mc,this.context))return a;throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.y(AFa,$E);g.y(xL,rJ);xL.prototype.startRendering=function(a){var b=sJ(this.Ya),c={adsClientData:this.layout.Yb};this.j.push(new AFa(zI(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.eb().layoutId,c));rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
  10113. xL.prototype.eg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=zI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.kB(this.slot,this.layout):RF("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
  10114. xL.prototype.va=function(){rJ.prototype.va.call(this)};var BFa=new g.Ke(320,63);g.y(EFa,$E);g.y(AL,rJ);g.k=AL.prototype;g.k.Ei=function(){};
  10115. g.k.kh=function(){};
  10116. g.k.onFullscreenToggled=function(){};
  10117. g.k.jh=function(a){a&&YM(this.D,this.layout)};
  10118. g.k.yj=function(){};
  10119. g.k.Vi=function(a){var b=zL(this.layout);if(this.N=CFa(a,Fhb(this.Ha.get())))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),YM(this.D,this.layout)};
  10120. g.k.onVolumeChange=function(){};
  10121. g.k.pw=function(){return this.eb().layoutId};
  10122. g.k.RO=function(){return this.N};
  10123. g.k.eg=function(a){this.G.eg(a);"in_video_overlay_close_button"===a&&YM(this.D,this.layout)};
  10124. g.k.EJ=function(a){"invideo-overlay"===a&&YM(this.D,this.layout)};
  10125. g.k.Xp=function(){this.G.Xp()};
  10126. g.k.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.K.Ms=this};
  10127. g.k.Gd=function(a,b){rJ.prototype.Gd.call(this,a,b);b2(this.K,this)};
  10128. g.k.init=function(){rJ.prototype.init.call(this);vhb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new EFa(zL(this.layout),sJ(this.Ya),this.layout.layoutId,{adsClientData:this.layout.Yb}))};
  10129. g.k.release=function(){rJ.prototype.release.call(this);this.Ha.get().removeListener(this);whb(this.Oa.get(),this)};
  10130. g.k.xj=function(){};
  10131. g.k.Aj=function(){};g.y(BL,rJ);g.k=BL.prototype;g.k.init=function(){rJ.prototype.init.call(this);vhb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new EFa(zL(this.layout),sJ(this.Ya),this.layout.layoutId,{adsClientData:this.layout.Yb}))};
  10132. g.k.Xp=function(){this.G.Xp()};
  10133. g.k.startRendering=function(a){rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.K.Ms=this};
  10134. g.k.Gd=function(a,b){rJ.prototype.Gd.call(this,a,b);b2(this.K,this)};
  10135. g.k.eg=function(a){this.G.eg(a);"in_video_overlay_close_button"===a&&YM(this.D,this.layout)};
  10136. g.k.BP=function(a){if("invideo-overlay"===a){a=ZIa(this.Z,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
  10137. g.k.EJ=function(a){"invideo-overlay"===a&&YM(this.D,this.layout)};
  10138. g.k.AP=function(a){if("invideo-overlay"===a){a=ZIa(this.Z,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
  10139. g.k.Ei=function(){};
  10140. g.k.kh=function(){};
  10141. g.k.onFullscreenToggled=function(){};
  10142. g.k.jh=function(a){a&&YM(this.D,this.layout)};
  10143. g.k.yj=function(){};
  10144. g.k.Vi=function(a){var b=zL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=Fhb(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Ke(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Ke(0,0)}if(this.N=CFa(a,d,c))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),YM(this.D,this.layout)};
  10145. g.k.onVolumeChange=function(){};
  10146. g.k.pw=function(){return this.eb().layoutId};
  10147. g.k.RO=function(){return this.N};
  10148. g.k.release=function(){rJ.prototype.release.call(this);this.Ha.get().removeListener(this);whb(this.Oa.get(),this)};
  10149. g.k.xj=function(){};
  10150. g.k.Aj=function(){};CL.prototype.eg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().Un(1))||this.Ha.get().pauseVideo())};
  10151. CL.prototype.Xp=function(){this.j||this.Ha.get().resumeVideo(1)};g.y(HFa,$E);g.y(IFa,rJ);g.k=IFa.prototype;g.k.init=function(){rJ.prototype.init.call(this);this.Ha.get().addListener(this)};
  10152. g.k.startRendering=function(a){var b=zI(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new HFa(b,this.layout.layoutId,{adsClientData:this.layout.Yb}));rJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
  10153. g.k.vc=function(){};
  10154. g.k.eg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=zI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Rr(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Ur(this.slot,this.layout):RF("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
  10155. g.k.Vi=function(a){450>a.width&&YM(this.D,this.layout)};
  10156. g.k.onVolumeChange=function(){};
  10157. g.k.Ei=function(){};
  10158. g.k.onFullscreenToggled=function(){};
  10159. g.k.jh=function(){};
  10160. g.k.yj=function(){};
  10161. g.k.kh=function(){};
  10162. g.k.xj=function(){};
  10163. g.k.Aj=function(){};
  10164. g.k.va=function(){rJ.prototype.va.call(this)};
  10165. g.k.release=function(){rJ.prototype.release.call(this);this.Ha.get().removeListener(this)};JFa.prototype.build=function(a,b,c,d){if(b=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(GJ(d,GFa()))return new BL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,FFa()))return new AL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,{Kd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ge:["LAYOUT_TYPE_SURVEY"]}))return new IFa(c,d,a,this.Cc,this.B,this.Ha,this.Aa);if(GJ(d,
  10166. {Kd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ge:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new xL(c,d,a,this.Cc,this.Oa);if(GJ(d,mDa()))return new LJ(c,d,a,this.Cc,this.Ha,this.Aa);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};KFa.prototype.build=function(a,b,c,d){if(b=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(GJ(d,GFa()))return new BL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,FFa()))return new AL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.y(DL,KJ);DL.prototype.startRendering=function(a){KJ.prototype.startRendering.call(this,a);if(a.renderingContent?fDa(a,this.Ra.get().Yd(2)||void 0):zI(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?eDa(a,this.Ra.get().Yd(2)||void 0):zI(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.dn.get().J.jb("onAdMetadataAvailable",a)};MFa.prototype.build=function(a,b,c,d){if(GJ(d,LFa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.V(d.renderingContent,MJ))return new DL(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.dn,this.j,this.Ra);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};NFa.prototype.build=function(a,b,c,d){if(GJ(d,LFa()))return new DL(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.dn,this.j,this.Ra);if(a=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.j,this.Aa))return a;throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};SL.prototype.clone=function(a){var b=this;return new SL(function(){return b.triggerId},a)};TL.prototype.clone=function(a){var b=this;return new TL(function(){return b.triggerId},a)};UL.prototype.clone=function(a){var b=this;return new UL(function(){return b.triggerId},a)};VL.prototype.clone=function(a){var b=this;return new VL(function(){return b.triggerId},a)};WL.prototype.clone=function(a){var b=this;return new WL(function(){return b.triggerId},a)};XL.prototype.clone=function(a){var b=this;return new XL(function(){return b.triggerId},a)};g.y(sM,g.I);var qHa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Tc:[],layoutExitUserInputSubmittedTriggers:[]};var UHa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
  10167. "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var KR={YRa:1,ZRa:2,aSa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.y(JM,g.I);g.k=JM.prototype;g.k.w_=function(a){if(!this.j){var b;null==(b=this.Mc)||b.get().Du(a.identifier);return!1}IIa(this,this.j,a);return!0};
  10168. g.k.s_=function(){};
  10169. g.k.lk=function(a){this.j&&this.j.contentCpn!==a&&(RF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
  10170. g.k.ao=function(a){this.j&&this.j.contentCpn!==a&&RF("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
  10171. g.k.va=function(){g.I.prototype.va.call(this);this.j=null};var K1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Onb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.y(MM,g.I);g.k=MM.prototype;g.k.vc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(uI(b,this.K)||uI(b,Onb))){var d=this.Ra.get().Yd(2),e=this.D(b,d||void 0);e?oJ(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[cHa(c.j.get(),e.contentCpn,e.xq,function(h){return c.G(h.slotId,"core",e,DI(c.Ne.get(),h))},e.inPlayerSlotId)];
  10172. e.instreamAdPlayerUnderlayRenderer&&dHa(c.Aa.get())&&f.push(OIa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):RF("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
  10173. g.k.Ng=function(){};
  10174. g.k.Kh=function(){};
  10175. g.k.sf=function(){};
  10176. g.k.Hh=function(){};
  10177. g.k.tf=function(){};
  10178. g.k.Ih=function(){};
  10179. g.k.Jh=function(){};
  10180. g.k.ih=function(){};
  10181. g.k.gg=function(){};
  10182. g.k.Mg=function(){};
  10183. g.k.Ec=function(){};g.y(NM,g.I);NM.prototype.lk=function(a,b,c,d,e,f,h){var l=this,m=this.Ra.get().Yd(1);!ahb(this.Aa.get())&&m.mp?y1(this.Ha.get()):(Xgb(this.yc.get(),d),oJ(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return EGa(l.j.get(),d,e,f,a,b,h,m,"")}),Tib(this.C))};
  10184. NM.prototype.ao=function(){};g.y(OM,g.I);g.y(PM,g.I);PM.prototype.onCueRangeEnter=function(){};
  10185. PM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Oc.get().removeCueRange(a),oJ(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=pJ(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?hJa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:iJa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:iJa(c.slotId,d,c.slotExpirationTriggers)})]},
  10186. c.slotId))};
  10187. PM.prototype.lk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Oc.get().removeCueRange(b);this.j.clear()};
  10188. PM.prototype.ao=function(){};g.y(RM,g.I);g.k=RM.prototype;g.k.Ng=function(){};
  10189. g.k.Kh=function(a){var b=this;g.jC(g.lC(),function(){var c=b.j.get(a);c&&RF("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.qa(c)).map(function(d){return d.layoutType})})},0)};
  10190. g.k.sf=function(){};
  10191. g.k.Hh=function(){};
  10192. g.k.tf=function(){};
  10193. g.k.Ih=function(){};
  10194. g.k.Jh=function(){};
  10195. g.k.ih=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
  10196. g.k.gg=function(a,b){this.aj.has(a)&&this.aj.get(a)===b&&RF("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):RF("Trying to unscheduled a Layout that was not scheduled.",a,b)}else RF("Trying to unscheduled a Layout that was not scheduled.",a,b)};
  10197. g.k.vc=function(a,b){this.aj.set(a,b)};
  10198. g.k.Ec=function(a){this.aj.delete(a)};
  10199. g.k.Mg=function(){};g.k=RIa.prototype;g.k.init=function(){};
  10200. g.k.Vb=function(){return this.slot};
  10201. g.k.UI=function(){this.callback.sf(this.slot)};
  10202. g.k.XI=function(){this.callback.tf(this.slot)};
  10203. g.k.release=function(){};SM.prototype.build=function(a,b){return new RIa(a,b)};g.k=SIa.prototype;g.k.init=function(){};
  10204. g.k.Vb=function(){return this.slot};
  10205. g.k.UI=function(){z1(this.Ha.get(),"ad-showing");this.callback.sf(this.slot)};
  10206. g.k.XI=function(){this.callback.tf(this.slot);A1(this.Ha.get(),"ad-showing")};
  10207. g.k.release=function(){};g.k=TIa.prototype;g.k.init=function(){};
  10208. g.k.Vb=function(){return this.slot};
  10209. g.k.UI=function(){z1(this.Ha.get(),"ad-showing");z1(this.Ha.get(),"ad-interrupting");this.B=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.sf(this.slot)};
  10210. g.k.XI=function(){A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");var a=this.B?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().J.seekTo(a,void 0,void 0,1);this.callback.tf(this.slot)};
  10211. g.k.release=function(){};g.k=UIa.prototype;g.k.init=function(){};
  10212. g.k.Vb=function(){return this.slot};
  10213. g.k.UI=function(){z1(this.Ha.get(),"ad-showing");z1(this.Ha.get(),"ad-interrupting");this.callback.sf(this.slot)};
  10214. g.k.XI=function(){y1(this.Ha.get());A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");this.callback.tf(this.slot)};
  10215. g.k.release=function(){y1(this.Ha.get())};TM.prototype.build=function(a,b){if(BI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new SIa(a,b,this.Ha);if(b.slotEntryTrigger instanceof NL&&BI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new TIa(a,b,this.Ha);if(BI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new UIa(a,b,this.Ha);throw new xI("Unsupported slot with type "+b.slotType+" and client metadata: "+(AI(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.y(UM,g.I);UM.prototype.j=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?QI(this.XM(),b):RF("Mute requested but no registered triggers can be activated.")};g.y(VM,UM);g.k=VM.prototype;g.k.eg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&QI(this.XM(),a)}else FM(this.Aa.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&VIa(this,b):"survey-submit"===a?VIa(this,b):"survey-single-select-answer-button"===a&&VIa(this,b)};
  10216. g.k.EP=function(a){UM.prototype.j.call(this,a)};
  10217. g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof YL||b instanceof RL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10218. g.k.Al=function(a){this.Wb.delete(a.triggerId)};
  10219. g.k.BP=function(){};
  10220. g.k.AP=function(){};
  10221. g.k.EJ=function(){};g.y(WM,g.I);g.k=WM.prototype;
  10222. g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof SL||b instanceof TL||b instanceof UL||b instanceof VL||b instanceof WL||b instanceof XL||b instanceof VFa||b instanceof KL||b instanceof ML||b instanceof LL||b instanceof OL||b instanceof JL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new $L(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof
  10223. WL&&this.G.has(b.triggeringSlotId)&&QI(this.j(),[a]);b instanceof SL&&this.C.has(b.triggeringSlotId)&&QI(this.j(),[a]);b instanceof KL&&this.B.has(b.triggeringLayoutId)&&QI(this.j(),[a])};
  10224. g.k.Al=function(a){this.Wb.delete(a.triggerId)};
  10225. g.k.Ng=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QI(this.j(),b)};
  10226. g.k.Kh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof XL&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&QI(this.j(),b)};
  10227. g.k.Hh=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof VFa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&QI(this.j(),b)};
  10228. g.k.sf=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QI(this.j(),b)};
  10229. g.k.tf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof TL)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof JL){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&QI(this.j(),b)};
  10230. g.k.Ih=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof UL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QI(this.j(),b)};
  10231. g.k.Jh=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&QI(this.j(),b)};
  10232. g.k.ih=function(a,b){this.K.add(b.layoutId)};
  10233. g.k.gg=function(a,b){this.K.delete(b.layoutId)};
  10234. g.k.vc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof KL)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof OL){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof JL&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&QI(this.j(),c)};
  10235. g.k.Ec=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof ML&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof LL){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&QI(this.j(),a)};
  10236. g.k.Mg=function(){};
  10237. g.k.lk=function(){this.D.clear()};
  10238. g.k.ao=function(){};g.y(XM,g.I);XM.prototype.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof HL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10239. XM.prototype.Al=function(a){this.Wb.delete(a.triggerId)};g.y(ZM,g.I);ZM.prototype.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof GL||b instanceof QL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10240. ZM.prototype.Al=function(a){this.Wb.delete(a.triggerId)};
  10241. ZM.prototype.lk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof GL&&l.trigger.Wu===a&&f.push(l);e.call(d,b,g.qa(f));if(!ahb(this.context.Aa.get())){d=b.push;e=d.apply;f=[];h=g.u(this.Wb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof QL){var m=l.trigger.j===a;m?c&&m&&(RF("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}),
  10242. f.push(l)):f.push(l)}e.call(d,b,g.qa(f))}b.length&&QI(this.j(),b)};
  10243. ZM.prototype.ao=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.u(this.Wb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof QL&&l.j===a&&e.push(h)}d.call(c,b,g.qa(e));b.length&&QI(this.j(),b)};g.y($M,g.I);g.k=$M.prototype;g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof NL)WIa(this,a,b,c,d,e,b.j.start,b.j.end,b.Wu,b.visible);else if(b instanceof IL)WIa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Wu,b.visible);else throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
  10244. g.k.Al=function(a){var b=this.Wb.get(a.triggerId);b&&this.Oc.get().removeCueRange(b.GI);this.Wb.delete(a.triggerId)};
  10245. g.k.onCueRangeEnter=function(a){var b=XIa(this,a);if(b&&(b=this.Wb.get(b)))if(g.TF(r1(this.Ha.get()),32))this.j.add(b.GI);else{var c=null==b?void 0:b.DD.trigger;if(c instanceof NL||c instanceof IL){if(QM(this.context.Aa.get())){var d=b.DD.slot,e=b.DD.layout,f={};this.context.Pq.Dm("cre",(f.ca=b.DD.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=null==e?void 0:e.layoutType,f.cid=a,f))}QI(this.B(),[b.DD])}}};
  10246. g.k.onCueRangeExit=function(a){(a=XIa(this,a))&&(a=this.Wb.get(a))&&this.j.delete(a.GI)};
  10247. g.k.kh=function(a){if(0>UF(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
  10248. g.k.Ng=function(){};
  10249. g.k.Kh=function(){};
  10250. g.k.Hh=function(){};
  10251. g.k.sf=function(){};
  10252. g.k.tf=function(){};
  10253. g.k.Ih=function(){};
  10254. g.k.Jh=function(){};
  10255. g.k.ih=function(){};
  10256. g.k.gg=function(){};
  10257. g.k.vc=function(){};
  10258. g.k.Ec=function(){};
  10259. g.k.Mg=function(){};
  10260. g.k.Ei=function(){};
  10261. g.k.onFullscreenToggled=function(){};
  10262. g.k.jh=function(){};
  10263. g.k.yj=function(){};
  10264. g.k.Vi=function(){};
  10265. g.k.onVolumeChange=function(){};
  10266. g.k.xj=function(){};
  10267. g.k.Aj=function(){};g.y(aN,g.I);g.k=aN.prototype;
  10268. g.k.ll=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new xI("Tried to re-register the trigger.");a=new $L(a,b,c,d);if(a.trigger instanceof RFa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof QFa)this.C.set(a.trigger.triggerId,a);else throw new xI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&QI(this.D(),[a])};
  10269. g.k.Al=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
  10270. g.k.MK=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.qa(YIa(this.C,this.j)));null!=a&&b.push.apply(b,g.qa(YIa(this.B,a)));this.j=a;b.length&&QI(this.D(),b)}};
  10271. g.k.dB=function(){};
  10272. g.k.GF=function(){};g.y(bN,g.I);g.k=bN.prototype;g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof PL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10273. g.k.Al=function(a){this.Wb.delete(a.triggerId)};
  10274. g.k.vc=function(){};
  10275. g.k.Ec=function(){};
  10276. g.k.Ng=function(){};
  10277. g.k.Kh=function(){};
  10278. g.k.Hh=function(){};
  10279. g.k.sf=function(){};
  10280. g.k.tf=function(){};
  10281. g.k.Ih=function(){};
  10282. g.k.Jh=function(){};
  10283. g.k.ih=function(){};
  10284. g.k.gg=function(){};
  10285. g.k.Mg=function(){};g.y(cN,g.I);g.k=cN.prototype;g.k.Mg=function(a,b){for(var c=[],d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&QI(this.j(),c)};
  10286. g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof KBa))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10287. g.k.Al=function(a){this.Wb.delete(a.triggerId)};
  10288. g.k.Ng=function(){};
  10289. g.k.Kh=function(){};
  10290. g.k.Hh=function(){};
  10291. g.k.sf=function(){};
  10292. g.k.tf=function(){};
  10293. g.k.Ih=function(){};
  10294. g.k.Jh=function(){};
  10295. g.k.ih=function(){};
  10296. g.k.gg=function(){};
  10297. g.k.vc=function(){};
  10298. g.k.Ec=function(){};g.y(dN,g.I);g.k=dN.prototype;g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof ZL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)};
  10299. g.k.Al=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof ZL))throw new xI("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
  10300. g.k.Ng=function(){};
  10301. g.k.Kh=function(){};
  10302. g.k.Hh=function(){};
  10303. g.k.sf=function(){};
  10304. g.k.tf=function(){};
  10305. g.k.Ih=function(){};
  10306. g.k.Jh=function(){};
  10307. g.k.ih=function(){};
  10308. g.k.gg=function(){};
  10309. g.k.Mg=function(){};
  10310. g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={dM:void 0},d=a.next())b.dM=d.value,d=new g.xv(function(e){return function(){var f=c.Wb.get(e.dM.triggerId);QI(c.C(),[f])}}(b),b.dM.durationMs),d.start(),this.B.set(b.dM.triggerId,d)}};
  10311. g.k.Ec=function(){};g.y(eN,g.I);eN.prototype.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof EL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new $L(a,b,c,d))};
  10312. eN.prototype.Al=function(a){this.Wb.delete(a.triggerId)};hN.prototype.Ut=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};g.y(jN,g.I);g.k=jN.prototype;g.k.logEvent=function(a){this.Ir(a)};
  10313. g.k.Kj=function(a,b,c){this.Ir(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
  10314. g.k.Ph=function(a,b,c,d){this.Ir(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)};
  10315. g.k.YM=function(a,b,c,d){FM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);eBa(this.j.get())&&this.Ir(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
  10316. g.k.TH=function(a,b,c,d,e){this.Ir(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
  10317. g.k.Sl=function(a,b,c,d){this.Ir("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})};
  10318. g.k.Ir=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=void 0===q?0:q;FM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,arb:d,erb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||r.aT())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||RF("Empty PACF event type",e,f);var v=eBa(r.j.get()),
  10319. w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=aBa(v,e));f&&(A.layoutData=bBa(v,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=CI(l.trigger,l.category));b&&(A.opportunityData=cBa(v,b,c,d));v={organicPlaybackContext:{contentCpn:r.Ra.get().Yd(1).clientPlaybackNonce}};v.organicPlaybackContext.isLivePlayback=r.Ra.get().Yd(1).Zb;var D;v.organicPlaybackContext.isMdxPlayback=
  10320. null==(D=r.Ra.get().Yd(1))?void 0:D.isMdxPlayback;var F;if(null==(F=r.Ra.get().Yd(1))?0:F.daiEnabled)v.organicPlaybackContext.isDaiContent=!0;var H;if(D=null==(H=r.Ra.get().Yd(2))?void 0:H.clientPlaybackNonce)v.adVideoPlaybackContext={adVideoCpn:D};v&&(A.externalContext=v);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.qC("adsClientStateChange",{adsClientEvent:w})}};
  10321. q&&0<q?g.jC(g.lC(),function(){return t()},q):t()}catch(v){FM(this.Aa.get(),"html5_log_pacf_logging_errors")&&g.jC(g.lC(),function(){RF(v instanceof Error?v:String(v),e,f,{pacf_message:"exception during pacf logging"})})}};
  10322. g.k.aT=function(){return this.Aa.get().aT()};g.y(nJa,jN);g.k=nJa.prototype;g.k.Kj=function(a,b,c){jN.prototype.Kj.call(this,a,b,c);QM(this.Aa.get())&&(c={},this.context.Pq.Dm("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
  10323. g.k.Ph=function(a,b,c,d){jN.prototype.Ph.call(this,a,b,c,d);QM(this.Aa.get())&&(d={},this.context.Pq.Dm("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=null==c?void 0:c.layoutType,d.li=null==c?void 0:c.layoutId,d)))};
  10324. g.k.TH=function(a,b,c,d,e){jN.prototype.TH.call(this,a,b,c,d,e);QM(this.Aa.get())&&(c={},this.context.Pq.Dm("pacf",(c.et=a,c.ot=b,c.ss=null==d?void 0:d.length,c)))};
  10325. g.k.YM=function(a,b,c,d){jN.prototype.YM.call(this,a,b,c,d);if(QM(this.Aa.get())){var e={};this.context.Pq.Dm("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
  10326. g.k.Sl=function(a,b,c,d){jN.prototype.Sl.call(this,a,b,c,d);if(QM(this.Aa.get())){var e={};this.context.Pq.Dm("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
  10327. g.k.Ir=function(a,b,c,d,e,f,h,l,m,n,p){if(g.PI(this.Aa.get().J.U())){var q=this.Aa.get();q=g.EI(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;jN.prototype.Ir.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};kN.prototype.clear=function(){this.j.clear()};var oJa=!1,mN,nN,oN,pN,qN;g.y(rN,g.I);
  10328. rN.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)pJa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(pJa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
  10329. rN.prototype.JL=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var qJa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
  10330. function b(d){return new Uint8Array(d)}
  10331. var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
  10332. var sN;rJa.prototype.lh=function(a,b){b=void 0===b?1:b;this.Rs+=b;this.B+=a;a/=b;for(var c=0;c<uN.length&&!(a<uN[c]);++c)this.j[c]+=b};
  10333. rJa.prototype.toString=function(){return""};
  10334. var uN=[20,100,500,2E3];g.k=uJa.prototype;g.k.isActive=function(){return!0};
  10335. g.k.SJ=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={V_:void 0,F0:void 0},b.hasOwnProperty(e)&&(d.V_=a.prototype[e],d.F0=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=(0,g.EC)();h=f.V_.apply(this,h);return xJa(c,h,f.F0,l)}}(d))}};
  10336. g.k.dQ=function(a,b){if(b){var c=this,d={},e;for(e in b)d={YW:void 0,VZ:void 0},b.hasOwnProperty(e)&&(d.VZ=a.prototype[e],d.YW=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=this,m=(0,g.EC)(),n=f.VZ.apply(l,h);return xJa(c,n,null,m,function(p){return f.YW.apply(l,[p].concat(h))})}}(d))}};
  10337. g.k.us=function(){return new tJa};
  10338. g.k.Wq=function(a,b,c){c=void 0===c?1:c;b instanceof tJa&&(vJa(this,a,(0,g.EC)()-b.startTimeMs,c),b.j=!0)};
  10339. g.k.Co=function(a,b){var c=(0,g.EC)();b=b();return xJa(this,b,a,c)};
  10340. g.k.IX=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(0===c.Rs)c=null;else{for(var d=Math.ceil(c.Rs).toFixed(0)+"."+c.B.toFixed(0),e=0;e<uN.length;++e)if(0<c.j[e])d+="."+uN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new sJa;return a};
  10341. g.k.toString=function(){return""};g.k=yJa.prototype;g.k.isActive=function(){return!1};
  10342. g.k.SJ=function(){};
  10343. g.k.dQ=function(){};
  10344. g.k.us=function(){};
  10345. g.k.Wq=function(){};
  10346. g.k.Co=function(a,b){return b()};
  10347. g.k.IX=function(){return{}};
  10348. g.k.toString=function(){return""};var W2,Pnb,Qnb,Rnb,Snb,Tnb,X2,DV,bZ,Ifb,fR;W2=new yJa;Pnb=!!+GA("html5_enable_profiler");Qnb=!!+GA("html5_onesie_enable_profiler");Rnb=!!+GA("html5_offline_encryption_enable_profiler");Snb=!!+GA("html5_performance_impact_profiling_timer_ms");Tnb=!!+GA("html5_drm_enable_profiler");X2=Pnb||Qnb||Rnb||Snb||Tnb?new uJa:W2;g.KX=Pnb?X2:W2;DV=Qnb?X2:W2;bZ=Rnb?X2:W2;Ifb=Snb?X2:W2;fR=Tnb?X2:W2;g.k=vN.prototype;g.k.encrypt=function(a){this.Id.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
  10349. g.k.JL=function(a){this.Id.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};
  10350. g.k.F9=function(a,b){return{profile:this.Id.Kp?"oals":"oalw",Rs:Math.ceil(b.byteLength/16)}};
  10351. g.k.Ma=function(){return 0===this.cipher};
  10352. g.k.dispose=function(){this.Id.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};
  10353. DV.dQ(vN,{encrypt:vN.prototype.F9});g.wN.prototype.encrypt=function(a,b){var c=this,d,e;return g.G(function(f){if(1==f.j){d=tN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.JE(e);qJa=!0;return f.return(c.j(a,b))})};
  10354. g.wN.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){switch(h.j){case 1:if(d.G){h.Ia(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
  10355. g.wN.prototype.j=function(a,b){this.C||(this.C=new rN(this.D));this.C.JL(b);return this.C.encrypt(a)};
  10356. g.wN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
  10357. g.y(g.xN,g.I);g.xN.prototype.encrypt=function(a,b){this.j||(this.j=new rN(this.B),g.N(this,this.j));this.j.JL(b);return this.j.encrypt(a)};
  10358. g.xN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
  10359. yN.prototype.encrypt=function(a,b){this.j.JL(b);return this.j.encrypt(a)};
  10360. yN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
  10361. yN.prototype.Ma=function(){return this.j.Ma()};
  10362. yN.prototype.dispose=function(){this.j.dispose()};zJa.prototype.reset=function(){BJa(this);this.update(this.C)};
  10363. zJa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,AJa(this,this.K,0));for(;b+64<=c;b+=64)AJa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
  10364. var zN=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
  10365. 4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var Unb;Unb={};g.Vnb=g.ZC("yt-idb-pref-storage",{Mr:(Unb.prefs={hn:1},Unb),shared:!1,upgrade:function(a,b){b(1)&&g.LC(g.FC(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
  10366. version:1});AN.prototype.getState=function(){return this.store.getState()};
  10367. AN.prototype.dispatch=function(a){return this.store.dispatch(a)};
  10368. AN.prototype.subscribe=function(a){return this.store.subscribe(a)};
  10369. AN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
  10370. AN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};BN.prototype.append=function(a){if(LJa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);MJa(this)}else this.j.push(a);this.totalLength+=a.length};
  10371. BN.prototype.split=function(a){for(var b=new BN,c=new BN,d=g.u(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{LJ:b,Om:c}};
  10372. BN.prototype.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
  10373. BN.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&MJa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var KN,IN,MN;g.iZ=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
  10374. function b(d){return new Uint8Array(d)}
  10375. var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
  10376. KN=Array(1024);IN=window.TextDecoder?new TextDecoder:void 0;MN=window.TextEncoder?new TextEncoder:void 0;for(var YJa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,
  10377. flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,
  10378. musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,
  10379. pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},XJa={},Wnb=g.u(Object.entries(YJa)),Xnb=Wnb.next();!Xnb.done;Xnb=Wnb.next()){var Ynb=g.u(Xnb.value),Znb=Ynb.next().value,$nb=Ynb.next().value,
  10380. aob=Znb,bob=$nb;bob&&(XJa[bob]=aob)};var Y2;Y2={};g.cob=(Y2.INVALID_ENCODER_VERSION="Invalid encoder version",Y2.KEY_CREATION_FAILED="Failed to create encoder key",Y2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Y2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Y2.WRONG_DATA_TYPE="Encoder cannot process the data type",Y2);var rO=window.Pnb||"en";var nOa=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,204249,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,197879,177565,
  10381. 212573,210709,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,
  10382. 212991,110111,76019,117092,117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,
  10383. 177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,210016,
  10384. 210017,211851,211852,211853,129889,197888,197889,149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,213915,218674,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,195529,189660,46220,11721,147994,
  10385. 49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,
  10386. 79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,194770,195350,195349,194771,166382,37671,49953,213774,204572,191389,204574,187917,191390,179556,191402,212661,191392,197826,191393,204573,36216,
  10387. 28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,135155,135156,135157,135158,158225,135159,135160,
  10388. 167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,211189,111059,211188,5754,20445,151308,151152,130975,130976,210815,191925,167637,197196,214295,110386,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,59369,43927,43928,12924,
  10389. 197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,186641,147842,217932,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,
  10390. 21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,210542,212552,102852,110099,22678,69076,137575,139224,100856,154430,209757,17736,3832,147111,55759,64031,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var vfb={adNotify:function(a){var b=new Uma,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(Uk(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(Wk(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(Uk(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(Q(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(Q(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(Uk(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(Wk(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
  10391. biscottiBasedDetection:function(a){var b=new Az,c=0;try{var d=a.detected;void 0!==d&&(Tk(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(Q(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(Q(b,4,h),c++);var l=a.method;void 0!==l&&(Uk(b,5,l),c++);var m=a.result;void 0!==m&&(Uk(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(S(b,9,Vlb[n]),c++);var p=a.detectionStates;void 0!==p&&(uO(b.J6.bind(b),p,Wlb),c++);var q=a.adCpn;void 0!==q&&(Q(b,7,q),c++);var r=a.playbackType;
  10392. void 0!==r&&(Q(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}},
  10393. adNotifyFilled:function(a){var b=new Tma,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(S(b,1,Elb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
  10394. idbTransactionEnded:function(a){var b=new cA,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.duration;void 0!==e&&(b.vl(e),c++);var f=a.isSuccessful;void 0!==f&&(Tk(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(Tk(b,4,h),c++);var l=a.tryCount;void 0!==l&&(Uk(b,5,l),c++);var m=a.tag;void 0!==m&&(S(b,6,lmb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
  10395. idbUnexpectedlyClosed:function(a){var b=new Xoa,c=0;try{var d=a.dbName;void 0!==d&&(Q(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
  10396. flowEvent:function(a){var b=new Roa,c=0;try{var d=a.flowNonce;void 0!==d&&(Q(b,1,d),c++);var e=a.flowEventType;if(e){a:{var f=new Qoa,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(S(f,1,emb[l]),h++);var m=e.flowEventType;void 0!==m&&(Uk(f,2,m),h++);var n=[h===Object.keys(e).length,f];break a}catch(Sa){Y(Sa);n=[!1,void 0];break a}}var p=n;p[0]&&(Hk(b,Qoa,2,p[1]),c++)}var q=a.flowMetadata;if(q){a:{var r=new Poa,t=0;try{var v=q.notaireContext;if(v){b:{var w=new moa,A=0;try{var D=v.serverInfo;if(D){c:{var F=
  10397. new Mz,H=0;try{var L=D.id;void 0!==L&&(Q(F,1,L),H++);var M=D.forceLog;void 0!==M&&(Tk(F,2,M),H++);var R=[H===Object.keys(D).length,F];break c}catch(Sa){Y(Sa);R=[!1,void 0];break c}}var ea=R;ea[0]&&(Hk(w,Mz,1,ea[1]),A++)}var la=v.clientInfo;if(la){c:{var ka=new loa,ia=0;try{var sa=la.timeSinceReceivedMs;void 0!==sa&&(Wk(ka,1,sa),ia++);var aa=[ia===Object.keys(la).length,ka];break c}catch(Sa){Y(Sa);aa=[!1,void 0];break c}}var U=aa;U[0]&&(Hk(w,loa,2,U[1]),A++)}var Ha=[A===Object.keys(v).length,w];break b}catch(Sa){Y(Sa);
  10398. Ha=[!1,void 0];break b}Ha=void 0}var x=Ha;x[0]&&(Hk(r,moa,1,x[1]),t++)}var ba=q.offlineTransferStatusChangedContext;if(ba){b:{var La=new poa,ab=0;try{var lb=ba.offlineTransferStatusChanged;if(lb){var Qa=xMa(lb);Qa[0]&&(Hk(La,Pz,1,Qa[1]),ab++)}var Ua=[ab===Object.keys(ba).length,La];break b}catch(Sa){Y(Sa);Ua=[!1,void 0];break b}Ua=void 0}var jb=Ua;jb[0]&&(Hk(r,poa,2,jb[1]),t++)}var rb=q.offlineOrchestrationContext;if(rb){b:{var pb=new Oz,B=0;try{var C=rb.entityType;void 0!==C&&(Uk(pb,1,C),B++);var E=
  10399. rb.entityId;void 0!==E&&(Q(pb,7,E),B++);var J=rb.offlineOrchestrationActionType;void 0!==J&&(S(pb,6,Imb[J]),B++);var K=rb.offlineOrchestrationActionResult;void 0!==K&&(S(pb,2,Hmb[K]),B++);var ca=rb.offlineOrchestrationFailureReason;void 0!==ca&&(S(pb,10,Jmb[ca]),B++);var ta=rb.isRetryable;void 0!==ta&&(Tk(pb,3,ta),B++);var na=rb.isRestored;void 0!==na&&(Tk(pb,11,na),B++);var O=rb.orchestrationAction;if(O){var Z=xNa(O);Z[0]&&(Hk(pb,Nz,4,Z[1]),B++)}var ya=rb.additionalOrchestrationActions;ya&&(tO(pb.j.bind(pb),
  10400. ya,xNa),B++);var xa=rb.intervalSinceEnqueuedMs;void 0!==xa&&(Wk(pb,8,xa),B++);var Za=rb.executionIntervalMs;void 0!==Za&&(Wk(pb,9,Za),B++);var Wa=rb.offlineModeType;void 0!==Wa&&(S(pb,12,oMa[Wa]),B++);var zb=[B===Object.keys(rb).length,pb];break b}catch(Sa){Y(Sa);zb=[!1,void 0];break b}zb=void 0}var Rb=zb;Rb[0]&&(Hk(r,Oz,3,Rb[1]),t++)}var eb=q.shortsCreationContext;if(eb){b:{var Ub=new Sz,hc=0;try{var Dc=eb.shortsCreationSurfaces;void 0!==Dc&&(uO(Ub.j.bind(Ub),Dc,Umb),hc++);var Zb=[hc===Object.keys(eb).length,
  10401. Ub];break b}catch(Sa){Y(Sa);Zb=[!1,void 0];break b}}var vc=Zb;vc[0]&&(Hk(r,Sz,4,vc[1]),t++)}var Wc=q.mdxConnectionContext;if(Wc){b:{var Sc=new ioa,Ec=0;try{var Fc=Wc.isReconnection;void 0!==Fc&&(Tk(Sc,1,Fc),Ec++);var Xb=Wc.disconnectReason;void 0!==Xb&&(S(Sc,2,omb[Xb]),Ec++);var yd=Wc.isRetry;void 0!==yd&&(Tk(Sc,3,yd),Ec++);var fd=[Ec===Object.keys(Wc).length,Sc];break b}catch(Sa){Y(Sa);fd=[!1,void 0];break b}}var fc=fd;fc[0]&&(Hk(r,ioa,5,fc[1]),t++)}var $b=q.premiumMultiStepPurchaseContext;if($b){b:{var Gc=
  10402. new woa,Jb=0;try{var ad=$b.selectedOption;if(ad){c:{var sd=new voa,Pb=0;try{var de=ad.offerType;void 0!==de&&(S(sd,1,klb[de]),Pb++);var Rd=ad.itemType;void 0!==Rd&&(S(sd,2,JO[Rd]),Pb++);var Sd=ad.itemExternalId;void 0!==Sd&&(Q(sd,3,Sd),Pb++);var Ae=[Pb===Object.keys(ad).length,sd];break c}catch(Sa){Y(Sa);Ae=[!1,void 0];break c}}var Be=Ae;Be[0]&&(Hk(Gc,voa,1,Be[1]),Jb++)}var Jd=$b.itemType;void 0!==Jd&&(S(Gc,2,JO[Jd]),Jb++);var pf=$b.productType;void 0!==pf&&(S(Gc,3,KO[pf]),Jb++);var Oe=$b.landingPageVariantId;
  10403. void 0!==Oe&&(Q(Gc,4,Oe),Jb++);var Kd=$b.experimentStatus;void 0!==Kd&&(S(Gc,5,qmb[Kd]),Jb++);var Ef=$b.themeKey;void 0!==Ef&&(Q(Gc,6,Ef),Jb++);var Td=$b.signupType;void 0!==Td&&(S(Gc,7,rmb[Td]),Jb++);var ee=[Jb===Object.keys($b).length,Gc];break b}catch(Sa){Y(Sa);ee=[!1,void 0];break b}ee=void 0}var Ld=ee;Ld[0]&&(Hk(r,woa,6,Ld[1]),t++)}var zd=q.mdxReceiverConnectionContext;if(zd){b:{var bd=new joa,Md=0;try{var Ze=zd.isFromAppLaunch;void 0!==Ze&&(Tk(bd,1,Ze),Md++);var qf=zd.dialServerType;void 0!==
  10404. qf&&(S(bd,2,nmb[qf]),Md++);var Xf=zd.supportsSmoothPairing;void 0!==Xf&&(Tk(bd,3,Xf),Md++);var se=zd.hasManuallyPairedRemotesOnAppStartup;void 0!==se&&(Tk(bd,4,se),Md++);var rc=zd.mismatchedTheme;void 0!==rc&&(S(bd,5,flb[rc]),Md++);var Pe=zd.mdxSenderConnectedCounter;void 0!==Pe&&(Uk(bd,6,Pe),Md++);var Vh=zd.externalRouteSource;void 0!==Vh&&(S(bd,7,mmb[Vh]),Md++);var ie=zd.appReloadCount;void 0!==ie&&(Uk(bd,8,ie),Md++);var ph=[Md===Object.keys(zd).length,bd];break b}catch(Sa){Y(Sa);ph=[!1,void 0];
  10405. break b}}var Ni=ph;Ni[0]&&(Hk(r,joa,7,Ni[1]),t++)}var sf=q.parentToolsOnboardingContext;if(sf){b:{var df=new roa,te=0;try{var ai=sf.triggerPoint;void 0!==ai&&(S(df,1,wlb[ai]),te++);var uc=sf.kidsFlowInfo;if(uc){c:{var wc=new qoa,Hc=0;try{var vj=uc.kidsFlowVersion;void 0!==vj&&(S(wc,1,tlb[vj]),Hc++);var If=uc.flowLabel;void 0!==If&&(Q(wc,2,If),Hc++);var Qg=uc.hostClientName;void 0!==Qg&&(S(wc,3,ulb[Qg]),Hc++);var sg=uc.hostClientVersion;void 0!==sg&&(Q(wc,4,sg),Hc++);var Oi=uc.kidsFlowType;void 0!==
  10406. Oi&&(S(wc,5,slb[Oi]),Hc++);var bi=[Hc===Object.keys(uc).length,wc];break c}catch(Sa){Y(Sa);bi=[!1,void 0];break c}}var Pi=bi;Pi[0]&&(Hk(df,qoa,2,Pi[1]),te++)}var tf=sf.kidsCorpusPreferenceNew;void 0!==tf&&(S(df,3,rlb[tf]),te++);var hd=sf.appChoice;void 0!==hd&&(S(df,4,vlb[hd]),te++);var uf=sf.isKidSignedIn;void 0!==uf&&(Tk(df,5,uf),te++);var ci=sf.alreadyOnboardedYtk;void 0!==ci&&(Tk(df,6,ci),te++);var ef=sf.alreadyOnboardedSupex;void 0!==ef&&(Tk(df,7,ef),te++);var $f=[te===Object.keys(sf).length,
  10407. df];break b}catch(Sa){Y(Sa);$f=[!1,void 0];break b}$f=void 0}var ag=$f;ag[0]&&(Hk(r,roa,8,ag[1]),t++)}var di=q.hashtagAutoCompleteContext;if(di){b:{var Jf=new Yna,tg=0;try{var qh=di.suggestionSelected;void 0!==qh&&(Uk(Jf,1,qh),tg++);var Rg=[tg===Object.keys(di).length,Jf];break b}catch(Sa){Y(Sa);Rg=[!1,void 0];break b}}var ug=Rg;ug[0]&&(Hk(r,Yna,9,ug[1]),t++)}var ue=q.liveStreamingContext;if(ue){b:{var Se=new hoa,je=0;try{var rh=ue.broadcastSource;void 0!==rh&&(S(Se,1,Clb[rh]),je++);var ff=ue.isAutoDashboard;
  10408. void 0!==ff&&(Tk(Se,2,ff),je++);var gf=ue.externalVideoId;void 0!==gf&&(Q(Se,3,gf),je++);var Kf=ue.broadcastConferenceType;void 0!==Kf&&(S(Se,4,Alb[Kf]),je++);var bg=ue.eventData;if(bg){c:{var Sg=new goa,ke=0;try{var vg=bg.webrtcHandshakeOffer;if(vg){d:{var Lf=new foa,Qi=0;try{var sh=vg.localVideoSsrc;void 0!==sh&&(Vk(Lf,1,sh),Qi++);var fm=vg.localAudioSsrc;void 0!==fm&&(Vk(Lf,2,fm),Qi++);var gm=vg.participantId;void 0!==gm&&(Xk(Lf,3,gm),Qi++);var kk=[Qi===Object.keys(vg).length,Lf];break d}catch(Sa){Y(Sa);
  10409. kk=[!1,void 0];break d}}var lk=kk;lk[0]&&(Hk(Sg,foa,1,lk[1]),ke++)}var wj=bg.webrtcHandshakeAnswer;if(wj){d:{var Te=new doa,De=0;try{var Yd=wj.remoteVideoSsrc;void 0!==Yd&&(Vk(Te,1,Yd),De++);var Tg=wj.remoteAudioSsrc;void 0!==Tg&&(Vk(Te,2,Tg),De++);var ei=[De===Object.keys(wj).length,Te];break d}catch(Sa){Y(Sa);ei=[!1,void 0];break d}}var hm=ei;hm[0]&&(Hk(Sg,doa,2,hm[1]),ke++)}var il=bg.webrtcHandshakeError;if(il){d:{var xj=new eoa,th=0;try{var Ug=il.description;void 0!==Ug&&(Q(xj,1,Ug),th++);var hf=
  10410. [th===Object.keys(il).length,xj];break d}catch(Sa){Y(Sa);hf=[!1,void 0];break d}}var fi=hf;fi[0]&&(Hk(Sg,eoa,3,fi[1]),ke++)}var mk=bg.costreamStartNotification;if(mk){d:{var jl=new aoa,gi=0;try{var Ri=mk.broadcastStartTimeMs;void 0!==Ri&&(Wk(jl,1,Ri),gi++);var Vg=[gi===Object.keys(mk).length,jl];break d}catch(Sa){Y(Sa);Vg=[!1,void 0];break d}}var wg=Vg;wg[0]&&(Hk(Sg,aoa,4,wg[1]),ke++)}var hi=bg.remoteParticipant;if(hi){d:{var ii=new coa,nk=0;try{var kl=hi.videoSsrc;void 0!==kl&&(Vk(ii,1,kl),nk++);
  10411. var ok=hi.audioSsrc;void 0!==ok&&(Vk(ii,2,ok),nk++);var Si=[nk===Object.keys(hi).length,ii];break d}catch(Sa){Y(Sa);Si=[!1,void 0];break d}}var im=Si;im[0]&&(Hk(Sg,coa,5,im[1]),ke++)}var vf=bg.webcamEventData;if(vf){d:{var cg=new Lz,Mf=0;try{var Nf=vf.videoFrameRate;void 0!==Nf&&(Yk(cg,1,Nf),Mf++);var ll=vf.videoAspectRatio;void 0!==ll&&(Yk(cg,2,ll),Mf++);var jm=vf.videoHeight;void 0!==jm&&(Vk(cg,3,jm),Mf++);var mc=vf.videoWidth;void 0!==mc&&(Vk(cg,4,mc),Mf++);var ip=vf.videoCaptureCursor;void 0!==
  10412. ip&&(Q(cg,5,ip),Mf++);var yj=vf.videoCaptureSurface;void 0!==yj&&(Q(cg,6,yj),Mf++);var ml=vf.videoCaptureAudioEnabled;void 0!==ml&&(Tk(cg,7,ml),Mf++);var ji=[Mf===Object.keys(vf).length,cg];break d}catch(Sa){Y(Sa);ji=[!1,void 0];break d}}var jp=ji;jp[0]&&(Hk(Sg,Lz,6,jp[1]),ke++)}var zj=bg.errorEventData;if(zj){d:{var nl=new boa,km=0;try{var tn=zj.liveClientErrorType;void 0!==tn&&(S(nl,1,ylb[tn]),km++);var lm=zj.liveServerErrorType;void 0!==lm&&(S(nl,2,zlb[lm]),km++);var ol=zj.kioskClientApiErrorType;
  10413. void 0!==ol&&(S(nl,3,xlb[ol]),km++);var kp=[km===Object.keys(zj).length,nl];break d}catch(Sa){Y(Sa);kp=[!1,void 0];break d}}var mm=kp;mm[0]&&(Hk(Sg,boa,7,mm[1]),ke++)}var un=bg.adsAutomationEventData;if(un){d:{var vn=new $na,wn=0;try{var Aj=un.adsAutomationSettingsType;void 0!==Aj&&(S(vn,1,glb[Aj]),wn++);var ki=un.adsAutomationIntervalSec;void 0!==ki&&(Uk(vn,2,ki),wn++);var Wg=un.isNonConcurrent;void 0!==Wg&&(Tk(vn,3,Wg),wn++);var pk=[wn===Object.keys(un).length,vn];break d}catch(Sa){Y(Sa);pk=[!1,
  10414. void 0];break d}}var cr=pk;cr[0]&&(Hk(Sg,$na,8,cr[1]),ke++)}var xn=[ke===Object.keys(bg).length,Sg];break c}catch(Sa){Y(Sa);xn=[!1,void 0];break c}xn=void 0}var dr=xn;dr[0]&&(Hk(Se,goa,5,dr[1]),je++)}var lp=ue.isMonetizationOn;void 0!==lp&&(Tk(Se,6,lp),je++);var yn=ue.sharedmdeEnabled;void 0!==yn&&(Tk(Se,7,yn),je++);var er=ue.isScreencast;void 0!==er&&(Tk(Se,8,er),je++);var Xg=ue.broadcastLifecycleStatus;void 0!==Xg&&(S(Se,9,Blb[Xg]),je++);var Ti=ue.hasCreatedMobileLivestream;void 0!==Ti&&(Tk(Se,
  10415. 10,Ti),je++);var li=[je===Object.keys(ue).length,Se];break b}catch(Sa){Y(Sa);li=[!1,void 0];break b}li=void 0}var fr=li;fr[0]&&(Hk(r,hoa,10,fr[1]),t++)}var xg=q.touAppealContext;if(xg){b:{var Zd=new Yz,Ee=0;try{var zn=xg.scope;void 0!==zn&&(Q(Zd,1,zn),Ee++);var An=xg.videoId;if(An){c:{var gr=new Xz,Bn=0;try{var nm=An.externalVideoId;void 0!==nm&&(Q(gr,1,nm),Bn++);var pl=[Bn===Object.keys(An).length,gr];break c}catch(Sa){Y(Sa);pl=[!1,void 0];break c}}var hr=pl;hr[0]&&(Zd.setVideoId(hr[1]),Ee++)}var Ui=
  10416. xg.videoThumbnailId;if(Ui){c:{var Vi=new Goa,qk=0;try{var ql=Ui.externalVideoId;void 0!==ql&&(Q(Vi,1,ql),qk++);var rl=Ui.thumbnailVersion;void 0!==rl&&(Xk(Vi,3,rl),qk++);var om=Ui.checksum;void 0!==om&&(Xk(Vi,4,om),qk++);var mp=[qk===Object.keys(Ui).length,Vi];break c}catch(Sa){Y(Sa);mp=[!1,void 0];break c}}var np=mp;np[0]&&(Ik(Zd,Goa,3,A2,np[1]),Ee++)}var op=xg.playlistId;if(op){c:{var Cn=new Uz,Dn=0;try{var pp=op.externalPlaylistId;void 0!==pp&&(Q(Cn,1,pp),Dn++);var yg=[Dn===Object.keys(op).length,
  10417. Cn];break c}catch(Sa){Y(Sa);yg=[!1,void 0];break c}}var mi=yg;mi[0]&&(Ik(Zd,Uz,4,A2,mi[1]),Ee++)}var pc=xg.urlHostname;void 0!==pc&&(ik(Zd,5,A2,ij(pc)),Ee++);var uh=xg.postId;if(uh){c:{var qp=new Foa,pm=0;try{var qm=uh.externalPostId;void 0!==qm&&(Q(qp,1,qm),pm++);var sl=[pm===Object.keys(uh).length,qp];break c}catch(Sa){Y(Sa);sl=[!1,void 0];break c}}var rp=sl;rp[0]&&(Ik(Zd,Foa,9,A2,rp[1]),Ee++)}var sp=xg.encodedTouViolativeContentId;void 0!==sp&&(Q(Zd,6,sp),Ee++);var tp=xg.encodedChannelTouViolativeContentId;
  10418. void 0!==tp&&(Q(Zd,7,tp),Ee++);var Bj=xg.trainingData;if(Bj){c:{var Wi=new Wz,rk=0;try{var rm=Bj.question;if(rm){d:{var sm=new Eoa,up=0;try{var sk=rm.questionId;void 0!==sk&&(Uk(sm,1,sk),up++);var Cj=rm.supplementaryInfoId;void 0!==Cj&&(Uk(sm,2,Cj),up++);var tk=[up===Object.keys(rm).length,sm];break d}catch(Sa){Y(Sa);tk=[!1,void 0];break d}}var En=tk;En[0]&&(Hk(Wi,Eoa,1,En[1]),rk++)}var ir=Bj.answers;ir&&(tO(Wi.j.bind(Wi),ir,yNa),rk++);var vp=Bj.correctAnswers;vp&&(tO(Wi.B.bind(Wi),vp,yNa),rk++);
  10419. var tl=Bj.strikeId;void 0!==tl&&(Q(Wi,4,tl),rk++);var ul=Bj.preTrainingMaterialId;void 0!==ul&&(Uk(Wi,5,ul),rk++);var ni=[rk===Object.keys(Bj).length,Wi];break c}catch(Sa){Y(Sa);ni=[!1,void 0];break c}ni=void 0}var wp=ni;wp[0]&&(Hk(Zd,Wz,8,wp[1]),Ee++)}var xp=[Ee===Object.keys(xg).length,Zd];break b}catch(Sa){Y(Sa);xp=[!1,void 0];break b}xp=void 0}var yp=xp;yp[0]&&(Hk(r,Yz,11,yp[1]),t++)}var Fn=q.dragAndDropContext;if(Fn){b:{var tm=new Iz,uk=0;try{var vl=Fn.rootVe;if(vl){var Gn=vO(vl);Gn[0]&&(Hk(tm,
  10420. Hz,1,Gn[1]),uk++)}var um=Fn.ve;if(um){var zp=vO(um);zp[0]&&(Hk(tm,Hz,2,zp[1]),uk++)}var Ap=[uk===Object.keys(Fn).length,tm];break b}catch(Sa){Y(Sa);Ap=[!1,void 0];break b}Ap=void 0}var Bp=Ap;Bp[0]&&(Hk(r,Iz,12,Bp[1]),t++)}var wl=q.socialSuggestionsContext;if(wl){b:{var xl=new Tz,zg=0;try{var vh=wl.socialSuggestionsType;void 0!==vh&&(S(xl,1,tmb[vh]),zg++);var oi=wl.suggestionSelected;void 0!==oi&&(Uk(xl,2,oi),zg++);var jf=wl.source;void 0!==jf&&(S(xl,3,umb[jf]),zg++);var Hn=[zg===Object.keys(wl).length,
  10421. xl];break b}catch(Sa){Y(Sa);Hn=[!1,void 0];break b}}var Cp=Hn;Cp[0]&&(Hk(r,Tz,13,Cp[1]),t++)}var In=q.featureEnablementContext;if(In){b:{var yl=new Jz,Ag=0;try{var Bg=In.feature;void 0!==Bg&&(S(yl,1,MKa[Bg]),Ag++);var vk=[Ag===Object.keys(In).length,yl];break b}catch(Sa){Y(Sa);vk=[!1,void 0];break b}}var Dp=vk;Dp[0]&&(Hk(r,Jz,14,Dp[1]),t++)}var wk=q.iapContext;if(wk){b:{var Dj=new Kz,zl=0;try{var vm=wk.playIapProduct;if(vm){c:{var Jn=new Zna,Ep=0;try{var Fp=vm.packageId;void 0!==Fp&&(Q(Jn,1,Fp),Ep++);
  10422. var wm=vm.productId;void 0!==wm&&(Q(Jn,2,wm),Ep++);var Al=[Ep===Object.keys(vm).length,Jn];break c}catch(Sa){Y(Sa);Al=[!1,void 0];break c}}var Bl=Al;Bl[0]&&(Ik(Dj,Zna,1,bmb,Bl[1]),zl++)}var Gp=wk.source;void 0!==Gp&&(S(Dj,2,gmb[Gp]),zl++);var Cl=wk.attributionId;void 0!==Cl&&(Wk(Dj,3,Cl),zl++);var Kn=wk.externalVideoId;void 0!==Kn&&(Q(Dj,4,Kn),zl++);var Ln=wk.externalChannelId;void 0!==Ln&&(Q(Dj,5,Ln),zl++);var Mn=[zl===Object.keys(wk).length,Dj];break b}catch(Sa){Y(Sa);Mn=[!1,void 0];break b}Mn=
  10423. void 0}var ft=Mn;ft[0]&&(Hk(r,Kz,15,ft[1]),t++)}var xm=q.shoppingCheckoutContext;if(xm){b:{var Hp=new Boa,Ip=0;try{var Jp=xm.shoppingFlowParams;if(Jp){var Nn=BNa(Jp);Nn[0]&&(Hk(Hp,Rz,1,Nn[1]),Ip++)}var ym=xm.shoppingCheckoutErrorReason;void 0!==ym&&(S(Hp,2,smb[ym]),Ip++);var Dl=[Ip===Object.keys(xm).length,Hp];break b}catch(Sa){Y(Sa);Dl=[!1,void 0];break b}Dl=void 0}var On=Dl;On[0]&&(Hk(r,Boa,16,On[1]),t++)}var Pn=q.ypcCancellationContext;if(Pn){b:{var Kp=new Koa,Qn=0;try{var jr=Pn.itemType;void 0!==
  10424. jr&&(S(Kp,1,JO[jr]),Qn++);var Lp=Pn.productType;void 0!==Lp&&(S(Kp,2,KO[Lp]),Qn++);var Rn=[Qn===Object.keys(Pn).length,Kp];break b}catch(Sa){Y(Sa);Rn=[!1,void 0];break b}}var kr=Rn;kr[0]&&(Hk(r,Koa,17,kr[1]),t++)}var le=q.ypcBrowseOffersContext;if(le){b:{var ve=new Joa,Fe=0;try{var Sn=le.commerceFlowLoggingParams;if(Sn){var Tn=GNa(Sn);Tn[0]&&(Hk(ve,$z,1,Tn[1]),Fe++)}var Mp=le.offerType;void 0!==Mp&&(S(ve,2,llb[Mp]),Fe++);var lr=le.entityType;void 0!==lr&&(S(ve,3,Ylb[lr]),Fe++);var Np=[Fe===Object.keys(le).length,
  10425. ve];break b}catch(Sa){Y(Sa);Np=[!1,void 0];break b}Np=void 0}var Op=Np;Op[0]&&(Hk(r,Joa,18,Op[1]),t++)}var Pp=q.mdxStreamTransferContext;if(Pp){b:{var Xi=new koa,wh=0;try{var pi=Pp.completedReason;void 0!==pi&&(S(Xi,1,pmb[pi]),wh++);var Qp=[wh===Object.keys(Pp).length,Xi];break b}catch(Sa){Y(Sa);Qp=[!1,void 0];break b}}var mr=Qp;mr[0]&&(Hk(r,koa,19,mr[1]),t++)}var zm=q.pdgBuyFlowContext;if(zm){b:{var Am=new uoa,Bm=0;try{var Rp=zm.productType;void 0!==Rp&&(S(Am,1,KO[Rp]),Bm++);var Ej=zm.entryPointClickedContext;
  10426. if(Ej){c:{var Cm=new soa,Yi=0;try{var Un=Ej.superVodBuyFlowEntryPoint;void 0!==Un&&(al(Cm,1,z2,Nmb[Un]),Yi++);var Vn=Ej.superChatBuyFlowEntryPoint;void 0!==Vn&&(al(Cm,2,z2,Lmb[Vn]),Yi++);var Sp=Ej.sharedPdgBuyFlowEntryPoint;void 0!==Sp&&(al(Cm,3,z2,Kmb[Sp]),Yi++);var nr=Ej.superStickerBuyFlowEntryPoint;void 0!==nr&&(al(Cm,4,z2,Mmb[nr]),Yi++);var Zi=[Yi===Object.keys(Ej).length,Cm];break c}catch(Sa){Y(Sa);Zi=[!1,void 0];break c}}var El=Zi;El[0]&&(Hk(Am,soa,2,El[1]),Bm++)}var Fj=zm.itemSelectionPageDisplayedContext;
  10427. if(Fj){c:{var or=new toa,Wn=0;try{var Tp=Fj.superStickerBuyFlowType;void 0!==Tp&&(S(or,1,Omb[Tp]),Wn++);var Xn=[Wn===Object.keys(Fj).length,or];break c}catch(Sa){Y(Sa);Xn=[!1,void 0];break c}}var pr=Xn;pr[0]&&(Hk(Am,toa,3,pr[1]),Bm++)}var Yn=[Bm===Object.keys(zm).length,Am];break b}catch(Sa){Y(Sa);Yn=[!1,void 0];break b}Yn=void 0}var Up=Yn;Up[0]&&(Hk(r,uoa,20,Up[1]),t++)}var xk=q.ypcPurchaseContext;if(xk){b:{var Fl=new Ooa,Dm=0;try{var qr=xk.commerceFlowLoggingParams;if(qr){var Yg=GNa(qr);Yg[0]&&
  10428. (Hk(Fl,$z,1,Yg[1]),Dm++)}var Of=xk.offerType;void 0!==Of&&(S(Fl,2,llb[Of]),Dm++);var dg=xk.transactionType;void 0!==dg&&(S(Fl,3,zmb[dg]),Dm++);var rr=xk.paymentProcessor;void 0!==rr&&(S(Fl,4,mlb[rr]),Dm++);var yk=[Dm===Object.keys(xk).length,Fl];break b}catch(Sa){Y(Sa);yk=[!1,void 0];break b}yk=void 0}var $i=yk;$i[0]&&(Hk(r,Ooa,21,$i[1]),t++)}var xh=q.webViewContext;if(xh){b:{var eg=new Hoa,Cg=0;try{var qi=xh.hostname;void 0!==qi&&(Q(eg,1,qi),Cg++);var gt=xh.webViewUseCase;void 0!==gt&&(S(eg,2,$mb[gt]),
  10429. Cg++);var Zg=xh.isFirstPartyHost;void 0!==Zg&&(Tk(eg,5,Zg),Cg++);var sr=xh.isLoaded;void 0!==sr&&(Tk(eg,3,sr),Cg++);var Vp=xh.webViewEngagementSec;void 0!==Vp&&(Uk(eg,4,Vp),Cg++);var zk=[Cg===Object.keys(xh).length,eg];break b}catch(Sa){Y(Sa);zk=[!1,void 0];break b}}var tr=zk;tr[0]&&(Hk(r,Hoa,22,tr[1]),t++)}var yh=q.videoSuggestionsContext;if(yh){b:{var Zn=new Zz,Wp=0;try{var ht=yh.type;void 0!==ht&&(S(Zn,1,hlb[ht]),Wp++);var Xp=yh.serializedSuggestionData;void 0!==Xp&&($k(Zn,2,Xp),Wp++);var ur=yh.videoId;
  10430. void 0!==ur&&(Zn.setVideoId(ur),Wp++);var $n=[Wp===Object.keys(yh).length,Zn];break b}catch(Sa){Y(Sa);$n=[!1,void 0];break b}}var vr=$n;vr[0]&&(Hk(r,Zz,23,vr[1]),t++)}var Em=q.actionSheetContext;if(Em){b:{var zh=new Xna,Gj=0;try{var Ak=Em.parentScreenUiType;void 0!==Ak&&(Uk(zh,1,Ak),Gj++);var Hj=[Gj===Object.keys(Em).length,zh];break b}catch(Sa){Y(Sa);Hj=[!1,void 0];break b}}var Yp=Hj;Yp[0]&&(Hk(r,Xna,24,Yp[1]),t++)}var Fm=q.producerExportContext;if(Fm){b:{var it=new zoa,jt=0;try{var Ij=Fm.exportDetails;
  10431. if(Ij){c:{var aj=new yoa,Ah=0;try{var Bk=Ij.project;if(Bk){d:{var Ck=new Qz,Dk=0;try{var wr=Bk.projectId;void 0!==wr&&(Q(Ck,1,wr),Dk++);var kt=Bk.durationMs;void 0!==kt&&(Xk(Ck,2,kt),Dk++);var Zp=[Dk===Object.keys(Bk).length,Ck];break d}catch(Sa){Y(Sa);Zp=[!1,void 0];break d}}var $p=Zp;$p[0]&&(Hk(aj,Qz,1,$p[1]),Ah++)}var Gl=Ij.renderDetails;if(Gl){d:{var bj=new xoa,cj=0;try{var Gm=Gl.sizeBytes;void 0!==Gm&&(Wk(bj,1,Gm),cj++);var xr=Gl.pixelWidth;void 0!==xr&&(Uk(bj,2,xr),cj++);var aq=Gl.pixelHeight;
  10432. void 0!==aq&&(Uk(bj,3,aq),cj++);var ao=[cj===Object.keys(Gl).length,bj];break d}catch(Sa){Y(Sa);ao=[!1,void 0];break d}}var yr=ao;yr[0]&&(Hk(aj,xoa,2,yr[1]),Ah++)}var bo=[Ah===Object.keys(Ij).length,aj];break c}catch(Sa){Y(Sa);bo=[!1,void 0];break c}bo=void 0}var bq=bo;bq[0]&&(Hk(it,yoa,1,bq[1]),jt++)}var cq=[jt===Object.keys(Fm).length,it];break b}catch(Sa){Y(Sa);cq=[!1,void 0];break b}cq=void 0}var Hl=cq;Hl[0]&&(Hk(r,zoa,25,Hl[1]),t++)}var kf=q.downloadMyVideoContext;if(kf){b:{var ri=new Gz,dj=
  10433. 0;try{var co=kf.videoId;void 0!==co&&(ri.setVideoId(co),dj++);var lv=kf.videoSid;void 0!==lv&&(Wk(ri,2,lv),dj++);var Px=kf.downloadError;void 0!==Px&&(S(ri,3,dmb[Px]),dj++);var mv=kf.totalAssetSize;void 0!==mv&&(Wk(ri,4,mv),dj++);var nv=kf.totalDownloadedPercent;void 0!==nv&&(Vk(ri,5,nv),dj++);var ov=kf.mddDownloadErrorCode;void 0!==ov&&(Vk(ri,6,ov),dj++);var lt=[dj===Object.keys(kf).length,ri];break b}catch(Sa){Y(Sa);lt=[!1,void 0];break b}}var Qx=lt;Qx[0]&&(Hk(r,Gz,26,Qx[1]),t++)}var zr=q.miniAppContext;
  10434. if(zr){b:{var mt=new Bna,Ar=0;try{var Rx=zr.externalPostId;void 0!==Rx&&(Q(mt,1,Rx),Ar++);var nt=zr.miniAppReleaseId;void 0!==nt&&(Uk(mt,3,nt),Ar++);var Br=zr.postPlayNonce;void 0!==Br&&(Q(mt,4,Br),Ar++);var ot=[Ar===Object.keys(zr).length,mt];break b}catch(Sa){Y(Sa);ot=[!1,void 0];break b}}var Sx=ot;Sx[0]&&(Hk(r,Bna,27,Sx[1]),t++)}var pv=q.shoppingCartContext;if(pv){b:{var qv=new Aoa,Tx=0;try{var rv=pv.shoppingFlowParams;if(rv){var Ux=BNa(rv);Ux[0]&&(Hk(qv,Rz,1,Ux[1]),Tx++)}var tv=[Tx===Object.keys(pv).length,
  10435. qv];break b}catch(Sa){Y(Sa);tv=[!1,void 0];break b}tv=void 0}var Vx=tv;Vx[0]&&(Hk(r,Aoa,28,Vx[1]),t++)}var Pa=q.sponsorshipsPurchaseContext;if(Pa){b:{var aO=new Coa,bO=0;try{var BB=Pa.joinMethod;void 0!==BB&&(S(aO,1,nlb[BB]),bO++);var CB=[bO===Object.keys(Pa).length,aO];break b}catch(Sa){Y(Sa);CB=[!1,void 0];break b}}var EG=CB;EG[0]&&(Hk(r,Coa,29,EG[1]),t++)}var DB=q.ypcCujContext;if(DB){b:{var FG=new Noa,EB=0;try{var cO=DB.serializedYpcCujLoggingParams;void 0!==cO&&($k(FG,1,cO),EB++);var GG=DB.ypcCujLoggingClientPayload;
  10436. if(GG){c:{var dO=new Moa,eO=0;try{var HG=GG.ypcAcquisitionCujLoggingClientPayload;if(HG){d:{var fO=new Loa,gO=0;try{var uv=HG.ypcAcquisitionDebugLoggingParams;if(uv){e:{var ob=new aA,dR=0;try{var P1a=uv.transactionErrorType;void 0!==P1a&&(S(ob,1,ymb[P1a]),dR++);var Q1a=uv.commerceErrorType;void 0!==Q1a&&(S(ob,4,xmb[Q1a]),dR++);var R1a=uv.errorMessage;void 0!==R1a&&(Q(ob,2,R1a),dR++);var S1a=uv.errorInfo;void 0!==S1a&&(Q(ob,3,S1a),dR++);var ara=[dR===Object.keys(uv).length,ob];break e}catch(Sa){Y(Sa);
  10437. ara=[!1,void 0];break e}}var T1a=ara;T1a[0]&&(Hk(fO,aA,1,T1a[1]),gO++)}var bra=[gO===Object.keys(HG).length,fO];break d}catch(Sa){Y(Sa);bra=[!1,void 0];break d}bra=void 0}var U1a=bra;U1a[0]&&(Ik(dO,Loa,1,cmb,U1a[1]),eO++)}var cra=[eO===Object.keys(GG).length,dO];break c}catch(Sa){Y(Sa);cra=[!1,void 0];break c}cra=void 0}var V1a=cra;V1a[0]&&(Hk(FG,Moa,2,V1a[1]),EB++)}var dra=[EB===Object.keys(DB).length,FG];break b}catch(Sa){Y(Sa);dra=[!1,void 0];break b}dra=void 0}var W1a=dra;W1a[0]&&(Hk(r,Noa,30,
  10438. W1a[1]),t++)}var era=[t===Object.keys(q).length,r];break a}catch(Sa){Y(Sa);era=[!1,void 0];break a}era=void 0}var X1a=era;X1a[0]&&(Hk(b,Poa,3,X1a[1]),c++)}var Y1a=a.flowType;void 0!==Y1a&&(S(b,4,fmb[Y1a]),c++);var Z1a=a.flowEventStatus;void 0!==Z1a&&(Uk(b,5,Z1a),c++);var $1a=a.csn;void 0!==$1a&&(Q(b,6,$1a),c++);var a2a=a.can;void 0!==a2a&&(Q(b,7,a2a),c++);var fra=a.cuiAssociations;if(fra){a:{var gra=new jy,b2a=0;try{var c2a=fra.association;c2a&&(tO(gra.j.bind(gra),c2a,uNa),b2a++);var hra=[b2a===Object.keys(fra).length,
  10439. gra];break a}catch(Sa){Y(Sa);hra=[!1,void 0];break a}}var d2a=hra;d2a[0]&&(Hk(b,jy,8,d2a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Sa){return Y(Sa),[!1,void 0]}},
  10440. idbQuotaExceeded:function(a){var b=new Voa,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(Wk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(Wk(b,2,e),c++);var f=a.isIframe;void 0!==f&&(Tk(b,3,f),c++);var h=a.isSw;void 0!==h&&(Tk(b,4,h),c++);var l=a.dbName;void 0!==l&&(Q(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(Q(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(Uk(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(Q(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
  10441. [!1,void 0]}},
  10442. idbTransactionAborted:function(a){var b=new Woa,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(Tk(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(Uk(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(Uk(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(Uk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
  10443. streamzIncremented:function(a){var b=new qpa,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&($k(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
  10444. sliEventBatch:function(a){var b=new Ez,c=0;try{var d=a.loggedEvents;d&&(tO(b.j.bind(b),d,jOa),c++);var e=a.unloggedEvents;e&&(tO(b.B.bind(b),e,jOa),c++);var f=a.playerClientVersion;void 0!==f&&(Xk(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(S(b,4,Xlb[h]),c++);var l=a.dimensions;if(l){a:{var m=new Rna;d=0;try{var n=l.playerClientVersion;void 0!==n&&(Xk(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(S(m,2,Xlb[p]),d++);var q=[d===Object.keys(l).length,m];break a}catch(r){Y(r);q=[!1,void 0];
  10445. break a}}l=q;l[0]&&(Hk(b,Rna,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}},
  10446. playbackAssociated:function(a){var b=new eA,c=0;try{var d=a.cpn;void 0!==d&&(Q(b,1,d),c++);var e=a.playbackVe;if(e){var f=vO(e);f[0]&&(Hk(b,Hz,2,f[1]),c++)}var h=a.csn;void 0!==h&&(Q(b,3,h),c++);var l=a.queueInfo;if(l){a:{var m=new dA;d=0;try{var n=l.enqueueingVe;if(n){var p=vO(n);p[0]&&(Hk(m,Hz,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(Q(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(Wk(m,3,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(v){Y(v);t=[!1,void 0];break a}t=void 0}l=
  10447. t;l[0]&&(Hk(b,dA,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}},
  10448. autoplayTriggered:function(a){var b=new Tna,c=0;try{var d=a.intentional;void 0!==d&&(Tk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
  10449. webPlayerApiCalled:function(a){var b=new AA,c=0;try{var d=a.callerUrl;void 0!==d&&(Q(b,1,d),c++);var e=a.methodName;void 0!==e&&(Q(b,2,e),c++);var f=a.origin;void 0!==f&&(Q(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(Q(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(S(b,5,olb[l]),c++);var m=a.errorCode;void 0!==m&&(Uk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
  10450. embedsAdEvent:function(a){var b=new Sna,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,$lb[d]),c++);var e=a.breakType;void 0!==e&&(S(b,2,Zlb[e]),c++);var f=a.packageName;void 0!==f&&(Q(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(Q(b,4,h),c++);var l=a.adSource;void 0!==l&&(S(b,5,amb[l]),c++);var m=a.youtubeHost;void 0!==m&&(Q(b,6,m),c++);var n=a.embeddedPlayerMode;void 0!==n&&(S(b,7,olb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
  10451. embedsShouldRequestStorageAccessResult:function(a){var b=new Vna,c=0;try{var d=a.result;void 0!==d&&(Tk(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
  10452. embedsRequestStorageAccessState:function(a){var b=new Una,c=0;try{var d=a.isCued;void 0!==d&&(Tk(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
  10453. embedsRequestStorageAccessFailedState:function(a){var b=new Fz,c=0;try{var d=a.state;void 0!==d&&(b.Gc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
  10454. heartbeatActionPlayerHalted:function(a){var b=new Toa,c=0;try{var d=a.serializedServerContext;void 0!==d&&($k(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
  10455. heartbeatActionPlayerTransitioned:function(a){var b=new Uoa,c=0;try{var d=a.reason;void 0!==d&&(S(b,1,hmb[d]),c++);var e=a.trigger;void 0!==e&&(S(b,2,imb[e]),c++);var f=a.serializedServerContext;void 0!==f&&($k(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}},
  10456. embedsItpWatchLaterResult:function(a){var b=new Wna,c=0;try{var d=a.accepted;void 0!==d&&(Tk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
  10457. html5PlayerHealthEvent:function(a){var b=new bA,c=0;try{var d=a.started;void 0!==d&&(Tk(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(S(b,2,wmb[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(Yk(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(Yk(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(Yk(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(S(b,7,kmb[m]),c++);var n=a.isAd;void 0!==n&&(Tk(b,8,n),c++);var p=a.liveMode;void 0!==p&&(S(b,9,vmb[p]),c++);var q=a.isGapless;void 0!==q&&(Tk(b,10,q),c++);var r=
  10458. a.hasDrm;void 0!==r&&(Tk(b,11,r),c++);var t=a.seekCount;void 0!==t&&(Uk(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(Uk(b,13,v),c++);var w=a.nonNetworkErrorCount;void 0!==w&&(Uk(b,14,w),c++);var A=a.isServerStitchedDai;void 0!==A&&(Tk(b,15,A),c++);var D=a.playerCanaryStage;void 0!==D&&(S(b,16,jmb[D]),c++);var F=a.encounteredSabrFallback;void 0!==F&&(Tk(b,17,F),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}},
  10459. adsClientStateChange:function(a){var b=new hna,c=0;try{var d=a.cuepointTrigger;if(d){a:{var e=new zy,f=0;try{var h=d.type;void 0!==h&&(S(e,1,Jlb[h]),f++);var l=d.event;void 0!==l&&(S(e,2,Ilb[l]),f++);var m=d.cuepointId;void 0!==m&&(Q(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(Yk(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(Yk(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(Yk(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(Yk(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(Q(e,8,t),
  10460. f++);var v=d.externalChannelId;void 0!==v&&(Q(e,9,v),f++);var w=[f===Object.keys(d).length,e];break a}catch(mc){Y(mc);w=[!1,void 0];break a}}var A=w;A[0]&&(Ik(b,zy,1,y2,A[1]),c++)}var D=a.daiStateTrigger;if(D){a:{var F=new Ey,H=0;try{var L=D.contentCpn;void 0!==L&&(Q(F,1,L),H++);var M=D.totalCueDurationMs;void 0!==M&&(Yk(F,2,M),H++);var R=D.filledAdsDurationMs;void 0!==R&&(Yk(F,3,R),H++);var ea=D.cueStartChange;void 0!==ea&&(S(F,4,Plb[ea]),H++);var la=D.cueDurationChange;void 0!==la&&(S(F,5,Nlb[la]),
  10461. H++);var ka=D.cueDurationChangeReason;void 0!==ka&&(S(F,6,Olb[ka]),H++);var ia=D.errorType;void 0!==ia&&(S(F,7,Qlb[ia]),H++);var sa=D.externalChannelId;void 0!==sa&&(Q(F,8,sa),H++);var aa=D.adClientData;if(aa){var U=oNa(aa);U[0]&&(Hk(F,uy,9,U[1]),H++)}var Ha=[H===Object.keys(D).length,F];break a}catch(mc){Y(mc);Ha=[!1,void 0];break a}Ha=void 0}var x=Ha;x[0]&&(Ik(b,Ey,2,y2,x[1]),c++)}var ba=a.daiAdBreakCriticalError;if(ba){a:{var La=new Ay,ab=0;try{var lb=ba.contentCpn;void 0!==lb&&(Q(La,1,lb),ab++);
  10462. var Qa=ba.errorType;void 0!==Qa&&(S(La,2,Qlb[Qa]),ab++);var Ua=ba.externalChannelId;void 0!==Ua&&(Q(La,3,Ua),ab++);var jb=ba.msg;void 0!==jb&&(Q(La,4,jb),ab++);var rb=ba.cueIdentifier;void 0!==rb&&(Q(La,5,rb),ab++);var pb=[ab===Object.keys(ba).length,La];break a}catch(mc){Y(mc);pb=[!1,void 0];break a}}var B=pb;B[0]&&(Ik(b,Ay,3,y2,B[1]),c++)}var C=a.daiAdBreakWarning;if(C){a:{var E=new Cy,J=0;try{var K=C.contentCpn;void 0!==K&&(Q(E,1,K),J++);var ca=C.errorType;void 0!==ca&&(S(E,2,Qlb[ca]),J++);var ta=
  10463. C.externalChannelId;void 0!==ta&&(Q(E,3,ta),J++);var na=C.msg;void 0!==na&&(Q(E,4,na),J++);var O=C.cueIdentifier;void 0!==O&&(Q(E,5,O),J++);var Z=[J===Object.keys(C).length,E];break a}catch(mc){Y(mc);Z=[!1,void 0];break a}}var ya=Z;ya[0]&&(Ik(b,Cy,4,y2,ya[1]),c++)}var xa=a.daiAdBreakInfo;if(xa){a:{var Za=new By,Wa=0;try{var zb=xa.contentCpn;void 0!==zb&&(Q(Za,1,zb),Wa++);var Rb=xa.totalCueDurationMs;void 0!==Rb&&(Wk(Za,2,Rb),Wa++);var eb=xa.filledAdsDurationMs;void 0!==eb&&(Wk(Za,3,eb),Wa++);var Ub=
  10464. xa.cueStartChange;void 0!==Ub&&(S(Za,4,Plb[Ub]),Wa++);var hc=xa.cueDurationChange;void 0!==hc&&(S(Za,5,Nlb[hc]),Wa++);var Dc=xa.cueDurationChangeReason;void 0!==Dc&&(S(Za,6,Olb[Dc]),Wa++);var Zb=xa.externalChannelId;void 0!==Zb&&(Q(Za,7,Zb),Wa++);var vc=xa.cueIdentifier;void 0!==vc&&(Q(Za,8,vc),Wa++);var Wc=xa.infoType;void 0!==Wc&&(S(Za,9,Rlb[Wc]),Wa++);var Sc=xa.msg;void 0!==Sc&&(Q(Za,10,Sc),Wa++);var Ec=xa.filledAdCount;void 0!==Ec&&(Uk(Za,11,Ec),Wa++);var Fc=[Wa===Object.keys(xa).length,Za];break a}catch(mc){Y(mc);
  10465. Fc=[!1,void 0];break a}}var Xb=Fc;Xb[0]&&(Ik(b,By,5,y2,Xb[1]),c++)}var yd=a.visibilityErrorDebugInfo;if(yd){a:{var fd=new gna,fc=0;try{var $b=yd.elementName;void 0!==$b&&(Q(fd,1,$b),fc++);var Gc=yd.contentVideoPlaybackEventId;void 0!==Gc&&(Q(fd,2,Gc),fc++);var Jb=yd.errorList;void 0!==Jb&&(Q(fd,3,Jb),fc++);var ad=yd.htmlDump;void 0!==ad&&(Q(fd,4,ad),fc++);var sd=[fc===Object.keys(yd).length,fd];break a}catch(mc){Y(mc);sd=[!1,void 0];break a}}var Pb=sd;Pb[0]&&(Ik(b,gna,6,y2,Pb[1]),c++)}var de=a.playbackTimelineAdBreakStateTrigger;
  10466. if(de){a:{var Rd=new ena,Sd=0;try{var Ae=de.cueIdentifier;void 0!==Ae&&(Q(Rd,1,Ae),Sd++);var Be=de.timestampUnixEpochSec;void 0!==Be&&(Wk(Rd,2,Be),Sd++);var Jd=de.adRequestState;void 0!==Jd&&(S(Rd,3,Klb[Jd]),Sd++);var pf=de.segmentState;void 0!==pf&&(S(Rd,4,Llb[pf]),Sd++);var Oe=de.timestampUnixEpochMs;void 0!==Oe&&(Wk(Rd,5,Oe),Sd++);var Kd=[Sd===Object.keys(de).length,Rd];break a}catch(mc){Y(mc);Kd=[!1,void 0];break a}}var Ef=Kd;Ef[0]&&(Ik(b,ena,7,y2,Ef[1]),c++)}var Td=a.extraLongAdBreakDebugInfo;
  10467. if(Td){a:{var ee=new dna,Ld=0;try{var zd=Td.contentVideoPlaybackEventId;void 0!==zd&&(Q(ee,1,zd),Ld++);var bd=Td.adPlacementKindCuepointInitiatedCueRange;if(bd){var Md=vNa(bd);Md[0]&&(Hk(ee,Gy,2,Md[1]),Ld++)}var Ze=Td.adPlacementConfigImpliedCueRange;if(Ze){var qf=vNa(Ze);qf[0]&&(Hk(ee,Gy,3,qf[1]),Ld++)}var Xf=Td.adPlacementKindMillisecondsInitiatedCueRange;if(Xf){var se=vNa(Xf);se[0]&&(Hk(ee,Gy,4,se[1]),Ld++)}var rc=Td.cueIdentifier;void 0!==rc&&(Q(ee,5,rc),Ld++);var Pe=[Ld===Object.keys(Td).length,
  10468. ee];break a}catch(mc){Y(mc);Pe=[!1,void 0];break a}Pe=void 0}var Vh=Pe;Vh[0]&&(Ik(b,dna,8,y2,Vh[1]),c++)}var ie=a.comparePyvAdTagInfo;if(ie){a:{var ph=new cna,Ni=0;try{var sf=ie.pyvAdTagUrlFromPlayer;void 0!==sf&&(Q(ph,1,sf),Ni++);var df=ie.pyvAdTagUrlFromWatchNext;void 0!==df&&(Q(ph,2,df),Ni++);var te=[Ni===Object.keys(ie).length,ph];break a}catch(mc){Y(mc);te=[!1,void 0];break a}}var ai=te;ai[0]&&(Ik(b,cna,9,y2,ai[1]),c++)}var uc=a.driftRecoveryInfo;if(uc){a:{var wc=new Fy,Hc=0;try{var vj=uc.contentCpn;
  10469. void 0!==vj&&(Q(wc,1,vj),Hc++);var If=uc.cueIdentifier;void 0!==If&&(Q(wc,2,If),Hc++);var Qg=uc.driftRecoveryMs;void 0!==Qg&&(Wk(wc,3,Qg),Hc++);var sg=uc.breakDurationMs;void 0!==sg&&(Wk(wc,4,sg),Hc++);var Oi=uc.driftFromHeadMs;void 0!==Oi&&(Wk(wc,5,Oi),Hc++);var bi=uc.appliedDriftRecoveryMs;void 0!==bi&&(Wk(wc,6,bi),Hc++);var Pi=uc.destinationMs;void 0!==Pi&&(Wk(wc,7,Pi),Hc++);var tf=uc.adClientData;if(tf){var hd=oNa(tf);hd[0]&&(Hk(wc,uy,8,hd[1]),Hc++)}var uf=[Hc===Object.keys(uc).length,wc];break a}catch(mc){Y(mc);
  10470. uf=[!1,void 0];break a}uf=void 0}var ci=uf;ci[0]&&(Ik(b,Fy,10,y2,ci[1]),c++)}var ef=a.adsClientEvent;if(ef){a:{var $f=new bna,ag=0;try{var di=ef.eventType;void 0!==di&&(S($f,1,Hlb[di]),ag++);var Jf=ef.adClientData;if(Jf){var tg=oNa(Jf);tg[0]&&(Hk($f,uy,3,tg[1]),ag++)}var qh=ef.serializedAdServingData;void 0!==qh&&($k($f,4,qh),ag++);var Rg=ef.eventOrder;void 0!==Rg&&(Uk($f,5,Rg),ag++);var ug=ef.serializedSlotAdServingData;void 0!==ug&&($k($f,6,ug),ag++);var ue=ef.errorInfo;if(ue){b:{var Se=new yy,
  10471. je=0;try{var rh=ue.errorType;void 0!==rh&&(S(Se,1,Glb[rh]),je++);var ff=ue.errorMessage;void 0!==ff&&(S(Se,2,Flb[ff]),je++);var gf=[je===Object.keys(ue).length,Se];break b}catch(mc){Y(mc);gf=[!1,void 0];break b}}var Kf=gf;Kf[0]&&(Hk($f,yy,7,Kf[1]),ag++)}var bg=[ag===Object.keys(ef).length,$f];break a}catch(mc){Y(mc);bg=[!1,void 0];break a}bg=void 0}var Sg=bg;Sg[0]&&(Ik(b,bna,11,y2,Sg[1]),c++)}var ke=a.daiAdStateTracking;if(ke){a:{var vg=new Dy,Lf=0;try{var Qi=ke.eventType;void 0!==Qi&&(S(vg,1,Mlb[Qi]),
  10472. Lf++);var sh=ke.contentCpn;void 0!==sh&&(Q(vg,2,sh),Lf++);var fm=ke.externalChannelId;void 0!==fm&&(Q(vg,3,fm),Lf++);var gm=ke.adCpn;void 0!==gm&&(Q(vg,4,gm),Lf++);var kk=ke.adCount;void 0!==kk&&(Wk(vg,5,kk),Lf++);var lk=ke.msg;void 0!==lk&&(Q(vg,6,lk),Lf++);var wj=[Lf===Object.keys(ke).length,vg];break a}catch(mc){Y(mc);wj=[!1,void 0];break a}}var Te=wj;Te[0]&&(Ik(b,Dy,12,y2,Te[1]),c++)}var De=a.adTrimmingInfo;if(De){a:{var Yd=new vy,Tg=0;try{var ei=De.contentCpn;void 0!==ei&&(Q(Yd,1,ei),Tg++);var hm=
  10473. De.cueIdentifier;void 0!==hm&&(Q(Yd,2,hm),Tg++);var il=De.adMediaInfo;il&&(tO(Yd.j.bind(Yd),il,wNa),Tg++);var xj=[Tg===Object.keys(De).length,Yd];break a}catch(mc){Y(mc);xj=[!1,void 0];break a}}var th=xj;th[0]&&(Ik(b,vy,13,y2,th[1]),c++)}var Ug=a.adsAttributionEvent;if(Ug){a:{var hf=new wy,fi=0;try{var mk=Ug.errorCode;void 0!==mk&&(S(hf,1,Slb[mk]),fi++);var jl=Ug.attributionStep;void 0!==jl&&(S(hf,2,Tlb[jl]),fi++);var gi=Ug.innerErrorDomain;void 0!==gi&&(Q(hf,3,gi),fi++);var Ri=Ug.innerErrorCode;
  10474. void 0!==Ri&&(Wk(hf,4,Ri),fi++);var Vg=[fi===Object.keys(Ug).length,hf];break a}catch(mc){Y(mc);Vg=[!1,void 0];break a}}var wg=Vg;wg[0]&&(Ik(b,wy,14,y2,wg[1]),c++)}var hi=a.playerDebugData;if(hi){a:{var ii=new Hy,nk=0;try{var kl=hi.pmlSignal;void 0!==kl&&(Tk(ii,1,kl),nk++);var ok=hi.contentCpn;void 0!==ok&&(Q(ii,2,ok),nk++);var Si=[nk===Object.keys(hi).length,ii];break a}catch(mc){Y(mc);Si=[!1,void 0];break a}}var im=Si;im[0]&&(Ik(b,Hy,15,y2,im[1]),c++)}var vf=a.sourceRegistrationEvent;if(vf){a:{var cg=
  10475. new fna,Mf=0;try{var Nf=vf.eventType;void 0!==Nf&&(S(cg,1,Ulb[Nf]),Mf++);var ll=[Mf===Object.keys(vf).length,cg];break a}catch(mc){Y(mc);ll=[!1,void 0];break a}}var jm=ll;jm[0]&&(Ik(b,fna,16,y2,jm[1]),c++)}return[c===Object.keys(a).length,b]}catch(mc){return Y(mc),[!1,void 0]}},
  10476. offlineTransferStatusChanged:xMa,offlineStateSnapshot:function(a){var b=new zA,c=0;try{var d=a.offlineVideos;d&&(tO(b.B.bind(b),d,$Ma),c++);var e=a.offlinePlaylists;e&&(tO(b.j.bind(b),e,bNa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(Wk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(Wk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(Wk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(Wk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(Wk(b,7,n),c++);var p=
  10477. a.isBatteryCharging;void 0!==p&&(Tk(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(S(b,9,FO[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(Uk(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(Tk(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){a:{var w=new tA;d=0;try{var A=v.numUncachedVideos;void 0!==A&&(Vk(w,1,A),d++);var D=v.numTotalCompletedVideos;void 0!==D&&(Vk(w,2,D),d++);var F=v.uncachedVideos;F&&(tO(w.j.bind(w),F,eNa),d++);var H=[d===Object.keys(v).length,w];break a}catch(aa){Y(aa);
  10478. H=[!1,void 0];break a}}v=H;v[0]&&(Hk(b,tA,12,v[1]),c++)}var L=a.additionalOfflineClientState;if(L){a:{var M=new ipa;v=0;try{var R=L.mainAppAdditionalOfflineClientState;if(R){b:{var ea=new vA;H=0;try{var la=R.downloadRecsVideos;la&&(tO(ea.j.bind(ea),la,fNa),H++);var ka=R.smartDownloadVideos;ka&&(tO(ea.B.bind(ea),ka,gNa),H++);var ia=[H===Object.keys(R).length,ea];break b}catch(aa){Y(aa);ia=[!1,void 0];break b}}R=ia;R[0]&&(Hk(M,vA,1,R[1]),v++)}var sa=[v===Object.keys(L).length,M];break a}catch(aa){Y(aa);
  10479. sa=[!1,void 0];break a}sa=void 0}L=sa;L[0]&&(Hk(b,ipa,13,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}}},wfb={adNotify:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;
  10480. Ik(d,Uma,184,BE,a);c?zE("adNotify",d,c,b):AE("adNotify",d,b)},
  10481. biscottiBasedDetection:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Az,439,BE,a);c?zE("biscottiBasedDetection",d,c,b):AE("biscottiBasedDetection",d,b)},
  10482. adNotifyFilled:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Tma,300,BE,a);c?zE("adNotifyFilled",d,c,b):AE("adNotifyFilled",d,b)},
  10483. idbTransactionEnded:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,cA,352,BE,a);c?zE("idbTransactionEnded",d,c,b):AE("idbTransactionEnded",d,b)},
  10484. idbUnexpectedlyClosed:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Xoa,348,BE,a);c?zE("idbUnexpectedlyClosed",d,c,b):AE("idbUnexpectedlyClosed",d,b)},
  10485. flowEvent:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Roa,304,BE,a);c?zE("flowEvent",d,c,b):AE("flowEvent",d,b)},
  10486. idbQuotaExceeded:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Voa,351,BE,a);c?zE("idbQuotaExceeded",d,c,b):AE("idbQuotaExceeded",d,b)},
  10487. idbTransactionAborted:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Woa,353,BE,a);c?zE("idbTransactionAborted",d,c,b):AE("idbTransactionAborted",d,b)},
  10488. streamzIncremented:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,qpa,126,BE,a);c?zE("streamzIncremented",d,c,b):AE("streamzIncremented",d,b)},
  10489. sliEventBatch:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Ez,344,BE,a);c?zE("sliEventBatch",d,c,b):AE("sliEventBatch",d,b)},
  10490. playbackAssociated:Wva,autoplayTriggered:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Tna,209,BE,a);c?zE("autoplayTriggered",d,c,b):AE("autoplayTriggered",d,b)},
  10491. webPlayerApiCalled:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,AA,76,BE,a);c?zE("webPlayerApiCalled",d,c,b):AE("webPlayerApiCalled",d,b)},
  10492. embedsAdEvent:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Sna,327,BE,a);c?zE("embedsAdEvent",d,c,b):AE("embedsAdEvent",d,b)},
  10493. embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Vna,251,BE,a);c?zE("embedsShouldRequestStorageAccessResult",d,c,b):AE("embedsShouldRequestStorageAccessResult",d,b)},
  10494. embedsRequestStorageAccessState:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Una,256,BE,a);c?zE("embedsRequestStorageAccessState",d,c,b):AE("embedsRequestStorageAccessState",d,b)},
  10495. embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Fz,257,BE,a);c?zE("embedsRequestStorageAccessFailedState",d,c,b):AE("embedsRequestStorageAccessFailedState",d,b)},
  10496. heartbeatActionPlayerHalted:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Toa,332,BE,a);c?zE("heartbeatActionPlayerHalted",d,c,b):AE("heartbeatActionPlayerHalted",d,b)},
  10497. heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Uoa,330,BE,a);c?zE("heartbeatActionPlayerTransitioned",d,c,b):AE("heartbeatActionPlayerTransitioned",d,b)},
  10498. embedsItpWatchLaterResult:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Wna,266,BE,a);c?zE("embedsItpWatchLaterResult",d,c,b):AE("embedsItpWatchLaterResult",d,b)},
  10499. html5PlayerHealthEvent:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,bA,293,BE,a);c?zE("html5PlayerHealthEvent",d,c,b):AE("html5PlayerHealthEvent",d,b)},
  10500. adsClientStateChange:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,hna,197,BE,a);c?zE("adsClientStateChange",d,c,b):AE("adsClientStateChange",d,b)},
  10501. offlineTransferStatusChanged:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,Pz,2,BE,a);c?zE("offlineTransferStatusChanged",d,c,b):AE("offlineTransferStatusChanged",d,b)},
  10502. offlineStateSnapshot:function(a,b,c){var d=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA;Ik(d,zA,22,BE,a);c?zE("offlineStateSnapshot",d,c,b):AE("offlineStateSnapshot",d,b)}};LO.prototype.Rx=function(a){this.client=a};
  10503. LO.prototype.j=function(){this.clear();this.csn=g.FE()};
  10504. LO.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};NO.prototype.Rx=function(a){g.JA(MO().Rx).bind(MO())(a)};
  10505. NO.prototype.clear=function(){g.JA(MO().clear).bind(MO())()};g.k=OO.prototype;g.k.Rx=function(a){this.client=a};
  10506. g.k.fX=function(a,b){var c=this;b=void 0===b?{}:b;g.JA(function(){var d,e,f,h=(null==(d=g.V(null==a?void 0:a.commandMetadata,g.x2))?void 0:d.rootVe)||(null==(e=g.V(null==a?void 0:a.commandMetadata,Dlb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.V(null==a?void 0:a.commandMetadata,Rmb);if(null==d?0:d.parentTrackingParams){var l=g.DE(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.DE(a.clickTrackingParams));
  10507. a:{d=g.V(a,g.PS);e=g.V(a,Gmb);if(d){if(e=cKa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=cKa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.aB("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.V(null==a?void 0:a.commandMetadata,Dlb))?void 0:n.loggingExpectations)||void 0}QO(c,h,l,b)}else g.JE(new g.eC("Error: Trying to create a new screen without a rootVeType",a))})()};
  10508. g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.FE(void 0===c?0:c))?(axa(this.client,c,g.DE(a),b),b=!0):b=!1:b=!1;return b};
  10509. g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.DE(a),b,void 0===c?0:c)};
  10510. g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.Z.push([a,b]):sOa(this,a,b,c)};TO.prototype.fetch=function(a,b,c){var d=this,e=vOa(a,b,c);return new Promise(function(f,h){function l(){if(null==c?0:c.Uq)try{var n=d.handleResponse(a,e.status,e.response,c);f(n)}catch(p){h(p)}else f(d.handleResponse(a,e.status,e.response,c))}
  10511. e.onerror=l;e.onload=l;var m;e.send(null!=(m=b.body)?m:null)})};
  10512. TO.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.JE(new g.eC("JSON parsing failed after XHR fetch",a,b,c));if((null==d?0:d.Uq)&&c)throw new g.sH(1,"JSON parsing failed after XHR fetch");e={}}200!==b&&(g.JE(new g.eC("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};UO.getInstance=function(){var a=g.Xa("ytglobal.storage_");a||(a=new UO,g.Va("ytglobal.storage_",a));return a};
  10513. UO.prototype.estimate=function(){var a,b,c;return g.G(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(wOa()):d.return()})};
  10514. g.Va("ytglobal.storageClass_",UO);Ara.prototype.Vp=function(a){this.handleError(a)};
  10515. Ara.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.aB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.aB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":yOa(this,b);break;case "TRANSACTION_ENDED":this.C&&.1>=Math.random()&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=
  10516. Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var Z2={},fVa=g.ZC("yt-player-local-media",{Mr:(Z2.index={hn:2},Z2.media={hn:2},Z2.captions={hn:5},Z2),shared:!1,upgrade:function(a,b){b(2)&&(g.FC(a,"index"),g.FC(a,"media"));b(5)&&g.FC(a,"captions");b(6)&&(GC(a,"metadata"),GC(a,"playerdata"))},
  10517. version:5});var dob={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},$2;a:{var a3=g.oc();a3=a3.toLowerCase();if(g.ic(a3,"android")){var eob=a3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(eob){var fob=parseFloat(eob[1]);if(100>fob){$2=fob;break a}}var gob=a3.match("("+Object.keys(dob).join("|")+")");$2=gob?dob[gob[0]]:0}else $2=void 0}var ER=$2,bUa=0<=ER;var Fcb=window;var zOa=Id(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var BOa;g.VO=new yH;BOa=0;var WO={mD:function(a){a.reverse()},
  10518. Wm:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
  10519. FQ:function(a,b){a.splice(0,b)}};var Beb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var hR=LOa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.VC?!0:!1;var ZTa={xka:"adunit",Bxa:"detailpage",nya:"editpage",vya:"embedded",FOa:"leanback",k3a:"previewpage",t4a:"profilepage",TV:"unplugged",t2a:"playlistoverview",sab:"sponsorshipsoffer",a8a:"shortspage",BHa:"handlesclaiming",mJa:"immersivelivepage",Tva:"creatormusic",nJa:"immersivelivepreviewpage",fga:"admintoolyurt"};var ZPa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},$Pa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Kcb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var CVa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.aP.prototype.getLanguageInfo=function(){return this.lc};
  10520. g.aP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
  10521. g.aP.prototype.toString=function(){return this.lc.name};
  10522. g.aP.prototype.getLanguageInfo=g.aP.prototype.getLanguageInfo;bP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
  10523. bP.prototype.compose=function(a){if(a.C&&eP(a))return DS;if(a.C||eP(this))return a;if(this.C||eP(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;cP&&(d=0!==this.sb&&0!==a.sb?Math.min(this.sb,a.sb):0===this.sb?a.sb:this.sb);return cP&&b===this.B&&c===this.j&&d===this.sb||!cP&&b===this.B&&c===this.j?this:cP?new bP(b,c,!1,c===this.j&&d===this.sb?this.reason:a.reason,d):new bP(b,c,!1,c===this.j?this.reason:a.reason)};
  10524. bP.prototype.D=function(a){return!a.video||cP&&0!==this.sb&&this.sb<a.sb?!1:cQa(this,a.video.quality)};
  10525. var hob=g.dP("auto","hd1080",!1,"l"),Qbb=g.dP("auto","large",!1,"l"),DS=g.dP("auto","auto",!1,"p"),cP=!1;iP.prototype.Ct=function(a){a=a||DS;for(var b=g.Pt(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
  10526. d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
  10527. iP.prototype.lE=function(a){a=a||DS;return g.Pt(this.videoInfos,function(b){return a.D(b)})};
  10528. iP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var vQa=new Set(["356"]);g.y(dQa,g.I);dQa.prototype.va=function(){g.I.prototype.va.call(this)};g.sP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
  10529. g.sP.prototype.get=function(a){tP(this);return this.j[a]||null};
  10530. g.sP.prototype.Le=function(){this.url||(this.url=CQa(this));return this.url};
  10531. g.sP.prototype.clone=function(){var a=new g.sP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.md(this.j);a.url=this.url;return a};
  10532. var BQa=[Vla];g.k=g.zP.prototype;g.k.ZM=function(a){this.segments.push(a)};
  10533. g.k.Ln=function(a){return!!this.Bn(a)};
  10534. g.k.getDuration=function(a){return(a=this.Bn(a))?a.duration:0};
  10535. g.k.RX=function(a){return this.getDuration(a)};
  10536. g.k.Dn=function(){return this.segments.length?this.segments[0].Pa:-1};
  10537. g.k.Ze=function(a){return(a=this.Bn(a))?a.ingestionTime:NaN};
  10538. g.k.Cd=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
  10539. g.k.mQ=function(a){return this.Cd()===a&&!this.B&&0<=a};
  10540. g.k.Ft=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
  10541. g.k.Dd=function(){return this.segments[0].startTime};
  10542. g.k.Vz=function(){return this.segments.length};
  10543. g.k.mm=function(){return 0};
  10544. g.k.Di=function(a){return(a=this.Lz(a))?a.Pa:-1};
  10545. g.k.vJ=function(a){return(a=this.Bn(a))?a.sourceURL:""};
  10546. g.k.getStartTime=function(a){return(a=this.Bn(a))?a.startTime:0};
  10547. g.k.qE=function(a){return this.getStartTime(a)+this.getDuration(a)};
  10548. g.k.yJ=da(2);g.k.isLoaded=function(){return 0<this.segments.length};
  10549. g.k.Bn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Sb(this.segments,new yP(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
  10550. return this.j=0<=a?this.segments[a]:null};
  10551. g.k.Lz=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Sb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
  10552. return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
  10553. g.k.append=function(a){if(a.length)if(a=g.Lb(a),this.segments.length){var b=this.segments.length?g.Bb(this.segments).endTime:0,c=a[0].Pa-this.Cd();1<c&&taa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
  10554. g.k.YX=function(){return 0};GQa.prototype.skip=function(a){this.j+=a};var b3={},iob=(b3.predictStart="predictStart",b3.start="start",b3["continue"]="continue",b3.stop="stop",b3),KQa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};IP.prototype.NE=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
  10555. IP.prototype.toString=function(){for(var a="",b=g.u(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};SP.prototype.Qn=function(){var a=this.pos;this.pos=0;var b=!1;try{WP(this,440786851)&&(this.pos=0,WP(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.JE(c);else throw c;}this.pos=a;return b};eQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
  10556. eQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
  10557. eQ.prototype.Le=function(){this.url||(this.url=iRa(this));return this.url};gQ.prototype.Jj=function(a,b){if(this.N)return!0;if(vP(this.j))return!1;var c=fQ(b,uP(this.j));if(1>c.timedOut&&1>c.j)return!1;c=c.timedOut+c.j;a=nRa(this,a);b=fQ(b,uP(a));return b.timedOut+b.j+0<c};
  10558. gQ.prototype.rJ=function(a){return this.C.get(a)};
  10559. gQ.prototype.Vk=function(a,b){a.base===this.j&&(this.j=jRa(a,b));a.base===this.D&&(this.D=jRa(a,b))};hQ.prototype.fg=function(){return!!this.j&&this.index.isLoaded()};
  10560. hQ.prototype.vA=function(){return!1};
  10561. hQ.prototype.mV=function(a){return[a]};
  10562. hQ.prototype.IB=function(a){return[a]};iQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};mQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
  10563. mQ.prototype.vg=function(){return!!this.j.info.video};
  10564. mQ.prototype.zd=function(){var a=rQ(this),b="";g.Vc(a,function(c,d){b+=d+"_"+c+"_"});
  10565. return b.slice(0,-1)};sQ.prototype.Oz=function(){return this.j?this.j.Le():""};
  10566. sQ.prototype.Lp=function(){return!!(this.j||this.D&&this.D.Im)};
  10567. sQ.prototype.vp=function(){return oQ(this.ib[0])};
  10568. sQ.prototype.Vk=function(a,b){this.resource.Vk(a,b);if(this.j){this.j=jRa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};g.y(uQ,hQ);g.k=uQ.prototype;g.k.zm=function(){return!1};
  10569. g.k.Pw=function(){return!0};
  10570. g.k.qA=function(){return!1};
  10571. g.k.vA=function(){return!this.G};
  10572. g.k.ww=function(){return new sQ([new mQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
  10573. g.k.Hy=function(){return null};
  10574. g.k.XC=function(a){this.Ks(a);return this.Pw()&&a.B&&!a.Ue?new sQ([new mQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Rb+a.B,NaN,!0)],this.index.vJ(a.Pa)):this.Ls(xRa(a),!1)};
  10575. g.k.qr=function(a,b){b=void 0===b?!1:b;a=this.index.Di(a);b&&(a=Math.min(this.index.Cd(),a+1));return this.Ls(a,!0)};
  10576. g.k.DP=function(a){gSa(a)};
  10577. g.k.Ks=function(a){return 0===a.B?!0:this.index.Cd()>a.Pa&&this.index.Dn()<=a.Pa+1};
  10578. g.k.update=function(a,b,c){this.index.append(a);FQa(this.index,c);this.index.B=b};
  10579. g.k.fg=function(){return this.vA()?!0:hQ.prototype.fg.call(this)};
  10580. g.k.Ls=function(a,b){var c=this.index.vJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.sb?this.info.sb*e:1E3;return new sQ([new mQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
  10581. g.k.kP=function(){return this.vA()?0:this.initRange.length};
  10582. g.k.VR=function(){return!1};xQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new xQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+vQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+vQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Ah:0,m=Date.parse(NRa(vQ(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.N=vQ(a,"media"));a=b?h-b.Pa:1;c.K=0<a?0:-a+1;a=g.u(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
  10583. 0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new LRa(h,l,n,m+p,f);c.j.push(t);var v=d;var w=e,A=t.startSecs;t=v.getAttribute("yt:cuepointTimeOffset");var D=v.getAttribute("yt:cuepointDuration");if(t&&D){t=Number(t);A=-t/w+A;w=Number(D)/w;D=v.getAttribute("yt:cuepointContext")||null;var F=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new GP(A,w,D,F,iob[v]||"unknown",t)}else v=null;v&&c.C.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
  10584. (c.B=g.Bb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Mb(this.j,c.j);g.Mb(this.C,c.C);this.G=c.G;this.N=c.N;-1===this.D&&(this.D=c.getStreamTimeOffset())};
  10585. xQ.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.y(VRa,g.zP);g.k=VRa.prototype;g.k.Ln=function(a,b){a=yQ(this,a);return 0<=a&&(b||!this.segments[a].pending)};
  10586. g.k.Dn=function(){return this.jn?this.segments.length?this.Lz(this.Dd()).Pa:-1:g.zP.prototype.Dn.call(this)};
  10587. g.k.Dd=function(){if(this.Zd)return 0;if(!this.jn)return g.zP.prototype.Dd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Bb(this.segments).endTime-this.Rq,0);return 0<this.cf&&this.Lz(a).Pa<this.cf?this.Bn(this.cf).startTime:a};
  10588. g.k.Ft=function(){if(!this.segments.length)return g.zP.prototype.Ft.call(this);var a=this.Cd();if(!this.jn||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new yP(a,Math.max(0,b.startTime-(b.Pa-a)*this.Hj),this.Hj,0,"sq/"+a,void 0,void 0,!0)}return this.Zd?Math.min(this.Rq,a.endTime):a.endTime};
  10589. g.k.Vz=function(){return this.jn?this.segments.length?this.Cd()-this.Dn()+1:0:g.zP.prototype.Vz.call(this)};
  10590. g.k.Cd=function(){var a=Math.min(this.Gh,Math.max(g.zP.prototype.Cd.call(this),this.Hp)),b=1E3*this.Rq;b=0<this.Ar&&this.Ar<b;this.Zd&&0<this.Rq&&0<this.Hp&&!b&&(b=this.Lz(this.Rq))&&(a=Math.min(b.Pa-1,a));return a};
  10591. g.k.ow=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
  10592. g.k.ZM=function(a){var b=yQ(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.MA&&0===a.Pa%(300/this.Hj)){var c=this.segments[0].Pa,d=Math.floor(this.MA/this.Hj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
  10593. g.k.jJ=function(){return this.Hp};
  10594. g.k.Lz=function(a){if(!this.jn)return g.zP.prototype.Lz.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Pa-Math.ceil((this.segments[0].startTime-a)/this.Hj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Hj+1);else{b=Tb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
  10595. if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Pa-b.Pa-1))+1)+b.Pa}return this.Bn(b)};
  10596. g.k.Bn=function(a){if(!this.jn)return g.zP.prototype.Bn.call(this,a);if(!this.segments.length)return null;var b=yQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Hj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new yP(a,d,b,0,"sq/"+a,void 0,void 0,
  10597. !0)};g.y(zQ,uQ);g.k=zQ.prototype;g.k.qA=function(){return!0};
  10598. g.k.fg=function(){return!0};
  10599. g.k.Ks=function(a){return this.Pw()&&a.B&&!a.Ue||!a.j.index.mQ(a.Pa)};
  10600. g.k.ww=function(){};
  10601. g.k.qr=function(a,b){return"number"!==typeof a||isFinite(a)?uQ.prototype.qr.call(this,a,void 0===b?!1:b):new sQ([new mQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Gj,void 0,this.Gj*this.info.sb)],"")};
  10602. g.k.Ls=function(a,b){var c=void 0===c?!1:c;if(this.index.Ln(a))return uQ.prototype.Ls.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Gj*this.info.sb),f=this.Gj;b&&(f=e=0);return new sQ([new mQ(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.y(AQ,hQ);g.k=AQ.prototype;g.k.zm=function(){return!1};
  10603. g.k.Pw=function(){return!1};
  10604. g.k.qA=function(){return!1};
  10605. g.k.ww=function(){return new sQ([new mQ(1,this,void 0,"otfInit")],this.G)};
  10606. g.k.Hy=function(){return null};
  10607. g.k.XC=function(a){this.Ks(a);return WRa(this,xRa(a),!1)};
  10608. g.k.qr=function(a,b){b=void 0===b?!1:b;a=this.index.Di(a);b&&(a=Math.min(this.index.Cd(),a+1));return WRa(this,a,!0)};
  10609. g.k.DP=function(a){1===a.info.type&&(this.j||(this.j=FN(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&XRa(this,a.B))};
  10610. g.k.Ks=function(a){return 0===a.B?!0:this.index.Cd()>a.Pa&&this.index.Dn()<=a.Pa+1};
  10611. g.k.kP=function(){return 0};
  10612. g.k.VR=function(){return!1};g.k=g.hSa.prototype;g.k.Ln=function(a){return a<=this.Cd()};
  10613. g.k.mm=function(a){return this.offsets[a]};
  10614. g.k.getStartTime=function(a){return this.Og[a]/this.j};
  10615. g.k.qE=function(a){return this.getStartTime(a)+this.getDuration(a)};
  10616. g.k.yJ=da(1);g.k.Ze=function(){return NaN};
  10617. g.k.getDuration=function(a){a=this.RX(a);return 0<=a?a/this.j:-1};
  10618. g.k.RX=function(a){return a+1<this.count||this.B?this.Og[a+1]-this.Og[a]:-1};
  10619. g.k.Dn=function(){return 0};
  10620. g.k.Cd=function(){return this.count-1};
  10621. g.k.mQ=function(a){return this.Cd()===a&&0<=a};
  10622. g.k.Ft=function(){return this.B?this.Og[this.count]/this.j:NaN};
  10623. g.k.Dd=function(){return 0};
  10624. g.k.Vz=function(){return this.count};
  10625. g.k.vJ=function(){return""};
  10626. g.k.Di=function(a){a=g.Sb(this.Og.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
  10627. g.k.isLoaded=function(){return 0<=this.Cd()};
  10628. g.k.YX=function(a,b){if(a>=this.Cd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Cd()&&b>this.getStartTime(a);a++)c=Math.max(c,iSa(this,a)/this.getDuration(a));return c};
  10629. g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.Og;this.Og=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Og[a]=c[a]};
  10630. g.k.cap=function(a,b){jSa(this);this.B=!0;this.Og[this.count]=b;this.offsets[this.count]=a};g.y(FQ,hQ);g.k=FQ.prototype;g.k.ww=function(a,b){var c=new mQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new mQ(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new mQ(4,this,kQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new sQ(d)};
  10631. g.k.DP=function(a){if(1===a.info.type){if(this.j)return;this.j=FN(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.Cd())return;if(g.nK(this.info)){var b=this.index,c=CQ(a);a=a.info.range.start;var d=g.KP(c,0,1936286840);c=VQa(d);b.j=c.zs;var e=c.K7;b.offsets[0]=c.c8+a+d.size;b.Og[0]=e;b.B=!0;a=c.oT.length;for(d=0;d<a;d++){e=b;var f=c.Tca[d],h=c.oT[d];e.count++;jSa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Og[e.count]=e.Og[e.count-1]+h}}else this.G=CQ(a)}if(this.info.Me()&&this.j&&this.G){c=
  10632. new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new SP(c);c=e;e=c.pos;f={U1:1E6,V1:1E9,duration:0,V0:0,HS:0};if(WP(c,408125543))if(f.V0=XP(c,!0),f.HS=c.start+c.pos,WP(c,357149030)){for(h=VP(c);!TP(h);){var l=XP(h,!1);2807729===l?f.U1=ZP(h):2807730===l?f.V1=ZP(h):17545===l?f.duration=aQ(h):$P(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.V1/c.U1;e=new SP(d);d=e;h=c.HS;e=d.pos;f=[];if(WP(d,475249515)){for(l=VP(d);WP(l,187);){var m=VP(l);if(WP(m,
  10633. 179)){var n=ZP(m);if(WP(m,183)){m=VP(m);for(var p=h;WP(m,241);)p=ZP(m)+h;f.push({wI:p,t7:n})}}}if(0<f.length&&a===f[0].wI)for(a=0;a<f.length;a++)f[a].wI+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.u(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.wI,f=f.t7,jSa(d),d.offsets[d.count]=e,d.Og[d.count]=f,d.count++;b.cap(c.V0+c.HS,c.duration)}}this.G=null}};
  10634. g.k.BE=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Cd();f++){var h=kQ(this.index.mm(f),iSa(this.index,f)),l=this.index.getStartTime(f),m=this.index.getDuration(f),n=Math.max(0,b-h.start),p=Math.min(h.end+1,b+c)-(h.start+n);e.push(new mQ(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.IE(new g.eC("b189619593",""+a,""+b,""+c));return new sQ(e)};
  10635. g.k.mV=function(a){for(var b=this.IB(a.info),c=a.info.range.start+a.info.Rb,d=[],e=0;e<b.length;e++){var f=DN(a.j,b[e].range.start+b[e].Rb-c,b[e].B);d.push(new BQ(b[e],f))}return d};
  10636. g.k.IB=function(a){for(var b=a.range.start+a.Rb,c=0;c<this.index.Cd()&&b>=this.index.mm(c+1);)c++;return this.BE(c,b,a.B).ib};
  10637. g.k.Ks=function(a){nQ(a);return this.fg()?!0:a.range.end+1<this.info.contentLength};
  10638. g.k.Hy=function(a,b){this.Ks(a);if(!this.fg())return b=kQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new iQ(b.start,this.info.contentLength-1)),new sQ([new mQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.IB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Rb+a.B;3===a.type&&(nQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.BE(c,d,b)};
  10639. g.k.XC=function(){return null};
  10640. g.k.qr=function(a,b,c){b=void 0===b?!1:b;a=this.index.Di(a);b&&(a=Math.min(this.index.Cd(),a+1));return this.BE(a,this.index.mm(a),0,c)};
  10641. g.k.zm=function(){return!0};
  10642. g.k.Pw=function(){return!0};
  10643. g.k.qA=function(){return!1};
  10644. g.k.kP=function(){return this.indexRange.length+this.initRange.length};
  10645. g.k.VR=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var c3={},DSa=(c3.COLOR_PRIMARIES_BT709="bt709",c3.COLOR_PRIMARIES_BT2020="bt2020",c3.COLOR_PRIMARIES_UNKNOWN=null,c3.COLOR_PRIMARIES_UNSPECIFIED=null,c3),d3={},lSa=(d3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",d3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",d3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",d3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",d3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,d3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,d3);g.GQ.prototype.getName=function(){return this.name};
  10646. g.GQ.prototype.getId=function(){return this.id};
  10647. g.GQ.prototype.getIsDefault=function(){return this.isDefault};
  10648. g.GQ.prototype.toString=function(){return this.name};
  10649. g.GQ.prototype.getName=g.GQ.prototype.getName;g.GQ.prototype.getId=g.GQ.prototype.getId;g.GQ.prototype.getIsDefault=g.GQ.prototype.getIsDefault;var qSa=/action_display_post/;var rSa,sSa,tSa;g.y(IQ,g.aF);g.k=IQ.prototype;g.k.isLoading=function(){return 1===this.state};
  10650. g.k.ym=function(){return 3===this.state};
  10651. g.k.tca=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Zb=this.B=!0;this.timeline||(this.timeline=new PRa);TRa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=NSa(this,b[a]);if(!this.j[c.id]){var d=KQ(wQ(b[a],"BaseURL").textContent),e=wQ(b[a],"Initialization"),f=vQ(e,"sourceURL");e=jQ(vQ(e,"range"));this.j[c.id]=new uQ(d,c,f,e)}c=this.j[c.id];d=vQ(b[a],"id",
  10652. "AdaptationSet");d=""!==d?d:vQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.K&&f.getStreamTimeOffset()&&(this.K=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.sb,n=h.Pa;var p=h.startSecs;var q=f.N.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
  10653. p.toString());e.push(new yP(h.Pa,h.startSecs,h.Ah,h.j,q.join("$"),null,h.B))}d=e}else{f=Nb(wQ(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&0<=Number(t[1])?p=jQ(r):q=q+"?range="+r}m.call(l,new yP(n.Pa,n.startSecs,n.Ah,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Wa)}URa(this.timeline);return!0}this.duration=MRa(vQ(a,"mediaPresentationDuration"));
  10654. a:{for(a=0;a<b.length;a++){f=b[a];c=NSa(this,f);d=KQ(wQ(f,"BaseURL").textContent);e=wQ(f,"SegmentBase");f=jQ(e.attributes.getNamedItem("indexRange").value);e=jQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new FQ(d,c,e,f);if(!c){b=!1;break a}HQ(this,c)}b=!0}return b};
  10655. g.k.refresh=function(){if(!this.isLoading()&&!this.Ma()){var a=g.lo(this.sourceUrl,{start_seq:TSa(this).toString()});PSa(this,a).xl(function(){})}};
  10656. g.k.resume=function(){OSa(this)};
  10657. g.k.Ke=function(){if(this.isManifestless&&this.C&&LQ(this))if(this.gb&&this.Gh)for(var a=g.u(Object.values(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.index;c=c.info;if(b.isLoaded()&&!rK(c.mimeType))return Math.min(LQ(this),b.getStartTime(this.Gh))}else return LQ(this);a=this.j;b=!1;var d=c=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&!rK(f.info.mimeType)&&(f.D&&(b=!0),h=h.Ft(),f.info.Ch()&&(isNaN(c)||h<c)?c=h:f.info.vg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,
  10658. d)};
  10659. g.k.Dd=function(){if(this.isManifestless){if(MQ(this))return MQ(this);if(this.qc){var a=this.Ze(this.Ke());if(a&&(a-=this.qc,0<a))return this.Ke()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!rK(a[b].info.mimeType))return c.Dd()}return 0};
  10660. g.k.getStreamTimeOffset=function(){return this.K};
  10661. g.k.Ze=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Di(a),e=c.Ze(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
  10662. var QQ=null,job,ZSa=!(null==(job=navigator.mediaCapabilities)||!job.decodingInfo),MSa={commentary:1,alternate:2,dub:3,main:4};g.RQ.prototype.info=function(){};
  10663. g.RQ.prototype.debug=function(){};
  10664. var cTa=new Map;var L_=new Set,SQ=new Map;UQ.prototype.clone=function(a){return new UQ(this.flavor,a,this.B,this.experiments)};
  10665. UQ.prototype.kc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
  10666. UQ.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
  10667. var kob={},hTa=(kob.playready=["com.youtube.playready","com.microsoft.playready"],kob.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],kob),e3={},Cbb=(e3.widevine="DRM_SYSTEM_WIDEVINE",e3.fairplay="DRM_SYSTEM_FAIRPLAY",e3.playready="DRM_SYSTEM_PLAYREADY",e3),f3={},lob=(f3.widevine=1,f3.fairplay=2,f3.playready=3,f3);var eR;g.y(cR,g.I);
  10668. cR.prototype.initialize=function(a,b){for(var c=this,d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.le)for(var h=g.u(Object.keys(f.le)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=hTa[m];!m&&this.L("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new UQ(l,n,f.le[l],this.Da.experiments),this.j[l]=this.j[l]||
  10669. {},this.j[l][f.mimeType]=!0}}}qB()&&(this.C["com.youtube.fairplay"]=new UQ("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=iTa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
  10670. cR.prototype.L=function(a){return this.Da.experiments.fb(a)};var jfb={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};qTa.prototype.L=function(a){return this.experiments.fb(a)};var cUa={RED:"red",hnb:"white"};rTa.prototype.fb=function(a){return"true"===this.flags[a]};var uTa=Promise.resolve(),zTa=window.queueMicrotask?window.queueMicrotask.bind(window):vTa;wTa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;UC?a=a||mob[b]:2.2===ER?a=a||nob[b]:oB()&&(a=a||oob[b]);return!!a};
  10671. wTa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):bK(a)};
  10672. var nob={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},oob={"application/x-mpegURL":"maybe"},mob={"application/x-mpegURL":"maybe"};g.y(kR,g.aF);kR.prototype.add=function(a,b){if(!this.items[a]&&(b.qI||b.XN||b.bM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}};
  10673. kR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
  10674. kR.prototype.get=function(a){return this.items[a]||null};
  10675. kR.prototype.isEmpty=function(){return g.jd(this.items)};g.y(lR,g.wN);lR.prototype.j=function(a,b){var c=DV.us();b=g.wN.prototype.j.call(this,a,b);DV.Wq("oap",c,Math.ceil(a.length/16));return b};
  10676. lR.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){if(1==h.j)return e=DV.us(),g.z(h,g.wN.prototype.B.call(d,a,b,c),2);f=h.B;DV.Wq("oan2",e,Math.ceil(a.byteLength/16));return h.return(f)})};
  10677. g.y(mR,g.xN);mR.prototype.encrypt=function(a,b){var c=DV.us();b=g.xN.prototype.encrypt.call(this,a,b);DV.Wq("oap",c,Math.ceil(a.byteLength/16));return b};
  10678. g.y(nR,yN);nR.prototype.encrypt=function(a,b){var c=this.Id.zI(a),d=this.Id.zI(b);yN.prototype.encrypt.call(this,c||a,d||b);d&&this.Id.exports.free(d.byteOffset);return c?this.Id.RQ(c):a};pR.prototype.Oi=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
  10679. pR.prototype.Zg=function(){return this.j/(1-Math.pow(this.alpha,this.B))};qR.prototype.Oi=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.gm=!0};
  10680. qR.prototype.Zg=function(){return this.K?(rR(this,this.D-this.K)+rR(this,this.D)+rR(this,this.D+this.K))/3:rR(this,this.D)};g.y(ITa,g.I);ITa.prototype.Va=function(){var a;null==(a=this.La)||a.start();if(xR(this)&&this.policy.N){var b;null==(b=this.kd)||b.AF()}};g.y(STa,g.I);var $Ta="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),iUa={Soa:"caoe",ura:"cbrand",Dra:"cbr",Era:"cbrver",nua:"cchip",Jua:"ccappver",Kua:"ccrv",dFa:"cfrmver",XJa:"c",aKa:"cver",ZJa:"ctheme",YJa:"cplayer",wWa:"cmodel",lXa:"cnetwork",I0a:"cos",J0a:"cosver",E1a:"cplatform",E5a:"crqyear"};g.y(gUa,g.I);g.k=gUa.prototype;g.k.L=function(a){return this.experiments.fb(a)};
  10681. g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
  10682. g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.NR(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.HR(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),UC&&(a=vpa())&&(b.ebc=a));return g.lo(f,b)};
  10683. g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.NR(this)+"/embed/"+b;d&&(b=g.lo(b,{list:d}));d=c.width;c=c.height;b=Ye(b);a=Ye(null!=a?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
  10684. g.k.supportsGaplessAudio=function(){return g.aK&&!UC&&74<=iqa()||g.bR&&g.Pc(68)?!0:!1};
  10685. g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.zC?!1:!0};
  10686. g.k.getPlayerType=function(){return this.j.cplayer};
  10687. g.k.zc=function(){return this.Qf};
  10688. g.k.Cu=function(){this.L("html5_enable_lawnmower_messaging")};
  10689. var oUa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],hUa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],lUa=[19];g.k=aS.prototype;g.k.getInfo=function(){return this.j};
  10690. g.k.YC=function(){return null};
  10691. g.k.nV=function(){var a=this.YC();return a?(a=g.OA(a.resource),Number(a.expire)):NaN};
  10692. g.k.IS=function(){};
  10693. g.k.getHeight=function(){return this.j.video.height};pUa.prototype.build=function(){tUa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.lc){if(e.lc.getIsDefault()){c=e.lc.getId();break a}c||(c=e.lc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.lc||e.lc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var f=e.next();!f.done;f=
  10694. e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.lc){p=f.lc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=rUa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(sUa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=pob,d=(h=d.lc)?'#EXT-X-MEDIA:URI="'+rUa(this,d.url)+
  10695. '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.G.length?pob:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,0<(null==(h=l)?void 0:h.length)&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(sUa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<h.fps&&(l+=
  10696. ",FRAME-RATE="+h.fps),h.oC&&(l+=",VIDEO-RANGE="+h.oC),a.push(l),a.push(rUa(this,e.url,"")));return a.join("\n")};
  10697. var pob="text";g.y(cS,aS);cS.prototype.nV=function(){return this.expiration};
  10698. cS.prototype.YC=function(){if(!this.resource||this.resource.Ma()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new FK(a)}return this.resource};g.y(dS,aS);dS.prototype.YC=function(){return new FK(this.B.Le())};
  10699. dS.prototype.IS=function(){this.B=wP(this.B)};g.y(eS,aS);eS.prototype.YC=function(){return new FK(this.B)};var qob={},FUa=(qob.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",qob.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",qob);g.k=g.fS.prototype;g.k.getId=function(){return this.id};
  10700. g.k.getName=function(){return this.name};
  10701. g.k.isServable=function(){return this.j};
  10702. g.k.Le=function(){return this.url};
  10703. g.k.toString=function(){return this.languageCode+": "+g.gS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
  10704. g.k.ue=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var KUa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LUa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},MUa=/^(\d*)_((\d*)_?(\d*))$/;var OUa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},PUa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var g3={},GVa=(g3.ALWAYS=1,g3.BY_REQUEST=3,g3.UNKNOWN=void 0,g3),h3={},NVa=(h3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",h3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",h3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",h3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",h3);var JJa;
  10705. JJa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{Ola(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[r]=
  10706. v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
  10707. return $Ja(a,b)}});
  10708. g.SS=new AN;nS.prototype.toString=function(){return this.type+this.id};g.oS.prototype.dh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return OR(this.Da,this.j,a)};
  10709. g.oS.prototype.Uk=function(){return this.Da.getVideoUrl(this.videoId,this.playlistId)};g.pS.prototype.dh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:OR(this.Da,this.videoId,a)};
  10710. g.pS.prototype.Uk=function(a){return this.watchUrl||this.Da.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var qS=void 0;eAa("LMS",function(){return g.G(function(a){return a.return(g.rS())})});var vS;vS=0;g.oVa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;eAa("LMDB",function(){var a,b;return g.G(function(c){if(1==c.j)return g.z(c,g.XC(),2);if(3!=c.j){a=c.B;if(!a)throw g.AC("edd");return g.z(c,g.uS(a),3)}b=c.B;return c.return(g.HC(b,["index","media","captions"],{mode:"readonly",Pb:!0},function(d){var e={};d=[g.MC(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.NC(f)}),
  10711. bsa(d.objectStore("media")),bsa(d.objectStore("captions"))];return g.CC.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:pVa(f||[]),captions:h}})}))})});g.y(wS,g.aF);wS.prototype.va=function(){this.j&&(this.j=this.j.onload=null);g.aF.prototype.va.call(this)};g.k=g.AS.prototype;g.k.getHeight=function(){return this.height};
  10712. g.k.XX=da(3);g.k.iJ=function(){return this.frameCount};
  10713. g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
  10714. g.k.isLoaded=function(a){return this.loaded.has(a)};
  10715. g.k.Le=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.lo(b,{sigh:this.signature}));return hJ(b)};
  10716. g.k.UH=function(a){var b=this.iJ()-1;return g.Ce(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
  10717. g.k.Iy=function(){return this.frameCount-1};
  10718. g.k.aN=function(){return this.frameCount?0:-1};
  10719. g.k.oV=function(){};g.y(BS,wS);BS.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
  10720. BS.prototype.G=function(a,b,c,d){return new g.AS(a,b,c,d)};g.y(vVa,g.AS);g.k=vVa.prototype;g.k.iJ=function(){return this.B.Vz()};
  10721. g.k.UH=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Cd();a=c.Di(a);return a>d-b?-1:a};
  10722. g.k.Iy=function(){return this.B.Cd()};
  10723. g.k.aN=function(){return this.B.Dn()};
  10724. g.k.oV=function(a){this.B=a};g.y(CS,BS);CS.prototype.B=function(a,b){return BS.prototype.B.call(this,"$N|"+a,b)};
  10725. CS.prototype.G=function(a,b,c){return new vVa(a,b,c,this.isLive)};var TVa=[],SVa=new Set;g.y(g.ES,g.aF);g.k=g.ES.prototype;g.k.U=function(){return this.Da};
  10726. g.k.L=function(a){return this.Da.L(a)};
  10727. g.k.Wh=function(){return!this.isLivePlayback||this.allowLiveDvr};
  10728. g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.nf)||!a.rb)};
  10729. g.k.t_=function(){this.Ma()||(this.j.B||this.j.unsubscribe("refresh",this.t_,this),this.TW(-1))};
  10730. g.k.TW=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=JSa(this.j,this.dF);if(0<b.length){for(var c=g.u(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Dd());this.publish("cuepointupdated",b,a);this.dF+=b.length;if(OS(this)&&this.Da.zc())for(b=g.u(b),c=b.next();!c.done;c=b.next())c=c.value,this.ma("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.xC.start=this.yH,
  10731. this.xC.end=c+3)}}};
  10732. g.k.Ui=function(){return this.le?!0:!!this.j&&mP(this.j)};
  10733. g.k.gI=function(a){var b=this;if(this.Ma())return hB();this.pd=this.gb=this.C=null;KS(this,"html5_high_res_logging_always")&&(this.Da.Qf=!0);return kWa(this,a).then(void 0,function(){return lWa(b,a)}).then(void 0,function(){return mWa(b)}).then(void 0,function(){return oWa(b)})};
  10734. g.k.Wj=function(){if(this.cotn)return null;var a=g.NI(this.Da)||this.L("web_l3_storyboard");if(!this.Ak)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Ak=new BS(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.Ak=new CS(b.spec,this.j.isLive,c,a))}else this.gz?this.Ak=new BS(this.gz,this.lengthSeconds,void 0,!1,a):this.Py&&this.j&&
  10735. (b=cba(this.j.j).index)&&(this.Ak=new CS(this.Py,this.j.isLive,b,a));return this.Ak};
  10736. g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.gz||this.Py};
  10737. g.k.Ke=function(){return this.j&&!isNaN(this.j.Ke())?this.j.Ke():OS(this)?0:this.lengthSeconds};
  10738. g.k.Dd=function(){return this.j&&!isNaN(this.j.Dd())?this.j.Dd():0};
  10739. g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Di(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
  10740. g.k.ue=function(){return!this.Ma()&&!(!this.videoId&&!this.Ml)};
  10741. g.k.Dw=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
  10742. g.k.isLoaded=function(){return FS(this)&&!this.Li&&!this.cn};
  10743. g.k.dh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.qa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:OR(this.Da,this.videoId,a)};
  10744. g.k.Zb=function(){return this.isLivePlayback||this.Zd||this.bb||!(!this.liveUtcStartSeconds||!this.Gl)};
  10745. g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Zd&&!this.isLivePlayback&&this.j.B)};
  10746. g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.Oy||[]:[]};
  10747. g.k.getAudioTrack=function(){var a=this;if(this.D&&!oK(this.D))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Gk;
  10748. if(this.Oy){if(!this.Zo)for(var b=g.u(this.Oy),c=b.next();!c.done;c=b.next())if(c=c.value,c.lc.getIsDefault()){this.Zo=c;break}return this.Zo||this.Gk}return this.Gk};
  10749. g.k.getPlayerResponse=function(){return this.playerResponse};
  10750. g.k.getWatchNextResponse=function(){return this.Na};
  10751. g.k.getHeartbeatResponse=function(){return this.jD};
  10752. g.k.Uk=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)};
  10753. g.k.hQ=function(){return!!this.j&&(wSa(this.j)||xSa(this.j)||ySa(this.j))};
  10754. g.k.getEmbeddedPlayerResponse=function(){return this.wi};
  10755. g.k.Yj=function(){return"shortspage"===(this.eventLabel||this.Da.La)};
  10756. g.k.isAd=function(){return this.sD||!!this.adFormat};
  10757. g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
  10758. g.k.Rn=function(){var a,b,c;return this.isDaiEnabled()&&!!(null==(a=this.playerResponse)?0:null==(b=a.playerConfig)?0:null==(c=b.daiConfig)?0:c.ssaEnabledPlayback)};
  10759. g.k.YS=function(){return HVa(this)?this.S0:this.Qp||this.Ki};
  10760. g.k.TG=function(){return this.Bj||this.Ki};
  10761. g.k.CN=function(){return KS(this,"html5_samsung_vp9_live")};
  10762. g.k.useInnertubeDrmService=function(){return!0};
  10763. g.k.ma=function(a,b,c){this.publish("ctmp",a,b,c)};
  10764. g.k.EB=function(a,b,c){this.publish("ctmpstr",a,b,c)};
  10765. g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
  10766. g.k.Yc=function(a,b){if(!g.BR(this.Da)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(this.Da.Ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||b)return!1;var c;return!!((null==(c=this.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
  10767. g.k.va=function(){g.aF.prototype.va.call(this);this.fv=null;delete this.Q9;delete this.accountLinkingConfig;delete this.j;this.C=this.jD=this.playerResponse=this.Na=null;this.Qf=this.adaptiveFormats="";delete this.botguardData;this.Be=this.suggestions=this.qv=null};var VWa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},WWa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},UWa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},XWa=!1,RWa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},TWa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},SWa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",
  10768. 2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.y(yT,g.I);g.k=yT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.qa[a],f=d;if(e)if(c&&eJ(c,xnb,ynb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.JE(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
  10769. g.k.logApiCall=function(a,b,c){var d=this.app.U();d.Uo&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.qC("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ea,errorCode:c}))};
  10770. g.k.publish=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));if("videodatachange"===a||"resize"===a||"cardstatechange"===a)this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
  10771. g.k.jb=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)))};
  10772. g.k.Ac=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
  10773. g.k.Hm=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.qa(b)))};
  10774. g.k.L=function(a){return this.app.U().L(a)};
  10775. g.k.va=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.B)this.state.B.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.I.prototype.va.call(this)};g.y(DT,g.Yv);DT.prototype.publish=function(a){var b=g.Ja.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.Yv.prototype.publish.call.apply(g.Yv.prototype.publish,[this,a].concat(g.qa(b.shift())))}finally{this.G.delete(a)}return c};g.y(bXa,g.I);bXa.prototype.va=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.ra=this.G=this.K=this.B=this.qa=this.Y=this.Z=void 0};var dXa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.y(FT,yT);g.k=FT.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
  10776. g.k.M6=function(a,b){this.state.N.subscribe(a,b)};
  10777. g.k.Yca=function(a,b){this.state.N.unsubscribe(a,b)};
  10778. g.k.getPlayerState=function(a){return cgb(this.app,a)};
  10779. g.k.B8=function(){return cgb(this.app)};
  10780. g.k.xda=function(a,b,c){hXa(this)&&(a1(this.app,!0,1),c1(this.app,a,b,c,1))};
  10781. g.k.getCurrentTime=function(a,b){var c=this.getPlayerState(a);if(2===this.app.getAppState()&&5===c){var d;return(null==(d=this.app.getVideoData())?void 0:d.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&0===c?Zfb(this.app,a):a?this.app.getCurrentTime(a,b):this.app.getCurrentTime(this.playerType)};
  10782. g.k.o8=function(){return this.app.getCurrentTime(1)};
  10783. g.k.w8=function(){var a=this.app.Ze(1);return isNaN(a)?this.getCurrentTime():a};
  10784. g.k.s8=function(){return this.app.getDuration(1)};
  10785. g.k.ML=function(a,b){a=g.Ce(Math.floor(a),0,100);isFinite(a)&&U0(this.app,{volume:a,muted:this.isMuted()},b)};
  10786. g.k.Lda=function(a){this.ML(a,!1)};
  10787. g.k.xK=function(a){U0(this.app,{muted:!0,volume:this.getVolume()},a)};
  10788. g.k.C$=function(){this.xK(!1)};
  10789. g.k.hM=function(a){g.GT(this.app)||U0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
  10790. g.k.xea=function(){this.hM(!1)};
  10791. g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Hf&&(a.pfp={enableIma:g.vT(this.app.getVideoData())&&this.app.Ld().allowImaMonetization,autoplay:pT(this.app.Ld()),mutedAutoplay:this.app.Ld().mutedAutoplay});return a};
  10792. g.k.WR=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Gf()){var b=HV(this.app.yb());if(!Uib(b)||Vib(b))return}3===a?QT(this.app.yb()).IF("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.sT(this.app.Ld())&&2===a||this.app.playVideo(a)};
  10793. g.k.Aca=function(){a1(this.app,!0,1);this.WR()};
  10794. g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Gf()||Uib(HV(this.app.yb())))3===b?QT(this.app.yb()).IF("control_pause"):this.app.pauseVideo(b,a)};
  10795. g.k.Wda=function(){var a=this.app,b=!1;a.W.qc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)};
  10796. g.k.clearVideo=function(){};
  10797. g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.Vo?rnb:qnb:[1]};
  10798. g.k.getPlaybackQuality=function(a){return(a=g.HT(this.app,a))?a.getPlaybackQuality():"unknown"};
  10799. g.k.Gda=function(){};
  10800. g.k.getAvailableQualityLevels=function(a){return(a=g.HT(this.app,a))?(a=g.$r(a.Ct(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
  10801. g.k.l8=function(){return this.getAvailableQualityLevels(1)};
  10802. g.k.G8=function(){return this.mY()};
  10803. g.k.H8=function(){return 1};
  10804. g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
  10805. g.k.mY=function(){return this.getVideoLoadedFraction()};
  10806. g.k.K8=function(){return 0};
  10807. g.k.getSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
  10808. g.k.setSize=function(){this.app.ob().resize()};
  10809. g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=ET(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
  10810. g.k.Z9=function(a,b,c){a=this.loadVideoById(a,b,c,1);a1(this.app,a,1)};
  10811. g.k.cueVideoById=function(a,b,c,d){a=ET(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
  10812. g.k.u7=function(a,b,c){this.cueVideoById(a,b,c,1)};
  10813. g.k.loadVideoByUrl=function(a,b,c,d){a=cXa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
  10814. g.k.c$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);a1(this.app,a,1)};
  10815. g.k.cueVideoByUrl=function(a,b,c,d){a=cXa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
  10816. g.k.x7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
  10817. g.k.M8=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.Ld(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
  10818. g.k.q8=function(){return this.app.getDebugText()};
  10819. g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.Ld();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Ld().videoId,this.app.ob().getPlayerSize(),this.getPlaylistId()||void 0)};
  10820. g.k.I6=function(a,b,c){return kgb(this.app,a,b,c)};
  10821. g.k.removeCueRange=function(a){return mgb(this.app,a)};
  10822. g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
  10823. g.k.Y9=function(a,b,c,d){this.loadPlaylist(a,b,c,d);a1(this.app,!0,1)};
  10824. g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
  10825. g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
  10826. g.k.D$=function(){this.nextVideo();a1(this.app,!0,1)};
  10827. g.k.previousVideo=function(a){this.app.previousVideo(a)};
  10828. g.k.Mca=function(){this.previousVideo();a1(this.app,!0,1)};
  10829. g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
  10830. g.k.zca=function(a){this.playVideoAt(a);a1(this.app,!0,1)};
  10831. g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
  10832. g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
  10833. g.k.D8=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.pV(a,c);d&&b.push(d.videoId)}return b};
  10834. g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
  10835. g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
  10836. g.k.BZ=function(a){"captions"===a&&(a=g.EV(this.app.yb()))&&!a.loaded&&a.load()};
  10837. g.k.z2=function(a){"captions"===a&&(a=g.EV(this.app.yb()))&&a.loaded&&a.Bea()};
  10838. g.k.PS=function(a,b,c){if(!b)return null;var d=this.app.yb();return"captions"===a?(a=g.EV(d))&&a.Qh(b,c):null};
  10839. g.k.x8=function(a,b,c){var d=g.HT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.PS(a,b,c)};
  10840. g.k.mP=function(a){var b=this.app.yb();if("captions"===a){var c;return(null==(c=g.EV(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.EV(b)&&a.push("captions"),a)};
  10841. g.k.getVolume=function(){return this.app.Hi.volume};
  10842. g.k.isMuted=function(){return this.app.Hi.muted};
  10843. g.k.destroy=function(){this.app.dispose()};
  10844. g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.vT(this.app.getVideoData())&&this.app.Ld().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.xfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.fo(this.app.U().Ga)||""},a.embeddedPlayerMode=c.Ea,g.qC("embedsAdEvent",a))};
  10845. g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;(null==(b=a.getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
  10846. g.k.preloadVideoById=function(a,b,c,d){if(a){a=ET(a,b,c);var e,f;(null==(e=this.app.U().getWebPlayerContextConfig())?0:null==(f=e.embedsHostFlags)?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
  10847. g.k.Ica=function(a,b,c){this.preloadVideoById(a,b,c,1)};
  10848. g.k.setFauxFullscreen=function(a){g.JB();this.app.Km(a?2:0)};
  10849. g.k.Dda=function(a){var b,c;(null==(b=this.app.U().getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};var kXa="driveweb flix hovercard projector texmex wshbp".split(" ");g.y(iXa,FT);g.k=iXa.prototype;g.k.N6=function(a,b){this.state.D.subscribe(a,b)};
  10850. g.k.Zca=function(a,b){this.state.D.unsubscribe(a,b)};
  10851. g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
  10852. g.k.w7=function(a,b){b=void 0===b?1:b;this.cueVideoByPlayerVars(nXa(this,a),b)};
  10853. g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
  10854. g.k.b$=function(a,b,c,d){c=void 0===c?1:c;this.loadVideoByPlayerVars(nXa(this,a),b,c,d)};
  10855. g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,void 0===d?"":d,void 0===e?"":e)};
  10856. g.k.Kca=function(a,b,c,d){b=void 0===b?1:b;this.preloadVideoByPlayerVars(nXa(this,a),b,c,d)};
  10857. g.k.DZ=function(a,b,c){this.loadVideoById(a,b,c,1)};
  10858. g.k.EZ=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
  10859. g.k.C8=function(a){return this.getPlayerState(a)};
  10860. g.k.lY=function(a){a=void 0===a?1:a;var b=fXa(this,a);if(a=g.HT(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.bb;b.isManifestless=OS(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Ui()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==(e=d.value.video)?
  10861. 0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
  10862. g.k.seekBy=function(a,b,c,d){hXa(this)&&c1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType,d)};
  10863. g.k.vda=function(a,b,c){this.seekBy(a,b,c)};
  10864. g.k.seekTo=function(a,b,c,d,e){hXa(this)&&c1(this.app,a,b,c,d||this.playerType,e)};
  10865. g.k.yda=function(a,b,c,d){this.seekTo(a,b,c,d)};
  10866. g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
  10867. g.k.p8=function(a,b){return this.getCurrentTime(a,b)};
  10868. g.k.tJ=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Gf()&&(a=1);return a};
  10869. g.k.getDuration=function(a,b){if(3===this.tJ()){var c;return(null==(c=QT(this.app.yb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
  10870. g.k.t8=function(a,b){return this.getDuration(a,b)};
  10871. g.k.J8=function(a){return this.getVideoLoadedFraction(a)};
  10872. g.k.loadModule=function(a){if("annotations_module"===a){var b=g.KV(this.app.yb());b&&!b.loaded&&b.load()}this.BZ(a)};
  10873. g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.KV(this.app.yb());b&&b.loaded&&b.unload()}this.z2(a)};
  10874. g.k.getOption=function(a,b,c){var d=g.HT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
  10875. g.k.getOptions=function(a){var b=this.app.yb();switch(a){case "ad":var c,d;return(null==(c=HV(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=QT(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.KV(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=u_a(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
  10876. (p=g.IV(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=t_a(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=this.mP();if(!a)return a;HV(b)&&a.push("ad");QT(b)&&a.push("remote");g.KV(b)&&a.push("annotations_module");u_a(b)&&a.push("creatorendscreen");g.IV(b)&&a.push("unplugged");t_a(b)&&a.push("kids");return a}return this.mP(a)};
  10877. g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.yb();switch(a){case "ad":return(a=HV(d))&&a.Qh&&a.Qh(b,c);case "kids":return(a=t_a(d))&&a.Qh(b,c);case "remote":return(a=QT(d))&&a.Qh(b,c);case "unplugged":return(a=g.IV(d))&&a.Qh(b,c);case "annotations_module":return(a=g.KV(d))&&a.Qh(b,c);case "creatorendscreen":return(a=u_a(d))&&a.Qh(b,c)}return this.PS(a,b,c)};
  10878. g.k.addCueRange=function(a,b,c,d,e){return kgb(this.app,a,b,c,d,e)};
  10879. g.k.getDebugText=function(a){return this.app.getDebugText(a)};
  10880. g.k.getCurrentBroadcastId=function(){return null};
  10881. g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var m=g.IT(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
  10882. g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.IT(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
  10883. g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
  10884. g.k.showControls=function(){var a=g.IT(this);a&&a.showControls(!0)};
  10885. g.k.hideControls=function(){var a=g.IT(this);a&&a.showControls(!1)};
  10886. g.k.getVideoContentRect=function(a){a=this.app.ob().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
  10887. g.k.toggleFullscreen=function(){function a(c){g.JE(c)}
  10888. var b=this.app.U();if(b.externalFullscreen){if(!g.TR(b))return this.isFullscreen()?LB(window.document.documentElement):Mqa(window.document.documentElement).catch(a)}else if(g.JB()||b.Z)return this.isFullscreen()?LB(KB()):"3"!==b.controlsType&&g.JB()?Mqa(this.app.ob().element).catch(a):(b=this.app.Se().Hb())?Mqa(b).catch(a):Promise.reject(Error("Media element missing"));this.Ac("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
  10889. g.k.isFullscreen=function(){return this.app.isFullscreen()};
  10890. g.k.cancelPlayback=function(){var a=HV(this.app.yb());a&&a.created&&a.destroy();(a=g.HT(this.app))&&a.stopVideo();(a=this.app.yb().He.get("endscreen"))&&a.J9()&&g.PT(this.app.Ua,!0)};
  10891. g.k.getProgressState=function(a){if(3===this.tJ())return QT(this.app.yb()).getProgressState();var b=this.app.getVideoData(),c=g.HT(this.app,a)||g.HT(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=pXa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
  10892. 1E3,!isNaN(h)){h=pXa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Ze(d),m=this.app.isAtLiveHead(d),n=this.app.Sz();var p=this.app;var q=g.HT(p,d);q?(q=L0(p,q),p=W0(p,g.sT(q.videoData)?q.videoData.Dd():q.Dd(),q)):p=0;q=Zfb(this.app,d);c=c.Kc();var r=this.app.getVideoData().aB;!r||isNaN(r)?d=0:(d=pXa(this,r,d),r=g.EI(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Wh(),clipEnd:b.clipEnd,
  10893. clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}};
  10894. g.k.isInline=function(){return this.app.isInline()};
  10895. g.k.setInline=function(a){this.app.setInline(a)};
  10896. g.k.L8=function(){return g.HT(this.app,1).kc(!0)};
  10897. g.k.toggleSubtitles=function(){var a=g.EV(this.app.yb());a&&a.mea()};
  10898. g.k.getPlayerSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
  10899. g.k.wakeUpControls=function(){var a=g.IT(this);a&&a.Vu()};
  10900. g.k.setCenterCrop=function(a){this.app.ob().setCenterCrop(a)};
  10901. g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
  10902. g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
  10903. var jXa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
  10904. mXa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var i3={},qXa=(i3["api.invalidparam"]=2,i3.auth=150,i3["drm.auth"]=150,i3["heartbeat.net"]=150,i3["heartbeat.servererror"]=150,i3["heartbeat.stop"]=150,i3["html5.unsupportedads"]=5,i3["fmt.noneavailable"]=5,i3["fmt.decode"]=5,i3["fmt.unplayable"]=5,i3["html5.missingapi"]=5,i3["html5.unsupportedlive"]=5,i3["drm.unavailable"]=5,i3["mrm.blocked"]=151,i3);g.y(g.JT,iXa);g.k=g.JT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&eJ(b,xnb,ynb))};
  10905. g.k.getBandwidthEstimate=function(){return wR(this.app.U().schedule)};
  10906. g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.HT(this.app);b&&(a={gpu:(0,g.S_)(),d:a},b.handleError(new WJ("feedback",a)))};
  10907. g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
  10908. g.k.getInternalApiInterface=function(){return g.dd(this.state.B)};
  10909. g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
  10910. g.k.A8=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.TF(a,1),isCued:a.isCued(),isDomPaused:g.TF(a,1024),isEnded:g.TF(a,2),isError:g.TF(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.TF(a,16),isUiSeeking:g.TF(a,32),isUnstarted:g.TF(a,64)}};
  10911. g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
  10912. g.k.startSeekCsiAction=function(){this.app.Ai().D.j=(0,g.EC)()};
  10913. g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.HT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Kc()&&(h=f.getStreamTimeOffset());c1(e,a-h,b,c,1,d)};
  10914. g.k.getStreamTimeOffset=function(){var a=g.HT(this.app,1);return a?a.getStreamTimeOffset():0};
  10915. g.k.seekToLiveHead=function(a,b){var c=g.HT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&c1(this.app,Infinity,a,b,1)};
  10916. g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.HT(this.app,1);c&&c.tS(a,b)};
  10917. g.k.setVolume=function(a,b){this.ML(a,void 0===b?!0:b)};
  10918. g.k.mute=function(a){this.xK(void 0===a?!0:a)};
  10919. g.k.unMute=function(a){this.hM(void 0===a?!0:a)};
  10920. g.k.syncVolume=function(){var a=yfb(this.app);U0(this.app,{volume:a.volume,muted:a.muted},!1)};
  10921. g.k.getAvailableQualityLabels=function(){var a=g.HT(this.app,1);return a?g.$r(a.Ct(),function(b){return b.qualityLabel}):[]};
  10922. g.k.channelSubscribed=function(){this.jb("SUBSCRIBE",this.app.Ld().Cl)};
  10923. g.k.channelUnsubscribed=function(){this.jb("UNSUBSCRIBE",this.app.Ld().Cl)};
  10924. g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
  10925. g.k.getCurrentPlaylistSequence=function(){return g.HT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
  10926. g.k.getPlaylistSequenceForTime=function(a){return g.HT(this.app).getPlaylistSequenceForTime(a)};
  10927. g.k.shouldSendVisibilityState=function(){return!0};
  10928. g.k.confirmYpcRental=function(){var a=g.HT(this.app,1);a&&a.zg("ypc_clickwrap")};
  10929. g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
  10930. g.k.setConnectedRemoteApps=function(a){this.app.U().uj=a};
  10931. g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=xB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,fUa)};
  10932. g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a};
  10933. g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
  10934. g.k.addUtcCueRange=function(a,b,c,d,e){return lgb(this.app,a,b,c,d,e)};
  10935. g.k.I8=function(a){a=void 0===a?1:a;var b=this.lY(a);if(a=g.HT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ra;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?bf(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?
  10936. bf(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.E3;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=rWa(a);b.paidContentOverlayDurationMs=sWa(a);a.j&&jP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
  10937. g.k.getAdState=function(){return this.app.getAdState()};
  10938. g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.HT(this.app,1))?a.getPlayerState():null)?a.Ig:null;return!!(a&&b&&g.TF(a,128)&&5===rXa(b.errorCode))};
  10939. g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()};
  10940. g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()};
  10941. g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
  10942. g.k.clearQueue=function(){this.app.clearQueue()};
  10943. g.k.zi=function(){return g.IT(this)};
  10944. g.k.sendAbandonmentPing=function(){var a=g.HT(this.app);a&&a.sendAbandonmentPing()};
  10945. g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Ld(),null==b?0:VVa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.EC=b.autonavState);else if(void 0!==b.EC)a=b.EC,b.EC=void 0;else return}sgb(this.app,a)};
  10946. g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
  10947. g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
  10948. g.k.getLoopRange=function(){return this.app.getLoopRange()};
  10949. g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.HT(this.app,1))||!a.hasSupportedAudio51Tracks())};
  10950. g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.HT(this.app,1);c&&c.setUserAudio51Preference(a,b)};
  10951. g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.HT(this.app,1))?void 0:a.getUserAudio51Preference())?b:1};
  10952. g.k.setProximaLatencyPreference=function(a){var b=g.HT(this.app,1);b&&b.setProximaLatencyPreference(a)};
  10953. g.k.getProximaLatencyPreference=function(){var a=g.HT(this.app,1);return a?a.getProximaLatencyPreference():0};
  10954. g.k.isProximaLatencyEligible=function(){var a=g.HT(this.app,1);return a?a.isProximaLatencyEligible():!1};
  10955. g.k.getAppState=function(){return this.app.getAppState()};
  10956. g.k.updateLastActiveTime=function(){WD()};
  10957. g.k.setBlackout=function(a){this.app.setBlackout(a)};
  10958. g.k.setUserEngagement=function(a){this.app.U().Ml!==a&&(this.app.U().Ml=a,(a=g.HT(this.app,1))&&C0(a))};
  10959. g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.EV(this.app.yb()).H2(a,b)};
  10960. g.k.getCaptionWindowContainerId=function(){var a=g.EV(this.app.yb());return a?a.getCaptionWindowContainerId():""};
  10961. g.k.toggleSubtitlesOn=function(){var a=g.EV(this.app.yb());a&&a.Z1()};
  10962. g.k.isSubtitlesOn=function(){var a=g.EV(this.app.yb());return a?a.isSubtitlesOn():!1};
  10963. g.k.getPlayerResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getPlayerResponse():null};
  10964. g.k.z8=function(){return this.getPlayerResponse(1)};
  10965. g.k.getEmbeddedPlayerResponse=function(){var a=g.HT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
  10966. g.k.getWatchNextResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getWatchNextResponse():null};
  10967. g.k.N8=function(){return this.getWatchNextResponse(1)};
  10968. g.k.getHeartbeatResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
  10969. g.k.u8=function(){return this.getHeartbeatResponse(1)};
  10970. g.k.getStoryboardFrame=function(a,b){var c=this.app.Wj();if(!c)return null;b=c.levels[b];return b?(a=g.zS(b,a))?{column:a.column,columns:a.columns,height:a.jx,row:a.row,rows:a.rows,url:a.url,width:a.xF}:null:null};
  10971. g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Wj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Kc();return b.UH(a)};
  10972. g.k.getStoryboardLevel=function(a){var b=this.app.Wj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Iy(),minFrameIndex:b.aN()}:null:null};
  10973. g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Wj();return a?a.levels.length:0};
  10974. g.k.h8=function(){return this.getAudioTrack(1)};
  10975. g.k.getAudioTrack=function(a){return(a=g.HT(this.app,a))?a.getAudioTrack():this.app.getVideoData().Gk};
  10976. g.k.setAudioTrack=function(a,b){3===this.tJ()&&QT(this.app.yb()).IF("control_set_audio_track",a);var c=g.HT(this.app,this.playerType);if(c)if(c.Ma()||g.TF(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Kc():NaN;if(b){var e=geb(c.Zc);c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(Yeb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.lc.getName()){if(e.enabled){b=!1;break b}b=e.enabled=
  10977. !0;break b}b=void 0}b&&c.ma("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!oK(b.D)||a==b.Zo||!b.pd||0>=b.pd.length)b=!1;else{d=g.u(b.pd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof cS)){b=!1;break b}var f=a.lc.getId();e.B&&(qUa(e.B,f),e.resource=null)}b.Zo=a;b=!0}b&&v0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
  10978. g.k.k8=function(){return this.getAvailableAudioTracks(1)};
  10979. g.k.getAvailableAudioTracks=function(a){return g.HT(this.app,a).getAvailableAudioTracks()};
  10980. g.k.getMaxPlaybackQuality=function(){var a=g.HT(this.app,1);return a&&a.getVideoData().B?gP(a.Kf?mcb(a.rk,a.Kf,a.qw()):DS):"unknown"};
  10981. g.k.getUserPlaybackQualityPreference=function(){var a=g.HT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
  10982. g.k.getSubtitlesUserSettings=function(){var a=g.EV(this.app.yb());return a?a.F8():null};
  10983. g.k.resetSubtitlesUserSettings=function(){g.EV(this.app.yb()).ida()};
  10984. g.k.setMinimized=function(a){this.app.setMinimized(a)};
  10985. g.k.setOverlayVisibility=function(a){this.publish("overlayvisibilitychange",a)};
  10986. g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
  10987. g.k.setSqueezeback=function(a){this.app.setSqueezeback(a)};
  10988. g.k.setGlobalCrop=function(a){this.app.ob().setGlobalCrop(a)};
  10989. g.k.getVisibilityState=function(){var a=this.isMinimized();return this.app.getVisibilityState(this.Vh(),this.isFullscreen()||g.FR(this.app.U()),a,this.isInline(),this.app.Rt(),this.app.pA(),this.app.wA(),this.app.bk())};
  10990. g.k.isMutedByMutedAutoplay=function(){return this.app.WA};
  10991. g.k.setInternalSize=function(a,b){this.app.ob().setInternalSize(new g.Ke(a,b))};
  10992. g.k.Kc=function(){var a=g.HT(this.app);return a?a.Kc():0};
  10993. g.k.isMinimized=function(){return this.app.isMinimized()};
  10994. g.k.Vh=function(){var a=g.HT(this.app,this.playerType);return!!a&&a.Vh()};
  10995. g.k.setSafetyMode=function(a){this.app.U().enableSafetyMode=a};
  10996. g.k.canPlayType=function(a){return this.app.canPlayType(a)};
  10997. g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.xi=wB(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.pV(b).videoId||(a.index=b.index)):P0(this.app,{list:a.list,index:a.index,playlist_length:d.length});HZa(this.app.getPlaylist(),a);this.Ac("onPlaylistUpdate")}else this.app.updatePlaylist()};
  10998. g.k.updateVideoData=function(a,b){var c=g.HT(this.app,this.playerType||1);c&&g.HS(c.getVideoData(),a,b)};
  10999. g.k.updateEnvironmentData=function(a){dUa(this.app.U(),a,!1)};
  11000. g.k.Bda=function(a){this.app.sendVideoStatsEngageEvent(a,1)};
  11001. g.k.productsInVideoVisibilityUpdated=function(a){this.publish("changeProductsInVideoVisibility",a)};
  11002. g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
  11003. g.k.getVideoAspectRatio=function(){return this.app.ob().getVideoAspectRatio()};
  11004. g.k.getPreferredQuality=function(){var a=g.HT(this.app);return a?a.getPreferredQuality():"unknown"};
  11005. g.k.getPlaybackQualityLabel=function(a){if(a=g.HT(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
  11006. g.k.setPlaybackQualityRange=function(a,b,c){var d=g.HT(this.app,this.playerType);d&&g.Veb(d,g.dP(a,b||a,!0,"m"),!0,c)};
  11007. g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)};
  11008. g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
  11009. g.k.dispatchReduxAction=function(a){g.SS.dispatch(a)};
  11010. g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Be.includes(e)||(c.Be.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.Be,e)&&(d=!0)});
  11011. d&&this.publish("updatemarkervisibility")};
  11012. g.k.highlightSettingsMenuItem=function(a){this.publish("highlightSettingsMenu",a)};
  11013. g.k.openSettingsMenuItem=function(a){this.publish("openSettingsMenuItem",a)};
  11014. g.k.L6=function(a,b){this.state.j.subscribe(a,b)};
  11015. g.k.Xca=function(a,b){this.state.j.unsubscribe(a,b)};
  11016. g.k.v7=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)};
  11017. g.k.a$=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)};
  11018. g.k.Jca=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)};
  11019. g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
  11020. g.k.Dh=function(){return g.IT(this).Dh()};
  11021. g.k.Lg=function(){return g.IT(this).Lg()};
  11022. g.k.Am=function(){return g.IT(this).Am()};
  11023. g.k.Te=function(){return this.zi().Te()};
  11024. g.k.Yl=function(){var a=g.Ja.apply(0,arguments),b;(b=this.Te()).Yl.apply(b,g.qa(a))};
  11025. g.k.Rh=function(){this.Te().Rh()};
  11026. g.k.RP=function(){this.Te().RP()};
  11027. g.k.Uh=function(){this.Te().hide()};
  11028. g.k.SL=function(a,b,c,d,e,f,h,l){this.Te().SL(a,b,c,d,e,f,h,l)};
  11029. g.k.VG=function(a,b){this.Te().VG(a,b)};
  11030. g.k.Gx=function(a,b,c,d,e){this.zi().Gx(a,b,c,d,e)};
  11031. g.k.PG=function(a){this.Te().setEnabled(a)};
  11032. g.k.cz=function(a){this.zi().cz(a)};
  11033. g.k.VD=function(a,b){this.zi().VD(a,b)};
  11034. g.k.Hz=function(a,b){this.zi().Hz(a,b)};
  11035. g.k.Tq=function(){this.zi().Tq()};
  11036. g.k.OS=function(a,b){this.zi().OS(a,b)};
  11037. g.k.SB=da(5);g.k.TB=da(7);g.k.hs=da(10);g.k.gs=da(13);g.k.uG=function(a,b){this.zi().uG(a,b)};
  11038. g.k.lw=function(){this.zi().lw()};
  11039. g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
  11040. g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};g.y(g.NT,g.JT);g.k=g.NT.prototype;g.k.Qo=function(a,b,c,d,e,f,h){return this.app.Qo(a,b,c,d,e,f,h)};
  11041. g.k.kE=function(){return this.app.kE()};
  11042. g.k.Bt=da(15);g.k.yb=function(){return this.app.yb()};
  11043. g.k.Ff=function(){var a=this.yb().He.get("endscreen");return!!a&&a.Ff()};
  11044. g.k.getRootNode=function(){return this.ob().element};
  11045. g.k.U=function(){return this.app.U()};
  11046. g.k.Tz=da(17);g.k.jm=function(a){return this.app.jm(a)};
  11047. g.k.Fn=function(){var a;return(null==(a=g.IT(this))?void 0:a.Fn())||null};
  11048. g.k.getPlayerStateObject=function(a){return this.app.getPlayerStateObject(a)};
  11049. g.k.ob=function(){return this.app.ob()};
  11050. g.k.getPlaylist=function(){return this.app.getPlaylist()};
  11051. g.k.getVideoData=function(a){var b=g.HT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.sT(b)&&1!==a)a:{var d=this.app;b=d.getVideoData();if(d.xe){a=d.xe;d=d.getCurrentTime();if(a.yn)var e=void 0;else{var f=void 0,h=a.api.L("html5_ssdai_enable_current_cpn");h&&a.pc&&(f=a.D.get(a.pc));if(!f){f=kY(a,1E3*d);var l=null==(e=f)?void 0:e.cpn;h?a.ea.ma("sdai",{cpcna:l,cmt:d.toFixed(3)}):a.pc&&l&&a.pc!==l&&a.ea.ma("sdai",{cpcnm:l+"_"+a.pc,cmt:d.toFixed(3)})}e=
  11052. null==(c=f)?void 0:c.videoData}b=e||b}else if(d.Ib&&d.tb){if(d.L("html5_ssap_get_video_data_fix")){c=d.Ib.getVideoData(a);break a}b=U5a(d.Ib)||b}c=b}else c=b;return c};
  11053. g.k.Wj=function(a){return this.app.Wj(a)};
  11054. g.k.bk=function(){return this.app.bk()};
  11055. g.k.isHdr=function(){var a=g.HT(this.app);return a?a.isHdr():!1};
  11056. g.k.nQ=function(){return this.app.nQ()};
  11057. g.k.Yc=function(){var a=g.IT(this),b=this.getVideoData();a=a?a.QJ:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.Yc(new g.Ke(a.width,a.height),c))};
  11058. g.k.VB=function(a){this.app.VB(a)};
  11059. g.k.Zf=function(a,b,c,d,e){this.app.yg(a,b,c,d,e)};
  11060. g.k.ls=function(a,b){this.app.ls(a,b)};
  11061. g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){QT(this.app.yb()).IF("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=HV(this.app.yb());if(b&&Vib(b))return}}catch(c){g.IE(c)}this.app.playVideo(a)};
  11062. g.k.stopVideo=function(a){g.HT(this.app,a).stopVideo()};
  11063. g.k.Eo=function(a){g.HT(this.app,a).Eo()};
  11064. g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)};
  11065. g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)};
  11066. g.k.kG=function(a){this.app.kG(a)};
  11067. g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
  11068. g.k.Ct=function(){var a={},b=g.HT(this.app).Ct();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
  11069. g.k.lE=function(){return g.HT(this.app).lE()};
  11070. g.k.xE=da(21);g.k.zL=function(a){this.app.zL(a);a&&sgb(this.app,a)};
  11071. g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
  11072. g.k.yE=da(23);g.k.jo=da(27);g.k.Do=function(a){var b=g.HT(this.app);b&&b.Do(a)};
  11073. g.k.GA=function(a,b){this.yb().GA(a,b)};
  11074. g.k.Nk=function(){var a=g.KV(this.yb());return!!a&&a.Nk()};
  11075. g.k.kp=function(){var a=g.KV(this.yb());return!!a&&a.kp()};
  11076. g.k.QB=function(a,b,c){var d=g.KV(this.yb());d&&d.QB(a,b,c)};
  11077. g.k.PB=da(28);g.k.No=function(){var a=g.HT(this.app);a&&a.No()};
  11078. g.k.IL=function(a){this.Ac("onVideoAreaChange");this.Ac(a?"onShowControls":"onHideControls")};
  11079. g.k.Hn=function(a,b){var c=g.IT(this);if(c)return c.Hn(a,b);a=this.app.ob().Th();return new g.Fs(0,0,a.width,a.height)};
  11080. g.k.pm=function(){return this.app.pm()};
  11081. g.k.XE=function(){var a=this.yb().He.get("heartbeat");return!!a&&a.XE()};
  11082. g.k.Wh=function(){var a=this.U();if(a.Sa||a.disableSeek)return!1;var b=g.HT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.ue()||g.fT(c)||2===this.getPresentingPlayerType()&&!this.app.Gf()||c.Rn()&&2===this.getPresentingPlayerType(!0)||b.Kn()&&3!==this.getPresentingPlayerType()||g.FB(g.JR(a))&&!c.Tm||g.GT(this.app)?!1:!0};
  11083. g.k.TE=function(){var a;return(null==(a=g.HT(this.app))?void 0:a.TE)||!1};
  11084. g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
  11085. g.k.Nu=function(){var a=g.HT(this.app);a&&a.Nu()};
  11086. g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
  11087. g.k.gf=function(a,b,c){this.app.bz(a,b,c)};
  11088. g.k.Fo=function(a,b){this.app.tG(a,b)};
  11089. g.k.mf=function(a,b){$fb(this.app,a,b)};
  11090. g.k.KE=da(30);g.k.hC=function(){this.app.hC()};
  11091. g.k.zg=function(a,b){(b=g.HT(this.app,b))&&b.zg(a)};
  11092. g.k.Kn=function(){var a=g.HT(this.app);return a?a.Kn():!0};
  11093. g.k.Dw=function(){var a=this.getVideoData();return!!a&&(a.Dw()||!!a.hlsFormats||!!a.Qc)};
  11094. g.k.getPlaybackRate=function(){return g.HT(this.app,1).getPlaybackRate()};
  11095. g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
  11096. g.k.Se=function(){return this.app.Se()};
  11097. g.k.Ai=function(){return this.app.Ai()};
  11098. g.k.Ci=function(a){return this.app.Ci(a)};
  11099. g.k.createClientVe=function(a,b,c,d){this.U().Za&&this.app.Cr.createClientVe(a,b,c,void 0===d?!1:d)};
  11100. g.k.createServerVe=function(a,b,c){this.U().Za&&this.app.Cr.createServerVe(a,b,void 0===c?!1:c)};
  11101. g.k.setTrackingParams=function(a,b){this.U().Za&&this.app.Cr.setTrackingParams(a,b)};
  11102. g.k.logClick=function(a,b){this.U().Za&&(this.app.Cr.click(a,b),this.publish("veClickLogged",a))};
  11103. g.k.logVisibility=function(a,b,c){if(this.U().Za){var d=this.app.Cr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.FE(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.WE(e,[f]):g.XE(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.VE(e,f,void 0,c),d.C.add(a))}};
  11104. g.k.hasVe=function(a){return this.U().Za?this.app.Cr.hasVe(a):!1};
  11105. g.k.destroyVe=function(a){this.U().Za&&this.app.Cr.destroyVe(a)};
  11106. g.k.Wc=function(){return g.HT(this.app)};
  11107. g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
  11108. g.k.Nx=function(){this.app.Nx()};
  11109. g.k.Bz=function(a,b){return this.app.Bz(a,b)};
  11110. g.k.qq=function(a){this.app.qq(a)};
  11111. g.k.JA=function(){this.app.JA()};
  11112. g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
  11113. g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
  11114. g.k.wD=function(a,b,c,d,e,f,h){return this.app.wD(a,b,c,d,e,f,h)};
  11115. g.k.QE=function(a,b,c,d,e,f,h){return this.app.QE(a,b,c,d,e,f,h)};
  11116. g.k.rA=function(){return this.app.rA()};
  11117. g.k.Du=function(a){this.app.Du(a)};
  11118. g.k.mz=function(a,b){b=void 0===b?Infinity:b;this.app.mz(void 0===a?-1:a,b)};
  11119. g.k.jM=function(a){var b;null==(b=g.EV(this.yb()))||b.jM(a)};
  11120. g.k.qH=function(a,b,c){this.app.qH(a,b,c)};
  11121. g.k.jr=function(){return this.app.jr()};
  11122. g.k.TI=function(a,b,c){this.app.TI(a,b,void 0===c?0:c)};
  11123. g.k.Tn=function(){return this.app.Tn()};
  11124. g.k.Gf=function(){return this.app.Gf()};
  11125. g.k.mu=function(a,b,c){return this.app.mu(a,b,c)};
  11126. g.k.ma=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.HT(this.app,d))||e.ma(a,b,c)};
  11127. g.k.aR=function(a,b){this.publish("aduxmouseover",a,b)};
  11128. g.k.ZQ=function(a,b){this.publish("aduxmouseout",a,b)};
  11129. g.k.AR=function(a,b){this.publish("muteadaccepted",a,b)};
  11130. g.k.ZE=function(){return this.app.ob().ZE()};
  11131. g.k.WB=function(a){this.app.ob().WB(a)};
  11132. g.k.qs=function(a){return a?this.app.iT():(a=g.HT(this.app))?a.qs():!1};
  11133. g.k.QS=function(a){this.app.QS(a)};
  11134. g.k.OA=function(a){var b,c=null==(b=g.HT(this.app))?void 0:b.ya;c&&c.OA(a)};
  11135. g.k.Xu=function(){g.HT(this.app,1).Xu()};
  11136. g.k.xJ=function(){var a=g.HT(this.app);return a?a.xJ():0};
  11137. g.k.OG=function(a){var b=g.HT(this.app);b&&b.OG(a)};
  11138. g.k.LS=function(a){var b=g.HT(this.app);b&&b.LS(a)};var AXa;g.y(zXa,aC);zXa.prototype.jE=function(a,b){a=aC.prototype.jE.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.y(g.ZT,g.iF);g.k=g.ZT.prototype;g.k.show=function(){var a=this.Zj();g.iF.prototype.show.call(this);this.Ga&&(this.N.T(window,"blur",this.Nb),this.N.T(document,"click",this.x5));a||this.publish("show",!0)};
  11139. g.k.hide=function(){var a=this.Zj();g.iF.prototype.hide.call(this);BXa(this);a&&this.publish("show",!1)};
  11140. g.k.od=function(a,b){this.B=a;this.qa.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.rW)),this.rW()):this.Y&&(this.N.Pc(this.Y),this.Y=void 0)};
  11141. g.k.JX=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
  11142. g.k.rW=function(){var a=g.IT(this.J);this.B&&a.Gx(this.element,this.B)};
  11143. g.k.Nb=function(){var a=this.Zj();BXa(this);this.qa.hide();a&&this.publish("show",!1)};
  11144. g.k.x5=function(a){var b=QB(a);b&&(g.Rf(this.element,b)||this.B&&g.Rf(this.B,b)||!g.dG(a))||this.Nb()};
  11145. g.k.Zj=function(){return this.Fb&&4!==this.qa.state};g.y(CXa,g.ZT);CXa.prototype.od=function(){g.ZT.prototype.od.call(this);this.dialog.focus()};g.y(g.aU,g.iF);g.aU.prototype.setIcon=function(a){this.updateValue("icon",a)};
  11146. g.aU.prototype.Dk=function(a){this.updateValue("label",a)};
  11147. g.aU.prototype.updateValue=function(a,b){g.iF.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.nU={o6:15,x5a:14,r8a:13,c6:12,r6:11,o3:10,w3:9,g3:8,AUDIO:7,SUBTITLES:6,n6:5,SLEEP_TIMER:4,j6:3,nQa:2,REMOTE:1,qva:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.y(cU,g.aU);cU.prototype.Lc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
  11148. cU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;this.setIcon(qF());var e;this.Dk(dU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new CXa(this.J,dU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),dU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),dU(null==a?void 0:
  11149. null==(l=a.menuData)?void 0:l.confirmButtonText));g.N(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Bb.Rc(this);this.j=!0}else!c&&this.j&&(this.Bb.oh(this),this.j=!1)};
  11150. cU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Bb.Nb();this.C&&this.C.od()};g.y(eU,g.I);eU.prototype.L=function(a){return this.api.L(a)};g.y(fU,eU);fU.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.KV=b};
  11151. fU.prototype.setAccountLinkState=function(a){this.api.getVideoData().KV=a;this.api.No()};
  11152. fU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.publish("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.y(EXa,eU);
  11153. EXa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.IV&&g.yD(c.IV),c.CH&&hU(this,c.CH),c.Ty)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.Ty),h=f.next();!h.done;h=f.next())hU(this,g.dv(h.value,e))}else"conversionview"===b?this.api.Xu():"engagedview"===b&&c.qj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.yD(g.dv(c.qj,
  11154. e)));c.JV&&(e=c.JV,f=a.getId(),e=PA(e,{label:f}),g.yD(e));switch(b){case "videoplaytime25":c.BV&&hU(this,c.BV);c.wC&&iU(this,c.wC);c.NV&&g.yD(c.NV);break;case "videoplaytime50":c.GV&&hU(this,c.GV);c.yC&&iU(this,c.yC);c.SV&&g.yD(c.SV);break;case "videoplaytime75":c.HV&&hU(this,c.HV);c.AC&&iU(this,c.AC);c.VV&&g.yD(c.VV);break;case "videoplaytime100":c.AV&&hU(this,c.AV),c.uC&&iU(this,c.uC),c.LV&&g.yD(c.LV)}(e=this.api.getVideoData().fv)&&IXa(this,e,a.getId())&&IXa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
  11155. !d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.Uy)?void 0:l.j;m&&hU(this,m);break;case "videoplayback2s":(l=null==(m=c.Uy)?void 0:m.C)&&hU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Uy)?void 0:n.B)&&hU(this,l)}this.api.Fo([a],1)};g.y(KXa,eU);g.y(MXa,g.W);g.k=MXa.prototype;
  11156. g.k.ZC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.VT(this.J)&&400<=this.J.ob().getPlayerSize().width)if(a=this.Ld(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.hF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||LXa(this),
  11157. b=this.Ld(),this.pV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.hF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Pc(c.value)};
  11158. g.k.pV=function(a){OXa(this)?this.isChecked=1!==a:((a=1!==a)||(g.bC(),a=g.aB("web_autonav_allow_off_by_default")&&!g.cC(0,141)&&g.FA("AUTONAV_OFF_BY_DEFAULT")?!1:!g.cC(0,140)),this.isChecked=a);NXa(this)};
  11159. g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.zL(this.isChecked?2:1);NXa(this);if(OXa(this)){var a=this.Ld().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.jb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.jb("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
  11160. g.k.getValue=function(){return this.isChecked};
  11161. g.k.Ld=function(){return this.J.getVideoData(1)};g.y(PXa,eU);g.y(jU,g.aU);jU.prototype.onClick=function(){this.enabled&&(kU(this,!this.checked),this.publish("select",this.checked))};
  11162. jU.prototype.getValue=function(){return this.checked};
  11163. jU.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var RXa=["en-CA","en","es-MX","fr-CA"];g.y(oU,jU);oU.prototype.Ta=function(a){a?this.j||(this.Bb.Rc(this),this.j=!0):this.j&&(this.Bb.oh(this),this.j=!1);this.j&&kU(this,AOa())};
  11164. oU.prototype.D=function(){g.Hv(this.element,"ytp-menuitem-highlight-transition-enabled")};
  11165. oU.prototype.C=function(a){var b=AOa();a!==b&&(b=g.bC(),pra(190,a),pra(192,!0),b.save(),this.J.jb("cinematicSettingsToggleChange",a))};
  11166. oU.prototype.va=function(){this.j&&this.Bb.oh(this);jU.prototype.va.call(this)};g.y(XXa,eU);XXa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.y(pU,jU);pU.prototype.B=function(a){this.C(a?1:0)};
  11167. pU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=1===this.j()&&a;kU(this,b);this.setEnabled(a)};
  11168. pU.prototype.va=function(){this.Bb.oh(this);jU.prototype.va.call(this)};g.y(qU,eU);qU.prototype.getDrcUserPreference=function(){return this.j};
  11169. qU.prototype.setDrcUserPreference=function(a){g.XB("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Wc())&&this.B()&&K_(a))};
  11170. qU.prototype.updateEnvironmentData=function(){this.api.U().Sf=1===this.j};
  11171. qU.prototype.B=function(){var a,b,c=null==(a=this.api.getVideoData())?void 0:null==(b=a.C)?void 0:b.j;return c?Ys(c,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};g.y(rU,eU);rU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.mf("embargo",1);var c=null==b?void 0:b.FC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?ZXa(this,c.filter(function(d){return YXa(a,d)})):(null==b?0:b.cueRanges)&&ZXa(this,b.cueRanges.filter(function(d){return YXa(a,d)}))};
  11172. rU.prototype.B=function(a){return void 0!==a.embargo};
  11173. rU.prototype.va=function(){eU.prototype.va.call(this);this.j={}};g.y($Xa,eU);
  11174. $Xa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Qc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.FB(g.JR(b))&&e.unshift(159628),b=e.join(","),b=g.pB()?b:g.Lg(b,4),a.source_ve_path=b);this.j.length=
  11175. 0};g.y(aYa,eU);g.y(sU,g.W);sU.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
  11176. sU.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;d&&(b=bYa(d),g.TF(this.api.getPlayerStateObject(),128)||"dataloaderror"===a||!b?(this.B=0,eYa(this),this.hide()):(a=1E3*(b.remainingTimeSecs||0),0<a&&(this.show(),this.updateValue("label",dKa(b.label)),dYa(this,a))))};
  11177. sU.prototype.va=function(){eYa(this);g.W.prototype.va.call(this)};g.y(fYa,eU);g.y(tU,g.W);tU.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.jb("onFullerscreenEduClicked")};
  11178. tU.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.y(uU,eU);uU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Jv(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),LT(b.Ua,b.element,b),b.C=!0))};
  11179. uU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Ta())};g.y(gYa,g.W);g.y(jYa,eU);g.y(kYa,eU);g.y(lYa,eU);g.y(vU,eU);vU.prototype.getSphericalProperties=function(){var a=g.ST(this.api.yb());return a?a.getSphericalProperties():{}};
  11180. vU.prototype.setSphericalProperties=function(a){if(a){var b=g.ST(this.api.yb());b&&b.setSphericalProperties(a,!0)}};g.y(mYa,eU);g.k=mYa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,void 0===d?!1:d)};
  11181. g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,void 0===c?!1:c)};
  11182. g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
  11183. g.k.logClick=function(a,b){this.api.logClick(a,b)};
  11184. g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
  11185. g.k.hasVe=function(a){return this.api.hasVe(a)};
  11186. g.k.destroyVe=function(a){this.api.destroyVe(a)};g.y(wU,eU);wU.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.IT(this.api)&&!(0>a)){var c=this.api.getVideoData(),d=c.zk;if(d&&a<d.length){d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){nYa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.UV)&&a<c.length&&c.forEach(function(f,h){h===a&&nYa(b,f.timeRangeStartMillis,f.title)})}};
  11187. wU.prototype.seekToTimeWithAnimation=function(a,b){g.IT(this.api)&&nYa(this,a,b)};
  11188. wU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&null==a.getWatchNextResponse()&&(zVa(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.y(qYa,eU);qYa.prototype.va=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.u("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())xU(b.value,null);eU.prototype.va.call(this)};g.y(yU,eU);yU.prototype.D=function(a){return void 0!==a.compositeEmbargo};
  11189. yU.prototype.va=function(){eU.prototype.va.call(this);this.B.clear()};g.y(yYa,eU);g.k=yYa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.G(function(l){return 1==l.j?(f=JV(e.api.yb()))?g.z(l,f.B0([a],b,c,d),3):l.Ia(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
  11190. g.k.updateDownloadState=function(a,b){var c=JV(this.api.yb());return c?c.updateDownloadState(a,b):Promise.reject()};
  11191. g.k.pauseVideoDownload=function(a){var b=JV(this.api.yb());b&&b.SR(a)};
  11192. g.k.resumeVideoDownload=function(a){var b=this,c;return g.G(function(d){return(c=JV(b.api.yb()))?d.return(c.DG(a)):d.return(Promise.reject())})};
  11193. g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
  11194. g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=JV(this.api.yb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
  11195. g.k.setUpPositionSyncInterval=function(a){var b=JV(this.api.yb());b&&b.setUpPositionSyncInterval(a)};g.y(zU,eU);zU.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
  11196. zU.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;d=(null==e?void 0:e.qualityDetails)||[];c=new Map;c=g.cb(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.map(function(h){return[h.key,h.value]}));
  11197. if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=sK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=VS(a);oP(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===lP(a,f,this.api.U().G)&&d.push(f);b=b.concat(zYa(d,!1,c))}a=this.api.lE();b=b.concat(zYa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=BYa(b),AYa(b),b;a={};b=g.u(b);for(e=
  11198. b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.y(DYa,eU);g.y(AU,g.W);AU.prototype.Ta=function(a){a=a?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":a,title:a});this.api.Rh()};
  11199. AU.prototype.onClick=function(){this.api.togglePictureInPicture()};g.y(EYa,eU);EYa.prototype.createButton=function(){var a=this;this.button=new AU(this.api);g.N(this,this.button);this.api.cz(this.button);this.events.T(this.api,"videodatachange",function(){FYa(a)});
  11200. FYa(this)};g.y(GYa,eU);g.y(DU,g.W);g.k=DU.prototype;g.k.EF=function(){};
  11201. g.k.yu=function(){};
  11202. g.k.Vx=function(){return!0};
  11203. g.k.Sda=function(){if(this.expanded){this.Za.show();var a=this.B.element.scrollWidth}else a=this.B.element.scrollWidth,this.Za.hide();this.qc=34+a;g.Jv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.qc)+"px";this.bb.start()};
  11204. g.k.S7=function(){this.badge.element.style.width=(this.expanded?this.qc:34)+"px";this.gb.start()};
  11205. g.k.GK=function(a){this.Ca=a;CU(this);BU(this);this.Bl()};
  11206. g.k.Eea=function(){g.Jv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
  11207. g.k.OL=function(){return this.ra||this.Ca||!this.Y};
  11208. g.k.Bl=function(){this.Vx()?this.qa.show():this.qa.hide();HYa(this)};
  11209. g.k.qV=function(){this.enabled=!1;this.Bl()};
  11210. g.k.Dea=function(){this.Bl()};
  11211. g.k.Z$=function(a){this.Gb=1===a;this.Bl();g.Jv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
  11212. g.k.vaa=function(){g.Jv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Bl()};g.y(FU,g.iF);FU.prototype.q_=function(){this.publish("size-change")};
  11213. FU.prototype.focus=function(){this.content.focus()};
  11214. FU.prototype.m_=function(){this.publish("back")};g.y(g.GU,FU);g.k=g.GU.prototype;g.k.Rc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Sb(this.items,a,JYa);if(0<=b)return;b=~b;g.Ob(this.items,b,0,a);Hf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.zR,this);this.menuItems.publish("size-change")};
  11215. g.k.oh=function(a){a.unsubscribe("size-change",this.zR,this);this.Ma()||(g.Hb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
  11216. g.k.zR=function(){this.menuItems.publish("size-change")};
  11217. g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if("menuitemradio"===c.getAttribute("role")){if("true"===c.getAttribute("aria-checked")){a=b;break}}else break}this.items[a].focus()};
  11218. g.k.Cp=function(){return this.items.length};g.y(g.IU,g.ZT);g.k=g.IU.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.kC()};
  11219. g.k.hide=function(){g.ZT.prototype.hide.call(this);1<this.j.length&&g.KU(this)};
  11220. g.k.kC=function(){MYa(this);this.Fb&&(KYa(this),g.Ts(this.element,this.size))};
  11221. g.k.Wi=function(){var a=this.j.pop();LYa(this,a,this.j[this.j.length-1],!0)};
  11222. g.k.y5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Nb();a.preventDefault();break;case 37:1<this.j.length&&this.Wi();a.preventDefault();break;case 39:a.preventDefault()}};
  11223. g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
  11224. g.k.va=function(){g.ZT.prototype.va.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.y(LU,g.IU);LU.prototype.open=function(a,b){this.initialize(a.items)&&this.od(b,!!b)};
  11225. LU.prototype.initialize=function(a){g.HU(this.Pe);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Rc(c.value,b--);return!0};
  11226. LU.prototype.Rc=function(a,b){a.menuNavigationItemRenderer?PYa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&QYa(this,a.menuServiceItemRenderer,b)};g.y(MU,DU);g.k=MU.prototype;g.k.EF=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand)};
  11227. g.k.yu=function(){this.enabled=!1;this.qa.hide()};
  11228. g.k.Vx=function(){return!!this.j&&this.enabled};
  11229. g.k.onVideoDataChange=function(a,b){this.d1(b);if(this.j){this.f1();a:{var c,d,e;this.banner.update({title:null==(c=this.j)?void 0:c.title,subtitle:null==(d=this.j)?void 0:d.subtitle,metadata:null==(e=this.j)?void 0:e.metadataText});var f;this.onClickCommand=g.V(null==(f=this.j)?void 0:f.onTap,ME);var h;if(a=g.V(null==(h=this.j)?void 0:h.onOverflow,ME))this.K=g.V(a,Emb);var l;if(null==(l=this.j)?0:l.thumbnailImage){var m,n;h=(null==(m=this.j)?void 0:null==(n=m.thumbnailImage)?void 0:n.sources)||[];
  11230. if(0===h.length)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if(null==(p=this.j)?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:null==(q=this.j)?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!(null==(r=this.j)||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!(null==(t=this.j)||!t.shouldHideDismissButton)}var v;this.banner.element.setAttribute("aria-label",(null==(v=this.j)?void 0:v.a11yLabel)||"");var w;this.Va=null==(w=this.j)?void 0:
  11231. w.dismissButtonA11yLabel;this.B.hide();this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;SYa(this)}};
  11232. g.k.taa=function(){this.isVisible=!0;SYa(this)};
  11233. g.k.uaa=function(){this.isVisible=!1;SYa(this)};
  11234. g.k.z5=function(a){this.C||(this.C=new LU(this.J),g.N(this,this.C));var b,c;if(null==(b=this.K)?0:null==(c=b.menu)?0:c.menuRenderer)this.C.open(this.K.menu.menuRenderer,a.target),a.preventDefault()};
  11235. g.k.d1=function(){};
  11236. g.k.f1=function(){};
  11237. g.k.va=function(){this.J.mf("suggested_action_view_model");DU.prototype.va.call(this)};g.y(NU,MU);NU.prototype.d1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.suggestedActionViewModel,Wmb);var e;if(null==(e=this.productUpsellSuggestedActionViewModel)?0:e.content){var f;this.j=g.V(null==(f=this.productUpsellSuggestedActionViewModel)?void 0:f.content,Bmb)}};
  11238. NU.prototype.f1=function(){var a=[],b,c=g.u((null==(b=this.productUpsellSuggestedActionViewModel)?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.jJ(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.gf(a)};g.y(TYa,eU);g.y(g.OU,g.aU);g.k=g.OU.prototype;g.k.open=function(){g.JU(this.Bb,this.B)};
  11239. g.k.Ji=function(a){UYa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Md(this.Lk(a)),this.C=a)};
  11240. g.k.ON=function(a,b,c){var d=this;b=new g.aU({I:"div",Ka:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Lk(a,!0));b.listen("click",function(){d.VH(a)});
  11241. return b};
  11242. g.k.enable=function(a){this.N?a||(this.N=!1,this.Jy(!1)):a&&(this.N=!0,this.Jy(!0))};
  11243. g.k.Jy=function(a){a?this.Bb.Rc(this):this.Bb.oh(this)};
  11244. g.k.Dg=function(a){this.publish("select",a)};
  11245. g.k.VH=function(a){this.Dg(a)};
  11246. g.k.Lk=function(a){return a.toString()};
  11247. g.k.A5=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
  11248. g.k.va=function(){this.N&&this.Bb.oh(this);g.aU.prototype.va.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.y(QU,g.OU);QU.prototype.Ta=function(){this.Bb.Rc(this);g.PU(this,VYa(this).map(this.D));this.Ji("Off");this.j=g.bc(VYa(this),this.D,this)};
  11249. QU.prototype.Dg=function(a){g.OU.prototype.Dg.call(this,a);this.Ji(this.j[a]);this.Bb.Wi();this.J.jb("onSleepTimerSettingsChanged",this.j[a])};
  11250. QU.prototype.D=function(a){return a.toString()};g.y(WYa,eU);g.y(g.SU,g.aF);g.k=g.SU.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)};
  11251. g.k.cancel=function(){this.C&&(this.C=!1,this.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),TU(this),RU(this))};
  11252. g.k.kx=function(a){TU(this);this.T(UU("move"),this.rV);this.T(UU("out"),this.VA);this.T("touchstart",this.cN);this.j&&this.T(UU("down"),this.bN);var b=a.target;a=new g.Ie(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)};
  11253. g.k.rV=function(a){var b=a.target;a=new g.Ie(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Je(new g.Ie(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
  11254. g.k.VA=function(a){var b=new g.Ie(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Rf(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}TU(this);RU(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
  11255. g.k.z$=function(a){this.kx(a);this.bN(a)};
  11256. g.k.bN=function(a){if("number"!==typeof a.button||0===a.button){TU(this);this.D.T(document,UU("move"),this.y$);this.D.T(document,UU("up"),this.B5);var b=a.target;if(g.Qc)this.T("dragstart",this.G7);else if(a.preventDefault(),(g.UR||Js)&&b)a:{for(var c=b;c;){if($ba(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.C=!0;a=new g.Ie(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
  11257. g.k.G7=function(a){a.preventDefault()};
  11258. g.k.y$=function(a){var b=a.target;b===document&&(b=null);a=new g.Ie(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
  11259. g.k.B5=function(a){TU(this);this.C=!1;var b=QB(a),c=a.target;a=new g.Ie(a.pageX,a.pageY);b&&g.Rf(this.target,b)?(this.T(UU("move"),this.rV),this.T(UU("out"),this.VA),this.T(UU("down"),this.bN),this.T("touchstart",this.cN),this.publish("dragend",a.x,a.y,c)):(RU(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
  11260. g.k.cN=function(a){var b=a.changedTouches[0];b&&(TU(this),this.Y||(this.T("touchmove",this.nea),this.T("touchend",this.sV),this.T("touchcancel",this.sV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))};
  11261. g.k.nea=function(a){var b=XYa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))};
  11262. g.k.sV=function(a){var b=XYa(this,a);if(b){TU(this);RU(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}};
  11263. g.k.va=function(){this.j&&(g.Qc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");TU(this);g.aF.prototype.va.call(this)};g.y(YYa,g.W);YYa.prototype.Uh=function(){g.Is(this.j,"display","none");this.J.logVisibility(this.j,!1)};g.y(WU,eU);WU.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.yv(this.delay)};
  11264. WU.prototype.Ea=function(){if(this.D){this.C=!0;this.Ga=this.api.getPlaybackRate();this.La=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Is(a.j,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Na);this.api.hideControls();this.api.playVideo();this.N&&(this.N.kA=!0);this.qa&&(this.qa.PJ=!0)}};
  11265. WU.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ca?this.Z=a:XU(this)}};
  11266. WU.prototype.G=function(){XU(this)};g.y(aZa,eU);aZa.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.yb().createSubtitlesModuleIfNeeded()};g.y(YU,g.Ab);YU.prototype.preventDefault=function(){g.Ab.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
  11267. YU.prototype.stopPropagation=function(){g.Ab.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.y(g.ZU,OK);g.k=g.ZU.prototype;g.k.Ev=function(){return!0};
  11268. g.k.isView=function(){return!1};
  11269. g.k.uS=function(){return!1};
  11270. g.k.Hb=function(){return this.j};
  11271. g.k.Df=function(){return this.j.src};
  11272. g.k.SH=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
  11273. g.k.wL=function(){this.j.removeAttribute("src")};
  11274. g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
  11275. g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
  11276. g.k.Et=function(){return this.j.loop};
  11277. g.k.setLoop=function(a){this.j.loop=a};
  11278. g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
  11279. g.k.isPaused=function(){return this.j.paused};
  11280. g.k.isSeeking=function(){return this.j.seeking};
  11281. g.k.isEnded=function(){return this.j.ended};
  11282. g.k.oJ=function(){return this.j.muted};
  11283. g.k.RB=function(a){IDa();this.j.muted=a};
  11284. g.k.yw=function(){return this.j.played||uK([],[])};
  11285. g.k.Sh=function(){try{var a=this.j.buffered}catch(b){}return a||uK([],[])};
  11286. g.k.CE=function(){return this.j.seekable||uK([],[])};
  11287. g.k.RH=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
  11288. g.k.getCurrentTime=function(){return this.j.currentTime};
  11289. g.k.setCurrentTime=function(a){this.j.currentTime=a};
  11290. g.k.getDuration=function(){return this.j.duration};
  11291. g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
  11292. g.k.pause=function(){this.j.pause()};
  11293. g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
  11294. return a};
  11295. g.k.Kk=function(){return this.j.readyState};
  11296. g.k.pJ=function(){return this.j.networkState};
  11297. g.k.Yg=function(){return this.j.error?this.j.error.code:null};
  11298. g.k.qf=function(){return this.j.error?this.j.error.message:""};
  11299. g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
  11300. g.k.Vh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
  11301. g.k.Nu=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
  11302. g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():HDa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
  11303. g.k.Gt=function(){var a=this.j;return new g.Ie(a.offsetLeft,a.offsetTop)};
  11304. g.k.getSize=function(){return g.Us(this.j)};
  11305. g.k.setSize=function(a){g.Ts(this.j,a)};
  11306. g.k.getVolume=function(){return this.j.volume};
  11307. g.k.setVolume=function(a){IDa();this.j.volume=a};
  11308. g.k.FO=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)};
  11309. g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
  11310. g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
  11311. g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
  11312. g.k.xD=da(32);g.k.eH=da(34);g.k.fH=da(36);g.k.oz=da(38);g.k.YD=function(){return LB(this.j)};
  11313. g.k.Ns=function(a){g.Fv(this.j,a)};
  11314. g.k.EE=function(a){return g.Ls(this.j,a)};
  11315. g.k.gQ=function(){return g.Rf(document.body,this.j)};
  11316. g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
  11317. g.k.va=function(){for(var a=g.u(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);OK.prototype.va.call(this)};
  11318. g.k.MS=function(a){this.j.disableRemotePlayback=a};$U.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
  11319. $U.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
  11320. $U.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.y(aV,g.I);aV.prototype.start=function(){this.B.start()};
  11321. aV.prototype.stop=function(){this.B.stop()};
  11322. aV.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
  11323. aV.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new cZa(rob.has(b)));this.j.get(b).update(c())}this.B.start()};
  11324. var rob=new Set(["networkactivity"]);cZa.prototype.update=function(a){this.j?(this.buffer.add(a-this.zA||0),this.zA=a):this.buffer.add(a)};
  11325. cZa.prototype.clear=function(){this.buffer.clear();this.zA=0};g.y(eV,g.W);g.y(gV,g.W);gV.prototype.show=function(){g.W.prototype.show.call(this);this.Ta();this.Ua.L("html5_enable_moving_s4n_window")&&g.PI(this.Ua.U())&&this.N()};
  11326. gV.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.D.stop()};
  11327. gV.prototype.Ta=function(){var a=(0,g.EC)(),b=fZa(this.Ua);fV(this.j,b.bandwidth_samples);fV(this.K,b.network_activity_samples);fV(this.C,b.live_latency_samples);fV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.Y[d]!==e&&(c[d]=" "+String(e));this.Y[d]=e}this.update(c);a=25<(0,g.EC)()-a?5E3:500;this.delay.start(a)};
  11328. gV.prototype.N=function(){this.G?(this.position+=1,15<this.position&&(this.G=!1)):(--this.position,0>=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.y(iZa,eU);g.y(hV,g.I);hV.prototype.j=function(){var a=(0,g.EC)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Uv(sob,a));1>a&&this.delay.start()};
  11329. var sob=new Tv(0,0,.4,0,.2,1,1,1),oZa=/[0-9.-]+|[^0-9.-]+/g;g.y(iV,g.W);iV.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.bk():!a.oQ;a.Ua.jb("SIZE_CLICKED",b);this.api.logClick(this.element)};
  11330. iV.prototype.Ta=function(){g.hF(this,this.api.nQ()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Fb){var a=this.api.bk();this.bk!==a&&this.YB(a)}this.api.logVisibility(this.element,this.Fb)};
  11331. iV.prototype.YB=function(a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};null==this.bk?this.updateValue("icon",b):nZa(this.transition,this.element,
  11332. b);this.bk=a;b=g.MT(this.api,"Default view","t");var c=g.MT(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.Rh()};g.y(pZa,eU);g.y(qZa,eU);jV.prototype.send=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,eB(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof dB)throw new ln(kn(VA(c.xhr)),c.message);throw c;})};
  11333. jV.prototype.aE=function(a,b){var c=this,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){var p=new Po;d=Zk(p,1,c.Zi);a&&Zk(d,2,a);b&&Zk(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Ck()},c.j)),2)}e=n.B;f=dkb(e.xhr.responseText);h=ck(f,2);if(!h.isEmpty()){if(g.pB()&&10>jqa())throw Error("Unsupported");l=Mg(eda(h));return n.return(iga(l))}m=g.Gk(f,Ko,1);if(!m)throw Error("Missing field");return n.return(m)})};
  11334. jV.prototype.DX=function(a){var b=this,c,d;return g.G(function(e){if(1==e.j){var f=new Qo;f=Zk(f,1,b.Zi);c=Zk(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Ck()},b.j)),2)}d=e.B;return e.return(fkb(d.xhr.responseText))})};var j3={},vZa=(j3[1]="pot_ss",j3[2]="pot_sf",j3[3]="pot_se",j3[4]="pot_xs",j3[5]="pot_xf",j3[6]="pot_xe",j3);g.y(kV,eU);kV.prototype.va=function(){this.C&&(g.$A(this.C),this.C=void 0);eU.prototype.va.call(this)};
  11335. kV.prototype.QO=function(a){var b=this;return g.G(function(c){return b.j?c.return(b.j.ready().then(function(){b.Mb.Lh("pot_if");return wZa(b,a)})):c.return(Promise.reject("web po not ready"))})};
  11336. kV.prototype.OQ=function(a){return wZa(this,a)};
  11337. kV.prototype.JT=function(){this.j&&!this.j.isReady()&&lV(this)};g.y(xZa,eU);g.y(mV,g.I);mV.prototype.j=function(){for(var a=g.u(g.Ja.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
  11338. mV.prototype.va=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.va.call(this)};nV.prototype.cR=function(){this.B=(0,g.EC)()};
  11339. nV.prototype.reset=function(){this.j=this.B=NaN};
  11340. nV.prototype.iR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});gH("seek",c);g.fH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||eH("pl_ss",this.B,"seek");eH(b,(0,g.EC)(),"seek")}this.reset()}};g.k=yZa.prototype;g.k.reset=function(){cH(this.timerName)};
  11341. g.k.tick=function(a,b){eH(a,b,this.timerName)};
  11342. g.k.Lh=function(a){return Cza(a,this.timerName)};
  11343. g.k.Tu=function(a){fL(a,void 0,this.timerName)};
  11344. g.k.infoGel=function(a){g.fH(a,this.timerName)};g.y(CZa,g.aF);g.k=CZa.prototype;g.k.Wk=function(a){return this.loop||!!a||this.index+1<this.length};
  11345. g.k.Fp=function(a){return this.loop||!!a||0<=this.index-1};
  11346. g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.publish("shuffle")};
  11347. g.k.dh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Da.qa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return OR(this.Da,this.C[0],a)};
  11348. g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
  11349. g.k.onReady=function(a){this.j=a;this.loaded&&g.XA(this.j,0)};
  11350. g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
  11351. g.k.Uk=function(){return this.Da.getVideoUrl(g.pV(this).videoId,this.getPlaylistId())};
  11352. g.k.va=function(){this.j=null;g.wb(this.items);g.aF.prototype.va.call(this)};var qV=new Map;g.y(g.sV,g.aF);g.k=g.sV.prototype;g.k.create=function(){};
  11353. g.k.load=function(){this.loaded=!0};
  11354. g.k.unload=function(){this.loaded=!1};
  11355. g.k.Qh=function(){};
  11356. g.k.Lm=function(){return!0};
  11357. g.k.va=function(){this.loaded&&this.unload();g.aF.prototype.va.call(this)};
  11358. g.k.kc=function(){return{}};
  11359. g.k.getOptions=function(){return[]};g.y(g.vV,g.I);g.k=g.vV.prototype;g.k.ju=da(41);g.k.FA=function(){};
  11360. g.k.Ds=function(){};
  11361. g.k.Aw=function(){return""};
  11362. g.k.cS=da(42);g.k.va=function(){this.Ds();g.I.prototype.va.call(this)};g.y(g.wV,g.vV);g.wV.prototype.ju=da(40);g.wV.prototype.FA=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.uV(this.B,c.value);a()};
  11363. g.wV.prototype.Aw=function(a,b){var c=a.Le(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.pB()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.iS(a));this.W.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.W.j);return PA(c,d)};
  11364. g.wV.prototype.Ds=function(){this.j&&this.j.abort()};g.PZa.prototype.Cu=function(a){this.Da.Cu(a)};g.tob=new Map;g.y(g.AV,g.vV);g.AV.prototype.ju=da(39);
  11365. g.AV.prototype.FA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.RY&&(d.asrs=1);c=PA(c,d);this.Ds();this.j=g.cB(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
  11366. l=l.getAttribute("vss_id");g.uV(b.B,new g.fS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
  11367. withCredentials:!0})};
  11368. g.AV.prototype.Aw=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.W.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.iS(a));Object.assign(b,this.W.j);return c=PA(c,b)};
  11369. g.AV.prototype.Ds=function(){this.j&&this.j.abort()};BV.prototype.preload=function(a){a=a?VZa(this.capabilities,a):this.capabilities;return a.Id?a_a(this,a).then(function(){}):Promise.resolve()};
  11370. BV.prototype.compile=function(a){var b=this;return UZa([{name:"compileStreaming",condition:function(){return!!b.B&&a.streaming},
  11371. func:function(){return WebAssembly.compileStreaming(fetch(b.path))},
  11372. onFailure:function(){return b.capabilities.streaming=!1}},
  11373. {name:"sync",condition:function(){return a.sync},
  11374. func:function(){return $Za(b).then(function(c){return new WebAssembly.Module(c)})},
  11375. onFailure:function(){return b.capabilities.sync=!1}},
  11376. {name:"async",condition:function(){return!0},
  11377. func:function(){return $Za(b).then(function(c){return WebAssembly.compile(c)})},
  11378. onFailure:function(){return b.capabilities.Id=!1}}],void 0,function(c,d,e){g.JE(Error("wasm module compile mode "+d.name+" failure",{cause:e}))})};
  11379. BV.prototype.instantiate=function(a,b){var c=this;return UZa([{name:"instantiateStreaming",condition:function(){return a.Id&&a.streaming&&!c.B&&!c.j},
  11380. func:function(){return WebAssembly.instantiateStreaming(fetch(c.path),b).then(function(d){c.j=Promise.resolve(d.module);return{instance:d.instance,Kp:!1}})},
  11381. onFailure:function(){return c.capabilities.streaming=!1}},
  11382. {name:"sync",condition:function(){return a.Id&&a.sync},
  11383. func:function(){return a_a(c,a).then(function(d){return{instance:new WebAssembly.Instance(d,b),Kp:!1}})},
  11384. onFailure:function(){return c.capabilities.sync=!1}},
  11385. {name:"async",condition:function(){return a.Id},
  11386. func:function(){return a_a(c,a).then(function(d){return WebAssembly.instantiate(d,b)}).then(function(d){return{instance:d,
  11387. Kp:!1}})},
  11388. onFailure:function(){return c.capabilities.Id=!1}},
  11389. {name:"asmjs",condition:function(){return a.fz},
  11390. func:function(){return c.C(b).then(function(d){return{instance:{exports:d},Kp:!0}})},
  11391. onFailure:function(){return c.capabilities.fz=!1}}],function(d){return c.D(b,d.instance.exports)},function(d,e,f){g.JE(Error("wasm module instantiation mode "+e.name+" failure",{cause:f}))})};b_a.prototype.emscripten_notify_memory_growth=function(){};
  11392. c_a.prototype.proc_exit=function(){};
  11393. c_a.prototype.fd_write=function(a,b,c){if(!this.exports)return 1;a=new Uint32Array(this.exports.memory.buffer,b,2*c);b=[];for(var d=0;d<c;++d){var e=new Uint8Array(this.exports.memory.buffer,a[2*d],a[2*d+1]);e=g.LN(e);b.push(e)}return b.reduce(function(f,h){return f+h.length},0)};var XZa;CV.prototype.zI=function(a){if(a.buffer!==this.exports.memory.buffer){var b=this.exports.malloc(a.byteLength);b=new Uint8Array(this.exports.memory.buffer,b,a.byteLength);b.set(a);return b}};
  11394. CV.prototype.RQ=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.exports.free(a.byteOffset);return b}};
  11395. var Afb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.aK||g.bR&&!g.nB("windows nt")||g.zC||g.VC||jqa();DV.dQ(CV,{zI:function(a){return{profile:"copyj2w",Rs:void 0===a?0:Math.ceil(a.byteLength/16)}},
  11396. RQ:function(a){return{profile:"copyw2j",Rs:void 0===a?0:Math.ceil(a.byteLength/16)}}});g.y(f_a,g.I);g.k=f_a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){j_a(this)&&FV(this,"captions");return!!g.EV(this)};
  11397. g.k.TG=function(){return this.J.getVideoData().TG()};
  11398. g.k.YS=function(){return this.J.getVideoData().YS()};
  11399. g.k.dX=function(){var a=this.He.get("heartbeat");FV(this,"heartbeat",!1,!0,this.dX);!a&&this.He.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
  11400. g.k.AI=function(){FV(this,"annotations_module",!0,void 0,this.AI);var a=this.He.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
  11401. g.k.qO=function(){if(!this.He.get("ad"))try{g_a(this)?FV(this,"ad",!1,!0,this.qO):this.J.zg("ad")}catch(a){this.J.zg("ad"),g.IE(a)}};
  11402. g.k.Ai=function(){return this.B};
  11403. g.k.vr=function(){var a={},b=g.EV(this);b&&Object.assign(a,b.vr());return a};
  11404. g.k.GA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.DI,b||null)};
  11405. g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.lT(a)&&!g.KV(this)&&this.AI()};
  11406. g.k.va=function(){g.I.prototype.va.call(this);GV(this,1,!0);for(var a=g.u(Object.entries(x_a)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&qV.delete(b)}this.D.clear()};
  11407. var k3={},x_a=(k3.ad="ad.js",k3.annotations_module="annotations_module.js",k3.asmjs="asmjs.js",k3.creatorendscreen="annotations_module.js",k3.embed="embed.js",k3.endscreen="endscreen.js",k3.heartbeat="heartbeat.js",k3.inline_preview="inline_preview.js",k3.kids="kids.js",k3.remote="remote.js",k3.miniplayer="miniplayer.js",k3.offline="offline.js",k3.captions="captions.js",k3.unplugged="unplugged.js",k3.ux="ux.js",k3.webgl="webgl.js",k3.ypc="ypc.js",k3.ypc_clickwrap="ypc_clickwrap.js",k3.yto="yto.js",
  11408. k3),s_a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.y(z_a,g.aF);g.k=z_a.prototype;g.k.C5=function(a){a=new g.Ie(a.pageX,a.pageY);if(!Je(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;LV(this,b,!0)}};
  11409. g.k.A$=function(){this.K&&LV(this,8,!0);LV(this,2,!1)};
  11410. g.k.kx=function(a){var b=new g.Ie(a.pageX,a.pageY);Je(b,this.D)||(this.D=b,(a=a.target)&&this.pI(a)&&(LV(this,4,!0),this.j.Pc(this.C),this.C=this.j.T(this.target,"mouseover",this.VA),this.N=this.j.T(this.target,"mouseout",this.VA)))};
  11411. g.k.VA=function(a){a=a.relatedTarget;a&&this.pI(a)||(this.D=new g.Ie(NaN,NaN),A_a(this))};
  11412. g.k.S9=function(){LV(this,1,!0)};
  11413. g.k.d8=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||LV(this,1,!0)};
  11414. g.k.tV=function(){this.K=!0;this.j.Pc(this.G);this.G=this.j.T(document,"mouseup",this.D5)};
  11415. g.k.D5=function(){this.K=!1;LV(this,8,!1);this.j.Pc(this.G);this.G=this.j.T(this.target,"mousedown",this.tV)};
  11416. g.k.uV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchend",this.E5,void 0,!0),LV(this,1024,!0)};
  11417. g.k.E5=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ca){var d=c;break}}d&&(this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.uV,void 0,!0),LV(this,1024,!1))};
  11418. g.k.Vu=function(){LV(this,2,!0)};
  11419. g.k.resize=function(){g.aK&&A_a(this)};
  11420. g.k.toString=function(){return g.aF.prototype.toString.call(this)};g.y(g.NV,g.W);g.k=g.NV.prototype;g.k.Cea=function(){this.Ta()};
  11421. g.k.Ta=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.Yc();g.Jv(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
  11422. fill:"#f00","fill-rule":"evenodd"}},{I:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.vT(a)?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Hf&&a.zp?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
  11423. X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Jv(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",X:{height:"100%",version:"1.1",
  11424. viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
  11425. fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
  11426. fill:"#f00"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Hf&&a.zp&&(a=a.zp?a.zp:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
  11427. g.k.show=function(){g.W.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
  11428. g.k.U8=function(){this.api.getVideoData().mutedAutoplay||(this.api.JA(),this.api.playVideo())};
  11429. g.k.Lca=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.y(g.OV,g.W);g.k=g.OV.prototype;g.k.show=function(){var a=this;this.Fb||(this.D.T(this.api,"videodatachange",function(){g.yv(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.yv(a.j)}));
  11430. g.W.prototype.show.call(this)};
  11431. g.k.hide=function(){this.D&&g.UB(this.D);g.W.prototype.hide.call(this)};
  11432. g.k.dc=function(){g.yv(this.j)};
  11433. g.k.onStateChange=function(){g.yv(this.j)};
  11434. g.k.sca=function(){g.yv(this.j)};
  11435. g.k.onReset=function(){this.B.stop();this.hide();g.yv(this.j)};
  11436. g.k.Ta=function(){var a=this.api.getPlayerStateObject();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.yb().He.get("ypc"))&&b.YK?b=!0:(b=this.api.U(),b=g.TF(a,2)&&g.OT(this.api)&&b.Sg?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&B_a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.TF(a,2)&&!g.OT(this.api)&&!this.api.kE()||g.TF(a,1024)?!0:!1);var c=this.api.getVideoData();
  11437. b&&!c.RV?(this.B.show(),this.Hea(this.api.getPlaylist(),c)):(this.B.hide(),g.TF(a,1)||this.B.stop())};
  11438. g.k.Hea=function(){var a=g.Ja.apply(0,arguments),b=this.api.U(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&B_a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.u(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.ES&&!c.videoId)){e=this.api.ob().getPlayerSize();var f=g.QR();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.dh("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.dh("maxresdefault.jpg"))break;
  11439. if(320<d||180<f)if(e=c.dh("sddefault.jpg")||c.dh("hqdefault.jpg")||c.dh("mqdefault.jpg"))break;if(e=c.dh("default.jpg"))break}g.TR(b)&&(b=new Image,b.addEventListener("load",function(){Fza()}),b.src=e?e:"",this.api.Ai().tick("ftr"));
  11440. this.G.style.backgroundImage=e?"url("+e+")":""};g.y(g.PV,g.W);g.PV.prototype.resize=function(){};
  11441. g.PV.prototype.B=function(a){var b=this;this.C=!1;E_a(this);var c=a.GO,d=this.api.U();"GENERIC_WITHOUT_LINK"!==c||d.K?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Md(SV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Uk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.lo(a,{hl:d})),this.Md(SV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
  11442. a))):this.Md(g.QV(a.errorMessage)):this.Md(SV(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.lo(c,{hl:a})),this.Md(SV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.qc&&!d.D&&D_a(this,function(f){if(g.lU(f,b.api,!PR(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Ac("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",
  11443. productData:f});h.isFullscreen()&&h.toggleFullscreen()}}));
  11444. if(this.C){var e=this.Fa("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),D_a(this,function(){b.api.logClick(e)}))}};
  11445. var C_a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.y(F_a,g.W);g.k=F_a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.jb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.lU(a,this.J,!0);this.J.logClick(this.element)};
  11446. g.k.onVideoDataChange=function(a,b){H_a(this,b);this.Fe&&I_a(this,this.Fe)};
  11447. g.k.F5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&H_a(this,b);this.j&&I_a(this,a.state);this.Fe=a.state};
  11448. g.k.od=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
  11449. g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.y(TV,g.W);TV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
  11450. TV.prototype.onStateChange=function(a){this.Gc(a.state)};
  11451. TV.prototype.Gc=function(a){if(g.TF(a,128))var b=!1;else{var c;b=(null==(c=this.api.Wc())?0:c.Tt)?!1:g.TF(a,16)||g.TF(a,1)?!0:!1}b?this.j.start():this.hide()};
  11452. TV.prototype.B=function(){this.message.style.display="block"};g.y(UV,g.ZT);UV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(J_a(this),this.od()):(this.j&&this.logClick(),this.Nb()))};
  11453. UV.prototype.nk=function(a){this.api.isMutedByMutedAutoplay()&&g.VF(a,2)&&this.Nb()};
  11454. UV.prototype.onClick=function(){this.api.unMute();this.logClick()};
  11455. UV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.VV,g.cK);g.k=g.VV.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.QJ=a.getPlayerSize();this.Fc(b);this.zq();this.dc();this.api.publish("basechromeinitialized",this);this.uP()&&this.api.publish("standardControlsInitialized")};
  11456. g.k.onVideoDataChange=function(a,b){var c=this.jF!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.QJ=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.sT(d))&&this.yq()}c&&(this.jF=b.videoId,c=this.Eg,c.Ga=3E3,LV(c,512,!0),this.zq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.C1=572)};
  11457. g.k.bba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
  11458. g.k.ZB=function(){var a=this.api.Nk()&&this.api.kp(),b=this.api.rA();return this.oO||a||this.PP||b};
  11459. g.k.yq=function(){var a=!this.ZB();g.Jv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.sT(b))&&g.Jv(this.api.getRootNode(),"ytp-hide-controls",!a)};
  11460. g.k.pI=function(a){try{if(!g.Rf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.Qf(a);return!!a};
  11461. g.k.cB=function(a){var b=this.api.getRootNode();g.Jv(b,"ytp-autohide",a);g.Jv(b,"ytp-autohide-active",!0);this.wW.start(a?250:100);a&&(this.aM=!1,g.Hv(b,"ytp-touch-mode"));this.pO=!a;this.api.IL(!a)};
  11462. g.k.bR=function(){var a=this.api.getRootNode();g.Jv(a,"ytp-autohide-active",!1)};
  11463. g.k.Iba=function(){this.yT=!0};
  11464. g.k.Hba=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.yT=!1,this.zT&&this.Pc(this.zT),0===this.BF&&WV(this,a)?(this.QP(),this.MI.start(),this.zT=this.T(this.api.ob(),"touchmove",this.Iba,void 0,!0)):this.MI.stop();N_a(this)&&WV(this,a)&&!this.api.U().Z&&L_a(this);var b=this.DT.Zj();if(!g.BR(this.api.U())&&yR&&O_a(this,a))b&&a.preventDefault();else if(this.aM=!0,g.Fv(this.api.getRootNode(),"ytp-touch-mode"),this.Eg.Vu(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
  11465. this.api.getPlayerStateObject(),!(!this.api.Wh()||g.TF(b,2)&&g.OT(this.api)||g.TF(b,64))){b=Date.now()-this.sZ;this.BF+=1;if(350>=b){this.SD=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.BF-1);0<d&&d<b?(this.vG(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.vG(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else MV&&
  11466. this.api.U().Z&&WV(this,a)&&a.preventDefault();this.sZ=Date.now();this.M0.start()}};
  11467. g.k.Gba=function(){this.vK.kA=!1;this.api.publish("rootnodemousedown",this.vK)};
  11468. g.k.Cba=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(O_a(this,a)||this.vK.kA)return}else if(this.vK.kA||O_a(this,a))return;N_a(this)||!WV(this,a)||this.MI.isActive()||(L_a(this),a.preventDefault());this.SD&&(this.SD=!1)};
  11469. g.k.QP=function(){};
  11470. g.k.UG=function(){};
  11471. g.k.vG=function(){};
  11472. g.k.uG=function(){};
  11473. g.k.Bs=function(){var a=this.api.getPlayerStateObject();g.TF(a,2)&&g.OT(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.xn&&(a=this.xn.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.JA(),this.api.playVideo(),this.xn&&document.activeElement===this.xn.C.element&&(null==(a=this.uP())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
  11474. g.k.Dba=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!M_a(this,QB(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.SD)this.SD=!1;else if(a.Gb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.JE(d)})}catch(d){this.JE(d)}};
  11475. g.k.JE=function(a){String(a).includes("fullscreen error")?g.JE(a):g.IE(a)};
  11476. g.k.Eba=function(a){P_a(this,.3,a.scale);a.preventDefault()};
  11477. g.k.Fba=function(a){P_a(this,.1,a.scale)};
  11478. g.k.dc=function(){var a=this.api.ob().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Eg.resize();g.Jv(b,"ytp-fullscreen",this.api.isFullscreen());g.Jv(b,"ytp-large-width-mode",c);g.Jv(b,"ytp-small-mode",this.Lg());g.Jv(b,"ytp-tiny-mode",this.XJ());g.Jv(b,"ytp-big-mode",this.Dh());this.qg&&this.qg.resize(a)};
  11479. g.k.nk=function(a){this.Fc(a.state);this.zq()};
  11480. g.k.TB=da(6);g.k.fP=function(){var a=!!this.jF&&!this.api.Ff()&&!this.QR,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(mjb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=HV(this.api.yb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.NI(b.player.U()):!1);return a}return a&&(c.Um||this.api.isFullscreen()||c.Ak)};
  11481. g.k.zq=function(){var a=this.fP();this.Pn!==a&&(this.Pn=a,g.Jv(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
  11482. g.k.Fc=function(a){var b=a.isCued()||this.api.Kn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.AT&&this.Pc(this.AT),this.AT=this.T(this.api.ob(),"touchstart",this.Hba,void 0,b));var c=this.Eg,d=a.isPlaying()&&!g.TF(a,32)||this.api.XE();LV(c,128,!d);c=this.Eg;d=3===this.api.getPresentingPlayerType();LV(c,256,d);c=this.api.getRootNode();g.TF(a,2)?d=[V2.ENDED]:(d=[],g.TF(a,8)?d.push(V2.PLAYING):g.TF(a,4)&&d.push(V2.PAUSED),g.TF(a,1)&&!g.TF(a,32)&&d.push(V2.BUFFERING),
  11483. g.TF(a,32)&&d.push(V2.SEEKING),g.TF(a,64)&&d.push(V2.UNSTARTED));g.Wb(this.tN,d)||(g.Iv(c,this.tN),this.tN=d,g.Gv(c,d));d=this.api.U();var e=g.TF(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.TF(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:Vib(HV(this.api.yb())))||this.api.rA()||g.BR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Jv(c,"ytp-hide-controls",!f);g.Jv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.PP);
  11484. g.TF(a,128)&&!g.BR(d)?(this.qg||(this.qg=new g.PV(this.api),g.N(this,this.qg),g.UT(this.api,this.qg.element,4)),this.qg.B(a.Ig),this.qg.show()):this.qg&&(this.qg.dispose(),this.qg=null)};
  11485. g.k.Tq=function(){return this.api.Nk()&&this.api.kp()?(this.api.QB(!1,!1),!0):this.api.Ff()?(g.PT(this.api,!0),!0):!1};
  11486. g.k.onMutedAutoplayChange=function(a){this.PP=a;this.yq()};
  11487. g.k.Dh=function(){return!1};
  11488. g.k.Lg=function(){return!this.Dh()&&(this.api.getPlayerSize().width<this.C1||290>this.api.getPlayerSize().height)};
  11489. g.k.XJ=function(){return this.Lg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
  11490. g.k.Am=function(){return this.aM};
  11491. g.k.Fn=function(){return null};
  11492. g.k.PX=function(){return null};
  11493. g.k.Hn=function(){var a=this.api.ob().getPlayerSize();return new g.Fs(0,0,a.width,a.height)};
  11494. g.k.handleGlobalKeyDown=function(){return!1};
  11495. g.k.handleGlobalKeyUp=function(){return!1};
  11496. g.k.Gx=function(){};
  11497. g.k.showControls=function(a){void 0!==a&&this.api.ob().IL(a)};
  11498. g.k.Vu=function(){};
  11499. g.k.uP=function(){return null};g.y(XV,g.aF);g.k=XV.prototype;g.k.im=function(){return 1E3*this.api.getDuration(this.Mo,!1)};
  11500. g.k.stop=function(){this.j&&this.Ed.Pc(this.j)};
  11501. g.k.Sc=function(){var a=this.api.getProgressState(this.Mo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Mo,!1)};this.publish("h")};
  11502. g.k.getProgressState=function(){return this.B};
  11503. g.k.G5=function(a){g.VF(a,2)&&this.publish("g")};g.y(g.YV,g.W);g.YV.prototype.show=function(){g.W.prototype.show.call(this);g.yv(this.j)};
  11504. g.YV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)};
  11505. g.YV.prototype.UG=function(a){a?g.TF(this.J.getPlayerStateObject(),64)||ZV(this,Bxa(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZV(this,Fxa(),"Stop live playback"):ZV(this,yxa(),"Pause"))};g.y(S_a,g.W);g.k=S_a.prototype;g.k.PG=function(a){a?this.j=LT(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
  11506. g.k.od=function(){this.J.U().L("player_new_info_card_format")&&g.Ev(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.BR(this.J.U())||(this.B.show(),g.OD("iv-button-shown"))};
  11507. g.k.Nb=function(){g.OD("iv-button-hidden");this.B.hide()};
  11508. g.k.Zj=function(){return this.Fb&&4!==this.B.state};
  11509. g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};
  11510. g.k.Aaa=function(){g.OD("iv-button-mouseover")};
  11511. g.k.onClicked=function(a){this.J.Nk();var b=g.Ev(this.J.getRootNode(),"ytp-cards-teaser-shown");g.OD("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.kT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.lT(d);(null==a?0:a.onIconTapCommand)&&this.J.jb("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.QB(!this.J.kp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.y(T_a,g.W);g.k=T_a.prototype;g.k.B2=function(){this.J.Nk()&&this.J.kp()&&this.Zj()&&this.Nb()};
  11512. g.k.pT=function(){this.Nb();!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.Nb();g.OD("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.jb("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.kT(a))||this.J.QB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
  11513. g.k.I5=function(){g.OD("iv-teaser-mouseover");this.j&&this.j.stop()};
  11514. g.k.cca=function(a){this.J.U().L("player_new_info_card_format")&&!g.BR(this.J.U())?this.Ug.Nb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.od();this.j||!a||this.J.kp()||this.B&&this.B.isActive()||(this.od(a),g.OD("iv-teaser-shown"))};
  11515. g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Ov(a.teaserText));this.D.show();this.B=new g.xv(function(){g.Fv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.BR(this.J.U())&&this.Ug.Nb();this.dN()},0,this);
  11516. this.B.start();this.Ug.PG(!1);this.j=new g.xv(this.Nb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.wV,this));this.G.push(this.listen("mouseout",this.vV,this))};
  11517. g.k.dN=function(){if(!this.J.U().L("player_new_info_card_format")&&g.BR(this.J.U())&&this.Fb){var a=this.Ug.element.offsetLeft,b=g.xf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Ug.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
  11518. g.k.g7=function(){g.BR(this.J.U())&&this.J.Lg()&&this.Fb&&this.Y.start()};
  11519. g.k.wV=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
  11520. g.k.vV=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
  11521. g.k.Oaa=function(){this.j&&this.j.stop()};
  11522. g.k.Naa=function(){this.Nb()};
  11523. g.k.H5=function(){this.Nb()};
  11524. g.k.Nb=function(){!this.j||this.C&&this.C.isActive()||(g.OD("iv-teaser-hidden"),this.D.hide(),g.Hv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.xv(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Pc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Ug.PG(!0);!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.Nb()},330,this),this.C.start())};
  11525. g.k.Zj=function(){return this.Fb&&4!==this.D.state};
  11526. g.k.va=function(){var a=this.J.getRootNode();a&&g.Hv(a,"ytp-cards-teaser-shown");g.wb(this.B,this.C,this.j);g.W.prototype.va.call(this)};var l3={},aW=(l3.BUTTON="ytp-button",l3.TITLE_NOTIFICATIONS="ytp-title-notifications",l3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",l3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",l3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",l3);g.y(U_a,g.W);U_a.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);V_a(this,a)};g.Va("yt.pubsub.publish",g.OD);g.y(g.bW,g.W);g.bW.prototype.D=function(){window.location.reload()};
  11527. g.bW.prototype.j=function(){g.Fv(this.element,"ytp-sb-subscribed")};
  11528. g.bW.prototype.B=function(){g.Hv(this.element,"ytp-sb-subscribed")};g.y(Z_a,g.W);g.k=Z_a.prototype;g.k.caa=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.Wa?a0a(this)&&(this.isExpanded()?this.xI():this.aJ()):g.Qe(cW(this));a.preventDefault()};
  11529. g.k.vS=function(){c0a(this);this.channel.classList.remove("ytp-title-expanded")};
  11530. g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
  11531. g.k.aJ=function(){if(a0a(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));
  11532. var a=this.api.getVideoData();this.B&&a.Ll&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
  11533. g.k.xI=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
  11534. g.k.Ta=function(){var a=this.api.U();g.hF(this,!this.api.Yc());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Bc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.BR(c)&&(this.D=e&&!g.vT(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K=
  11535. c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",cW(this)),this.updateValue("channelLogoLabel",g.qJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Fv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Cl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||
  11536. this.updateValue("channelTitleLink",cW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
  11537. g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.y(dW,g.aU);dW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.y(d0a,g.W);g.k=d0a.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
  11538. g.k.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
  11539. g.k.J5=function(a){var b=QB(a),c=g.Rf(this.closeButton.element,b),d=g.Rf(this.element,b);a=this.j&&g.Rf(this.j,b)&&g.dG(a);b&&(d||a)&&!c||this.hide()};
  11540. g.k.K5=function(){X_a(g.NR(this.Ua.U()),"user_info_panel",function(){window.location.reload()})};
  11541. g.k.Ta=function(){var a=this.Ua.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Mi};this.updateValue("icon",zxa());this.updateValue("watchingAsUsername",g.qJ("Watching as $USER_NAME",b));a.Mi?this.updateValue("watchingAsEmail",g.qJ("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.y(f0a,g.GU);g.k=f0a.prototype;g.k.j7=function(){this.Bb.Nb()};
  11542. g.k.iaa=function(){UXa(this.zz.element)};
  11543. g.k.waa=function(){fW(this,this.J.getDebugText(!0))&&ZV(this.ke,kxa())};
  11544. g.k.xaa=function(){fW(this,this.J.getVideoEmbedCode())&&ZV(this.ke,oxa());this.J.logClick(this.Cn.element);vya("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
  11545. g.k.yaa=function(){fW(this,this.J.getVideoUrl(!0,!0))&&ZV(this.ke,qF());this.J.logClick(this.getVideoUrl.element);vya("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
  11546. g.k.zaa=function(){fW(this,this.J.getVideoUrl(!1,!0))&&ZV(this.ke,qF());this.J.logClick(this.In.element);vya("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
  11547. g.k.onLoopChange=function(a){var b;null==(b=this.Zk)||kU(b,a)};
  11548. g.k.Haa=function(){this.J.setLoopVideo(this.Zk.getValue());this.Bb.Nb();this.J.logClick(this.Zk.element)};
  11549. g.k.yba=function(a){this.J.reportPlaybackIssue();if(g.lU(a,this.J,!PR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Ac("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Bb.Nb()};
  11550. g.k.Sba=function(){g.CT(this.J,"isVideoInfoVisible",[])?g.CT(this.J,"hideVideoInfo",[]):g.CT(this.J,"showVideoInfo",[]);this.Bb.Nb()};
  11551. g.k.Rba=function(){this.wl&&(this.sH||(this.sH=new d0a(this.J,this.wl.element),g.N(this,this.sH),g.UT(this.J,this.sH.element,4)),this.sH.show(),this.Bb.Nb(),this.J.logClick(this.wl.element))};
  11552. g.k.onVideoDataChange=function(a,b){this.QG(b)};
  11553. g.k.QG=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.qa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.La&&(b.partnerid=a.La),b=g.lo("//support.google.com/googleplay/",b));g.hF(this.Cn,d&&a.allowEmbed);g.hF(this.getVideoUrl,d);g.hF(this.In,d&&
  11554. !a.isLivePlayback);this.wG.Md(b,"href");var e;null==(e=this.Zk)||g.hF(e,!a.isLivePlayback&&!c);var f;null==(f=this.wl)||g.hF(f,!c)};
  11555. g.k.Lc=function(a){g.GU.prototype.Lc.call(this,a);this.J.logVisibility(this.Cn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.In.element,a);this.Zk&&this.J.logVisibility(this.Zk.element,a);this.wl&&this.J.logVisibility(this.wl.element,a)};g.y(i0a,g.IU);g.k=i0a.prototype;g.k.M5=function(a){var b=QB(a);if(!(b&&(Uf(b,"a")||Uf(b,null,"ytp-no-contextmenu"))||this.Fb)){var c;this.Ca=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ie(a.clientX,a.clientY):new g.Ie(0,0);this.ra.start()}};
  11556. g.k.P_=function(){this.ra.stop()};
  11557. g.k.hca=function(){this.open(this.Ca)};
  11558. g.k.JX=function(){if(this.C&&g0a(this.C)){var a=g0a(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
  11559. g.k.show=function(){this.C||(this.C=new f0a(this.J,this,this.ke),g.N(this,this.C),g.JU(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.IU.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Lc(!0)};
  11560. g.k.hide=function(){h0a(this);g.IU.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Lc(!1)};
  11561. g.k.faa=function(a){var b=QB(a);this.Fb||b&&(Uf(b,"a")||Uf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ie(a.pageX,a.pageY)))};
  11562. g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ie(b.x,b.y))}g.IU.prototype.od.call(this,a)};
  11563. g.k.open=function(a){j0a(this);var b=this.J.getVideoData();g.Jv(this.element,"ytp-dni",b.Hf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.IU.prototype.od.call(this);var c=document.body;b=new As(0,Infinity,Infinity,0);var d=mf(c);for(var e=d.j.body,f=d.j.documentElement,h=Wba(d.j);c=eia(c);)if((!g.Qc||0!=c.clientHeight||c!=e)&&c!=e&&c!=f&&"visible"!=Ns(c,"overflow")){var l=g.Rs(c),m=new g.Ie(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
  11564. l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Vba(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<d.top||a.y>=d.bottom)&&(e&=
  11565. -5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.Fs(0,0,0,0);d.left=
  11566. a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ps(this.element,new g.Ie(d.left,d.top));g.UB(this.D);this.D.T(document,"contextmenu",this.qaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.L5)};
  11567. g.k.qaa=function(a){if(!a.defaultPrevented){var b=QB(a);g.Rf(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
  11568. g.k.onFullscreenToggled=function(){this.Nb();j0a(this)};
  11569. g.k.L5=function(){this.Nb()};g.y(gW,g.W);gW.prototype.onClick=function(){var a=this,b,c,d,e;return g.G(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,m0a(a,e),2);f.B&&l0a(a);a.api.logClick(a.element);g.Aa(f)})};
  11570. gW.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=k0a(this);g.Jv(this.element,"ytp-copylink-button-visible",this.visible);
  11571. g.hF(this,this.visible);this.tooltip.Rh();this.api.logVisibility(this.element,this.visible&&this.Z)};
  11572. gW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
  11573. gW.prototype.va=function(){g.W.prototype.va.call(this);g.Hv(this.element,"ytp-copylink-button-visible")};g.y(hW,g.W);hW.prototype.show=function(){g.W.prototype.show.call(this);g.yv(this.B)};
  11574. hW.prototype.hide=function(){this.D.stop();this.C=0;g.Hv(this.element,"ytp-chapter-seek");g.Hv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
  11575. hW.prototype.vG=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Av(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.ob().getPlayerSize().height;e=this.J.ob().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*
  11576. f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.ob().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");n0a(this,this.G?this.C:d)};g.y(p0a,DU);g.k=p0a.prototype;g.k.N5=function(a){this.Na||(this.Na=new LU(this.J),g.N(this,this.Na));var b,c;if(null==(b=this.zb)?0:null==(c=b.menu)?0:c.menuRenderer)this.Na.open(this.zb.menu.menuRenderer,a.target),a.preventDefault()};
  11577. g.k.Baa=function(){this.J.jb("innertubeCommand",this.Jd);this.J.logClick(this.infoButton.element)};
  11578. g.k.Vx=function(){return!!this.j};
  11579. g.k.OL=function(){return!!this.j};
  11580. g.k.EF=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Bc&&this.J.jb("innertubeCommand",this.Bc),EU(this,!1))};
  11581. g.k.yu=function(){EU(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.GB()};
  11582. g.k.qV=function(){this.GB();lW(this)};
  11583. g.k.Eda=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.GB();c=g.u(this.Ga);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element,
  11584. d.trackingParams));this.qa.show();CU(this);g.hF(this.Ea,!d.stayInApp);B0a(this);r0a(this);kW(this);this.Bc=g.V(d.onTapCommand,ME);if(e=g.V(d.menuOnTap,ME))this.zb=g.V(e,Emb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:u0a(this),priceDropReferencePrice:v0a(this),promotionText:t0a(this),priceA11yText:w0a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:x0a(this)});
  11585. l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.Kb=new g.xv(function(){A0a(b)},1E3),this.Ea.hide(),this.countdownTimer.show(),A0a(this));
  11586. this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&q0a(this)&&(this.Tb=new g.xv(function(){s0a(b)},1E3),s0a(this))}}}};
  11587. g.k.GB=function(){this.j&&(this.j=void 0,this.Bl())};
  11588. g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&lW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,Cmb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&&
  11589. a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)?
  11590. void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.lF(p));this.Jd=null==b?void 0:b.onClickCommand;this.Ga.length||(z0a(this,n),kW(this));var r;null==(r=this.Qc)||r.call(this);this.Qc=g.SS.subscribe(function(){z0a(c,n);kW(c)})}else{var t;
  11591. null==(t=this.Qc)||t.call(this);this.GB()}};
  11592. g.k.va=function(){lW(this);B0a(this);r0a(this);DU.prototype.va.call(this)};g.y(G0a,g.W);G0a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.y(H0a,g.ZT);g.k=H0a.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);I0a(this,!0)};
  11593. g.k.hide=function(){g.ZT.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);I0a(this,!1)};
  11594. g.k.getId=function(){return this.D};
  11595. g.k.Cp=function(){return this.itemData.length};
  11596. g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Fl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Fl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Fl)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Fl)?0:l.ctaButtons)for(b=g.u(b.Fl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value,
  11597. qlb))l=new G0a(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}};
  11598. g.k.va=function(){this.hide();g.ZT.prototype.va.call(this)};g.y(L0a,g.W);g.k=L0a.prototype;g.k.onVideoDataChange=function(a,b){K0a(this,b);this.Fe&&N0a(this,this.Fe)};
  11599. g.k.Q5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&K0a(this,b);N0a(this,a.state);this.Fe=a.state};
  11600. g.k.r_=function(a){(this.D=a)?this.hide():this.j&&this.show()};
  11601. g.k.P5=function(){this.B||this.od();this.showControls=!0};
  11602. g.k.O5=function(){this.B||this.Nb();this.showControls=!1};
  11603. g.k.od=function(){this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
  11604. g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
  11605. g.k.Ida=function(){this.B=!1;this.showControls||this.Nb()};var uob={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(uob).reduce(function(a,b){a[uob[b]]=b;return a},{});
  11606. var vob={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(vob).reduce(function(a,b){a[vob[b]]=b;return a},{});
  11607. var wob={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wob).reduce(function(a,b){a[wob[b]]=b;return a},{});var xob,yob;xob=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];yob=[{option:0,text:mW(0)},{option:.25,text:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}];
  11608. g.pW=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:xob},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:mW(.5)},{option:-1,text:mW(.75)},{option:0,text:mW(1)},{option:1,text:mW(1.5)},{option:2,
  11609. text:mW(2)},{option:3,text:mW(3)},{option:4,text:mW(4)}]},{option:"background",text:"Background color",options:xob},{option:"backgroundOpacity",text:"Background opacity",options:yob},{option:"windowColor",text:"Window color",options:xob},{option:"windowOpacity",text:"Window opacity",options:yob},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",
  11610. text:"Font opacity",options:[{option:.25,text:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}]}];var zob=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.y(T0a,g.cK);g.k=T0a.prototype;
  11611. g.k.uY=function(a){a.repeat||(this.C.PJ=!1);var b=!1,c=a.keyCode,d=QB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.GT(this.api.app)||zob.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.xf&&!g.GT(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b=
  11612. "slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);$V(this.ke,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
  11613. $V(this.ke,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&oW(this,!0);(b||h)&&this.Eg.Vu();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,
  11614. shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Ac("onKeyPress",a))};
  11615. g.k.vY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
  11616. g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.PJ)return b;(c=g.ST(this.api.yb()))&&(c=c.Qu)&&c.Fb&&(c.sY(a),b=!0);switch(a){case 9:oW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().xf){var l,m;a=null==(l=this.progressBar)?
  11617. void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Bs(a)}}return b};
  11618. g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.PJ=!1);var m=!1,n=this.api.U();if(n.xf&&!g.GT(this.api.app))return m;var p=g.ST(this.api.yb());if(p&&(p=p.Qu)&&p.Fb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.rY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&Oka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.GT(this.api.app)||
  11619. zob.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.zk:[];t=KY?d:c;switch(a){case 80:b&&!n.Sa&&(ZV(this.ke,Cxa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Sa&&(ZV(this.ke,wxa(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Wh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,-1,10):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",
  11620. X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
  11621. this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Wh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,1,10):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
  11622. this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Wh()&&(this.api.startSeekCsiAction(),t?(t=Q0a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(o0a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?iW(this.j,-1,5):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
  11623. this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Wh()&&(this.api.startSeekCsiAction(),t?(t=P0a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(o0a(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?iW(this.j,1,5):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
  11624. this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$V(this.ke,this.api.getVolume(),!1)):(this.api.mute(),$V(this.ke,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Sa:this.Bs(p);break;case 75:m=this.Bs(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),Q_a(this.ke,!1),m=!0):this.api.Wh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
  11625. (m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),Q_a(this.ke,!0),m=!0):this.api.Wh()&&(this.step(-1),m=!0);break;case 70:QXa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
  11626. break;case 27:p?(this.progressBar.lw(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.EV(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),R_a(this.ke,!n||n&&!n.displayName),m=!0);break;case 79:qW(this,"textOpacity");break;case 87:qW(this,"windowOpacity");break;case 187:case 61:qW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:qW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Wh()&&
  11627. (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Eg.Vu()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
  11628. g.k.step=function(a){this.api.Wh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0<a?77:78)}};
  11629. g.k.Bs=function(a){if(!this.api.U().Sa){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.V(d.miniplayer,Pmb))?void 0:e.playbackMode)}else b=!1;b&&this.api.jb("onExpandMiniplayer");a?this.progressBar.LO():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ke.UG(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
  11630. g.k.va=function(){g.Av(this.G);g.cK.prototype.va.call(this)};g.y(g.rW,g.W);g.rW.prototype.gs=da(12);g.rW.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.Zh.isEmpty();a=g.BR(a)&&g.RT(this.J)&&g.TF(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Lg()&&!a&&240<=c.width&&!g.vT(this.J.getVideoData())&&!b&&!this.j&&!this.J.Yc();g.Jv(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Rh();this.J.logVisibility(this.element,this.visible&&this.Z)};
  11631. g.rW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
  11632. g.rW.prototype.va=function(){g.W.prototype.va.call(this);g.Hv(this.element,"ytp-overflow-button-visible")};g.y(U0a,g.ZT);g.k=U0a.prototype;g.k.R5=function(a){a=QB(a);g.Rf(this.element,a)&&(g.Rf(this.j,a)||g.Rf(this.closeButton,a)||$T(this))};
  11633. g.k.Nb=function(){g.ZT.prototype.Nb.call(this);this.J.Yl(this.element)};
  11634. g.k.show=function(){this.Fb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.ZT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");W0a(this,!0)};
  11635. g.k.hide=function(){g.ZT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");W0a(this,!1)};
  11636. g.k.onFullscreenToggled=function(a){!a&&this.Zj()&&$T(this)};
  11637. g.k.isEmpty=function(){return 0===this.actionButtons.length};
  11638. g.k.focus=function(){for(var a=g.u(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Fb){b.focus();break}};g.y(X0a,g.W);X0a.prototype.onClick=function(a){g.lU(a,this.api)&&this.api.playVideoAt(this.index)};g.y(Y0a,g.ZT);g.k=Y0a.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.eN);this.C.T(this.api,"onPlaylistUpdate",this.eN);this.eN()};
  11639. g.k.hide=function(){g.ZT.prototype.hide.call(this);g.UB(this.C);this.updatePlaylist(null)};
  11640. g.k.eN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Fa("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Pc(this.D),this.D=null))};
  11641. g.k.BL=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.qJ(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
  11642. this.j=[];for(d=0;d<c;d++){var e=new X0a(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
  11643. g.k.gca=function(a){var b=this.api.getVideoUrl(!0);g.mU(b,this.api,a)};
  11644. g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.BL,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.BL,this),this.BL()):this.Fb&&this.hide()):this.playlist&&this.BL()};
  11645. g.k.focus=function(){this.selected.focus()};
  11646. g.k.va=function(){this.hide();g.ZT.prototype.va.call(this)};g.y(sW,g.W);sW.prototype.hide=function(){g.W.prototype.hide.call(this);this.Lc(!1);this.api.Rh()};
  11647. sW.prototype.Ta=function(){var a=g.BR(this.api.U());g.Jv(this.element,"ytp-playlist-menu-button-tiny",400>this.api.ob().getPlayerSize().width&&!a);this.api.Yc()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.qJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.qJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Fb||(this.show(),this.api.Rh()),this.visible=
  11648. !0,this.Lc(!0)):this.Fb&&this.hide()};
  11649. sW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
  11650. sW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ta,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ta,this);this.Ta()};g.y(Z0a,g.W);g.k=Z0a.prototype;g.k.T5=function(){this.C?c1a(this):b1a(this)};
  11651. g.k.S5=function(){this.C?(tW(this),this.G=!0):b1a(this)};
  11652. g.k.H$=function(){this.D=!0;this.LG(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);tW(this);this.j&&this.J.logClick(this.acceptButton)};
  11653. g.k.oaa=function(){this.D=!0;this.LG(2);tW(this);this.j&&this.J.logClick(this.dismissButton)};
  11654. g.k.U5=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.xf("ytp-ad-overlay-ad-info-dialog-container"),d=QB(a);if(this.B&&d&&g.Rf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
  11655. var e=d1a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Rf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.Rf(this.element,d))}this.targetElement&&this.Fb&&!c&&(!d||b&&g.dG(a))&&(this.D=!0,tW(this))}}};
  11656. g.k.LG=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.V(d,plb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.jm(),(null==a?0:Oya(d,a.EO))&&kH(a,d,e))}};
  11657. g.k.dc=function(){this.G||(this.targetElement||(this.targetElement=$0a(this)),c1a(this))};
  11658. var a1a={"ytp-settings-button":g.Exa()};g.y(uW,g.W);uW.prototype.onStateChange=function(a){this.Gc(a.state)};
  11659. uW.prototype.Gc=function(a){g.hF(this,g.TF(a,2))};
  11660. uW.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.y(vW,g.W);vW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.lo(this.api.U().Ga,{focusSearch:"true"}),c={};g.CT(this.api,"addEmbedsConversionTrackingParams",[c]);g.XO(c,"emb_search");b=g.lo(b,c);var d;(c=null==(d=this.api.getVideoData().q3)?void 0:d.params)&&(b=g.lo(b,{bp:c}));g.Qe(b);a.preventDefault()};
  11661. vW.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.ob().getPlayerSize().width;a=g.BR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.Yc()}else a=!1;this.visible=a;g.hF(this,this.visible);g.Jv(this.element,"ytp-search-button-visible",this.visible);g.Jv(this.element,"ytp-show-search-title",!this.api.Lg());this.api.logVisibility(this.element,this.visible&&this.Z)};
  11662. vW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(g.wW,g.W);g.k=g.wW.prototype;g.k.hs=da(9);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){f1a(a,f)})}catch(f){f instanceof Error&&f1a(this,f)}else this.Oe.Tq(),$T(this.B,this.element,!1);
  11663. this.api.logClick(this.element)};
  11664. g.k.Ta=function(){var a=this.api.U(),b=this.api.Yc();g.Jv(this.element,"ytp-show-share-title",g.BR(a)&&!b);this.Oe.Dh()&&b?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.element,"right",a+"px")):b&&g.Is(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
  11665. this.visible=e1a(this);g.Jv(this.element,"ytp-share-button-visible",this.visible);g.hF(this,this.visible);this.tooltip.Rh();this.api.logVisibility(this.element,e1a(this)&&this.Z)};
  11666. g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
  11667. g.k.va=function(){g.W.prototype.va.call(this);g.Hv(this.element,"ytp-share-button-visible")};g.y(h1a,g.ZT);g.k=h1a.prototype;g.k.V5=function(a){a=QB(a);g.Rf(this.G,a)||g.Rf(this.closeButton,a)||$T(this)};
  11668. g.k.Nb=function(){g.ZT.prototype.Nb.call(this);this.tooltip.Yl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)};
  11669. g.k.show=function(){var a=this.Fb;g.ZT.prototype.show.call(this);this.Ta();a||this.api.jb("onSharePanelOpened")};
  11670. g.k.h$=function(){this.Fb&&this.Ta()};
  11671. g.k.Ta=function(){var a=this;g.Fv(this.element,"ytp-share-panel-loading");g.Hv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&kH(this.api.jm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ma()||(g.Hv(a.element,"ytp-share-panel-loading"),j1a(a,d))});
  11672. b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.qJ("Share link $URL",{URL:b}));UXa(this.j);this.api.logVisibility(this.j,!0)};
  11673. g.k.onFullscreenToggled=function(a){!a&&this.Zj()&&$T(this)};
  11674. g.k.focus=function(){this.j.focus()};
  11675. g.k.va=function(){g.ZT.prototype.va.call(this);i1a(this)};g.y(m1a,DU);g.k=m1a.prototype;g.k.va=function(){r1a(this);DU.prototype.va.call(this)};
  11676. g.k.EF=function(a){a.target!==this.dismissButton.element&&(EU(this,!1),this.J.jb("innertubeCommand",this.onClickCommand))};
  11677. g.k.yu=function(){this.Wa=!0;EU(this,!0);this.Bl()};
  11678. g.k.dba=function(a){this.N=a;this.Bl()};
  11679. g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Ca=!0,this.Y=this.ra=!1,r1a(this),q1a(this,!1),this.C=this.j=!1,yW(this),n1a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Jf(!1);else{var e,f,h;b=g.V(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,
  11680. Cmb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.SS.getState().entities;var l;if(null==(l=qO(f,"featuredProductsEntity",e))?0:l.productsData){this.Jf(!1);return}}this.enabled=!0;if(!this.D){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;
  11681. this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,q1a(this,!0),n1a(this),m=p1a(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.W({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.N(this,p),n.push(p),n.push.apply(n,g.qa(m.slice(1)))),this.K=new g.W({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.N(this,this.K),this.La.element.append(this.K.element));this.text=g.lF(b.text);
  11682. var q;if(m=null==(q=b.dismissButton)?void 0:q.a11yLabel)this.Va=g.lF(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.gf()}IYa(this);CU(this);this.Bl()}};
  11683. g.k.Vx=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Lg()&&!this.Gb&&(this.Y||this.Ca)};
  11684. g.k.GK=function(a){DU.prototype.GK.call(this,a);if(this.j||this.C)this.timing&&xW(this.timing.preview)&&(this.j=!1,yW(this),this.C=!1,yW(this),this.J.mf("shopping_overlay_preview_collapsed"),this.J.mf("shopping_overlay_preview_expanded"),a=zW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),xW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.mf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.gf([a])),
  11685. this.ra=!0,CU(this);yW(this)};
  11686. g.k.Jf=function(a){(this.Y=a)?(BU(this),CU(this,!1)):(r1a(this),this.Sa.start());this.Bl()};
  11687. g.k.gf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;xW(d)&&(k1a(d,a),c.push(zW(d.startSec,d.endSec,"shopping_overlay_visible")));xW(e)&&(k1a(e,a),d=e.startSec+1,c.push(zW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(zW(d,e.endSec,"shopping_overlay_preview_expanded")));xW(b)&&(k1a(b,a),c.push(zW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.gf(c)};g.y(t1a,g.W);
  11688. t1a.prototype.Ta=function(){var a=this.api.U();g.hF(this,g.BR(a)&&this.api.Yc());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Fb);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Bc&&!!b.profilePicture:g.BR(a)&&(c=!!b.videoId&&!!b.Bc&&!!b.profilePicture&&!g.vT(b)&&!a.C&&!(a.Z&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
  11689. a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",AW(this)),this.updateValue("channelLogoLabel",g.qJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Fv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,
  11690. c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Cl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",AW(this))};g.y(BW,g.ZT);BW.prototype.show=function(){g.ZT.prototype.show.call(this);this.j.start()};
  11691. BW.prototype.hide=function(){g.ZT.prototype.hide.call(this);this.j.stop()};
  11692. BW.prototype.Kt=function(a,b){"dataloaded"===a&&((this.Mi=b.Mi,this.yf=b.yf,isNaN(this.Mi)||isNaN(this.yf))?this.C&&(this.J.mf("intro"),this.J.removeEventListener(g.kJ("intro"),this.K),this.J.removeEventListener(g.lJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.kJ("intro"),this.K),this.J.addEventListener(g.lJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.jJ(this.Mi,this.yf,{priority:9,namespace:"intro"}),
  11693. this.J.gf([a]),this.C=!0))};g.y(CW,g.W);CW.prototype.onClick=function(){this.J.Nu()};
  11694. CW.prototype.Ta=function(){var a=!0;g.BR(this.J.U())&&(a=a&&480<=this.J.ob().getPlayerSize().width);g.hF(this,a);this.updateValue("icon",this.J.Vh()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
  11695. {I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.y(v1a,g.W);v1a.prototype.va=function(){this.j=null;g.W.prototype.va.call(this)};g.y(DW,g.W);DW.prototype.onClick=function(){this.J.jb("innertubeCommand",this.B)};
  11696. DW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
  11697. DW.prototype.K=function(){this.j.disabled=null==this.B;g.Jv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Sc()};g.y(EW,DW);EW.prototype.onClickCommand=function(a){g.V(a,RS)&&this.Sc()};
  11698. EW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,$Ua);var f;this.B=null==(f=g.V(null==a?void 0:a.playerBarActionButton,g.qM))?void 0:f.command;DW.prototype.K.call(this)};
  11699. EW.prototype.Sc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=nW(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.jb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;DW.prototype.N.call(this,a)};g.y(FW,g.W);FW.prototype.G=function(a){g.TF(a.state,32)?y1a(this,this.api.Wj()):this.Fb&&(g.TF(a.state,16)||g.TF(a.state,1))||this.j.hide()};
  11700. FW.prototype.xg=function(){var a=this.api.getPlayerStateObject();(g.TF(a,32)||g.TF(a,16))&&z1a(this)};
  11701. FW.prototype.K=function(){this.C=NaN;z1a(this)};
  11702. FW.prototype.hide=function(){this.B&&y1a(this,null);g.W.prototype.hide.call(this)};g.y(A1a,g.W);g.k=A1a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Gb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.JE(b)})}catch(b){this.JE(b)}}else $T(this.message,this.element,!0)};
  11703. g.k.JE=function(a){String(a).includes("fullscreen error")?g.JE(a):g.IE(a);this.oR()};
  11704. g.k.oR=function(){this.disable();this.message.od(this.element,!0)};
  11705. g.k.xx=function(){KB()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
  11706. g.k.b7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.oR()}};
  11707. g.k.disable=function(){var a=this;if(!this.message){var b=(null!=IB(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.ZT(this.J,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924",
  11708. target:this.J.U().Y},xa:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.Oe.VD(a.message,c)});
  11709. g.UT(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
  11710. g.k.Ta=function(){var a=QXa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.hF(this,a&&!b);this.J.logVisibility(this.element,this.Fb)};
  11711. g.k.Km=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
  11712. S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.MT(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.JE(c)})}else b={I:"svg",
  11713. X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
  11714. V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.MT(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Oe.Te().Rh()};
  11715. g.k.va=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.va.call(this)};g.y(GW,g.W);GW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0<this.j?1:-1,b=Math.abs(this.j),c=this.J.zi().ew;c&&iW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],0>this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.qa(a)),g.yv(this.B))};g.y(HW,DW);HW.prototype.onClickCommand=function(a){g.V(a,Amb)&&this.Sc()};
  11716. HW.prototype.updateVideoData=function(){var a,b;this.B=null==(a=C1a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;DW.prototype.K.call(this)};
  11717. HW.prototype.Sc=function(){var a="",b=this.D.K,c,d=null==(c=C1a(this))?void 0:c.headerTitle;c=d?g.lF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=O0a(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.jb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));DW.prototype.N.call(this,a)};g.y(IW,g.W);IW.prototype.onClick=function(){this.J.jb("onCollapseMiniplayer");this.J.logClick(this.element)};
  11718. IW.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.hF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
  11719. IW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(D1a,g.W);g.k=D1a.prototype;g.k.jU=function(a){this.visible=300<=a.width||this.Ea;g.hF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
  11720. g.k.Paa=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():$T(this.message,this.element,!0);this.J.logClick(this.element)};
  11721. g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
  11722. g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?G1a(this,a):lZa(this.Ga,function(l){G1a(c,f+(c.G-f)*l)},250);
  11723. this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?H1a(this,d):lZa(this.qa,function(l){H1a(c,h+(c.D-h)*l)},250);
  11724. this.D=d}e.Va&&(e=g.MT(this.J,"Mute","m"),d=g.MT(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Rh())};
  11725. g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
  11726. var E1a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],F1a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
  11727. 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.y(g.JW,g.W);g.JW.prototype.onStateChange=function(a){this.Gc(a.state)};
  11728. g.JW.prototype.Gc=function(a){var b=g.fT(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.TF(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.MT(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.MT(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}3===
  11729. a?this.update({title:b,icon:I1a(a)}):(this.update({title:b}),(b=I1a(a))&&this.j&&3!==this.j?nZa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Rh();this.j=a}};
  11730. g.JW.prototype.onVideoDataChange=function(){g.Jv(this.element,"ytp-play-button-playlist",g.RT(this.J))};
  11731. g.JW.prototype.Bs=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};gH("direct_playback",b);this.J.Ai().timerName="direct_playback"}else 3===this.j&&oV(this.J.Ai());this.J.playVideo()}this.J.isMinimized()&&"click"===(null==a?void 0:
  11732. a.type)&&this.element.blur()};g.y(g.KW,g.W);g.k=g.KW.prototype;g.k.onVideoDataChange=function(){K1a(this);this.D&&(this.Pc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.S3);this.C=L1a(this);J1a(this);this.xM(this.J.ob().getPlayerSize())};
  11733. g.k.xM=function(a){a=void 0===a?this.J.ob().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.RT(this.J)||this.j&&g.VT(this.J)&&!this.J.L("web_hide_next_button")||M1a(this))&&!c&&(this.j||400<=a.width);g.hF(this,a);this.J.logVisibility(this.element,a)};
  11734. g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.lU(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.publish("ytoprerollinternstitialnext"):this.j?(oV(this.J.Ai()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(oV(this.J.Ai()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
  11735. g.k.S3=function(){var a=L1a(this);a!==this.C&&(this.C=a,J1a(this))};
  11736. g.k.va=function(){this.B&&(this.B(),this.B=null);K1a(this);g.W.prototype.va.call(this)};g.y(O1a,g.W);g.k=O1a.prototype;g.k.U3=function(a){this.zM(a.pageX);this.yM(a.pageX+a.deltaX);e2a(this)};
  11737. g.k.zM=function(a){this.qa=a-this.Na};
  11738. g.k.yM=function(a){a-=this.Na;!isNaN(this.qa)&&0<this.thumbnails.length&&(this.Y=a-this.qa,0<this.thumbnails.length&&0!==this.Y&&(this.C=this.N+this.Y,a=j2a(this,this.C),this.C<=this.j/2&&this.C>=i2a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Is(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),N1a(this,a)):this.C=this.N))};
  11739. g.k.T3=function(){this.ra&&(this.ra.kA=!0);var a=300>(0,g.EC)()-this.Va;if(5>Math.abs(this.Y)&&!a){this.Va=(0,g.EC)();a=this.qa+this.Y;var b=this.j/2-a;this.zM(a);this.yM(a+b);e2a(this);this.api.logClick(this.G)}e2a(this)};
  11740. g.k.iB=function(){LW(this,this.api.getCurrentTime())};
  11741. g.k.play=function(a){this.api.seekTo(j2a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)};
  11742. g.k.onExit=function(a){this.api.seekTo(this.Sa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
  11743. g.k.dc=function(a,b){this.Na=a;this.j=b;LW(this,this.api.getCurrentTime())};
  11744. g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Sa=this.api.getCurrentTime(),N1a(this,this.Sa),g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.La=this.T(this.element,"wheel",this.U3),this.logVisibility(this.isEnabled))};
  11745. g.k.disable=function(){this.isEnabled=!1;this.hide();g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.La&&this.Pc(this.La);this.logVisibility(this.isEnabled)};
  11746. g.k.reset=function(){this.disable();this.D=[];this.Ea=!1};
  11747. g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)};
  11748. g.k.va=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.W.prototype.va.call(this)};
  11749. g.y(f2a,g.W);g.y(g2a,g.W);g.y(k2a,g.W);g.y(MW,g.W);MW.prototype.Hb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};n2a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.Ce(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.y(o2a,g.W);g.y(g.PW,g.iF);g.k=g.PW.prototype;
  11750. g.k.D2=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.mf("timedMarkerCueRange");r2a(this);for(var c=g.u(b.Be),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new o2a;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
  11751. Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;x2a(this,f)}y2a(this,this.K);a=this.K;f=this.Sd;e=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=R0a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.gf(e);this.yf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&&
  11752. d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&q2a(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.ra.style.height=
  11753. e+"px");p=this.G[m];q=n;t=f;var w=e,A=0===m;A=void 0===A?!1:A;l2a(p,w);r=q;v=p.j;A=void 0===A?!1:A;var D=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H<r.length;H++){var L=(H+.5)*D,M=100-g.Ce(100*(r[H].intensityScoreNormalized||0),t/v*100,w/v*100);0!==H||A||F.push({x:0,y:M});F.push({x:L,y:M});H===r.length-1&&F.push({x:1E3,y:M})}F.push({x:1E3,y:100});r=F;q=0===q.length?"":gAa(r);p.C.setAttribute("d",q);p.ue=""!==q;g.Jv(p.api.getRootNode(),"ytp-heat-map",p.ue);0<n.length&&(l=n[n.length-1])}g.QW(this)}e=
  11754. void 0;f=[];if(d=null==(e=d.markersDecoration)?void 0:e.timedMarkerDecorations)for(d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:null!=(h=e.visibleTimeRangeStartMillis)?h:-1,visibleTimeRangeEndMillis:null!=(l=e.visibleTimeRangeEndMillis)?l:-1,decorationTimeMillis:null!=(m=e.decorationTimeMillis)?m:NaN,label:e.label?g.lF(e.label):""});d=f;this.heatMarkersDecorations=d}}b.UV=this.K;g.Jv(this.element,"ytp-timed-markers-enabled",a);return a};
  11755. g.k.dc=function(){g.QW(this);TW(this);y2a(this,this.K);if(this.B){var a=g.Rs(this.element).x||0;this.B.dc(a,this.N)}};
  11756. g.k.onClickCommand=function(a){if(a=g.V(a,RS)){var b=a.key;a.isVisible&&b&&C2a(this,b)}};
  11757. g.k.fca=function(a){this.api.jb("innertubeCommand",this.Sd[a.id])};
  11758. g.k.Sc=function(){TW(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.vL()};
  11759. g.k.V3=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}};
  11760. g.k.Kt=function(a,b){this.updateVideoData(b,"newdata"===a)};
  11761. g.k.c9=function(){this.Kt("newdata",this.api.getVideoData())};
  11762. g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.ue();c&&(uT(a)||I2a(this)?this.Be=!1:this.Be=a.allowLiveDvr,g.Jv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!uT(a))));T2a(this,this.api.Wh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;XW(this);for(UW(this,this.qa,this.gb);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.zb={};var d;null==(d=this.B)||d.reset();bX(this);g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
  11763. OW(this))}else this.vL();this.Uh()}if(a){var e;d="clips"===(null==(e=this.Ab)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.bVa(e);c=t2a(e);var f;e=null!=b||null!=c&&0<c.length||0<(null==(f=e.Qy)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.bVa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Fv=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Fv;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.zb[d.key]=d.value,
  11764. d.value.onChapterRepeat&&(e.Xea=d.value.onChapterRepeat));null!=e.Fv&&C2a(this,e.Fv);e=!0}var l;if(0<(null==(l=f.Qy)?void 0:l.length)){l=g.SS.getState().entities;h=g.u(f.Qy);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=null==(c=qO(l,"macroMarkersListEntity",d))?void 0:c.markersList;var m=c=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(c=b)?void 0:c.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=b)?void 0:m.markerType))this.Na[d]=b}e=this.D2()||e}!e&&(l=t2a(f))&&(v2a(this,l),f.zk=this.j,
  11765. u2a(this));J2a(this,null);a.ZT&&0===this.G.length&&(a=a.ZT,l=a.key,a.isVisible&&l&&C2a(this,l))}else p2a(this),r2a(this)}TW(this)};
  11766. g.k.d9=function(a){this.Y&&!g.TF(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Y.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.TF(a.state,8)&&this.api.pauseVideo()};
  11767. g.k.kU=function(a){var b=!!this.Ab!==!!a,c=this.Ab;this.Ab=a;J2a(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",vxa()),this.updateValue("clipendicon",vxa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",nxa()),this.updateValue("clipendicon",mxa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
  11768. !0),g.QW(this)),XW(this));UW(this,this.qa,this.gb)};
  11769. g.k.hba=function(a,b,c){var d=g.Rs(this.element),e=SW(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=gG(this.C,Number(c.getAttribute("data-position")),0)*e+g.Rs(this.progressBar).x);this.Za.x=a-d.x;this.Za.y=b-d.y;a=SW(this);c=WW(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:uT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=gG(this.C,m)*SW(this).j),b=this.C.B;
  11770. I2a(this)&&(b=this.C.B);m=f||g.cG(this.Be?c-this.C.j:c-b);b=a.position+this.Qf;c-=this.api.Kc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.Wj()){if(1<this.j.length){n=VW(this,this.Za.x,!0);if(!this.Ab)for(d=0;d<this.j.length;)g.Jv(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.Jv(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.Za.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=RW(this,e.timeRangeStartMillis/
  11771. (1E3*this.C.j),SW(this)),g.Jv(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.yf?(n=O0a(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=nW(this.j,1E3*c),n=this.j[n].title):(n=nW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=nW(this.j,1E3*c);this.Wa=K2a(this,c,d)?d:K2a(this,c,d+1)?d+1:-1;g.Jv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.j.length);d=!1;
  11772. e=g.u(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.cG(h.decorationTimeMillis/1E3),d=!0)}this.pd!==d&&(this.pd=d,this.api.logVisibility(this.Jd,this.pd));g.Jv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&
  11773. (l-=10);this.G.length&&this.G[0].ue&&(l-=14*(this.D?2:1),this.Ea||(this.Ea=!0,this.api.logVisibility(this.ra,this.Ea)));var q;if(OW(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Va)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?ZW(this):this.Va}q=void 0;OW(this)&&(q="Pull up for precise seeking",this.Ga||(this.Ga=!0,this.api.logVisibility(this.Qc,this.Ga)));this.tooltip.SL(b,c,m,!!f,l,n,d,q)}else this.tooltip.SL(b,c,m,!!f,l);g.Fv(this.api.getRootNode(),"ytp-progress-bar-hover");H2a(this)};
  11774. g.k.fba=function(){this.Uh();g.Hv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ea&&(this.Ea=!1,this.api.logVisibility(this.ra,this.Ea));this.Ga&&(this.Ga=!1,this.api.logVisibility(this.Qc,this.Ga))};
  11775. g.k.eba=function(a,b){OW(this)&&this.B&&(this.B.Ea?LW(this.B,this.api.getCurrentTime()):h2a(this.B),this.B.show(),g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.yd&&(this.yd.dispose(),this.yd=null);this.Rf=b;1<this.j.length&&-1!==this.Wa?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(WW(this,SW(this)),!1,void 0,void 0,7);g.Fv(this.element,"ytp-drag");(this.nf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
  11776. g.k.jba=function(){if(OW(this)&&this.B){var a=ZW(this);this.Va>=.5*a?(this.B.enable(),LW(this.B,this.api.getCurrentTime()),S2a(this,a)):bX(this)}if(g.TF(this.api.getPlayerStateObject(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Wa)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=WW(this,SW(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.u(this.heatMarkersDecorations);
  11777. for(var c=b.next();!c.done;c=b.next())c=c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Jd)}g.Hv(this.element,"ytp-drag");this.nf&&!g.TF(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
  11778. g.k.kba=function(a,b){a=SW(this);a=WW(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;OW(this)&&(null==(c=this.B)?0:c.Ea)&&(LW(this.B,a),this.B.isEnabled||(this.Va=g.Ce(this.Rf-b-10,0,ZW(this)),S2a(this,this.Va)))};
  11779. g.k.Uh=function(){this.tooltip.RP()};
  11780. g.k.o_=function(){this.Ab||(this.updateValue("clipstarticon",lxa()),this.updateValue("clipendicon",lxa()),g.Fv(this.element,"ytp-clip-hover"))};
  11781. g.k.n_=function(){this.Ab||(this.updateValue("clipstarticon",nxa()),this.updateValue("clipendicon",mxa()),g.Hv(this.element,"ytp-clip-hover"))};
  11782. g.k.vL=function(){this.clipStart=0;this.clipEnd=Infinity;XW(this);UW(this,this.qa,this.gb)};
  11783. g.k.Gea=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.Cf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Ob[c]=d;g.Dv(d,b.style);L2a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else R2a(this,b)};
  11784. g.k.bda=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())R2a(this,b.value)};
  11785. g.k.lw=function(a){this.B&&(this.B.onExit(null!=a),bX(this))};
  11786. g.k.LO=function(a){this.B&&(this.B.play(null!=a),bX(this))};
  11787. g.k.va=function(){T2a(this,!1);g.iF.prototype.va.call(this)};g.y(cX,g.W);cX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
  11788. cX.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.hF(this,a&&400<=this.J.ob().getPlayerSize().width);this.J.logVisibility(this.element,this.Fb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
  11789. fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.jxa())}g.Jv(this.element,"ytp-remote-button-active",this.isActive())}};
  11790. cX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Bb,b=this.element;if(a.Zj())a.Nb();else{a.initialize();a:{var c=g.u(a.Pe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.od(b));a.od(b)}}this.J.logClick(this.element)};g.y(dX,g.W);dX.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.hF(this,a);this.J.logVisibility(this.element,a)};
  11791. dX.prototype.C=function(){if(this.Bb.Fb)this.Bb.Nb();else{var a=g.EV(this.J.yb());a&&!a.loaded&&(a.Qh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Bb.od(this.element)}};
  11792. dX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.TT(this.J),e=c&&!!g.ST(this.J.yb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Jv(this.element,"ytp-hdr-quality-badge",a);g.Jv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Jv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Jv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Jv(this.element,"ytp-8k-quality-badge",
  11793. !a&&"highres"===c);g.Jv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Jv(this.element,"ytp-3d-badge",!a&&e&&d)};g.y(eX,jU);eX.prototype.isLoaded=function(){var a=g.KV(this.J.yb());return void 0!==a&&a.loaded};
  11794. eX.prototype.Ta=function(){void 0!==g.KV(this.J.yb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Bb.Rc(this),this.j=!0):this.j&&(this.Bb.oh(this),this.j=!1);kU(this,this.isLoaded())};
  11795. eX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
  11796. eX.prototype.va=function(){this.j&&this.Bb.oh(this);jU.prototype.va.call(this)};g.y(fX,g.OU);fX.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.PU(this,g.$r(a,this.j)),this.tracks=g.bc(a,this.j,this),this.countLabel.Md(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ji(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
  11797. fX.prototype.Dg=function(a){g.OU.prototype.Dg.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Bb.Wi()};
  11798. fX.prototype.j=function(a){return a.toString()};g.y(gX,jU);
  11799. gX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.VT(this.J))this.j||(this.Bb.Rc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Bb.oh(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=
  11800. a.next())this.Pc(b.value)}};
  11801. gX.prototype.D=function(a){kU(this,1!==a)};
  11802. gX.prototype.onSelect=function(a){this.J.zL(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
  11803. gX.prototype.va=function(){this.j&&this.Bb.oh(this);jU.prototype.va.call(this)};g.y(V2a,g.aU);V2a.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.IT(this.J))||null==(c=b.Fn())||c.Nb();var d,e;null==(d=g.IT(this.J))||null==(e=d.PX())||e.od(a.target)};g.y(W2a,g.OU);g.k=W2a.prototype;
  11804. g.k.JC=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ca=this.J.Ct();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.CT(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Ga=new Set(a)}else if(this.G){c=g.CT(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]=
  11805. d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.xXa(this.J)&&this.J.Dw()&&b.unshift("missing-qualities");yXa(this.J)&&b.unshift("inline-survey");g.PU(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Eh();c=!g.RR(this.J.U())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.DY&&(a=a.Fa("ytp-panel-footer"),g.Jv(a,"ytp-panel-hide-footer",c));if(b.length){this.lU();this.enable(!0);return}}this.enable(!1)};
  11806. g.k.lU=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ga.has(a)&&(this.K=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),"auto"===a?(this.Ji(a),this.Md(this.Lk(a))):this.Ji(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.K=this.J.getPlaybackQuality(),this.Ji(a),"auto"===a&&this.Md(this.Lk(a)))};
  11807. g.k.Dg=function(a){if("missing-qualities"!==a){g.OU.prototype.Dg.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if(null==(h=g.V(b,g.jlb))?0:null==(l=h.popup)?0:l.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
  11808. d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(null==(m=g.V(b,g.jlb))?0:null==(n=m.popup)?0:n.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Bb.Nb();this.JC()}};
  11809. g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.logVisibility(null==(c=b)?void 0:c.element,!0))}g.OU.prototype.open.call(this);this.J.logClick(this.element)};
  11810. g.k.ON=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.aU({I:"a",Ka:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Lk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.Y[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.OU.prototype.ON.call(this,a,b,c);f?(this.J.createServerVe(b.element,
  11811. this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",xa:"Looks good?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={TP:void 0},f=c.next())e.TP=f.value,f=new g.W({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.TP?uxa():pxa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.TP,m=g.HT(d.J.app);m&&(m.ma("iqsr",{tu:l}),m.getVideoData().U2=!0);d.Bb.Nb();d.JC()}}(e)),a.push(f);
  11812. return new g.aU({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-menuitem-label"],V:a}]},b)};
  11813. g.k.Lk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",xa:"Missing options?"};if("inline-survey"===a)return"";var c=this.G||this.j?[Z2a(this,a,b,!1)]:[Y2a(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(Z2a(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(Z2a(this,this.K,b,!0,["ytp-menu-label-secondary"])):c.push(Y2a(this,this.K,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.y(hX,g.W);g.k=hX.prototype;g.k.init=function(){this.Tx(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
  11814. g.k.Y3=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.Y;break;case 39:case 38:b=this.Y;break;default:return}this.Tx(this.j+b);a.preventDefault()}};
  11815. g.k.W3=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.N:this.N;this.Tx(b);a.preventDefault()};
  11816. g.k.X3=function(a){a=(a-g.Rs(this.C).x)/this.qa*this.range+this.B;this.Tx(a)};
  11817. g.k.Tx=function(a,b){b=void 0===b?"":b;a=g.Ce(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a};
  11818. g.k.focus=function(){this.Ea.focus()};g.y(iX,hX);iX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)};
  11819. iX.prototype.Tx=function(a){hX.prototype.Tx.call(this,a,a3a(this,a).toString());this.G&&($2a(this),this.La())};
  11820. iX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();a3a(this,this.j)!==a&&(this.Tx(a),$2a(this))};g.y(b3a,g.iF);b3a.prototype.focus=function(){this.j.focus()};g.y(c3a,FU);g.y(d3a,g.OU);g.k=d3a.prototype;g.k.Lk=function(a){return"1"===a?"Normal":a.toLocaleString()};
  11821. g.k.Ta=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);h3a(this)};
  11822. g.k.Jy=function(a){g.OU.prototype.Jy.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),h3a(this),f3a(this,this.J.getPlaybackRate())):(this.Pc(this.K),this.K=null)};
  11823. g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||g3a(this,b);f3a(this,a)};
  11824. g.k.Dg=function(a){g.OU.prototype.Dg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Bb.Wi()};
  11825. g.k.VH=function(a){jX(this.J)?a!==this.j?g.OU.prototype.VH.call(this,a):(a=new c3a(this.J),g.JU(this.Bb,a)):g.OU.prototype.VH.call(this,a)};g.y(j3a,g.OU);g.k=j3a.prototype;g.k.Ji=function(a){g.OU.prototype.Ji.call(this,a)};
  11826. g.k.mU=function(a){return a.option.toString()};
  11827. g.k.getOption=function(a){return this.settings[a]};
  11828. g.k.Lk=function(a){return this.getOption(a).text||""};
  11829. g.k.Dg=function(a){g.OU.prototype.Dg.call(this,a);this.publish("settingChange",this.K,this.settings[a].option)};g.y(kX,g.GU);kX.prototype.ph=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.uu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ji(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
  11830. kX.prototype.pk=function(a,b){this.publish("settingChange",a,b)};g.y(lX,g.OU);lX.prototype.j=function(a){return a.languageCode};
  11831. lX.prototype.Lk=function(a){return this.languages[a].languageName||""};
  11832. lX.prototype.Dg=function(a){this.publish("select",a);this.J.logClick(this.element);g.KU(this.Bb)};g.y(m3a,g.OU);g.k=m3a.prototype;g.k.KC=function(a){return g.jd(a)?"__off__":a.displayName};
  11833. g.k.Lk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName};
  11834. g.k.Dg=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.HOa(this.J.U(),this.J.getVideoData());g.nG(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=n3a(this);mX(this,c);g.OU.prototype.Dg.call(this,this.KC(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
  11835. void 0:e.openTranscriptCommand;this.J.jb("innertubeCommand",c);this.Bb.Wi();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=n3a(this);mX(this,b);g.OU.prototype.Dg.call(this,this.KC(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.jb("innertubeCommand",b)}else this.J.logClick(this.element),
  11836. mX(this,"__off__"===a?{}:this.tracks[a]),g.OU.prototype.Dg.call(this,a);this.Bb.Wi()}};
  11837. g.k.Ta=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.tv,d,e=!(null==(d=this.J.getVideoData())||!g.tT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.bc(d,this.KC,this);e=g.$r(d,this.KC);var m,n;n3a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)?
  11838. 0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.jd(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
  11839. Aaa(l,f)}k3a(this.j,l);e.push("__translate__")}f=this.KC(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.PU(this,e);this.Ji(f);h&&h.translationLanguage?this.j.Ji(this.j.j(h.translationLanguage)):UYa(this.j);a&&this.G.ph(this.J.getSubtitlesUserSettings());this.countLabel.Md(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
  11840. g.k.Z3=function(a){var b=this.J.getOption("captions","track");b=g.md(b);b.translationLanguage=this.j.languages[a];mX(this,b)};
  11841. g.k.pk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}l3a(this,!0);this.K.start();this.G.ph(this.J.getSubtitlesUserSettings())};
  11842. g.k.Qba=function(a){a||g.Av(this.K)};
  11843. g.k.va=function(){g.Av(this.K);g.OU.prototype.va.call(this)};
  11844. g.k.open=function(){g.OU.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.y(o3a,g.IU);g.k=o3a.prototype;
  11845. g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.hS=new W2a(this.J,this)}catch(c){g.JE(Error("QualityMenuItem creation failed"))}g.N(this,this.hS);var b=new m3a(this.J,this);g.N(this,b);a.C||(b=new eX(this.J,this),g.N(this,b));a.enableSpeedOptions&&(b=new d3a(this.J,this),g.N(this,b));(g.BR(a)||a.K)&&(a.B||a.Wa)&&(b=new V2a(this.J,this),g.N(this,b));a.Be&&!a.L("web_player_move_autonav_toggle")&&(a=new gX(this.J,this),g.N(this,a));a=new fX(this.J,this);
  11846. g.N(this,a);this.J.publish("settingsMenuInitialized");U2a(this.settingsButton,this.Pe.Cp())}};
  11847. g.k.Rc=function(a){this.initialize();this.Pe.Rc(a);U2a(this.settingsButton,this.Pe.Cp())};
  11848. g.k.oh=function(a){this.Fb&&1>=this.Pe.Cp()&&this.hide();this.Pe.oh(a);U2a(this.settingsButton,this.Pe.Cp())};
  11849. g.k.od=function(a){this.initialize();0<this.Pe.Cp()&&g.IU.prototype.od.call(this,a)};
  11850. g.k.Nb=function(){this.ZK?this.ZK=!1:g.IU.prototype.Nb.call(this)};
  11851. g.k.show=function(){g.IU.prototype.show.call(this);g.Fv(this.J.getRootNode(),"ytp-settings-shown")};
  11852. g.k.hide=function(){g.IU.prototype.hide.call(this);g.Hv(this.J.getRootNode(),"ytp-settings-shown")};
  11853. g.k.Jf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.y(nX,g.W);nX.prototype.onClick=function(){if(q3a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.cC(g.bC(),65);g.RR(this.J.U())&&null!=b&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
  11854. nX.prototype.j=function(a){var b,c;null==(b=g.IT(this.J))||null==(c=b.Fn())||c.od(a)};
  11855. nX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
  11856. nX.prototype.Ta=function(){var a=q3a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.MT(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Fa("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.MT(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=this.Fa("ytp-subtitles-button-icon"))||
  11857. d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Rh();c=c&&this.J.ob().getPlayerSize().width>=b;g.hF(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.y(g.pX,g.W);g.k=g.pX.prototype;
  11858. g.k.Sc=function(){var a=this.api.ob().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!rX(this)||!g.TF(this.api.getPlayerStateObject(),64));g.hF(this,b);g.Jv(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);qX(this)&&(c-=this.Ab.startTimeMs/1E3);c=g.cG(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=qX(this)?g.cG((this.Ab.endTimeMs-
  11859. this.Ab.startTimeMs)/1E3):g.cG(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!rX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Sc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Md(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.KT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Ab!==
  11860. a;this.Ab=a;b&&oX(this)};
  11861. g.k.onLoopRangeChange=function(a){var b=this.Ab!==a;this.Ab=a;b&&(this.Sc(),oX(this))};
  11862. g.k.oca=function(){this.api.setLoopRange(null)};
  11863. g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Sc();oX(this)};
  11864. g.k.updateVideoData=function(a){this.WE=a.isLivePlayback&&!a.zb;this.B=uT(a);this.isPremiere=a.isPremiere;g.Jv(this.element,"ytp-live",rX(this))};
  11865. g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
  11866. g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};g.y(s3a,g.W);g.k=s3a.prototype;g.k.xx=function(){var a=this.api.Dh();this.C!==a&&(this.C=a,r3a(this,this.api.getVolume(),this.api.isMuted()))};
  11867. g.k.nU=function(a){g.hF(this,350<=a.width)};
  11868. g.k.d4=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Ce(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
  11869. g.k.a4=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Ce(b/10,-10,10));a.preventDefault()};
  11870. g.k.Vba=function(){sX(this,this.j,!0,this.B,this.api.Am());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
  11871. g.k.b4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rs(this.N).x;this.api.setVolume(100*g.Ce((a-c/2)/(b-c),0,1))};
  11872. g.k.Uba=function(){sX(this,this.j,!1,this.B,this.api.Am());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
  11873. g.k.onVolumeChange=function(a){r3a(this,a.volume,a.muted)};
  11874. g.k.UW=function(){sX(this,this.j,this.isDragging,this.B,this.api.Am())};
  11875. g.k.va=function(){g.W.prototype.va.call(this);g.Hv(this.K,"ytp-volume-slider-active")};g.y(tX,g.W);
  11876. tX.prototype.onVideoDataChange=function(){var a=this.api.U();this.dc();this.visible=!!this.api.getVideoData().videoId&&!g.vT(this.api.getVideoData(1));g.hF(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Pc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Fv(this.element,"no-link"));
  11877. b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.NR(b),0===b.indexOf("www.")&&(b=b.substring(4)),c=g.wT(a)?"Watch on YouTube Music":"youtube.com"===b?"Watch on YouTube":g.qJ("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
  11878. tX.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dG(a),!1,!0,!0);if(g.BR(b)){var d={};g.BR(b)&&g.CT(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.lo(c,g.XO(d,"emb_logo"))}g.mU(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
  11879. tX.prototype.dc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
  11880. b=28666,c=this.api.getVideoData();this.api.Yc()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
  11881. fill:"#fff"}}]}:g.wT(c)&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 86 51",width:"100%"},V:[{I:"path",X:{d:"M1 41.39H5.42V27.23C5.42 23.03 5.32 18.69 5.06 13.59H5.56L6.32 16.89L11.3 41.39H15.8L20.7 16.89L21.52 13.59H22C21.78 18.45 21.66 22.89 21.66 27.23V41.39H26.08V8.79H18.58L16.04 20.81C14.98 25.85 14.14 32.01 13.64 35.19H13.36C12.96 31.95 12.12 25.81 11.04 20.85L8.44 8.79H1V41.39Z",fill:"white"}},{I:"path",X:{d:"M34.08 41.73C36.54 41.73 38.46 40.59 39.8 38.13H39.98L40.32 41.39H44.06V17.73H39.1V36.61C38.54 37.67 37.44 38.29 36.36 38.29C34.96 38.29 34.52 37.17 34.52 35.13V17.73H29.56V35.43C29.56 39.49 30.82 41.73 34.08 41.73Z",
  11882. fill:"white"}},{I:"path",X:{d:"M53.42 41.89C57.78 41.89 60.38 39.83 60.38 35.65C60.38 31.79 58.56 30.39 54.48 27.47C52.30 25.91 51.02 25.09 51.02 22.95C51.02 21.47 51.90 20.61 53.52 20.61C55.32 20.61 55.96 21.81 55.96 25.29L60.08 25.07C60.40 19.57 58.34 17.23 53.60 17.23C49.20 17.23 46.80 19.27 46.80 23.45C46.80 27.25 48.60 28.83 51.56 31.03C54.52 33.23 56.18 34.53 56.18 36.23C56.18 37.75 55.14 38.61 53.64 38.61C51.76 38.61 50.74 36.97 50.92 34.41L46.84 34.49C46.14 39.25 48.52 41.89 53.42 41.89Z",
  11883. fill:"white"}},{I:"path",X:{d:"M65.12 14.59C66.84 14.59 67.66 13.99 67.66 11.59C67.66 9.33 66.78 8.65 65.12 8.65C63.46 8.65 62.56 9.27 62.56 11.59C62.56 13.99 63.44 14.59 65.12 14.59ZM62.82 41.39H67.62V17.73H62.82V41.39Z",fill:"white"}},{I:"path",X:{d:"M77.58 41.79C79.94 41.79 81.26 41.49 82.34 40.47C83.94 39.01 84.60 36.63 84.48 33.11L80.04 32.87C80.04 36.87 79.44 38.45 77.66 38.45C75.76 38.45 75.40 36.45 75.40 31.97V27.21C75.40 22.41 75.86 20.51 77.70 20.51C79.30 20.51 79.92 22.01 79.92 26.47L84.28 26.15C84.60 22.93 84.22 20.29 82.72 18.83C81.64 17.77 80.00 17.29 77.78 17.29C72.28 17.29 70.38 20.73 70.38 28.03V31.17C70.38 38.47 71.86 41.79 77.58 41.79Z",
  11884. fill:"white"}}]},b=216163);g.wT(c)?g.Fv(this.element,"ytp-youtube-music-button"):g.Hv(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)};
  11885. tX.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(u3a,g.cK);g.k=u3a.prototype;g.k.xg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.TF(this.J.getPlayerStateObject(),2))this.progressBar.Sc(),this.Ca.Sc()};
  11886. g.k.cB=function(){this.KT();this.Eg.B?this.xg():this.progressBar.Uh()};
  11887. g.k.e4=function(){this.xg();this.Z.start()};
  11888. g.k.KT=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.QR(),c=a.C;a=300>1E3*(c.j-c.B)/a.api.getPlaybackRate()/b}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Eg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.xg)):this.ra&&(this.Pc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
  11889. g.k.dc=function(){var a=this.J.Dh(),b=this.J.ob().getPlayerSize(),c=w3a(this),d=Math.max(b.width-2*c,100);if(this.gb!==b.width||this.Za!==a){this.gb=b.width;this.Za=a;var e=x3a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.Q2a(this.progressBar,c,e,a);this.J.Te().oU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-y3a(this))));c.maxWidth=d;c.maxHeight=a;c.kC();this.KT();this.J.U().L("html5_player_dynamic_bottom_gradient")&&u1a(this.Wa,
  11890. b.height)};
  11891. g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Hf?a.zp:"";this.qa&&B1a(this.qa,a.showSeekingControls);this.Y&&B1a(this.Y,a.showSeekingControls)};
  11892. g.k.Hb=function(){return this.C.element};g.y(z3a,DU);g.k=z3a.prototype;g.k.EF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand),this.yu())};
  11893. g.k.yu=function(){this.enabled=!1;this.qa.hide()};
  11894. g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&A3a(this);a=[];var c,d,e,f;if(b=null==(f=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Ymb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,Zmb))&&g.V(d.trigger,Xmb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,Xmb))f=(f=d.title)?g.lF(f):"View Chapters",
  11895. b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.jJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.gf(c)}};
  11896. g.k.Vx=function(){return this.enabled};
  11897. g.k.Jf=function(){this.enabled?this.Sa.start():BU(this);this.Bl()};
  11898. g.k.va=function(){A3a(this);DU.prototype.va.call(this)};var m3={},uX=(m3.CHANNEL_NAME="ytp-title-channel-name",m3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",m3.LINK="ytp-title-link",m3.SESSIONLINK="yt-uix-sessionlink",m3.SUBTEXT="ytp-title-subtext",m3.TEXT="ytp-title-text",m3.TITLE="ytp-title",m3);g.y(vX,g.W);vX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dG(a),!1,!0);g.BR(b)&&(b={},g.CT(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.lo(c,g.XO(b,"emb_title")));g.mU(c,this.api,a)};
  11899. vX.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:uX.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:uX.CHANNEL_NAME,xa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);B3a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Bc&&c.profilePicture?(this.updateValue("channelLink",
  11900. c.Bc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):B3a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Ak;g.Jv(this.link,uX.FULLERSCREEN_LINK,c);b.qa||!a.videoId||c||g.vT(a)||b.C?this.j&&(this.updateValue("url",null),this.Pc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.BR(b)?a.expandedTitle:
  11901. a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.wX,g.W);g.k=g.wX.prototype;g.k.setEnabled=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:D3a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
  11902. g.k.SL=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Uh();1!==this.type&&(g.Dv(this.element,"ytp-tooltip ytp-bottom"),(x1a(this.api)||this.api.isInline())&&g.Fv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Wj())&&this.B.subscribe("l",this.v_,this));if(l){var m=g.Us(this.bg).height||this.Ca;this.Sa.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.Jv(this.text,"ytp-tooltip-text-no-title",
  11903. 1===this.type&&!f);this.api.isInline()&&g.Fv(this.text,"ytp-modern-tooltip-text");g.Jv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=xS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=uVa(this.B,c,b));F3a(this,c);if(h)switch(b=g.Us(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=
  11904. b/2+"px",this.title.style.textAlign="center"}E3a(this,!!d,a,e)}};
  11905. g.k.RP=function(){1===this.type&&this.Uh()};
  11906. g.k.VG=function(a,b){if(this.type)if(3===this.type)this.Uh();else return;C3a(this,a,3,b)};
  11907. g.k.Rh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&D3a(this))};
  11908. g.k.v_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,F3a(this,a))};
  11909. g.k.X9=function(){sVa(this.B,this.D,this.N*this.scale)};
  11910. g.k.Uh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);G3a(this);break;case 3:G3a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.v_,this),this.B=null),this.api.removeEventListener("videoready",this.Ga),this.Ea.stop()}this.type=null;this.Y&&this.K.hide()};
  11911. g.k.Yl=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Rf(arguments[a],this.j)&&this.Uh()};
  11912. g.k.va=function(){null!=this.type&&this.Uh();this.B&&this.B.dispose();g.W.prototype.va.call(this)};g.y(I3a,g.W);g.k=I3a.prototype;g.k.LC=function(){this.visible=J3a(this);g.hF(this,this.visible);this.icon&&L3a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
  11913. g.k.qe=function(){return this.J.getVideoData().videoId};
  11914. g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.qe();a.Ca?H3a(this):K3a(this,b)};
  11915. g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ta(2);this.LC()};
  11916. g.k.Ta=function(a,b){var c=this.J.U();L3a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.qJ("Added as $USER_NAME",a):g.qJ("Watch later as $USER_NAME",a),image:nUa(c)})):this.update({title:"Watch later",image:null});this.J.Rh()};
  11917. g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(g.xX,g.VV);g.k=g.xX.prototype;
  11918. g.k.init=function(){var a=this;this.ke=new g.YV(this.api);this.ew=new hW(this.api);this.gi=new g.W({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.wX(this.api,this);this.channelAvatar=new Z_a(this.api);this.title=new vX(this.api);this.Pg=new g.eF({I:"div",S:"ytp-chrome-top-buttons"});this.Ug=new S_a(this.api,this.gi.element);this.Ag="1"===this.api.U().controlsType?new u3a(this.api,this,this.Eg):null;this.contextMenu=new i0a(this.api,this.ke);this.eE=new g.W({I:"div",X:{tabindex:"0"}});this.dE=new g.W({I:"div",
  11919. X:{tabindex:"0"}});var b=this.api.ob(),c=this.api.U(),d=this.api.getVideoData();this.Er&&(g.Fv(this.api.getRootNode(),"ytp-embed"),g.Fv(this.api.getRootNode(),"ytp-embed-playlist"),this.TJ&&(g.Fv(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Fv(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.bO=60,this.cO=89);this.api.U().C&&g.Fv(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Fv(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Fv(this.api.getRootNode(),"ytp-embed-mobile"));
  11920. this.wi=d&&d.getEmbeddedPlayerResponse();g.N(this,this.ke);g.UT(this.api,this.ke.element,4);g.N(this,this.ew);g.UT(this.api,this.ew.element,4);d=new g.W({I:"div",S:"ytp-gradient-top"});g.N(this,d);g.UT(this.api,d.element,1);this.ZL=new g.MF(d,250,!0,100);g.N(this,this.ZL);g.N(this,this.gi);g.UT(this.api,this.gi.element,1);this.YL=new g.MF(this.gi,250,!0,100);g.N(this,this.YL);g.N(this,this.tooltip);g.UT(this.api,this.tooltip.element,4);var e=new Y0a(this.api);g.N(this,e);g.UT(this.api,e.element,5);
  11921. e.subscribe("show",function(m){a.Hz(e,m)});
  11922. this.kH.push(e);this.tB=new sW(this.api,e);g.N(this,this.tB);this.Er||this.tB.Ja(this.gi.element);g.N(this,this.channelAvatar);this.channelAvatar.Ja(this.gi.element);g.N(this,this.title);this.title.Ja(this.gi.element);this.Er&&(d=new t1a(this.api),g.N(this,d),d.Ja(this.gi.element));g.N(this,this.Pg);this.Pg.Ja(this.gi.element);var f=new h1a(this.api,this);g.N(this,f);g.UT(this.api,f.element,5);f.subscribe("show",function(m){a.Hz(f,m)});
  11923. this.kH.push(f);this.searchButton=new vW(this.api);g.N(this,this.searchButton);this.searchButton.Ja(this.Pg.element);this.Po=new I3a(this.api);g.N(this,this.Po);this.Po.Ja(this.Pg.element);this.shareButton=new g.wW(this.api,this,f);g.N(this,this.shareButton);this.shareButton.Ja(this.Pg.element);this.vn=new gW(this.api,this);g.N(this,this.vn);this.vn.Ja(this.Pg.element);this.Er&&this.tB.Ja(this.Pg.element);g.N(this,this.Ug);this.Ug.Ja(this.Pg.element);c.Xo&&(d=new BW(this.api),g.N(this,d),g.UT(this.api,
  11924. d.element,4));c.C||(d=new T_a(this.api,this.Ug),g.N(this,d),d.Ja(this.Pg.element));this.Zh=new U0a(this.api);g.N(this,this.Zh);g.UT(this.api,this.Zh.element,5);this.Zh.subscribe("show",function(){a.Hz(a.Zh,a.Zh.Zj())});
  11925. this.kH.push(this.Zh);this.overflowButton=new g.rW(this.api,this.Zh);g.N(this,this.overflowButton);this.overflowButton.Ja(this.Pg.element);this.Ag&&g.N(this,this.Ag);"3"===c.controlsType&&(d=new uW(this.api),g.N(this,d),g.UT(this.api,d.element,9));g.N(this,this.contextMenu);this.contextMenu.subscribe("show",this.J2,this);d=new hG(this.api,new XV(this.api));g.N(this,d);g.UT(this.api,d.element,4);this.eE.listen("focus",this.e8,this);g.N(this,this.eE);this.dE.listen("focus",this.f8,this);g.N(this,this.dE);
  11926. var h;(this.Vw=c.Gl?null:new T0a(this.api,b,this.contextMenu,this.Eg,this.ke,this.ew,function(){return a.Tq()},null==(h=this.Ag)?void 0:h.progressBar))&&g.N(this,this.Vw);
  11927. this.Er||(this.CX=new p0a(this.api),g.N(this,this.CX),g.UT(this.api,this.CX.element,4),this.t1=new m1a(this.api),g.N(this,this.t1),g.UT(this.api,this.t1.element,4));this.N1=new z3a(this.api);g.N(this,this.N1);g.UT(this.api,this.N1.element,4);if(this.Er){var l=new H0a(this.api,this.api.U().Wa);g.N(this,l);g.UT(this.api,l.element,5);l.subscribe("show",function(m){a.Hz(l,m)});
  11928. b=new L0a(this.api,l);g.N(this,b);g.UT(this.api,b.element,4)}this.zF.push(this.ke.element);this.T(this.api,"fullscreentoggled",this.xx);this.T(this.api,"offlineslatestatechange",function(){a.api.XE()&&LV(a.Eg,128,!1)});
  11929. this.T(this.api,"cardstatechange",function(){a.yq()});
  11930. this.T(this.api,"resize",this.haa);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.Jaa);g.VV.prototype.init.call(this)};
  11931. g.k.Te=function(){return this.tooltip};
  11932. g.k.uP=function(){return this.Ag};
  11933. g.k.Hz=function(a,b){b?this.JD=a:this.JD=null;this.yq()};
  11934. g.k.VD=function(a,b){if(b)this.wu.push(a);else for(b=this.wu.length;0<=b;b--)if(this.wu[b]===a){this.wu.splice(b,1);break}LV(this.Eg,64,0<this.wu.length)};
  11935. g.k.ZB=function(){this.api.Nk()&&this.api.kp();return!!this.JD||M3a(this)||g.VV.prototype.ZB.call(this)};
  11936. g.k.SB=da(4);g.k.hs=da(8);g.k.gs=da(11);
  11937. g.k.yq=function(){var a=!this.ZB(),b=a&&this.api.Nk()&&!g.TF(this.api.getPlayerStateObject(),2)&&!g.vT(this.api.getVideoData())&&!this.api.U().C&&!this.api.Yc(),c=this.Er&&g.RT(this.api)&&g.TF(this.api.getPlayerStateObject(),128);a||c?(this.YL.show(),this.ZL.show()):(this.YL.hide(),this.ZL.hide(),this.api.Yl(this.gi.element));b?this.Ug.od():this.Ug.Nb();this.Ag&&v3a(this.Ag,this.PR||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&N3a(this);g.VV.prototype.yq.call(this)};
  11938. g.k.Gx=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Us(a),h=d||this.Ag&&g.Rf(this.Ag.Hb(),b),l=d=null;null!=c&&h||(d=g.Us(b),l=g.Ss(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Ag,d=w3a(b),l=x3a(b),h=this.api.ob().getPlayerSize().height,c=g.Ce(c,d,d+l-f.width),f=h-y3a(b)-f.height):g.Rf(this.gi.element,b)?(b=this.api.ob().getPlayerSize().width,c=g.Ce(c,12,b-f.width-12),f=this.Dh()?this.cO:this.bO,"gvn"===this.api.U().playerStyle&&(f+=
  11939. 20),this.Er&&(f-=this.Dh()?26:18)):(b=this.api.ob().getPlayerSize(),c=g.Ce(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
  11940. g.k.cB=function(a){a&&(this.api.Yl(this.gi.element),this.Ag&&this.api.Yl(this.Ag.Hb()));this.TJ&&(g.Jv(this.contextMenu.element,"ytp-autohide",a),g.Jv(this.contextMenu.element,"ytp-autohide-active",!0));g.VV.prototype.cB.call(this,a)};
  11941. g.k.bR=function(){g.VV.prototype.bR.call(this);this.TJ&&(g.Jv(this.contextMenu.element,"ytp-autohide-active",!1),this.TJ&&(this.contextMenu.hide(),this.Zh&&this.Zh.hide()))};
  11942. g.k.Hn=function(a,b){var c=this.api.ob().getPlayerSize();c=new g.Fs(0,0,c.width,c.height);if(a||this.Eg.B&&!this.ZB()){if(this.api.U().Um||b)a=this.Dh()?this.cO:this.bO,c.top+=a,c.height-=a;this.Ag&&(c.height-=y3a(this.Ag))}return c};
  11943. g.k.xx=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.eE.element,b),b.parentElement.insertBefore(this.dE.element,b.nextSibling))):g.IE(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.eE.detach(),this.dE.detach());this.dc();this.zq()};
  11944. g.k.Dh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
  11945. g.k.showControls=function(a){this.oO=!a;this.yq()};
  11946. g.k.dc=function(){var a=this.Dh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Jv(this.contextMenu.element,"ytp-big-mode",a);this.yq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||N3a(this);this.zq();var b=this.api.Yc();b&&a?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.gi.element,"padding-left",a+"px"),g.Is(this.gi.element,"padding-right",a+"px")):b&&(g.Is(this.gi.element,"padding-left",""),g.Is(this.gi.element,"padding-right",""));g.VV.prototype.dc.call(this)};
  11947. g.k.fP=function(){if(M3a(this)&&!g.RT(this.api))return!1;var a=this.api.getVideoData();return!g.BR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.wi||((a=this.wi||a.wi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,wWa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.VV.prototype.fP.call(this):!1};
  11948. g.k.zq=function(){g.VV.prototype.zq.call(this);this.api.logVisibility(this.title.element,!!this.Pn);this.tB&&this.tB.Lc(!!this.Pn);this.channelAvatar.Lc(!!this.Pn);this.overflowButton&&this.overflowButton.Lc(this.Lg()&&!!this.Pn);this.shareButton&&this.shareButton.Lc(!this.Lg()&&!!this.Pn);this.Po&&this.Po.Lc(!this.Lg()&&!!this.Pn);this.searchButton&&this.searchButton.Lc(!this.Lg()&&!!this.Pn);this.vn&&this.vn.Lc(!this.Lg()&&!!this.Pn);if(!this.Pn){this.api.Yl(this.gi.element);for(var a=0;a<this.kH.length;a++){var b=
  11949. this.kH[a];b.Zj()&&b.Nb()}}};
  11950. g.k.Fc=function(a){this.Ag&&v3a(this.Ag,this.ZB());this.yq();g.VV.prototype.Fc.call(this,a)};
  11951. g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.Vw?this.Vw.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
  11952. g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Vw?this.Vw.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
  11953. g.k.Tq=function(){if(this.contextMenu.Fb)return this.contextMenu.Nb(),!0;if(this.wu.length)return this.wu[this.wu.length-1].Nb(),!0;if(this.JD)return this.JD.Nb(),!0;this.Ag&&this.api.Yl(this.Ag.Hb());this.Pg&&this.api.Yl(this.Pg.element);return g.VV.prototype.Tq.call(this)};
  11954. g.k.OS=function(a,b){this.IQ=b;this.VD(a,b);this.J2()};
  11955. g.k.J2=function(){var a=this.IQ||this.contextMenu.Zj();this.JN!==a&&(this.JN=a,this.api.jb("onAutonavPauseRequest",this.JN))};
  11956. g.k.e8=function(){O3a(this,this.api.getRootNode(),!0).focus()};
  11957. g.k.f8=function(){O3a(this,this.api.getRootNode(),!1).focus()};
  11958. g.k.Fn=function(){return this.Ag&&this.Ag.B};
  11959. g.k.Vu=function(){this.Eg.Vu()};
  11960. g.k.QP=function(){this.ke.hide()};
  11961. g.k.UG=function(a){this.ke.UG(!a.isOrWillBePlaying())};
  11962. g.k.vG=function(a,b,c,d){this.ew.vG(a,b,c,d)};
  11963. g.k.uG=function(a,b){o0a(this.ew,a,b)};
  11964. g.k.haa=function(){P3a(this,!0)};
  11965. g.k.onReset=function(){N3a(this)};
  11966. g.k.Jaa=function(a){P3a(this,!1,a)};
  11967. g.k.PX=function(){return this.contextMenu};
  11968. g.k.cz=function(a){var b;if(null!=(b=this.Ag)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.u(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ja(b.j.element,d)}};
  11969. g.k.lw=function(){var a,b=null==(a=this.Ag)?void 0:a.progressBar;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.lw()}};g.y(g.yX,g.sV);g.yX.prototype.Lm=function(){return!1};
  11970. g.yX.prototype.create=function(){var a=this.player.U();g.jG(a)&&a.B?this.chrome=new g.VV(this.player):this.chrome=new g.xX(this.player);g.N(this,this.chrome);this.chrome.init();this.player.zg("ux")};
  11971. g.yX.prototype.zi=function(){return this.chrome};var R3a=!1;g.y(AX,g.I);AX.prototype.C=function(a,b){if(b){b=b instanceof g.sP?b:BX(this,b);var c;(null==(c=this.j.get(a))?void 0:uP(c.location))!==uP(b)&&this.j.set(a,new Z3a(b,a))}else this.j.delete(a)};
  11972. AX.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.G(function(q){switch(q.j){case 1:b=a.j.get(0);g.Ba(q,2);var r;if(r=b&&!a.B)r=uP(b.location),r=a.B===DX(r);if(r){q.Ia(4);break}return g.z(q,X3a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),yQa(c)&&a.C(1,wP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.JE(d);if(!a.B){q.Ia(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.W.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ia(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
  11973. X3a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,X3a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.JE(p),g.Aa(q)}})};
  11974. AX.prototype.N=function(){var a=this,b,c;return g.G(function(d){g.yv(a.Z);b=g.EI(a.W.experiments,"html5_onesie_prewarm_max_lact_ms");if(YD()>=b)return d.return();(c=a.j.get(0))&&V3a(a,c);g.Aa(d)})};
  11975. var S3a={l3a:0,y6a:1,B4a:2,A6a:3,gwa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var n3={},t7a=(n3["1h"]=8,n3["9h"]=4,n3["1"]=8,n3["9"]=4,n3["("]=4,n3.h=2,n3.H=2,n3),o3={},u7a=(o3.o=3,o3.O=3,o3.so=3,o3.a=1,o3.ah=1,o3.A=1,o3.m=1,o3.M=1,o3.sa=1,o3.mac3=7,o3.MAC3=7,o3.meac3=5,o3.MEAC3=5,o3),p3={},v7a=(p3.o=0,p3.O=0,p3.a=0,p3.ah=0,p3.A=0,p3.m=1,p3.M=1,p3.mac3=1,p3.MAC3=1,p3.meac3=1,p3.MEAC3=1,p3.so=4,p3.sa=4,p3);var q3={},c4a=(q3["140"]={numChannels:2},q3["141"]={numChannels:2},q3["251"]={audioSampleRate:48E3,numChannels:2},q3["380"]={numChannels:6},q3["328"]={numChannels:6},q3),r3={},$3a=(r3["1"]='video/mp4; codecs="av01.0.08M.08"',r3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',r3["9"]='video/webm; codecs="vp9"',r3["("]='video/webm; codecs="vp9"',r3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',r3.h='video/mp4; codecs="avc1.64001e"',r3.H='video/mp4; codecs="avc1.64001e"',r3.o=
  11976. 'audio/webm; codecs="opus"',r3.a='audio/mp4; codecs="mp4a.40.2"',r3.ah='audio/mp4; codecs="mp4a.40.2"',r3.mac3='audio/mp4; codecs="ac-3"; channels=6',r3.meac3='audio/mp4; codecs="ec-3"; channels=6',r3),s3={},a4a=(s3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},s3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},s3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},s3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},s3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},s3["700"]={width:2560,
  11977. height:1440,bitrate:1E7,fps:60},s3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},s3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},s3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},s3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},s3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},s3["360"]={width:1920,height:1080,bitrate:5331E3,
  11978. fps:30,cryptoblockformat:"subsample"},s3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},s3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},s3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},s3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},s3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},s3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},s3["302"]={width:1280,height:720,bitrate:25E5,
  11979. fps:60},s3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},s3["298"]={width:1280,height:720,bitrate:35E5,fps:60},s3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},s3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},s3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},s3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},s3["398"]={width:1280,height:720,bitrate:1E6,fps:60},s3["397"]={width:854,height:480,bitrate:4E5,fps:30},s3["396"]={width:640,height:360,bitrate:25E4,fps:30},s3["313"]=
  11980. {width:3840,height:2160,bitrate:8E6,fps:30},s3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},s3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},s3["247"]={width:1280,height:720,bitrate:15E5,fps:30},s3["244"]={width:854,height:480,bitrate:52E4,fps:30},s3["243"]={width:640,height:360,bitrate:28E4,fps:30},s3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},s3["136"]={width:1280,height:720,bitrate:3E6,fps:30},s3["135"]={width:854,height:480,bitrate:1E6,fps:30},s3["385"]={width:1920,height:1080,
  11981. bitrate:6503313,fps:60},s3["376"]={width:1280,height:720,bitrate:5706960,fps:60},s3["384"]={width:1280,height:720,bitrate:3660979,fps:60},s3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},s3["224"]={width:1280,height:720,bitrate:453E4,fps:30},s3["145"]={width:1280,height:720,bitrate:2682052,fps:30},s3);var FX,EX,GX=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],k4a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],l4a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],m4a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],n4a=["412","359"],o4a=[["140"],["251"],["380"],["328"]],Hfb="781 780 779 777 776 775 244 243 242".split(" "),t3={},g4a=(t3["398"]=
  11982. ["397","396","395","394"],t3["247"]=["244","243","242"],t3["136"]=["135","134","133","160"],t3["141"]=["140"],t3["251"]=["250"],t3),u3={},h4a=(u3["135"]=["134","133","160"],u3["243"]=["242"],u3["781"]=["780","779"],u3["777"]=["776","775"],u3["396"]=["395","394"],u3["141"]=["140"],u3["251"]=["250"],u3),v3={},i4a=(v3["274"]=["317","273","318","280","279"],v3["145"]=["144","222","223","143","142"],v3["141"]=["149"],v3["140"]=["149"],v3["380"]=["381"],v3["328"]=["329"],v3),w3={},e4a=(w3["133"]=240,w3["134"]=
  11983. 360,w3["135"]=480,w3["136"]=720,w3["137"]=1080,w3["242"]=240,w3["243"]=360,w3["244"]=480,w3["247"]=720,w3["248"]=1080,w3["298"]=720,w3["299"]=1080,w3["302"]=720,w3["303"]=1080,w3["395"]=240,w3["396"]=360,w3["397"]=480,w3["398"]=720,w3["399"]=1080,w3);var HX=[],xfb=!1;g.S_=Id(function(){var a="";try{var b=g.Cf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.y(IX,g.I);IX.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&FS(this.j)&&ggb(this.app,this.j,void 0,void 0,this.B)};
  11984. IX.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.tb&&null!=this.C&&null!=this.D&&FS(this.j)){var a=s4a(this.tb,this.C,this.D);null==a?ggb(this.app,this.j,void 0,void 0,this.B):(this.tb.ma("sgap",a),this.tb.getVideoData().Y&&F0(this.tb,!1))}};
  11985. IX.prototype.N=function(a){var b=this.app.Wc();if(b){var c=this.app.getCurrentTime();5<Math.abs(c-a.end/1E3)&&b.ma("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.ma("glrre",{cmt:c})}};
  11986. IX.prototype.va=function(){this.j=null;g.I.prototype.va.call(this)};g.y(g.JX,OK);g.k=g.JX.prototype;g.k.isView=function(){return!0};
  11987. g.k.uS=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Sh(),c=yK(b,a);return!(this.start<c)}catch(d){}return!1};
  11988. g.k.yw=function(){return BK(this.mediaElement.yw(),this.start,this.end)};
  11989. g.k.Sh=function(){return BK(this.mediaElement.Sh(),this.start,this.end)};
  11990. g.k.CE=function(){return BK(this.mediaElement.CE(),this.start,this.end)};
  11991. g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
  11992. g.k.setCurrentTime=function(a){this.mediaElement.setCurrentTime(a+this.start)};
  11993. g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
  11994. g.k.play=function(){if(this.uS()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
  11995. g.k.kc=function(){var a=OK.prototype.kc.call(this);a.view=this.start+"-"+this.end;return a};
  11996. g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
  11997. g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
  11998. g.k.QH=function(){return this.mediaElement.QH()};
  11999. g.k.activate=function(a){this.mediaElement.activate(a)};
  12000. g.k.lr=function(){return this.mediaElement.lr()};
  12001. g.k.playVideo=function(){return this.mediaElement.playVideo()};
  12002. g.k.CO=function(){this.mediaElement.CO()};
  12003. g.k.zO=function(){this.mediaElement.zO()};
  12004. g.k.Ev=function(){return this.mediaElement.Ev()};
  12005. g.k.Hb=function(){return this.mediaElement.Hb()};
  12006. g.k.Df=function(){return this.mediaElement.Df()};
  12007. g.k.SH=function(a){this.mediaElement.SH(a)};
  12008. g.k.wL=function(){this.mediaElement.wL()};
  12009. g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
  12010. g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
  12011. g.k.Et=function(){return this.mediaElement.Et()};
  12012. g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
  12013. g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
  12014. g.k.isPaused=function(){return this.mediaElement.isPaused()};
  12015. g.k.isSeeking=function(){return this.mediaElement.isSeeking()};
  12016. g.k.isEnded=function(){return this.mediaElement.isEnded()};
  12017. g.k.oJ=function(){return this.mediaElement.oJ()};
  12018. g.k.RB=function(a){this.mediaElement.RB(a)};
  12019. g.k.RH=function(){return this.mediaElement.RH()};
  12020. g.k.load=function(){this.mediaElement.load()};
  12021. g.k.pause=function(){this.mediaElement.pause()};
  12022. g.k.Kk=function(){return this.mediaElement.Kk()};
  12023. g.k.pJ=function(){return this.mediaElement.pJ()};
  12024. g.k.Yg=function(){return this.mediaElement.Yg()};
  12025. g.k.qf=function(){return this.mediaElement.qf()};
  12026. g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
  12027. g.k.Vh=function(){return this.mediaElement.Vh()};
  12028. g.k.Nu=function(){return this.mediaElement.Nu()};
  12029. g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
  12030. g.k.Gt=function(){return this.mediaElement.Gt()};
  12031. g.k.getSize=function(){return this.mediaElement.getSize()};
  12032. g.k.setSize=function(a){this.mediaElement.setSize(a)};
  12033. g.k.getVolume=function(){return this.mediaElement.getVolume()};
  12034. g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
  12035. g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
  12036. g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
  12037. g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
  12038. g.k.xD=da(31);g.k.eH=da(33);g.k.fH=da(35);g.k.oz=da(37);g.k.YD=function(){return this.mediaElement.YD()};
  12039. g.k.Ns=function(a){this.mediaElement.Ns(a)};
  12040. g.k.EE=function(a){return this.mediaElement.EE(a)};
  12041. g.k.gQ=function(){return this.mediaElement.gQ()};
  12042. g.k.stopVideo=function(){this.mediaElement.stopVideo()};
  12043. g.k.FO=function(a){this.mediaElement.FO(a)};
  12044. g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
  12045. g.k.MS=function(a){this.mediaElement.MS(a)};g.y(v4a,g.I);g.k=v4a.prototype;g.k.getStatus=function(){return this.status};
  12046. g.k.pn=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Se()){f=r4a(this.policy,this.j,this.B,this.Pm);h=w4a(this);c=h.y7;e=h.e_;d=h.iX;h=h.c_;if(!this.N){var l=1E3*this.B.Xg(),m=this.j.Xg();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.pG(l,
  12047. m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.yg(b,f)):2===this.status.status?F4a(this):(a=this.j.lr())&&LK(a)&&(!HK(a)&&g.pB()?this.yg("mse_closed"):b.j&&mP(b.j)&&a.B&&!a.B.kJ()?this.yg("encr_upgrade"):(b=this.j.Se(),b.isEnded()?this.yg("elem_ended"):0>e?this.yg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=$Da(a,c,d,!0),this.D=$Da(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),B4a(this.j,this.C,!1,C4a(this)),this.j.setMediaElement(x4a(b,
  12048. c,d,!this.j.getVideoData().isAd())),LX(this,2),F4a(this))))}else this.yg("no-elem")};
  12049. g.k.zy=function(a){var b=a===E4a(this).XS,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;xK(a.Je(),d-.01)&&(LX(this,4),c.l1(!1),(1===this.G?this.j:this.B).ma("sbh",{}),b.l1(!0),0!==this.G&&(this.j.getVideoData().cW=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(LX(this,5),0!==this.G)){this.j.ma("sbs",{});var e;if(null!=(e=this.B)&&TS(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!=(f=e.ya)&&f.lf()}}}};
  12050. g.k.x_=function(){this.St()&&this.yg("player-reload-after-handoff")};
  12051. g.k.yg=function(a,b){b=void 0===b?{}:b;if(!this.Ma()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Wd(new WJ("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Pm,msg:a})));F0(this.j,c)}this.wq.reject(a);this.dispose()}};
  12052. g.k.St=function(){return 4<=this.status.status&&6>this.status.status};
  12053. g.k.va=function(){D4a(this);this.j.unsubscribe("newelementrequired",this.x_,this);if(this.C){var a=this.C.B;this.C.j.Qd.unsubscribe("updateend",this.zy,this);a.Qd.unsubscribe("updateend",this.zy,this)}g.I.prototype.va.call(this)};
  12054. g.k.pU=function(a){g.VF(a,128)&&this.yg("player-error-event")};g.y(H4a,g.I);g.k=H4a.prototype;g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&F0(this.B,!1);NX(this,a)};
  12055. g.k.Tn=function(){return!this.j};
  12056. g.k.aF=function(a){return this.j===a};
  12057. g.k.St=function(){var a;return(null==(a=this.C)?void 0:a.St())||!1};
  12058. g.k.va=function(){NX(this);g.I.prototype.va.call(this)};g.y(Q4a,g.aF);g.k=Q4a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:M4a()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
  12059. g.k.Km=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Jf())};
  12060. g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Jf())};
  12061. g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Jf())};
  12062. g.k.UB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Jf())};
  12063. g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Jf())};
  12064. g.k.YB=function(a){this.D!==a&&(this.D=a,this.Jf())};
  12065. g.k.Vh=function(){return this.j};
  12066. g.k.isFullscreen=function(){return 0!==this.fullscreen};
  12067. g.k.Qz=function(){return this.fullscreen};
  12068. g.k.isMinimized=function(){return this.B};
  12069. g.k.isInline=function(){return this.inline};
  12070. g.k.isBackground=function(){return M4a()};
  12071. g.k.Rt=function(){return this.pictureInPicture};
  12072. g.k.pA=function(){return!1};
  12073. g.k.wA=function(){return this.C};
  12074. g.k.bk=function(){return this.D};
  12075. g.k.Jf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Vh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Rt(),this.pA(),this.wA(),this.bk());a!==this.K&&this.publish("visibilitystatechange");this.K=a};
  12076. g.k.va=function(){P4a(this.G);g.aF.prototype.va.call(this)};g.y(SX,g.I);SX.prototype.Ek=function(){if(!this.wf.length)return[];var a=this.wf;this.wf=[];this.C=g.Bb(a).info;return a};
  12077. SX.prototype.aG=function(){return this.wf};
  12078. SX.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.wf.length=0;this.ib.length=0;this.C=null};g.y(UX,g.I);g.k=UX.prototype;g.k.Yq=function(){return Array.from(this.Vc.keys())};
  12079. g.k.Lu=function(a){a=this.Vc.get(a);var b=a.wf;a.jz+=b.totalLength;a.wf=new BN;return b};
  12080. g.k.Kg=function(a){return this.Vc.get(a).Kg};
  12081. g.k.Lw=function(a){return this.Vc.get(a).Lw};
  12082. g.k.jB=function(a,b,c,d){this.Vc.get(a)||X4a(this,a,b);b=this.Vc.get(a);if(this.manifest){a=Z4a(this,a,c);if(d)for(var e=g.u(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.Z=h;f.startTime+=h;f.C+=h;f.D+=h}Y4a(this,c.Ip,b,a)}else c.Qn?b.TY=c.Wr:b.wF.push(c),b.GS.push(c)};
  12083. g.k.Gn=function(a){var b;return(null==(b=this.Vc.get(a))?void 0:b.ib)||[]};
  12084. g.k.ZA=function(){for(var a=g.u(this.Vc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.eS&&(b.xg&&b.xg(),b.eS=!1)};
  12085. g.k.Zp=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
  12086. var c=this.Vc.get(b);if(VX){if(c&&!c.Kg){if(c.vj.get(a))c.vj.get(a).Ow=!0;else{var d;(null==(d=this.hf)?0:d.Gb)&&c.vj.set(a,{data:new BN,jI:0,Ow:!0})}c.Lw=!0}}else c&&!c.Lw&&(c.Lw=!0)};
  12087. g.k.Ek=function(a){if(VX){var b=this.Vc.get(a);if(b)for(var c=g.u(b.vj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.YG.get(d);if(oQ(f[0])){if(!e.Ow)continue;var h=e.data,l=0,m=[];f=g.u(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=DN(h,l,p);l+=p;m.push(new BQ(n,q))}b.ix.push.apply(b.ix,g.qa(m))}else if(0<e.data.totalLength||!f[0].range&&e.Ow)h=void 0,l=f[0],m=e.jI,f=e.data,l.range||(h=e.Ow),h=new BQ(DRa(l,l.Rb+m,f.totalLength,h),f),
  12088. e.jI+=h.info.B,b.ix.push(h);b.vj.get(d).data=new BN;e.Ow&&b.vj.delete(d)}a=this.Vc.get(a);if(!a)return[];b=a.ix;a.ix=[];c=g.u(b);for(d=c.next();!d.done;d=c.next())a.jz+=d.value.info.B;return b||[]}c=null==(b=this.Vc.get(a))?void 0:b.Xf;if(!c)return[];this.qm(a,c);return c.Ek()};
  12089. g.k.il=function(a){if(VX)return XX(this,a);var b,c,d;return!!(null==(c=null==(b=this.Vc.get(a))?void 0:b.Xf)?0:null==(d=c.aG())?0:d.length)||XX(this,a)};
  12090. g.k.qm=function(a,b){for(;XX(this,a);){var c=this.Lu(a);var d=a;d=this.Vc.get(d).Kg&&!V4a(this,d);TX(b,c,d&&W4a(this,a))}};
  12091. g.k.va=function(){g.I.prototype.va.call(this);for(var a=g.u(this.Vc.keys()),b=a.next();!b.done;b=a.next())S4a(this,b.value);var c;if(null==(c=this.hf)?0:c.pd)for(a=g.u(this.Vc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.vj.clear(),b.YG.clear(),b.ix.length=0,b.ib.length=0,b.GS.length=0,b.wF.length=0;this.Vc.clear()};
  12092. var VX=!1;g.y($X,g.I);g.k=$X.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(0===this.segments.length||(void 0===b?0:b))this.j=a;this.segments.push(a);return!0};
  12093. g.k.Ye=function(){return this.jc||0};
  12094. g.k.Bi=function(){return this.C||0};
  12095. g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()};
  12096. g.k.va=function(){this.removeAll();g.I.prototype.va.call(this)};
  12097. g.y(k5a,g.I);g.k=k5a.prototype;g.k.Ye=function(){return this.jc};
  12098. g.k.Bi=function(){return this.B};
  12099. g.k.getType=function(){return this.type};
  12100. g.k.getVideoData=function(){return this.videoData};
  12101. g.k.QG=function(a){pWa(a);this.videoData=a};
  12102. g.k.va=function(){l5a(this);g.I.prototype.va.call(this)};g.y(g.eY,g.I);g.k=g.eY.prototype;g.k.CI=function(a,b,c){return new g.jJ(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
  12103. g.k.onCueRangeEnter=function(a){this.Na.push(a);var b=a.getId();this.W.L("html5_enable_ssdai_cue_logs")&&this.ea.ma("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:this.ea.getCurrentTime().toFixed(3),cmt:this.ea.Xg().toFixed(3)});var c=""===b;this.gb.add(a.B);var d=this.D.get(b);if(!c&&(this.ea.ma("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Rn()&&(null==d?0:d.uA))){if(this.N){var e;a=(null==(e=this.j)?void 0:e.Qg)||this.ea.getCurrentTime();iY(this.ea,d,this.nE(),a,this.ea.getCurrentTime(),
  12104. !1,!0);this.N=""}this.Sa=!0;a=d.Kq?1E3*d.Kq:d.jc;(b=this.B.get(d.cpn))&&this.ea.removeCueRange(b);this.B.delete(d.cpn);this.D.delete(d.cpn);b=this.G.indexOf(d);0<=b&&this.G.splice(b,1);b=[];c=g.u(this.C);for(e=c.next();!e.done;e=c.next())e=e.value,e.end<=a?this.ea.removeCueRange(e):b.push(e);this.C=b;D5a(this,0,a+d.durationMs);return}if(this.Sa&&!this.j)this.Sa=!1,!c&&d&&(c=this.ea.getCurrentTime(),jY(this,{Xd:a,isAd:!0,Mp:!0,Qg:c,adCpn:b},{isAd:!1,Mp:!1,Qg:c}),this.pc=d.cpn,this.api.publish("serverstitchedvideochange",
  12105. d.bd,d.Kq),d=hY(this,"midab",d),this.ea.ma("sdai",d),this.fm=1),this.qa=!1;else if(this.j){if(this.j.Mp)this.ea.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Qg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={Xd:a,isAd:!c,Mp:!0,Qg:d,adCpn:b},d={Xd:this.j.Xd,isAd:this.j.isAd,Mp:!1,Qg:d,adCpn:this.j.adCpn},this.j.Xd&&this.gb.delete(this.j.Xd.B),jY(this,a,d);else{if(this.j.Xd===a){this.ea.ma("sdai",{same_cue_range_pair_enter:1,
  12106. acpn:this.j.adCpn,transitionTime:this.j.Qg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});this.j=void 0;return}d={Xd:a,isAd:!c,Mp:!0,Qg:this.ea.getCurrentTime(),adCpn:b};jY(this,d,this.j)}this.j=void 0;this.qa=!1}else this.j={Xd:a,isAd:!c,Mp:!0,Qg:this.ea.getCurrentTime(),adCpn:b}};
  12107. g.k.onCueRangeExit=function(a){var b=a.getId();this.W.L("html5_enable_ssdai_cue_logs")&&this.ea.ma("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:this.ea.getCurrentTime().toFixed(3),cmt:this.ea.Xg().toFixed(3)});var c=""===b,d=this.D.get(b);if(this.ea.getVideoData().Rn()&&!c&&d){if(d.uA)return;d.uA=!0;this.K.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.TN()){var e=d.jc;this.ea.mS(e/1E3,(e+d.durationMs)/1E3)}else this.ea.ma("lifa",{remove:0})}if(this.gb.has(a.B))if(this.gb.delete(a.B),
  12108. this.Na=this.Na.filter(function(f){return f!==a}),this.Sa&&(this.qa=this.Sa=!1,this.ea.ma("sdai",{cref:1})),this.j){if(this.j.Mp){if(this.j.Xd===a){this.ea.ma("sdai",{same_cue_range_pair_exit:1,
  12109. acpn:this.j.adCpn,transitionTime:this.j.Qg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});this.j=void 0;return}b={Xd:a,isAd:!c,Mp:!1,Qg:this.ea.getCurrentTime(),adCpn:b};jY(this,this.j,b)}else this.ea.ma("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Qg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()});
  12110. this.j=void 0;this.qa=!1}else this.j={Xd:a,isAd:!c,Mp:!1,Qg:this.ea.getCurrentTime(),adCpn:b};else this.ea.ma("sdai",{ignore_single_exit:1})};
  12111. g.k.nE=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,jc:0,playerType:1,Vd:0,videoData:this.ea.getVideoData(),errorCount:0}};
  12112. g.k.wm=function(a){return this.yn?!1:this.ea.getVideoData().Rn()?(a=kY(this,1E3*a),!!a&&!a.uA):!!kY(this,1E3*a)};
  12113. g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;c=void 0===c?!1:c;d=void 0===d?null:d;if(this.ea.getVideoData().Rn()&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,J_(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)n5a(this,a,b);else{c=this.api.Wc();var e=c===this.Za?this.zb:null;lY(this,!1);this.Ob=a;this.Kb=b;null!=d&&this.Gb.start(d);c&&(this.zb=e||c.getPlayerState(),efb(c),this.Za=c)}};
  12114. g.k.va=function(){lY(this,!1);y5a(this);z5a(this);g.I.prototype.va.call(this)};
  12115. g.k.VS=function(a){this.Bc=a;this.ea.ma("sdai",{swebm:a})};
  12116. g.k.Vk=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=nY(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.sP(c),this.Va&&this.ea.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:uP(c)}),e.locations.set(d,c))}};
  12117. g.k.BJ=function(a,b,c,d,e,f){var h=3===d;e=B5a(this,a,b,d,c,f);if(!e)return pY(this,b,h),e=g.A5a(this,b)?"undec":"ncp",this.ea.ma("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.Ul;var l;d=(null==(l=oY(this,b-1,d))?void 0:l.kt)||"";""===d&&this.ea.ma("sdai",{eds:1});l=oR(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.aD[f];b=e.Xx&&b>=e.Xx?e.Xx:void 0;return{Im:{XH:a?F5a(this,a):[],pW:l,kt:d,B1:b,O2:bf(m.split(";")[0]),
  12118. P2:m.split(";")[1]||""}}};
  12119. g.k.tP=function(a){a:{if(!this.yn){var b=nY(this,a);if(!(this.ea.getVideoData().Rn()&&(null==b?0:b.uA)))break a}b=void 0}if(!b)return this.ea.ma("sdai",{gvprp:"ncp",mt:a}),null;a=b.Ul;b=oR(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=(null==(d=c.B)?void 0:d.containerType)||0;d=c.aD[e];return{XH:a?F5a(this,a):[],pW:b,O2:bf(d.split(";")[0]),P2:d.split(";")[1]||""}};
  12120. g.k.Oz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=B5a(this,a,b,d,c,f);this.Va&&this.ea.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return pY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.ea.ma("sdai",{gdu:"noadpfmts",seg:b,itag:h}),pY(this,b,e),null;l=f.find(function(v){return v.itag===h});
  12121. if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.ma("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});pY(this,b,e);return null}a.locations.set(h,new g.sP(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.ma("sdai",{gdu:"nourl",seg:b,itag:h}),pY(this,b,e),null;l=new eQ(l);this.Bc&&(l.get("dvc")?this.ea.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=oY(this,b-1,d))?void 0:q.kt)&&
  12122. l.set("daistate",m);a.Xx&&b>=a.Xx&&l.set("skipsq",""+a.Xx);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Ul&&(q=F5a(this,a.Ul),0<q.length&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if(((null==(p=e)?void 0:null==(r=p.split(","))?void 0:r.length)||0)!==q.length)if(a.Ul){var t;this.ea.ma("sdai",{acpns_aids_nm:1,ids:H5a(this,a.Ul).join("_"),acpns:q.join("_"),aids:null==(t=e)?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.ma("sdai",
  12123. {acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Le();2048<(null==d?void 0:d.length)&&this.ea.ma("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.Ul,J5a(this,r,p),p&&!this.je.has(p)&&(r=G5a(this,r,p),t=I5a(this,p),this.ea.ma("sdai",{iofa:r}),this.ea.ma("sdai",{noawnzd:t-r}),this.ea.ma("sdai",{acpns:q.join("."),aids:null==(n=e)?void 0:n.replace(/,/g,".")}),this.je.add(p))),this.ea.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.jc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
  12124. return d};
  12125. g.k.GG=function(a,b,c){var d=mY(this,a,c);return(d=d?(d.jc+d.durationMs)/1E3:0)&&b>d?(this.Ou(a,c,!0),this.ea.seekTo(d),!0):!1};
  12126. g.k.Ou=function(a,b,c){c=void 0===c?!1:c;if(a=mY(this,a,b)){var d=void 0,e=a.Ul;if(e){this.ea.ma("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Xx=b,e.jc>a.jc&&(d=e)}this.N=a.cpn;C5a(this);b=this.ea.getCurrentTime();u5a(this,a,d,b,b,!1,!0)}};
  12127. g.k.xS=function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())b.value.Xx=NaN;C5a(this);this.ea.ma("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""};
  12128. g.k.pH=da(44);
  12129. g.k.FR=function(a,b,c,d,e,f,h,l,m){this.W.L("html5_enable_ssdai_cue_logs")&&0<d.length&&this.ea.ma("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.bb.set(a,{kt:m,Zy:l}):this.Ea.set(a,{kt:m,Zy:l}));if(h){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.ma("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.It(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.Kq=null!=m.Kq?Math.min(m.Kq,l):l;if(d.length&&e.length)for(c=1E3*
  12130. (b+this.It()),b=0;b<d.length;b++)if(a=d[b],l=1E3*e[b],a===this.ea.getVideoData().clientPlaybackNonce)E5a(this,c,c+l,!1),c+=l;else{this.pd.has(a)||(this.ea.ma("sdai",{adCpnFromEmsg:1}),this.pd.add(a));m=0;b<f.length&&(m=1E3*f[b]);h=this.B.get(a);var n=this.api.L("html5_ssdai_cue_range_update_fix");if(!n&&h&&h.start<=c&&h.end>=c+l)c=h.end;else{var p=!1;h?(n?(h.start=c-m,h.end=c+l):c<h.start?h.start=c-m:h.end<c+l&&(h.end=c+l),this.ea.yh.sync()):(h=this.CI(c-m,c+l,a),this.B.set(a,h),c=this.ea.Kc(),this.ea.ma("sdai",
  12131. {newAdCR:1,cpn:a,startTime:h.start,mediaSt:h.start-c,endTime:h.end,mediaEnd:h.end-c}),p=!0);c=h.end;E5a(this,h.start,h.end,!0);if(p)for(this.ea.addCueRange(h),a=this.ea.ZD("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=a.next())this.B.delete(h.value.getId())}}else 5!==c&&4!==c||E5a(this,1E3*(b+this.It()),1E3*(b+this.It())+5E3,!1)}};
  12132. g.k.pE=da(46);g.k.It=function(){return this.ea.It()};
  12133. g.k.Vp=function(a){this.ea.ma("timelineerror",{e:a})};
  12134. g.k.IE=function(a){this.Ca&&this.ra&&this.Ga.push(this.ra);a&&this.ra&&this.qc.push(this.ra);this.ra=null;this.ea.IE(a)};
  12135. g.k.DJ=function(a){if(this.yn||a.identifier&&this.Be.has(a.identifier))this.Va&&this.ea.ma("sdai",{startnoad:a.identifier}),gY(this);else if(Ys(this.Ga,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{timedoutcp:1}),this.Z.start(0);
  12136. else if(Ys(this.qc,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{fetchedcp:1}),gY(this);
  12137. else if(this.Z.isActive()){var b;this.ea.ma("sdai",{racingcp:(null==(b=this.ra)?void 0:b.identifier)+"_"+a.identifier})}else this.Qc=(new Date).getTime()/1E3,this.Va&&this.ea.ma("sdai",{adf:1}),(b=5E3,"predictStart"===a.event)&&(b-=a.j),this.Jb=Math.max(b,15E3),this.Ca=!1,this.Z.start(this.Jb),this.ra=a,this.Ea.clear(),this.bb.clear(),this.La.clear(),this.rb=[]};
  12138. g.k.QD=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!mY(this,a,b))return!1;c.sq=b}if(this.yn)return!1;this.yn=!0;0<this.fm&&(this.fm=0,this.pc="",this.api.publish("serverstitchedvideochange"));a=this.ea;a.videoData.b3=!0;a.Wd(new WJ("qoe.restart",c));J_(a,!0);return!0};
  12139. g.k.Cw=function(){this.ea.ma("sdai",{rstdaist:1});this.Ea.clear();this.bb.clear();this.La.clear()};
  12140. g.k.Du=function(a){this.Be.add(a);var b;(null==(b=this.ra)?void 0:b.identifier)===a&&gY(this)};
  12141. g.k.WO=function(){return this.fm};
  12142. g.k.Nz=function(){return this.pc};
  12143. g.k.Au=function(a){var b=HV(this.api.yb());return b?b.Au(a):!1};
  12144. g.k.BO=function(a){return this.yn?!1:!!nY(this,a)};
  12145. g.k.iT=function(){this.ea.pauseVideo();var a=this.ea.getCurrentTime(),b=this.D.get(this.pc),c=this.B.get(this.pc);if(b){this.N=this.pc;this.qa=!1;b.uA=!0;b=this.ea.getCurrentTime();this.j={Xd:c,isAd:!0,Mp:!1,Qg:b,adCpn:this.pc};if(null==c?0:c.start)this.Wa=1E3*b-c.start;this.K.clear();J_(this.ea);this.pc=this.nE().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(a);this.ea.playVideo();return!0}this.ea.ma("sdai",{skipFail:a});return!1};
  12146. var s5a=0;g.y(M5a,g.I);g.k=M5a.prototype;
  12147. g.k.addPlayerResponseForAssociation=function(a){var b=new g.ES(this.api.U(),a.playerVars);b.playerResponseCpn&&(b.clientPlaybackNonce=b.playerResponseCpn);b.sD=!0;if(a=a.FI)b.FI=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.ma("ssap",{aprfa:a+"_"+b.videoId});if(a){this.Zs.set(a,b);var c=cY(this.timeline,a);if(null==c?0:c.length){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.tj=d.Ye(),d.QG(b)}if(!vdb(this.ea.uc(b.videoId))){var e;this.api.ma("ssap",{nlc:a,nlcc:null==(e=
  12148. this.timeline.j)?void 0:aY(e)})}this.ea.Uz().BI(a,b,2)}};
  12149. g.k.KF=function(){this.hZ=!0};
  12150. g.k.finishSegmentByCpn=function(a,b,c,d){c=void 0===c?3:c;this.ZS&&this.mw&&a===this.mw&&(this.api.ma("ssap",{reloadp:this.mw}),J_(this.ea),this.mw="",this.LX=!0);if(this.pc===b)return[];this.api.U().zc()&&this.api.ma("ssap",{fsbc:a+";"+b,fsbcr:this.hZ?5:c,fsbct:this.api.getCurrentTime().toFixed()});this.Yx=b;var e=!1;if(this.jk.has(a)&&(e=K5a(this,c),!e))return[a];var f=cY(this.timeline,b);if(f){f.sort(function(m,n){return m.Ye()-n.Ye()});
  12151. var h=g.u(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ea.getCurrentTime();this.api.L("html5_ssap_get_current_time_refactor")&&(l*=1E3);if(f.Ye()>=l){h=this.api.L("html5_ssap_abandon_on_skip_fix");this.lH.set(a,c);if(h)b6a(this,a,b);else if(c=this.Qi.get(a))this.ea.removeCueRange(c),this.Qi.delete(a);this.cM.set(a,(0,g.EC)());if(c=this.Qi.get(b))for(c=c.getId().split(","),c=g.u(c),l=c.next();!l.done;l=c.next())l=l.value,l!==b&&this.jk.has(l)&&(this.jk.delete(l),this.XG.add(l));d&&J_(this.ea);
  12152. b=f.Ye()/1E3;h?(d=void 0,f=null!=(d=g.EI(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))?d:0,this.ea.seekTo(b+f/1E3)):this.ea.seekTo(b);e&&this.api.playVideo(1);return[a]}}}return[]};
  12153. g.k.hP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Bi();a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Bi()>b&&(b=d.Bi())}return b/1E3};
  12154. g.k.Dd=function(){var a=1E3*this.ea.getCurrentTime();if(this.api.L("html5_ssap_get_min_seekable_time_refactor")){var b=R5a(this,a);if(!b){var c=cY(this.timeline,this.pc);if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ye()>a&&(b=d)}}}else b=qY(this,a);return b&&1===b.getType()?b.Ye()/1E3:0};
  12155. g.k.getVideoData=function(a){if(2===a&&!this.wm()){if(this.eK&&this.Zs.has(this.eK))return this.Zs.get(this.eK);this.api.ma("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return U5a(this)};
  12156. g.k.wm=function(){var a=cY(this.timeline,this.pc);return(null==a?0:a.length)?2===a[0].getType():!1};
  12157. g.k.rA=function(){var a=cY(this.timeline,this.pc);return(null==a?0:a.length)?a[0].C:!1};
  12158. g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=S5a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)};
  12159. g.k.CI=function(a,b,c){return new g.jJ(a,b,{id:c,namespace:"ssap",priority:9})};
  12160. g.k.onCueRangeEnter=function(a){if(!this.hL.has(a.getId())){for(var b=a.getId().split(","),c=0;c<b.length&&this.Yx&&b[c]!==this.Yx;){var d=b[c];this.jk.has(d)&&(this.jk.delete(d),this.XG.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.bG.push(b[d]);b=b[c];this.jk.has(b)&&V5a(this,b);this.XG.has(b)||W5a(this,b);b=g.u(this.Qi.values());for(c=b.next();!c.done;c=b.next())c=c.value,c.start<=a.start&&!this.hL.has(a.getId())&&this.hL.add(c.getId())}};
  12161. g.k.WO=function(){return this.fm};
  12162. g.k.Nz=function(){return this.pc};
  12163. g.k.handleError=function(a){if("fmt.decode"!==a&&"fmt.unplayable"!==a||!this.wm()||this.pZ===this.pc)return!1;this.ea.ma("ssap",{skiperr:a,acpn:this.pc});this.pZ=this.pc;var b=this.ea.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.pc,b,3,a);return!0};
  12164. g.k.va=function(){this.api.U().zc()&&this.api.ma("ssap",{di:""+this.pc,dic:""+this.ea.getVideoData().clientPlaybackNonce});this.Zs.clear();this.jk.clear();this.hL.clear();this.lH.clear();this.cM.clear();this.XG.clear();this.bG=[];L5a(this);this.Yx="";g.UB(this.events);g.I.prototype.va.call(this)};g.y(e6a,g.I);g.k=e6a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Wc()){var b=this.K.get(a);b?k6a(this,b.target,b.Pm,a):this.Wd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.qt.Xd===a})){var c=b.qt,d=c.target;
  12165. c=c.Pm;d?k6a(this,d,c,a):j6a(this,b.Vd,c,a)}};
  12166. g.k.onQueuedVideoLoaded=function(){var a=this.N;AY(this);if(a){if(!zY(this,a)){var b=this.api.Wc();this.Wd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Wc().addCueRange(a.qt.Xd)}};
  12167. g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;if(void 0===c?0:c)d6a(this,a,b);else{c=this.api.Wc();var e=c===this.D?this.G:null;BY(this,!1);this.qa=a;this.Y=b;null!=d&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),efb(c),this.D=c)}};
  12168. g.k.nk=function(a){g.VF(a,128)&&p6a(this)};
  12169. g.k.isManifestless=function(){return OS(this.j.getVideoData())};
  12170. g.k.va=function(){BY(this,!1);r6a(this);g.I.prototype.va.call(this)};
  12171. g.k.Wd=function(a,b){this.j.Wd(new WJ(a,b))};
  12172. var f6a=0;var s6a="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.y(EY,g.I);g.k=EY.prototype;g.k.get=function(a){CY(this);var b=this.data.find(function(c){return c.key===a});
  12173. return b?b.value:null};
  12174. g.k.set=function(a,b,c){this.remove(a,!0);CY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.EC)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&FY(this,c,!0);DY(this)};
  12175. g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
  12176. c&&(FY(this,c,b),g.Ib(this.data,function(d){return d.key===a}),DY(this))};
  12177. g.k.removeAll=function(a){if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())FY(this,c.value,a);this.data=[];DY(this)};
  12178. g.k.va=function(){var a=this;g.I.prototype.va.call(this);this.data.forEach(function(b){FY(a,b,!0)});
  12179. this.data=[]};g.y(GY,g.I);GY.prototype.hJ=function(a){if(a)return this.B.get(a)};
  12180. GY.prototype.va=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.va.call(this)};g.y(w6a,g.I);w6a.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.B&&this.B.disconnect()};g.Aob=Id(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var x3;x3={};g.HY=(x3.STOP_EVENT_PROPAGATION="html5-stop-propagation",x3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",x3.IV_DRAWER_OPEN="ytp-iv-drawer-open",x3.MAIN_VIDEO="html5-main-video",x3.VIDEO_CONTAINER="html5-video-container",x3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",x3.HOUSE_BRAND="house-brand",x3);g.y(A6a,g.W);g.k=A6a.prototype;g.k.Ns=function(){g.Gv(this.element,g.Ja.apply(0,arguments))};
  12181. g.k.Ej=function(){this.Dc&&(this.Dc.removeEventListener("focus",this.mR),g.Pf(this.Dc),this.Dc=null)};
  12182. g.k.xO=function(){this.Ma();var a=this.app.U();a.Ym||this.Ns("tag-pool-enabled");a.K&&this.Ns(g.HY.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Ns("ytp-gvn"),this.element.style.backgroundColor="transparent");a.qc&&(this.mO=g.MD("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
  12183. g.k.IL=function(a){g.FR(this.app.U());this.MJ=!a;IY(this)};
  12184. g.k.resize=function(){if(this.Dc){var a=this.Th();if(!a.isEmpty()){var b=!g.Le(a,this.vB.getSize()),c=F6a(this);b&&(this.vB.width=a.width,this.vB.height=a.height);a=this.app.U();(c||b||a.qc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}};
  12185. g.k.Kt=function(a,b){this.updateVideoData(b)};
  12186. g.k.updateVideoData=function(a){if(this.Dc){var b=this.app.U();UC&&(this.Dc.setAttribute("x-webkit-airplay","allow"),a.title?this.Dc.setAttribute("title",a.title):this.Dc.removeAttribute("title"));this.Dc.setAttribute("controlslist","nodownload");b.jq&&a.videoId&&(this.Dc.poster=a.dh("default.jpg"))}b=g.bT(a,"yt:bgcolor");this.yz.style.backgroundColor=b?b:"";this.KQ=uqa(g.bT(a,"yt:stretch"));this.LQ=uqa(g.bT(a,"yt:crop"),!0);g.Jv(this.element,"ytp-dni",a.Hf);this.resize()};
  12187. g.k.setGlobalCrop=function(a){this.yP=uqa(a,!0);this.resize()};
  12188. g.k.setCenterCrop=function(a){this.PW=a;this.resize()};
  12189. g.k.Km=function(){};
  12190. g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.BR(a);if(b&&oB()&&!c)return new g.Ke(window.outerWidth,window.outerHeight);c=!isNaN(this.cE.width)&&!isNaN(this.cE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Ke(this.element.clientWidth,this.element.clientHeight);if(b||a.Zo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.tF&&this.tF.media===
  12191. a||(this.tF=window.matchMedia(a));var e=this.tF&&this.tF.matches}if(e)return new g.Ke(window.innerWidth,window.innerHeight)}else if(c)return this.cE.clone();return new g.Ke(this.element.clientWidth,this.element.clientHeight)};
  12192. g.k.Th=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.EI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.bS&&b.width>c?new g.Ke(b.width*g.EI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
  12193. g.k.getVideoAspectRatio=function(){return isNaN(this.KQ)?C6a(this):this.KQ};
  12194. g.k.getVideoContentRect=function(a){var b=this.Th();a=D6a(this,b,this.getVideoAspectRatio(),a);return new g.Fs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
  12195. g.k.WB=function(a){this.bS=a;this.resize()};
  12196. g.k.ZE=function(){return this.kL};
  12197. g.k.onMutedAutoplayChange=function(){IY(this)};
  12198. g.k.setInternalSize=function(a){g.Le(this.cE,a)||(this.cE=a,this.resize())};
  12199. g.k.va=function(){this.mO&&g.ND(this.mO);this.Ej();g.W.prototype.va.call(this)};g.k=G6a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.FE();c&&a.visualElement&&g.YE(c,a.visualElement,b)};
  12200. g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Zva(c);a.visualElement=c;var f=g.FE(),h=g.EE();f&&h&&(g.aB("combine_ve_grafts")?RO(PO(),c,h):g.JA(g.RE)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)});
  12201. d&&this.B.add(a)};
  12202. g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)});
  12203. c&&this.B.add(a)};
  12204. g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
  12205. g.k.fX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,QO(PO(),a),H6a(this))};
  12206. g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.DE(b))};
  12207. g.k.hasVe=function(a){return this.elements.has(a)};I6a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
  12208. I6a.prototype.getPlaybackRate=function(){return this.playbackRate};NY.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Sb,f=Q6a(this,this.videoTrack,a,this.videoTrack.Sb,b);b=Q6a(this,this.audioTrack,this.policy.nf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(O6a(this,this.videoTrack,c),O6a(this,this.audioTrack,d));return a};
  12209. NY.prototype.isSeeking=function(){return this.G};
  12210. NY.prototype.SS=function(a){this.C=a};
  12211. var P6a=2/24;var U6a=0;g.k=XY.prototype;g.k.Eu=function(){this.Z=this.now();KTa(this.Nc,this.Z);this.Eb.Eu()};
  12212. g.k.Pr=function(a,b){var c=this.policy.B?(0,g.EC)():0;YY(this,a,b);10>a-this.D&&this.Sn()||this.yv(a,b);this.Eb.Pr(a,b);this.policy.B&&(a=(0,g.EC)()-c,this.Gb+=a,this.rb=Math.max(a,this.rb))};
  12213. g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Qq||(MTa(this.Nc,c,d),this.Iu(c,d));this.D=a;this.B=b};
  12214. g.k.po=function(){this.Ca&&V6a(this);this.Eb.po()};
  12215. g.k.Or=function(a){this.Ca||(this.Ca=this.K-this.Ob+a,this.qc=this.K,this.Bc=this.Y)};
  12216. g.k.E0=function(){};
  12217. g.k.Eq=function(){var a={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.Na,d:X6a(this)};this.url&&Q3a(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.Gb.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Sa;return a};
  12218. g.k.now=function(){return(0,g.EC)()};
  12219. g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
  12220. var WY;g.y(ZY,XY);g.k=ZY.prototype;g.k.Eq=function(){var a=XY.prototype.Eq.call(this);a.pb=this.Iz;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a};
  12221. g.k.Zq=function(){var a=this.Eb;this.gb||(this.gb=a.Zq?a.Zq():1);return this.gb};
  12222. g.k.WJ=function(){return this.al?1!==this.Zq():!1};
  12223. g.k.XQ=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Qq){YY(this,a,b);this.yv(a,b);var d=this.Zq();this.Tb=c;2===d?this.Qq||(this.Ga?sR(this.Nc,this.Ga/1E3,this.Va,.25):sR(this.Nc,b/(c||this.Sa),b,.01),uR(this.Nc,b,this.C)):1===d&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.zb||this.policy.G||!this.Sn()||$6a(this,c,b),this.Sn()&&uR(this.Nc,b,this.C));tR(this.Nc,(a-this.j)/1E3||.01,this.B,this.Wa,this.vp)}this.deactivate()}};
  12224. g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Zq();this.isActive?1===e&&((0<d||this.policy.D)&&(.2<c||1024>d)?(this.C+=c,0<d&&.2<c&&$6a(this,.05,d),this.zb=!0):0<d&&($6a(this,c,d),this.zb=!0)):a7a(this,b)&&(1===e&&(c=(this.Z-this.j)/1E3,d=(a-this.Z)/1E3,this.al&&e7a(this,this.now()),this.Jb||this.Qq||(e=this.Nc,e.K.Oi(1,c),e.ra.Oi(1,d))),this.qa=a,this.Na=b,this.isActive=!0);XY.prototype.yv.call(this,a,b)};
  12225. g.k.AK=function(a){if(!this.Qq){YY(this,a,this.K);var b=(a-this.j)/1E3;2!==this.Zq()&&this.Sn()&&(this.C+=(a-this.D)/1E3,uR(this.Nc,this.B,this.C));tR(this.Nc,b,this.B,this.Wa,this.vp,!0);a=(a-this.D)/1E3;MTa(this.Nc,a,0);this.Iu(a,0)}};
  12226. g.k.Sn=function(){return a7a(this,this.B)};
  12227. g.k.fY=function(){this.al&&e7a(this,this.now());return this.La};
  12228. g.k.Qw=function(){return this.B>this.OR&&a7a(this,this.B)};
  12229. g.k.uJ=function(){return this.Za};
  12230. g.k.pS=function(a){a=void 0===a?this.now():a;if(this.al){e7a(this,a);if(this.gb?this.WJ():this.ra!==this.Ea){var b=this.Ea;if(a<b){this.Za=this.Ea;return}}else b=this.ra;b=Math.max(b,this.La)}else b=this.La;var c=this.Iz-this.B;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Za=c=this.Sn()?c+a:c+Math.max(a,b)};
  12231. g.k.gJ=function(){return this.now()-this.qa};
  12232. g.k.nP=function(){return 1E3*(this.B-this.Na)/this.gJ()||0};
  12233. g.k.gY=function(){return this.qa};$Y.prototype.feed=function(a){CN(this.j,a);this.lf()};
  12234. $Y.prototype.lf=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.LJ;a=a.Om;if(!this.Eb.Or(this.D,b,this.B,this.C))return;this.B+=b.totalLength;this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(f7a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(f7a(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.Eb.Or&&c+1<=this.j.totalLength))break;c=this.j.split(c).Om;this.Eb.Or(b,c,0,
  12235. a)&&(this.D=b,this.B=c.totalLength,this.C=a,this.j=new BN([]));break}a=this.j.split(c).Om.split(a);c=a.Om;this.Eb.lB(b,a.LJ);this.j=c}};
  12236. $Y.prototype.dispose=function(){this.j=new BN};g.k=aZ.prototype;g.k.VO=function(){return 0};
  12237. g.k.jJ=function(){return null};
  12238. g.k.VX=function(){return null};
  12239. g.k.Xt=function(){return 1<=this.state};
  12240. g.k.isComplete=function(){return 3<=this.state};
  12241. g.k.ym=function(){return 5===this.state};
  12242. g.k.onStateChange=function(){};
  12243. g.k.Gc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
  12244. g.k.ZA=function(a){a&&this.state<a?this.Gc(a):this.callback&&this.callback(this,this.state)};
  12245. g.k.Ma=function(){return-1===this.state};
  12246. g.k.zd=function(){var a="";this.info.ib.forEach(function(b){a+=b.zd()+"."});
  12247. return a.slice(0,-1)};
  12248. g.k.dispose=function(){this.Ma()||(this.info.ib[0].j.C=!1,this.Gc(-1))};
  12249. g.k.sP=function(){return 0};g.k=h7a.prototype;g.k.gB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Eb.Eu()};
  12250. g.k.onError=function(){this.C=!0;this.onDone()};
  12251. g.k.onDone=function(){this.Ma||(this.D=!0,this.Eb.po())};
  12252. g.k.Mt=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
  12253. g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
  12254. g.k.mE=function(){return+this.getResponseHeader("content-length")};
  12255. g.k.lm=function(){return this.B};
  12256. g.k.Jx=function(){return 200<=this.status&&300>this.status&&!!this.B};
  12257. g.k.Dr=function(){return 0<this.j.totalLength};
  12258. g.k.Ux=function(){var a=this.j;this.j=new BN;return a};
  12259. g.k.eL=function(){return this.j};
  12260. g.k.abort=function(){this.Ma=!0;this.xhr.abort()};
  12261. g.k.eC=function(){return!0};
  12262. g.k.rL=function(){return this.C};
  12263. g.k.qf=function(){return""};g.k=j7a.prototype;
  12264. g.k.MB=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){if(1==A.j){a.status=200;b=a.j.get("docid");c=Xe(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new i7a(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=A.j)return n<=m?g.z(A,nVa(b,c,d,n,f),5):A.Ia(0);p=A.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
  12265. r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);w=new Uint8Array(p.buffer,t,v);a.B.append(w);a.loaded+=v;a.loaded<h.length&&a.Eb.Pr((0,g.EC)(),a.loaded);n++;return A.Ia(2)})};
  12266. g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
  12267. g.k.abort=function(){};
  12268. g.k.Mt=function(){return!0};
  12269. g.k.mE=function(){return this.range.length};
  12270. g.k.lm=function(){return this.loaded};
  12271. g.k.Jx=function(){return!!this.loaded};
  12272. g.k.Dr=function(){return!!this.B.totalLength};
  12273. g.k.Ux=function(){var a=this.B;this.B=new BN;return a};
  12274. g.k.eL=function(){return this.B};
  12275. g.k.eC=function(){return!0};
  12276. g.k.rL=function(){return!!this.error};
  12277. g.k.qf=function(){return this.error};g.k=l7a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.N);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,Bra)};
  12278. g.k.onDone=function(){this.Ma()||this.Eb.po()};
  12279. g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
  12280. g.k.Mt=function(){return!!this.responseHeaders};
  12281. g.k.lm=function(){return this.B};
  12282. g.k.mE=function(){return+this.getResponseHeader("content-length")};
  12283. g.k.Jx=function(){return 200<=this.status&&300>this.status&&!!this.B};
  12284. g.k.Dr=function(){return!!this.j.totalLength};
  12285. g.k.Ux=function(){var a=this.j;this.j=new BN;return a};
  12286. g.k.eL=function(){return this.j};
  12287. g.k.Ma=function(){return this.G};
  12288. g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
  12289. this.D&&this.D.abort();this.G=!0};
  12290. g.k.eC=function(){return!0};
  12291. g.k.rL=function(){return this.K};
  12292. g.k.qf=function(){return this.errorMessage};g.k=m7a.prototype;g.k.onDone=function(){if(!this.Ma){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Eb.po()}};
  12293. g.k.gB=function(){2===this.xhr.readyState&&this.Eb.Eu()};
  12294. g.k.xg=function(a){this.Ma||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Eb.Pr((0,g.EC)(),a.loaded))};
  12295. g.k.Mt=function(){return 2<=this.xhr.readyState};
  12296. g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.JE(Error("Could not read XHR header "+a)),""}};
  12297. g.k.mE=function(){return+this.getResponseHeader("content-length")};
  12298. g.k.lm=function(){return this.B};
  12299. g.k.Jx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
  12300. g.k.Dr=function(){return this.j&&!!this.response&&!!this.response.byteLength};
  12301. g.k.Ux=function(){var a=this.response;this.response=void 0;return new BN([new Uint8Array(a)])};
  12302. g.k.eL=function(){return new BN([new Uint8Array(this.response)])};
  12303. g.k.abort=function(){this.Ma=!0;this.xhr.abort()};
  12304. g.k.eC=function(){return!1};
  12305. g.k.rL=function(){return!1};
  12306. g.k.qf=function(){return""};g.y(dZ,g.I);g.k=dZ.prototype;g.k.eda=function(){if(!this.Ma()){var a=(0,g.EC)(),b=!1;if(this.timing.Sn()){if(this.G)return;var c=this.timing.uJ();this.timing.pS();var d=this.timing.uJ();d-c>=.8*this.policy.uj?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.fY();
  12307. 0<e&&(this.j+=1);a=mRa(eZ(this),!1)*this.policy.HC;(b=e>1E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0<this.j&&this.Eb.FP();
  12308. b?this.mH(!1):this.B.start()}};
  12309. g.k.mH=function(a){this.D=!0;a&&(a=eZ(this),a.C+=1);this.Eb.Yy();this.lastError="net.timeout";fZ(this)};
  12310. g.k.canRetry=function(a){var b=eZ(this);a=a?this.policy.xv:this.policy.Ki;return b.timedOut<this.policy.Hv&&b.j<a};
  12311. g.k.Yg=function(){return this.lastError};
  12312. g.k.xw=function(){return this.j};
  12313. g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};var y7a={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};g.y(PY,aZ);g.k=PY.prototype;g.k.rr=function(){return this.timing.requestNumber};
  12314. g.k.Le=function(){return this.ge.Le()};
  12315. g.k.er=function(){var a=p7a(this.Bd);if(this.zl){var b=this.zl,c=b.j.totalLength;a.ulen=c;0<c&&(b=GN(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.wg&&(a.rc=this.policy.Dl?this.wg:this.wg.toString());this.policy.Ob&&this.X1&&(a.tr=this.X1);a.itag=this.info.ib[0].j.info.itag;a.ml=""+ +this.info.ib[0].j.fg();a.sq=""+this.info.ib[0].Pa;this.ge&&(a.ifi=""+ +yQa(this.info.resource.C));410!==this.wg&&500!==this.wg&&503!==this.wg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
  12316. void 0:d.qf()))&&(a.msg=c);this.cH&&(a.smb="1");this.info.Lp()&&(a.sdai="1");return a};
  12317. g.k.QX=function(){return b7a(this.timing)};
  12318. g.k.qf=function(){return this.xhr.qf()||""};
  12319. g.k.Qw=function(){return this.isComplete()||this.timing.Qw()};
  12320. g.k.Pr=function(){!this.Ma()&&this.xhr&&(this.wg=this.xhr.status,this.policy.hp&&this.Xf&&this.qm(!1),this.il()?this.ZA(2):!this.GY&&this.Qw()&&(this.ZA(),this.GY=!0))};
  12321. g.k.Eu=function(){if(!this.Ma()&&this.xhr){if(!this.rz&&this.xhr.Mt()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.rz=((0,g.EC)()-a)/1E3}this.xhr.Mt()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.xH&&!UOa()&&g.XB("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;null==(c=this.vu)||c.stop();this.Hp=a||this.Hp;
  12322. this.Ar=b||this.Ar}};
  12323. g.k.po=function(){var a=this.xhr;if(!this.Ma()&&a){this.wg=a.status;a=this.KP(a);if(this.policy.Ob){var b;null==(b=this.vu)||b.stop()}5===a?fZ(this.Bd):this.Gc(a);this.Bd.B.stop()}};
  12324. g.k.KP=function(a){var b=this;F7a(this);if(gZ(this.Bd,this.xhr.status,this.Ap?this.timing.G||this.gM:this.xhr.Jx(),!1,this.Wt))return 5;var c="";if(B7a(this)){var d=a.eL();d.totalLength<=this.policy.fp&&(c=C7a(this,EN(d)))}if(c)return lRa(eZ(this.Bd)),this.info.Vk(this.ge,c),3;c=a.lm();if(this.zl){this.qm(!0);F7a(this);if(gZ(this.Bd,this.xhr.status,this.timing.G||this.gM,!1,this.Wt))return 5;if(!this.t2){if(this.gM)return lRa(eZ(this.Bd)),3;this.Bd.lastError="net.closed";return 5}}else{if(gZ(this.Bd,
  12325. this.xhr.status,this.xhr.Jx(),!1,this.Wt))return 5;if((d=this.info.C)&&d!==c||a.rL())return this.Bd.lastError="net.closed",5;this.qm(!0)}d=g7a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=g7a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.b1=!0,this.policy.qD&&(d=a);o7a(this.Bd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(1E3*e.Wa+e.j-Date.now()).toFixed(0)});
  12326. return 4};
  12327. g.k.canRetry=function(){this.Ma();var a=this.info.Lp();return this.Bd.canRetry(a)};
  12328. g.k.onStateChange=function(){this.isComplete()&&(this.policy.Ym?this.Yy():this.timing.deactivate())};
  12329. g.k.mH=function(a){this.Bd.mH(a)};
  12330. g.k.FP=function(){this.callback&&this.callback(this,this.state)};
  12331. g.k.xw=function(){return this.Bd.xw()};
  12332. g.k.dispose=function(){aZ.prototype.dispose.call(this);this.Bd.dispose();var a;null==(a=this.vu)||a.dispose();this.policy.Ym||this.Yy()};
  12333. g.k.Yy=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
  12334. g.k.Ek=function(){if(!this.aG().length)return[];this.NP=!0;return this.Xf.Ek()};
  12335. g.k.il=function(){if(1>this.state)return!1;if(this.Xf&&this.Xf.wf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Dr())?!0:!1};
  12336. g.k.aG=function(){this.qm(!1);return this.Xf?this.Xf.aG():[]};
  12337. g.k.qm=function(a){try{if(a||this.xhr.Mt()&&this.xhr.Dr()&&!B7a(this)&&!this.pB)this.Xf||(this.Xf=new SX(this.policy,this.info.ib)),this.xhr.Dr()&&(this.zl?this.zl.feed(this.xhr.Ux()):TX(this.Xf,this.xhr.Ux(),a&&!this.xhr.Dr()))}catch(b){this.zl?A7a(this,b):g.JE(b)}};
  12338. g.k.lB=function(a,b){switch(a){case 21:a=b.split(1).Om;D7a(this,a);break;case 22:this.t2=!0;TX(this.Xf,new BN([]),!0);break;case 43:if(a=UN(new ON(b),1))this.info.Vk(this.ge,a),this.gM=!0;break;case 45:b=SPa(new ON(b));a=b.DS;b=b.ES;a&&b&&(this.kI=a/b);break;case 44:this.NB=RPa(new ON(b));var c,d,e;!this.timing.G&&4===(null==(c=this.NB)?void 0:c.action)&&(null==(d=this.NB)?0:null==(e=d.T0)?0:e.Ap)&&(this.Ap=this.NB.T0.Ap);break;case 53:this.policy.Ob&&(a=OPa(new ON(b)).Wp)&&(this.vu||(this.Wp=a,this.vu=
  12339. new g.xv(this.PZ,a,this)),this.vu.start());break;case 60:this.CA=CPa(new ON(b));break;case 64:this.policy.oB&&(a=EPa(new ON(b)),this.policy.Cu(a));break;case 58:this.policy.Gk&&(a=sPa(new ON(b)))&&(this.bj=a,this.policy.cg&&3===a.bj&&(this.Wt=!0))}};
  12340. g.k.Or=function(a,b,c,d){c||this.timing.Or(d);if(21!==a)return!1;if(a=this.policy.hp)if(a*=this.info.ib[0].j.info.sb,b.totalLength+c!==d&&b.totalLength<a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Om}D7a(this,b);return!0};
  12341. g.k.lm=function(){return this.xhr.lm()};
  12342. g.k.VO=function(){return this.rz};
  12343. g.k.Zq=function(){return this.WJ()?2:1};
  12344. g.k.WJ=function(){if(!this.policy.N.ej||!isNaN(this.info.eh)&&0<this.info.eh)return!1;if(!this.xhr.Mt())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.zl)var a=!this.info.C;else this.xhr.mE()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);if(!a)return!1;if(isNaN(this.info.eh))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
  12345. this.info.ib[0].Pa)return!1;return!0};
  12346. g.k.sP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
  12347. g.k.jJ=function(){this.xhr&&(this.Hp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Hp};
  12348. g.k.VX=function(){this.xhr&&(this.Ar=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ar};
  12349. g.k.Yg=function(){return this.Bd.Yg()};
  12350. g.k.PZ=function(){if(!this.Ma()&&this.xhr){this.X1="heartbeat";var a=this.Bd;a.j+=2;this.FP()}};jZ.prototype.lB=function(a,b){switch(a){case 20:a=new ON(b);a={Ip:RN(a,1),videoId:UN(a,2),itag:RN(a,3),lmt:RN(a,4),xtags:UN(a,5),OB:RN(a,6),Qn:SN(a,8),Xr:RN(a,9),pob:RN(a,10),startMs:RN(a,11),durationMs:RN(a,12),Wr:RN(a,14),timeRange:VN(a,15,gPa),Fj:RN(a,16),BK:RN(a,17),clipId:UN(a,1E3)};this.wR(a);break;case 21:this.uR(b,!1);break;case 22:this.Zp(b);break;case 31:a=YN(b,JPa);this.fB(a);break;case 52:a=YN(b,PPa);this.hB(a);break;default:this.kR(a,b)}};
  12351. jZ.prototype.wR=function(){};
  12352. jZ.prototype.kR=function(){};g.y(kZ,XY);g.k=kZ.prototype;g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Sn()?0<d&&(this.ra&&(.2<c||1024>d?(this.C+=c,.2<c&&sR(this.Nc,.05,d,.05)):sR(this.Nc,c,d,c)),this.Ea&&(this.La+=d,this.Wa+=c)):(c=this.Nc,d=(a-this.Z)/1E3,c.K.Oi(1,(this.Z-this.j)/1E3),c.ra.Oi(1,d),this.qa=a,this.Na=b);XY.prototype.yv.call(this,a,b)};
  12353. g.k.XQ=function(a,b){YY(this,a,b);this.yv(a,b);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Sn()&&uR(this.Nc,this.La,this.C),tR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1))};
  12354. g.k.AK=function(a){YY(this,a,this.K);var b=(a-this.D)/1E3;MTa(this.Nc,b,0);this.Iu(b,0);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Sn()&&(this.C+=(a-this.D)/1E3,uR(this.Nc,this.La,this.C)),tR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1,!0))};
  12355. g.k.UF=function(a){a=a.LN||2147483647;2!==(a&2)&&(this.Ea=!1);1===(a&1)&&(this.ra=!0)};
  12356. g.k.LF=function(a){a=a.LN||2147483647;2===(a&2)&&(this.Ea=!1);1===(a&1)&&(this.ra=!1)};
  12357. g.k.gY=function(){return this.qa};
  12358. g.k.gJ=function(){var a=this.Ea?this.now()-this.D:0;return Math.max(1E3*this.Wa+a,1)};
  12359. g.k.nP=function(){return 1E3*this.La/this.gJ()};
  12360. g.k.Sn=function(){return 2048<this.B};
  12361. g.k.E0=function(a){this.Za=a};
  12362. g.k.Eq=function(){var a=XY.prototype.Eq.call(this);a.rbw=this.nP();a.rbe=+this.Ea;a.gbe=+this.ra;a.ackt=(this.Za-this.j).toFixed();return a};
  12363. g.k.pS=function(){};
  12364. g.k.uJ=function(){return NaN};
  12365. g.k.fY=function(){return this.j+1E3*this.snapshot.delay};g.y(H7a,jZ);g.k=H7a.prototype;
  12366. g.k.kR=function(a,b){switch(a){case 35:this.aq(b);break;case 44:this.QF(b);break;case 43:this.ER(b);break;case 53:this.CR(b);break;case 55:a=new ON(b);(a={timeline:VN(a,1,UPa),pda:VN(a,2,XPa)},a.timeline)&&a.timeline.W1&&this.Eb.IR(a.timeline.W1,a.timeline.Pda,a.pda);break;case 56:this.NF();break;case 57:this.PF(b);break;case 42:this.nR(b);break;case 45:this.SF(b);break;case 59:this.OF(b);break;case 51:this.TF(b);break;case 49:this.UF(b);break;case 50:this.LF(b);break;case 47:this.RF(b);break;case 58:this.Em(b);
  12367. break;case 61:this.Eb.Fd.E0((0,g.EC)())}};
  12368. g.k.TF=function(a){a=new ON(a);a={Gqb:XN(a,1,fPa),Fqb:XN(a,2,fPa)};this.Eb.TF(a)};
  12369. g.k.OF=function(a){var b=new ON(a);a=WN(b,1);var c=WN(b,2);b=WN(b,3);this.Eb.OF(a,c,b)};
  12370. g.k.SF=function(a){a=SPa(new ON(a));this.Eb.SF(a)};
  12371. g.k.RF=function(a){a=YN(a,MPa);this.Eb.RF(a)};
  12372. g.k.nR=function(a){a=new ON(a);a={videoId:UN(a,1),formatId:VN(a,2,fPa),endTimeMs:RN(a,3),tob:RN(a,4),mimeType:UN(a,5),UY:VN(a,6,BPa),indexRange:VN(a,7,BPa),NO:VN(a,8,rPa)};this.Eb.nR(a)};
  12373. g.k.PF=function(a){a=XPa(new ON(a));this.Eb.PF(a)};
  12374. g.k.NF=function(){this.Eb.NF()};
  12375. g.k.aq=function(a){a=KPa(new ON(a));this.Eb.aq(a)};
  12376. g.k.CR=function(a){a=OPa(new ON(a));this.Eb.CR(a)};
  12377. g.k.QF=function(a){a=RPa(new ON(a));this.Eb.QF(a)};
  12378. g.k.ER=function(a){a={redirectUrl:UN(new ON(a),1)};this.Eb.ER(a)};
  12379. g.k.uR=function(a){var b=GN(a,0);if(1!==a.totalLength){a=a.split(1).Om;var c=this.B[b]||null;c&&a5a(this.Eb.Vf,b,c,a)}};
  12380. g.k.Zp=function(a){a=GN(a,0);var b=this.B[a]||null;b&&this.Eb.Zp(a,b)};
  12381. g.k.hB=function(a){this.Eb.hB(a)};
  12382. g.k.wR=function(a){var b=a.Ip,c=a.Qn,d=a.OB,e=a.BK,f=a.Fj,h=a.Xr,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Wr,q=a.clipId,r=G7a(a);a=Nnb.has(iK[""+a.itag]);this.B[b]=r;this.Eb.jB(r,a,{Ip:b,Qn:!!c,OB:null!=d?d:-1,Xr:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Wr:p,BK:e,Fj:f,clipId:q,timeRange:n})};
  12383. g.k.UF=function(a){a={LN:RN(new ON(a),1)};this.Eb.UF(a)};
  12384. g.k.LF=function(a){a={LN:RN(new ON(a),1)};this.Eb.LF(a)};
  12385. g.k.fB=function(a){this.Eb.fB(a)};
  12386. g.k.Em=function(a){a=sPa(new ON(a));this.Eb.Em(a)};g.y(lZ,g.I);g.k=lZ.prototype;g.k.Pr=function(){!this.Ma()&&this.xhr&&(this.qm(),kab(this.Eb,this))};
  12387. g.k.Eu=function(){};
  12388. g.k.po=function(){if(!this.Ma()&&this.xhr){var a=this.KP();5===a?fZ(this.Bd):this.Gc(a);this.Bd.B.stop();var b;null==(b=this.yG)||b.stop()}};
  12389. g.k.KP=function(){if(gZ(this.Bd,this.xhr.status,this.Wt?this.Fd.G:this.xhr.Jx(),this.info.Vt(),this.Wt))return 5;this.qm();if(this.U0)return 3;o7a(this.Bd,this.xhr.lm(),0);this.policy.Jb&&oab(this.Eb);return 4};
  12390. g.k.qm=function(){var a=this.xhr;if(a.Dr()){a=a.Ux();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
  12391. this.zl.feed(a)}};
  12392. g.k.lB=function(a,b){this.Fd.policy.j&&21===a&&(this.Fd.G=!0);this.rda.lB(a,b)};
  12393. g.k.Or=function(a,b,c,d){this.Fd.policy.j&&21===a&&(this.Fd.G=!0);c||this.Fd.Or(d);return!1};
  12394. g.k.aq=function(a){this.Eb.aq(a)};
  12395. g.k.CR=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.yG)||b.dispose();this.qS=a;a.l0&&(this.yG=new g.xv(this.OZ,a.l0,this));this.OZ()}};
  12396. g.k.OZ=function(){var a;if(null!=(a=this.qS)&&a.items){var b;null==(b=this.yG)||b.start();if(this.Fd.Sn()){a=this.Fd.gJ();b=this.Fd.nP();var c=J7a(this,a);if(!(b>c.tK||0<c.NQ&&this.info.ZO()>c.NQ)){this.rS=(0,g.EC)();var d;null==(d=this.yG)||d.stop();this.policy.Jb&&(d=this.Eb,a={Sv:Math.round(b*a/1E3),gy:a},d.policy.Jb&&(d.Ca=a,d.kq++));this.Bd.mH(!1)}}}};
  12397. g.k.QF=function(a){this.Eb.QF(a)};
  12398. g.k.ER=function(a){this.U0=!0;this.info.resource.Vk(this.ge,a.redirectUrl)};
  12399. g.k.UF=function(a){this.Fd instanceof kZ&&this.Fd.UF(a)};
  12400. g.k.LF=function(a){this.Fd instanceof kZ&&this.Fd.LF(a)};
  12401. g.k.IR=function(a,b,c){this.Eb.IR(a,b,c,this.rr())};
  12402. g.k.nR=function(a){if(yV(this.policy)){var b=a.formatId,c=G7a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new iQ((null==(d=a.UY)?void 0:d.first)||0,(null==(e=a.UY)?void 0:e.nZ)||0),h,l;d=new iQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.nZ)||0);this.manifest.N.get(c)||(c=a.NO||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=KQ(""),c=JQ(c,null),HQ(a,new FQ(b,c,f,d)))}};
  12403. g.k.SF=function(a){this.Eb.SF(a)};
  12404. g.k.fB=function(a){this.Eb.fB(a)};
  12405. g.k.OF=function(a,b,c){this.Eb.OF(a,b,c)};
  12406. g.k.PF=function(a){2===a.scope&&(this.qda=a);this.Eb.PF(a)};
  12407. g.k.NF=function(){this.sW=!0;this.Eb.NF()};
  12408. g.k.TF=function(a){this.policy.Vm&&this.Eb.TF(a)};
  12409. g.k.RF=function(a){this.Eb.RF(a,this.rr())};
  12410. g.k.Em=function(a){this.policy.DC&&(this.policy.cg&&3===a.bj&&(this.Wt=!0),this.Eb.Em(a))};
  12411. g.k.canRetry=function(){this.Ma();return this.Bd.canRetry(!1)};
  12412. g.k.dispose=function(){if(!this.Ma()){g.I.prototype.dispose.call(this);this.Bd.dispose();var a;null==(a=this.yG)||a.dispose();this.Gc(-1);this.Yy()}};
  12413. g.k.Gc=function(a){this.state=a;kab(this.Eb,this)};
  12414. g.k.Vt=function(){return this.info.Vt()};
  12415. g.k.SN=function(){return this.sW};
  12416. g.k.qP=function(){return this.qda};
  12417. g.k.jB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!b&&(this.rl=c.Xr,this.IG=c.startMs);var d=0;this.policy.xf&&this.QZ&&this.clipId&&(d=rY(this.QZ,this.clipId)/1E3);this.Vf.jB(a,b,c,d);this.Vf.Vc.get(a).uD=!0};
  12418. g.k.Zp=function(a,b){this.Vf.Zp(a,b)};
  12419. g.k.hB=function(a){this.requestIdentifier=a};
  12420. g.k.Ek=function(a){return this.Vf.Ek(a)};
  12421. g.k.Gn=function(a){return this.Vf.Gn(a)};
  12422. g.k.il=function(a){return this.Vf.il(a)};
  12423. g.k.Yq=function(){return this.Vf.Yq()};
  12424. g.k.Zq=function(){return 1};
  12425. g.k.rr=function(){return this.Fd.requestNumber};
  12426. g.k.oP=function(){return this.requestIdentifier};
  12427. g.k.OX=function(){return this.clipId};
  12428. g.k.Le=function(){return this.ge.Le()};
  12429. g.k.k_=function(){this.Yy()};
  12430. g.k.Yy=function(){this.Fd.deactivate();var a;null==(a=this.xhr)||a.abort()};
  12431. g.k.isComplete=function(){return 3<=this.state};
  12432. g.k.iZ=function(){return 3===this.state};
  12433. g.k.ym=function(){return 5===this.state};
  12434. g.k.jZ=function(){return 4===this.state};
  12435. g.k.HY=function(){return this.isComplete()};
  12436. g.k.Xt=function(){return 1<=this.state};
  12437. g.k.xw=function(){return 0};
  12438. g.k.MX=function(){var a;return null==(a=this.info.data)?void 0:a.PN};
  12439. g.k.FP=function(){};
  12440. g.k.hY=function(){return r$a(this.info)};
  12441. g.k.Yg=function(){return this.Bd.Yg()};
  12442. g.k.er=function(){var a=p7a(this.Bd);Object.assign(a,s$a(this.info));a.req="sabr";a.rn=this.rr();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Dl?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.qf())&&(a.msg=b);this.rS&&(c=J7a(this,this.rS-this.Fd.gY()),a.letm=c.T9,a.mrbps=c.tK,a.mram=c.NQ);return a};
  12443. g.k.jY=function(){return{rl:this.rl,IG:this.IG,Lp:this.info.Lp()}};K7a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.EC)()};g.y(V7a,g.aF);g.k=V7a.prototype;
  12444. g.k.yR=function(a,b,c,d){if(this.N&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Zy);this.N.FR(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Ca.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.Ca.set(a.Pa,d)}this.policy.je&&(c=this.ra&&a.Pa===this.ra.Pa+1,this.ra=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.Vg.event&&"predictStart"!==this.j.Vg.event,e=a.Vg||null,f=this.qa.j.index.Cd()<=
  12445. a.Pa,h=this.manifest.isManifestless&&this.policy.vy,e?(this.j={Vg:e,Pa:a.Pa,NE:!!b},f?nZ(this,e,a.Pa):h&&(c?d?nZ(this,e,a.Pa):"continue"===e.event||"stop"===e.event?$7a(this,a):nZ(this,e,a.Pa):nZ(this,e,a.Pa))):(d&&$7a(this,a),4===this.B&&oZ(this,5,"qend")))}};
  12446. g.k.xR=function(a,b,c){var d=this.qa.j.index.Cd()<=b;this.j={Vg:a,Pa:b,NE:c};d&&nZ(this,a,b)};
  12447. g.k.Cw=function(){this.N&&this.N.Cw()};
  12448. g.k.ma=function(a,b){this.ya.ma(a,b)};
  12449. g.k.qs=function(a,b){var c=this.qa.j.index.Di(a),d;if(d=0<=c){var e;d=(null==(e=oY(b.Uc,c,2))?void 0:e.kt)||""}if(d)return b.Ou(a,c),Y7a(this.ya,a,a,c),this.ma("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ma("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.y(sZ,g.I);sZ.prototype.Ko=function(a,b,c){c=void 0===c?{}:c;this.policy.jj=fTa(a,c,this.D,void 0===b?!1:b)};c8a.prototype.IK=function(a){var b=this;if(this.policy.aB){var c=new Set(a);c.size===this.Ea.size&&[].concat(g.qa(c)).every(function(d){return b.Ea.has(d)})||(this.ya.ma("lwnmow",{itagDenylist:[].concat(g.qa(a)).join(",")}),this.ya.Px(!!c.size),this.Y=-1,this.Ea=c,xZ(this,this.j),this.Sa=!0)}};
  12450. c8a.prototype.Ko=function(a,b,c){c=void 0===c?{}:c;var d=this.policy.jj;this.G.Ko(a,void 0===b?!1:b,c);if(d!==this.policy.jj){xZ(this,this.j);yZ(this);var e,f;d>this.policy.jj&&(null==(e=this.C)?0:lK(e.info))&&(null==(f=this.nextVideo)||!lK(f.info))&&(this.qa=!0)}};u8a.prototype.iP=function(a){var b=pK(a.info.j.info,this.manifest.Zb),c=a.info.Pa+this.D,d=1E3*a.info.startTime;if(this.policy.Sa)try{d=this.policy.Sa?1E3*ZRa(a):1E3*a.info.startTime}catch(h){.99<Math.random()&&this.logger&&(d=FN(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.zd(),encodedDataView:g.Kg(d,4)})),d=1E3*a.info.startTime}var e=a.info.clipId;if(this.policy.Sa){if(a.info.j.zm())var f=a.info.duration;else-1===a.D&&(a.D=bSa(a)),f=a.D||a.info.duration;f*=1E3}else f=
  12451. 1E3*a.info.duration;this.policy.Sa&&(0>d||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.zd(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,J7:f}};
  12452. u8a.prototype.rq=function(a){this.timestampOffset=a};F8a.prototype.dispose=function(){this.ra=!0};
  12453. F8a.prototype.Ma=function(){return this.ra};
  12454. g.y(FZ,Error);var ofb=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);IZ.prototype.skip=function(a){this.offset+=a};
  12455. IZ.prototype.mm=function(){return this.offset};g.k=Y8a.prototype;g.k.eY=function(){return this.B};
  12456. g.k.xo=function(){return this.B.length?this.B[this.B.length-1]:null};
  12457. g.k.Pk=function(){this.B=[];KZ(this);X8a(this)};
  12458. g.k.Lu=function(){this.bb=this.B.shift().info};
  12459. g.k.Gn=function(){return g.$r(this.B,function(a){return a.info})};
  12460. g.k.Ch=function(){return!!this.K.info.audio};
  12461. g.k.getDuration=function(){return this.K.index.Ft()};g.y(OY,aZ);g.k=OY.prototype;g.k.onStateChange=function(){this.Ma()&&(WX(this.Vf,this.formatId),this.j.dispose())};
  12462. g.k.er=function(){var a=U4a(this.Vf,this.formatId),b;var c=(null==(b=this.Vf.Vc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Vf.Vc.get(this.formatId))?void 0:d.jz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:V4a(this.Vf,this.formatId),isAnyMediaEndReceived:this.Vf.Lw(this.formatId)}};
  12463. g.k.QX=function(){return 0};
  12464. g.k.Qw=function(){return!0};
  12465. g.k.Ek=function(){return this.Vf.Ek(this.formatId)};
  12466. g.k.aG=function(){return[]};
  12467. g.k.il=function(){return this.Vf.il(this.formatId)};
  12468. g.k.Yg=function(){return this.lastError};
  12469. g.k.xw=function(){return 0};g.k=q9a.prototype;g.k.xo=function(){return this.D.xo()};
  12470. g.k.Lu=function(a){this.D.Lu(a);var b;null!=(b=this.N)&&(b.C=y8a(b,b.md,b.nB,b.C,a),b.B=a,b.G=(0,g.EC)());this.sb=Math.max(this.sb,a.info.j.info.sb||0)};
  12471. g.k.getDuration=function(){if(this.policy.B){var a=this.ya.dg();if(a)return tY(a)}return this.j.index.Ft()};
  12472. g.k.Pk=function(){QY(this);this.D.Pk()};
  12473. g.k.jP=function(){return this.D};
  12474. g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.ib[0].Pa:!1};
  12475. g.k.rq=function(a){var b;null==(b=this.N)||b.rq(a)};g.y(ZZ,g.I);ZZ.prototype.C=function(){15<this.B++||(this.j=!this.j,new Q9a(this.ya,this.policy,this.Nc,this.resource,this.j),this.delay.start())};
  12476. g.k=Q9a.prototype;g.k.Eu=function(){};
  12477. g.k.Pr=function(){};
  12478. g.k.po=function(){if(!this.done)if(this.done=!0,200===this.xhr.status&&this.xhr.lm()===this.size)this.ya.ma("rqs",this.getInfo());else{var a="net.connect";200<this.xhr.status?a="net.badstatus":this.xhr.Mt()&&(a="net.closed");this.onError(a)}};
  12479. g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());zX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.ma("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})};
  12480. g.k.getInfo=function(){var a=this.timing.Eq();a.shost=uP(this.location.base);a.pb=this.size;return a};g.y($Z,g.I);$Z.prototype.lQ=function(a,b){if(!XZ(a)||!a.j.fg())return!1;var c=this.C.Sa||F9a(a)||b<=this.policy.GC||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+F9a(a)+", health: "+b});
  12481. return c};
  12482. $Z.prototype.va=function(){g.I.prototype.va.call(this)};
  12483. var U9a=2/24;g.y(e_,g.I);e_.prototype.HK=function(a,b,c){var d;var e="m"===(null==(d=this.B)?void 0:d.reason)?"m":this.B&&i$a(this,this.B)?this.B.reason:"a";this.ya.HK(new rZ(a,e,c));c_(this.ya,b,a,!0)};
  12484. e_.prototype.W0=function(a){for(var b=g.u(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.D=[c],this.K=this.manifest.j[a],this.hf.B&&(this.Y=!0),new rZ(this.K,"m");this.D=[];return null};
  12485. e_.prototype.Ko=function(a,b,c){c=void 0===c?{}:c;this.j.Ko(a,void 0===b?!1:b,c)};f_.prototype.Vt=function(){return 1===this.requestType};
  12486. f_.prototype.ZO=function(){var a;return(null==(a=this.Eb)?void 0:a.ZO())||0};
  12487. f_.prototype.Lp=function(){var a;return!(null==(a=this.data)||!a.Im)};g.y(g_,g.I);g_.prototype.encrypt=function(a){(0,g.EC)();return w$a(this).encrypt(a,this.iv)};
  12488. g_.prototype.decrypt=function(a,b){(0,g.EC)();return w$a(this).decrypt(a,b)};x$a.prototype.decrypt=function(a,b,c){var d=this,e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:if(d.j.length&&!d.j[0].isEncrypted)return p.return();d.B=!0;d.Fm.Rd("omd_s");e=new Uint8Array(16);b?c?h=new nR(c,a):h=new mR(a):f=new lR(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ia(4);break}l=d.j.shift();if(!f){m=h.decrypt(EN(l.buffer),e);p.Ia(5);break}return g.z(p,f.decrypt(EN(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}q=d.Fm;
  12489. var r=l.videoId,t=l.Ip,v=l.formatId,w=new BN([n]),A;null==(A=h_(q.hd,r))||a5a(A,t,v,w);p.Ia(2);break;case 4:d.Fm.Rd("omd_c"),i_(d),d.B=!1,d.Fm.vR(),g.Aa(p)}})};
  12490. x$a.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,Ip:b,formatId:c,buffer:d,isEncrypted:e});this.B||i_(this)};var H$a=!!Uint8Array.prototype.copyWithin,j_=[],y$a=[],B$a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l_=[],k_=[],m_=[],z$a=[];g.y(J$a,jZ);g.k=J$a.prototype;g.k.vR=function(){this.hd.vR()};
  12491. g.k.kR=function(a,b){switch(a){case 10:var c=YN(b,HPa);a=c.uca;var d=!1;switch(a){case 0:this.D=!c.h0.K9;this.iv=c.h0.iv;break;case 2:break;case 23:var e=this.hd;c=c.s$;e.Rd("omp_r");c.videoId&&(e.Fu=c.videoId);e.Fu!==e.videoData.videoId&&(e.videoData.Wea=e.Fu,e.ma("ompp","vid."+e.Fu));e.HQ=!0;break;case 24:c=this.hd;c.Rd("omp_c");c.HQ=!1;c.BG=!1;var f=null==(e=c.Wf)?void 0:e.get(c.Fu);c.notifySubscribers(c.Fu);null!=f&&(f.j=!0);o_(c);break;default:d=!0}this.hd.tm&&this.hd.ma("ombup","id.10;pt."+
  12492. a+";len."+b.totalLength+(d?";ignored.1":""));this.C=a;break;case 11:M$a(this,b);break;case 12:this.uR(b,!0);break;case 37:b=YN(b,IPa);(b.W6||b.PT)&&b.videoId&&this.hd.KX.set(b.videoId,b);break;case 60:this.rR(b);break;case 64:this.Cu(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=YN(b,MPa),this.hd.playbackStartPolicy=b);break;case 35:this.aq(b);break;default:this.hd.tm&&this.hd.ma("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
  12493. g.k.fB=function(a){this.hd.AZ=a};
  12494. g.k.rR=function(a){a=YN(a,CPa);this.hd.rR(a)};
  12495. g.k.Cu=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=YN(a,EPa),this.hd.Cu(a))};
  12496. g.k.wR=function(a){var b=a.Ip,c=a.Qn,d=a.OB,e=a.Fj,f=a.Xr,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Wr,p=G7a(a),q=Nnb.has(iK[""+a.itag]);c&&this.Rd(q?"oais_r":"ovis_r");var r=void 0!==this.j[p];this.hd.tm&&this.hd.ma("ombup","id.20;hid."+b+";fid"+p);var t=a.videoId||"";this.B[b]=p;this.G[b]=t;r||(this.j[p]={videoId:t,AY:!1,Ch:q,headers:[]});this.j[p].headers.push(a);this.hd.jB(t,p,q,{Ip:b,Qn:!!c,OB:null!=d?d:-1,Xr:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Wr:null!=n?n:0,Fj:e,timeRange:m})};
  12497. g.k.uR=function(a,b){var c=GN(a,0);this.hd.tm&&this.hd.ma("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength){a=a.split(1).Om;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.Lh(this.j[d].Ch?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
  12498. g.k.Zp=function(a){var b=GN(a,0);this.hd.tm&&this.hd.ma("ombup","id.22;len."+a.totalLength+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Ip:b,formatId:a,isEncrypted:!1,g8:!0});d.B||i_(d)}else this.hd.Zp(c,b,a)};
  12499. g.k.hB=function(a){this.hd.hB(a)};
  12500. g.k.BR=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D;return g.G(function(F){switch(F.j){case 1:c.hd.BR();d=EN(a);if(!b){f=d;F.Ia(2);break}return g.z(F,W$a(c.hd,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.hd.enableCompression){F.Ia(4);break}h=c.hd.U();m=null==(l=performance)?void 0:l.now();return g.z(F,I$a(e,h.Id),5);case 5:e=F.B,c.hd.ma("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Id,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=YN(e,qPa)}catch(H){return q=H instanceof
  12501. Error?{name:H.name,message:H.message}:{},q.webcrypto=""+ +!!tN(),q.enc=""+ +c.D,r=new WJ("onesie.response.parse",q),F.return(Promise.reject(r))}if(1!==p.U_)return t={st:p.U_,webcrypto:""+ +!!tN(),textencoder:""+ +!!g.Ta.TextEncoder},v=new WJ("onesie.response.badproxystatus",t),F.return(Promise.reject(v));if(200!==p.OY)return w={st:p.OY},A=new WJ("onesie.response.badstatus",w),F.return(Promise.reject(A));D=g.LN(p.body);return F.return(D)}})};
  12502. g.k.aq=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=YN(a,KPa),this.hd.aq(a))};
  12503. g.k.Rd=function(a){this.hd.Rd(a)};
  12504. g.k.Lh=function(a){return this.hd.Lh(a)};
  12505. g.k.L=function(a){return this.hd.L(a)};g.y(q_,g.I);g.k=q_.prototype;g.k.OX=function(){return""};
  12506. g.k.Yq=function(a){var b,c;return(null==(c=null==(b=this.Wf)?void 0:b.get(a))?void 0:c.Yq())||[]};
  12507. g.k.il=function(a,b){var c;return!(null==(c=h_(this,b))||!c.il(a))};
  12508. g.k.Ek=function(a,b){var c;return(null==(c=h_(this,b))?void 0:c.Ek(a))||[]};
  12509. g.k.Gn=function(a,b){var c;return(null==(c=h_(this,b))?void 0:c.Gn(a))||[]};
  12510. g.k.Gc=function(a){this.state=a;this.notifySubscribers()};
  12511. g.k.Vt=function(){return!1};
  12512. g.k.SN=function(){return!1};
  12513. g.k.qP=function(){};
  12514. g.k.Rd=function(a){this.ea.Rd(a)};
  12515. g.k.Lh=function(a){return this.ea.Lh(a)};
  12516. g.k.Or=function(a,b,c,d){c||this.Fd.Or(d);return!1};
  12517. g.k.lB=function(a,b){this.Fm.lB(a,b)};
  12518. g.k.lR=function(){this.Rd("orfb");this.UJ=!0;if(X$a(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.lm(),rt:(1E3*b7a(this.Fd)).toFixed(),shost:g.fo(this.LR),trigger:"o1"};this.ma("pathprobe",VJ(a))}};
  12519. g.k.BR=function(){this.Rd("opr_r");this.FY=!0};
  12520. g.k.jB=function(a,b,c,d){if(this.Wf){if(!this.Wf.has(a)){var e=new UX(this);this.Wf.set(a,e);g.N(this,e)}var f;null==(f=this.Wf.get(a))||f.jB(b,c,d)}o_(this)};
  12521. g.k.rR=function(a){this.CA=a};
  12522. g.k.Cu=function(a){this.W.Cu(a)};
  12523. g.k.aq=function(a){a.videoId&&this.d_.set(a.videoId,a)};
  12524. g.k.vR=function(){if(this.Wf)for(var a=g.u(this.Wf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Wf.get(b.value))||c.ZA()}};
  12525. g.k.ma=function(a,b,c){this.ea.ma(a,b,void 0===c?!1:c)};
  12526. g.k.Zp=function(a,b,c){var d;null==(d=h_(this,a))||d.Zp(b,c)};
  12527. g.k.hB=function(a){this.L0.set(a.videoId,a)};
  12528. g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L;return g.G(function(M){switch(M.j){case 1:a.logger.debug("Onesie fetch started.");a.rH?a.ZN.start():a.XF.start();a.Rd("or_i");b=a.W.experiments.fb("html5_onesie_verbose_timing");c={};d=(0,g.EC)();e=function(R){b&&(c[R]=(0,g.EC)()-d)};
  12529. e("loc_s");if(f=O$a(a.videoData,a.eA)){M.Ia(2);break}e("loc_async");h=g.EI(a.W.experiments,"html5_onesie_redirector_timeout_ms");return g.z(M,P$a(a.videoData,a.eA,h),3);case 3:f=M.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new WJ("onesie.unavailable.hotconfig",l),a.pj(m),M.return(a.wq);a.X0=uP(f);e("loc_e");n=g.$R(a.W,g.qT(a.videoData));if(!n.j){p=n.getValue();M.Ia(4);break}return g.z(M,n.j,5);case 5:p=M.B;case 4:q=p;e("oauth");r=R$a(a.playerRequest,a.W,a.videoData,
  12530. q,DX(a.X0));g.Ba(M,6);if(!L$a(a,r)){e("or_s_sync");a.VK=T$a(r,a.WF,a.W,a.ea,a.vO.onesieUstreamerConfig,null==(t=a.videoData.T_)?void 0:t.Oo);M.Ia(8);break}e("or_s_async");return g.z(M,V$a(r,a.WF,a.W,a.ea,a.vO.onesieUstreamerConfig,null==(v=a.videoData.T_)?void 0:v.Oo),9);case 9:a.VK=M.B;case 8:g.Ca(M,7);break;case 6:return w=g.Da(M),a.logger.info("Failed to create OnesieRequestProto."),a.pj(w),M.return(a.wq);case 7:return e("or_e"),b&&a.ma("oreqvt",c),a.enableCompression=a.VK.bQ.DO,a.Rd("osor"),A=
  12531. OZa(),D=g.mO(a.VK,aPa),F={method:"POST",body:D,headers:{"Content-Type":"text/plain",Referer:location.origin}},H=a.L("html5_onesie_media_capabilities"),Q$a(f,a.videoData,Z$a(a),H),a.logger.debug("Starting Onesie network request."),a.tm&&a.ma("ombrs","1"),L=a.ea.U().schedule,a.Fd=new ZY(a,{Nc:L,QI:a.tm,Iu:function(R,ea){a.ea.rG(R,ea)},
  12532. vp:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Fd.requestNumber),a.LR=f.Le(),Y6a(a.Fd,a.LR),a.Rd("or_p"),a.xhr=cZ(new eQ(f),A,a.Fd,hR,F),a.S_.start(),M.return(a.wq)}})};
  12533. g.k.Zq=function(){return this.L("html5_onesie_streaming_bw")?2:1};
  12534. g.k.Eu=function(){this.Rd("orh_r")};
  12535. g.k.Pr=function(){!this.UJ&&this.xhr.lm()&&this.lR();if(this.oA&&!this.rH){var a;null==(a=this.UK)||a.start()}this.qm()};
  12536. g.k.po=function(a){a=void 0===a?!1:a;this.logger.debug("onXhrDone");this.qm();if(!(this.Ma()||4<=this.state)){var b=p_(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.qf()){var d="onesie.net";b.msg=c.qf()}else 400<=c.status?d="onesie.net.badstatus":c.Jx()?this.FY||(d="onesie.response.noplayerresponse"):d=204===c.status?"onesie.net.nocontent":"onesie.net.connect";d?this.pj(new WJ(d,b)):(this.Rd("or_fs"),this.Fd.XQ((0,g.EC)(),c.lm(),0),this.Gc(4),this.tm&&this.ma("rqs",b));this.tm&&this.ma("ombre",
  12537. "ok."+ +!d);this.BG=!1;o_(this);K$a(this.Fm);if(!this.rH){this.XF.stop();var e;null==(e=this.UK)||e.stop()}var f;if(a=null==(f=this.eA)?void 0:Y3a(f))for(f=0;f<a.length;f++)this.ma("pathprobe",a[f])}};
  12538. g.k.MX=function(){};
  12539. g.k.k_=function(){if(this.playerResponse&&this.xhr&&this.Wf)for(var a=g.u(this.Wf.entries()),b=a.next();!b.done;b=a.next())if(b=g.u(b.value),b.next(),b.next().value.B){this.xhr.abort();this.po(!0);break}};
  12540. g.k.U=function(){return this.W};
  12541. g.k.L=function(a){return this.W.L(a)};
  12542. g.k.p$=function(){if(X$a(this)&&this.eA&&(!this.UJ||this.L("html5_onesie_probe_ec_hosts"))){var a=this.eA;if(a.W.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:uP(b.location);c&&CX(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:uP(d.location))&&CX(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:uP(e.location))&&CX(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:uP(c.location))&&CX(a,d,"o3",this)}}};
  12543. g.k.c7=function(){if(!this.Ma()&&!this.isComplete()){if(this.oA){if(1E3<(0,g.EC)()-this.Fd.Y){var a;null==(a=this.Fd)||a.AK((0,g.EC)());a=p_(this);if(this.W.zc()&&this.xhr instanceof h7a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.pj(new WJ("net.timeout",a))}}else 1E4<(0,g.EC)()-this.Fd.j&&(null==(b=this.Fd)||b.AK((0,g.EC)()),this.HP());this.isComplete()||this.ZN.start()}};
  12544. g.k.HP=function(){this.logger.info("Onesie request timed out");this.BG=!1;if(!o_(this)){var a=p_(this);a.timeout="1";this.pj(new WJ("onesie.request",a))}};
  12545. g.k.pj=function(a){var b=this;a=YJ(a);this.oA?this.ea.Wd(a):(this.wq.reject(a),this.oA=!0);K$a(this.Fm);this.rH||this.XF.stop();this.Rd("or_fe");var c,d;null==(c=this.eA)||null==(d=Y3a(c))||d.forEach(function(e){b.ma("pathprobe",e)});
  12546. this.Gc(5);this.dispose()};
  12547. g.k.isComplete=function(){return 3<=this.state};
  12548. g.k.jZ=function(){return 4===this.state};
  12549. g.k.HY=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Wf)?0:null==(c=b.get(a))?0:c.j)};
  12550. g.k.iZ=function(){return!1};
  12551. g.k.ym=function(){return 5===this.state};
  12552. g.k.notifySubscribers=function(a){for(var b=0;b<this.dH.length;b++)a&&this.dH[b].qe()!==a||kab(this.dH[b],this)};
  12553. g.k.hY=function(){var a,b;return(null==(a=this.VK)?void 0:null==(b=a.Ts)?void 0:b.aS)||0};
  12554. g.k.va=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();K$a(this.Fm);this.zl.dispose();var b;null==(b=this.UK)||b.dispose();this.Gc(-1);this.dH=[];g.I.prototype.va.call(this)};
  12555. g.k.qm=function(){try{var a=this.xhr;102400<a.lm()&&!this.cZ&&(this.Rd("or100k"),this.cZ=!0);if(a.Dr()){var b=a.Ux(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
  12556. this.tm&&this.ma("ombrss","len."+c);this.zl.feed(b)}if(this.Wf)for(var d=g.u(this.Wf.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Wf.get(f))||a.ZA();this.notifySubscribers(f)}}catch(h){this.pj(h)}};
  12557. g.k.rr=function(){return this.Fd.requestNumber};
  12558. g.k.oP=function(a){return this.L0.get(a)};
  12559. g.k.jY=function(){return{rl:-1,IG:-1,Lp:!1}};g.y(aab,g.I);g.k=aab.prototype;g.k.CG=function(a){this.qa=void 0;oab(this);mab(this,a)};
  12560. g.k.kQ=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].hY()-a)};
  12561. g.k.aq=function(a){this.B=a;this.qa=(0,g.EC)()+(a.backoffTimeMs||0)};
  12562. g.k.QF=function(a){if(void 0!==a.action&&(0!==a.action||!this.La)){var b={};b.reason=a.Sca;b.action=a.action;switch(a.action){case 1:this.policy.K&&this.K&&this.K.QD(void 0,void 0,b);break;case 0:this.La=!0;this.ya.LI(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:case 6:b=this.ea;b.W.experiments.fb("enable_adb_handling_in_sabr")&&(b.pauseVideo(!0),b.DK());break;case 3:this.policy.iC&&(null!=(a=this.manifest.Z)&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}};
  12563. g.k.IR=function(a,b,c,d){if(this.policy.B){this.ya.ma("ssap",{rn:d,v:b,tl:qab(a)});var e=this.ya.dg();a={Us:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.Xj.add(c.type));e?nab(this,e,a):(this.ya.ma("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}};
  12564. g.k.PF=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.Xj.add(a.type)};
  12565. g.k.NF=function(){};
  12566. g.k.SF=function(a){if(void 0!==a.DS&&a.ES){var b=a.DS/a.ES;this.audioTrack.Z=!1;this.videoTrack.Z=!1;var c={wd:"sabr_seek",eF:!0,hT:!0};a.seekSource&&(c.seekSource=a.seekSource);UY(this.ya,b,c)}};
  12567. g.k.fB=function(a){a.JJ&&a.KJ&&XSa(this.manifest,a.JJ,a.KJ)};
  12568. g.k.Em=function(a){this.ya.Em(a)};
  12569. g.k.OF=function(a,b,c){this.policy.j&&this.ya.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.Xj.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.Xj.has(a)&&this.Xj.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.Wy=""))};
  12570. g.k.TF=function(){};
  12571. g.k.RF=function(a,b){RZa(this.policy,a,4,b)};
  12572. g.k.qe=function(){return this.ea.qe()||""};
  12573. g.k.ZO=function(){var a=1E3*TZ(this.audioTrack,!0),b=1E3*TZ(this.videoTrack,!0);return Math.min(a,b)};
  12574. g.k.Dm=function(a,b){this.ya.ma(a,b)};
  12575. g.k.FJ=function(a){Iab(this.ya,m8a(this.ra,a))};
  12576. g.k.va=function(){g.I.prototype.va.call(this);this.B=void 0;mab(this,!0);this.j=[]};rab.prototype.lf=function(a,b){if(this.D)return wab(this,b);if(b=VY(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.ym()&&0===a.info.eh&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
  12577. rab.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.y(g.u_,g.I);g.k=g.u_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
  12578. a=a||0;yV(this.policy)||(b=AZ(this.j),Lab(this.ea,new rZ(b.video,b.reason)),this.ea.yx(new rZ(b.audio,b.reason)));this.manifest.isManifestless&&e$a(this.D);this.K&&tab(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;var d=!this.manifest.isManifestless;this.policy.py&&(d=d||this.manifest.Zd);this.currentTime=d?a:b;if(this.policy.C){var e;(null==(e=this.ra)?0:$$a(e,this.qe()||""))&&Aab(this)&&zab(this,this.videoTrack)&&zab(this,this.audioTrack)&&pab(this.qa,this.ra)}else this.Ca&&
  12579. (Bab(this,this.videoTrack),Bab(this,this.audioTrack),T4a(this.Ca),delete this.Ca);c?(this.policy.Be?(this.Jb=c,x_(this,c)):x_(this,!1),g.yv(this.rF)):(c=0===this.currentTime,b_(this.D,this.videoTrack,this.videoTrack.j,c),b_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&dab(this.qa,!0),this.seek(this.currentTime,{}).xl(function(){}),this.timing.tick("gv"));
  12580. (this.manifest.cf||this.manifest.Gh||this.manifest.Za||this.manifest.Ob||this.manifest.qc)&&this.ea.qG(this.manifest)};
  12581. g.k.resume=function(){if(this.isSuspended||this.Np){this.logger.debug("Resumed.");this.KI=this.Np=this.isSuspended=!1;try{this.lf()}catch(a){g.IE(a)}}};
  12582. g.k.Ez=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");Eab(this);KK(this.ea)&&(this.Z=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ea&&this.ma("loader",{setsmb:1}),this.policy.Ga=!0):this.policy.Be?x_(this,this.Jb):x_(this,!1);this.Pk()};
  12583. g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.Ma()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Bc&&(this.Wa=!0));if(yV(this.policy)){var e=this.C.W0(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
  12584. this.ea.yx(e)}else{var f=l8a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
  12585. this.ea.yx(new rZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Di(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){D9a(this.audioTrack,c,NaN,NaN);OQ(this.manifest,c,!1);return}this.ea.Go()}};
  12586. g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)};
  12587. g.k.HK=function(a){var b=a.j.info.Ch();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+tK(a.j.info)});
  12588. b?this.ea.yx(a):Lab(this.ea,a)};
  12589. g.k.FJ=function(a){pQ(a.ib[a.ib.length-1])&&Iab(this,m8a(this.j,a.ib[0].j))};
  12590. g.k.sJ=function(){return this.ea.sJ()};
  12591. g.k.Em=function(a){if(this.policy.cg)if(1===a.bj)this.Sa=0;else{if(2===a.bj||3===a.bj){var b=!1;if(3===a.bj){++this.Sa;var c;this.Tb=null!=(c=a.H0)?c:Infinity;this.ea.OG(this.Sa);(b=d$a(this))&&this.OA(!0)}this.ea.GR(!0,b)}}else this.ea.Em(a)};
  12592. g.k.Wz=function(){return this.ea.Wz()};
  12593. g.k.Sk=function(){return this.ea.Sk()};
  12594. g.k.KR=function(a){this.ea.KR(a)};
  12595. g.k.Fca=function(){var a,b=null==(a=this.ea.Se())?void 0:a.getCurrentTime();b?this.ea.ma("rms",{cta:b}):g.yv(this.Ob)};
  12596. g.k.lf=function(){Hab(this);if(this.Qa&&HK(this.Qa)&&!this.Qa.dk()){var a=NZ(this.videoTrack);a=this.policy.zC&&a&&nQ(a);this.manifest.isManifestless&&this.manifest.C&&LQ(this.manifest)?(this.Z=LQ(this.manifest),this.Qa.vl(this.Z)):PQ(this.manifest)&&!a?isNaN(this.Z)?(this.Z=this.currentTime+3600,this.Qa.vl(this.Z)):this.Z<=this.currentTime+1800&&(this.Z=Math.max(this.Z+1800,this.currentTime+3600),this.Qa.vl(this.Z)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
  12597. (!isFinite(this.Z)||this.Z!==a)&&0<a&&(this.Qa.vl(a),this.Z=a))}if(!this.Ma())if(RSa(this.manifest)&&this.manifest.ym()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.bb?{rc:b.wg}:{rc:b.wg.toString()},1)}else if(this.policy.C)a:{try{iab(this.qa);this.manifest.isManifestless&&this.policy.G&&TY(this.B);if(yV(this.policy)&&!EK()&&this.policy.Sm&&this.Qa&&!LK(this.Qa)&&this.videoTrack.Ga&&this.audioTrack.Ga){this.ma("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.qb,
  12598. a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.qb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!LK(c)&&e&&d&&(XDa(c,d.info,e.info,this.policy.rb),Fab(this,c))}var f;(null==(f=this.Qa)?0:LK(f))&&this.fG();yV(this.policy)||w_(this);dab(this.qa)}catch(l){g.JE(l);b=l;if(this.policy.tC&&b.message.includes("changeType")){this.ma("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.policy.Wy?this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1):this.LI({reason:"exp",
  12599. ename:b.name,emsg:b.message})}Zab(this);g.yv(this.Za)}else if(!this.manifest.B||!J9a(this.videoTrack)&&!J9a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Za?c=!1:(this.Pk(),this.ea.seekTo(Infinity,{wd:"checkLoaderTracksSync",Lq:!0}),c=!0),!c){Hab(this);this.manifest.isManifestless&&(K9a(this.videoTrack),K9a(this.audioTrack),TY(this.B),(c=VY(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.Sj,this.ma(c===this.policy.N.ej?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.ej,dfs:this.policy.Sj},
  12600. !0)));if(this.Qa)this.fG();else if(this.policy.D){var h;c=!1;if(this.policy.Ty)for(d=g.u([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=VY(f);e&&f.xo()!==NZ(f);e=VY(f))f.Lu(e);c=c||!!e}else(b=VY(this.videoTrack))&&this.videoTrack.Lu(b),(h=VY(this.audioTrack))&&this.audioTrack.Lu(h);QZ(this.videoTrack)&&QZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&y_(this)}w_(this);b_(this.D,this.videoTrack,this.videoTrack.j,!1);b_(this.D,
  12601. this.audioTrack,this.audioTrack.j,!1);this.policy.Jz||Kab(this,this.videoTrack,this.audioTrack);W9a(this.D,this.videoTrack,this.audioTrack);W9a(this.D,this.audioTrack,this.videoTrack);Zab(this);this.K&&(b=this.K,b.D?(h=b.K+b.policy.Gv,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Ak)),b=Math.max(0,1E3*h-Date.now())):b=NaN,isNaN(b)||g.yv(this.qc,b));g.yv(this.Za)}};
  12602. g.k.LI=function(a){this.ea.LI(a)};
  12603. g.k.fG=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B,d=Nab(this);if(d){if(this.policy.Fs){if(!b.nw()){var e=VY(this.audioTrack);if(e){if(!t_(this,this.audioTrack,b,e.info))return;Qab(this,b,e)}}if(!c.nw()&&(e=VY(this.videoTrack))){if(!t_(this,this.videoTrack,c,e.info))return;Qab(this,c,e)}}this.jp||(this.jp=(0,g.EC)(),this.logger.debug(function(){return"Appends pause start "+a.jp+" reason "+d}),this.policy.j&&this.ma("apdps",{r:d}))}else if(this.jp&&(Mab(this,this.jp),this.jp=0),Oab(this),
  12604. e=!1,this.policy.B&&YZ(this.videoTrack)||!Sab(this,this.videoTrack,c)||(e=!0,N7a(this.timing),R7a(this.timing)),this.Qa&&!this.Qa.Kg()&&(this.policy.B&&YZ(this.audioTrack)||!Sab(this,this.audioTrack,b)||(e=!0,O7a(this.timing),S7a(this.timing)),!this.Ma()&&this.Qa)){if(!this.policy.Va&&QZ(this.videoTrack)&&QZ(this.audioTrack)&&HK(this.Qa)&&!this.Qa.dk()){c=!1;
  12605. c=NZ(this.audioTrack);if(this.policy.B){var f;b=null==(f=this.Ib)?void 0:sY(f,1E3*c.C);c=!(!b||b.clipId!==c.clipId);this.ma("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),ZDa(this.Qa),LTa(this.schedule))}e&&!this.Qa.isAsync()&&y_(this)}}};
  12606. g.k.f4=function(a){var b=this,c;if(this.policy.Bc&&a===(null==(c=this.Qa)?void 0:c.j)&&this.bb){var d;this.ea.ma("asl",{l:this.bb-this.currentTime,xtag:null==(d=NZ(this.audioTrack))?void 0:d.j.info.j});this.Wa=!1;this.bb=0}a.xm()&&0===a.Je().length&&(a.nz(),this.Qa&&!this.Qa.xm()&&(this.ea.U().zc()&&this.ea.ma("rms",{ld:"seek"}),this.Qa.N=performance.now(),this.ea.MO(),this.ea.U().zc()&&g.yv(this.Ob)));if(this.policy.La&&this.Qa){c=a===this.Qa.j;var e=a.mJ();if(e){if(!e.Rb||e.Ue)c=a.kc({a:c}),c.omt=
  12607. (this.getCurrentTime()+this.Kc()).toFixed(3),c.to=this.Kc(),this.ma("sbu",c);e.Ue&&!a.dk()&&setTimeout(function(){var f=a.Je(),h=wK(f,e.startTime+U9a),l=wK(f,b.currentTime);(0>h||h!==l)&&b.ma("sbu_mismatch",{b:vK(f),c:b.currentTime,s:e.zd()})},0)}}this.lf()};
  12608. g.k.Q$=function(a){if(this.Qa){var b=NZ(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.pP())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.Kg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=rQ(b),this.policy.B&&this.Ib&&this.Ib.Nz()&&(a.ccid=this.Ib.Nz()));this.handleError("fmt.unplayable",a,1)}};
  12609. g.k.zx=function(a){this.ea.zx(a)};
  12610. g.k.yR=function(a,b,c){this.manifest.isManifestless&&n9a(this,b,c,!!a.info.video,!0)};
  12611. g.k.xR=function(a,b,c,d){a.info.video&&this.G.xR(b,c,d)};
  12612. g.k.IK=function(a){this.j.IK(a)};
  12613. g.k.FE=da(19);g.k.LL=function(a){this.Ib=a;var b;null!=(b=this.audioTrack.N)&&(b.Uc=a);null!=(b=this.videoTrack.N)&&(b.Uc=a);b=this.qa;b.N&&(b.ya.ma("ssap",{addcacheclips:1,v:b.N.version,tl:qab(b.N.Us)}),nab(b,a,b.N),b.N=void 0)};
  12614. g.k.dg=function(){return this.Ib};
  12615. g.k.bF=function(){return this.videoTrack.Z||this.audioTrack.Z};
  12616. g.k.seek=function(a,b){if(this.Ma())return ng();if(this.bF())return ng("seeking to head");Hab(this);this.Rp=(0,g.EC)();yV(this.policy)||w_(this,a);this.Qa&&this.Qa.j&&this.Qa.B&&!this.ea.getVideoData().cW&&(this.Qa.j.isLocked()||this.Qa.B.isLocked())&&this.ea.Go({reattachOnLockedBuffer:1,vsb:""+this.Qa.B.isLocked(),asb:""+this.Qa.j.isLocked()});var c=this.currentTime;this.currentTime=this.B.seek(a,b);pZ(this.G,a,c);y_(this);return mg(this.currentTime)};
  12617. g.k.kQ=function(a){return this.policy.C&&this.qa.kQ(a)};
  12618. g.k.CG=function(a){this.qa.CG(a)};
  12619. g.k.getCurrentTime=function(){return this.currentTime};
  12620. g.k.YO=function(){return this.audioTrack.j.info};
  12621. g.k.oE=function(){return this.videoTrack.j.info};
  12622. g.k.XO=function(){return this.audioTrack.j.info.qb};
  12623. g.k.aP=function(){return this.videoTrack.j.info.qb};
  12624. g.k.va=function(){try{this.Ez();QY(this.audioTrack);QY(this.videoTrack);var a;null==(a=this.audioTrack.N)||C8a(a);var b;null==(b=this.videoTrack.N)||C8a(b);g.I.prototype.va.call(this)}catch(c){g.IE(c)}};
  12625. g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=XJ(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.Fs=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new WJ(a,b,c);g.fb(this);VJ(b.details);this.ea.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
  12626. g.k.kc=function(){var a=NZ(this.audioTrack),b=NZ(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.isSeeking(),lmf:this.j.j.isLocked(),lbw:NTa(this.schedule).toFixed(3),lhd:vR(this.schedule).toFixed(3),lst:(1E9*(this.schedule.G.Zg()||0)).toFixed(3),laa:a?a.zd():"",lva:b?b.zd():"",lar:this.audioTrack.B?this.audioTrack.B.zd():"",lvr:this.videoTrack.B?this.videoTrack.B.zd():"",laq:""+RZ(this.audioTrack),lvq:""+RZ(this.videoTrack)};this.Qa&&!this.Qa.Kg()&&this.Qa.j&&this.Qa.B&&(a.lab=vK(this.Qa.j.Je()),
  12627. a.lvb=vK(this.Qa.B.Je()));this.jp&&(a.lapt=((0,g.EC)()-this.jp).toFixed(0),a.lapr=Nab(this));this.La&&(a.lapmbht=((0,g.EC)()-this.La).toFixed(0));return a};
  12628. g.k.Pk=function(){try{this.policy.C&&this.qa.CG(!1),this.audioTrack.Pk(),this.videoTrack.Pk()}catch(a){g.IE(a)}this.policy.D=""};
  12629. g.k.TO=function(){return LY(this.Y)};
  12630. g.k.ma=function(a,b,c){this.ea.ma(a,b,void 0===c?!1:c)};
  12631. g.k.qe=function(){return this.ea.qe()};
  12632. g.k.Lq=function(a,b){a/=b;isNaN(this.timestampOffset)&&ebb(this,a-Math.min(a,this.policy.aD));return(a-this.timestampOffset)*b};
  12633. g.k.Kc=function(){return this.timestampOffset};
  12634. g.k.isSeeking=function(){return this.B.isSeeking()};
  12635. g.k.Cw=function(){this.G.Cw()};
  12636. g.k.Ko=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?{}:c;yV(this.policy)?this.C.Ko(a,b,c):this.j.Ko(a,b,c)};
  12637. g.k.GG=function(a,b){if(!this.N)return!1;var c=this.videoTrack.j.index.Di(a);return this.N.GG(a,b,c)};
  12638. g.k.qs=function(a,b){if(this.N&&this.G.qs(a,this.N))return ebb(this,this.timestampOffset-b),y_(this),!0;b=this.videoTrack.j.index.Di(a);this.handleError("ad.skipfailed",{dec:!!this.N,t:a.toFixed(3),sq:b});return!1};
  12639. g.k.getManifest=function(){return this.manifest};
  12640. g.k.isOffline=function(){return!!this.ea.getVideoData().cotn};
  12641. g.k.rG=function(a,b){this.ea.rG(a,b)};
  12642. g.k.tS=function(a){var b=this.ea.getVideoData().ji;if(b){var c=this.D;c.qh=a;c.ji=b;d_(this)}};
  12643. g.k.mK=function(a){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.B.B=!1;this.ea.mK(a)};
  12644. g.k.SS=function(a){this.B.SS(a-this.Kc())};
  12645. g.k.eO=function(){this.ea.eO()};
  12646. g.k.OA=function(a){a!==this.policy.yf&&((this.policy.yf=a)||this.lf())};
  12647. g.k.mS=function(a,b){var c=this.audioTrack.Sb,d=this.videoTrack.Sb;c&&d&&(c.remove(a,b),d.remove(a,b))};
  12648. g.k.Go=function(a){this.ea.Go(a)};
  12649. g.k.Px=function(a){this.ea.Px(a)};g.k=g.z_.prototype;g.k.Oz=function(a,b,c,d,e,f){return this.Uc.Oz(a,b,c,d,e,f)};
  12650. g.k.BJ=function(a,b,c,d,e,f){return this.Uc.BJ(a,b,c,d,e,f)};
  12651. g.k.tP=function(a){return this.Uc.tP(a)};
  12652. g.k.DJ=function(a){this.Uc.DJ(a)};
  12653. g.k.QD=function(a,b,c){return this.Uc.QD(a,b,c)};
  12654. g.k.Cw=function(){this.Uc.Cw()};
  12655. g.k.GG=function(a,b,c){return this.Uc.GG(a,b,c)};
  12656. g.k.Ou=function(a,b){this.Uc.Ou(a,b)};
  12657. g.k.xS=function(){this.Uc.xS()};
  12658. g.k.pE=da(45);g.k.Vk=function(a,b,c,d){this.Uc.Vk(a,b,c,d)};
  12659. g.k.pH=da(43);g.k.FR=function(a,b,c,d,e,f,h,l,m){this.Uc.FR(a,b,c,d,e,f,h,l,m)};
  12660. g.k.VS=function(a){this.Uc.VS(a)};
  12661. g.k.Au=function(a){return this.Uc.Au(a)};
  12662. g.k.BO=function(a){return this.Uc.BO(a)};g.y(A_,g.aF);g.y(B_,A_);B_.prototype.K=function(a,b){if(a&&b){var c=1*Number(no(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.jd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.yv(this.B))}};
  12663. B_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(sn),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.We(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
  12664. "rotated_need_key_info_ready",new GZ(d,"fairplay",!0))}this.j={}};
  12665. B_.prototype.va=function(){this.j={};A_.prototype.va.call(this)};g.y(C_,A_);
  12666. C_.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.EC)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length,
  12667. ignore:this.D});0>=c?ibb(this,a):this.D||(this.j.push({time:b+c,info:a}),g.yv(this.B,c))}};
  12668. C_.prototype.va=function(){this.j=[];A_.prototype.va.call(this)};var y3={},qbb=(y3.DRM_TRACK_TYPE_AUDIO="AUDIO",y3.DRM_TRACK_TYPE_SD="SD",y3.DRM_TRACK_TYPE_HD="HD",y3.DRM_TRACK_TYPE_UHD1="UHD1",y3);g.y(mbb,g.I);g.y(sbb,g.aF);g.k=sbb.prototype;g.k.Yp=function(a){var b=this;this.Ma()||0>=a.size||(a.forEach(function(c,d){var e=XQ(b.B)?d:c;d=new Uint8Array(XQ(b.B)?c:d);XQ(b.B)&&Jbb(d);c=g.Kg(d,4);Jbb(d);d=g.Kg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),Ebb(this,","),D_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
  12669. g.k.error=function(a,b,c,d){this.Ma()||(this.publish("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));XJ(b)&&this.dispose()};
  12670. g.k.shouldRetry=function(a,b){return this.Ea&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
  12671. g.k.va=function(){this.j={};g.aF.prototype.va.call(this)};
  12672. g.k.kc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ga,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
  12673. g.k.getInfo=function(){var a=this.D.join();if(E_(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
  12674. g.k.Le=function(){return this.url};g.y(F_,g.I);g.k=F_.prototype;g.k.g4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
  12675. g.k.Yp=function(){this.N&&this.N(this.j.keyStatuses)};
  12676. g.k.onClosed=function(){this.Ma()||g.nB("xboxone")&&this.C&&this.C("closed")};
  12677. g.k.E_=function(a){this.G&&this.G(a.message,"license-request")};
  12678. g.k.D_=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
  12679. g.k.C_=function(){this.K&&this.K()};
  12680. g.k.update=function(a){var b=this;if(this.j)return(fR.isActive()?fR.Co("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,sO(function(c){Lbb(b,"t.update",c)}));
  12681. this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return iB()};
  12682. g.k.va=function(){this.j&&(this.Y?this.j.close().catch(g.JE):this.j.close());this.element=null;g.I.prototype.va.call(this)};g.y(G_,g.I);g.k=G_.prototype;g.k.FN=function(){var a=this;if(this.j.keySystemAccess)return(fR.isActive()?fR.Co("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ma())if(a.B=c,fR.isActive())fR.Co("emeset",function(){return a.element.setMediaKeys(c)});
  12683. else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
  12684. if(WQ(this.j))this.C=new (VQ())(this.j.keySystem);else if(YQ(this.j)){this.C=new (VQ())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else fR.isActive()&&this.ma("emev",{v:"01b"}),TB(this.G,this.element,["keymessage","webkitkeymessage"],this.l4),TB(this.G,this.element,["keyerror","webkitkeyerror"],this.j4),TB(this.G,this.element,["keyadded","webkitkeyadded"],this.i4);return null};
  12685. g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Nl?this.B.setServerCertificate(this.j.Nl):$Q(this.j)&&this.j.Wa?this.B.setServerCertificate(this.j.Wa):null:null};
  12686. g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();ZQ(this.j)?c=Mbb(c,this.j.Wa):$Q(this.j)&&(c=hbb(c)||new Uint8Array(0));b&&b("genreq");var e=fR.isActive()?fR.Co("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
  12687. var f=new F_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},sO(function(l){Lbb(f,"t.generateRequest",l)}));
  12688. return f}if(WQ(this.j))return Obb(this,c);if(YQ(this.j))return Nbb(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new F_(this.element,this.j,c,null,null,this.N)};
  12689. g.k.l4=function(a){var b=Pbb(this,a);b&&b.E_(a)};
  12690. g.k.j4=function(a){var b=Pbb(this,a);b&&b.D_(a)};
  12691. g.k.i4=function(a){var b=Pbb(this,a);b&&b.C_(a)};
  12692. g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
  12693. g.k.va=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.va.call(this);delete this.element};g.k=H_.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
  12694. g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
  12695. g.k.removeAll=function(){this.keys=[];this.values=[]};
  12696. g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
  12697. g.k.findIndex=function(a){return g.Eb(this.keys,function(b){return g.Wb(a,b)})};g.y(Sbb,g.aF);g.k=Sbb.prototype;g.k.saa=function(a){this.hj({onecpt:1});a.initData&&Vbb(this,new Uint8Array(a.initData),a.initDataType)};
  12698. g.k.Raa=function(a){this.hj({onndky:1});Vbb(this,a.initData,a.contentType)};
  12699. g.k.zx=function(a){this.hj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Ubb(this,a)};
  12700. g.k.oW=function(a){this.C.push(a);I_(this)};
  12701. g.k.createSession=function(a){var b=Xbb(this)?R8a(a):g.Kg(a.initData);this.B.get(b);this.Ga=!0;a=new sbb(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.FK,this);a.subscribe("keystatuseschange",this.Yp,this);a.subscribe("licenseerror",this.KK,this);a.subscribe("newlicense",this.z_,this);a.subscribe("newsession",this.A_,this);a.subscribe("sessionready",this.L_,this);a.subscribe("fairplay_next_need_key_info",this.u_,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
  12702. this.LT,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Jba,this);wbb(a,this.D)};
  12703. g.k.z_=function(a){this.Ma()||(this.hj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
  12704. g.k.A_=function(){this.Ma()||(this.hj({newlcssn:1}),this.C.shift(),this.Ga=!1,I_(this))};
  12705. g.k.L_=function(){if(WQ(this.j)&&(this.hj({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.qa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
  12706. g.k.Yp=function(a){if(!this.Ma()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(Ybb(this),this.La=!0);this.hj({onksch:1});var b=this.LT;if(!E_(a)&&g.VC&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(E_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!E_(a)||d)c=a.D;c=Dbb(c)}b.call(this,c);this.publish("keystatuseschange",
  12707. a)}};
  12708. g.k.FK=function(a,b){this.Ma()||this.publish("ctmp",a,b)};
  12709. g.k.u_=function(a,b){this.Ma()||this.publish("fairplay_next_need_key_info",a,b)};
  12710. g.k.KK=function(a,b,c,d){this.Ma()||(this.videoData.L("html5_log_drm_metrics_on_error")&&Ybb(this),this.publish("licenseerror",a,b,c,d))};
  12711. g.k.qw=function(){return this.Z};
  12712. g.k.LT=function(a){var b=g.dP("auto",a,!1,"l");if(this.videoData.El){if(bQa(this.Z,b))return}else if(cQa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.hj({updtlq:a})};
  12713. g.k.Jba=function(a){this.videoData.sabrLicenseConstraint=a};
  12714. g.k.va=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.JE):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.FK,this),b.unsubscribe("keystatuseschange",this.Yp,this),b.unsubscribe("licenseerror",this.KK,this),b.unsubscribe("newlicense",this.z_,this),b.unsubscribe("newsession",this.A_,this),b.unsubscribe("sessionready",this.L_,this),b.unsubscribe("fairplay_next_need_key_info",
  12715. this.u_,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.LT,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.aF.prototype.va.call(this)};
  12716. g.k.kc=function(){for(var a={systemInfo:this.j.kc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.kc());return a};
  12717. g.k.getInfo=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
  12718. g.k.hj=function(a,b){b=void 0===b?!1:b;this.Ma()||(VJ(a),(this.W.zc()||b)&&this.publish("ctmp","drmlog",a))};g.y(Zbb,g.I);g.k=Zbb.prototype;g.k.RI=function(){return!!this.kF};
  12719. g.k.YJ=function(){return this.B};
  12720. g.k.handleError=function(a){var b=this;dcb(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!ccb(this,a.errorCode,a.details))&&!hcb(this,a)){if("yt"!==this.Da.ra&&fcb(this,a)&&this.videoData.hp&&(0,g.EC)()/1E3>this.videoData.hp&&"hm"===this.Da.ra){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.hp;c.init=this.videoData.iU/1E3;c.now=(0,g.EC)()/1E3;c.systelapsed=((0,g.EC)()-this.videoData.iU)/1E3;
  12721. a=new WJ(a.errorCode,c,2);this.ea.Zf(a.errorCode,2,"SIGNATURE_EXPIRED",VJ(a.details))}if(XJ(a.severity)){var d;c=null==(d=this.ea.ya)?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(ecb(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Da.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else ecb(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.ea.Zf(a.errorCode,
  12722. a.severity,e,VJ(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Wd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.EC)(),zX(a,"manifest",function(h){b.K=!0;b.ma("pathprobe",h)},function(h){b.Wd(h.errorCode,h.details)}))}};
  12723. g.k.ma=function(a,b){this.ea.uc().ma(a,b)};
  12724. g.k.Wd=function(a,b){b=VJ(b);this.ea.uc().Wd(a,b)};kcb.prototype.SO=function(a){return a?{e0:vcb(this,a)}:{e0:DS}};
  12725. kcb.prototype.L=function(a){return this.W.L(a)};g.y(M_,g.I);M_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(Bob)?this.networkErrorCount++:this.nonNetworkErrorCount++};
  12726. M_.prototype.send=function(){if(!(this.C||0>this.j)){Bcb(this);var a=g.LM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Ig;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.TF(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.TF(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.TF(this.playerState,16)||g.TF(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.TF(this.playerState,1)&&g.TF(this.playerState,
  12727. 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.TF(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.TF(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.TF(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=jfb[aT(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=Ccb(this.provider),
  12728. f=0>this.B?a:this.B-this.j;a=this.provider.W.Rf+36E5<(0,g.EC)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.$S(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
  12729. encounteredSabrFallback:this.encounteredSabrFallback,isSabr:NS(this.provider.videoData)};a||g.qC("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
  12730. M_.prototype.va=function(){this.C||this.send();window.removeEventListener("error",this.eB);window.removeEventListener("unhandledrejection",this.eB);g.I.prototype.va.call(this)};
  12731. var Bob=/\bnet\b/;var Dcb=/[?&]cpn=/;var Icb=Math.pow(10,8);g.y(g.P_,g.I);g.k=g.P_.prototype;g.k.f9=function(){var a=g.LM(this.provider);Lcb(this,a)};
  12732. g.k.vE=function(){return this.La};
  12733. g.k.zE=function(){return{wB:this.wB,xB:this.xB}};
  12734. g.k.NG=function(a,b){this.wB=a;this.xB=b};
  12735. g.k.qG=function(a){this.j.lwc=[[a.cf?a.cf.toFixed():"",a.Gh?a.Gh.toFixed():"",a.Za?(1E3*a.Za).toFixed():"",a.Ob?(1E3*a.Ob).toFixed():"",a.qc?(1E3*a.qc).toFixed():""].join(":")]};
  12736. g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ma()&&(a=0<=a?a:g.LM(this.provider),-1<["PL","B","S"].indexOf(this.Fe)&&(!g.jd(this.j)||a>=this.G+30)&&(g.O_(this,a,"vps",[this.Fe]),this.G=a),!g.jd(this.j))){7E3===this.sequenceNumber&&g.JE(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){Q_(this,a);var b=a,c=this.provider.ea.HE(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.wB,h=e&&!this.xB;d>c.totalVideoFrames||5E3<f?Scb(this,"html5.badframedropcount","df."+d+";tf."+
  12737. c.totalVideoFrames):(0<f||h)&&g.O_(this,b,"df",[f]);this.wB=d;this.xB=e;0<this.Z&&(g.O_(this,a,"glf",[this.Z]),this.Z=0);X2.isActive()&&(a=X2.IX(),0<Object.keys(a).length&&this.ma("profile",a));this.zb&&R_(this,"lwnmow");this.provider.W.zc()&&this.provider.L("html5_record_now")&&this.ma("now",{wt:(0,g.EC)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&
  12738. (a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=mT(this.provider.videoData);a.content_v=oT(this.provider.videoData);a.ns=this.provider.W.ra;a.fexp=tTa(this.provider.W.experiments).toString();a.cl=(635633239).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=aT(this.provider.videoData))&&(a.live=b);this.provider.videoData.Ui()&&
  12739. (a.drm=1,this.provider.videoData.K&&(a.drm_system=lob[this.provider.videoData.K.flavor]||0),this.provider.videoData.Dl&&(a.drm_product=this.provider.videoData.Dl));SA()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.Rm,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.b3&&(a.dai_fallback=
  12740. "1")):this.provider.videoData.bd?a.dai="cs":this.provider.videoData.oD&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.QW){if(b=this.provider.videoData.QW,a&&b)for("3pp"===b.ns&&(a.ns="3pp"),this.yd.has(b.ns)&&R_(this,"hbps"),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.pd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;b={cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.u3};
  12741. this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);N_.length&&(b.decoderInfo=N_);this.provider.ea.dg()&&(b.transitionStitchType=4,this.Ca&&(b.timestampOffsetMsecs=this.Ca));this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode);this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices);b=g.mO(b,APa);a.qclc=g.Kg(b,4);this.rb&&(a.embargoed="1");g.od(a,this.provider.W.j);a=g.lo("//"+this.provider.W.cn+
  12742. "/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.JE(new g.eC("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);Ocb(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
  12743. g.k.Px=function(a){this.zb=a};
  12744. g.k.j1=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;R_(this,"eme-"+(a.keySystemAccess?"final":WQ(a)?"ms":ZQ(a)?"ytfp":YQ(a)?"safarifp":"nonfinal"))}};
  12745. g.k.VF=function(a){var b=g.LM(this.provider),c=[a.j.id,a.B,this.qc,a.reason];a.token&&c.push(a.token);g.O_(this,b,"vfs",c);this.qc=a.j.id;c=this.provider.ea.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.QR();1<d&&c.push(d);g.O_(this,b,"view",c)}this.Wa||(this.provider.W.zc()&&R_(this,"rqs2"),this.provider.videoData.j&&jP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Wa=!0;"m"===a.reason&&100===++this.je&&Tcb(this,2);g.O_(this,b,"vps",
  12746. [this.Fe]);this.reportStats(b)};
  12747. g.k.DF=function(a){var b=g.LM(this.provider);if(a.j.id!==this.Na){var c=[a.j.id,this.Na,a.reason];a.token&&c.push(a.token);g.O_(this,b,"afs",c);this.Na=a.j.id}};
  12748. g.k.Bu=da(49);g.k.Do=function(a){this.rb=a};
  12749. g.k.onPlaybackRateChange=function(a){var b=g.LM(this.provider);a&&a!==this.Tb&&(g.O_(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)};
  12750. g.k.jo=da(26);g.k.getPlayerState=function(a){if(g.TF(a,128))return"ER";if(g.TF(a,2048))return"B";if(g.TF(a,512))return"SU";if(g.TF(a,16)||g.TF(a,32))return"S";if(a.isOrWillBePlaying()&&g.TF(a,64))return"B";var b=Cob[WK(a)];g.PI(this.provider.W)&&"B"===b&&3===this.provider.ea.getVisibilityState()&&(b="SU");"B"===b&&g.TF(a,4)&&(b="PB");return b};
  12751. g.k.va=function(){g.I.prototype.va.call(this);g.$A(this.K);g.$A(this.Gb)};
  12752. g.k.tL=function(a){this.isOffline=a;g.O_(this,g.LM(this.provider),"is_offline",[this.isOffline?"1":"0"])};
  12753. g.k.ma=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Jd.indexOf(a);e||this.Jd.push(a);if(!c||!e){var f="string"!==typeof b?VJ(b):b;f=Ucb(f);if(!c&&!/^t[.]/.test(f)){var h=1E3*g.LM(this.provider);f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
  12754. this.j.ctmp=d;Pcb(this);return h}};
  12755. g.k.pG=function(a,b,c){this.D={oda:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),f_:a,Wca:b,isAd:c}};
  12756. g.k.Lx=function(a,b,c){g.O_(this,g.LM(this.provider),"ad_playback",[a,b,c])};
  12757. g.k.resume=function(){var a=this;this.provider.W.zc()&&this.ma("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?Qcb(this):this.K=g.YA(function(){a.reportStats()},1E4)};
  12758. var z3={},Cob=(z3[5]="N",z3[-1]="N",z3[3]="B",z3[0]="EN",z3[2]="PA",z3[1]="PL",z3),N_=[];Wcb.prototype.hP=function(){return this.j};
  12759. Wcb.prototype.update=function(){if(this.N){var a=this.provider.ea.Xg()||0,b=g.LM(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Zcb(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Sp+2||Zcb(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(U_(this),this.C=a);this.Sp=b;this.j=a}}};$cb.prototype.send=function(a){var b=this;if(!this.bb){var c=bdb(this),d=g.lo(this.uri,c);this.W.L("vss_through_gel_double")&&cdb(d);this.ra&&!this.W.L("html5_simplify_pings")?hdb(this,d):adb(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});Hcb(d,e,{token:b.Y,vT:b.Jb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Ca,b.isFinal&&b.Rf||b.Ga||b.C&&b.Sf)});
  12760. this.bb=!0}};
  12761. $cb.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
  12762. var A3={},fdb=(A3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,A3.LIVING_ROOM_APP_MODE_MAIN=1,A3.LIVING_ROOM_APP_MODE_KIDS=2,A3.LIVING_ROOM_APP_MODE_MUSIC=3,A3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,A3.LIVING_ROOM_APP_MODE_GAMING=5,A3),B3={},edb=(B3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,B3.EMBEDDED_PLAYER_MODE_DEFAULT=1,B3.EMBEDDED_PLAYER_MODE_PFP=2,B3.EMBEDDED_PLAYER_MODE_PFL=3,B3),C3={},V_=(C3[0]=0,C3[1]=1,C3[2]=2,C3[3]=3,C3[4]=4,C3);g.y(X_,g.I);g.k=X_.prototype;g.k.xg=function(){this.j.update();ndb(this)&&idb(this)};
  12763. g.k.va=function(){g.I.prototype.va.call(this);a0(this);Xcb(this.j)};
  12764. g.k.kc=function(){return bdb(Y_(this,"playback"))};
  12765. g.k.Xu=function(){this.provider.videoData.N.eventLabel=mT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.qj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.qj;a.isAd=b};
  12766. g.k.Ci=function(a){var b=Y_(this,"engage");b.qa=a;return ddb(b,tdb(this.provider))};sdb.prototype.isEmpty=function(){return this.endTime===this.startTime};c0.prototype.L=function(a){return this.W.L(a)};
  12767. c0.prototype.getCurrentTime=function(){if(g.sT(this.videoData)){var a=this.ea.dg();if(a){var b=this.ea.getCurrentTime(),c;a=((null==(c=sY(a,1E3*b))?void 0:c.bl)||0)/1E3;return b-a}}return this.ea.getCurrentTime()};
  12768. c0.prototype.Xg=function(){if(g.sT(this.videoData)){var a=this.ea.dg();if(a){var b=this.ea.Xg(),c;a=(null==(c=sY(a,1E3*b))?NaN:c.bl)/1E3||0;return b-a}}return this.ea.Xg()};
  12769. var udb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.y(g.d0,g.I);g.k=g.d0.prototype;g.k.xg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Hg){var a;null==(a=this.C.get(this.Hg))||a.xg()}else this.j&&this.j.xg()};
  12770. g.k.Do=function(a){this.qoe&&this.qoe.Do(a)};
  12771. g.k.Wd=function(a,b){this.qoe&&Scb(this.qoe,a,b);if(this.B)this.B.onError(a)};
  12772. g.k.VF=function(a){this.qoe&&this.qoe.VF(a)};
  12773. g.k.DF=function(a){this.qoe&&this.qoe.DF(a)};
  12774. g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&U_(this.j.j)};
  12775. g.k.Bu=da(48);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
  12776. g.k.pG=function(a,b,c){this.qoe&&this.qoe.pG(a,b,c)};
  12777. g.k.qG=function(a){var b;null==(b=this.qoe)||b.qG(a)};
  12778. g.k.Px=function(a){this.qoe&&this.qoe.Px(a)};
  12779. g.k.Lx=function(a,b,c){this.qoe&&this.qoe.Lx(a,b,c)};
  12780. g.k.jo=da(25);g.k.vE=function(){if(this.qoe)return this.qoe.vE()};
  12781. g.k.kc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Hg){var a;null==(a=this.C.get(this.Hg))||a.kc()}else if(this.j)return this.j.kc();return{}};
  12782. g.k.zE=function(){var a;return null==(a=this.qoe)?void 0:a.zE()};
  12783. g.k.NG=function(a,b){var c;null==(c=this.qoe)||c.NG(a,b)};
  12784. g.k.Ci=function(a){return this.j?this.j.Ci(a):function(){}};
  12785. g.k.Xu=function(){this.j&&this.j.Xu()};
  12786. g.k.getVideoData=function(){return this.provider.videoData};
  12787. g.k.resume=function(){this.qoe&&this.qoe.resume()};g.y(e0,g.I);e0.prototype.BI=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!vdb(d))this.B.ma("ssap",{rlc:a}),a6a(this,a);else return}if(!this.j.has(a)){d=new c0(b,this.W,this.ea);var e=Math.round(1E3*g.LM(this.B.provider));d=new g.d0(d,e);vdb(d)||this.B.ma("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}wdb(d);2===c&&this.B.Lx(a,b.yd||"",b.breakType||0)}};
  12788. e0.prototype.uc=function(a){a=a||this.Hg;return this.j.get(a)||this.B};g.y(g.f0,g.I);g.k=g.f0.prototype;g.k.gf=function(a,b){this.sync();b&&2E3<=this.j.array.length&&this.ZD("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Yb(b.array,c,b.j)}this.C=NaN;this.sync()};
  12789. g.k.Fo=function(a){1E4<a.length&&g.JE(new g.eC("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ma()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
  12790. Jdb(this.j,b);this.sync()}};
  12791. g.k.ZD=function(a,b){var c=(isNaN(this.C)?g.TF(this.G(),2)?0x8000000000000:1E3*this.Z():this.C)-b;b=this.Sk().filter(function(d){return d.namespace===a&&d.end<c});
  12792. this.Fo(b);return b};
  12793. g.k.Sk=function(){return this.Ma()?[]:this.j.array};
  12794. g.k.reset=function(){this.started=!1;this.D.stop();this.j.array=[];this.B=[];this.sync()};
  12795. g.k.mf=function(a){var b=this.Sk().filter(function(c){return c.namespace===a});
  12796. this.Fo(b);return b};
  12797. g.k.KE=da(29);g.k.hC=function(a){var b=[],c=Gdb(this.j,0x7ffffffffffff),d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&d.push(e);b=b.concat(this.VI(d));Mdb(this,b);b=[];d=[];c=g.u(this.B);for(e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&0x7ffffffffffff===e.start&&d.push(e);b=b.concat(this.YI(d));Mdb(this,b)};
  12798. g.k.VI=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
  12799. g.k.YI=function(a){var b=[];if(!a.length)return b;a.sort(g.bCa);a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
  12800. g.k.sync=function(){this.K=!0;if(!this.N){for(var a=3;this.K&&a;)this.K=!1,this.N=!0,this.bZ(),this.N=!1,a--;this.G().isPlaying()&&(a=Idb(this.j,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.ra(),this.D.start(a)))}};
  12801. g.k.bZ=function(){if(this.started&&!this.Ma()){this.D.stop();var a=this.G();g.TF(a,32)&&this.qa.start();for(var b=g.TF(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.TF(a,2),d=[],e=[],f=g.u(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.YI(e));f=e=null;c?(a=Gdb(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Hdb(this.j)):a=this.C<=b&&mEa(a)?Fdb(this.j,this.C,b):Gdb(this.j,b);
  12802. d=d.concat(this.VI(a));e&&(d=d.concat(this.YI(e)));f&&(d=d.concat(this.VI(f)));this.C=b;Mdb(this,d)}};
  12803. g.k.va=function(){this.B=[];this.j.array=[];g.I.prototype.va.call(this)};
  12804. g.KX.SJ(g.f0,{gf:"crmacr",VI:"crmncr",YI:"crmxcr",bZ:"crmis",Fo:"crmrcr"});g.y(i0,g.aF);i0.prototype.Fr=function(){return this.N};
  12805. i0.prototype.ir=function(){return Math.max(this.Z()-j0(this)*this.j,this.videoData.Dd())};g.y(n0,g.I);n0.prototype.lf=function(){var a=this,b=this.ea.Se(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.TF(c,8)&&g.TF(c,16),h=this.ea.pm().isBackground()||c.isSuspended();o0(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
  12806. var l=isFinite(this.j);l=f&&l&&gEa(b,this.j);var m=!d||10<Math.abs(d-this.j);o0(this,this.zb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
  12807. m=l&&xK(b.Sh(),this.j);var n=this.ea.ya;l=!n||!n.policy.Va;var p=function(){b.seekTo(a.j+.001)};
  12808. o0(this,this.Va,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return J_(a.ea)};
  12809. o0(this,this.bb,m&&!h,e,"qoe.slowseek",l,"new_elem");m=mEa(c);var q=c.isBuffering(),r=b.Sh(),t=wK(r,d),v=0<=t&&r.end(t)>d+5,w=m&&q&&v,A=this.ea.getVideoData();o0(this,this.Wa,.002>d&&.002>this.j&&f&&g.PI(this.W)&&g.nT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");o0(this,this.qa,A.Yj()&&f&&!h&&!A.Ga,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");o0(this,this.Ca,w&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");o0(this,this.Ga,w&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var D=n.getCurrentTime();
  12810. f=b.yw();f=SDa(f,D);f=!n.isSeeking()&&d===f;o0(this,this.Tb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={};
  12811. p=wK(r,Math.max(d-3.5,0));w=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&w&&11>F;f.close2edge=w;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.dg()){w=p.Nz();F=w!==sY(p,1E3*d).clipId;var H=g.EI(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),L=(rY(p,w)+H)/1E3;o0(this,this.La,F&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(L)},"ssap_clip_not_match")}o0(this,this.Ea,m&&q&&!h,m&&!q,"qoe.longrebuffer",
  12812. function(){},"timeout",f);
  12813. f=c.isSuspended();f=v_(this.ea)&&!f;o0(this,this.N,f,!f,"qoe.start15s",function(){a.ea.zg("ad")},"ads_preroll_timeout");
  12814. p=.5>d-this.C;var M;f=!(null==(M=this.ea.dg())||!M.wm());F=(w=A.isAd()||f&&this.W.experiments.fb("html5_ssap_skip_slow_ad"))&&m&&!q&&p;M=function(){var R=a.ea,ea=g.sT(R.videoData)&&R.Ib,la=R.kd.Wc();(!la||!R.videoData.isAd()||la.getVideoData().bd!==R.getVideoData().bd)&&R.videoData.Gf||ea?KS(R.videoData,"html5_ssap_skip_slow_ad")&&ea&&R.Ib.wm()&&P5a(R.Ib):R.Zf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId)};
  12815. o0(this,this.Jb,F,!F,"ad.rebuftimeout",M,"skip_slow_ad");p=w&&q&&xK(b.Sh(),d+5)&&p;o0(this,this.Gb,p,!p,"ad.rebuftimeout",M,"skip_slow_ad_buf");M=c.isOrWillBePlaying()&&g.TF(c,64)&&!h;o0(this,this.Kb,M,e,"qoe.start15s",function(){},"timeout");
  12816. M=!!n&&!n.Qa&&c.isOrWillBePlaying();o0(this,this.Na,M,e,"qoe.start15s",l,"newElemMse");M=AK(r,0);p=g.TF(c,16)||g.TF(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.TF(c,64)||0===d)&&5<M;o0(this,this.gb,g.nT(A)&&p,m&&!q,"qoe.longrebuffer",function(){a.ea.Go()},"reset_media_source");
  12817. o0(this,this.Za,g.nT(A)&&p,m&&!q,"qoe.longrebuffer",l,"reset_media_element");0===this.C&&(this.K=d);p=q&&0===this.j&&1<d&&d===this.K;o0(this,this.Sa,g.nT(A)&&p,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
  12818. h=c.isOrWillBePlaying()&&!h;v=6>MX(this.ea)-d&&!v&&this.ea.St();o0(this,this.Z,A.Yj()&&h&&q&&v,m&&!q,"qoe.longrebuffer",function(){J_(a.ea,!1,!0)},"handoff_end_long_buffer_reload");
  12819. n=(null==n?void 0:fbb(n))||NaN;n=1<r.length||!isNaN(n)&&n-.1<=d;o0(this,this.Y,TS(A)&&h&&q&&n,m&&!q,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=0<=t&&2<=r.end(t);h=TS(A)&&this.ea.J1&&n&&!A.Ga&&h&&(q||g.TF(c,8)&&g.TF(c,16));o0(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&5<M&&c.isPlaying()&&.1>d);o0(this,this.Ob,c,.5<d&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.C=d;this.G.start()}};
  12820. n0.prototype.Wd=function(a,b,c){b=this.kc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.ea.Wd(new WJ(a,b));this.B[a]=!0};
  12821. n0.prototype.kc=function(a){a=Object.assign(this.ea.kc(!0),a.kc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Kc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
  12822. l0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
  12823. l0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.EC)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
  12824. l0.prototype.kc=function(){var a={},b=(0,g.EC)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.y(aeb,g.I);g.k=aeb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.uS()||this.seekTo(.01,{wd:"seektimeline_setupMediaElement"})),p0(this)):q0(this)};
  12825. g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&neb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
  12826. g.k.Xg=function(){return this.getCurrentTime()-this.Kc()};
  12827. g.k.ir=function(){return this.B?this.B.ir():Infinity};
  12828. g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return k0(this.B,a)};
  12829. g.k.Fr=function(){return!!this.B&&this.B.Fr()};
  12830. g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.oH?!1:c.oH;var d=void 0===c.CT?0:c.CT,e=void 0===c.Hw?!1:c.Hw,f=void 0===c.wT?0:c.wT,h=void 0===c.wd?"":c.wd,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.eF?!1:c.eF,n=void 0===c.hT?!1:c.hT;if(void 0===c.Lq?0:c.Lq)a+=this.Kc();if(c=a<this.La&&!!this.ya){this.ea.ma("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)});this.La=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.ya)){ebb(p,
  12831. p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(w in q.j){var t=q.j[w].index,v=t.ow();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.N&&p.N.xS();pZ(p.G,0,0,!0)}}var w=a;(p=!isFinite(w)||(this.B?k0(this.B,w):w>=this.Ke())||!g.fT(this.videoData))||this.ea.ma("seeknotallowed",{st:w,mst:this.Ke()});if(!p)return this.C&&(this.C=null,keb(this)),mg(this.getCurrentTime());if(.005>Math.abs(a-
  12832. this.j)&&this.qa)return this.G;h&&(w=a,(this.W.zc()||this.L("html5_log_seek_reasons"))&&this.ea.ma("seekreason",{reason:h,tgt:w}));l&&(this.ra.D=l);this.qa&&q0(this);this.G||(this.G=new NK);a&&!isFinite(a)&&deb(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.Kk()&&0<bEa(this.mediaElement))||OS(this.videoData)&&this.Dd()===this.Ke(!1)?0:isFinite(h)||!OS(this.videoData)));h||(a=meb(this,a,e));a&&!isFinite(a)&&
  12833. deb(this,!1);this.D=a;this.Sa=f;this.j=a;this.Z=0;this.B&&(e=this.B,f=a,Vdb(e,f,!1),Wdb(e,f));e=this.ea;f=a;h={oH:b,seekSource:l};e.Zc.D=f;n=e.CD;n.mediaTime=f;n.j=!0;h.oH&&efb(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Sq&&h&&isFinite(f)&&Teb(e);f<e.Ke()-.01&&(h=UK(e.playerState,2),g.TF(h,8)&&(h=UK(h,4)),e.Fc(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Va.start(d):(b={eF:m,seekSource:l},this.qa=!0,$db(this,b)));(b=this.ea.Sq)&&a>b.start&&Teb(this.ea);return this.G};
  12834. g.k.Ke=function(a){if(!this.videoData.isLivePlayback)return ufb(this.ea);var b;return uT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),JWa(1E3*this.Ze(a))+a):OS(this.videoData)&&this.videoData.bb&&this.videoData.j?this.videoData.j.Ke()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.ir():ufb(this.ea)+this.timestampOffset:this.mediaElement?qB()?JWa(this.mediaElement.RH().getTime()):bEa(this.mediaElement)+this.timestampOffset||
  12835. this.timestampOffset:this.timestampOffset};
  12836. g.k.Dd=function(){if(g.sT(this.videoData)){var a=this.ea;g.sT(a.videoData);var b,c;return null!=(c=null==(b=a.Ib)?void 0:b.Dd())?c:a.videoData.Dd()}b=this.videoData?this.videoData.Dd()+this.timestampOffset:this.timestampOffset;return uT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.Ze(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
  12837. g.k.MO=function(){this.G||this.seekTo(this.D,{wd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
  12838. g.k.bF=function(){return this.qa&&!isFinite(this.j)};
  12839. g.k.va=function(){eeb(this,null);this.ra.dispose();g.I.prototype.va.call(this)};
  12840. g.k.kc=function(){var a={};this.ya&&Object.assign(a,this.ya.kc());this.mediaElement&&Object.assign(a,this.mediaElement.kc());return a};
  12841. g.k.JR=function(a){this.timestampOffset=a};
  12842. g.k.getStreamTimeOffset=function(){return OS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
  12843. g.k.Kc=function(){return this.timestampOffset};
  12844. g.k.Ze=function(a){return this.videoData.j.Ze(a-this.timestampOffset)};
  12845. g.k.uw=function(){if(!this.mediaElement)return 0;if(gT(this.videoData)){var a=this.mediaElement,b=a.Sh();a=(0<zK(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Dd();b=this.Ke()-this.Dd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.uw()};
  12846. g.k.yx=function(a){this.K&&(this.K.j=a)};
  12847. g.k.L=function(a){return this.W&&this.W.L(a)};s0.prototype.Xt=function(){return this.started};
  12848. s0.prototype.start=function(){this.started=!0};
  12849. s0.prototype.reset=function(){this.j=this.started=!1};var web=!1;g.y(g.w0,g.aF);g.k=g.w0.prototype;g.k.va=function(){this.logger.debug("dispose");g.$A(this.gL);P4a(this.Jf);this.visibility.unsubscribe("visibilitystatechange",this.Jf);Keb(this);A0(this);g.gv.Oj(this.Ix);this.Ej();this.Kf=null;g.vb(this.videoData);g.vb(this.Qk);g.vb(this.HN);g.vb(this.IN);g.wb(this.G$);this.Sq=null;g.aF.prototype.va.call(this)};
  12850. g.k.Lx=function(a,b,c,d){this.uc().Lx(a,b,c);this.L("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
  12851. g.k.XO=function(){var a;return null==(a=this.ya)?void 0:a.XO()};
  12852. g.k.aP=function(){var a;return null==(a=this.ya)?void 0:a.aP()};
  12853. g.k.oE=function(){var a;return null==(a=this.ya)?void 0:a.oE()};
  12854. g.k.YO=function(){var a;return null==(a=this.ya)?void 0:a.YO()};
  12855. g.k.Ui=function(){return this.videoData.Ui()};
  12856. g.k.Uz=function(){return this.IA};
  12857. g.k.BI=function(){!this.HA||this.HA.Ma();this.HA=new g.d0(new c0(this.videoData,this.W,this));this.IA=new e0(this.W,this,this.HA)};
  12858. g.k.getVideoData=function(){return this.videoData};
  12859. g.k.U=function(){return this.W};
  12860. g.k.SO=function(){return this.rk.SO(this.Kf)};
  12861. g.k.uc=function(a){if(this.L("html5_enable_logging_controller_by_videoid")&&a)a:{for(var b=this.IA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.IA.uc();return a};
  12862. g.k.pm=function(){return this.visibility};
  12863. g.k.Se=function(){return this.mediaElement};
  12864. g.k.aO=function(){if(this.videoData.isLoaded()){var a=this.Qk;0<g.EI(a.Da.experiments,"html5_player_min_build_cl")&&635633239<g.EI(a.Da.experiments,"html5_player_min_build_cl")&&gcb(a,"oldplayer");Peb(this)}else this.videoData.Li||this.videoData.cn?this.Tt&&g.PI(this.W)&&this.videoData.isLivePlayback||(this.videoData.Li?iWa(this.videoData):(a=this.uc(),a.qoe&&(a=a.qoe,R_(a,"protected"),a.provider.videoData.K?a.j1():a.provider.videoData.subscribe("dataloaded",a.j1,a)),gWa(this.videoData))):!this.videoData.loading&&
  12865. this.Y6&&Meb(this)};
  12866. g.k.LL=function(a){this.Ib=a;this.ya&&this.ya.LL(a)};
  12867. g.k.Tz=da(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
  12868. g.k.isBackground=function(){return this.visibility.isBackground()};
  12869. g.k.sendAbandonmentPing=function(){g.TF(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.GL(!0),Keb(this),g.gv.Oj(this.Ix))};
  12870. g.k.No=function(){xdb(this.uc())};
  12871. g.k.Zf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
  12872. var h,l;g.gd(znb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+vH());if("auth"===a||"drm.auth"===a||"heartbeat.stop"===a)c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.RV[h]||"",GO:h,An:f||"",qL:d,WI:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;z0(this,"dataloaderror");this.Fc(SK(this.playerState,128,b));g.gv.Oj(this.Ix);A0(this);this.Eo()};
  12873. g.k.zg=function(a){this.cq=this.cq.filter(function(b){return a!==b});
  12874. this.logger.debug(function(){return"set preroll ready for "+a});
  12875. this.L("html5_send_preroll_ready_csi_ping")&&!this.Kn()&&this.Mb.Lh("pl_pr");this.Sr.Xt()&&Neb(this)};
  12876. g.k.Kn=function(){var a;(a=!!this.cq.length)||(a=this.yh.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
  12877. g.k.Fr=function(){return this.Zc.Fr()};
  12878. g.k.isPlaying=function(){return this.playerState.isPlaying()};
  12879. g.k.YE=function(){return this.playerState.YE()&&this.videoData.Hl};
  12880. g.k.getPlayerState=function(){return this.playerState};
  12881. g.k.getPlayerType=function(){return this.playerType};
  12882. g.k.getPreferredQuality=function(){if(this.Kf){var a=this.Kf;a=a.videoData.xA.compose(a.videoData.mX);a=gP(a)}else a="auto";return a};
  12883. g.k.xE=da(20);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
  12884. g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Hb()===this.mediaElement.Hb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.UB(this.nC),this.mediaElement=a,this.mediaElement.ea=this,ffb(this),this.Zc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ej();if(!this.playerState.isError()){var b=UK(this.playerState,512);g.TF(b,8)&&!g.TF(b,2)&&(b=TK(b,1));a.isView()&&(b=UK(b,64));this.Fc(b)}this.mediaElement=
  12885. a;this.mediaElement.ea=this;WR(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ffb(this);this.Zc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Qk.RI()&&cEa(this.mediaElement)}};
  12886. g.k.Ej=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.Zc.D=c);this.Zc.setMediaElement(null);!a&&KK(this)?afb(this):RX(this);this.ya&&(y_(this.ya),E0(this,b));this.bx.stop();if(this.mediaElement&&(!this.Sr.Xt()||this.playerState.isError()||g.TF(this.playerState,2)||this.Fc(TK(this.playerState,512)),this.mediaElement)){g.UB(this.nC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
  12887. this.Mb.Tu("mesv_s"),this.mediaElement.stopVideo(),G0(this);this.mediaElement=this.mediaElement.ea=null}}};
  12888. g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.G(function(m){if(1==m.j){b.logger.debug("start play video");var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.TF(b.playerState,128))return m.return();if(b.Qk.YJ())return b.publish("signatureexpired"),m.return();b.mediaElement&&vY(b.uc());Seb(b);(g.TF(b.playerState,64)||a)&&b.Fc(TK(b.playerState,8));return b.Sr.j&&b.mediaElement?b.Kf||!b.ZF?m.Ia(2):g.z(m,b.ZF,3):m.return()}if(2!=
  12889. m.j&&g.TF(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.yTa(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Ui()?"fmt.unplayable":"fmt.noneavailable",d=1),g.JE(Error("selectableFormats")),b.Zf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Vh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(y0(b));if(MS(b.videoData)){if(e=b.getCurrentTime()<b.Dd()-15,f=g.fT(b.videoData)&&
  12890. b.playerState.isPaused(),h=g.TF(b.playerState,1024),n=b.Zc,n.videoData.Zb()&&LWa(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{wd:"videoplayer_unpauseLiveOnly",seekSource:102})):(b.logger.debug("seek to min seekable for live because of out of window"),b.seekTo(b.Dd(),{wd:"videoplayer_outOfWindow",seekSource:102}))),!b.isAtLiveHead(void 0,!0)&&b.Fr()&&(b.logger.debug("seek to head for live because pegged to live"),l={wd:"videoplayer_peggedToLive",
  12891. seekSource:34},b.seekTo(Infinity,l)),g.TF(b.playerState,256)&&b.videoData.Ga&&b.Zc.bF())return b.Fc(VK(b.playerState,8,4)),m.return()}else b.L("html5_ssap_get_min_seekable_time_refactor")&&g.sT(b.videoData)&&b.getCurrentTime()<b.Dd()-0&&b.seekTo(b.Dd(),{wd:"videoplayer_outOfWindow"});g.TF(b.playerState,4)&&g.TF(b.playerState,16)&&b.Fc(VK(b.playerState,9,4));if(v0(b))return mfb(b),m.return();lfb(b);g.Aa(m)})};
  12892. g.k.Go=function(a){this.logger.debug("reset media source");a&&this.Wd(new WJ("qoe.restart",a));this.Fc(TK(this.playerState,2048));RX(this);a=this.videoData.j&&mP(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.ya&&Dab(this.ya),J_(this)):(v0(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
  12893. g.k.Ct=function(){if(!this.Kf)return[];var a=mcb(this.rk,this.Kf,this.qw());return this.Kf.j.Ct(a)};
  12894. g.k.lE=function(){if(!this.Kf)return[];var a=mcb(this.rk,this.Kf,this.qw());return this.Kf.j.lE(a)};
  12895. g.k.qw=function(){var a=this.Ce?this.Ce.qw():dWa(this.videoData)&&this.videoData.j&&mP(this.videoData.j)?this.videoData.El?DS:Qbb:DS;this.AS&&(a=a.compose(hob));return a};
  12896. g.k.hJ=function(){var a=this.qe(),b=this.kd.Ld().videoId;return this.kd.pu.hJ(a)||this.kd.pu.hJ(b)};
  12897. g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?gP(this.videoData.xA):fP[YO()]};
  12898. g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
  12899. g.k.setUserAudio51Preference=function(a,b){this.videoData.Rf!==a&&(this.ma("toggle51",{pref:a}),this.videoData.Rf=a,g.XB("yt-player-audio51",a,b?31536E3:2592E3),K_(this))};
  12900. g.k.getUserAudio51Preference=function(){var a=1;SR(this.W)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.YB("yt-player-audio51"))?b:a};
  12901. g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.ma("proxima",{pref:a});g.XB("yt-player-proxima-pref",a,31536E3);b!==a&&(this.Zc.bb=!0,this.seekTo(Infinity,{wd:"videoplayer_proximaSeekToHead",seekSource:34}))};
  12902. g.k.getProximaLatencyPreference=function(){var a;return null!=(a=MOa())?a:0};
  12903. g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
  12904. g.k.GT=function(){this.videoData.videoId?this.kd.GT(this.videoData.videoId):this.ma("piavid",{})};
  12905. g.k.getAvailableAudioTracks=function(){return g.sT(this.videoData)&&this.Ib?U5a(this.Ib).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
  12906. g.k.getAudioTrack=function(){if(Yeb(this)){var a=$eb(this);if(a)return a}return this.videoData.getAudioTrack()};
  12907. g.k.AF=function(){if(NS(this.videoData)&&!this.videoData.Zb()&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.ya)&&a.lf()}};
  12908. g.k.Ez=function(){if(this.ya){var a=this.ya,b=a.Ez;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:OS(c)&&c.Gf&&!c.isAd();b.call(a,c)}};
  12909. g.k.lr=function(){return this.Qa};
  12910. g.k.zx=function(a){this.logger.debug("onNeedKeyInfo");this.qB.set(a.initData,a);this.Ce&&(this.Ce.zx(a),this.L("html5_eme_loader_sync")||this.qB.remove(a.initData))};
  12911. g.k.KR=function(a){this.videoData.yA=g.dP("auto",a,!1,"u");u0(this)};
  12912. g.k.yx=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&(null==(b=this.videoData.D)?0:b.lc)&&a.j.info.qb!==this.videoData.D.qb&&(null==(c=a.j.info.lc)?void 0:c.id)!==this.videoData.D.lc.id){var d;this.ma("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.lc.id,"new":a.j.info.itag,nlang:null==(d=a.j.info.lc)?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.uc(a.videoId),f=g.sT(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;"m"!==b&&"t"!==
  12913. b&&(b=h?"i":"a");var l="m"===b||"t"===b;e.DF(new jcb(f,c,b,"",d));this.publish("internalaudioformatchange",f,!h&&l)}this.Zc.yx(a.j.index)};
  12914. g.k.LK=function(a){this.publish("localmediachange",a)};
  12915. g.k.Ko=function(a){a=void 0===a?{}:a;var b;null==(b=this.ya)||b.Ko(this.W,eWa(this.videoData),a)};
  12916. g.k.YJ=function(){return this.Qk.YJ()};
  12917. g.k.handleError=function(a){this.Qk.handleError(a)};
  12918. g.k.RI=function(){return this.Qk.RI()};
  12919. g.k.mK=function(a){this.lC?(this.ma("utcSeekingFallback",{source:"streamTime",timeSeconds:this.lC}),this.seekTo(this.lC,{wd:"utcSeekingFallback_streamTime"}),this.lC=0):isNaN(this.Ze())||(a=this.Ze()-a,a=this.getCurrentTime()-a,this.ma("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{wd:"utcSeekingFallback_estimate"}))};
  12920. g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.TF(this.playerState,64)||g.TF(this.playerState,2))&&!a)if(g.TF(this.playerState,8))this.Fc(VK(this.playerState,4,8));else if(this.YE())v0(this);else return;g.TF(this.playerState,128)||(a?this.Fc(TK(this.playerState,256)):this.Fc(VK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.fT(this.videoData)&&this.ya&&E0(this,!1)};
  12921. g.k.stopVideo=function(){this.pauseVideo();this.ya&&(E0(this,!1),this.ya.Pk())};
  12922. g.k.Eo=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(KK(this)&&b){var c;null==(c=this.mediaElement)||c.Eo()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}G0(this);A0(this);g.TF(this.playerState,128)||(a?this.Fc(UK(UK(TK(this.playerState,4),8),16)):this.Fc(SK(this.playerState)));this.videoData.videoId&&this.W.Na.remove(this.videoData.videoId)};
  12923. g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
  12924. g.TF(this.playerState,2)&&v0(this);b.Ypb&&this.Fc(TK(this.playerState,2048));this.Zc.seekTo(a,b);this.yh.sync()};
  12925. g.k.DK=function(){this.publish("onAbnormalityDetected")};
  12926. g.k.getCurrentTime=function(){return this.Zc.getCurrentTime()};
  12927. g.k.Xg=function(){return this.Zc.Xg()};
  12928. g.k.ir=function(){return this.Zc.ir()};
  12929. g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Kc())};
  12930. g.k.Sz=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Sz());return 0<=a?a:this.getCurrentTime()};
  12931. g.k.Ze=function(){var a;return(null==(a=this.videoData.j)?0:a.Ze)?this.videoData.j.Ze(this.getCurrentTime()-this.Kc()):this.mediaElement&&(a=this.mediaElement.RH())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
  12932. g.k.getDuration=function(){return g.sT(this.videoData)&&this.Ib?tY(this.Ib):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Kc():this.Ke()?this.Ke():0};
  12933. g.k.DE=function(){var a=new Cdb;this.ya?(PTa(this.W.schedule,a),$ab(this.ya,a)):this.mediaElement&&(a.Rv=PK(this.mediaElement));a.Cs=this.Cs;a.Uu=this.Uu;a.C=this.isAtLiveHead()&&this.isPlaying()?Geb(this):NaN;return a};
  12934. g.k.rG=function(a,b){this.Uu+=a;this.Cs+=b};
  12935. g.k.uw=function(){return this.mediaElement?g.fT(this.videoData)?1:gT(this.videoData)?this.isAtLiveHead()||this.Fr()?1:this.Zc.uw():this.mediaElement.uw():0};
  12936. g.k.kc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.uc().kc());this.mediaElement&&(Object.assign(b,this.mediaElement.kc()),Object.assign(b,this.HE()));this.ya&&Object.assign(b,this.ya.kc());this.Ce&&(b.drm=JSON.stringify(this.Ce.kc()));b.state=this.playerState.state.toString(16);g.TF(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Ig));this.Kn()&&(b.prerolls=this.cq.join(","));this.videoData.Jd&&(b.ismb=this.videoData.Jd);"UNKNOWN"!==this.videoData.latencyClass&&
  12937. (b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.kd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
  12938. NQ(this.videoData.j)&&(b.segduration=NQ(this.videoData.j)),a=this.Zc,b.lat=a.K?bZa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Of.toFixed(3);if(a=g.dV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=YO();b.release_version="youtube.player.web_20240520_01_RC00";g.sT(this.videoData)&&this.Ib&&(b.ssap=wY(this.Ib))}b.debug_videoId=this.videoData.videoId;return b};
  12939. g.k.addCueRange=function(a){this.bz([a])};
  12940. g.k.removeCueRange=function(a){this.yh.Fo([a])};
  12941. g.k.ZD=function(a,b){return this.yh.ZD(a,b)};
  12942. g.k.bz=function(a,b){this.yh.gf(a,b)};
  12943. g.k.tG=function(a){this.yh.Fo(a)};
  12944. g.k.Sk=function(){return this.yh.Sk()||[]};
  12945. g.k.Vh=function(){return this.visibility.Vh()};
  12946. g.k.Nu=function(){this.mediaElement&&this.mediaElement.Nu()};
  12947. g.k.nca=function(){z0(this)};
  12948. g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
  12949. g.k.SK=function(a){var b=a.target.Df();if(this.mediaElement&&this.mediaElement.Df()&&this.mediaElement.Df()===b){rfb(this,a.type);switch(a.type){case "error":var c=jEa(this.mediaElement)||"",d=this.mediaElement.qf();if("capability.changed"===c){this.L("html5_restart_on_capability_change")?(this.ma("capchg",{msg:d}),J_(this,!0)):y0(this);return}if(this.mediaElement.hasError()&&(ccb(this.Qk,c,{msg:d})||g.sT(this.videoData)&&this.Ib&&this.Ib.handleError(c)))return;if(this.isBackground()&&4===this.mediaElement.Yg()){this.Eo();
  12950. B0(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||0<c)&&1!==c&&this.vl(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());Kdb(this.yh);this.uc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":tfb(this);this.publish("onLoadedMetadata");hfb(this);c=this.Ze();this.videoData.aB&&(this.videoData.aB=c);break;case "loadstart":hfb(this);break;case "progress":case "suspend":this.Sc();
  12951. this.publish("onLoadProgress",this,this.uw());break;case "playing":this.Mb.Tu("plev");this.FS&&(this.FS=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{wd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&0===this.mediaElement.Kk();if(c&&(!this.zK||d))return;this.zK=this.zK||!!this.mediaElement.getCurrentTime();gfb(this);this.Sc();if(!this.mediaElement||this.mediaElement.Df()!==
  12952. b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.yw().length&&0===this.mediaElement.Sh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.Kk()||!this.mediaElement.isSeeking()&&xK(this.mediaElement.Sh(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.kc(),c.bh=PK(this.mediaElement).toFixed(3),
  12953. this.ma("uwe",c));g.sT(this.videoData)&&this.Ib&&O5a(this.Ib,this.mediaElement.getCurrentTime());break;case "resize":tfb(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.yW&&g.TF(this.playerState,8)&&!g.TF(this.playerState,1024)&&0===this.getCurrentTime()&&g.zC){B0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Df()===b){peb(this.Zc,a,this.Ib||void 0);this.publish("videoelementevent",
  12954. a);b=this.playerState;d=this.CD;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.sT(this.videoData)&&this.Ib?tY(this.Ib):void 0;if(!g.TF(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.TF(b,64)||"ended"!==a.type&&"pause"!==a.type){f=f||e.getDuration();f=e.isEnded()||1<l&&1.1>Math.abs(l-f);var m="pause"===a.type&&e.isEnded();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.TF(b,4)&&!g0(d,l);if(m||f&&l)0<e.pJ()&&e.Df()&&(h=14);else switch(a.type){case "error":jEa(e)&&
  12955. (h|=128);break;case "pause":g.TF(b,256)?(h^=256)||(h=64):g.TF(b,32)||g.TF(b,2)||g.TF(b,4)||(h=4,g.TF(b,1)&&g.TF(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,RK(d,e)):g0(d,e.getCurrentTime())&&(h&=-2);g.TF(b,1)&&RK(d,e)&&(h|=1);break;case "seeking":h|=16;g.TF(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;RK(d,e);break;case "waiting":g.TF(b,2)||(h|=1);RK(d,e);break;case "timeupdate":l=g.TF(b,16),f=g.TF(b,4),(g.TF(b,8)||l)&&!f&&g0(d,e.getCurrentTime())&&(h=8),RK(d,e)&&(h|=1)}}d=h;h=
  12956. null;d&128&&(h=a.target,e=jEa(h),l=1,e?("capability.changed"===e&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.kc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.qf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.RV[f]||"",GO:f,qL:VJ(m),WI:l,cpn:b.Ig?b.Ig.cpn:""}):h=null,h&&(h.cpn=c));b=SK(b,d,h)}!g.TF(this.playerState,1)&&g.TF(b,1)&&qfb(this,"evt"+a.type);this.Fc(b)}}};
  12957. g.k.L$=function(a){a="available"===a.j.availability;a!==this.TE&&(this.TE=a,this.publish("airplayavailabilitychange"))};
  12958. g.k.M$=function(){var a=(0,g.EC)(),b=this.mediaElement.Vh();this.ma("airplay",{ia:b});!b&&!isNaN(this.bK)&&2E3>a-this.bK||(this.bK=a,b!==this.Vh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Jf()),this.ma("airplay",{rbld:b}),K_(this)),this.publish("airplayactivechange"))};
  12959. g.k.IE=function(a){if(this.ya){var b=this.ya,c=b.G,d=b.currentTime,e=Date.now()-c.Y;c.Y=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&3!==c.B&&Y7a(c.ya,d,c.K,c.G);c.policy.K?c.C=NaN:c.D=NaN;oZ(c,4,3===c.B?"adfps":"adf");y_(b)}};
  12960. g.k.Sc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){heb(this.Zc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.TF(this.playerState,4)&&g.fT(this.videoData)||NS(this.videoData)&&g.TF(this.playerState,32)||bbb(this.ya,c);5<c&&(this.Zc.D=c);var d=g.mC();d?g.gv.Oj(this.Ix):g.ZA(this.Ix);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||uT(this.videoData))&&!g.TF(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.TF(b.playerState,
  12961. 128)){b.W.zc()&&rfb(b,"pfx");var h=b.getCurrentTime(),l=PK(b.mediaElement),m=g.TF(b.playerState,8),n=g0(b.CD,h),p=kEa(b.CD,h,(0,g.EC)(),l);m&&n?b.Fc(UK(b.playerState,1)):m&&p?(m=b.getDuration(),n=MS(b.videoData),m&&1.1>Math.abs(m-h)?(b.ma("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Et()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{wd:"videoplayer_loop",seekSource:37})):PX(b)):(b.playerState.isBuffering()||qfb(b,"progress_fix"),b.Fc(TK(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=
  12962. (Date.now()-b.kF)/1E3,n=b.getDuration(),h>n-1&&b.ma("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&5<PK(b.mediaElement)&&b.Fc(UK(b.playerState,1)));b.Sc()}};
  12963. 0===this.mediaElement.yw().length?this.Ix=d?g.gv.Ni(f,100):g.XA(f,100):this.Ix=d?g.gv.Ni(f,500):g.XA(f,500)}this.videoData.yH=c;!a&&this.isPlaying()&&kfb(this);ucb(this.rk,this.Kf,this.Se(),this.isBackground())&&u0(this);this.publish("progresssync",this,a);e&&uT(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
  12964. g.k.T8=function(){this.Zf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
  12965. g.k.vE=function(){return this.uc().vE()};
  12966. g.k.TO=function(){return this.ya?this.ya.TO():wR(this.W.schedule,!0)};
  12967. g.k.Fc=function(a){if(g.lEa(this.playerState,a))this.W.zc()&&a.seekSource!==this.playerState.seekSource&&this.ma("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
  12968. var b=new g.SF(a,this.playerState);this.playerState=a;sfb(this);var c=!this.jL.length;this.jL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=8===b.bB.state&&!d;g.VF(b,1)&&d&&g.TF(this.playerState,8)&&!g.TF(this.playerState,64)&&this.ya&&(Cab(this.ya),this.mediaElement&&5<=PK(this.mediaElement)&&scb(this.rk,this.Kf)&&u0(this));(d=g.EI(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.TF(a,1)&&(g.TF(a,8)||g.TF(a,16))?this.uN.start(d):this.uN.stop();(0>UF(b,8)||g.VF(b,
  12969. 1024))&&this.bx.stop();!g.VF(b,8)||this.videoData.Ga||g.TF(b.state,1024)||this.bx.start();g.TF(b.state,8)&&0>UF(b,16)&&!g.TF(b.state,32)&&!g.TF(b.state,2)&&this.playVideo();g.TF(b.state,2)&&gT(this.videoData)&&(this.vl(this.getCurrentTime()),this.Sc(!0));g.VF(b,2)&&this.GL(!0);g.VF(b,128)&&this.Eo();this.videoData.j&&this.videoData.isLivePlayback&&!this.E2&&(0>UF(b,8)?SSa(this.videoData.j):g.VF(b,8)&&this.videoData.j.resume());feb(this.Zc,b);Z5a(this.uc(),b);if(c&&!this.Ma())try{for(var e=g.u(this.jL),
  12970. f=e.next();!f.done;f=e.next()){var h=f.value;Ldb(this.yh,h);this.publish("statechange",h)}}finally{this.jL.length=0}}};
  12971. g.k.HF=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")};
  12972. g.k.DR=function(){this.Mb.tick("qoes")};
  12973. g.k.MO=function(){this.Zc.MO()};
  12974. g.k.KK=function(a,b,c,d){a:{var e=this.Qk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=XJ(b);"drm.keyerror"===a&&this.Ce&&1<this.Ce.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())icb(e,a);else{if(e.ea.Zf(a,b,d,c),$bb(e,{detail:c}))break a}else e.Wd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,pfb(e.ea))}};
  12975. g.k.Daa=function(){var a=this,b=g.EI(this.W.experiments,"html5_license_constraint_delay"),c=rqa();b&&c?(b=new g.xv(function(){C0(a);z0(a)},b),g.N(this,b),b.start()):(C0(this),z0(this))};
  12976. g.k.JF=function(a){this.publish("heartbeatparams",a)};
  12977. g.k.Yp=function(a){this.ma("keystatuses",Fbb(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=Gbb(b,c);d=E_(a)?Hbb(a,d):a.D.includes(d)}else{a:{b=Gbb(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Ce)?0:$Q(f.j))if(null==(c=this.Ce))c=
  12978. 0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=Ibb(h,"SD")),b||(b=Ibb(h,"AUDIO"));c.hj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ma("drm",{dshdr:1});icb(this.Qk);return}}else{this.videoData.dD||(this.videoData.dD=!0,this.ma("drm",{dphdr:1}),J_(this,!0));return}var l;if(null==(l=this.Ce)?0:$Q(l.j))return}else if(l=a.Z&&d,c&&!l){icb(this.Qk);return}d||Hbb(a,"AUDIO")&&Hbb(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
  12979. a=Fbb(a),this.AS?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Zf("drm.keyerror",2,void 0,"info."+a)):(this.AS=!0,this.Wd(new WJ("qoe.restart",Object.assign({},{retrydrm:1},a))),u0(this),pfb(this)))};
  12980. g.k.Faa=function(){if(!this.videoData.Ga&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Kk()&&5<=PK(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Fc(TK(this.playerState,1)),qfb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");sfb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!dWa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].le)||this.Ce),mfmtinfo:!this.videoData.B,prerolls:this.Kn()?this.cq.join(","):
  12981. "0"};if(this.Ce){b=this.Ce;if(0>=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=Fbb(b.B.values().next().value),b=VJ(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.ya)?void 0:d.kc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.kc())||{});this.uc().Wd("qoe.start15s",VJ(a));this.publish("loadsofttimeout")}};
  12982. g.k.vl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,z0(this))};
  12983. g.k.GL=function(a){var b=this;a=void 0===a?!1:a;if(!this.eI)if(hH("att_s","player_att")||iH("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(!(d=a)){l.Ia(2);break}return g.z(l,g.cAa(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=Adb(b.uc());if(!e)throw Error();f={};return g.z(l,g.bAa((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f)),6);case 6:h=l.B;if(b.eI)throw Error();
  12984. b.eI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):m.push("r1a="+h.webResponse);var n;void 0!==(null==(n=h.adblockReporting)?void 0:n.reportingStatus)&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;void 0!==(null==(p=h.adblockReporting)?void 0:p.broadSpectrumDetectionResult)&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));iH("att_f",void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),iH("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){});
  12985. else{var c=new g.IOa(this.videoData);if("c1a"in c.Oq&&!g.VO.isInitialized()){iH("att_wb",void 0,"player_att");2===this.GN&&.01>Math.random()&&g.JE(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.GN){g.yv(this.IN);this.GN++;return}}(c=g.JOa(c))?(iH("att_f",void 0,"player_att"),zdb(this.uc(),c),this.eI=!0):iH("att_e",void 0,"player_att")}};
  12986. g.k.Ke=function(a){return this.Zc.Ke(void 0===a?!1:a)};
  12987. g.k.Dd=function(){return this.Zc.Dd()};
  12988. g.k.Kc=function(){return this.Zc?this.Zc.Kc():0};
  12989. g.k.getStreamTimeOffset=function(){return this.Zc?this.Zc.getStreamTimeOffset():0};
  12990. g.k.It=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Kc():this.getStreamTimeOffset());return a};
  12991. g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&ncb(this.rk,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.playbackRate=a,u0(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
  12992. g.k.getPlaybackRate=function(){return this.playbackRate};
  12993. g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=Leb(this);b&&0<b.videoHeight&&(a=JDa(b.videoWidth,b.videoHeight))}return a};
  12994. g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
  12995. g.k.Xu=function(){this.uc().Xu()};
  12996. g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.uc();c.j?(c=Y_(c.j,"engage"),c.qa=a,c.send(b)):b&&b()};
  12997. g.k.Ci=function(a){return this.uc().Ci(a)};
  12998. g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return MS(this.videoData)&&(this.yY||b)?this.Zc.isAtLiveHead(a):!1};
  12999. g.k.jr=function(){var a=this.Ke(),b=this.getCurrentTime(),c;(c=!MS(this.videoData))||(c=this.Zc,c=!(c.B&&c.B.C));return c||this.Fr()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
  13000. g.k.jo=da(24);g.k.Bu=da(47);g.k.Do=function(a){this.uc().Do(a)};
  13001. g.k.Px=function(a){this.uc().Px(a)};
  13002. g.k.qG=function(a){this.uc().qG(a)};
  13003. g.k.HE=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
  13004. g.k.setLoop=function(a){this.loop=a;this.mediaElement&&WR(this.W)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Va=!0:Dab(this.ya))};
  13005. g.k.Et=function(){return this.mediaElement&&WR(this.W)?this.mediaElement.Et():this.loop};
  13006. g.k.JR=function(a){this.ma("timestamp",{o:a.toString()});this.Zc.JR(a)};
  13007. g.k.Rd=function(a){this.Mb.tick(a)};
  13008. g.k.Lh=function(a){return this.Mb.Lh(a)};
  13009. g.k.Tu=function(a){this.Mb.Tu(a)};
  13010. g.k.ma=function(a,b,c){c=void 0===c?!1:c;this.uc().ma(a,b,c)};
  13011. g.k.EB=function(a,b,c){c=void 0===c?!1:c;this.uc().ma(a,b,c)};
  13012. g.k.Wd=function(a){this.uc().Wd(a.errorCode,VJ(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.ya?r9a(this.ya.videoTrack):{};var b,c;this.ma("lasoe",Object.assign(this.ya?r9a(this.ya.audioTrack):{},null==(b=this.Qa)?void 0:null==(c=b.j)?void 0:c.lJ()));var d,e;this.ma("lvsoe",Object.assign(a,null==(d=this.Qa)?void 0:null==(e=d.B)?void 0:e.lJ()))}};
  13013. g.k.pG=function(a,b,c){this.uc().pG(a,b,c)};
  13014. g.k.LI=function(a){this.videoData.g_=!0;this.Wd(new WJ("sabr.fallback",a));J_(this,!0)};
  13015. g.k.getPlayerSize=function(){return this.WG.getPlayerSize()};
  13016. g.k.Th=function(){return this.WG.Th()};
  13017. g.k.Ai=function(){return this.Mb};
  13018. g.k.vr=function(){return this.kd.vr()};
  13019. g.k.getVolume=function(){return this.kd.getVolume()};
  13020. g.k.UE=function(){return this.kd.UE()};
  13021. g.k.isMuted=function(){return this.kd.isMuted()};
  13022. g.k.Mz=function(){return this.kd.Mz()};
  13023. g.k.tE=function(){return this.kd.tE()};
  13024. g.k.gE=function(){return this.kd.gE()};
  13025. g.k.L=function(a){return this.W.L(a)};
  13026. g.k.qs=function(){var a=this.getCurrentTime(),b=a-this.Kc();var c=this.mediaElement?zK(this.mediaElement.Sh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&(null==(d=this.ya)?0:d.GG(b,this.Ke())))return this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.ya)?0:e.qs(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),reb(this.Zc,a),!0):!1};
  13027. g.k.zc=function(){return this.W.zc()};
  13028. g.k.sJ=function(){if(this.L("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.Sea||this.kd.OQ(this.videoData.videoId);this.kd.JT();return this.W.cg||""};
  13029. g.k.qe=function(){return this.videoData.videoId};
  13030. g.k.Wz=function(){return this.kd.Bx};
  13031. g.k.St=function(){return this.kd.St()};
  13032. g.k.tS=function(a,b){this.ma("requestUtcSeek",{time:a});var c;null==(c=this.ya)||c.tS(a);b&&(this.lC=b)};
  13033. g.k.eO=function(){this.lC=0};
  13034. g.k.Em=function(a){this.kd.Em(a)};
  13035. g.k.GR=function(a,b){this.kd.GR(a,b)};
  13036. g.k.mS=function(a,b){var c;null==(c=this.ya)||c.mS(a,b)};
  13037. g.k.TN=function(){var a=this.lr();return!!a&&a.TN()};
  13038. g.k.dg=function(){return this.Ib};
  13039. g.k.NG=function(a,b){this.uc().NG(a,b)};
  13040. g.k.zE=function(){return this.uc().zE()};
  13041. g.k.xJ=function(){return this.videoData.WV};
  13042. g.k.OG=function(a){this.videoData.WV=a};
  13043. g.k.Tn=function(){return this.kd.Tn()};
  13044. g.k.aF=function(){return this.kd.aF(this)};
  13045. g.k.LS=function(a){this.videoData.Pea=a};g.y(g.H0,g.I);g.H0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.fb(a),f=D3[e];if(f){try{f.dispose()}catch(l){g.IE(l)}D3[e]=null}var h=new g.H0(a,b,c,d);h.addOnDisposeCallback(function(){D3[e]=null;h.v2&&h.v2()});
  13046. return D3[e]=h}catch(l){throw g.IE(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
  13047. g.k=g.H0.prototype;g.k.pm=function(){return this.visibility};
  13048. g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)};
  13049. g.k.jm=function(){this.cQ||(this.cQ=g.uH(WT(),uOa()));return this.cQ};
  13050. g.k.Ej=function(){if(this.mediaElement){this.pC&&(this.events.Pc(this.pC),this.pC=null);g.UB(this.ou);this.tb&&this.tb.Ej(!0);this.template.Ej();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.wL()}catch(a){g.JE(a)}this.mediaElement=null}};
  13051. g.k.Wc=function(){return this.tb};
  13052. g.k.Nx=function(){var a=this;this.tb!==this.xb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+(null==(b=a.tb)?void 0:b.getPlayerType())+", vid "+(null==(c=a.tb)?void 0:c.getVideoData().videoId)}),QX(this,this.xb))};
  13053. g.k.Bz=function(a,b,c){var d=this,e=this.Mb;2===a&&(e=new yZa(this.W));return new g.w0(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
  13054. g.k.R$=function(){N0(this)||(this.logger.debug("application playback ready"),this.qq(5))};
  13055. g.k.aba=function(a){if(!N0(this)){this.logger.debug("playback ready");ogb(this);var b=a.getPlayerState();a.YE()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
  13056. g.k.canPlayType=function(a){return $J(a)};
  13057. g.k.U=function(){return this.W};
  13058. g.k.getVideoData=function(){return this.tb.getVideoData()};
  13059. g.k.FE=da(18);g.k.Ld=function(){return this.xb.getVideoData()};
  13060. g.k.getVideoLoadedFraction=function(a){a=g.HT(this,a);return a?g.tT(a.getVideoData())?1:(a=a.Se())?a.uw():0:0};
  13061. g.k.ob=function(){return this.template};
  13062. g.k.yb=function(){return this.Od};
  13063. g.k.Ai=function(){return this.Mb};
  13064. g.k.VB=function(a){var b=g.HT(this,1);b&&PX(b,a)};
  13065. g.k.vr=function(){return this.Od.vr()};
  13066. g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
  13067. g.k.UE=function(){return this.Ua.isFullscreen()};
  13068. g.k.isMuted=function(){return this.Ua.isMuted()};
  13069. g.k.tE=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(this.W)&&this.QT){var a=this.QT;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
  13070. g.k.gE=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.BR(this.W)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.QR();1<b&&a.push(b);return a.join(":")}}};
  13071. g.k.Mz=function(){if(this.tb===this.xb&&this.Ab)return this.Ab.postId};
  13072. g.k.Uca=function(){var a=this;this.L("use_rta_only_for_player")||(g.PI(this.W)?g.$R(this.W,g.qT(this.getVideoData())).then(function(b){XT(WT(),b);aXa(a.getVideoData(),a.W,a.jm())}):aXa(this.getVideoData(),this.W,this.jm()))};
  13073. g.k.QO=function(a){var b=this;return g.G(function(c){return b.uB?c.return(b.uB.QO(a)):c.return(Promise.reject("web po not available"))})};
  13074. g.k.GT=function(a){this.Ua.publish("d6de4videobindingchange",a)};
  13075. g.k.JT=function(){this.uB&&this.uB.JT()};
  13076. g.k.OQ=function(a){return this.uB?this.uB.OQ(a):""};
  13077. g.k.QS=function(a){this.uB=a};
  13078. g.k.kG=function(a){1===a&&(this.Mb.tick("vr"),ifb(this.tb),zZa(this.Mb,this.tb.getVideoData(),ngb(this)),r_a(this.Od));var b=this.W;(YR(b)&&b.N||g.HR(b))&&(this.Gf()||this.Ua.jb("onAdStateChange",a))};
  13079. g.k.setLoopVideo=function(a){this.tb===this.xb&&this.tb.Et()!==a&&(this.tb.setLoop(a),this.Ua.jb("onLoopChange",a))};
  13080. g.k.getLoopVideo=function(){return this.tb.Et()};
  13081. g.k.setLoopRange=function(a){var b=!1;!!this.Ab!==!!a?b=!0:this.Ab&&a&&(b=this.Ab.startTimeMs!==a.startTimeMs||this.Ab.endTimeMs!==a.endTimeMs||this.Ab.postId!==a.postId||this.Ab.type!==a.type);if(b){if(this.tb&&TS(this.getVideoData())){b=(null==a?void 0:a.endTimeMs)||-1;var c;null==(c=g.HT(this))||c.ma("slr",{et:b})}this.xb.yh.mf("applooprange");if(a)c=new g.jJ(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.xb.addCueRange(c);else{this.Ld().clipConfig=void 0;var d,e;"repeatChapter"!==
  13082. (null==(d=this.Ab)?void 0:d.type)||isNaN(Number(null==(e=this.Ab)?void 0:e.loopCount))||(c={loopCount:String(this.Ab.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.qC("repeatChapterLoopEvent",c))}this.Ab=a;this.Ua.jb("onLoopRangeChange",a||void 0);this.tb===this.xb&&(this.FL(),this.tb.No())}};
  13083. g.k.getLoopRange=function(){return this.Ab};
  13084. g.k.FL=function(){var a="";this.Ab?this.tb!==this.xb?a="pnea":Yfb(this,this.xb.getCurrentTime())&&(this.Ab.loopCount=0,a="ilr"):a="nlr";if(this.tb&&TS(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;null==(d=g.HT(this))||d.ma("slrre",{rej:a,ct:this.xb.getCurrentTime(),lst:null==(b=this.Ab)?void 0:b.startTimeMs,let:null==(c=this.Ab)?void 0:c.endTimeMs})}else{var e;null==(e=g.HT(this))||e.ma("slrre",{})}a||bgb(this)};
  13085. g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=Cfb(this,a),this.xb.getPlaybackRate()!==a&&(this.xb.setPlaybackRate(a),b&&!this.W.D&&g.XB("yt-player-playback-rate",a),this.Ua.Hm("onPlaybackRateChange",a)))};
  13086. g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return QT(this.Od).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=g.sT(this.getVideoData());a=c||d?g.HT(this):g.HT(this,a);if(!a)return 0;if(d&&this.Ib)return b=this.Ib,a=a.getCurrentTime(),b=S5a(b,a),a-b/1E3;if(b){if(c&&this.xe&&(b=this.xe.Wa/1E3,0!==b))return b;a=M0(this,a);return W0(this,a.getCurrentTime(),a)}c&&this.xe?(b=this.xe,a=a.getCurrentTime(),a=(b=w5a(b,1E3*a))?a-b.start/
  13087. 1E3:a):a=a.getCurrentTime();return a};
  13088. g.k.Sz=function(){var a=g.HT(this);if(!a)return 0;a=M0(this,a);return W0(this,a.Sz(),a)};
  13089. g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.sT(c);var f=d||e?g.HT(this):g.HT(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.Ib)return this.L("html5_ssap_get_current_time_refactor")?(b=this.Ib,d=1E3*b.ea.getCurrentTime(),
  13090. b=(b=R5a(b,d))?(b.Bi()-b.Ye())/1E3:0):b=T5a(this.Ib,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=L0(this,f),W0(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=kY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
  13091. g.k.Ze=function(a){var b=g.HT(this,a);return b?this.Gf(b)?(b=L0(this,b),b.Ze()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ze():0};
  13092. g.k.addPlayerResponseForAssociation=function(a){this.Ib&&this.Ib.addPlayerResponseForAssociation(a)};
  13093. g.k.finishSegmentByCpn=function(a,b){return this.Ib?this.Ib.finishSegmentByCpn(a,b):[]};
  13094. g.k.xO=function(){this.template.xO();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.B)a.state.B.hasOwnProperty(c)&&(b[c]=a.state.B[c]);(a=Nqa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Aba)};
  13095. g.k.getDebugText=function(a){var b=this.xb.kc(a);if(this.tb&&this.tb!==this.xb){for(var c=this.tb.kc(a),d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=nf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.xf("video-ads");f?(ugb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.xf("videoAdUiSkipContainer"),l=g.xf("ytp-ad-skip-button-container"),m=h||l;m?(ugb(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
  13096. d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+this.mediaElement.getSize().area()),b.op=this.mediaElement.EE("opacity"),c=this.mediaElement.Gt().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.EE("display"));a&&((a=(0,g.S_)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.origin=window.origin;
  13097. b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
  13098. g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240520_01_RC00"},b=this.getPlayerStateObject().Ig;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
  13099. g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(N0(this))return 3;var b;if(a&&(null==(b=this.xe)?0:b.wm(this.getCurrentTime())))return 2;var c;return g.sT(this.getVideoData())&&(null==(c=this.Ib)?0:c.wm())?2:g.HT(this).getPlayerType()};
  13100. g.k.rA=function(){return g.sT(this.getVideoData())&&this.Ib?this.Ib.rA():!1};
  13101. g.k.getPlayerStateObject=function(a){return 3===this.getPresentingPlayerType()?QT(this.Od).Fe:g.HT(this,a).getPlayerState()};
  13102. g.k.getAppState=function(){return this.appState};
  13103. g.k.SK=function(a){switch(a.type){case "loadedmetadata":this.CL.start();a=g.u(this.LB);for(var b=a.next();!b.done;b=a.next())b=b.value,lgb(this,b.id,b.Oea,b.Nea,void 0,!1);this.LB=[];break;case "loadstart":this.Mb.Tu("gv");break;case "progress":case "timeupdate":2<=zK(a.target.Sh())&&this.Mb.Tu("l2s");break;case "playing":g.UR&&this.CL.start();if(g.PI(this.W))a=!1;else{b=g.ST(this.yb());a="none"===this.mediaElement.EE("display")||0===this.mediaElement.getSize().area();var c=JY(this.template),d=this.tb.getVideoData(),
  13104. e=g.jG(this.W);d=US(d);b=!c||b||e||d||this.W.rb;a=a&&!b}a&&(this.tb.ma("hidden",{},!0),this.getVideoData().Tb||(this.getVideoData().Tb=1,this.y_(),this.tb.playVideo()))}};
  13105. g.k.onLoadProgress=function(a,b){this.Ua.Ac("onLoadProgress",b)};
  13106. g.k.Yba=function(){this.Ua.publish("playbackstalledatstart")};
  13107. g.k.onVideoProgress=function(a,b){a=M0(this,a);b=W0(this,a.getCurrentTime(),a);this.Ua.Ac("onVideoProgress",b)};
  13108. g.k.onAutoplayBlocked=function(){this.Ua.Ac("onAutoplayBlocked")};
  13109. g.k.mba=function(){this.Ua.publish("progresssync")};
  13110. g.k.Zaa=function(){this.Ua.Ac("onPlaybackPauseAtStart")};
  13111. g.k.T$=function(a){if(1===this.getPresentingPlayerType()){g.VF(a,1)&&!g.TF(a.state,64)&&this.Ld().isLivePlayback&&this.xb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.VF(a,2)){if(this.Ab&&this.Ab.endTimeMs>=1E3*(this.getDuration()-1)){bgb(this);return}Pfb(this)}if(g.TF(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Ig;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Hm("onError",rXa(b.errorCode));this.Ua.Ac("onDetailedError",{errorCode:b.errorCode,
  13112. errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.GO,cpn:b.cpn});6048E5<(0,g.EC)()-this.W.Rf&&this.Ua.Ac("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!hH("pbresume","ad_to_video")&&hH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.fH(b,"ad_to_video");eH("pbresume",void 0,"ad_to_video");r_a(this.Od)}this.Ua.publish("applicationplayerstatechange",a)}};
  13113. g.k.R_=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("presentingplayerstatechange",a)};
  13114. g.k.nk=function(a){K0(this,WK(a.state));g.TF(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(U0(this,{muted:!1,volume:this.Hi.volume},!1),V0(this,!1))};
  13115. g.k.P$=function(a,b,c){"newdata"===a&&Efb(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
  13116. g.k.DF=function(){this.Ua.Ac("onPlaybackAudioChange",this.Ua.getAudioTrack().lc.name)};
  13117. g.k.VF=function(a){var b=this.tb.getVideoData();a===b&&this.Ua.Hm("onPlaybackQualityChange",a.B.video.quality)};
  13118. g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId});
  13119. this.W.zc()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.xb&&(this.W.tj=c.oauthToken);if(b===this.xb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.eY(this.Ua,this.W,this.xb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.W.zc()&&g.sT(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.fq.j)?void 0:null==(e=d.getVideoData())?
  13120. void 0:e.clientPlaybackNonce)||""})}var f,h;!g.sT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.fq.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.sT(this.getVideoData())&&this.Ib&&(this.W.zc()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.Ib.dispose(),this.Ib=null):(i5a(this.fq),d=dY(this.fq,1,0,1E3*this.getDuration(1),this.getVideoData()),this.fq.enqueue(d,!0),bY(this.fq,0,1E3*
  13121. this.getDuration(1),[d]),j5a(this.fq,this.getVideoData().clientPlaybackNonce,[d]),this.Ib&&(this.Ib.dispose(),this.Ib=null,this.W.zc()&&b.ma("ssap",{tlmdis:1})),this.W.zc()&&b.ma("ssap",{tlmcreate:1}),this.Ib=new M5a(this.Ua,this.fq,this.xb),this.xb.LL(this.Ib))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),GV(this.Od,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.tb===this.xb?(dUa(c.Da,c.xV),Ufb(this)):Sfb(this));1===b.getPlayerType()&&
  13122. (this.W.Va&&tgb(this),this.getVideoData().isLivePlayback&&!this.W.Tp&&this.yg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((uWa(c)||this.getVideoData().fv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&fgb(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Ac("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.FL();(d=c.EG)?this.Cr.fX(d,c.clientPlaybackNonce):H6a(this.Cr)};
  13123. g.k.sI=function(){P0(this,null);this.Ua.Ac("onPlaylistUpdate")};
  13124. g.k.lba=function(a){delete this.pL[a.getId()];this.xb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Na)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.Na)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.u(q),c=b.next();!c.done;c=b.next())if(c=c.value,
  13125. e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.V(c,g.PS),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.V(a,g.PS))&&this.Ua.jb("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
  13126. g.k.qq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(K0(this,-1),K0(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))};
  13127. g.k.yg=function(a,b,c,d,e){this.xb.Zf(a,b,c,d,e)};
  13128. g.k.ls=function(a,b){this.xb.handleError(new WJ(a,b))};
  13129. g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.HT(this,a);if(!c)return!1;a=L0(this,c);c=M0(this,c);return a!==c?a.isAtLiveHead(W0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
  13130. g.k.jr=function(){var a=g.HT(this);return a?L0(this,a).jr():0};
  13131. g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.HT(this,d))2===this.appState&&S0(this),this.Gf(d)?X0(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Uc.seekTo(a,{seekSource:e},b,c):g.sT(this.getVideoData())&&this.Ib?this.Ib.seekTo(a,{oH:!b,CT:c,wd:"application",seekSource:e}):d.seekTo(a,{oH:!b,CT:c,wd:"application",seekSource:e})};
  13132. g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
  13133. g.k.iB=function(){this.Ua.Ac("SEEK_COMPLETE")};
  13134. g.k.DK=function(){this.Ua.jb("onAbnormalityDetected")};
  13135. g.k.Nba=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.TF(a.getPlayerState(),512)||S0(this):this.Ua.Ac("SEEK_TO",b)};
  13136. g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayActiveChange",this.Ua.Vh())};
  13137. g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayAvailabilityChange",this.Ua.TE())};
  13138. g.k.showAirplayPicker=function(){var a;null==(a=this.tb)||a.Nu()};
  13139. g.k.cR=function(){this.Ua.publish("beginseeking")};
  13140. g.k.iR=function(){this.Ua.publish("endseeking")};
  13141. g.k.getStoryboardFormat=function(a){return(a=g.HT(this,a))?L0(this,a).getVideoData().getStoryboardFormat():null};
  13142. g.k.Wj=function(a){return(a=g.HT(this,a))?L0(this,a).getVideoData().Wj():null};
  13143. g.k.Gf=function(a){a=a||this.tb;var b=!1;if(a){a=a.getVideoData();if(X0(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.Uc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.bd===c.value.bd){a=!0;break a}a=!1}b=a}return b};
  13144. g.k.wD=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e});
  13145. var l="",m=X0(this),n;null==(n=g.HT(this))||n.ma("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?t5a(this.xe,a,b,c,d,e,f,h):i6a(this.Uc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
  13146. return l};
  13147. g.k.QE=function(a,b,c,d,e,f,h){if(X0(this)){var l=t5a(this.xe,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""};
  13148. g.k.Du=function(a){var b;null==(b=this.xe)||b.Du(a)};
  13149. g.k.mz=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;X0(this)||r6a(this.Uc,a,b)};
  13150. g.k.qH=function(a,b,c){if(X0(this)){var d=this.xe,e=d.Tb.get(a);e?(void 0===c&&(c=e.Vd),e.durationMs=b,e.Vd=c):d.Vp("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Uc;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.bd===a){e=h;break}e?(void 0===c&&(c=e.Vd),q6a(d,e,b,c)):xY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
  13151. g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Gf();a=new g.ES(this.W,a);d&&(a.bd=d);ggb(this,a,b,c)};
  13152. g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.Wc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.pM,d=this.Hk.N,c.C!==a&&(c.tb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=s4a(b,a,this.Hk.N),null!=c?(b.ma("sgap",c),b.getVideoData().Y&&F0(b,!1)):(a=a.getVideoData(),b=this.pM,b.j!==
  13153. a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
  13154. g.k.TI=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.HT(this);f&&(L0(this,f).E2=!0);I4a(this.Hk,a,b,c,d).then(function(){e.Ua.Ac("onQueuedVideoLoaded")},function(){})};
  13155. g.k.Tn=function(){return this.Hk.Tn()};
  13156. g.k.aF=function(a){return this.Hk.aF(a)};
  13157. g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("Clearing queue");this.Hk.clearQueue(a,b)};
  13158. g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Ld().enableServerStitchedDai&&this.xb&&!v_(this.xb)){var f;null==(f=this.xb)||f.ma("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.ES(this.W,a);g.TR(this.W)&&!f.fl&&oV(this.Mb);var l,m=this.Mb,n=null!=(l=f.Sa)?l:"";m.timerName=n;this.Mb.Lh("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Mb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
  13159. !this.L("html5_shorts_gapless_always_fallback")){l=L4a(this.Hk,f,b);if(null==l){K0(this,-1);a=this.Hk;a.app.U().L("html5_gapless_new_slr")?$fb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().eD=!0;var p,q;null==(p=a.j)||null==(q=p.ya)||q.resume();var r;null==(r=a.j)||vY(r.uc());c={wd:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.Wc())||t.seekTo(K4a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var v;null==(v=g.HT(a.app))||v.playVideo(!0)}a.K();return!0}t=
  13160. this.L("html5_shorts_gapless_preload_fallback");v=this.Hk.j;t&&v&&!v.Ma()&&(p=v.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?Z0(this,b,p):$0(this,b,p.videoId,p.bd),this.Hx.set(p,v,3600));this.Hk.clearQueue(t);var w;null==(w=g.HT(this))||w.ma("sgap",{f:l})}if(e){for(;f.Cm.length&&f.Cm[0].isExpired();)f.Cm.shift();h=f.Cm.length-1;h=0<h&&e.B(f.Cm[h])&&e.B(f.Cm[h-1]);f.Cm.push(e)}c||(a&&DZa(a)?(PR(this.W)&&!this.xi&&(a.fetch=0),P0(this,a)):this.playlist&&P0(this,null),a&&(this.xi=
  13161. wB(!1,a.external_list)),PR(this.W)&&!this.xi&&Q0(this));this.Ua.publish("loadvideo");b=this.mu(f,b,d);h&&this.yg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Cm.join()).replace(/[;:,]/g,"_"));return b};
  13162. g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=igb(this,b,a,e);else{var h=AB(a);f=$0(this,b,h,e)}if(this.Hx.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
  13163. a=new g.ES(this.W,a);e&&(a.bd=e);return hgb(this,a,b,c,d)};
  13164. g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Od;a=a.J.U().showMiniplayerUiWhenMinimized?a.He.get("miniplayer"):void 0;a&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")};
  13165. g.k.setInline=function(a){this.visibility.setInline(a)};
  13166. g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Od;a=a.J.U().showInlinePreviewUi?a.He.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.jb("onInlinePreviewModeChange"))};
  13167. g.k.UB=function(a){var b=this.W.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.W.Hl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.PO&&b?this.PO.start():this.LW():this.visibility.UB(a)};
  13168. g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
  13169. g.k.LW=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Hb();b&&LB(b).catch(function(c){return g.JE(c)})};
  13170. g.k.Kba=function(){this.mediaElement.Hb();"picture-in-picture"===this.mediaElement.Hb().webkitPresentationMode?this.UB(!0):this.UB(!1)};
  13171. g.k.togglePictureInPicture=function(){var a=g.HT(this);a&&a.togglePictureInPicture()};
  13172. g.k.mu=function(a,b,c){b=void 0===b?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
  13173. hH("_start",this.Mb.timerName)||g.JA(PG)(void 0,this.Mb.timerName);var d=!1,e=Xfb(this,b,a,!1);e?(d=!0,a.dispose()):(e=Rfb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&x0(e)&&g.OX(e),this.CL.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),QX(this,e));e===this.xb&&(this.W.tj=a.oauthToken);if(!x0(e))return!1;if(e===this.xb){this.qq(1);c=S0(this);if(d&&this.L("html5_player_preload_ad_fix")&&1===e.getPlayerType()&&e.eq.j)this.onVideoDataChange("dataloaded",
  13174. e,e.getVideoData());return c}Seb(e);return!0};
  13175. g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Ld().enableServerStitchedDai&&this.xb&&!v_(this.xb)&&a&&0<Object.keys(a).length){var d;null==(d=this.xb)||d.ma("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&DZa(a))if(this.Rw=!0,P0(this,a),(a=g.pV(this.playlist))&&a.ue())b1(this,a,b);else this.playlist.onReady(function(){R0(c)});
  13176. else{b||(b=this.getPresentingPlayerType());1===b&&this.sI();d=new g.ES(this.W,a);var e=g.BR(this.W)&&!this.W.qa&&1===b&&!d.isAd()&&!d.yd;this.Ua.publish("cuevideo");e?(this.Wc().getVideoData().loading=!0,KZa(d,a?a:{}).then(function(f){b1(c,f,b)}),d.dispose()):b1(this,d,b)}};
  13177. g.k.Qo=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(DR(this.W)||g.NI(this.W))return b=b||{},b.lact=YD(),b.vis=this.Ua.getVisibilityState(),this.Ua.jb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;BZa(this.Mb);this.Mb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
  13178. g.k.cuePlaylist=function(a,b,c,d){this.Rw=!0;jgb(this,a,b,c,d)};
  13179. g.k.loadPlaylist=function(a,b,c,d){this.Rw=!1;jgb(this,a,b,c,d)};
  13180. g.k.kE=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;PR(this.W)&&!this.xi&&Q0(this);return!(!this.playlist||!this.playlist.Wk())};
  13181. g.k.Bt=da(14);
  13182. g.k.nextVideo=function(a,b){var c=g.QS(this.xb.getVideoData());g.VT(this.Ua)&&c?this.Qo(c.videoId,b?c.WD:c.sessionData,c.playlistId,b,void 0,c.xW||void 0):this.xi?this.Ua.Ac("onPlaylistNext"):3===this.getPresentingPlayerType()?QT(this.Od).nextVideo():this.playlist&&(PR(this.W)&&!this.Ua.isFullscreen()?egb(this,"yt.www.watch.lists.next"):(this.playlist.Wk(a)&&GZa(this.playlist,EZa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.mu(g.pV(this.playlist,
  13183. void 0,b,a),1)):this.Rw=!1))};
  13184. g.k.previousVideo=function(a){this.xi?this.Ua.Ac("onPlaylistPrevious"):3===this.getPresentingPlayerType()?QT(this.Od).mL():this.playlist&&(PR(this.W)&&!this.Ua.isFullscreen()?egb(this,"yt.www.watch.lists.prev"):(this.playlist.Fp(a)&&GZa(this.playlist,FZa(this.playlist)),this.playlist.loaded?this.mu(g.pV(this.playlist),1):this.Rw=!1))};
  13185. g.k.playVideoAt=function(a){this.xi?this.Ua.Ac("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.mu(g.pV(this.playlist,a),1):this.Rw=!1,GZa(this.playlist,a))};
  13186. g.k.getPlaylist=function(){return this.playlist};
  13187. g.k.yE=da(22);g.k.N$=function(a){this.Ua.Ac("onCueRangeEnter",a.getId())};
  13188. g.k.O$=function(a){this.Ua.Ac("onCueRangeExit",a.getId())};
  13189. g.k.bz=function(a,b,c){var d=g.HT(this,b);if(d){var e=this.Ld();if(g.sT(e)){if(1===b&&this.Ib)for(var f=rY(this.Ib,e.clientPlaybackNonce),h=g.u(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.bl=f,l.C=e.clientPlaybackNonce;e=g.u(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=null!=(h=b)?h:1}d.bz(a,c);b&&this.getPresentingPlayerType()!==b||J0(this,"cuerangesadded",a)}};
  13190. g.k.tG=function(a,b){var c=g.HT(this,b);c&&(c.tG(a),b&&this.getPresentingPlayerType()!==b||J0(this,"cuerangesremoved",a))};
  13191. g.k.hC=function(){var a=(this.Wc()||this.xb).yh;a&&a.hC(this.getPresentingPlayerType())};
  13192. g.k.S$=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.FE(d);if(e&&"UNDEFINED_CSN"!==e){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.L("web_playback_associated_ve");if(b.W.L("il_via_jspb")){d=new eA;var l=b.getVideoData().clientPlaybackNonce;l=Q(d,1,l);Q(l,3,e);b.getVideoData().ra&&(f||h)&&(f=g.DE(b.getVideoData().ra),g.VE(e,f),h&&(e=f.getAsJspb(),Hk(d,Hz,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new dA;if(null==e?0:e.enqueueingVe)(null==
  13193. e?0:e.enqueueingVe.trackingParams)?(f=g.DE(e.enqueueingVe.trackingParams),f=f.getAsJspb(),Hk(h,Hz,1,f)):g.JE(new g.eC("Cannot map enqueueingVe from a client VE "));(null==e?0:e.enqueueingCsn)&&Q(h,2,e.enqueueingCsn);(null==e?0:e.clientEnqueueingTimeMs)&&Wk(h,3,Number(e.clientEnqueueingTimeMs));Hk(d,dA,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});Wva(d,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,
  13194. csn:e},b.getVideoData().ra&&(f||h)&&(f=g.DE(b.getVideoData().ra),g.VE(e,f),h&&(d.playbackVe=f.getAsJson())),b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo),e={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.qC("playbackAssociated",d,e)}else g.JE(new g.eC("CSN Missing or undefined during playback association"))}
  13195. var b=this;this.getPresentingPlayerType();zZa(this.Mb,this.tb.getVideoData(),ngb(this));O0(this)&&this.W.D&&"embedded"===mT(this.Ld())&&this.HZ&&.01>Math.random()&&g.qC("autoplayTriggered",{intentional:this.aZ});this.HZ=!1;r_a(this.Od);this.L("web_player_defer_ad")&&Tfb(this);this.Ua.Ac("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),MR(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
  13196. 20;gH("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.RR(this.W)||"MWEB"===g.gR(this.W)?g.jC(g.lC(),function(){T0(b)}):T0(this);
  13197. this.FL();agb(this)};
  13198. g.k.KF=function(){this.Ua.publish("internalAbandon");Y0(this)};
  13199. g.k.onApiChange=function(){this.W.N&&this.tb?this.Ua.Hm("onApiChange",this.tb.getPlayerType()):this.Ua.Hm("onApiChange")};
  13200. g.k.Maa=function(){var a=this.mediaElement;a={volume:g.Ce(Math.floor(100*a.getVolume()),0,100),muted:a.oJ()};a.muted||V0(this,!1);this.Hi=g.md(a);this.Ua.Ac("onVolumeChange",a)};
  13201. g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.SQ)&&(this.SQ=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.SQ}),this.Ua.Ac("onMutedAutoplayStarts"))};
  13202. g.k.onFullscreenChange=function(){var a=pgb(this);this.Km(a?1:0);rgb(this,!!a)};
  13203. g.k.Km=function(a){var b=!!a,c=!!this.Qz()!==b;this.visibility.Km(a);this.template.Km(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&pgb(this)===this.mediaElement.Hb()&&this.mediaElement.YD();this.template.resize();c&&this.Mb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Ld(),b={fullscreen:b,videoId:a.pN||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Ac("onFullscreenChange",b))};
  13204. g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
  13205. g.k.Qz=function(){return this.visibility.Qz()};
  13206. g.k.Aba=function(){this.tb&&(0!==this.Qz()&&1!==this.Qz()||this.Km(pgb(this)?1:0),this.W.Hl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.YD())};
  13207. g.k.Eaa=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("liveviewshift",a)};
  13208. g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
  13209. var b=g.HT(this,a);b&&(2===this.appState?(g.TR(this.W)&&oV(this.Mb),S0(this)):g.TF(b.getPlayerState(),2)?(b=36,this.getVideoData().Yj()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())};
  13210. g.k.pauseVideo=function(a,b){(a=g.HT(this,a))&&a.pauseVideo(b)};
  13211. g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"});
  13212. var b=this.xb.getVideoData(),c=new g.ES(this.W,{video_id:b.pN||b.videoId,oauth_token:b.oauthToken});c.Z=g.md(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.RV=!0);this.cancelPlayback(6);b1(this,c,1)};
  13213. g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b});
  13214. var d=g.HT(this,b);d?2===b&&1===d.getPlayerType()&&(KWa(this.Ld())||g.sT(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.W.zc()&&d.ma("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.tb&&(this.logger.debug("cancel playback, destroy modules"),GV(this.Od,a)),1===b&&(d.stopVideo(),Y0(this)),d.Eo(void 0,6!==a),J0(this,"cuerangesremoved",d.Sk()),d.yh.reset(),this.Hk&&d.isGapless()&&
  13215. (d.Ej(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
  13216. g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.HT(this,b))&&mUa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
  13217. g.k.Ci=function(a){var b=g.HT(this);return b&&mUa(this.W,a)?b.Ci(a):null};
  13218. g.k.updatePlaylist=function(){PR(this.W)?Q0(this):g.BR(this.W)&&Vfb(this);this.Ua.Ac("onPlaylistUpdate")};
  13219. g.k.setSizeStyle=function(a,b){this.A1=a;this.L("web_log_theater_mode_visibility")?this.YB(b):this.oQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()};
  13220. g.k.YB=function(a){this.visibility.YB(a)};
  13221. g.k.bk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.bk():this.oQ};
  13222. g.k.isMinimized=function(){return this.visibility.isMinimized()};
  13223. g.k.isInline=function(){return this.visibility.isInline()};
  13224. g.k.Rt=function(){return this.visibility.Rt()};
  13225. g.k.pA=function(){return this.visibility.pA()};
  13226. g.k.wA=function(){return this.visibility.wA()};
  13227. g.k.nQ=function(){return this.A1};
  13228. g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return QT(this.Od).getAdState();if(!this.Gf()){var a=HV(this.yb());if(a)return a.getAdState()}return-1};
  13229. g.k.zba=function(a){var b=this.template.getVideoContentRect();Gs(this.uZ,b)||(this.uZ=b,this.tb&&C0(this.tb),this.xb&&this.xb!==this.tb&&C0(this.xb),1===this.Qz()&&this.YF&&rgb(this,!0));this.vQ&&g.Le(this.vQ,a)||(this.Ua.publish("appresize",a),this.vQ=a)};
  13230. g.k.Wh=function(){return this.Ua.Wh()};
  13231. g.k.Tba=function(){2===this.getPresentingPlayerType()&&this.Uc.isManifestless()?p6a(this.Uc):(this.xe&&(y5a(this.xe),Y0(this)),Ofb(this,"signature"))};
  13232. g.k.y_=function(){this.Ej();I0(this)};
  13233. g.k.Saa=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.fb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.jb("onPlayerRequestAuthFailed")};
  13234. g.k.HF=function(){this.Ua.Ac("CONNECTION_ISSUE")};
  13235. g.k.JF=function(a){this.Ua.publish("heartbeatparams",a)};
  13236. g.k.zL=function(a){this.Ua.jb("onAutonavChangeRequest",1!==a)};
  13237. g.k.Se=function(){return this.mediaElement};
  13238. g.k.setBlackout=function(a){this.W.rb!==a&&(this.W.rb=a,this.tb&&(this.tb.No(),this.W.Va&&tgb(this),this.tb.Do(a)))};
  13239. g.k.Uaa=function(){var a=g.HT(this);if(a){var b=!this.Ua.XE();(a.yY=b)||a.bx.stop();a.videoData.j&&(b?a.videoData.j.resume():SSa(a.videoData.j));a.ya&&(b?a.ya.resume():E0(a,!0));g.TF(a.playerState,2)||b?g.TF(a.playerState,512)&&b&&a.Fc(UK(a.playerState,512)):a.Fc(TK(a.playerState,512));a=a.uc();a.qoe&&(a=a.qoe,g.O_(a,g.LM(a.provider),"stream",[b?"A":"I"]))}};
  13240. g.k.onLoadedMetadata=function(){this.Ua.Ac("onLoadedMetadata")};
  13241. g.k.onDrmOutputRestricted=function(){this.Ua.Ac("onDrmOutputRestricted")};
  13242. g.k.JA=function(){this.aZ=!0};
  13243. g.k.va=function(){this.Od.dispose();this.b8.dispose();this.Uc.dispose();this.xe&&this.xe.dispose();this.fq.removeAll();this.fq.dispose();this.Ib&&this.Ib.dispose();this.xb.dispose();this.Ej();g.wb(g.cd(this.Gs),this.playlist);g.I.prototype.va.call(this)};
  13244. g.k.L=function(a){return this.W.L(a)};
  13245. g.k.setScreenLayer=function(a){this.screenLayer=a};
  13246. g.k.getInternalApi=function(){return this.Ua.getInternalApi()};
  13247. g.k.createSubtitlesModuleIfNeeded=function(){return this.Od.createSubtitlesModuleIfNeeded()};
  13248. g.k.isOrchestrationLeader=function(){var a=JV(this.Od);return a?a.isOrchestrationLeader():!1};
  13249. g.k.getVideoUrl=function(a,b,c,d,e){if(this.Ab&&this.Ab.postId)return a=this.W.getVideoUrl(a),a=oo(a,"v"),a.replace("/watch","/clip/"+this.Ab.postId);var f=this.Ua.Yc()||"shortspage"===this.W.La,h=g.wT(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)};
  13250. g.k.St=function(){return this.Hk.St()};
  13251. g.k.Em=function(a){this.Ua.publish("spsumpstatuschange",a)};
  13252. g.k.GR=function(a,b){this.Ua.publish("spsumpreject",a,b)};
  13253. g.k.AF=function(){try{for(var a=g.u(Object.values(this.Gs)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ma()||c.AF()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.u(u6a(this.Hx)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ma()||f.AF()}this.xb.AF()}catch(h){g.JE(h)}};
  13254. g.k.iT=function(){return this.xe?this.xe.iT():!1};
  13255. var D3={};var Hgb=/[&\?]action_proxy=1/,Ggb=/[&\?]token=([\w-]*)/,Igb=/[&\?]video_id=([\w-]*)/,Jgb=/[&\?]index=([\d-]*)/,Kgb=/[&\?]m_pos_ms=([\d-]*)/,Mgb=/[&\?]vvt=([\w-]*)/,ygb="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),Lgb="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Bgb={android:"ANDROID",
  13256. "android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Cgb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Egb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};e1.prototype.GA=function(a){this.player.Ai().tick(a)};
  13257. e1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=1===this.j;d&&this.GA("a_bid_s");var e=wgb();if(null!==e)return d&&this.GA("a_bid_f"),this.B(a,b,e);e=xgb();d&&pg(e,function(){c.GA("a_bid_f")});
  13258. return e.then(function(f){return c.B(a,b,f)})};
  13259. e1.prototype.B=function(a,b,c){var d=this,e=void 0===b?{}:b;b=e.cw;var f=e.Xd,h=e.cueProcessedMs;c=void 0===c?"":c;var l=this.player.getVideoData(1);e=this.player.U().uj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Ah:0,AUTONAV_STATE:d1(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*this.player.jr(),LACT:YD(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:this.player.getVisibilityState(),
  13260. P_H:this.player.ob().Th().height,P_W:this.player.ob().Th().width,YT_REMOTE:e?e.join(","):""},n=Gpa(Fpa);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
  13261. ""!==c&&(mya("biscotti id requested"),m.BISCOTTI_ID=c);c={};TA(a)&&(c.sts="19864",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=QA(g.dv(a,m),c);return 2!==p.split("?").length?ng(Error("Invalid AdBreakInfo URL")):g.$R(this.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&SA()){var r=WT();XT(r,q)}q=d.player.jm(r);r=Ngb(d,p,m,l.isMdxPlayback,h);return g.lH(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
  13262. e1.prototype.reset=function(){this.C=this.j=1};g.y(Ogb,e1);
  13263. Ogb.prototype.B=function(a,b,c){b=void 0===b?{}:b;var d=b.cw,e=b.Xd,f=b.cueProcessedMs;c=void 0===c?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:Pgb(this,a,{cw:d,Xd:e},c,b);if(2!==h.split("?").length)return mya("Invalid AdBreakInfo URL"),ng(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=Ggb.exec(h);c=null!=c&&2<=c.length?c[1]:"";a=Hgb.test(h);e=Igb.exec(h);e=null!=e&&2<=e.length?e[1]:"";var n=Jgb.exec(h);
  13264. n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Kgb.exec(h);p=null!=p&&2<=p.length?p[1]:"0";var q=LR(this.player.U().Ga),r=g.qG(this.player.getVideoData(1).ra,!0);Agb(this,r,h,""===m?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(YD()),playerHeightPixels:Math.trunc(this.player.ob().Th().height),playerWidthPixels:Math.trunc(this.player.ob().Th().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19864,autonavState:d1(this.player.U())};if(l){l=
  13265. {};var t=this.player.U().uj;Dgb(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=Lgb.includes(q)?void 0:g.mB("PREF")){t=l.split(RegExp("[:&]"));for(var v=0,w=t.length;v<w;v++){var A=t[v].split("=");if(("SML"===A[0].toUpperCase()||"GSML"===A[0].toUpperCase())&&1<A.length&&"TRUE"===A[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=Fgb(l)}h=Mgb.exec(h);(h=null!=h&&2<=h.length?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};m=
  13266. PWa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=void 0!==f?Math.round(f).toString():void 0;t=(null==d?0:d.context)?d.context:void 0;d=(d=Math.trunc(1E3*(d?d.Ah:0)))?String(d):void 0;v=1E3*this.player.jr();v=Number.isNaN(v)?0:Math.trunc(v);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d,driftFromHeadMs:v?
  13267. String(v):void 0,currentMediaTimeMs:String(Math.round(1E3*this.player.getCurrentTime(1))),getAdBreakContext:m?m:void 0};return Qgb(this,b)};var Dob={B5a:"replaceUrlMacros",L_a:"onAboutThisAdPopupClosed",NEa:"executeCommand"};Rgb.prototype.gr=function(){return"adPingingEndpoint"};
  13268. Rgb.prototype.Jt=function(a,b,c){uhb(this.Oa.get(),a,b,c)};Sgb.prototype.gr=function(){return"changeEngagementPanelVisibilityAction"};
  13269. Sgb.prototype.Jt=function(a){this.J.jb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};Tgb.prototype.gr=function(){return"loggingUrls"};
  13270. Tgb.prototype.Jt=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,uhb(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.y(Vgb,g.I);g.y(g1,g.I);g.k=g1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
  13271. g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
  13272. g.k.lk=function(a,b,c,d,e,f,h,l){if(""===a)RF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().lk(a,b,c,d,e,f,h,l);this.Ra.get().lk(a,b,c,d,e,f,h,l);var m;null==(m=this.Af)||m.get().lk(a,b,c,d,e,f,h,l);this.B.lk(a,b,c,d,e,f,h,l);m=g.u(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.lk(a,b,c,d,e,f,h,l)}};
  13273. g.k.KF=function(){this.j&&this.ao(this.j)};
  13274. g.k.ao=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.ao(a)};h1.prototype.fI=function(a,b,c,d,e){Wgb(this);this.G=!b&&0===c;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.G);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.C=a;0>=d?(Wgb(this),this.G=!b&&0===c):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==this.actionType&&
  13275. (this.D=!0,hH("_start",this.actionType)&&Ygb(this)))};
  13276. h1.prototype.reset=function(){return new h1(this.J)};g.y(j1,g.I);j1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?RF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new $gb(a,b,c,d,f),this.j.set(a.id,{Xd:a,listener:e,Mo:h}),this.J.gf([a],h))};
  13277. j1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Fo([b.Xd],b.Mo),this.j.delete(b.Xd.id)):RF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
  13278. j1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
  13279. j1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
  13280. g.y($gb,g.jJ);k1.prototype.kG=function(a){this.J.kG(a)};
  13281. k1.prototype.Gu=function(a){var b=g.Ja.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.Hm.apply(this.J,[a].concat(g.qa(b))):this.J.jb.apply(this.J,[a].concat(g.qa(b)))};l1.prototype.uf=function(a){return a&&m1(this)};
  13282. l1.prototype.aT=function(){return this.J.U().experiments.fb("h5_enable_generic_error_logging_event")};
  13283. l1.prototype.dT=function(){return this.J.U().experiments.fb("enable_ips_gating")};var hhb=null;g.y(ghb,g.aF);ghb.prototype.dP=function(a){return this.j.hasOwnProperty(a)?this.j[a].dP():{}};
  13284. g.Va("ytads.bulleit.getVideoMetadata",function(a){return p1().dP(a)});
  13285. g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=p1();c=fhb(c);null!==c&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=q1.prototype;
  13286. g.k.Mh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=cs(cv).AJ(a,{});c?bu(c):b&&(a=cs(cv).sG(null,vs(),!1,a),a.gk=3,Dja([a]));return{}}b=jhb(b);if(null===b)return{};var d=this.J.Wc(),e=d&&Leb(d);if(!e)return{};n1(this.Aa.get())?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===this.J.getPresentingPlayerType(!0):2===
  13287. d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Ha.get().isFullscreen()};return Dka(b,a,c)};
  13288. g.k.tx=function(a){var b;null==(b=this.j.get(a.queryId))||b.tx()};
  13289. g.k.sx=function(a){var b;null==(b=this.j.get(a.queryId))||b.sx()};
  13290. g.k.vx=function(a){var b;null==(b=this.j.get(a.queryId))||b.vx()};
  13291. g.k.ox=function(a){var b;null==(b=this.j.get(a.queryId))||b.ox()};
  13292. g.k.qx=function(a){var b;null==(b=this.j.get(a.queryId))||b.qx()};phb.prototype.send=function(a,b,c,d){try{qhb(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.y(rhb,phb);shb.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.eq(a),h;if(h=!this.Aa.get().J.U().experiments.fb("replace_client_url_parsing_with_server_signal"))h="2"===f.C.get("ase");if(h||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=Wta(a);d=e;var l=a.match(sn);if("https"===l[1])var m=a;else l[1]="https",m=qn("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Hka(m);l=[];var p=Dpa(m),q=(null===p?!1:"google"===p[1]?!0:"google"===p[2]?"au"===p[0]&&"com"===p[1]?!0:
  13293. "uk"===p[0]&&"co"===p[1]?!0:!1:!1)&&this.Aa.get().J.U().experiments.fb("add_auth_headers_to_remarketing_google_dot_com_ping");if(TA(m)||q)l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}),l.push({headerType:"DATASYNC_ID"});!this.Aa.get().J.U().experiments.fb("clean_up_manual_attribution_header")&&d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.j.send({baseUrl:m,
  13294. scrubReferrer:n,headers:l},b,c,d)}catch(r){}};v1.prototype.Ci=function(){var a=this.J.Wc();return a&&(a=a.Ci(1))?a:null};g.y(w1,g.I);g.k=w1.prototype;g.k.Jg=function(){return this.J.getVideoData(1).clientPlaybackNonce};
  13295. g.k.addListener=function(a){this.listeners.push(a)};
  13296. g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
  13297. g.k.lk=function(){this.zN.clear();this.yQ=null;this.ys.get().clear()};
  13298. g.k.ao=function(){};
  13299. g.k.Yd=function(a){var b=this.J.getVideoData(a);return b?this.gI(b,a||this.J.getPresentingPlayerType(!0)):null};
  13300. g.k.mca=function(a,b,c,d,e){"nPpU29QrbiU"===b.videoId&&RJ(this,"ads_ssm_vdc_s",{pt:c,dvt:a});KM(this.Aa.get())&&"dataloaded"!==a||Bhb(this,b,c);if(m1(this.Aa.get())&&"newdata"===a&&void 0!==e){a=this.Jg();var f=b.clientPlaybackNonce,h={};UJ(this,"rte",(h.ec=f,h.xc=null==d?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=TJ(f),h));b=b.clientPlaybackNonce;d=null==d?void 0:d.clientPlaybackNonce;e=Chb(e);if(1!==e)if(void 0!==d)for(c=g.u(this.listeners),a=c.next();!a.done;a=c.next())a.value.dB(d,
  13301. b,e);else RF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.u(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.GF(b)}};
  13302. g.k.Oba=function(a,b){void 0!==a&&(this.yQ=a,void 0===b?RF("Expected ad video start time on SS video changed"):this.zN.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?Bhb(this,d,c):RF("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
  13303. g.k.gI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.bd,h=a.title,l=a.Yi,m=a.Dj,n=a.isMdxPlayback,p=a.Rm,q=a.mdxEnvironment,r=a.isAutonav,t=a.mq,v=a.fl,w=a.mp,A=a.videoId||"",D=a.profilePicture||"",F=a.Cl||"",H=a.Yj()||!1,L=a.Rn()||!1;a=a.Xv||void 0;f=this.ys.get().j.get(f)||{layoutId:null,slotId:null};var M=this.J.getVideoData(1),R=M.Zb();M=M.getPlayerResponse();b=1E3*this.J.getDuration(b);var ea=1E3*this.J.getDuration(1),la,ka,ia=(null==M?void 0:null==(la=M.playerConfig)?
  13304. void 0:null==(ka=la.daiConfig)?void 0:ka.enableDai)||!1,sa,aa;la=(null==M?void 0:null==(sa=M.playerConfig)?void 0:null==(aa=sa.daiConfig)?void 0:aa.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Cca:b,wp:ea,daiEnabled:ia,jX:la,isListed:e,Zb:R,profilePicture:D,title:h,Cl:F,Yi:l,Dj:m,Xv:a,isMdxPlayback:n,Rm:p,mdxEnvironment:q,isAutonav:r,mq:t,fl:v,mp:w,Yj:H,Rn:L})};
  13305. g.k.va=function(){this.listeners.length=0;this.dw=null;g.I.prototype.va.call(this)};g.y(x1,g.I);g.k=x1.prototype;g.k.lk=function(){var a=this;m1(this.Aa.get())||(this.j=Nd(function(){a.J.Ma()||a.J.zg("ad",1)}))};
  13306. g.k.ao=function(){};
  13307. g.k.addListener=function(a){this.listeners.push(a)};
  13308. g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
  13309. g.k.gR=function(){};
  13310. g.k.playVideo=function(){this.J.playVideo()};
  13311. g.k.pauseVideo=function(){this.J.pauseVideo()};
  13312. g.k.resumeVideo=function(a){this.Un(a)&&this.J.playVideo()};
  13313. g.k.Un=function(a){return 2===this.J.getPlayerState(a)};
  13314. g.k.getCurrentTimeSec=function(a,b){var c=this.Ra.get().yQ;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):Ehb(this,c)};
  13315. g.k.getVolume=function(){return this.J.getVolume()};
  13316. g.k.isMuted=function(){return this.J.isMuted()};
  13317. g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
  13318. g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
  13319. g.k.isFullscreen=function(){return this.J.isFullscreen()};
  13320. g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
  13321. g.k.WB=function(a){this.J.WB(a)};
  13322. g.k.nba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){a=g.u(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ei(b)}else if(1===a)for(a=g.u(this.ID),c=a.next();!c.done;c=a.next())c.value.gR(b)};
  13323. g.k.cba=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.kh(a,this.getPresentingPlayerType())};
  13324. g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
  13325. g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
  13326. g.k.jh=function(){for(var a=this.J.isMinimized(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.jh(a)};
  13327. g.k.yj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.yj(a)};
  13328. g.k.dc=function(){for(var a=this.J.ob().Th(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vi(a)};
  13329. g.k.xj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.xj(a)};
  13330. g.k.Aj=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.Aj()};g.y(Hhb,g.I);g.y(B1,g.I);B1.prototype.va=function(){this.Xn.Ma()||this.Xn.get().removeListener(this);g.I.prototype.va.call(this)};C1.prototype.fetch=function(a){var b=a.hX;return this.j.fetch(a.K2,{cw:void 0===a.cw?void 0:a.cw,Xd:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return Ihb(c,b)})};g.y(D1,g.I);g.k=D1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
  13331. g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
  13332. g.k.QL=function(a){Jhb(this,a,1)};
  13333. g.k.onAdUxClicked=function(a,b){E1(this,function(c){c.eg(a,b)})};
  13334. g.k.aR=function(a){E1(this,function(b){b.BP(a)})};
  13335. g.k.ZQ=function(a){E1(this,function(b){b.AP(a)})};
  13336. g.k.K$=function(a){E1(this,function(b){b.EJ(a)})};F1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={KD:null,wZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.wZ))if(b.wZ=c,b.KD){if(c<b.KD.end){a:{c=b.KD;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Ah;a=c.end<=a?null:a}if(null!==a)for(b.KD.end=a,b=this.B,g.Yb(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.s_(a)}}else if(a=Khb(a,this.C))c=a.H9,b.KD=
  13337. a.s7,Mhb(this.B,c)};
  13338. F1.prototype.updateTime=function(){};g.y(G1,g.I);g.k=G1.prototype;
  13339. g.k.lk=function(){this.G=new F1(this,chb(this.Aa.get()));this.C=new Lhb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.hR,this),b.subscribe("cuepointupdated",this.hR,this),this.j=b)}this.eM.length=0;var d;b=(null==(d=a.j)?void 0:JSa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Au(b)&&RF("Unexpected a GetAdBreak to go out without player waiting",
  13340. void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
  13341. g.k.ao=function(){};
  13342. g.k.addListener=function(a){this.listeners.push(a)};
  13343. g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
  13344. g.k.Au=function(a){Ohb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
  13345. g.k.hR=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.NI(this.J.U())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Ohb(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Aa.get().J.U().experiments.fb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.Ah>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Ah)?RF("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,Mhb(this,
  13346. c)))}};
  13347. g.k.va=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.hR,this),this.j=null);this.listeners.length=0;this.eM.length=0;g.I.prototype.va.call(this)};H1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=J1.prototype;g.k.wD=function(a,b,c,d,e,f,h){return this.J.wD(a,b,c,d,e,f,h)};
  13348. g.k.mz=function(a,b){this.J.mz(a,b)};
  13349. g.k.qH=function(a,b,c){this.J.qH(a,b,c)};
  13350. g.k.Du=function(a){this.J.Du(a)};
  13351. g.k.QE=function(a,b,c,d,e,f,h){this.J.QE(a,b,c,d,e,f,h)};
  13352. g.k.qs=function(a){return this.J.qs(a)};
  13353. g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.y(Rhb,g.I);g.y(Shb,g.I);g.y(Thb,g.I);g.y(Uhb,g.I);g.y(Vhb,g.I);g.y(Xhb,g.I);Xhb.prototype.C=function(){return this.B};g.y(Yhb,EF);
  13354. Yhb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.jb("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
  13355. this.j.jb("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",
  13356. {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",
  13357. {contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",
  13358. {contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",b.addAction);this.j.jb("changeEngagementPanelVisibility",
  13359. b.expandAction);break;case 3:this.j.jb("changeEngagementPanelVisibility",b.hideAction),this.j.jb("updateEngagementPanelAction",b.removeAction)}};g.y(Zhb,JF);g.k=Zhb.prototype;
  13360. g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);g.Is(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"),
  13361. this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()};
  13362. g.k.clear=function(){this.hide()};
  13363. g.k.hide=function(){LF(this);JF.prototype.hide.call(this)};
  13364. g.k.show=function(){KF(this);JF.prototype.show.call(this)};
  13365. g.k.hq=function(){this.hide()};
  13366. g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Is(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.y($hb,jF);g.k=$hb.prototype;
  13367. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.V(b.actionButton,g.qM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.IE(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
  13368. 0<e.length&&g.ec(g.$e(e[0].url))&&(e[0].url=d.profilePicture,g.ec(g.$e(d.profilePicture))&&aTa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.$e(e[0].url))&&(e[0].url=d.dh());e=b.headline;null!=e&&g.ec(g.$e(e.text))&&(e.text=d.author)}this.Y.init(ZE("ad-image"),b.image,c);this.G.init(ZE("ad-text"),b.headline,c);this.C.init(ZE("ad-text"),b.description,c);this.Na.init(ZE("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
  13369. "ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");
  13370. this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Za.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.zf.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),
  13371. this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ea.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,d);g.N(this,this.actionButton);this.actionButton.Ja(this.gb);this.actionButton.init(ZE("button"),g.V(b.actionButton,g.qM),c);iv(this.actionButton.element);d=vv(this.actionButton.element);kv(this.actionButton.element,
  13372. d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.HO,this);this.D.T(this.Va,"click",this.HO,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.HO,this);this.j=this.eT?new aG(this.api,a):new bG(a);g.N(this,this.j);if(b.skipButton){if((a=g.V(b.skipButton,Wkb))&&this.j&&(this.skipButton=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.NL),
  13373. g.N(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(ZE("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.V(c,Vkb))a=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),a.Ja(this.Ea),a.init(ZE("simple-ad-badge"),c,this.macros),g.N(this,a);if(c=b.adInfoRenderer)if(c=g.V(c,oM))a=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),a.Ja(this.Ea),a.init(ZE("ad-info-hover-text-button"),
  13374. c,this.macros),g.N(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.V(b.nonskippableOverlayRenderer,pM))&&this.j&&(this.B=new OF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,!1),g.N(this,this.B),this.B.Ja(this.element),this.B.init(ZE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.V(b,Xkb)&&this.j&&(c=new Zhb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,c),c.Ja(this.element),c.init(ZE("timed-pie-countdown"),g.V(b,Xkb),
  13375. this.macros)));this.show();this.element.focus()}else g.IE(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.IE(Error("AdActionInterstitialRenderer has no button."));else g.IE(Error("AdActionInterstitialRenderer has no background AdImage."));else g.IE(Error("AdActionInterstitialRenderer has no description AdText."));else g.IE(Error("AdActionInterstitialRenderer has no headline AdText."));else g.IE(Error("AdActionInterstitialRenderer has no image."))};
  13376. g.k.clear=function(){g.UB(this.D);this.hide()};
  13377. g.k.show=function(){aib(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();jF.prototype.show.call(this)};
  13378. g.k.hide=function(){aib(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();jF.prototype.hide.call(this)};
  13379. g.k.HO=function(){this.navigationEndpoint&&(this.layoutId?this.kb.executeCommand(this.navigationEndpoint,this.layoutId):g.IE(Error("Missing layoutId for ad action interstitial.")))};var fib={iconType:"CLOSE"},N1=new g.Ke(320,63);g.y(eib,jF);g.k=eib.prototype;
  13380. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Lb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.V(a,Skb)?(this.G=g.xf("ytp-ad-overlay-ad-info-button-container",this.C.element),gib(this,b),a=iib(this,g.V(a,Skb))):g.V(a,Tkb)?(this.G=g.xf("ytp-ad-overlay-ad-info-button-container",this.B.element),gib(this,b),a=jib(this,g.V(a,Tkb))):g.V(a,Ukb)?(this.G=
  13381. g.xf("ytp-ad-overlay-ad-info-button-container",this.j.element),gib(this,b),a=kib(this,g.V(a,Ukb))):(g.IE(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),lib(this,!0))};
  13382. g.k.clear=function(){lib(this,!1);this.Na.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
  13383. g.k.dca=function(){this.Za&&(this.layoutId?this.kb.executeCommand(this.Za,this.layoutId):g.IE(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
  13384. g.k.AM=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.IE(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
  13385. g.k.I$=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
  13386. g.k.AR=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.AR("invideo-overlay")};
  13387. g.k.J$=function(a){a.target===this.G&&g.xf("ytp-ad-button",this.gb.element).click()};g.y(mib,JF);g.k=mib.prototype;g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(ZE("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
  13388. g.k.clear=function(){this.hide()};
  13389. g.k.hide=function(){nib(this,!1);JF.prototype.hide.call(this);this.B.hide();this.messageText.hide();LF(this)};
  13390. g.k.show=function(){nib(this,!0);JF.prototype.show.call(this);KF(this);this.B.show();this.messageText.show()};
  13391. g.k.hq=function(){this.hide()};
  13392. g.k.Ao=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(cya(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.y(oib,jF);g.k=oib.prototype;
  13393. g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.qM)?(this.C.init(ZE("ad-image"),b.image,c),this.B.init(ZE("ad-text"),b.headline,c),this.D.init(ZE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
  13394. a),b.backgroundColor&&g.Is(this.element,"background-color",g.kG(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(ZE("button"),g.V(b.actionButton,g.qM),c),b=g.EI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Hv(c,"ytp-ad-underlay-left-container"),g.Fv(c,"ytp-ad-underlay-right-container"),g.Is(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Hv(c,"ytp-ad-underlay-right-container"),
  13395. g.Fv(c,"ytp-ad-underlay-left-container")),g.Is(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.ZE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qU.bind(this)),this.api.addEventListener("resize",this.wY.bind(this))):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
  13396. g.k.show=function(){pib(!0);this.actionButton&&this.actionButton.show();jF.prototype.show.call(this)};
  13397. g.k.hide=function(){pib(!1);this.actionButton&&this.actionButton.hide();jF.prototype.hide.call(this)};
  13398. g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.qU.bind(this));this.api.removeEventListener("resize",this.wY.bind(this));this.hide()};
  13399. g.k.onClick=function(a){jF.prototype.onClick.call(this,a);this.actionButton&&g.Rf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
  13400. g.k.qU=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
  13401. g.k.wY=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
  13402. g.Is(this.B.element,"font-size",a.width/40+"px")};g.y(O1,jF);
  13403. O1.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.V(b.answer,g.qM)?(a=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(ZE("ytp-ad-survey-answer-button"),g.V(b.answer,g.qM),c),a.show()):b.answer&&g.V(b.answer,B2)&&(this.j=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
  13404. ["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.N(this,this.j),this.j.init(ZE("survey-answer-button"),g.V(b.answer,B2),c));this.show()};
  13405. O1.prototype.FG=function(a){this.layoutId?$I(this.kb,a,this.layoutId,this.macros):g.IE(new g.eC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
  13406. O1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&null!==this.index)this.onSelected(this.index)};
  13407. O1.prototype.clear=function(){this.hide()};g.y(qib,jF);qib.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);b.answer&&g.V(b.answer,B2)&&(this.button=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(ZE("survey-none-of-the-above-button"),g.V(b.answer,B2),c));this.show()};g.y(P1,uF);P1.prototype.init=function(a,b,c){uF.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.lF(b.text),a=!g.ec(b));a||g.JE(Error("No submit text was present in the renderer."))};
  13408. P1.prototype.onClick=function(a){this.publish("l");uF.prototype.onClick.call(this,a)};g.y(Q1,jF);
  13409. Q1.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.V(a,vL)?(a=g.V(a,vL),c=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!0),c.Ja(this.skipOrPreview),c.init(ZE("skip-button"),a,this.macros),g.N(this,c),this.j=c):g.V(a,pM)&&(a=g.V(a,pM),c=new OF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!1),c.Ja(this.skipOrPreview),c.init(ZE("ad-preview"),a,this.macros),dya(c),g.N(this,c),this.j=c);null==
  13410. this.j&&g.IE(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.V(a,g.qM)&&(a=g.V(a,g.qM),c=new P1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.submitButton),c.init(ZE("survey-submit"),a,this.macros),g.N(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.V(a,Vkb),c=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),c.Ja(this.C),c.init(ZE("simple-ad-badge"),a,this.macros),
  13411. g.N(this,c);if(a=b.adDurationRemaining)a=g.V(a,Okb),c=new eG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,void 0),c.Ja(this.C),c.init(ZE("ad-duration-remaining"),a,this.macros),g.N(this,c);(b=b.adInfoRenderer)&&g.V(b,oM)&&(a=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.C),a.init(ZE("ad-info-hover-text-button"),g.V(b,oM),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified");
  13412. this.show()};
  13413. Q1.prototype.clear=function(){this.hide()};g.y(R1,jF);R1.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);vib(this)};
  13414. R1.prototype.show=function(){this.C=g.kb();jF.prototype.show.call(this)};
  13415. R1.prototype.G0=function(){};g.y(wib,R1);g.k=wib.prototype;g.k.init=function(a,b,c){var d=this;R1.prototype.init.call(this,a,b,c);b.questionText&&rib(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,w2)&&sib(d,g.V(e,w2),c,f)});
  13416. this.G=new Set(this.B.map(function(e){return e.j.j}));
  13417. (a=b.noneOfTheAbove)&&(a=g.V(a,Rkb))&&xib(this,a,c);b.surveyAdQuestionCommon&&uib(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
  13418. g.k.G0=function(){yib(this,!1);this.D.B.subscribe("l",this.bca,this)};
  13419. g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?zib(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),yib(this,!0))};
  13420. g.k.bca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
  13421. e=g.nd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=mo(f.baseUrl,b));return f});
  13422. return e});
  13423. if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?$I(this.kb,d,this.layoutId,this.macros):g.IE(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)};
  13424. g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(S1,R1);S1.prototype.init=function(a,b,c){var d=this;R1.prototype.init.call(this,a,b,c);b.questionText&&rib(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,w2)&&sib(d,g.V(e,w2),c,f)});
  13425. b.surveyAdQuestionCommon?uib(this,b.surveyAdQuestionCommon):g.IE(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
  13426. S1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(T1,jF);T1.prototype.init=function(a,b,c){var d=this;jF.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&Dib(this,0)}else(b.questions||[]).forEach(function(l){g.V(l,nM)?Bib(d,g.V(l,nM),c):g.V(l,mM)&&Cib(d,g.V(l,mM),c)});
  13427. this.show()};
  13428. T1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
  13429. T1.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.IE(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
  13430. else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
  13431. break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
  13432. break;default:g.IE(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)Dib(this,d);
  13433. else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.IE(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var Eib=pa(['background-image:url("','");']);g.y(U1,jF);
  13434. U1.prototype.init=function(a,b,c){var d=this;jF.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.IE(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.V(b.ctaButton,g.qM))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,rM)&&g.V(b.backgroundImage,rM).landscape){this.layoutId||g.IE(Error("Missing layoutId for survey interstitial."));Fib(this.interstitial,
  13435. g.V(b.backgroundImage,rM).landscape);Fib(this.logoImage,b.brandImage);g.Sf(this.text,g.lF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.N(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(ZE("button"),g.V(b.ctaButton,g.qM),c);this.actionButton.show();this.j=new aG(this.api,1E3*a);this.j.subscribe("g",function(){d.transition.hide()});
  13436. g.N(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)});
  13437. this.transition.show(100)}else g.IE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.IE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.IE(Error("SurveyTextInterstitialRenderer has no button."));else g.IE(Error("SurveyTextInterstitialRenderer has no text."));else g.IE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
  13438. U1.prototype.clear=function(){this.hide()};
  13439. U1.prototype.show=function(){Gib(!0);jF.prototype.show.call(this)};
  13440. U1.prototype.hide=function(){Gib(!1);jF.prototype.hide.call(this)};g.y(V1,JF);g.k=V1.prototype;
  13441. g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.IE(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.im();var c;if(null==(c=b.previewText)||!c.text||g.ec(b.previewText.text))g.IE(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Sf(this.C,b.previewText.text);var d;
  13442. if((null==(d=this.api.getVideoData(1))?0:d.Jl)&&b.previewImage){var e,f;(a=(null==(f=iAa((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.iF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.N(this,this.previewImage),this.previewImage.Ja(this.element)):g.IE(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}};
  13443. g.k.clear=function(){this.hide()};
  13444. g.k.hide=function(){LF(this);JF.prototype.hide.call(this)};
  13445. g.k.show=function(){KF(this);JF.prototype.show.call(this)};
  13446. g.k.hq=function(){this.hide()};
  13447. g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Sf(this.C,a);this.D=b}}}};g.y(W1,jF);
  13448. W1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=iAa((null==(c=b.image)?void 0:c.sources)||[],Hib(b),!0))?void 0:d.url)||"")&&a.length){c=this.Fa("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
  13449. break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.IE(Error("Failed to get imageUrl in AdAvatar."))};
  13450. W1.prototype.clear=function(){this.hide()};
  13451. W1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(X1,jF);
  13452. X1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.ec(a))||b.iconImage){c&&(this.buttonText=new g.iF({I:"span",S:"ytp-ad-button__text",xa:a}),g.N(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&kv(this.element,f+" This link opens in new tab");iv(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.u(e.sources),
  13453. a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}h=tF(d);null!=h&&(this.buttonIcon=new g.iF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.N(this,this.buttonIcon),b.iconLeading?(Hf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled");
  13454. switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.JE(Error("AdButton does not have label or an icon."))};
  13455. X1.prototype.clear=function(){this.hide()};
  13456. X1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(Y1,jF);Y1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(a=b.content){g.Sf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.IE(Error("AdSimpleAttributedString does not have text content"))};
  13457. Y1.prototype.clear=function(){this.hide()};
  13458. Y1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(Kib,JF);g.k=Kib.prototype;
  13459. g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"),
  13460. this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Hf(this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,Ykb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,Zkb);e?(this.adAvatar.init(ZE("ad-avatar"),a),this.headline.init(ZE("ad-simple-attributed-string"),new Jib(c)),this.description.init(ZE("ad-simple-attributed-string"),new Jib(d)),c.content&&20<c.content.length&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
  13461. this.adButton.init(ZE("ad-button"),e),this.B=b.startMs||0,this.api.ZE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.rU.bind(this)),KF(this)):g.IE(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.IE(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.IE(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.IE(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
  13462. g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(LF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
  13463. g.k.hq=function(){this.clear()};
  13464. g.k.onClick=function(a){this.api.pauseVideo();JF.prototype.onClick.call(this,a)};
  13465. g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.rU.bind(this))};
  13466. g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();JF.prototype.show.call(this)};
  13467. g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();JF.prototype.hide.call(this)};
  13468. g.k.rU=function(a){"hidden"===a?this.show():this.hide()};g.y(Lib,jF);g.k=Lib.prototype;
  13469. g.k.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(!b.label||g.ec(b.label))g.IE(Error("No label is returned for SkipAdButton."));else if(g.Sf(this.D,b.label),a=tF({iconType:"SKIP_NEXT_NEW"}),null==a)g.IE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.iF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.$e(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",
  13470. b),this.element.setAttribute("data-tooltip-target-fixed","")};
  13471. g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(0===jya(a,{contentCpn:null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:""})&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;jF.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13472. g.k.clear=function(){this.j.reset();this.hide()};
  13473. g.k.hide=function(){jF.prototype.hide.call(this)};
  13474. g.k.show=function(){this.j.start();jF.prototype.show.call(this);this.B&&this.api.U().experiments.fb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(Mib,JF);g.k=Mib.prototype;
  13475. g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,$kb);c?(a=g.V(b.skippableState,blb))?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.JE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(ZE("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(ZE("skip-button"),a),this.show()):g.IE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.IE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
  13476. g.k.show=function(){KF(this);JF.prototype.show.call(this)};
  13477. g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();LF(this);JF.prototype.hide.call(this)};
  13478. g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();LF(this);JF.prototype.hide.call(this)};
  13479. g.k.hq=function(){this.hide()};
  13480. g.k.Ao=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();null!=(a=this.C)&&(a.transition.show(),a.show())}};g.y(Z1,jF);
  13481. Z1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(b.label){var c;(null==(c=b.label)?0:c.content)&&!g.ec(b.label.content)&&(this.linkText=new g.iF({I:"span",S:"ytp-visit-advertiser-link__text",xa:b.label.content}),g.N(this,this.linkText),this.linkText.Ja(this.element));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)kv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;(null==(f=b.label)?0:f.content)&&!g.ec(b.label.content)&&kv(this.element,
  13482. b.label.content+" This link opens in new tab")}iv(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.IE(Error("No label found in VisitAdvertiserLink."))};
  13483. Z1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
  13484. Z1.prototype.clear=function(){this.hide()};g.y($1,jF);
  13485. $1.prototype.init=function(a,b,c,d){jF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,clb),c=g.V(c,$kb),a?(this.Ou=new Mib(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,this.Ou),this.Ou.Ja(this.D),this.Ou.init(ZE("skip-ad"),a)):c&&(this.C=new V1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,1),g.N(this,this.C),this.C.Ja(this.D),this.C.init(ZE("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&&
  13486. (a=g.V(b.playerAdCard,alb))&&(this.playerAdCard=new Kib(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,this.playerAdCard),this.playerAdCard.Ja(this.G),this.playerAdCard.init(ZE("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.V(b.adBadgeRenderer,Vkb))&&(this.adBadge=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,this.adBadge),this.adBadge.Ja(this.B),this.adBadge.init(ZE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&
  13487. (a=g.V(b.adDurationRemaining,Okb))&&(this.adDurationRemaining=new eG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,d.videoAdDurationSeconds),g.N(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.B),this.adDurationRemaining.init(ZE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,oM))&&(this.adInfoButton=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,this.adInfoButton),this.adInfoButton.Ja(this.B),
  13488. this.adInfoButton.init(ZE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.V(b.visitAdvertiserLink,dlb))&&(this.visitAdvertiserLink=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.B),this.visitAdvertiserLink.init(ZE("visit-advertiser-link"),b));this.show()};
  13489. $1.prototype.clear=function(){this.hide()};var Eob="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel banner-image top-banner-image-text-icon-buttoned".split(" "));g.y(a2,EF);
  13490. a2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Eob.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof EJ?c.eT:!1,m=c instanceof EJ||c instanceof $F?c.NL:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new eib(a,f,h,e);break;case "player-overlay":a=new iG(a,f,h,e,new XV(a),m);break;case "player-overlay-layout":a=new $1(a,f,h,e,new XV(a));break;case "survey":a=
  13491. new T1(a,f,h,e);break;case "ad-action-interstitial":a=new $hb(a,f,h,e,l,m);break;case "survey-interstitial":a=new U1(a,f,h,e);break;case "ad-message":a=new mib(a,f,h,e,new XV(a,1));break;case "player-underlay":a=new oib(a,f,h,e);break;default:a=null}if(!a){g.JE(Error("No UI component returned from ComponentFactory for type: "+d));break}g.ed(this.B,b)?g.JE(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof $Ca?this.C?this.C.append(a.BS):g.IE(Error("Underlay view was not created but UnderlayRenderer was created")):
  13492. this.G.append(a.BS);break;case 2:b=Nib(this,a);if(null==b)break;b.bind(c);break;case 3:c=Nib(this,a),null!=c&&(g.vb(c),g.ed(this.B,b)?(c=this.B,b in c&&delete c[b]):g.JE(Error("Ad UI component does not exist: "+b)))}};
  13493. a2.prototype.va=function(){g.wb(Object.values(this.B));this.B={};EF.prototype.va.call(this)};g.y(Oib,g.sV);g.k=Oib.prototype;g.k.create=function(){try{Pib(this),this.load(),this.created=!0,Pib(this)}catch(a){RF(a instanceof Error?a:String(a))}};
  13494. g.k.load=function(){try{Sib(this)}finally{m1(L1(this.j).Rk)&&this.player.zg("ad",1)}};
  13495. g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.wx.ao(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
  13496. g.k.unload=function(){g.sV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){RF(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
  13497. g.k.Lm=function(){return!1};
  13498. g.k.getAdState=function(){return-1};
  13499. g.k.getOptions=function(){return Object.values(Dob)};
  13500. g.k.Qh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=mhb(this.player),Object.assign(b,a.Unb),a=g.dv(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
  13501. g.k.Au=function(a){var b;return!(null==(b=this.j.j.Af)||!b.get().Au(a))};
  13502. g.k.Xp=function(a){a.isMuted&&oAa(L1(this.j).Yk,L1(this.j).Zn,a.layoutId);this.Ms&&this.Ms.Xp()};
  13503. g.k.executeCommand=function(a){L1(this.j).kb.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.H0.create);g.Va("yt.player.Application.createAlternate",g.H0.create);rwa(twa(),{Kr:[{SA:/Unable to load player module/,weight:20},{SA:/Failed to fetch/,weight:500},{SA:/XHR API fetch failed/,weight:10},{SA:/JSON parsing failed after XHR fetch/,weight:10},{SA:/Retrying OnePlatform request/,weight:10},{SA:/CSN Missing or undefined during playback association/,weight:100}]});var Fob=g.Xa("ytcsi.tick");Fob&&Fob("pe");g.rV("ad",Oib);g.Gob=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.Gob);g.y(g.d2,g.I);g.d2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.EC)()};this.next()};
  13504. g.d2.prototype.stop=function(){this.delay.stop();this.config=void 0};
  13505. g.d2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.EC)()-a;a=this.j;d=fla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=He(a.C,a.y1,d);var f=He(a.y1,a.y2,d);a=He(a.y2,a.D,d);e=He(e,f,d);f=He(f,a,d);a=He(e,f,d)}a=g.Ce(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.y(g.e2,g.W);g.k=g.e2.prototype;g.k.n4=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
  13506. g.k.show=function(){g.W.prototype.show.call(this);Yib(this)};
  13507. g.k.o4=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
  13508. g.k.xx=function(){this.dc(this.api.ob().getPlayerSize())};
  13509. g.k.dc=function(a){var b=this.api.Yc()?.5625:16/9,c=this.api.Dh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Fa("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.f2(this)};
  13510. g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Hf?!1:a.D;this.suggestionData=b.suggestions?g.Pt(b.suggestions,function(c){return c&&!c.playlistId}):[];
  13511. $ib(this);b.Hf?this.title.update({title:g.qJ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.Yc()?"More shorts":"More videos"})};
  13512. g.k.scrollTo=function(a){a=g.Ce(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.f2(this);Yib(this)};})(_yt_player);